PageSourceSearch

https://quisi.do/assets/index-CuqHnTnh.js

js quisi.do collected 2026-10-09 21:45:58 UTC 1,678,915 bytes, 613 lines download raw bytes

1(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const DF=Window.prototype.addEventListener.bind(window);window.addEventListener=function(t,n,r){if(t==="unload"){DF("pagehide",n,r);return}DF(t,n,r)};const{entries:Z4,setPrototypeOf:PF,isFrozen:YQ,getPrototypeOf:XQ,getOwnPropertyDescriptor:KQ}=Object;let{freeze:rs,seal:_o,create:CR}=Object,{apply:AR,construct:RR}=typeof Reflect<"u"&&Reflect;rs||(rs=function(t){return t});_o||(_o=function(t){return t});AR||(AR=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return t.apply(n,i)});RR||(RR=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new t(...r)});const tb=is(Array.prototype.forEach),ZQ=is(Array.prototype.lastIndexOf),$F=is(Array.prototype.pop),Dg=is(Array.prototype.push),JQ=is(Array.prototype.splice),AS=is(String.prototype.toLowerCase),$x=is(String.prototype.toString),Fx=is(String.prototype.match),Pg=is(String.prototype.replace),QQ=is(String.prototype.indexOf),eee=is(String.prototype.trim),Oo=is(Object.prototype.hasOwnProperty),Gi=is(RegExp.prototype.test),$g=tee(TypeError);function is(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return AR(e,t,r)}}function tee(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return RR(e,n)}}function Zt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:AS;PF&&PF(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const s=n(i);s!==i&&(YQ(t)||(t[r]=s),i=s)}e[i]=!0}return e}function nee(e){for(let t=0;t<e.length;t++)Oo(e,t)||(e[t]=null);return e}function Ja(e){const t=CR(null);for(const[n,r]of Z4(e))Oo(e,n)&&(Array.isArray(r)?t[n]=nee(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Ja(r):t[n]=r);return t}function Fg(e,t){for(;e!==null;){const r=KQ(e,t);if(r){if(r.get)return is(r.get);if(typeof r.value=="function")return is(r.value)}e=XQ(e)}function n(){return null}return n}const FF=rs(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ux=rs(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Bx=rs(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ree=rs(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),zx=rs(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),iee=rs(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),UF=rs(["#text"]),BF=rs(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Hx=rs(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),zF=rs(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),nb=rs(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),see=_o(/\{\{[\w\W]*|[\w\W]*\}\}/gm),oee=_o(/<%[\w\W]*|[\w\W]*%>/gm),aee=_o(/\$\{[\w\W]*/gm),cee=_o(/^data-[\-\w.\u00B7-\uFFFF]+$/),lee=_o(/^aria-[\-\w]+$/),J4=_o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),uee=_o(/^(?:\w+script|data):/i),fee=_o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q4=_o(/^html$/i),dee=_o(/^[a-z][.\w]*(-[.\w]+)+$/i);var HF=Object.freeze({__proto__:null,ARIA_ATTR:lee,ATTR_WHITESPACE:fee,CUSTOM_ELEMENT:dee,DATA_ATTR:cee,DOCTYPE_NAME:Q4,ERB_EXPR:oee,IS_ALLOWED_URI:J4,IS_SCRIPT_OR_DATA:uee,MUSTACHE_EXPR:see,TMPLIT_EXPR:aee});const Ug={element:1,text:3,progressingInstruction:7,comment:8,document:9},hee=function(){return typeof window>"u"?null:window},pee=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;
vendor: 4,291 bytes, line 1
1const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const s="dompurify"+(r?"#"+r:"");try{return t.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},jF=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function e6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hee();const t=Ae=>e6(Ae);if(t.version="3.3.0",t.removed=[],!e||!e.document||e.document.nodeType!==Ug.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:f,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:m,trustedTypes:_}=e,v=l.prototype,E=Fg(v,"cloneNode"),b=Fg(v,"remove"),w=Fg(v,"nextSibling"),T=Fg(v,"childNodes"),R=Fg(v,"parentNode");if(typeof o=="function"){const Ae=n.createElement("template");Ae.content&&Ae.content.ownerDocument&&(n=Ae.content.ownerDocument)}let C,k="";const{implementation:M,createNodeIterator:I,createDocumentFragment:$,getElementsByTagName:Q}=n,{importNode:V}=r;let N=jF();t.isSupported=typeof Z4=="function"&&typeof R=="function"&&M&&M.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:K,TMPLIT_EXPR:j,DATA_ATTR:fe,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:ee,ATTR_WHITESPACE:W,CUSTOM_ELEMENT:de}=HF;let{IS_ALLOWED_URI:ce}=HF,L=null;const J=Zt({},[...FF,...Ux,...Bx,...zx,...UF]);let re=null;const me=Zt({},[...BF,...Hx,...zF,...nb]);let be=Object.seal(CR(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,Fe=null;const Be=Object.seal(CR(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let dt=!0,pt=!0,Hn=!1,Lr=!0,jn=!1,tt=!0,mt=!1,vn=!1,rn=!1,sn=!1,Sn=!1,Ze=!1,kn=!0,Tt=!1;const Kn="user-content-";let it=!0,gr=!1,Dr={},xs=null;const Hs=Zt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ka=null;const wo=Zt({},["audio","video","img","source","image","track"]);let js=null;const Vs=Zt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ji="http://www.w3.org/1998/Math/MathML",sr="http://www.w3.org/2000/svg",H="http://www.w3.org/1999/xhtml";let Z=H,se=!1,G=null;const _e=Zt({},[ji,sr,H],$x);let we=Zt({},["mi","mo","mn","ms","mtext"]),ze=Zt({},["annotation-xml"]);const Ge=Zt({},["title","style","font","a","script"]);let He=null;const lt=["application/xhtml+xml","text/html"],je="text/html";let qe=null,_t=null;const ln=n.createElement("form"),yn=function(F){return F instanceof RegExp||F instanceof Function},Ar=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(_t&&_t===F)){if((!F||typeof F!="object")&&(F={}),F=Ja(F),He=lt.indexOf(F.PARSER_MEDIA_TYPE)===-1?je:F.PARSER_MEDIA_TYPE,qe=He==="application/xhtml+xml"?$x:AS,L=Oo(F,"ALLOWED_TAGS")?Zt({},F.ALLOWED_TAGS,qe):J,re=Oo(F,"ALLOWED_ATTR")?Zt({},F.ALLOWED_ATTR,qe):me,G=Oo(F,"ALLOWED_NAMESPACES")?Zt({},F.ALLOWED_NAMESPACES,$x):_e,js=Oo(F,"ADD_URI_SAFE_ATTR")?Zt(Ja(Vs),F.ADD_URI_SAFE_ATTR,qe):Vs,ka=Oo(F,"ADD_DATA_URI_TAGS")?Zt(Ja(wo),F.ADD_DATA_URI_TAGS,qe):wo,xs=Oo(F,"FORBID_CONTENTS")?Zt({},F.FORBID_CONTENTS,qe):Hs,Ee=Oo(F,"FORBID_TAGS")?Zt({},F.FORBID_TAGS,qe):Ja({}),Fe=Oo(F,"FORBID_ATTR")?Zt({},F.FORBID_ATTR,qe):Ja({}),Dr=Oo(F,"USE_PROFILES")?F.USE_PROFILES:!1,dt=F.ALLOW_ARIA_ATTR!==!1,pt=F.ALLOW_DATA_ATTR!==!1,Hn=F.ALLOW_UNKNOWN_PROTOCOLS||!1,Lr=F.ALLOW_SELF_CLOSE_IN_ATTR!==!1,jn=F.SAFE_FOR_TEMPLATES||!1,tt=F.SAFE_FOR_XML!==!1,mt=F.WHOLE_DOCUMENT||!1,sn=F.RETURN_DOM||!1,Sn=F.RETURN_DOM_FRAGMENT||!1,Ze=F.RETURN_TRUSTED_TYPE||!1,rn=F.FORCE_BODY||!1,kn=F.SANITIZE_DOM!==!1,Tt=F.SA
vendor: 6,721 bytes, line 1
1NITIZE_NAMED_PROPS||!1,it=F.KEEP_CONTENT!==!1,gr=F.IN_PLACE||!1,ce=F.ALLOWED_URI_REGEXP||J4,Z=F.NAMESPACE||H,we=F.MATHML_TEXT_INTEGRATION_POINTS||we,ze=F.HTML_INTEGRATION_POINTS||ze,be=F.CUSTOM_ELEMENT_HANDLING||{},F.CUSTOM_ELEMENT_HANDLING&&yn(F.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(be.tagNameCheck=F.CUSTOM_ELEMENT_HANDLING.tagNameCheck),F.CUSTOM_ELEMENT_HANDLING&&yn(F.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(be.attributeNameCheck=F.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),F.CUSTOM_ELEMENT_HANDLING&&typeof F.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(be.allowCustomizedBuiltInElements=F.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),jn&&(pt=!1),Sn&&(sn=!0),Dr&&(L=Zt({},UF),re=[],Dr.html===!0&&(Zt(L,FF),Zt(re,BF)),Dr.svg===!0&&(Zt(L,Ux),Zt(re,Hx),Zt(re,nb)),Dr.svgFilters===!0&&(Zt(L,Bx),Zt(re,Hx),Zt(re,nb)),Dr.mathMl===!0&&(Zt(L,zx),Zt(re,zF),Zt(re,nb))),F.ADD_TAGS&&(typeof F.ADD_TAGS=="function"?Be.tagCheck=F.ADD_TAGS:(L===J&&(L=Ja(L)),Zt(L,F.ADD_TAGS,qe))),F.ADD_ATTR&&(typeof F.ADD_ATTR=="function"?Be.attributeCheck=F.ADD_ATTR:(re===me&&(re=Ja(re)),Zt(re,F.ADD_ATTR,qe))),F.ADD_URI_SAFE_ATTR&&Zt(js,F.ADD_URI_SAFE_ATTR,qe),F.FORBID_CONTENTS&&(xs===Hs&&(xs=Ja(xs)),Zt(xs,F.FORBID_CONTENTS,qe)),it&&(L["#text"]=!0),mt&&Zt(L,["html","head","body"]),L.table&&(Zt(L,["tbody"]),delete Ee.tbody),F.TRUSTED_TYPES_POLICY){if(typeof F.TRUSTED_TYPES_POLICY.createHTML!="function")throw $g('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof F.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $g('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=F.TRUSTED_TYPES_POLICY,k=C.createHTML("")}else C===void 0&&(C=pee(_,i)),C!==null&&typeof k=="string"&&(k=C.createHTML(""));rs&&rs(F),_t=F}},Rr=Zt({},[...Ux,...Bx,...ree]),Vn=Zt({},[...zx,...iee]),nt=function(F){let B=R(F);(!B||!B.tagName)&&(B={namespaceURI:Z,tagName:"template"});const Y=AS(F.tagName),ie=AS(B.tagName);return G[F.namespaceURI]?F.namespaceURI===sr?B.namespaceURI===H?Y==="svg":B.namespaceURI===ji?Y==="svg"&&(ie==="annotation-xml"||we[ie]):!!Rr[Y]:F.namespaceURI===ji?B.namespaceURI===H?Y==="math":B.namespaceURI===sr?Y==="math"&&ze[ie]:!!Vn[Y]:F.namespaceURI===H?B.namespaceURI===sr&&!ze[ie]||B.namespaceURI===ji&&!we[ie]?!1:!Vn[Y]&&(Ge[Y]||!Rr[Y]):!!(He==="application/xhtml+xml"&&G[F.namespaceURI]):!1},ke=function(F){Dg(t.removed,{element:F});try{R(F).removeChild(F)}catch{b(F)}},Lt=function(F,B){try{Dg(t.removed,{attribute:B.getAttributeNode(F),from:B})}catch{Dg(t.removed,{attribute:null,from:B})}if(B.removeAttribute(F),F==="is")if(sn||Sn)try{ke(B)}catch{}else try{B.setAttribute(F,"")}catch{}},un=function(F){let B=null,Y=null;if(rn)F="<remove></remove>"+F;else{const Ve=Fx(F,/^[\r\n\t ]+/);Y=Ve&&Ve[0]}He==="application/xhtml+xml"&&Z===H&&(F='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+F+"</body></html>");const ie=C?C.createHTML(F):F;if(Z===H)try{B=new m().parseFromString(ie,He)}catch{}if(!B||!B.documentElement){B=M.createDocument(Z,"template",null);try{B.documentElement.innerHTML=se?k:ie}catch{}}const Ie=B.body||B.documentElement;return F&&Y&&Ie.insertBefore(n.createTextNode(Y),Ie.childNodes[0]||null),Z===H?Q.call(B,mt?"html":"body")[0]:mt?B.documentElement:Ie},Gn=function(F){return I.call(F.ownerDocument||F,F,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},jt=function(F){return F instanceof p&&(typeof F.nodeName!="string"||typeof F.textContent!="string"||typeof F.removeChild!="function"||!(F.attributes instanceof d)||typeof F.removeAttribute!="function"||typeof F.setAttribute!="function"||typeof F.namespaceURI!="string"||typeof F.insertBefore!="function"||typeof F.hasChildNodes!="function")},Ne=function(F){return typeof a=="function"&&F instanceof a};function gt(Ae,F,B){tb(Ae,Y=>{Y.call(t,F,B,_t)})}const ht=function(F){let B=null;if(gt(N.beforeSanitizeElements,F,null),jt(F))return ke(F),!0;const Y=qe(F.nodeName);if(gt(N.uponSanitizeElement,F,{tagName:Y,allowedTags:L}),tt&&F.hasChildNodes()&&!Ne(F.firstElementChild)&&Gi(/<[/\w!]/g,F.innerHTML)&&Gi(/<[/\w!]/g,F.textContent)||F.nodeType===Ug.progressingInstruction||tt&&F.nodeType===Ug.comment&&Gi(/<[/\w]/g,F.data))return ke(F),!0;if(!(Be.tagCheck instanceof Function&&Be.tagCheck(Y))&&(!L[Y]||Ee[Y])){if(!Ee[Y]&&st(Y)&&(be.tagNameCheck instanceof RegExp&&Gi(be.tagNameCheck,Y)||be.tagNameCheck instanceof Function&&be.tagNameCheck(Y)))return!1;if(it&&!xs[Y]){const ie=R(F)||F.parentNode,Ie=T(F)||F.childNodes;if(Ie&&ie){const Ve=Ie.length;for(let xn=Ve-1;xn>=0;--xn){const vt=E(Ie[xn],!0);vt.__removalCount=(F.__removalCount||0)+1,ie.insertBefore(vt,w(F))}}}return ke(F),!0}return F instanceof l&&!nt(F)||(Y==="noscript"||Y==="noembed"||Y==="noframes")&&Gi(/<\/no(script|embed|frames)/i,F.innerHTML)?(ke(F),!0):(jn&&F.nodeType===Ug.text&&(B=F.textContent,tb([U,K,j],ie=>{B=Pg(B,ie," ")}),F.textContent!==B&&(Dg(t.removed,{element:F.cloneNode()}),F.textContent=B)),gt(N.afterSanitizeElements,F,null),!1)},ot=function(F,B,Y){if(kn&&(B==="id"||B==="name")&&(Y in n||Y in ln))return!1;if(!(pt&&!Fe[B]&&Gi(fe,B))){if(!(dt&&Gi(P,B))){if(!(Be.attributeCheck instanceof Function&&Be.attributeCheck(B,F))){if(!re[B]||Fe[B]){if(!(st(F)&&(be.tagNameCheck instanceof RegExp&&Gi(be.tagNameCheck,F)||be.tagNameCheck instanceof Function&&be.tagNameCheck(F))&&(be.attributeNameCheck instanceof RegExp&&Gi(be.attributeNameCheck,B)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(B,F))||B==="is"&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&Gi(be.tagNameCheck,Y)||be.tagNameCheck instanceof Function&&be.tagNameCheck(Y))))return!1}else if(!js[B]){if(!Gi(ce,Pg(Y,W,""))){if(!((B==="src"||B==="xlink:href"||B==="href")&&F!=="script"&&QQ(Y,"data:")===0&&ka[F])){if(!(Hn&&!Gi(ee,Pg(Y,W,"")))){if(Y)return!1}}}}}}}return!0},st=function(F){return F!=="annotation-xml"&&Fx(F,de)},yt=function(F){gt(N.beforeSanitizeAttributes,F,null);const{attributes:B}=F;if(!B||jt(F))return;const Y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:re,forceKeepAttr:void 0};let ie=B.length;for(;ie--;){const Ie=B[ie],{name:Ve,namespaceURI:xn,value:vt}=Ie,Sr=qe(Ve),di=vt;let fn=Ve==="value"?di:eee(di);if(Y.attrName=Sr,Y.attrValue=fn,Y.keepAttr=!0,Y.forceKeepAttr=void 0,gt(N.uponSanitizeAttribute,F,Y),fn=Y.attrValue,Tt&&(Sr==="id"||Sr==="name")&&(Lt(Ve,F),fn=Kn+fn),tt&&Gi(/((--!?|])>)|<\/(style|title|textarea)/i,fn)){Lt(Ve,F);continue}if(Sr==="attributename"&&Fx(fn,"href")){Lt(Ve,F);continue}if(Y.forceKeepAttr)continue;if(!Y.keepAttr){Lt(Ve,F);continue}if(!Lr&&Gi(/\/>/i,fn)){Lt(Ve,F);continue}jn&&tb([U,K,j],Re=>{fn=Pg(fn,Re," ")});const Gs=qe(F.nodeName);
1if(!ot(Gs,Sr,fn)){Lt(Ve,F);continue}if(C&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!xn)switch(_.getAttributeType(Gs,Sr)){case"TrustedHTML":{fn=C.createHTML(fn);break}case"TrustedScriptURL":{fn=C.createScriptURL(fn);break}}if(fn!==di)try{xn?F.setAttributeNS(xn,Ve,fn):F.setAttribute(Ve,fn),jt(F)?ke(F):$F(t.removed)}catch{Lt(Ve,F)}}gt(N.afterSanitizeAttributes,F,null)},Yr=function Ae(F){let B=null;const Y=Gn(F);for(gt(N.beforeSanitizeShadowDOM,F,null);B=Y.nextNode();)gt(N.uponSanitizeShadowNode,B,null),ht(B),yt(B),B.content instanceof s&&Ae(B.content);gt(N.afterSanitizeShadowDOM,F,null)};return t.sanitize=function(Ae){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=null,Y=null,ie=null,Ie=null;if(se=!Ae,se&&(Ae="<!-->"),typeof Ae!="string"&&!Ne(Ae))if(typeof Ae.toString=="function"){if(Ae=Ae.toString(),typeof Ae!="string")throw $g("dirty is not a string, aborting")}else throw $g("toString is not a function");if(!t.isSupported)return Ae;if(vn||Ar(F),t.removed=[],typeof Ae=="string"&&(gr=!1),gr){if(Ae.nodeName){const vt=qe(Ae.nodeName);if(!L[vt]||Ee[vt])throw $g("root node is forbidden and cannot be sanitized in-place")}}else if(Ae instanceof a)B=un("<!---->"),Y=B.ownerDocument.importNode(Ae,!0),Y.nodeType===Ug.element&&Y.nodeName==="BODY"||Y.nodeName==="HTML"?B=Y:B.appendChild(Y);else{if(!sn&&!jn&&!mt&&Ae.indexOf("<")===-1)return C&&Ze?C.createHTML(Ae):Ae;if(B=un(Ae),!B)return sn?null:Ze?k:""}B&&rn&&ke(B.firstChild);const Ve=Gn(gr?Ae:B);for(;ie=Ve.nextNode();)ht(ie),yt(ie),ie.content instanceof s&&Yr(ie.content);if(gr)return Ae;if(sn){if(Sn)for(Ie=$.call(B.ownerDocument);B.firstChild;)Ie.appendChild(B.firstChild);else Ie=B;return(re.shadowroot||re.shadowrootmode)&&(Ie=V.call(r,Ie,!0)),Ie}let xn=mt?B.outerHTML:B.innerHTML;return mt&&L["!doctype"]&&B.ownerDocument&&B.ownerDocument.doctype&&B.ownerDocument.doctype.name&&Gi(Q4,B.ownerDocument.doctype.name)&&(xn="<!DOCTYPE "+B.ownerDocument.doctype.name+`>
2`+xn),jn&&tb([U,K,j],vt=>{xn=Pg(xn,vt," ")}),C&&Ze?C.createHTML(xn):xn},t.setConfig=function(){let Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ar(Ae),vn=!0},t.clearConfig=function(){_t=null,vn=!1},t.isValidAttribute=function(Ae,F,B){_t||Ar({});const Y=qe(Ae),ie=qe(F);return ot(Y,ie,B)},t.addHook=function(Ae,F){typeof F=="function"&&Dg(N[Ae],F)},t.removeHook=function(Ae,F){if(F!==void 0){const B=ZQ(N[Ae],F);return B===-1?void 0:JQ(N[Ae],B,1)[0]}return $F(N[Ae])},t.removeHooks=function(Ae){N[Ae]=[]},t.removeAllHooks=function(){N=jF()},t}var VF=e6();function gee(e){return typeof e=="object"&&e!==null&&"toString"in e&&typeof e.toString=="function"}const mee="[object Object]";function Dh(e){if(typeof e>"u")return"undefined";if(typeof e=="string")return e;if(e instanceof Error)return e.message;if(Array.isArray(e))return JSON.stringify(e);if(gee(e))try{const t=e.toString();if(typeof t=="string"&&t!==mee)return t}catch{}return JSON.stringify(e)}function _ee(e,t){return e-t}function vee(e,t){if(typeof e=="number"&&typeof t=="number")return _ee(e,t);const n=Dh(e),r=Dh(t);return n.localeCompare(r)}function t6(e){return function(n,r){const i=n[e],s=r[e];return vee(i,s)}}function t_(e){return e}function yee(e){return function(n){return e===n}}function bee(e){return function(...n){return!e(...n)}}function See(e){return bee(yee(e))}function kR(e){return typeof e=="number"}function p0(e){return typeof e=="object"&&e!==null}function n6(e){return p0(e)}function IR(e){return typeof e>"u"}function r6(e){return Object.entries(e)}new TextEncoder;function jx(e,t){return e.localeCompare(t)}const Eee=0,i6=t6(Eee);typeof window.trustedTypes<"u"&&window.trustedTypes.createPolicy("quisido",{createHTML:VF.sanitize.bind(VF),createScript:t_,createScriptURL:t_});function wee(e,t){const n=window.document.createElement("script");n.dataset.cfBeacon=JSON.stringify({token:e}),n.defer=!0,n.setAttribute("crossorigin","anonymous"),n.setAttribute("nonce",t),n.setAttribute("src","https://static.cloudflareinsights.com/beacon.min.js"),n.setAttribute("type","text/javascript");const r=window.document.createElement("link");r.setAttribute("href","https://cloudflareinsights.com"),r.setAttribute("rel","preconnect"),window.document.head.appendChild(n)}var Ao=(e=>(e[e.Bold=700]="Bold",e[e.Normal=400]="Normal",e))(Ao||{});
2const Tee=0,xee=t6(Tee),s6=([e,t])=>{if(typeof t=="number")return s6([e,[t]]);const n=e.replaceAll("_"," "),r=t.join(";");return`${n}:wght@${r}`};class Cee extends URLSearchParams{constructor(t){super({display:"swap"});const n=Object.entries(t).sort(xee);for(const r of n){const i=s6(r);this.append("family",i)}}}function Aee(e,t){const r=new Cee(e).toString(),i=window.document.createElement("link");i.setAttribute("crossorigin","anonymous"),i.setAttribute("href",`https://fonts.googleapis.com/css2?${r}`),i.setAttribute("nonce",t),i.setAttribute("rel","stylesheet"),window.document.head.appendChild(i)}const o6=Object.freeze([]),Ree=0,kee=e=>{const t=typeof e;return t==="undefined"?"undefined":`${t} ${JSON.stringify(e)}`};function Iee(e,t,n,r=o6){if(e)return;const i=kee(t);if(r.length===Ree)throw new Error(`Expected ${n}, but received ${i}.`);const s=r.join(".");throw new Error(`Expected property "${s}" to be ${n}, but received ${i}.`)}function ct(e,t=o6){return Iee(typeof e=="string",e,"a string",t),e}wee(ct("f9703ac5039848f8abd3ab107a208a83"),"nonce-quisido");Aee({Cairo_Play:[Ao.Normal,Ao.Bold],Merienda:[Ao.Normal,Ao.Bold],Noto_Color_Emoji:Ao.Normal,Noto_Sans:[Ao.Normal,Ao.Bold],Noto_Sans_Display:Ao.Bold,Pangolin:Ao.Normal,Protest_Revolution:Ao.Normal},"nonce-quisido");function a6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vx={exports:{}},Bg={};var GF;function Oee(){if(GF)return Bg;GF=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var o=null;if(s!==void 0&&(o=""+s),i.key!==void 0&&(o=""+i.key),"key"in i){s={};for(var a in i)a!=="key"&&(s[a]=i[a])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:o,ref:i!==void 0?i:null,props:s}}return Bg.Fragment=t,Bg.jsx=n,Bg.jsxs=n,Bg}var qF;function Mee(){return qF||(qF=1,Vx.exports=Oee()),Vx.exports}var q=Mee(),Gx={exports:{}},Ct={};var WF;function Nee(){if(WF)return Ct;WF=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),m=Symbol.iterator;function _(L){return L===null||typeof L!="object"?null:(L=m&&L[m]||L["@@iterator"],typeof L=="function"?L:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,b={};function w(L,J,re){this.props=L,this.context=J,this.refs=b,this.updater=re||v}w.prototype.isReactComponent={},w.prototype.setState=function(L,J){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,J,"setState")},w.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function T(){}T.prototype=w.prototype;function R(L,J,re){this.props=L,this.context=J,this.refs=b,this.updater=re||v}var C=R.prototype=new T;C.constructor=R,E(C,w.prototype),C.isPureReactComponent=!0;var k=Array.isArray;function M(){}var I={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function Q(L,J,re){var me=re.ref;return{$$typeof:e,type:L,key:J,ref:me!==void 0?me:null,props:re}}function V(L,J){return Q(L.type,J,L.props)}function N(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function U(L){var J={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(re){return J[re]})}var K=/\/+/g;function j(L,J){return typeof L=="object"&&L!==null&&L.key!=null?U(""+L.key):J.toString(36)}function fe(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(M,M):(L.status="pending",L.then(function(J){L.status==="pending"&&(L.status="fulfilled",L.value=J)},function(J){L.status==="pending"&&(L.status="rejected",L.reason=J)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function P(L,J,re,me,be){var Ee=typeof L;(Ee==="undefined"||Ee==="boolean")&&(L=null);var Fe=!1;if(L===null)Fe=!0;else switch(Ee){case"bigint":case"string":case"number":Fe=!0;break;case"object":switch(L.$$typeof){case e:case t:Fe=!0;break;case d:return Fe=L._init,P(Fe(L._payload),J,re,me,be)}}if(Fe)return be=be(L),Fe=me===""?"."+j(L,0):me,k(be)?(re="",Fe!=null&&(re=Fe.replace(K,"$&/")+"/"),P(be,J,re,"",function(pt){return pt})):be!=null&&(N(be)&&(be=V(be,re+(be.key==null||L&&L.key===be.key?"":(""+be.key).replace(K,"$&/")+"/")+Fe)),J.push(be)),1;Fe=0;var Be=me===""?".":me+":";if(k(L))for(var dt=0;dt<L.length;dt++)me=L[dt],Ee=Be+j(me,dt),Fe+=P(me,J,re,Ee,be);else if(dt=_(L),typeof dt=="function")for(L=dt.call(L),dt=0;!(me=L.next()).done;)me=me.value,Ee=Be+j(me,dt++),Fe+=P(me,J,re,Ee,be);else if(Ee==="object"){if(typeof L.then=="function")return P(fe(L),J,re,me,be);throw J=String(L),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return Fe}function ee(L,J,re){if(L==null)return L;var me=[],be=0;return P(L,me,"","",function(Ee){return J.call(re,Ee,be++)}),me}function W(L){if(L._status===-1){var J=L._result;J=J(),J.then(function(re){(L._status===0||L._status===-1)&&(L._status=1,L._result=re)},function(re){(L._status===0||L._status===-1)&&(L._status=2,L._result=re)}),L._status===-1&&(L._status=0,L._result=J)}if(L._status===1)return L._result.default;throw L._result}var de=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},ce={map:ee,forEach:function(L,J,re){ee(L,function(){J.apply(this,arguments)},re)},count:function(L){var J=0;return ee(L,function(){J++}),J},toArray:function(L){return ee(L,function(J){return J})||[]},only:function(L){if(!N(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Ct.Activity=p,Ct.Children=ce,Ct.Component=w,Ct.Fragment=n,Ct.Profiler=i,Ct.PureComponent=R,Ct.StrictMode=r,Ct.Suspense=l,Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Ct.__COMPILER_RUNTIME={__proto__:null,c:function(L){return I.H.useMemoCache(L)}},Ct.cache=function(L){return function(){return L.apply(null,arguments)}},Ct.cacheSignal=function(){return null},Ct.cloneElement=function(L,J,re){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var me=E({},L.props),be=L.key;if(J!=null)for(Ee in J.key!==void 0&&(be=""+J.key),J)!$.call(J,Ee)||Ee==="
2key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&J.ref===void 0||(me[Ee]=J[Ee]);var Ee=arguments.length-2;if(Ee===1)me.children=re;else if(1<Ee){for(var Fe=Array(Ee),Be=0;Be<Ee;Be++)Fe[Be]=arguments[Be+2];me.children=Fe}return Q(L.type,be,me)},Ct.createContext=function(L){return L={$$typeof:o,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:s,_context:L},L},Ct.createElement=function(L,J,re){var me,be={},Ee=null;if(J!=null)for(me in J.key!==void 0&&(Ee=""+J.key),J)$.call(J,me)&&me!=="key"&&me!=="__self"&&me!=="__source"&&(be[me]=J[me]);var Fe=arguments.length-2;if(Fe===1)be.children=re;else if(1<Fe){for(var Be=Array(Fe),dt=0;dt<Fe;dt++)Be[dt]=arguments[dt+2];be.children=Be}if(L&&L.defaultProps)for(me in Fe=L.defaultProps,Fe)be[me]===void 0&&(be[me]=Fe[me]);return Q(L,Ee,be)},Ct.createRef=function(){return{current:null}},Ct.forwardRef=function(L){return{$$typeof:a,render:L}},Ct.isValidElement=N,Ct.lazy=function(L){return{$$typeof:d,_payload:{_status:-1,_result:L},_init:W}},Ct.memo=function(L,J){return{$$typeof:f,type:L,compare:J===void 0?null:J}},Ct.startTransition=function(L){var J=I.T,re={};I.T=re;try{var me=L(),be=I.S;be!==null&&be(re,me),typeof me=="object"&&me!==null&&typeof me.then=="function"&&me.then(M,de)}catch(Ee){de(Ee)}finally{J!==null&&re.types!==null&&(J.types=re.types),I.T=J}},Ct.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Ct.use=function(L){return I.H.use(L)},Ct.useActionState=function(L,J,re){return I.H.useActionState(L,J,re)},Ct.useCallback=function(L,J){return I.H.useCallback(L,J)},Ct.useContext=function(L){return I.H.useContext(L)},Ct.useDebugValue=function(){},Ct.useDeferredValue=function(L,J){return I.H.useDeferredValue(L,J)},Ct.useEffect=function(L,J){return I.H.useEffect(L,J)},Ct.useEffectEvent=function(L){return I.H.useEffectEvent(L)},Ct.useId=function(){return I.H.useId()},Ct.useImperativeHandle=function(L,J,re){return I.H.useImperativeHandle(L,J,re)},Ct.useInsertionEffect=function(L,J){return I.H.useInsertionEffect(L,J)},Ct.useLayoutEffect=function(L,J){return I.H.useLayoutEffect(L,J)},Ct.useMemo=function(L,J){return I.H.useMemo(L,J)},Ct.useOptimistic=function(L,J){return I.H.useOptimistic(L,J)},Ct.useReducer=function(L,J,re){return I.H.useReducer(L,J,re)},Ct.useRef=function(L){return I.H.useRef(L)},Ct.useState=function(L){return I.H.useState(L)},Ct.useSyncExternalStore=function(L,J,re){return I.H.useSyncExternalStore(L,J,re)},Ct.useTransition=function(){return I.H.useTransition()},Ct.version="19.2.0",Ct}var YF;function TO(){return YF||(YF=1,Gx.exports=Nee()),Gx.exports}var D=TO();const la=a6(D);function Lee(e,t){const n=new Set(Object.values(e)),r=i=>Set.prototype.has.call(n,i);return{isType:r,validateType(i){if(r(i))return i;throw new Error(`Expected ${t}, but received ${typeof i} ${JSON.stringify(i)}`)}}}var Lo=(e=>(e.Arabic="ar-EG",e.English="en-US",e.Spanish="es-ES",e.Filipino="fil-PH",e.Japanese="ja-JP",e))(Lo||{});Lee(Lo,"a locale");var qx={exports:{}},zg={},Wx={exports:{}},Yx={};var XF;function Dee(){return XF||(XF=1,(function(e){function t(P,ee){var W=P.length;P.push(ee);e:for(;0<W;){var de=W-1>>>1,ce=P[de];if(0<i(ce,ee))P[de]=ee,P[W]=ce,W=de;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var ee=P[0],W=P.pop();if(W!==ee){P[0]=W;e:for(var de=0,ce=P.length,L=ce>>>1;de<L;){var J=2*(de+1)-1,re=P[J],me=J+1,be=P[me];if(0>i(re,W))me<ce&&0>i(be,re)?(P[de]=be,P[me]=W,de=me):(P[de]=re,P[J]=W,de=J);else if(me<ce&&0>i(be,W))P[de]=be,P[me]=W,de=me;else break e}}return ee}function i(P,ee){var W=P.sortIndex-ee.sortIndex;return W!==0?W:P.id-ee.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],f=[],d=1,p=null,m=3,_=!1,v=!1,E=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function C(P){for(var ee=n(f);ee!==null;){if(ee.callback===null)r(f);else if(ee.startTime<=P)r(f),ee.sortIndex=ee.expirationTime,t(l,ee);else break;ee=n(f)}}function k(P){if(E=!1,C(P),!v)if(n(l)!==null)v=!0,M||(M=!0,U());else{var ee=n(f);ee!==null&&fe(k,ee.startTime-P)}}var M=!1,I=-1,$=5,Q=-1;function V(){return b?!0:!(e.unstable_now()-Q<$)}function N(){if(b=!1,M){var P=e.unstable_now();Q=P;var ee=!0;try{e:{v=!1,E&&(E=!1,T(I),I=-1),_=!0;var W=m;try{t:{for(C(P),p=n(l);p!==null&&!(p.expirationTime>P&&V());){var de=p.callback;if(typeof de=="function"){p.callback=null,m=p.priorityLevel;var ce=de(p.expirationTime<=P);if(P=e.unstable_now(),typeof ce=="function"){p.callback=ce,C(P),ee=!0;break t}p===n(l)&&r(l),C(P)}else r(l);p=n(l)}if(p!==null)ee=!0;else{var L=n(f);L!==null&&fe(k,L.startTime-P),ee=!1}}break e}finally{p=null,m=W,_=!1}ee=void 0}}finally{ee?U():M=!1}}}var U;if(typeof R=="function")U=function(){R(N)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,j=K.port2;K.port1.onmessage=N,U=function(){j.postMessage(null)}}else U=function(){w(N,0)};function fe(P,ee){I=w(function(){P(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_next=function(P){switch(m){case 1:case 2:case 3:var ee=3;break;default:ee=m}var W=m;m=ee;try{return P()}finally{m=W}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(P,ee){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var W=m;m=P;try{return ee()}finally{m=W}},e.unstable_scheduleCallback=function(P,ee,W){var de=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?de+W:de):W=de,P){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}
vendor: 4,625 bytes, line 2
2return ce=W+ce,P={id:d++,callback:ee,priorityLevel:P,startTime:W,expirationTime:ce,sortIndex:-1},W>de?(P.sortIndex=W,t(f,P),n(l)===null&&P===n(f)&&(E?(T(I),I=-1):E=!0,fe(k,W-de))):(P.sortIndex=ce,t(l,P),v||_||(v=!0,M||(M=!0,U()))),P},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(P){var ee=m;return function(){var W=m;m=ee;try{return P.apply(this,arguments)}finally{m=W}}}})(Yx)),Yx}var KF;function Pee(){return KF||(KF=1,Wx.exports=Dee()),Wx.exports}var Xx={exports:{}},Ii={};var ZF;function $ee(){if(ZF)return Ii;ZF=1;var e=TO();function t(l){var f="https://react.dev/errors/"+l;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)f+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+l+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(l,f,d){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:l,containerInfo:f,implementation:d}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(l,f){if(l==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Ii.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ii.createPortal=function(l,f){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(l,f,null,d)},Ii.flushSync=function(l){var f=o.T,d=r.p;try{if(o.T=null,r.p=2,l)return l()}finally{o.T=f,r.p=d,r.d.f()}},Ii.preconnect=function(l,f){typeof l=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(l,f))},Ii.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},Ii.preinit=function(l,f){if(typeof l=="string"&&f&&typeof f.as=="string"){var d=f.as,p=a(d,f.crossOrigin),m=typeof f.integrity=="string"?f.integrity:void 0,_=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;d==="style"?r.d.S(l,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:m,fetchPriority:_}):d==="script"&&r.d.X(l,{crossOrigin:p,integrity:m,fetchPriority:_,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Ii.preinitModule=function(l,f){if(typeof l=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var d=a(f.as,f.crossOrigin);r.d.M(l,{crossOrigin:d,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(l)},Ii.preload=function(l,f){if(typeof l=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var d=f.as,p=a(d,f.crossOrigin);r.d.L(l,d,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Ii.preloadModule=function(l,f){if(typeof l=="string")if(f){var d=a(f.as,f.crossOrigin);r.d.m(l,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:d,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(l)},Ii.requestFormReset=function(l){r.d.r(l)},Ii.unstable_batchedUpdates=function(l,f){return l(f)},Ii.useFormState=function(l,f,d){return o.H.useFormState(l,f,d)},Ii.useFormStatus=function(){return o.H.useHostTransitionStatus()},Ii.version="19.2.0",Ii}var JF;function c6(){if(JF)return Xx.exports;JF=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Xx.exports=$ee(),Xx.exports}var QF;function Fee(){if(QF)return zg;QF=1;var e=Pee(),t=TO(),n=c6();function r(c){var u="https://react.dev/errors/"+c;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)u+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+c+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)}function s(c){var u=c,h=c;
vendor: 10,940 bytes, lines 2-9
2if(c.alternate)for(;u.return;)u=u.return;else{c=u;do u=c,(u.flags&4098)!==0&&(h=u.return),c=u.return;while(c)}return u.tag===3?h:null}function o(c){if(c.tag===13){var u=c.memoizedState;if(u===null&&(c=c.alternate,c!==null&&(u=c.memoizedState)),u!==null)return u.dehydrated}return null}function a(c){if(c.tag===31){var u=c.memoizedState;if(u===null&&(c=c.alternate,c!==null&&(u=c.memoizedState)),u!==null)return u.dehydrated}return null}function l(c){if(s(c)!==c)throw Error(r(188))}function f(c){var u=c.alternate;if(!u){if(u=s(c),u===null)throw Error(r(188));return u!==c?null:c}for(var h=c,g=u;;){var y=h.return;if(y===null)break;var S=y.alternate;if(S===null){if(g=y.return,g!==null){h=g;continue}break}if(y.child===S.child){for(S=y.child;S;){if(S===h)return l(y),c;if(S===g)return l(y),u;S=S.sibling}throw Error(r(188))}if(h.return!==g.return)h=y,g=S;else{for(var x=!1,O=y.child;O;){if(O===h){x=!0,h=y,g=S;break}if(O===g){x=!0,g=y,h=S;break}O=O.sibling}if(!x){for(O=S.child;O;){if(O===h){x=!0,h=S,g=y;break}if(O===g){x=!0,g=S,h=y;break}O=O.sibling}if(!x)throw Error(r(189))}}if(h.alternate!==g)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?c:u}function d(c){var u=c.tag;if(u===5||u===26||u===27||u===6)return c;for(c=c.child;c!==null;){if(u=d(c),u!==null)return u;c=c.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),R=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),N=Symbol.iterator;function U(c){return c===null||typeof c!="object"?null:(c=N&&c[N]||c["@@iterator"],typeof c=="function"?c:null)}var K=Symbol.for("react.client.reference");function j(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===K?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case E:return"Fragment";case w:return"Profiler";case b:return"StrictMode";case k:return"Suspense";case M:return"SuspenseList";case Q:return"Activity"}if(typeof c=="object")switch(c.$$typeof){case v:return"Portal";case R:return c.displayName||"Context";case T:return(c._context.displayName||"Context")+".Consumer";case C:var u=c.render;return c=c.displayName,c||(c=u.displayName||u.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case I:return u=c.displayName||null,u!==null?u:j(c.type)||"Memo";case $:u=c._payload,c=c._init;try{return j(c(u))}catch{}}return null}var fe=Array.isArray,P=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},de=[],ce=-1;function L(c){return{current:c}}function J(c){0>ce||(c.current=de[ce],de[ce]=null,ce--)}function re(c,u){ce++,de[ce]=c.current,c.current=u}var me=L(null),be=L(null),Ee=L(null),Fe=L(null);function Be(c,u){switch(re(Ee,u),re(be,c),re(me,null),u.nodeType){case 9:case 11:c=(c=u.documentElement)&&(c=c.namespaceURI)?iF(c):0;break;default:if(c=u.tagName,u=u.namespaceURI)u=iF(u),c=sF(u,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}J(me),re(me,c)}function dt(){J(me),J(be),J(Ee)}function pt(c){c.memoizedState!==null&&re(Fe,c);var u=me.current,h=sF(u,c.type);u!==h&&(re(be,c),re(me,h))}function Hn(c){be.current===c&&(J(me),J(be)),Fe.current===c&&(J(Fe),Og._currentValue=W)}var Lr,jn;function tt(c){if(Lr===void 0)try{throw Error()}catch(h){var u=h.stack.trim().match(/\n( *(at )?)/);Lr=u&&u[1]||"",jn=-1<h.stack.indexOf(`
3    at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
4`+Lr+c+jn}var mt=!1;function vn(c,u){if(!c||mt)return"";mt=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(u){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(pe){var le=pe}Reflect.construct(c,[],Se)}else{try{Se.call()}catch(pe){le=pe}c.call(Se.prototype)}}else{try{throw Error()}catch(pe){le=pe}(Se=c())&&typeof Se.catch=="function"&&Se.catch(function(){})}}catch(pe){if(pe&&le&&typeof pe.stack=="string")return[pe.stack,le.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=g.DetermineComponentFrameRoot(),x=S[0],O=S[1];if(x&&O){var z=x.split(`
5`),ae=O.split(`
6`);for(y=g=0;g<z.length&&!z[g].includes("DetermineComponentFrameRoot");)g++;for(;y<ae.length&&!ae[y].includes("DetermineComponentFrameRoot");)y++;if(g===z.length||y===ae.length)for(g=z.length-1,y=ae.length-1;1<=g&&0<=y&&z[g]!==ae[y];)y--;for(;1<=g&&0<=y;g--,y--)if(z[g]!==ae[y]){if(g!==1||y!==1)do if(g--,y--,0>y||z[g]!==ae[y]){var ve=`
7`+z[g].replace(" at new "," at ");return c.displayName&&ve.includes("<anonymous>")&&(ve=ve.replace("<anonymous>",c.displayName)),ve}while(1<=g&&0<=y);break}}}finally{mt=!1,Error.prepareStackTrace=h}return(h=c?c.displayName||c.name:"")?tt(h):""}function rn(c,u){switch(c.tag){case 26:case 27:case 5:return tt(c.type);case 16:return tt("Lazy");case 13:return c.child!==u&&u!==null?tt("Suspense Fallback"):tt("Suspense");case 19:return tt("SuspenseList");case 0:case 15:return vn(c.type,!1);case 11:return vn(c.type.render,!1);case 1:return vn(c.type,!0);case 31:return tt("Activity");default:return""}}function sn(c){try{var u="",h=null;do u+=rn(c,h),h=c,c=c.return;while(c);return u}catch(g){return`
8Error generating stack: `+g.message+`
9`+g.stack}}var Sn=Object.prototype.hasOwnProperty,Ze=e.unstable_scheduleCallback,kn=e.unstable_cancelCallback,Tt=e.unstable_shouldYield,Kn=e.unstable_requestPaint,it=e.unstable_now,gr=e.unstable_getCurrentPriorityLevel,Dr=e.unstable_ImmediatePriority,xs=e.unstable_UserBlockingPriority,Hs=e.unstable_NormalPriority,ka=e.unstable_LowPriority,wo=e.unstable_IdlePriority,js=e.log,Vs=e.unstable_setDisableYieldValue,ji=null,sr=null;function H(c){if(typeof js=="function"&&Vs(c),sr&&typeof sr.setStrictMode=="function")try{sr.setStrictMode(ji,c)}catch{}}var Z=Math.clz32?Math.clz32:_e,se=Math.log,G=Math.LN2;function _e(c){return c>>>=0,c===0?32:31-(se(c)/G|0)|0}var we=256,ze=262144,Ge=4194304;function He(c){var u=c&42;if(u!==0)return u;switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return c&261888;case 262144:case 524288:case 1048576:case 2097152:return c&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return c&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return c}}function lt(c,u,h){var g=c.pendingLanes;if(g===0)return 0;var y=0,S=c.suspendedLanes,x=c.pingedLanes;c=c.warmLanes;var O=g&134217727;return O!==0?(g=O&~S,g!==0?y=He(g):(x&=O,x!==0?y=He(x):h||(h=O&~c,h!==0&&(y=He(h))))):(O=g&~S,O!==0?y=He(O):x!==0?y=He(x):h||(h=g&~c,h!==0&&(y=He(h)))),y===0?0:u!==0&&u!==y&&(u&S)===0&&(S=y&-y,h=u&-u,S>=h||S===32&&(h&4194048)!==0)?u:y}function je(c,u){return(c.pendingLanes&~(c.suspendedLanes&~c.pingedLanes)&u)===0}function qe(c,u){switch(c){case 1:case 2:case 4:case 8:case 64:return u+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _t(){var c=Ge;return Ge<<=1,(Ge&62914560)===0&&(Ge=4194304),c}function ln(c){for(var u=[],h=0;31>h;h++)u.push(c);return u}function yn(c,u){c.pendingLanes|=u,u!==268435456&&(c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0)}function Ar(c,u,h,g,y,S){var x=c.pendingLanes;c.pendingLanes=h,c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0,c.expiredLanes&=h,c.entangledLanes&=h,c.errorRecoveryDisabledLanes&=h,c.shellSuspendCounter=0;var O=c.entanglements,z=c.expirationTimes,ae=c.hiddenUpdates;for(h=x&~h;0<h;){var ve=31-Z(h),Se=1<<ve;O[ve]=0,z[ve]=-1;var le=ae[ve];if(le!==null)for(ae[ve]=null,ve=0;ve<le.length;ve++){var pe=le[ve];pe!==null&&(pe.lane&=-536870913)}h&=~Se}g!==0&&Rr(c,g,0),S!==0&&y===0&&c.tag!==0&&(c.suspendedLanes|=S&~(x&~u))}function Rr(c,u,h){c.pendingLanes|=u,c.suspendedLanes&=~u;var g=31-Z(u);c.entangledLanes|=u,c.entanglements[g]=c.entanglements[g]|1073741824|h&261930}function Vn(c,u){var h=c.entangledLanes|=u;for(c=c.entanglements;h;){var g=31-Z(h),y=1<<g;y&u|c[g]&u&&(c[g]|=u),h&=~y}}function nt(c,u){var h=u&-u;return h=(h&42)!==0?1:ke(h),(h&(c.suspendedLanes|u))!==0?0:h}function ke(c){switch(c){case 2:c=1;break;case 8:c=4;break;case 32:c=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:c=128;break;case 268435456:c=134217728;break;default:c=0}return c}function Lt(c){return c&=-c,2<c?8<c?(c&134217727)!==0?32:268435456:8:2}function un(){var c=ee.p;return c!==0?c:(c=window.event,c===void 0?32:RF(c.type))}function Gn(c,u){var h=ee.p;try{return ee.p=c,u()}finally{ee.p=h}}var jt=Math.random().toString(36).slice(2),Ne="__reactFiber$"+jt,gt="__reactProps$"+jt,ht="__reactContainer$"+jt,ot="__reactEvents$"+jt,st="__reactListeners$"+jt,yt="__reactHandles$"+jt,Yr="__reactResources$"+jt,Ae="__reactMarker$"+jt;function F(c){delete c[Ne],delete c[gt],delete c[ot],delete c[st],delete c[yt]}function B(c){var u=c[Ne];if(u)return u;for(var h=c.parentNode;h;){if(u=h[ht]||h[Ne]){if(h=u.alternate,u.child!==null||h!==null&&h.child!==null)for(c=dF(c);c!==null;){if(h=c[Ne])return h;c=dF(c)}return u}c=h,h=c.parentNode}return null}function Y(c){if(c=c[Ne]||c[ht]){var u=c.tag;if(u===5||u===6||u===13||u===31||u===26||u===27||u===3)return c}return null}function ie(c){var u=c.tag;if(u===5||u===26||u===27||u===6)return c.stateNode;throw Error(r(33))}function Ie(c){var u=c[Yr];return u||(u=c[Yr]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function Ve(c){c[Ae]=!0}var xn=new Set,vt={};function Sr(c,u){di(c,u),di(c+"Capture",u)}function di(c,u){for(vt[c]=u,c=0;c<u.length;c++)xn.add(u[c])}var fn=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
9037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Gs={},Re={};function Ce(c){return Sn.call(Re,c)?!0:Sn.call(Gs,c)?!1:fn.test(c)?Re[c]=!0:(Gs[c]=!0,!1)}function he(c,u,h){if(Ce(u))if(h===null)c.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":c.removeAttribute(u);return;case"boolean":var g=u.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){c.removeAttribute(u);return}}c.setAttribute(u,""+h)}}function xe(c,u,h){if(h===null)c.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(u);return}c.setAttribute(u,""+h)}}function Ke(c,u,h,g){if(g===null)c.removeAttribute(h);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(h);return}c.setAttributeNS(u,h,""+g)}}function Qe(c){switch(typeof c){case"bigint":case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function et(c){var u=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Dt(c,u,h){var g=Object.getOwnPropertyDescriptor(c.constructor.prototype,u);if(!c.hasOwnProperty(u)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var y=g.get,S=g.set;return Object.defineProperty(c,u,{configurable:!0,get:function(){return y.call(this)},set:function(x){h=""+x,S.call(this,x)}}),Object.defineProperty(c,u,{enumerable:g.enumerable}),{getValue:function(){return h},setValue:function(x){h=""+x},stopTracking:function(){c._valueTracker=null,delete c[u]}}}}function kt(c){if(!c._valueTracker){var u=et(c)?"checked":"value";c._valueTracker=Dt(c,u,""+c[u])}}function Pt(c){if(!c)return!1;var u=c._valueTracker;if(!u)return!0;var h=u.getValue(),g="";return c&&(g=et(c)?c.checked?"true":"false":c.value),c=g,c!==h?(u.setValue(c),!0):!1}function Cn(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}var $n=/[\n"\\]/g;function Pr(c){return c.replace($n,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function os(c,u,h,g,y,S,x,O){c.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?c.type=x:c.removeAttribute("type"),u!=null?x==="number"?(u===0&&c.value===""||c.value!=u)&&(c.value=""+Qe(u)):c.value!==""+Qe(u)&&(c.value=""+Qe(u)):x!=="submit"&&x!=="reset"||c.removeAttribute("value"),u!=null?bu(c,x,Qe(u)):h!=null?bu(c,x,Qe(h)):g!=null&&c.removeAttribute("value"),y==null&&S!=null&&(c.defaultChecked=!!S),y!=null&&(c.checked=y&&t
vendor: 5,691 bytes, line 9
9ypeof y!="function"&&typeof y!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?c.name=""+Qe(O):c.removeAttribute("name")}function Ia(c,u,h,g,y,S,x,O){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(c.type=S),u!=null||h!=null){if(!(S!=="submit"&&S!=="reset"||u!=null)){kt(c);return}h=h!=null?""+Qe(h):"",u=u!=null?""+Qe(u):h,O||u===c.value||(c.value=u),c.defaultValue=u}g=g??y,g=typeof g!="function"&&typeof g!="symbol"&&!!g,c.checked=O?c.checked:!!g,c.defaultChecked=!!g,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(c.name=x),kt(c)}function bu(c,u,h){u==="number"&&Cn(c.ownerDocument)===c||c.defaultValue===""+h||(c.defaultValue=""+h)}function Oa(c,u,h,g){if(c=c.options,u){u={};for(var y=0;y<h.length;y++)u["$"+h[y]]=!0;for(h=0;h<c.length;h++)y=u.hasOwnProperty("$"+c[h].value),c[h].selected!==y&&(c[h].selected=y),y&&g&&(c[h].defaultSelected=!0)}else{for(h=""+Qe(h),u=null,y=0;y<c.length;y++){if(c[y].value===h){c[y].selected=!0,g&&(c[y].defaultSelected=!0);return}u!==null||c[y].disabled||(u=c[y])}u!==null&&(u.selected=!0)}}function Gv(c,u,h){if(u!=null&&(u=""+Qe(u),u!==c.value&&(c.value=u),h==null)){c.defaultValue!==u&&(c.defaultValue=u);return}c.defaultValue=h!=null?""+Qe(h):""}function od(c,u,h,g){if(u==null){if(g!=null){if(h!=null)throw Error(r(92));if(fe(g)){if(1<g.length)throw Error(r(93));g=g[0]}h=g}h==null&&(h=""),u=h}h=Qe(u),c.defaultValue=h,g=c.textContent,g===h&&g!==""&&g!==null&&(c.value=g),kt(c)}function Ma(c,u){if(u){var h=c.firstChild;if(h&&h===c.lastChild&&h.nodeType===3){h.nodeValue=u;return}}c.textContent=u}var Bc=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Wp(c,u,h){var g=u.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?g?c.setProperty(u,""):u==="float"?c.cssFloat="":c[u]="":g?c.setProperty(u,h):typeof h!="number"||h===0||Bc.has(u)?u==="float"?c.cssFloat=h:c[u]=(""+h).trim():c[u]=h+"px"}function Su(c,u,h){if(u!=null&&typeof u!="object")throw Error(r(62));if(c=c.style,h!=null){for(var g in h)!h.hasOwnProperty(g)||u!=null&&u.hasOwnProperty(g)||(g.indexOf("--")===0?c.setProperty(g,""):g==="float"?c.cssFloat="":c[g]="");for(var y in u)g=u[y],u.hasOwnProperty(y)&&h[y]!==g&&Wp(c,y,g)}else for(var S in u)u.hasOwnProperty(S)&&Wp(c,S,u[S])}function ad(c){if(c.indexOf("-")===-1)return!1;switch(c){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
9-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Eu=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ki(c){return Eu.test(""+c)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":c}function Xr(){}var LT=null;function DT(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var cd=null,ld=null;function rD(c){var u=Y(c);if(u&&(c=u.stateNode)){var h=c[gt]||null;e:switch(c=u.stateNode,u.type){case"input":if(os(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),u=h.name,h.type==="radio"&&u!=null){for(h=c;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+Pr(""+u)+'"][type="radio"]'),u=0;u<h.length;u++){var g=h[u];if(g!==c&&g.form===c.form){var y=g[gt]||null;if(!y)throw Error(r(90));os(g,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(u=0;u<h.length;u++)g=h[u],g.form===c.form&&Pt(g)}break e;case"textarea":Gv(c,h.value,h.defaultValue);break e;case"select":u=h.value,u!=null&&Oa(c,!!h.multiple,u,!1)}}}var PT=!1;function iD(c,u,h){if(PT)return c(u,h);PT=!0;try{var g=c(u);return g}finally{if(PT=!1,(cd!==null||ld!==null)&&(Ny(),cd&&(u=cd,c=ld,ld=cd=null,rD(u),c)))for(u=0;u<c.length;u++)rD(c[u])}}function Yp(c,u){var h=c.stateNode;if(h===null)return null;var g=h[gt]||null;if(g===null)return null;h=g[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(c=c.type,g=!(c==="button"||c==="input"||c==="select"||c==="textarea")),c=!g;break e;default:c=!1}if(c)return null;if(h&&typeof h!="function")throw Error(r(231,u,typeof h));return h}var Na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$T=!1;if(Na)try{var Xp={};Object.defineProperty(Xp,"passive",{get:function(){$T=!0}}),window.addEventListener("test",Xp,Xp),window.removeEventListener("test",Xp,Xp)}catch{$T=!1}var zc=null,FT=null,Wv=null;function sD(){if(Wv)return Wv;var c,u=FT,h=u.length,g,y="value"in zc?zc.value:zc.textContent,S=y.length;for(c=0;c<h&&u[c]===y[c];c++);var x=h-c;for(g=1;g<=x&&u[h-g]===y[S-g];g++);return Wv=y.slice(c,1<g?1-g:void 0)}function Yv(c){var u=c.keyCode;return"charCode"in c?(c=c.charCode,c===0&&u===13&&(c=13)):c=u,c===10&&(c=13),32<=c||c===13?c:0}function Xv(){return!0}function oD(){return!1}function as(c){function u(h,g,y,S,x){this._reactName=h,this._targetInst=y,this.type=g,this.nativeEvent=S,this.target=x,this.currentTarget=null;for(var O in c)c.hasOwnProperty(O)&&(h=c[O],this[O]=h?h(S):S[O]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?Xv:oD,this.isPropagationStopped=oD,this}return p(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=Xv)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=Xv)},persist:function(){},isPersistent:Xv}),u}var wu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(c){return c.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kv=as(wu),Kp=p({},wu,{view:0,detail:0}),qZ=as(Kp),UT,BT,Zp,Zv=p({},Kp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:HT,button:0,buttons:0,relatedTarget:function(c){return c.relatedTarget===void 0?c.fromElement===c.srcElement?c.toElement:c.fromElement:c.relatedTarget},movementX:function(c){return"movementX"in c?c.movementX:(c!==Zp&&(Zp&&c.type==="mousemove"?(UT=c.screenX-Zp.screenX,BT=c.screenY-Zp.screenY):BT=UT=0,Zp=c),UT)},movementY:function(c){return"movementY"in c?c.movementY:BT}}),aD=as(Zv),WZ=p({},Zv,{dataTransfer:0}),YZ=as(WZ),XZ=p({},Kp,{relatedTarget:0}),zT=as(XZ),KZ=p({},wu,{animationName:0,elapsedTime:0,pseudoElement:0}),ZZ=as(KZ),JZ=p({},wu,{clipboardData:function(c){return"clipboardData"in c?c.clipboardData:window.clipboardData}}),QZ=as(JZ),eJ=p({},wu,{data:0}),cD=as(eJ),tJ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nJ={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},rJ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iJ(c){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(c):(c=rJ[c])?!!u[c]:!1}function HT(){return iJ}var sJ=p({},Kp,{key:function(c){if(c.key){var u=tJ[c.key]||c.key;if(u!=="Unidentified")return u}
vendor: 5,019 bytes, line 9
9return c.type==="keypress"?(c=Yv(c),c===13?"Enter":String.fromCharCode(c)):c.type==="keydown"||c.type==="keyup"?nJ[c.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:HT,charCode:function(c){return c.type==="keypress"?Yv(c):0},keyCode:function(c){return c.type==="keydown"||c.type==="keyup"?c.keyCode:0},which:function(c){return c.type==="keypress"?Yv(c):c.type==="keydown"||c.type==="keyup"?c.keyCode:0}}),oJ=as(sJ),aJ=p({},Zv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lD=as(aJ),cJ=p({},Kp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:HT}),lJ=as(cJ),uJ=p({},wu,{propertyName:0,elapsedTime:0,pseudoElement:0}),fJ=as(uJ),dJ=p({},Zv,{deltaX:function(c){return"deltaX"in c?c.deltaX:"wheelDeltaX"in c?-c.wheelDeltaX:0},deltaY:function(c){return"deltaY"in c?c.deltaY:"wheelDeltaY"in c?-c.wheelDeltaY:"wheelDelta"in c?-c.wheelDelta:0},deltaZ:0,deltaMode:0}),hJ=as(dJ),pJ=p({},wu,{newState:0,oldState:0}),gJ=as(pJ),mJ=[9,13,27,32],jT=Na&&"CompositionEvent"in window,Jp=null;Na&&"documentMode"in document&&(Jp=document.documentMode);var _J=Na&&"TextEvent"in window&&!Jp,uD=Na&&(!jT||Jp&&8<Jp&&11>=Jp),fD=" ",dD=!1;function hD(c,u){switch(c){case"keyup":return mJ.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pD(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var ud=!1;function vJ(c,u){switch(c){case"compositionend":return pD(u);case"keypress":return u.which!==32?null:(dD=!0,fD);case"textInput":return c=u.data,c===fD&&dD?null:c;default:return null}}function yJ(c,u){if(ud)return c==="compositionend"||!jT&&hD(c,u)?(c=sD(),Wv=FT=zc=null,ud=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return uD&&u.locale!=="ko"?null:u.data;default:return null}}var bJ={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gD(c){var u=c&&c.nodeName&&c.nodeName.toLowerCase();return u==="input"?!!bJ[c.type]:u==="textarea"}function mD(c,u,h,g){cd?ld?ld.push(g):ld=[g]:cd=g,u=By(u,"onChange"),0<u.length&&(h=new Kv("onChange","change",null,h,g),c.push({event:h,listeners:u}))}var Qp=null,eg=null;function SJ(c){J$(c,0)}function Jv(c){var u=ie(c);if(Pt(u))return c}function _D(c,u){if(c==="change")return u}var vD=!1;if(Na){var VT;if(Na){var GT="oninput"in document;if(!GT){var yD=document.createElement("div");yD.setAttribute("oninput","return;"),GT=typeof yD.oninput=="function"}VT=GT}else VT=!1;vD=VT&&(!document.documentMode||9<document.documentMode)}function bD(){Qp&&(Qp.detachEvent("onpropertychange",SD),eg=Qp=null)}function SD(c){if(c.propertyName==="value"&&Jv(eg)){var u=[];mD(u,eg,c,DT(c)),iD(SJ,u)}}function EJ(c,u,h){c==="focusin"?(bD(),Qp=u,eg=h,Qp.attachEvent("onpropertychange",SD)):c==="focusout"&&bD()}function wJ(c){if(c==="selectionchange"||c==="keyup"||c==="keydown")return Jv(eg)}function TJ(c,u){if(c==="click")return Jv(u)}function xJ(c,u){if(c==="input"||c==="change")return Jv(u)}function CJ(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var Cs=typeof Object.is=="function"?Object.is:CJ;function tg(c,u){if(Cs(c,u))return!0;if(typeof c!="object"||c===null||typeof u!="object"||u===null)return!1;var h=Object.keys(c),g=Object.keys(u);if(h.length!==g.length)return!1;for(g=0;g<h.length;g++){var y=h[g];if(!Sn.call(u,y)||!Cs(c[y],u[y]))return!1}return!0}function ED(c){for(;c&&c.firstChild;)c=c.firstChild;return c}function wD(c,u){var h=ED(c);c=0;for(var g;h;){if(h.nodeType===3){if(g=c+h.textContent.length,c<=u&&g>=u)return{node:h,offset:u-c};c=g}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=ED(h)}}function TD(c,u){return c&&u?c===u?!0:c&&c.nodeType===3?!1:u&&u.nodeType===3?TD(c,u.parentNode):"contains"in c?c.contains(u):c.compareDocumentPosition?!!(c.compareDocumentPosition(u)&16):!1:!1}function xD(c){c=c!=null&&c.ownerDocument!=null&&c.ownerDocument.defaultView!=null?c.ownerDocument.defaultView:window;for(var u=Cn(c.document);u instanceof c.HTMLIFrameElement;){try{var h=typeof u.contentWindow.location.href=="string"}catch{h=!1}if(h)c=u.contentWindow;else break;u=Cn(c.document)}return u}function qT(c){var u=c&&c.nodeName&&c.nodeName.toLowerCase();return u&&(u==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||u==="textarea"||c.contentEditable==="true")}var AJ=Na&&"documentMode"in document&&11>=document.documentMode,fd=null,WT=null,ng=null,YT=!1;function CD(c,u,h){var g=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;YT||fd==null||fd!==Cn(g)||(g=fd,"selectionStart"in g&&qT(g)?g={start:g.
vendor: 22,821 bytes, line 9
9selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),ng&&tg(ng,g)||(ng=g,g=By(WT,"onSelect"),0<g.length&&(u=new Kv("onSelect","select",null,u,h),c.push({event:u,listeners:g}),u.target=fd)))}function Tu(c,u){var h={};return h[c.toLowerCase()]=u.toLowerCase(),h["Webkit"+c]="webkit"+u,h["Moz"+c]="moz"+u,h}var dd={animationend:Tu("Animation","AnimationEnd"),animationiteration:Tu("Animation","AnimationIteration"),animationstart:Tu("Animation","AnimationStart"),transitionrun:Tu("Transition","TransitionRun"),transitionstart:Tu("Transition","TransitionStart"),transitioncancel:Tu("Transition","TransitionCancel"),transitionend:Tu("Transition","TransitionEnd")},XT={},AD={};Na&&(AD=document.createElement("div").style,"AnimationEvent"in window||(delete dd.animationend.animation,delete dd.animationiteration.animation,delete dd.animationstart.animation),"TransitionEvent"in window||delete dd.transitionend.transition);function xu(c){if(XT[c])return XT[c];if(!dd[c])return c;var u=dd[c],h;for(h in u)if(u.hasOwnProperty(h)&&h in AD)return XT[c]=u[h];return c}var RD=xu("animationend"),kD=xu("animationiteration"),ID=xu("animationstart"),RJ=xu("transitionrun"),kJ=xu("transitionstart"),IJ=xu("transitioncancel"),OD=xu("transitionend"),MD=new Map,KT="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");KT.push("scrollEnd");function To(c,u){MD.set(c,u),Sr(u,[c])}var Qv=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},qs=[],hd=0,ZT=0;function ey(){for(var c=hd,u=ZT=hd=0;u<c;){var h=qs[u];qs[u++]=null;var g=qs[u];qs[u++]=null;var y=qs[u];qs[u++]=null;var S=qs[u];if(qs[u++]=null,g!==null&&y!==null){var x=g.pending;x===null?y.next=y:(y.next=x.next,x.next=y),g.pending=y}S!==0&&ND(h,y,S)}}function ty(c,u,h,g){qs[hd++]=c,qs[hd++]=u,qs[hd++]=h,qs[hd++]=g,ZT|=g,c.lanes|=g,c=c.alternate,c!==null&&(c.lanes|=g)}function JT(c,u,h,g){return ty(c,u,h,g),ny(c)}function Cu(c,u){return ty(c,null,null,u),ny(c)}function ND(c,u,h){c.lanes|=h;var g=c.alternate;g!==null&&(g.lanes|=h);for(var y=!1,S=c.return;S!==null;)S.childLanes|=h,g=S.alternate,g!==null&&(g.childLanes|=h),S.tag===22&&(c=S.stateNode,c===null||c._visibility&1||(y=!0)),c=S,S=S.return;return c.tag===3?(S=c.stateNode,y&&u!==null&&(y=31-Z(h),c=S.hiddenUpdates,g=c[y],g===null?c[y]=[u]:g.push(u),u.lane=h|536870912),S):null}function ny(c){if(50<Tg)throw Tg=0,ax=null,Error(r(185));for(var u=c.return;u!==null;)c=u,u=c.return;return c.tag===3?c.stateNode:null}var pd={};function OJ(c,u,h,g){this.tag=c,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function As(c,u,h,g){return new OJ(c,u,h,g)}function QT(c){return c=c.prototype,!(!c||!c.isReactComponent)}function La(c,u){var h=c.alternate;return h===null?(h=As(c.tag,u,c.key,c.mode),h.elementType=c.elementType,h.type=c.type,h.stateNode=c.stateNode,h.alternate=c,c.alternate=h):(h.pendingProps=u,h.type=c.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=c.flags&65011712,h.childLanes=c.childLanes,h.lanes=c.lanes,h.child=c.child,h.memoizedProps=c.memoizedProps,h.memoizedState=c.memoizedState,h.updateQueue=c.updateQueue,u=c.dependencies,h.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},h.sibling=c.sibling,h.index=c.index,h.ref=c.ref,h.refCleanup=c.refCleanup,h}function LD(c,u){c.flags&=65011714;var h=c.alternate;return h===null?(c.childLanes=0,c.lanes=u,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=h.childLanes,c.lanes=h.lanes,c.child=h.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=h.memoizedProps,c.memoizedState=h.memoizedState,c.updateQueue=h.updateQueue,c.type=h.type,u=h.dependencies,c.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),c}function ry(c,u,h,g,y,S){var x=0;if(g=c,typeof c=="function")QT(c)&&(x=1);else if(typeof c=="string")x=PQ(c,h,me.current)?26:c==="html"||c==="head"||c==="body"?27:5;else e:switch(c){case Q:return c=As(31,h,u,y),c.elementType=Q,c.lanes=S,c;case E:return Au(h.children,y,S,u);case b:x=8,y|=24;break;case w:return c=As(12,h,u,y|2),c.elementType=w,c.lanes=S,c;case k:return c=As(13,h,u,y),c.elementType=k,c.lanes=S,c;case M:return c=As(19,h,u,y),c.elementType=M,c.lanes=S,c;default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case R:x=10;break e;case T:x=9;break e;case C:x=11;break e;case I:x=14;break e;case $:x=16,g=null;break e}x=29,h=Error(r(130,c===null?"null":typeof c,"")),g=null}return u=As(x,h,u,y),u.elementType=c,u.type=g,u.lanes=S,u}function Au(c,u,h,g){return c=As(7,c,g,u),c.lanes=h,c}function e1(c,u,h){return c=As(6,c,null,u),c.lanes=h,c}function DD(c){var u=As(18,null,null,0);return u.stateNode=c,u}function t1(c,u,h){return u=As(4,c.children!==null?c.children:[],c.key,u),u.lanes=h,u.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},u}var PD=new WeakMap;function Ws(c,u){if(typeof c=="object"&&c!==null){var h=PD.get(c);return h!==void 0?h:(u={value:c,source:u,stack:sn(u)},PD.set(c,u),u)}return{value:c,source:u,stack:sn(u)}}var gd=[],md=0,iy=null,rg=0,Ys=[],Xs=0,Hc=null,Go=1,qo="";function Da(c,u){gd[md++]=rg,gd[md++]=iy,iy=c,rg=u}function $D(c,u,h){Ys[Xs++]=Go,Ys[Xs++]=qo,Ys[Xs++]=Hc,Hc=c;var g=Go;c=qo;var y=32-Z(g)-1;g&=~(1<<y),h+=1;var S=32-Z(u)+y;if(30<S){var x=y-y%5;S=(g&(1<<x)-1).toString(32),g>>=x,y-=x,Go=1<<32-Z(u)+y|h<<y|g,qo=S+c}else Go=1<<S|h<<y|g,qo=c}function n1(c){c.return!==null&&(Da(c,1),$D(c,1,0))}function r1(c){for(;c===iy;)iy=gd[--md],gd[md]=null,rg=gd[--md],gd[md]=null;for(;c===Hc;)Hc=Ys[--Xs],Ys[Xs]=null,qo=Ys[--Xs],Ys[Xs]=null,Go=Ys[--Xs],Ys[Xs]=null}function FD(c,u){Ys[Xs++]=Go,Ys[Xs++]=qo,Ys[Xs++]=Hc,Go=u.id,qo=u.overflow,Hc=c}var yi=null,or=null,on=!1,jc=null,Ks=!1,i1=Error(r(519));function Vc(c){var u=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ig(Ws(u,c)),i1}function UD(c){var u=c.stateNode,h=c.type,g=c.memoizedProps;switch(u[Ne]=c,u[gt]=g,h){case"dialog":Kt("cancel",u),Kt("close",u);break;case"iframe":case"object":case"embed":Kt("load",u);break;case"video":case"audio":for(h=0;h<Cg.length;h++)Kt(Cg[h],u);break;case"source":Kt("error",u);break;case"img":case"image":case"link":Kt("error",u),Kt("load",u);break;case"details":Kt("toggle",u);break;case"input":Kt("invalid",u),Ia(u,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0);break;case"select":Kt("invalid",u);break;case"textarea":Kt("invalid",u),od(u,g.value,g.defaultValue,g.children)}h=g.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||u.textContent===""+h||g.suppressHydrationWarning===!0||nF(u.textContent,h)?(g.popover!=null&&(Kt("beforetoggle",u),Kt("toggle",u)),g.onScroll!=null&&Kt("scroll",u),g.onScrollEnd!=null&&Kt("scrollend",u),g.onClick!=null&&(u.onclick=Xr),u=!0):u=!1,u||Vc(c,!0)}function BD(c){for(yi=c.return;yi;)switch(yi.tag){case 5:case 31:case 13:Ks=!1;return;case 27:case 3:Ks=!0;return;default:yi=yi.return}}function _d(c){if(c!==yi)return!1;if(!on)return BD(c),on=!0,!1;var u=c.tag,h;if((h=u!==3&&u!==27)&&((h=u===5)&&(h=c.type,h=!(h!=="form"&&h!=="button")||Ex(c.type,c.memoizedProps)),h=!h),h&&or&&Vc(c),BD(c),u===13){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));or=fF(c)}else if(u===31){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));or=fF(c)}else u===27?(u=or,il(c.type)?(c=Ax,Ax=null,or=c):or=u):or=yi?Js(c.stateNode.nextSibling):null;return!0}function Ru(){or=yi=null,on=!1}function s1(){var c=jc;return c!==null&&(fs===null?fs=c:fs.push.apply(fs,c),jc=null),c}function ig(c){jc===null?jc=[c]:jc.push(c)}var o1=L(null),ku=null,Pa=null;function Gc(c,u,h){re(o1,u._currentValue),u._currentValue=h}function $a(c){c._currentValue=o1.current,J(o1)}function a1(c,u,h){for(;c!==null;){var g=c.alternate;if((c.childLanes&u)!==u?(c.childLanes|=u,g!==null&&(g.childLanes|=u)):g!==null&&(g.childLanes&u)!==u&&(g.childLanes|=u),c===h)break;c=c.return}}function c1(c,u,h,g){var y=c.child;for(y!==null&&(y.return=c);y!==null;){var S=y.dependencies;if(S!==null){var x=y.child;S=S.firstContext;e:for(;S!==null;){var O=S;S=y;for(var z=0;z<u.length;z++)if(O.context===u[z]){S.lanes|=h,O=S.alternate,O!==null&&(O.lanes|=h),a1(S.return,h,c),g||(x=null);break e}S=O.next}}else if(y.tag===18){if(x=y.return,x===null)throw Error(r(341));x.lanes|=h,S=x.alternate,S!==null&&(S.lanes|=h),a1(x,h,c),x=null}else x=y.child;if(x!==null)x.return=y;else for(x=y;x!==null;){if(x===c){x=null;break}if(y=x.sibling,y!==null){y.return=x.return,x=y;break}x=x.return}y=x}}function vd(c,u,h,g){c=null;for(var y=u,S=!1;y!==null;){if(!S){if((y.flags&524288)!==0)S=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var x=y.alternate;if(x===null)throw Error(r(387));if(x=x.memoizedProps,x!==null){var O=y.type;Cs(y.pendingProps.value,x.value)||(c!==null?c.push(O):c=[O])}}else if(y===Fe.current){if(x=y.alternate,x===null)throw Error(r(387));x.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(c!==null?c.push(Og):c=[Og])}y=y.return}c!==null&&c1(u,c,h,g),u.flags|=262144}function sy(c){for(c=c.firstContext;c!==null;){if(!Cs(c.context._currentValue,c.memoizedValue))return!0;c=c.next}return!1}function Iu(c){ku=c,Pa=null,c=c.dependencies,c!==null&&(c.firstContext=null)}function bi(c){return zD(ku,c)}function oy(c,u){return ku===null&&Iu(c),zD(c,u)}function zD(c,u){var h=u._currentValue;if(u={context:u,memoizedValue:h,next:null},Pa===null){if(c===null)throw Error(r(308));Pa=u,c.dependencies={lanes:0,firstContext:u},c.flags|=524288}else Pa=Pa.next=u;return h}var MJ=typeof AbortController<"u"?AbortController:function(){var c=[],u=this.signal={aborted:!1,addEventListener:function(h,g){c.push(g)}};this.abort=function(){u.aborted=!0,c.forEach(function(h){return h()})}},NJ=e.unstable_scheduleCallback,LJ=e.unstable_NormalPriority,Kr={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function l1(){return{controller:new MJ,data:new Map,refCount:0}}function sg(c){c.refCount--,c.refCount===0&&NJ(LJ,function(){c.controller.abort()})}var og=null,u1=0,yd=0,bd=null;function DJ(c,u){if(og===null){var h=og=[];u1=0,yd=hx(),bd={status:"pending",value:void 0,then:function(g){h.push(g)}}}return u1++,u.then(HD,HD),u}function HD(){if(--u1===0&&og!==null){bd!==null&&(bd.status="fulfilled");var c=og;og=null,yd=0,bd=null;for(var u=0;u<c.length;u++)(0,c[u])()}}function PJ(c,u){var h=[],g={status:"pending",value:null,reason:null,then:function(y){h.push(y)}};return c.then(function(){g.status="fulfilled",g.value=u;for(var y=0;y<h.length;y++)(0,h[y])(u)},function(y){for(g.status="rejected",g.reason=y,y=0;y<h.length;y++)(0,h[y])(void 0)}),g}var jD=P.S;P.S=function(c,u){C$=it(),typeof u=="object"&&u!==null&&typeof u.then=="function"&&DJ(c,u),jD!==null&&jD(c,u)};var Ou=L(null);function f1(){var c=Ou.current;return c!==null?c:qn.pooledCache}function ay(c,u){u===null?re(Ou,Ou.current):re(Ou,u.pool)}function VD(){var c=f1();return c===null?null:{parent:Kr._currentValue,pool:c}}var Sd=Error(r(460)),d1=Error(r(474)),cy=Error(r(542)),ly={then:function(){}};function GD(c){return c=c.status,c==="fulfilled"||c==="rejected"}function qD(c,u,h){switch(h=c[h],h===void 0?c.push(u):h!==u&&(u.then(Xr,Xr),u=h),u.status){case"fulfilled":return u.value;case"rejected":throw c=u.reason,YD(c),c;default:if(typeof u.status=="string")u.then(Xr,Xr);else{if(c=qn,c!==null&&100<c.shellSuspendCounter)throw Error(r(482));c=u,c.status="pending",c.then(function(g){if(u.status==="pending"){var y=u;y.status="fulfilled",y.value=g}},function(g){if(u.status==="pending"){var y=u;y.status="rejected",y.reason=g}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw c=u.reason,YD(c),c}throw Nu=u,Sd}}function Mu(c){try{var u=c._init;return u(c._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(Nu=h,Sd):h}}var Nu=null;function WD(){if(Nu===null)throw Error(r(459));var c=Nu;return Nu=null,c}function YD(c){if(c===Sd||c===cy)throw Error(r(483))}var Ed=null,ag=0;function uy(c){var u=ag;return ag+=1,Ed===null&&(Ed=[]),qD(Ed,c,u)}function cg(c,u){u=u.props.ref,c.ref=u!==void 0?u:null}function fy(c,u){throw u.$$typeof===m?Error(r(525)):(c=Object.prototype.toString.call(u),Error(r(31,c==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":c)))}function XD(c){function u(te,X){if(c){var oe=te.deletions;oe===null?(te.deletions=[X],te.flags|=16):oe.push(X)}}function h(te,X){if(!c)return null;for(;X!==null;)u(te,X),X=X.sibling;return null}function g(te){for(var X=new Map;te!==null;)te.key!==null?X.set(te.key,te):X.set(te.index,te),te=te.sibling;return X}function y(te,X){return te=La(te,X),te.index=0,te.sibling=null,te}function S(te,X,oe){return te.index=oe,c?(oe=te.alternate,oe!==null?(oe=oe.index,oe<X?(te.flags|=67108866,X):oe):(te.flags|=67108866,X)):(te.flags|=1048576,X)}function x(te){return c&&te.alternate===null&&(te.flags|=67108866),te}function O(te,X,oe,ye){return X===null||X.tag!==6?(X=e1(oe,te.mode,ye),X.return=te,X):(X=y(X,oe),X.return=te,X)}function z(te,X,oe,ye){var rt=oe.type;return rt===E?ve(te,X,oe.props.children,ye,oe.key):X!==null&&(X.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===$&&Mu(rt)===X.type)?(X=y(X,oe.props),cg(X,oe),X.return=te,X):(X=ry(oe.type,oe.key,oe.props,null,te.mode,ye),cg(X,oe),X.return=te,X)}function ae(te,X,oe,ye){return X===null||X.tag!==4||X.stateNode.containerInfo!==oe.containerInfo||X.stateNode.implementation!==oe.implementation?(X=t1(oe,te.mode,ye),X.return=te,X):(X=y(X,oe.children||[]),X.return=te,X)}function ve(te,X,oe,ye,rt){return X===null||X.tag!==7?(X=Au(oe,te.mode,ye,rt),X.return=te,X):(X=y(X,oe),X.return=te,X)}function Se(te,X,oe){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return X=e1(""+X,te.mode,oe),X.return=te,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case _:return oe=ry(X.type,X.key,X.props,null,te.mode,oe),cg(oe,X),oe.return=te,oe;case v:return X=t1(X,te.mode,oe),X.return=te,X;case $:return X=Mu(X),Se(te,X,oe)}if(fe(X)||U(X))return X=Au(X,te.mode,oe,null),X.return=te,X;if(typeof X.then=="function")return Se(te,uy(X),oe);if(X.$$typeof===R)return Se(te,oy(te,X),oe);fy(te,X)}return null}function le(te,X,oe,ye){var rt=X!==null?X.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return rt!==null?null:O(te,X,""+oe,ye);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case _:return oe.key===rt?z(te,X,oe,ye):null;case v:return oe.key===rt?ae(te,X,oe,ye):null;case $:return oe=Mu(oe),le(te,X,oe,ye)}if(fe(oe)||U(oe))return rt!==null?null:ve(te,X,oe,ye,null);if(typeof oe.then=="function")return le(te,X,uy(oe),ye);if(oe.$$typeof===R)return le(te,X,oy(te,oe),ye);fy(te,oe)}return null}function pe(te,X,oe,ye,rt){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return te=te.get(oe)||null,O(X,te,""+ye,rt);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case _:return te=te.get(ye.key===null?oe:ye.key)||null,z(X,te,ye,rt);case v:return te=te.get(ye.key===null?oe:ye.key)||null,ae(X,te,ye,rt);case $:return ye=Mu(ye),pe(te,X,oe,ye,rt)}if(fe(ye)||U(ye))return te=te.get(oe)||null,ve(X,te,ye,rt,null);if(typeof ye.then=="function")return pe(te,X,oe,uy(ye),rt);if(ye.$$typeof===R)return pe(te,X,oe,oy(X,ye),rt);fy(X,ye)}return null}function Xe(te,X,oe,ye){for(var rt=null,En=null,Je=X,Ut=X=0,tn=null;Je!==null&&Ut<oe.length;Ut++){Je.index>Ut?(tn=Je,Je=null):tn=Je.sibling;var wn=le(te,Je,oe[Ut],ye);if(wn===null){Je===null&&(Je=tn);break}c&&Je&&wn.alternate===null&&u(te,Je),X=S(wn,X,Ut),En===null?rt=wn:En.sibling=wn,En=wn,Je=tn}if(Ut===oe.length)return h(te,Je),on&&Da(te,Ut),rt;if(Je===null){for(;Ut<oe.length;Ut++)Je=Se(te,oe[Ut],ye),Je!==null&&(X=S(Je,X,Ut),En===null?rt=Je:En.sibling=Je,En=Je);return on&&Da(te,Ut),rt}for(Je=g(Je);Ut<oe.length;Ut++)tn=pe(Je,te,Ut,oe[Ut],ye),tn!==null&&(c&&tn.alternate!==null&&Je.delete(tn.key===null?Ut:tn.key),X=S(tn,X,Ut),En===null?rt=tn:En.sibling=tn,En=tn);return c&&Je.forEach(function(ll){return u(te,ll)}),on&&Da(te,Ut),rt}function ut(te,X,oe,ye){if(oe==null)throw Error(r(151));for(var rt=null,En=null,Je=X,Ut=X=0,tn=null,wn=oe.next();Je!==null&&!wn.done;Ut++,wn=oe.next()){Je.index>Ut?(tn=Je,Je=null):tn=Je.sibling;var ll=le(te,Je,wn.value,ye);if(ll===null){Je===null&&(Je=tn);break}c&&Je&&ll.alternate===null&&u(te,Je),X=S(ll,X,Ut),En===null?rt=ll:En.sibling=ll,En=ll,Je=tn}if(wn.done)return h(te,Je),on&&Da(te,Ut),rt;if(Je===null){for(;!wn.done;Ut++,wn=oe.next())wn=Se(te,wn.value,ye),wn!==null&&(X=S(wn,X,Ut),En===null?rt=wn:En.sibling=wn,En=wn);return on&&Da(te,Ut),rt}for(Je=g(Je);!wn.done;Ut++,wn=oe.next())wn=pe(Je,te,Ut,wn.value,ye),wn!==null&&(c&&wn.alternate!==null&&Je.delete(wn.key===null?Ut:wn.key),X=S(wn,X,Ut),En===null?rt=wn:En.sibling=wn,En=wn);return c&&Je.forEach(function(WQ){return u(te,WQ)}),on&&Da(te,Ut),rt}function Bn(te,X,oe,ye){if(typeof oe=="object"&&oe!==null&&oe.type===E&&oe.key===null&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case _:e:{for(var rt=oe.key;X!==null;){if(X.key===rt){if(rt=oe.type,rt===E){if(X.tag===7){h(te,X.sibling),ye=y(X,oe.props.children),ye.return=te,te=ye;break e}}else if(X.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===$&&Mu(rt)===X.type){h(te,X.sibling),ye=y(X,oe.props),cg(ye,oe),ye.return=te,te=ye;break e}h(te,X);break}else u(te,X);X=X.sibling}oe.type===E?(ye=Au(oe.props.children,te.mode,ye,oe.key),ye.return=te,te=ye):(ye=ry(oe.type,oe.key,oe.props,null,te.mode,ye),cg(ye,oe),ye.return=te,te=ye)}return x(te);case v:e:{for(rt=oe.key;X!==null;){if(X.key===rt)if(X.tag===4&&X.stateNode.containerInfo===oe.containerInfo&&X.stateNode.implementation===oe.implementation){h(te,X.sibling),ye=y(X,oe.children||[]),ye.return=te,te=ye;break e}else{h(te,X);break}else u(te,X);X=X.sibling}ye=t1(oe,te.mode,ye),ye.return=te,te=ye}return x(te);case $:return oe=Mu(oe),Bn(te,X,oe,ye)}if(fe(oe))return Xe(te,X,oe,ye);if(U(oe)){if(rt=U(oe),typeof rt!="function")throw Error(r(150));return oe=rt.call(oe),ut(te,X,oe,ye)}if(typeof oe.then=="function")return Bn(te,X,uy(oe),ye);if(oe.$$typeof===R)return Bn(te,X,oy(te,oe),ye);fy(te,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint"?(oe=""+oe,X!==null&&X.tag===6?(h(te,X.sibling),ye=y(X,oe),ye.return=te,te=ye):(h(te,X),ye=e1(oe,te.mode,ye),ye.return=te,te=ye),x(te)):h(te,X)}return function(te,X,oe,ye){try{ag=0;var rt=Bn(te,X,oe,ye);return Ed=null,rt}catch(Je){if(Je===Sd||Je===cy)throw Je;var En=As(29,Je,null,te.mode);return En.lanes=ye,En.return=te,En}finally{}}}var Lu=XD(!0),KD=XD(!1),qc=!1;function h1(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function p1(c,u){c=c.updateQueue,u.updateQueue===c&&(u.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,callbacks:null})}function Wc(c){return{lane:c,tag:0,payload:null,callback:null,next:null}}function Yc(c,u,h){var g=c.updateQueue;if(g===null)return null;if(g=g.shared,(An&2)!==0){var y=g.pending;return y===null?u.next=u:(u.next=y.next,y.next=u),g.pending=u,u=ny(c),ND(c,null,h),u}return ty(c,g,u,h),ny(c)}function lg(c,u,h){if(u=u.updateQueue,u!==null&&(u=u.shared,(h&4194048)!==0)){var g=u.lanes;g&=c.pendingLanes,h|=g,u.lanes=h,Vn(c,h)}}function g1(c,u){var h=c.updateQueue,g=c.alternate;if(g!==null&&(g=g.updateQueue,h===g)){var y=null,S=null;if(h=h.firstBaseUpdate,h!==null){do{var x={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};S===null?y=S=x:S=S.next=x,h=h.next}while(h!==null);S===null?y=S=u:S=S.next=u}else y=S=u;h={baseState:g.baseState,firstBaseUpdate:y,lastBaseUpdate:S,shared:g.shared,callbacks:g.callbacks},c.updateQueue=h;return}c=h.lastBaseUpdate,c===null?h.firstBaseUpdate=u:c.next=u,h.lastBaseUpdate=u}var m1=!1;function ug(){if(m1){var c=bd;if(c!==null)throw c}}function fg(c,u,h,g){m1=!1;var y=c.updateQueue;qc=!1;var S=y.firstBaseUpdate,x=y.lastBaseUpdate,O=y.shared.pending;if(O!==null){y.shared.pending=null;var z=O,ae=z.next;z.next=null,x===null?S=ae:x.next=ae,x=z;var ve=c.alternate;ve!==null&&(ve=ve.updateQueue,O=ve.lastBaseUpdate,O!==x&&(O===null?ve.firstBaseUpdate=ae:O.next=ae,ve.lastBaseUpdate=z))}if(S!==null){var Se=y.baseState;x=0,ve=ae=z=null,O=S;do{var le=O.lane&-536870913,pe=le!==O.lane;if(pe?(en&le)===le:(g&le)===le){le!==0&&le===yd&&(m1=!0),ve!==null&&(ve=ve.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var Xe=c,ut=O;le=u;var Bn=h;switch(ut.tag){case 1:if(Xe=ut.payload,typeof Xe=="function"){Se=Xe.call(Bn,Se,le);break e}Se=Xe;break e;case 3:Xe.flags=Xe.flags&-65537|128;case 0:if(Xe=ut.payload,le=typeof Xe=="function"?Xe.call(Bn,Se,le):Xe,le==null)break e;Se=p({},Se,le);break e;case 2:qc=!0}}le=O.callback,le!==null&&(c.flags|=64,pe&&(c.flags|=8192),pe=y.callbacks,pe===null?y.callbacks=[le]:pe.push(le))}else pe={lane:le,tag:O.tag,payload:O.payload,callback:O.callback,next:null},ve===null?(ae=ve=pe,z=Se):ve=ve.next=pe,x|=le;if(O=O.next,O===null){if(O=y.shared.pending,O===null)break;pe=O,O=pe.next,pe.next=null,y.lastBaseUpdate=pe,y.shared.pending=null}}while(!0);ve===null&&(z=Se),y.baseState=z,y.firstBaseUpdate=ae,y.lastBaseUpdate=ve,S===null&&(y.shared.lanes=0),Qc|=x,c.lanes=x,c.memoizedState=Se}}function ZD(c,u){if(typeof c!="function")throw Error(r(191,c));c.call(u)}function JD(c,u){var h=c.callbacks;
vendor: 5,604 bytes, line 9
9if(h!==null)for(c.callbacks=null,c=0;c<h.length;c++)ZD(h[c],u)}var wd=L(null),dy=L(0);function QD(c,u){c=qa,re(dy,c),re(wd,u),qa=c|u.baseLanes}function _1(){re(dy,qa),re(wd,wd.current)}function v1(){qa=dy.current,J(wd),J(dy)}var Rs=L(null),Zs=null;function Xc(c){var u=c.alternate;re($r,$r.current&1),re(Rs,c),Zs===null&&(u===null||wd.current!==null||u.memoizedState!==null)&&(Zs=c)}function y1(c){re($r,$r.current),re(Rs,c),Zs===null&&(Zs=c)}function eP(c){c.tag===22?(re($r,$r.current),re(Rs,c),Zs===null&&(Zs=c)):Kc()}function Kc(){re($r,$r.current),re(Rs,Rs.current)}function ks(c){J(Rs),Zs===c&&(Zs=null),J($r)}var $r=L(0);function hy(c){for(var u=c;u!==null;){if(u.tag===13){var h=u.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||xx(h)||Cx(h)))return u}else if(u.tag===19&&(u.memoizedProps.revealOrder==="forwards"||u.memoizedProps.revealOrder==="backwards"||u.memoizedProps.revealOrder==="unstable_legacy-backwards"||u.memoizedProps.revealOrder==="together")){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===c)break;for(;u.sibling===null;){if(u.return===null||u.return===c)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Fa=0,$t=null,Fn=null,Zr=null,py=!1,Td=!1,Du=!1,gy=0,dg=0,xd=null,$J=0;function kr(){throw Error(r(321))}function b1(c,u){if(u===null)return!1;for(var h=0;h<u.length&&h<c.length;h++)if(!Cs(c[h],u[h]))return!1;return!0}function S1(c,u,h,g,y,S){return Fa=S,$t=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,P.H=c===null||c.memoizedState===null?$P:P1,Du=!1,S=h(g,y),Du=!1,Td&&(S=nP(u,h,g,y)),tP(c),S}function tP(c){P.H=gg;var u=Fn!==null&&Fn.next!==null;if(Fa=0,Zr=Fn=$t=null,py=!1,dg=0,xd=null,u)throw Error(r(300));c===null||Jr||(c=c.dependencies,c!==null&&sy(c)&&(Jr=!0))}function nP(c,u,h,g){$t=c;var y=0;do{if(Td&&(xd=null),dg=0,Td=!1,25<=y)throw Error(r(301));if(y+=1,Zr=Fn=null,c.updateQueue!=null){var S=c.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}P.H=FP,S=u(h,g)}while(Td);return S}function FJ(){var c=P.H,u=c.useState()[0];return u=typeof u.then=="function"?hg(u):u,c=c.useState()[0],(Fn!==null?Fn.memoizedState:null)!==c&&($t.flags|=1024),u}function E1(){var c=gy!==0;return gy=0,c}function w1(c,u,h){u.updateQueue=c.updateQueue,u.flags&=-2053,c.lanes&=~h}function T1(c){if(py){for(c=c.memoizedState;c!==null;){var u=c.queue;u!==null&&(u.pending=null),c=c.next}py=!1}Fa=0,Zr=Fn=$t=null,Td=!1,dg=gy=0,xd=null}function Vi(){var c={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zr===null?$t.memoizedState=Zr=c:Zr=Zr.next=c,Zr}function Fr(){if(Fn===null){var c=$t.alternate;c=c!==null?c.memoizedState:null}else c=Fn.next;var u=Zr===null?$t.memoizedState:Zr.next;if(u!==null)Zr=u,Fn=c;else{if(c===null)throw $t.alternate===null?Error(r(467)):Error(r(310));Fn=c,c={memoizedState:Fn.memoizedState,baseState:Fn.baseState,baseQueue:Fn.baseQueue,queue:Fn.queue,next:null},Zr===null?$t.memoizedState=Zr=c:Zr=Zr.next=c}return Zr}function my(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hg(c){var u=dg;return dg+=1,xd===null&&(xd=[]),c=qD(xd,c,u),u=$t,(Zr===null?u.memoizedState:Zr.next)===null&&(u=u.alternate,P.H=u===null||u.memoizedState===null?$P:P1),c}function _y(c){if(c!==null&&typeof c=="object"){if(typeof c.then=="function")return hg(c);if(c.$$typeof===R)return bi(c)}throw Error(r(438,String(c)))}function x1(c){var u=null,h=$t.updateQueue;if(h!==null&&(u=h.memoCache),u==null){var g=$t.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(u={data:g.data.map(function(y){return y.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),h===null&&(h=my(),$t.updateQueue=h),h.memoCache=u,h=u.data[u.index],h===void 0)for(h=u.data[u.index]=Array(c),g=0;g<c;g++)h[g]=V;return u.index++,h}function Ua(c,u){return typeof u=="function"?u(c):u}function vy(c){var u=Fr();return C1(u,Fn,c)}function C1(c,u,h){var g=c.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=h;var y=c.baseQueue,S=g.pending;if(S!==null){if(y!==null){var x=y.next;y.next=S.next,S.next=x}u.baseQueue=y=S,g.pending=null}if(S=c.baseState,y===null)c.memoizedState=S;else{u=y.next;var O=x=null,z=null,ae=u,ve=!1;do{var Se=ae.lane&-536870913;if(Se!==ae.lane?(en&Se)===Se:(Fa&Se)===Se){var le=ae.revertLane;if(le===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null}),Se===yd&&(ve=!0);else if((Fa&le)===le){ae=ae.next,le===yd&&(ve=!0);continue}else Se={lane:0,revertLane:ae.revertLane,gesture:null,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},z===null?(O=z=Se,x=S):z=z.next=Se,$t.lanes|=le,Qc|=le;Se=ae.action,Du&&h(S,Se),S=ae.hasEagerState?ae.eagerState:h(S,Se)}else le={lane:Se,revertLane:ae.revertLane,gesture:ae.gesture,action:ae.action,hasEagerState:ae.hasEagerState,eagerState:ae.eagerState,next:null},z===null?(O=z=le,x=S):z=z.next=le,$t.lanes|=Se,Qc|=Se;ae=ae.next}while(ae!==null&&ae!==u);if(z===null?x=S:z.next=O,!Cs(S,c.memoizedState)&&(Jr=!0,ve&&(h=bd,h!==null)))throw h;c.memoizedState=S,c.baseState=x,c.baseQueue=z,g.lastRenderedState=S}return y===null&&(g.lanes=0),[c.memoizedState,g.dispatch]}function A1(c){var u=Fr(),h=u.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var g=h.dispatch,y=h.pending,S=u.memoizedState;if(y!==null){h.pending=null;var x=y=y.next;do S=c(S,x.action),x=x.next;while(x!==y);Cs(S,u.memoizedState)||(Jr=!0),u.memoizedState=S,u.baseQueue===null&&(u.baseState=S),h.lastRenderedState=S}return[S,g]}
vendor: 15,296 bytes, line 9
9function rP(c,u,h){var g=$t,y=Fr(),S=on;if(S){if(h===void 0)throw Error(r(407));h=h()}else h=u();var x=!Cs((Fn||y).memoizedState,h);if(x&&(y.memoizedState=h,Jr=!0),y=y.queue,I1(oP.bind(null,g,y,c),[c]),y.getSnapshot!==u||x||Zr!==null&&Zr.memoizedState.tag&1){if(g.flags|=2048,Cd(9,{destroy:void 0},sP.bind(null,g,y,h,u),null),qn===null)throw Error(r(349));S||(Fa&127)!==0||iP(g,u,h)}return h}function iP(c,u,h){c.flags|=16384,c={getSnapshot:u,value:h},u=$t.updateQueue,u===null?(u=my(),$t.updateQueue=u,u.stores=[c]):(h=u.stores,h===null?u.stores=[c]:h.push(c))}function sP(c,u,h,g){u.value=h,u.getSnapshot=g,aP(u)&&cP(c)}function oP(c,u,h){return h(function(){aP(u)&&cP(c)})}function aP(c){var u=c.getSnapshot;c=c.value;try{var h=u();return!Cs(c,h)}catch{return!0}}function cP(c){var u=Cu(c,2);u!==null&&ds(u,c,2)}function R1(c){var u=Vi();if(typeof c=="function"){var h=c;if(c=h(),Du){H(!0);try{h()}finally{H(!1)}}}return u.memoizedState=u.baseState=c,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:c},u}function lP(c,u,h,g){return c.baseState=h,C1(c,Fn,typeof g=="function"?g:Ua)}function UJ(c,u,h,g,y){if(Sy(c))throw Error(r(485));if(c=u.action,c!==null){var S={payload:y,action:c,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){S.listeners.push(x)}};P.T!==null?h(!0):S.isTransition=!1,g(S),h=u.pending,h===null?(S.next=u.pending=S,uP(u,S)):(S.next=h.next,u.pending=h.next=S)}}function uP(c,u){var h=u.action,g=u.payload,y=c.state;if(u.isTransition){var S=P.T,x={};P.T=x;try{var O=h(y,g),z=P.S;z!==null&&z(x,O),fP(c,u,O)}catch(ae){k1(c,u,ae)}finally{S!==null&&x.types!==null&&(S.types=x.types),P.T=S}}else try{S=h(y,g),fP(c,u,S)}catch(ae){k1(c,u,ae)}}function fP(c,u,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(g){dP(c,u,g)},function(g){return k1(c,u,g)}):dP(c,u,h)}function dP(c,u,h){u.status="fulfilled",u.value=h,hP(u),c.state=h,u=c.pending,u!==null&&(h=u.next,h===u?c.pending=null:(h=h.next,u.next=h,uP(c,h)))}function k1(c,u,h){var g=c.pending;if(c.pending=null,g!==null){g=g.next;do u.status="rejected",u.reason=h,hP(u),u=u.next;while(u!==g)}c.action=null}function hP(c){c=c.listeners;for(var u=0;u<c.length;u++)(0,c[u])()}function pP(c,u){return u}function gP(c,u){if(on){var h=qn.formState;if(h!==null){e:{var g=$t;if(on){if(or){t:{for(var y=or,S=Ks;y.nodeType!==8;){if(!S){y=null;break t}if(y=Js(y.nextSibling),y===null){y=null;break t}}S=y.data,y=S==="F!"||S==="F"?y:null}if(y){or=Js(y.nextSibling),g=y.data==="F!";break e}}Vc(g)}g=!1}g&&(u=h[0])}}return h=Vi(),h.memoizedState=h.baseState=u,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pP,lastRenderedState:u},h.queue=g,h=LP.bind(null,$t,g),g.dispatch=h,g=R1(!1),S=D1.bind(null,$t,!1,g.queue),g=Vi(),y={state:u,dispatch:null,action:c,pending:null},g.queue=y,h=UJ.bind(null,$t,y,S,h),y.dispatch=h,g.memoizedState=c,[u,h,!1]}function mP(c){var u=Fr();return _P(u,Fn,c)}function _P(c,u,h){if(u=C1(c,u,pP)[0],c=vy(Ua)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var g=hg(u)}catch(x){throw x===Sd?cy:x}else g=u;u=Fr();var y=u.queue,S=y.dispatch;return h!==u.memoizedState&&($t.flags|=2048,Cd(9,{destroy:void 0},BJ.bind(null,y,h),null)),[g,S,c]}function BJ(c,u){c.action=u}function vP(c){var u=Fr(),h=Fn;if(h!==null)return _P(u,h,c);Fr(),u=u.memoizedState,h=Fr();var g=h.queue.dispatch;return h.memoizedState=c,[u,g,!1]}function Cd(c,u,h,g){return c={tag:c,create:h,deps:g,inst:u,next:null},u=$t.updateQueue,u===null&&(u=my(),$t.updateQueue=u),h=u.lastEffect,h===null?u.lastEffect=c.next=c:(g=h.next,h.next=c,c.next=g,u.lastEffect=c),c}function yP(){return Fr().memoizedState}function yy(c,u,h,g){var y=Vi();$t.flags|=c,y.memoizedState=Cd(1|u,{destroy:void 0},h,g===void 0?null:g)}function by(c,u,h,g){var y=Fr();g=g===void 0?null:g;var S=y.memoizedState.inst;Fn!==null&&g!==null&&b1(g,Fn.memoizedState.deps)?y.memoizedState=Cd(u,S,h,g):($t.flags|=c,y.memoizedState=Cd(1|u,S,h,g))}function bP(c,u){yy(8390656,8,c,u)}function I1(c,u){by(2048,8,c,u)}function zJ(c){$t.flags|=4;var u=$t.updateQueue;if(u===null)u=my(),$t.updateQueue=u,u.events=[c];else{var h=u.events;h===null?u.events=[c]:h.push(c)}}function SP(c){var u=Fr().memoizedState;return zJ({ref:u,nextImpl:c}),function(){if((An&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}function EP(c,u){return by(4,2,c,u)}function wP(c,u){return by(4,4,c,u)}function TP(c,u){if(typeof u=="function"){c=c();var h=u(c);return function(){typeof h=="function"?h():u(null)}}if(u!=null)return c=c(),u.current=c,function(){u.current=null}}function xP(c,u,h){h=h!=null?h.concat([c]):null,by(4,4,TP.bind(null,u,c),h)}function O1(){}function CP(c,u){var h=Fr();u=u===void 0?null:u;var g=h.memoizedState;return u!==null&&b1(u,g[1])?g[0]:(h.memoizedState=[c,u],c)}function AP(c,u){var h=Fr();u=u===void 0?null:u;var g=h.memoizedState;if(u!==null&&b1(u,g[1]))return g[0];if(g=c(),Du){H(!0);try{c()}finally{H(!1)}}return h.memoizedState=[g,u],g}function M1(c,u,h){return h===void 0||(Fa&1073741824)!==0&&(en&261930)===0?c.memoizedState=u:(c.memoizedState=h,c=R$(),$t.lanes|=c,Qc|=c,h)}function RP(c,u,h,g){return Cs(h,u)?h:wd.current!==null?(c=M1(c,h,g),Cs(c,u)||(Jr=!0),c):(Fa&42)===0||(Fa&1073741824)!==0&&(en&261930)===0?(Jr=!0,c.memoizedState=h):(c=R$(),$t.lanes|=c,Qc|=c,u)}function kP(c,u,h,g,y){var S=ee.p;ee.p=S!==0&&8>S?S:8;var x=P.T,O={};P.T=O,D1(c,!1,u,h);try{var z=y(),ae=P.S;if(ae!==null&&ae(O,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ve=PJ(z,g);pg(c,u,ve,Ms(c))}else pg(c,u,g,Ms(c))}catch(Se){pg(c,u,{then:function(){},status:"rejected",reason:Se},Ms())}finally{ee.p=S,x!==null&&O.types!==null&&(x.types=O.types),P.T=x}}function HJ(){}function N1(c,u,h,g){if(c.tag!==5)throw Error(r(476));var y=IP(c).queue;kP(c,y,u,W,h===null?HJ:function(){return OP(c),h(g)})}function IP(c){var u=c.memoizedState;if(u!==null)return u;u={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:W},next:null};var h={};return u.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:h},next:null},c.memoizedState=u,c=c.alternate,c!==null&&(c.memoizedState=u),u}function OP(c){var u=IP(c);u.next===null&&(u=c.alternate.memoizedState),pg(c,u.next.queue,{},Ms())}function L1(){return bi(Og)}function MP(){return Fr().memoizedState}function NP(){return Fr().memoizedState}function jJ(c){for(var u=c.return;u!==null;){switch(u.tag){case 24:case 3:var h=Ms();c=Wc(h);var g=Yc(u,c,h);g!==null&&(ds(g,u,h),lg(g,u,h)),u={cache:l1()},c.payload=u;return}u=u.return}}function VJ(c,u,h){var g=Ms();h={lane:g,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Sy(c)?DP(u,h):(h=JT(c,u,h,g),h!==null&&(ds(h,c,g),PP(h,u,g)))}function LP(c,u,h){var g=Ms();pg(c,u,h,g)}function pg(c,u,h,g){var y={lane:g,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null};if(Sy(c))DP(u,y);else{var S=c.alternate;if(c.lanes===0&&(S===null||S.lanes===0)&&(S=u.lastRenderedReducer,S!==null))try{var x=u.lastRenderedState,O=S(x,h);if(y.hasEagerState=!0,y.eagerState=O,Cs(O,x))return ty(c,u,y,0),qn===null&&ey(),!1}catch{}finally{}if(h=JT(c,u,y,g),h!==null)return ds(h,c,g),PP(h,u,g),!0}return!1}function D1(c,u,h,g){if(g={lane:2,revertLane:hx(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},Sy(c)){if(u)throw Error(r(479))}else u=JT(c,h,g,2),u!==null&&ds(u,c,2)}function Sy(c){var u=c.alternate;return c===$t||u!==null&&u===$t}function DP(c,u){Td=py=!0;var h=c.pending;h===null?u.next=u:(u.next=h.next,h.next=u),c.pending=u}function PP(c,u,h){if((h&4194048)!==0){var g=u.lanes;g&=c.pendingLanes,h|=g,u.lanes=h,Vn(c,h)}}var gg={readContext:bi,use:_y,useCallback:kr,useContext:kr,useEffect:kr,useImperativeHandle:kr,useLayoutEffect:kr,useInsertionEffect:kr,useMemo:kr,useReducer:kr,useRef:kr,useState:kr,useDebugValue:kr,useDeferredValue:kr,useTransition:kr,useSyncExternalStore:kr,useId:kr,useHostTransitionStatus:kr,useFormState:kr,useActionState:kr,useOptimistic:kr,useMemoCache:kr,useCacheRefresh:kr};gg.useEffectEvent=kr;var $P={readContext:bi,use:_y,useCallback:function(c,u){return Vi().memoizedState=[c,u===void 0?null:u],c},useContext:bi,useEffect:bP,useImperativeHandle:function(c,u,h){h=h!=null?h.concat([c]):null,yy(4194308,4,TP.bind(null,u,c),h)},useLayoutEffect:function(c,u){return yy(4194308,4,c,u)},useInsertionEffect:function(c,u){yy(4,2,c,u)},useMemo:function(c,u){var h=Vi();u=u===void 0?null:u;var g=c();if(Du){H(!0);try{c()}finally{H(!1)}}return h.memoizedState=[g,u],g},useReducer:function(c,u,h){var g=Vi();if(h!==void 0){var y=h(u);if(Du){H(!0);try{h(u)}finally{H(!1)}}}else y=u;return g.memoizedState=g.baseState=y,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:y},g.queue=c,c=c.dispatch=VJ.bind(null,$t,c),[g.memoizedState,c]},useRef:function(c){var u=Vi();return c={current:c},u.memoizedState=c},useState:function(c){c=R1(c);var u=c.queue,h=LP.bind(null,$t,u);return u.dispatch=h,[c.memoizedState,h]},useDebugValue:O1,useDeferredValue:function(c,u){var h=Vi();return M1(h,c,u)},useTransition:function(){var c=R1(!1);return c=kP.bind(null,$t,c.queue,!0,!1),Vi().memoizedState=c,[!1,c]},useSyncExternalStore:function(c,u,h){var g=$t,y=Vi();if(on){if(h===void 0)throw Error(r(407));h=h()}else{if(h=u(),qn===null)throw Error(r(349));(en&127)!==0||iP(g,u,h)}y.memoizedState=h;var S={value:h,getSnapshot:u};return y.queue=S,bP(oP.bind(null,g,S,c),[c]),g.flags|=2048,Cd(9,{destroy:void 0},sP.bind(null,g,S,h,u),null),h},useId:function(){var c=Vi(),u=qn.identifierPrefix;if(on){var h=qo,g=Go;h=(g&~(1<<32-Z(g)-1)).toString(32)+h,u="_"+u+"R_"+h,h=gy++,0<h&&(u+="H"+h.toString(32)),u+="_"}else h=$J++,u="_"+u+"r_"+h.toString(32)+"_";return c.memoizedState=u},useHostTransitionStatus:L1,useFormState:gP,useActionState:gP,useOptimistic:function(c){var u=Vi();u.memoizedState=u.baseState=c;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=h,u=D1.bind(null,$t,!0,h),h.dispatch=u,[c,u]},useMemoCache:x1,useCacheRefresh:function(){return Vi().memoizedState=jJ.bind(null,$t)},useEffectEvent:function(c){var u=Vi(),h={impl:c};return u.memoizedState=h,function(){if((An&2)!==0)throw Error(r(440));return h.impl.apply(void 0,arguments)}}},P1={readContext:bi,use:_y,useCallback:CP,useContext:bi,useEffect:I1,useImperativeHandle:xP,useInsertionEffect:EP,useLayoutEffect:wP,useMemo:AP,useReducer:vy,useRef:yP,useState:function(){return vy(Ua)},useDebugValue:O1,useDeferredValue:function(c,u){var h=Fr();return RP(h,Fn.memoizedState,c,u)},useTransition:function(){var c=vy(Ua)[0],u=Fr().memoizedState;return[typeof c=="boolean"?c:hg(c),u]},useSyncExternalStore:rP,useId:MP,useHostTransitionStatus:L1,useFormState:mP,useActionState:mP,useOptimistic:function(c,u){var h=Fr();return lP(h,Fn,c,u)},useMemoCache:x1,useCacheRefresh:NP};P1.useEffectEvent=SP;var FP={readContext:bi,use:_y,useCallback:CP,useContext:bi,useEffect:I1,useImperativeHandle:xP,useInsertionEffect:EP,useLayoutEffect:wP,useMemo:AP,useReducer:A1,useRef:yP,useState:function(){return A1(Ua)},useDebugValue:O1,useDeferredValue:function(c,u){var h=Fr();return Fn===null?M1(h,c,u):RP(h,Fn.memoizedState,c,u)},useTransition:function(){var c=A1(Ua)[0],u=Fr().memoizedState;return[typeof c=="boolean"?c:hg(c),u]},useSyncExternalStore:rP,useId:MP,useHostTransitionStatus:L1,useFormState:vP,useActionState:vP,useOptimistic:function(c,u){var h=Fr();return Fn!==null?lP(h,Fn,c,u):(h.baseState=c,[c,h.queue.dispatch])},useMemoCache:x1,useCacheRefresh:NP};FP.useEffectEvent=SP;function $1(c,u,h,g){u=c.memoizedState,h=h(g,u),h=h==null?u:p({},u,h),c.memoizedState=h,c.lanes===0&&(c.updateQueue.baseState=h)}var F1={enqueueSetState:function(c,u,h){c=c._reactInternals;var g=Ms(),y=Wc(g);y.payload=u,h!=null&&(y.callback=h),u=Yc(c,y,g),u!==null&&(ds(u,c,g),lg(u,c,g))},enqueueReplaceState:function(c,u,h){c=c._reactInternals;var g=Ms(),y=Wc(g);y.tag=1,y.payload=u,h!=null&&(y.callback=h),u=Yc(c,y,g),u!==null&&(ds(u,c,g),lg(u,c,g))},enqueueForceUpdate:function(c,u){c=c._reactInternals;var h=Ms(),g=Wc(h);g.tag=2,u!=null&&(g.callback=u),u=Yc(c,g,h),u!==null&&(ds(u,c,h),lg(u,c,h))}};function UP(c,u,h,g,y,S,x){return c=c.stateNode,typeof c.shouldComponentUpdate=="function"?c.shouldComponentUpdate(g,S,x):u.prototype&&u.prototype.isPureReactComponent?!tg(h,g)||!tg(y,S):!0}function BP(c,u,h,g){c=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(h,g),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(h,g),u.state!==c&&F1.enqueueReplaceState(u,u.state,null)}function Pu(c,u){var h=u;if("ref"in u){h={};for(var g in u)g!=="ref"&&(h[g]=u[g])}if(c=c.defaultProps){h===u&&(h=p({},h));for(var y in c)h[y]===void 0&&(h[y]=c[y])}return h}function zP(c){Qv(c)}function HP(c){console.error(c)}function jP(c){Qv(c)}function Ey(c,u){try{var h=c.onUncaughtError;h(u.value,{componentStack:u.stack})}catch(g){setTimeout(function(){throw g})}}function VP(c,u,h){try{var g=c.onCaughtError;g(h.value,{componentStack:h.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function U1(c,u,h){return h=Wc(h),h.tag=3,h.payload={element:null},h.callback=function(){Ey(c,u)},h}function GP(c){return c=Wc(c),c.tag=3,c}function qP(c,u,h,g){var y=h.type.getDerivedStateFromError;if(typeof y=="function"){var S=g.value;c.payload=function(){return y(S)},c.callback=function(){VP(u,h,g)}}var x=h.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(c.callback=function(){VP(u,h,g),typeof y!="function"&&(el===null?el=new Set([this]):el.add(this));var O=g.stack;this.componentDidCatch(g.value,{componentStack:O!==null?O:""})})}function GJ(c,u,h,g,y){if(h.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(u=h.alternate,u!==null&&vd(u,h,y,!0),h=Rs.current,h!==null){switch(h.tag){case 31:case 13:return Zs===null?Ly():h.alternate===null&&Ir===0&&(Ir=3),h.flags&=-257,h.flags|=65536,h.lanes=y,g===ly?h.flags|=16384:(u=h.updateQueue,u===null?h.updateQueue=new Set([g]):u.add(g),ux(c,g,y)),!1;case 22:return h.flags|=65536,g===ly?h.flags|=16384:(u=h.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([g])},h.updateQueue=u):(h=u.retryQueue,h===null?u.retryQueue=new Set([g]):h.add(g)),ux(c,g,y)),!1}throw Error(r(435,h.tag))}return ux(c,g,y),Ly(),!1}if(on)return u=Rs.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=y,g!==i1&&(c=Error(r(422),{cause:g}),ig(Ws(c,h)))):(g!==i1&&(u=Error(r(423),{cause:g}),ig(Ws(u,h))),c=c.current.alternate,c.flags|=65536,y&=-y,c.lanes|=y,g=Ws(g,h),y=U1(c.stateNode,g,y),g1(c,y),Ir!==4&&(Ir=2)),!1;var S=Error(r(520),{cause:g});if(S=Ws(S,h),wg===null?wg=[S]:wg.push(S),Ir!==4&&(Ir=2),u===null)return!0;g=Ws(g,h),h=u;do{switch(h.tag){case 3:return h.flags|=65536,c=y&-y,h.lanes|=c,c=U1(h.stateNode,g,c),g1(h,c),!1;case 1:if(u=h.type,S=h.stateNode,(h.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(el===null||!el.has(S))))return h.flags|=65536,y&=-y,h.lanes|=y,y=GP(y),qP(y,c,h,g),g1(h,y),!1}h=h.return}while(h!==null);return!1}
vendor: 11,166 bytes, line 9
9var B1=Error(r(461)),Jr=!1;function Si(c,u,h,g){u.child=c===null?KD(u,null,h,g):Lu(u,c.child,h,g)}function WP(c,u,h,g,y){h=h.render;var S=u.ref;if("ref"in g){var x={};for(var O in g)O!=="ref"&&(x[O]=g[O])}else x=g;return Iu(u),g=S1(c,u,h,x,S,y),O=E1(),c!==null&&!Jr?(w1(c,u,y),Ba(c,u,y)):(on&&O&&n1(u),u.flags|=1,Si(c,u,g,y),u.child)}function YP(c,u,h,g,y){if(c===null){var S=h.type;return typeof S=="function"&&!QT(S)&&S.defaultProps===void 0&&h.compare===null?(u.tag=15,u.type=S,XP(c,u,S,g,y)):(c=ry(h.type,null,g,u,u.mode,y),c.ref=u.ref,c.return=u,u.child=c)}if(S=c.child,!Y1(c,y)){var x=S.memoizedProps;if(h=h.compare,h=h!==null?h:tg,h(x,g)&&c.ref===u.ref)return Ba(c,u,y)}return u.flags|=1,c=La(S,g),c.ref=u.ref,c.return=u,u.child=c}function XP(c,u,h,g,y){if(c!==null){var S=c.memoizedProps;if(tg(S,g)&&c.ref===u.ref)if(Jr=!1,u.pendingProps=g=S,Y1(c,y))(c.flags&131072)!==0&&(Jr=!0);else return u.lanes=c.lanes,Ba(c,u,y)}return z1(c,u,h,g,y)}function KP(c,u,h,g){var y=g.children,S=c!==null?c.memoizedState:null;if(c===null&&u.stateNode===null&&(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),g.mode==="hidden"){if((u.flags&128)!==0){if(S=S!==null?S.baseLanes|h:h,c!==null){for(g=u.child=c.child,y=0;g!==null;)y=y|g.lanes|g.childLanes,g=g.sibling;g=y&~S}else g=0,u.child=null;return ZP(c,u,S,h,g)}if((h&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},c!==null&&ay(u,S!==null?S.cachePool:null),S!==null?QD(u,S):_1(),eP(u);else return g=u.lanes=536870912,ZP(c,u,S!==null?S.baseLanes|h:h,h,g)}else S!==null?(ay(u,S.cachePool),QD(u,S),Kc(),u.memoizedState=null):(c!==null&&ay(u,null),_1(),Kc());return Si(c,u,y,h),u.child}function mg(c,u){return c!==null&&c.tag===22||u.stateNode!==null||(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.sibling}function ZP(c,u,h,g,y){var S=f1();return S=S===null?null:{parent:Kr._currentValue,pool:S},u.memoizedState={baseLanes:h,cachePool:S},c!==null&&ay(u,null),_1(),eP(u),c!==null&&vd(c,u,g,!0),u.childLanes=y,null}function wy(c,u){return u=xy({mode:u.mode,children:u.children},c.mode),u.ref=c.ref,c.child=u,u.return=c,u}function JP(c,u,h){return Lu(u,c.child,null,h),c=wy(u,u.pendingProps),c.flags|=2,ks(u),u.memoizedState=null,c}function qJ(c,u,h){var g=u.pendingProps,y=(u.flags&128)!==0;if(u.flags&=-129,c===null){if(on){if(g.mode==="hidden")return c=wy(u,g),u.lanes=536870912,mg(null,c);if(y1(u),(c=or)?(c=uF(c,Ks),c=c!==null&&c.data==="&"?c:null,c!==null&&(u.memoizedState={dehydrated:c,treeContext:Hc!==null?{id:Go,overflow:qo}:null,retryLane:536870912,hydrationErrors:null},h=DD(c),h.return=u,u.child=h,yi=u,or=null)):c=null,c===null)throw Vc(u);return u.lanes=536870912,null}return wy(u,g)}var S=c.memoizedState;if(S!==null){var x=S.dehydrated;if(y1(u),y)if(u.flags&256)u.flags&=-257,u=JP(c,u,h);else if(u.memoizedState!==null)u.child=c.child,u.flags|=128,u=null;else throw Error(r(558));else if(Jr||vd(c,u,h,!1),y=(h&c.childLanes)!==0,Jr||y){if(g=qn,g!==null&&(x=nt(g,h),x!==0&&x!==S.retryLane))throw S.retryLane=x,Cu(c,x),ds(g,c,x),B1;Ly(),u=JP(c,u,h)}else c=S.treeContext,or=Js(x.nextSibling),yi=u,on=!0,jc=null,Ks=!1,c!==null&&FD(u,c),u=wy(u,g),u.flags|=4096;return u}return c=La(c.child,{mode:g.mode,children:g.children}),c.ref=u.ref,u.child=c,c.return=u,c}function Ty(c,u){var h=u.ref;if(h===null)c!==null&&c.ref!==null&&(u.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(c===null||c.ref!==h)&&(u.flags|=4194816)}}function z1(c,u,h,g,y){return Iu(u),h=S1(c,u,h,g,void 0,y),g=E1(),c!==null&&!Jr?(w1(c,u,y),Ba(c,u,y)):(on&&g&&n1(u),u.flags|=1,Si(c,u,h,y),u.child)}function QP(c,u,h,g,y,S){return Iu(u),u.updateQueue=null,h=nP(u,g,h,y),tP(c),g=E1(),c!==null&&!Jr?(w1(c,u,S),Ba(c,u,S)):(on&&g&&n1(u),u.flags|=1,Si(c,u,h,S),u.child)}function e$(c,u,h,g,y){if(Iu(u),u.stateNode===null){var S=pd,x=h.contextType;typeof x=="object"&&x!==null&&(S=bi(x)),S=new h(g,S),u.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,S.updater=F1,u.stateNode=S,S._reactInternals=u,S=u.stateNode,S.props=g,S.state=u.memoizedState,S.refs={},h1(u),x=h.contextType,S.context=typeof x=="object"&&x!==null?bi(x):pd,S.state=u.memoizedState,x=h.getDerivedStateFromProps,typeof x=="function"&&($1(u,h,x,g),S.state=u.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(x=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),x!==S.state&&F1.enqueueReplaceState(S,S.state,null),fg(u,g,S,y),ug(),S.state=u.memoizedState),typeof S.componentDidMount=="function"&&(u.flags|=4194308),g=!0}else if(c===null){S=u.stateNode;var O=u.memoizedProps,z=Pu(h,O);S.props=z;var ae=S.context,ve=h.contextType;x=pd,typeof ve=="object"&&ve!==null&&(x=bi(ve));var Se=h.getDerivedStateFromProps;ve=typeof Se=="function"||typeof S.getSnapshotBeforeUpdate=="function",O=u.pendingProps!==O,ve||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(O||ae!==x)&&BP(u,S,g,x),qc=!1;var le=u.memoizedState;S.state=le,fg(u,g,S,y),ug(),ae=u.memoizedState,O||le!==ae||qc?(typeof Se=="function"&&($1(u,h,Se,g),ae=u.memoizedState),(z=qc||UP(u,h,z,g,le,ae,x))?(ve||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(u.flags|=4194308)):(typeof S.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=g,u.memoizedState=ae),S.props=g,S.state=ae,S.context=x,g=z):(typeof S.componentDidMount=="function"&&(u.flags|=4194308),g=!1)}else{S=u.stateNode,p1(c,u),x=u.memoizedProps,ve=Pu(h,x),S.props=ve,Se=u.pendingProps,le=S.context,ae=h.contextType,z=pd,typeof ae=="object"&&ae!==null&&(z=bi(ae)),O=h.getDerivedStateFromProps,(ae=typeof O=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(x!==Se||le!==z)&&BP(u,S,g,z),qc=!1,le=u.memoizedState,S.state=le,fg(u,g,S,y),ug();var pe=u.memoizedState;x!==Se||le!==pe||qc||c!==null&&c.dependencies!==null&&sy(c.dependencies)?(typeof O=="function"&&($1(u,h,O,g),pe=u.memoizedState),(ve=qc||UP(u,h,ve,g,le,pe,z)||c!==null&&c.dependencies!==null&&sy(c.dependencies))?(ae||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(g,pe,z),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(g,pe,z)),typeof S.componentDidUpdate=="function"&&(u.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof S.componentDidUpdate!="function"||x===c.memoizedProps&&le===c.memoizedState||(u.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||x===c.memoizedProps&&le===c.memoizedState||(u.flags|=1024),u.memoizedProps=g,u.memoizedState=pe),S.props=g,S.state=pe,S.context=z,g=ve):(typeof S.componentDidUpdate!="function"||x===c.memoizedProps&&le===c.memoizedState||(u.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||x===c.memoizedProps&&le===c.memoizedState||(u.flags|=1024),g=!1)}return S=g,Ty(c,u),g=(u.flags&128)!==0,S||g?(S=u.stateNode,h=g&&typeof h.getDerivedStateFromError!="function"?null:S.render(),u.flags|=1,c!==null&&g?(u.child=Lu(u,c.child,null,y),u.child=Lu(u,null,h,y)):Si(c,u,h,y),u.memoizedState=S.state,c=u.child):c=Ba(c,u,y),c}function t$(c,u,h,g){return Ru(),u.flags|=256,Si(c,u,h,g),u.child}var H1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function j1(c){return{baseLanes:c,cachePool:VD()}}function V1(c,u,h){return c=c!==null?c.childLanes&~h:0,u&&(c|=Os),c}function n$(c,u,h){var g=u.pendingProps,y=!1,S=(u.flags&128)!==0,x;if((x=S)||(x=c!==null&&c.memoizedState===null?!1:($r.current&2)!==0),x&&(y=!0,u.flags&=-129),x=(u.flags&32)!==0,u.flags&=-33,c===null){if(on){if(y?Xc(u):Kc(),(c=or)?(c=uF(c,Ks),c=c!==null&&c.data!=="&"?c:null,c!==null&&(u.memoizedState={dehydrated:c,treeContext:Hc!==null?{id:Go,overflow:qo}:null,retryLane:536870912,hydrationErrors:null},h=DD(c),h.return=u,u.child=h,yi=u,or=null)):c=null,c===null)throw Vc(u);return Cx(c)?u.lanes=32:u.lanes=536870912,null}var O=g.children;return g=g.fallback,y?(Kc(),y=u.mode,O=xy({mode:"hidden",children:O},y),g=Au(g,y,h,null),O.return=u,g.return=u,O.sibling=g,u.child=O,g=u.child,g.memoizedState=j1(h),g.childLanes=V1(c,x,h),u.memoizedState=H1,mg(null,g)):(Xc(u),G1(u,O))}var z=c.memoizedState;if(z!==null&&(O=z.dehydrated,O!==null)){if(S)u.flags&256?(Xc(u),u.flags&=-257,u=q1(c,u,h)):u.memoizedState!==null?(Kc(),u.child=c.child,u.flags|=128,u=null):(Kc(),O=g.fallback,y=u.mode,g=xy({mode:"visible",children:g.children},y),O=Au(O,y,h,null),O.flags|=2,g.return=u,O.return=u,g.sibling=O,u.child=g,Lu(u,c.child,null,h),g=u.child,g.memoizedState=j1(h),g.childLanes=V1(c,x,h),u.memoizedState=H1,u=mg(null,g));else if(Xc(u),Cx(O)){if(x=O.nextSibling&&O.nextSibling.dataset,x)var ae=x.dgst;x=ae,g=Error(r(419)),g.stack="",g.digest=x,ig({value:g,source:null,stack:null}),u=q1(c,u,h)}else if(Jr||vd(c,u,h,!1),x=(h&c.childLanes)!==0,Jr||x){if(x=qn,x!==null&&(g=nt(x,h),g!==0&&g!==z.retryLane))throw z.retryLane=g,Cu(c,g),ds(x,c,g),B1;xx(O)||Ly(),u=q1(c,u,h)}else xx(O)?(u.flags|=192,u.child=c.child,u=null):(c=z.treeContext,or=Js(O.nextSibling),yi=u,on=!0,jc=null,Ks=!1,c!==null&&FD(u,c),u=G1(u,g.children),u.flags|=4096);return u}return y?(Kc(),O=g.fallback,y=u.mode,z=c.child,ae=z.sibling,g=La(z,{mode:"hidden",children:g.children}),g.subtreeFlags=z.subtreeFlags&65011712,ae!==null?O=La(ae,O):(O=Au(O,y,h,null),O.flags|=2),O.return=u,g.return=u,g.sibling=O,u.child=g,mg(null,g),g=u.child,O=c.child.memoizedState,O===null?O=j1(h):(y=O.cachePool,y!==null?(z=Kr._currentValue,y=y.parent!==z?{parent:z,pool:z}:y):y=VD(),O={baseLanes:O.baseLanes|h,cachePool:y}),g.memoizedState=O,g.childLanes=V1(c,x,h),u.memoizedState=H1,mg(c.child,g)):(Xc(u),h=c.child,c=h.sibling,h=La(h,{mode:"visible",children:g.children}),h.return=u,h.sibling=null,c!==null&&(x=u.deletions,x===null?(u.deletions=[c],u.flags|=16):x.push(c)),u.child=h,u.memoizedState=null,h)}function G1(c,u){return u=xy({mode:"visible",children:u},c.mode),u.return=c,c.child=u}function xy(c,u){return c=As(22,c,null,u),c.lanes=0,c}function q1(c,u,h){return Lu(u,c.child,null,h),c=G1(u,u.pendingProps.children),c.flags|=2,u.memoizedState=null,c}function r$(c,u,h){c.lanes|=u;var g=c.alternate;g!==null&&(g.lanes|=u),a1(c.return,u,h)}function W1(c,u,h,g,y,S){var x=c.memoizedState;x===null?c.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:g,tail:h,tailMode:y,treeForkCount:S}:(x.isBackwards=u,x.rendering=null,x.renderingStartTime=0,x.last=g,x.tail=h,x.tailMode=y,x.treeForkCount=S)}function i$(c,u,h){var g=u.pendingProps,y=g.revealOrder,S=g.tail;g=g.children;var x=$r.current,O=(x&2)!==0;if(O?(x=x&1|2,u.flags|=128):x&=1,re($r,x),Si(c,u,g,h),g=on?rg:0,
vendor: 5,049 bytes, line 9
9!O&&c!==null&&(c.flags&128)!==0)e:for(c=u.child;c!==null;){if(c.tag===13)c.memoizedState!==null&&r$(c,h,u);else if(c.tag===19)r$(c,h,u);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===u)break e;for(;c.sibling===null;){if(c.return===null||c.return===u)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}switch(y){case"forwards":for(h=u.child,y=null;h!==null;)c=h.alternate,c!==null&&hy(c)===null&&(y=h),h=h.sibling;h=y,h===null?(y=u.child,u.child=null):(y=h.sibling,h.sibling=null),W1(u,!1,y,h,S,g);break;case"backwards":case"unstable_legacy-backwards":for(h=null,y=u.child,u.child=null;y!==null;){if(c=y.alternate,c!==null&&hy(c)===null){u.child=y;break}c=y.sibling,y.sibling=h,h=y,y=c}W1(u,!0,h,null,S,g);break;case"together":W1(u,!1,null,null,void 0,g);break;default:u.memoizedState=null}return u.child}function Ba(c,u,h){if(c!==null&&(u.dependencies=c.dependencies),Qc|=u.lanes,(h&u.childLanes)===0)if(c!==null){if(vd(c,u,h,!1),(h&u.childLanes)===0)return null}else return null;if(c!==null&&u.child!==c.child)throw Error(r(153));if(u.child!==null){for(c=u.child,h=La(c,c.pendingProps),u.child=h,h.return=u;c.sibling!==null;)c=c.sibling,h=h.sibling=La(c,c.pendingProps),h.return=u;h.sibling=null}return u.child}function Y1(c,u){return(c.lanes&u)!==0?!0:(c=c.dependencies,!!(c!==null&&sy(c)))}function WJ(c,u,h){switch(u.tag){case 3:Be(u,u.stateNode.containerInfo),Gc(u,Kr,c.memoizedState.cache),Ru();break;case 27:case 5:pt(u);break;case 4:Be(u,u.stateNode.containerInfo);break;case 10:Gc(u,u.type,u.memoizedProps.value);break;case 31:if(u.memoizedState!==null)return u.flags|=128,y1(u),null;break;case 13:var g=u.memoizedState;if(g!==null)return g.dehydrated!==null?(Xc(u),u.flags|=128,null):(h&u.child.childLanes)!==0?n$(c,u,h):(Xc(u),c=Ba(c,u,h),c!==null?c.sibling:null);Xc(u);break;case 19:var y=(c.flags&128)!==0;if(g=(h&u.childLanes)!==0,g||(vd(c,u,h,!1),g=(h&u.childLanes)!==0),y){if(g)return i$(c,u,h);u.flags|=128}if(y=u.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),re($r,$r.current),g)break;return null;case 22:return u.lanes=0,KP(c,u,h,u.pendingProps);case 24:Gc(u,Kr,c.memoizedState.cache)}return Ba(c,u,h)}function s$(c,u,h){if(c!==null)if(c.memoizedProps!==u.pendingProps)Jr=!0;else{if(!Y1(c,h)&&(u.flags&128)===0)return Jr=!1,WJ(c,u,h);Jr=(c.flags&131072)!==0}else Jr=!1,on&&(u.flags&1048576)!==0&&$D(u,rg,u.index);switch(u.lanes=0,u.tag){case 16:e:{var g=u.pendingProps;if(c=Mu(u.elementType),u.type=c,typeof c=="function")QT(c)?(g=Pu(c,g),u.tag=1,u=e$(null,u,c,g,h)):(u.tag=0,u=z1(null,u,c,g,h));else{if(c!=null){var y=c.$$typeof;if(y===C){u.tag=11,u=WP(null,u,c,g,h);break e}else if(y===I){u.tag=14,u=YP(null,u,c,g,h);break e}}throw u=j(c)||c,Error(r(306,u,""))}}return u;case 0:return z1(c,u,u.type,u.pendingProps,h);case 1:return g=u.type,y=Pu(g,u.pendingProps),e$(c,u,g,y,h);case 3:e:{if(Be(u,u.stateNode.containerInfo),c===null)throw Error(r(387));g=u.pendingProps;var S=u.memoizedState;y=S.element,p1(c,u),fg(u,g,null,h);var x=u.memoizedState;if(g=x.cache,Gc(u,Kr,g),g!==S.cache&&c1(u,[Kr],h,!0),ug(),g=x.element,S.isDehydrated)if(S={element:g,isDehydrated:!1,cache:x.cache},u.updateQueue.baseState=S,u.memoizedState=S,u.flags&256){u=t$(c,u,g,h);break e}else if(g!==y){y=Ws(Error(r(424)),u),ig(y),u=t$(c,u,g,h);break e}else{switch(c=u.stateNode.containerInfo,c.nodeType){case 9:c=c.body;break;default:c=c.nodeName==="HTML"?c.ownerDocument.body:c}for(or=Js(c.firstChild),yi=u,on=!0,jc=null,Ks=!0,h=KD(u,null,g,h),u.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(Ru(),g===y){u=Ba(c,u,h);break e}Si(c,u,g,h)}u=u.child}return u;case 26:return Ty(c,u),c===null?(h=mF(u.type,null,u.pendingProps,null))?u.memoizedState=h:on||(h=u.type,c=u.pendingProps,g=zy(Ee.current).createElement(h),g[Ne]=u,g[gt]=c,Ei(g,h,c),Ve(g),u.stateNode=g):u.memoizedState=mF(u.type,c.memoizedProps,u.pendingProps,c.memoizedState),null;case 27:return pt(u),c===null&&on&&(g=u.stateNode=hF(u.type,u.pendingProps,Ee.current),yi=u,Ks=!0,y=or,il(u.type)?(Ax=y,or=Js(g.firstChild)):or=y),Si(c,u,u.pendingProps.children,h),Ty(c,u),c===null&&(u.flags|=4194304),u.child;case 5:return c===null&&on&&((y=g=or)&&(g=wQ(g,u.type,u.pendingProps,Ks),g!==null?(u.stateNode=g,yi=u,or=Js(g.firstChild),Ks=!1,y=!0):y=!1),y||Vc(u)),pt(u),y=u.type,S=u.pendingProps,x=c!==null?c.memoizedProps:null,g=S.children,Ex(y,S)?g=null:x!==null&&Ex(y,x)&&(u.flags|=32),u.memoizedState!==null&&(y=S1(c,u,FJ,null,null,h),Og._currentValue=y),Ty(c,u),Si(c,u,g,h),u.child;case 6:return c===null&&on&&((c=h=or)&&(h=TQ(h,u.pendingProps,Ks),h!==null?(u.stateNode=h,yi=u,or=null,c=!0):c=!1),c||Vc(u)),null;case 13:return n$(c,u,h);case 4:return Be(u,u.stateNode.containerInfo),g=u.pendingProps,c===null?u.child=Lu(u,null,g,h):Si(c,u,g,h),u.child;case 11:return WP(c,u,u.type,u.pendingProps,h);case 7:return Si(c,u,u.pendingProps,h),u.child;case 8:return Si(c,u,u.pendingProps.children,h),u.child;case 12:return Si(c,u,u.pendingProps.children,h),u.child;case 10:return g=u.pendingProps,Gc(u,u.type,g.value),Si(c,u,g.children,h),u.child;
vendor: 4,272 bytes, line 9
9case 9:return y=u.type._context,g=u.pendingProps.children,Iu(u),y=bi(y),g=g(y),u.flags|=1,Si(c,u,g,h),u.child;case 14:return YP(c,u,u.type,u.pendingProps,h);case 15:return XP(c,u,u.type,u.pendingProps,h);case 19:return i$(c,u,h);case 31:return qJ(c,u,h);case 22:return KP(c,u,h,u.pendingProps);case 24:return Iu(u),g=bi(Kr),c===null?(y=f1(),y===null&&(y=qn,S=l1(),y.pooledCache=S,S.refCount++,S!==null&&(y.pooledCacheLanes|=h),y=S),u.memoizedState={parent:g,cache:y},h1(u),Gc(u,Kr,y)):((c.lanes&h)!==0&&(p1(c,u),fg(u,null,null,h),ug()),y=c.memoizedState,S=u.memoizedState,y.parent!==g?(y={parent:g,cache:g},u.memoizedState=y,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=y),Gc(u,Kr,g)):(g=S.cache,Gc(u,Kr,g),g!==y.cache&&c1(u,[Kr],h,!0))),Si(c,u,u.pendingProps.children,h),u.child;case 29:throw u.pendingProps}throw Error(r(156,u.tag))}function za(c){c.flags|=4}function X1(c,u,h,g,y){if((u=(c.mode&32)!==0)&&(u=!1),u){if(c.flags|=16777216,(y&335544128)===y)if(c.stateNode.complete)c.flags|=8192;else if(M$())c.flags|=8192;else throw Nu=ly,d1}else c.flags&=-16777217}function o$(c,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)c.flags&=-16777217;else if(c.flags|=16777216,!SF(u))if(M$())c.flags|=8192;else throw Nu=ly,d1}function Cy(c,u){u!==null&&(c.flags|=4),c.flags&16384&&(u=c.tag!==22?_t():536870912,c.lanes|=u,Id|=u)}function _g(c,u){if(!on)switch(c.tailMode){case"hidden":u=c.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?c.tail=null:h.sibling=null;break;case"collapsed":h=c.tail;for(var g=null;h!==null;)h.alternate!==null&&(g=h),h=h.sibling;g===null?u||c.tail===null?c.tail=null:c.tail.sibling=null:g.sibling=null}}function ar(c){var u=c.alternate!==null&&c.alternate.child===c.child,h=0,g=0;if(u)for(var y=c.child;y!==null;)h|=y.lanes|y.childLanes,g|=y.subtreeFlags&65011712,g|=y.flags&65011712,y.return=c,y=y.sibling;else for(y=c.child;y!==null;)h|=y.lanes|y.childLanes,g|=y.subtreeFlags,g|=y.flags,y.return=c,y=y.sibling;return c.subtreeFlags|=g,c.childLanes=h,u}function YJ(c,u,h){var g=u.pendingProps;switch(r1(u),u.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ar(u),null;case 1:return ar(u),null;case 3:return h=u.stateNode,g=null,c!==null&&(g=c.memoizedState.cache),u.memoizedState.cache!==g&&(u.flags|=2048),$a(Kr),dt(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(c===null||c.child===null)&&(_d(u)?za(u):c===null||c.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,s1())),ar(u),null;case 26:var y=u.type,S=u.memoizedState;return c===null?(za(u),S!==null?(ar(u),o$(u,S)):(ar(u),X1(u,y,null,g,h))):S?S!==c.memoizedState?(za(u),ar(u),o$(u,S)):(ar(u),u.flags&=-16777217):(c=c.memoizedProps,c!==g&&za(u),ar(u),X1(u,y,c,g,h)),null;case 27:if(Hn(u),h=Ee.current,y=u.type,c!==null&&u.stateNode!=null)c.memoizedProps!==g&&za(u);else{if(!g){if(u.stateNode===null)throw Error(r(166));return ar(u),null}c=me.current,_d(u)?UD(u):(c=hF(y,g,h),u.stateNode=c,za(u))}return ar(u),null;case 5:if(Hn(u),y=u.type,c!==null&&u.stateNode!=null)c.memoizedProps!==g&&za(u);else{if(!g){if(u.stateNode===null)throw Error(r(166));return ar(u),null}if(S=me.current,_d(u))UD(u);else{var x=zy(Ee.current);switch(S){case 1:S=x.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:S=x.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":S=x.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":S=x.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;case"script":S=x.createElement("div"),S.innerHTML="<script><\/script>",S=S.removeChild(S.firstChild);break;case"select":S=typeof g.is=="string"?x.createElement("select",{is:g.is}):x.createElement("select"),g.multiple?S.multiple=!0:g.size&&(S.size=g.size);break;default:S=typeof g.is=="string"?x.createElement(y,{is:g.is}):x.createElement(y)}}S[Ne]=u,S[gt]=g;e:for(x=u.child;x!==null;){if(x.tag===5||x.tag===6)S.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===u)break e;for(;x.sibling===null;){if(x.return===null||x.return===u)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}u.stateNode=S;e:switch(Ei(S,y,g),y){case"button":case"input":case"select":case"textarea":g=!!g.autoF
vendor: 22,034 bytes, line 9
9ocus;break e;case"img":g=!0;break e;default:g=!1}g&&za(u)}}return ar(u),X1(u,u.type,c===null?null:c.memoizedProps,u.pendingProps,h),null;case 6:if(c&&u.stateNode!=null)c.memoizedProps!==g&&za(u);else{if(typeof g!="string"&&u.stateNode===null)throw Error(r(166));if(c=Ee.current,_d(u)){if(c=u.stateNode,h=u.memoizedProps,g=null,y=yi,y!==null)switch(y.tag){case 27:case 5:g=y.memoizedProps}c[Ne]=u,c=!!(c.nodeValue===h||g!==null&&g.suppressHydrationWarning===!0||nF(c.nodeValue,h)),c||Vc(u,!0)}else c=zy(c).createTextNode(g),c[Ne]=u,u.stateNode=c}return ar(u),null;case 31:if(h=u.memoizedState,c===null||c.memoizedState!==null){if(g=_d(u),h!==null){if(c===null){if(!g)throw Error(r(318));if(c=u.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(557));c[Ne]=u}else Ru(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;ar(u),c=!1}else h=s1(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=h),c=!0;if(!c)return u.flags&256?(ks(u),u):(ks(u),null);if((u.flags&128)!==0)throw Error(r(558))}return ar(u),null;case 13:if(g=u.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(y=_d(u),g!==null&&g.dehydrated!==null){if(c===null){if(!y)throw Error(r(318));if(y=u.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[Ne]=u}else Ru(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;ar(u),y=!1}else y=s1(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=y),y=!0;if(!y)return u.flags&256?(ks(u),u):(ks(u),null)}return ks(u),(u.flags&128)!==0?(u.lanes=h,u):(h=g!==null,c=c!==null&&c.memoizedState!==null,h&&(g=u.child,y=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(y=g.alternate.memoizedState.cachePool.pool),S=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(S=g.memoizedState.cachePool.pool),S!==y&&(g.flags|=2048)),h!==c&&h&&(u.child.flags|=8192),Cy(u,u.updateQueue),ar(u),null);case 4:return dt(),c===null&&_x(u.stateNode.containerInfo),ar(u),null;case 10:return $a(u.type),ar(u),null;case 19:if(J($r),g=u.memoizedState,g===null)return ar(u),null;if(y=(u.flags&128)!==0,S=g.rendering,S===null)if(y)_g(g,!1);else{if(Ir!==0||c!==null&&(c.flags&128)!==0)for(c=u.child;c!==null;){if(S=hy(c),S!==null){for(u.flags|=128,_g(g,!1),c=S.updateQueue,u.updateQueue=c,Cy(u,c),u.subtreeFlags=0,c=h,h=u.child;h!==null;)LD(h,c),h=h.sibling;return re($r,$r.current&1|2),on&&Da(u,g.treeForkCount),u.child}c=c.sibling}g.tail!==null&&it()>Oy&&(u.flags|=128,y=!0,_g(g,!1),u.lanes=4194304)}else{if(!y)if(c=hy(S),c!==null){if(u.flags|=128,y=!0,c=c.updateQueue,u.updateQueue=c,Cy(u,c),_g(g,!0),g.tail===null&&g.tailMode==="hidden"&&!S.alternate&&!on)return ar(u),null}else 2*it()-g.renderingStartTime>Oy&&h!==536870912&&(u.flags|=128,y=!0,_g(g,!1),u.lanes=4194304);g.isBackwards?(S.sibling=u.child,u.child=S):(c=g.last,c!==null?c.sibling=S:u.child=S,g.last=S)}return g.tail!==null?(c=g.tail,g.rendering=c,g.tail=c.sibling,g.renderingStartTime=it(),c.sibling=null,h=$r.current,re($r,y?h&1|2:h&1),on&&Da(u,g.treeForkCount),c):(ar(u),null);case 22:case 23:return ks(u),v1(),g=u.memoizedState!==null,c!==null?c.memoizedState!==null!==g&&(u.flags|=8192):g&&(u.flags|=8192),g?(h&536870912)!==0&&(u.flags&128)===0&&(ar(u),u.subtreeFlags&6&&(u.flags|=8192)):ar(u),h=u.updateQueue,h!==null&&Cy(u,h.retryQueue),h=null,c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(h=c.memoizedState.cachePool.pool),g=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),g!==h&&(u.flags|=2048),c!==null&&J(Ou),null;case 24:return h=null,c!==null&&(h=c.memoizedState.cache),u.memoizedState.cache!==h&&(u.flags|=2048),$a(Kr),ar(u),null;case 25:return null;case 30:return null}throw Error(r(156,u.tag))}function XJ(c,u){switch(r1(u),u.tag){case 1:return c=u.flags,c&65536?(u.flags=c&-65537|128,u):null;case 3:return $a(Kr),dt(),c=u.flags,(c&65536)!==0&&(c&128)===0?(u.flags=c&-65537|128,u):null;case 26:case 27:case 5:return Hn(u),null;case 31:if(u.memoizedState!==null){if(ks(u),u.alternate===null)throw Error(r(340));Ru()}return c=u.flags,c&65536?(u.flags=c&-65537|128,u):null;case 13:if(ks(u),c=u.memoizedState,c!==null&&c.dehydrated!==null){if(u.alternate===null)throw Error(r(340));Ru()}return c=u.flags,c&65536?(u.flags=c&-65537|128,u):null;case 19:return J($r),null;case 4:return dt(),null;case 10:return $a(u.type),null;case 22:case 23:return ks(u),v1(),c!==null&&J(Ou),c=u.flags,c&65536?(u.flags=c&-65537|128,u):null;case 24:return $a(Kr),null;case 25:return null;default:return null}}function a$(c,u){switch(r1(u),u.tag){case 3:$a(Kr),dt();break;case 26:case 27:case 5:Hn(u);break;case 4:dt();break;case 31:u.memoizedState!==null&&ks(u);break;case 13:ks(u);break;case 19:J($r);break;case 10:$a(u.type);break;case 22:case 23:ks(u),v1(),c!==null&&J(Ou);break;case 24:$a(Kr)}}function vg(c,u){try{var h=u.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var y=g.next;h=y;do{if((h.tag&c)===c){g=void 0;var S=h.create,x=h.inst;g=S(),x.destroy=g}h=h.next}while(h!==y)}}catch(O){Mn(u,u.return,O)}}function Zc(c,u,h){try{var g=u.updateQueue,y=g!==null?g.lastEffect:null;if(y!==null){var S=y.next;g=S;do{if((g.tag&c)===c){var x=g.inst,O=x.destroy;if(O!==void 0){x.destroy=void 0,y=u;var z=h,ae=O;try{ae()}catch(ve){Mn(y,z,ve)}}}g=g.next}while(g!==S)}}catch(ve){Mn(u,u.return,ve)}}function c$(c){var u=c.updateQueue;if(u!==null){var h=c.stateNode;try{JD(u,h)}catch(g){Mn(c,c.return,g)}}}function l$(c,u,h){h.props=Pu(c.type,c.memoizedProps),h.state=c.memoizedState;try{h.componentWillUnmount()}catch(g){Mn(c,u,g)}}function yg(c,u){try{var h=c.ref;if(h!==null){switch(c.tag){case 26:case 27:case 5:var g=c.stateNode;break;case 30:g=c.stateNode;break;default:g=c.stateNode}typeof h=="function"?c.refCleanup=h(g):h.current=g}}catch(y){Mn(c,u,y)}}function Wo(c,u){var h=c.ref,g=c.refCleanup;if(h!==null)if(typeof g=="function")try{g()}catch(y){Mn(c,u,y)}finally{c.refCleanup=null,c=c.alternate,c!=null&&(c.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(y){Mn(c,u,y)}else h.current=null}function u$(c){var u=c.type,h=c.memoizedProps,g=c.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":h.autoFocus&&g.focus();break e;case"img":h.src?g.src=h.src:h.srcSet&&(g.srcset=h.srcSet)}}catch(y){Mn(c,c.return,y)}}function K1(c,u,h){try{var g=c.stateNode;_Q(g,c.type,h,u),g[gt]=u}catch(y){Mn(c,c.return,y)}}function f$(c){return c.tag===5||c.tag===3||c.tag===26||c.tag===27&&il(c.type)||c.tag===4}function Z1(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||f$(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.tag===27&&il(c.type)||c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function J1(c,u,h){var g=c.tag;if(g===5||g===6)c=c.stateNode,u?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(c,u):(u=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,u.appendChild(c),h=h._reactRootContainer,h!=null||u.onclick!==null||(u.onclick=Xr));else if(g!==4&&(g===27&&il(c.type)&&(h=c.stateNode,u=null),c=c.child,c!==null))for(J1(c,u,h),c=c.sibling;c!==null;)J1(c,u,h),c=c.sibling}function Ay(c,u,h){var g=c.tag;if(g===5||g===6)c=c.stateNode,u?h.insertBefore(c,u):h.appendChild(c);else if(g!==4&&(g===27&&il(c.type)&&(h=c.stateNode),c=c.child,c!==null))for(Ay(c,u,h),c=c.sibling;c!==null;)Ay(c,u,h),c=c.sibling}function d$(c){var u=c.stateNode,h=c.memoizedProps;try{for(var g=c.type,y=u.attributes;y.length;)u.removeAttributeNode(y[0]);Ei(u,g,h),u[Ne]=c,u[gt]=h}catch(S){Mn(c,c.return,S)}}var Ha=!1,Qr=!1,Q1=!1,h$=typeof WeakSet=="function"?WeakSet:Set,hi=null;function KJ(c,u){if(c=c.containerInfo,bx=Yy,c=xD(c),qT(c)){if("selectionStart"in c)var h={start:c.selectionStart,end:c.selectionEnd};else e:{h=(h=c.ownerDocument)&&h.defaultView||window;var g=h.getSelection&&h.getSelection();if(g&&g.rangeCount!==0){h=g.anchorNode;var y=g.anchorOffset,S=g.focusNode;g=g.focusOffset;try{h.nodeType,S.nodeType}catch{h=null;break e}var x=0,O=-1,z=-1,ae=0,ve=0,Se=c,le=null;t:for(;;){for(var pe;Se!==h||y!==0&&Se.nodeType!==3||(O=x+y),Se!==S||g!==0&&Se.nodeType!==3||(z=x+g),Se.nodeType===3&&(x+=Se.nodeValue.length),(pe=Se.firstChild)!==null;)le=Se,Se=pe;for(;;){if(Se===c)break t;if(le===h&&++ae===y&&(O=x),le===S&&++ve===g&&(z=x),(pe=Se.nextSibling)!==null)break;Se=le,le=Se.parentNode}Se=pe}h=O===-1||z===-1?null:{start:O,end:z}}else h=null}h=h||{start:0,end:0}}else h=null;for(Sx={focusedElem:c,selectionRange:h},Yy=!1,hi=u;hi!==null;)if(u=hi,c=u.child,(u.subtreeFlags&1028)!==0&&c!==null)c.return=u,hi=c;else for(;hi!==null;){switch(u=hi,S=u.alternate,c=u.flags,u.tag){case 0:if((c&4)!==0&&(c=u.updateQueue,c=c!==null?c.events:null,c!==null))for(h=0;h<c.length;h++)y=c[h],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((c&1024)!==0&&S!==null){c=void 0,h=u,y=S.memoizedProps,S=S.memoizedState,g=h.stateNode;try{var Xe=Pu(h.type,y);c=g.getSnapshotBeforeUpdate(Xe,S),g.__reactInternalSnapshotBeforeUpdate=c}catch(ut){Mn(h,h.return,ut)}}break;case 3:if((c&1024)!==0){if(c=u.stateNode.containerInfo,h=c.nodeType,h===9)Tx(c);else if(h===1)switch(c.nodeName){case"HEAD":case"HTML":case"BODY":Tx(c);break;default:c.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((c&1024)!==0)throw Error(r(163))}if(c=u.sibling,c!==null){c.return=u.return,hi=c;break}hi=u.return}}function p$(c,u,h){var g=h.flags;switch(h.tag){case 0:case 11:case 15:Va(c,h),g&4&&vg(5,h);break;case 1:if(Va(c,h),g&4)if(c=h.stateNode,u===null)try{c.componentDidMount()}catch(x){Mn(h,h.return,x)}else{var y=Pu(h.type,u.memoizedProps);u=u.memoizedState;try{c.componentDidUpdate(y,u,c.__reactInternalSnapshotBeforeUpdate)}catch(x){Mn(h,h.return,x)}}g&64&&c$(h),g&512&&yg(h,h.return);break;case 3:if(Va(c,h),g&64&&(c=h.updateQueue,c!==null)){if(u=null,h.child!==null)switch(h.child.tag){case 27:case 5:u=h.child.stateNode;break;case 1:u=h.child.stateNode}try{JD(c,u)}catch(x){Mn(h,h.return,x)}}break;case 27:u===null&&g&4&&d$(h);case 26:case 5:Va(c,h),u===null&&g&4&&u$(h),g&512&&yg(h,h.return);break;case 12:Va(c,h);break;case 31:Va(c,h),g&4&&_$(c,h);break;case 13:Va(c,h),g&4&&v$(c,h),g&64&&(c=h.memoizedState,c!==null&&(c=c.dehydrated,c!==null&&(h=sQ.bind(null,h),xQ(c,h))));break;case 22:if(g=h.memoizedState!==null||Ha,!g){u=u!==null&&u.memoizedState!==null||Qr,y=Ha;var S=Qr;Ha=g,(Qr=u)&&!S?Ga(c,h,(h.subtreeFlags&8772)!==0):Va(c,h),Ha=y,Qr=S}break;case 30:break;default:Va(c,h)}}function g$(c){var u=c.alternate;u!==null&&(c.alternate=null,g$(u)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(u=c.stateNode,u!==null&&F(u)),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}var mr=null,cs=!1;function ja(c,u,h){for(h=h.child;h!==null;)m$(c,u,h),h=h.sibling}function m$(c,u,h){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(ji,h)}catch{}switch(h.tag){case 26:Qr||Wo(h,u),ja(c,u,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:Qr||Wo(h,u);var g=mr,y=cs;il(h.type)&&(mr=h.stateNode,cs=!1),ja(c,u,h),Rg(h.stateNode),mr=g,cs=y;break;case 5:Qr||Wo(h,u);case 6:if(g=mr,y=cs,mr=null,ja(c,u,h),mr=g,cs=y,mr!==null)if(cs)try{(mr.nodeType===9?mr.body:mr.nodeName==="HTML"?mr.ownerDocument.body:mr).removeChild(h.stateNode)}catch(S){Mn(h,u,S)}else try{mr.removeChild(h.stateNode)}catch(S){Mn(h,u,S)}break;case 18:mr!==null&&(cs?(c=mr,cF(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,h.stateNode),Fd(c)):cF(mr,h.stateNode));break;case 4:g=mr,y=cs,mr=h.stateNode.containerInfo,cs=!0,ja(c,u,h),mr=g,cs=y;break;case 0:case 11:case 14:case 15:Zc(2,h,u),Qr||Zc(4,h,u),ja(c,u,h);break;case 1:Qr||(Wo(h,u),g=h.stateNode,typeof g.componentWillUnmount=="function"&&l$(h,u,g)),ja(c,u,h);break;case 21:ja(c,u,h);break;case 22:Qr=(g=Qr)||h.memoizedState!==null,ja(c,u,h),Qr=g;break;default:ja(c,u,h)}}function _$(c,u){if(u.memoizedState===null&&(c=u.alternate,c!==null&&(c=c.memoizedState,c!==null))){c=c.dehydrated;try{Fd(c)}catch(h){Mn(u,u.return,h)}}}function v$(c,u){if(u.memoizedState===null&&(c=u.alternate,c!==null&&(c=c.memoizedState,c!==null&&(c=c.dehydrated,c!==null))))try{Fd(c)}catch(h){Mn(u,u.return,h)}}function ZJ(c){switch(c.tag){case 31:case 13:case 19:var u=c.stateNode;return u===null&&(u=c.stateNode=new h$),u;case 22:return c=c.stateNode,u=c._retryCache,u===null&&(u=c._retryCache=new h$),u;default:throw Error(r(435,c.tag))}}function Ry(c,u){var h=ZJ(c);u.forEach(function(g){if(!h.has(g)){h.add(g);var y=oQ.bind(null,c,g);g.then(y,y)}})}function ls(c,u){var h=u.deletions;if(h!==null)for(var g=0;g<h.length;g++){var y=h[g],S=c,x=u,O=x;e:for(;O!==null;){switch(O.tag){case 27:if(il(O.type)){mr=O.stateNode,cs=!1;break e}break;case 5:mr=O.stateNode,cs=!1;break e;case 3:case 4:mr=O.stateNode.containerInfo,cs=!0;break e}O=O.return}if(mr===null)throw Error(r(160));m$(S,x,y),mr=null,cs=!1,S=y.alternate,S!==null&&(S.return=null),y.return=null}if(u.subtreeFlags&13886)for(u=u.child;u!==null;)y$(u,c),u=u.sibling}var xo=null;function y$(c,u){var h=c.alternate,g=c.flags;switch(c.tag){case 0:case 11:case 14:case 15:ls(u,c),us(c),g&4&&(Zc(3,c,c.return),vg(3,c),Zc(5,c,c.return));break;case 1:ls(u,c),us(c),g&512&&(Qr||h===null||Wo(h,h.return)),g&64&&Ha&&(c=c.updateQueue,c!==null&&(g=c.callbacks,g!==null&&(h=c.shared.hiddenCallbacks,c.shared.hiddenCallbacks=h===null?g:h.concat(g))));break;case 26:var y=xo;if(ls(u,c),us(c),g&512&&(Qr||h===null||Wo(h,h.return)),g&4){var S=h!==null?h.memoizedState:null;if(g=c.memoizedState,h===null)if(g===null)if(c.stateNode===null){e:{g=c.type,h=c.memoizedProps,y=y.ownerDocument||y;t:switch(g){case"title":S=y.getElementsByTagName("title")[0],(!S||S[Ae]||S[Ne]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=y.createElement(g),y.head.insertBefore(S,y.querySelector("head > title"))),Ei(S,g,h),S[Ne]=c,Ve(S),g=S;break e;case"link":var x=yF("link","href",y).get(g+(h.href||""));if(x){for(var O=0;O<x.length;O++)if(S=x[O],S.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&S.getAttribute("rel")===(h.rel==null?null:h.rel)&&S.getAttribute("title")===(h.title==null?null:h.title)&&S.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){x.splice(O,1);break t}}S=y.createElement(g),Ei(S,g,h),y.head.appendChild(S);break;case"meta":if(x=yF("meta","content",y).get(g+(h.content||""))){for(O=0;O<x.length;O++)if(S=x[O],S.getAttribute("content")===(h.content==null?null:""+h.content)&&S.getAttribute("name")===(h.name==null?null:h.name)&&S.getAttribute("property")===(h.property==null?null:h.property)&&S.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&S.getAttribute("charset")===(h.charSet==null?null:h.charSet)){x.splice(O,1);break t}}S=y.createElement(g),Ei(S,g,h),y.head.appendChild(S);break;default:throw Error(r(468,g))}S[Ne]=c,Ve(S),g=S}c.stateNode=g}else bF(y,c.type,c.stateNode);else c.stateNode=vF(y,g,c.memoizedProps);else S!==g?(S===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):S.count--,g===null?bF(y,c.type,c.stateNode):vF(y,g,c.memoizedProps)):g===null&&c.stateNode!==null&&K1(c,c.memoizedProps,h.memoizedProps)}break;case 27:ls(u,c),us(c),g&512&&(Qr||h===null||Wo(h,h.return)),h!==null&&g&4&&K1(c,c.memoizedProps,h.memoizedProps);break;case 5:if(ls(u,c),us(c),g&512&&(Qr||h===null||Wo(h,h.return)),c.flags&32){y=c.stateNode;try{Ma(y,"")}catch(Xe){Mn(c,c.return,Xe)}}g&4&&c.stateNode!=null&&(y=c.memoizedProps,K1(c,y,h!==null?h.memoizedProps:y)),g&1024&&(Q1=!0);break;case 6:if(ls(u,c),us(c),g&4){if(c.stateNode===null)throw Error(r(162));g=c.memoizedProps,h=c.stateNode;try{h.nodeValue=g}catch(Xe){Mn(c,c.return,Xe)}}break;case 3:if(Vy=null,y=xo,xo=Hy(u.containerInfo),ls(u,c),xo=y,us(c),g&4&&h!==null&&h.memoizedState.isDehydrated)try{Fd(u.containerInfo)}catch(Xe){Mn(c,c.return,Xe)}Q1&&(Q1=!1,b$(c));break;case 4:g=xo,xo=Hy(c.stateNode.containerInfo),ls(u,c),us(c),xo=g;break;case 12:ls(u,c),us(c);break;case 31:ls(u,c),us(c),g&4&&(g=c.updateQueue,g!==null&&(c.updateQueue=null,Ry(c,g)));break;case 13:ls(u,c),us(c),c.child.flags&8192&&c.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(Iy=it()),g&4&&(g=c.updateQueue,g!==null&&(c.updateQueue=null,Ry(c,g)));break;case 22:y=c.memoizedState!==null;var z=h!==null&&h.memoizedState!==null,ae=Ha,ve=Qr;if(Ha=ae||y,Qr=ve||z,ls(u,c),Qr=ve,Ha=ae,us(c),g&8192)e:for(u=c.stateNode,u._visibility=y?u._visibility&-2:u._visibility|1,y&&(h===null||z||Ha||Qr||$u(c)),h=null,u=c;;){if(u.tag===5||u.tag===26){if(h===null){z=h=u;try{if(S=z.stateNode,y)x=S.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{O=z.stateNode;var Se=z.memoizedProps.style,le=Se!=null&&Se.hasOwnProperty("display")?Se.display:null;O.style.display=le==null||typeof le=="boolean"?"":(""+le).trim()}}catch(Xe){Mn(z,z.return,Xe)}}}else if(u.tag===6){if(h===null){z=u;try{z.stateNode.nodeValue=y?"":z.memoizedProps}catch(Xe){Mn(z,z.return,Xe)}}}else if(u.tag===18){if(h===null){z=u;try{var pe=z.stateNode;y?lF(pe,!0):lF(z.stateNode,!1)}catch(Xe){Mn(z,z.return,Xe)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===c)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===c)break e;for(;u.sibling===null;){if(u.return===null||u.return===c)break e;h===u&&(h=null),u=u.return}h===u&&(h=null),u.sibling.return=u.return,u=u.sibling}g&4&&(g=c.updateQueue,g!==null&&(h=g.retryQueue,h!==null&&(g.retryQueue=null,Ry(c,h))));break;case 19:ls(u,c),us(c),g&4&&(g=c.updateQueue,g!==null&&(c.updateQueue=null,Ry(c,g)));break;case 30:break;case 21:break;default:ls(u,c),us(c)}}function us(c){var u=c.flags;if(u&2){try{for(var h,g=c.return;g!==null;){if(f$(g)){h=g;break}g=g.return}if(h==null)throw Error(r(160));switch(h.tag){case 27:var y=h.stateNode,S=Z1(c);Ay(c,S,y);break;case 5:var x=h.stateNode;h.flags&32&&(Ma(x,""),h.flags&=-33);var O=Z1(c);Ay(c,O,x);break;case 3:case 4:var z=h.stateNode.containerInfo,ae=Z1(c);J1(c,ae,z);break;default:throw Error(r(161))}}catch(ve){Mn(c,c.return,ve)}c.flags&=-3}u&4096&&(c.flags&=-4097)}function b$(c){if(c.subtreeFlags&1024)for(c=c.child;c!==null;){var u=c;b$(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),c=c.sibling}}function Va(c,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)p$(c,u.alternate,u),u=u.sibling}function $u(c){for(c=c.child;c!==null;){var u=c;switch(u.tag){case 0:case 11:case 14:case 15:Zc(4,u,u.return),$u(u);break;case 1:Wo(u,u.return);var h=u.stateNode;typeof h.componentWillUnmount=="function"&&l$(u,u.return,h),$u(u);break;case 27:Rg(u.stateNode);case 26:case 5:Wo(u,u.return),$u(u);break;case 22:u.memoizedState===null&&$u(u);break;case 30:$u(u);break;default:$u(u)}c=c.sibling}}function Ga(c,u,h){for(h=h&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var g=u.alternate,y=c,S=u,x=S.flags;switch(S.tag){case 0:case 11:case 15:Ga(y,S,h),vg(4,S);break;case 1:if(Ga(y,S,h),g=S,y=g.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(ae){Mn(g,g.return,ae)}if(g=S,y=g.updateQueue,y!==null){var O=g.stateNode;try{var z=y.shared.hiddenCallbacks;if(z!==null)for(y.shared.hiddenCallbacks=null,y=0;y<z.length;y++)ZD(z[y],O)}catch(ae){Mn(g,g.return,ae)}}h&&x&64&&c$(S),yg(S,S.return);break;case 27:d$(S);case 26:case 5:Ga(y,S,h),h&&g===null&&x&4&&u$(S),yg(S,S.return);break;case 12:Ga(y,S,h);break;case 31:Ga(y,S,h),h&&x&4&&_$(y,S);break;case 13:Ga(y,S,h),h&&x&4&&v$(y,S);break;case 22:S.memoizedState===null&&Ga(y,S,h),yg(S,S.return);break;case 30:break;default:Ga(y,S,h)}u=u.sibling}}function ex(c,u){var h=null;c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(h=c.memoizedState.cachePool.pool),c=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(c=u.memoizedState.cachePool.pool),c!==h&&(c!=null&&c.refCount++,h!=null&&sg(h))}function tx(c,u){c=null,u.alternate!==null&&(c=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==c&&(u.refCount++,c!=null&&sg(c))}function Co(c,u,h,g){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)S$(c,u,h,g),u=u.sibling}function S$(c,u,h,g){var y=u.flags;switch(u.tag){case 0:case 11:case 15:Co(c,u,h,g),y&2048&&vg(9,u);break;case 1:Co(c,u,h,g);break;case 3:Co(c,u,h,g),y&2048&&(c=null,u.alternate!==null&&(c=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==c&&(u.refCount++,c!=null&&sg(c)));break;case 12:if(y&2048){Co(c,u,h,g),c=u.stateNode;try{var S=u.memoizedProps,x=S.id,O=S.onPostCommit;typeof O=="function"&&O(x,u.alternate===null?"mount":"update",c.passiveEffectDuration,-0)}catch(z){Mn(u,u.return,z)}}else Co(c,u,h,g);break;case 31:Co(c,u,h,g);break;case 13:Co(c,u,h,g);break;case 23:break;case 22:S=u.stateNode,x=u.alternate,u.memoizedState!==null?S._visibility&2?Co(c,u,h,g):bg(c,u):S._visibility&2?Co(c,u,h,g):(S._visibility|=2,Ad(c,u,h,g,(u.subtreeFlags&10256)!==0||!1)),y&2048&&ex(x,u);break;case 24:Co(c,u,h,g),y&2048&&tx(u.alternate,u);break;default:Co(c,u,h,g)}}function Ad(c,u,h,g,y){for(y=y&&((u.subtreeFlags&10256)!==0||!1),u=u.child;u!==null;){var S=c,x=u,O=h,z=g,ae=x.flags;switch(x.tag){case 0:case 11:case 15:Ad(S,x,O,z,y),vg(8,x);break;case 23:break;case 22:var ve=x.stateNode;x.memoizedState!==null?ve._visibility&2?Ad(S,x,O,z,y):bg(S,x):(ve._visibility|=2,Ad(S,x,O,z,y)),y&&ae&2048&&ex(x.alternate,x);break;case 24:Ad(S,x,O,z,y),y&&ae&2048&&tx(x.alternate,x);break;default:Ad(S,x,O,z,y)}u=u.sibling}}function bg(c,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var h=c,g=u,y=g.flags;switch(g.tag){case 22:bg(h,g),y&2048&&ex(g.alternate,g);break;case 24:bg(h,g),y&2048&&tx(g.alternate,g);break;default:bg(h,g)}u=u.sibling}}var Sg=8192;function Rd(c,u,h){if(c.subtreeFlags&Sg)for(c=c.child;c!==null;)E$(c,u,h),c=c.sibling}function E$(c,u,h){switch(c.tag){case 26:Rd(c,u,h),c.flags&Sg&&c.memoizedState!==null&&$Q(h,xo,c.memoizedState,c.memoizedProps);break;case 5:Rd(c,u,h);break;
vendor: 4,694 bytes, line 9
9case 3:case 4:var g=xo;xo=Hy(c.stateNode.containerInfo),Rd(c,u,h),xo=g;break;case 22:c.memoizedState===null&&(g=c.alternate,g!==null&&g.memoizedState!==null?(g=Sg,Sg=16777216,Rd(c,u,h),Sg=g):Rd(c,u,h));break;default:Rd(c,u,h)}}function w$(c){var u=c.alternate;if(u!==null&&(c=u.child,c!==null)){u.child=null;do u=c.sibling,c.sibling=null,c=u;while(c!==null)}}function Eg(c){var u=c.deletions;if((c.flags&16)!==0){if(u!==null)for(var h=0;h<u.length;h++){var g=u[h];hi=g,x$(g,c)}w$(c)}if(c.subtreeFlags&10256)for(c=c.child;c!==null;)T$(c),c=c.sibling}function T$(c){switch(c.tag){case 0:case 11:case 15:Eg(c),c.flags&2048&&Zc(9,c,c.return);break;case 3:Eg(c);break;case 12:Eg(c);break;case 22:var u=c.stateNode;c.memoizedState!==null&&u._visibility&2&&(c.return===null||c.return.tag!==13)?(u._visibility&=-3,ky(c)):Eg(c);break;default:Eg(c)}}function ky(c){var u=c.deletions;if((c.flags&16)!==0){if(u!==null)for(var h=0;h<u.length;h++){var g=u[h];hi=g,x$(g,c)}w$(c)}for(c=c.child;c!==null;){switch(u=c,u.tag){case 0:case 11:case 15:Zc(8,u,u.return),ky(u);break;case 22:h=u.stateNode,h._visibility&2&&(h._visibility&=-3,ky(u));break;default:ky(u)}c=c.sibling}}function x$(c,u){for(;hi!==null;){var h=hi;switch(h.tag){case 0:case 11:case 15:Zc(8,h,u);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var g=h.memoizedState.cachePool.pool;g!=null&&g.refCount++}break;case 24:sg(h.memoizedState.cache)}if(g=h.child,g!==null)g.return=h,hi=g;else e:for(h=c;hi!==null;){g=hi;var y=g.sibling,S=g.return;if(g$(g),g===h){hi=null;break e}if(y!==null){y.return=S,hi=y;break e}hi=S}}}var JJ={getCacheForType:function(c){var u=bi(Kr),h=u.data.get(c);return h===void 0&&(h=c(),u.data.set(c,h)),h},cacheSignal:function(){return bi(Kr).controller.signal}},QJ=typeof WeakMap=="function"?WeakMap:Map,An=0,qn=null,Xt=null,en=0,On=0,Is=null,Jc=!1,kd=!1,nx=!1,qa=0,Ir=0,Qc=0,Fu=0,rx=0,Os=0,Id=0,wg=null,fs=null,ix=!1,Iy=0,C$=0,Oy=1/0,My=null,el=null,si=0,tl=null,Od=null,Wa=0,sx=0,ox=null,A$=null,Tg=0,ax=null;function Ms(){return(An&2)!==0&&en!==0?en&-en:P.T!==null?hx():un()}function R$(){if(Os===0)if((en&536870912)===0||on){var c=ze;ze<<=1,(ze&3932160)===0&&(ze=262144),Os=c}else Os=536870912;return c=Rs.current,c!==null&&(c.flags|=32),Os}function ds(c,u,h){(c===qn&&(On===2||On===9)||c.cancelPendingCommit!==null)&&(Md(c,0),nl(c,en,Os,!1)),yn(c,h),((An&2)===0||c!==qn)&&(c===qn&&((An&2)===0&&(Fu|=h),Ir===4&&nl(c,en,Os,!1)),Yo(c))}function k$(c,u,h){if((An&6)!==0)throw Error(r(327));var g=!h&&(u&127)===0&&(u&c.expiredLanes)===0||je(c,u),y=g?nQ(c,u):lx(c,u,!0),S=g;do{if(y===0){kd&&!g&&nl(c,u,0,!1);break}else{if(h=c.current.alternate,S&&!eQ(h)){y=lx(c,u,!1),S=!1;continue}if(y===2){if(S=u,c.errorRecoveryDisabledLanes&S)var x=0;else x=c.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){u=x;e:{var O=c;y=wg;var z=O.current.memoizedState.isDehydrated;if(z&&(Md(O,x).flags|=256),x=lx(O,x,!1),x!==2){if(nx&&!z){O.errorRecoveryDisabledLanes|=S,Fu|=S,y=4;break e}S=fs,fs=y,S!==null&&(fs===null?fs=S:fs.push.apply(fs,S))}y=x}if(S=!1,y!==2)continue}}if(y===1){Md(c,0),nl(c,u,0,!0);break}e:{switch(g=c,S=y,S){case 0:case 1:throw Error(r(345));case 4:if((u&4194048)!==u)break;case 6:nl(g,u,Os,!Jc);break e;case 2:fs=null;break;case 3:case 5:break;default:throw Error(r(329))}if((u&62914560)===u&&(y=Iy+300-it(),10<y)){if(nl(g,u,Os,!Jc),lt(g,0,!0)!==0)break e;Wa=u,g.timeoutHandle=oF(I$.bind(null,g,h,fs,My,ix,u,Os,Fu,Id,Jc,S,"Throttled",-0,0),y);break e}I$(g,h,fs,My,ix,u,Os,Fu,Id,Jc,S,null,-0,0)}}break}while(!0);Yo(c)}function I$(c,u,h,g,y,S,x,O,z,ae,ve,Se,le,pe){if(c.timeoutHandle=-1,Se=u.subtreeFlags,Se&8192||(Se&16785408)===16785408){Se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xr},E$(u,S,Se);var Xe=(S&62914560)===S?Iy-it():(S&4194048)===S?C$-it():0;if(Xe=FQ(Se,Xe),Xe!==null){Wa=S,c.cancelPendingCommit=Xe(F$.bind(null,c,u,S,h,g,y,x,O,z,ve,Se,null,le,pe)),nl(c,S,x,!ae);return}}F$(c,u,S,h,g,y,x,O,z)}function eQ(c){for(var u=c;;){var h=u.tag;if((h===0||h===11||h===15)&&u.flags&16384&&(h=u.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var g=0;g<h.length;g++){var y=h[g],S=y.getSnapshot;y=y.value;try{if(!Cs(S(),y))return!1}catch{return!1}}if(h=u.child,u.subtreeFlags&16384&&h!==null)h.return=u,u=h;else{if(u===c)break;for(;u.sibling===null;){if(u.return===null||u.return===c)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function nl(c,u,h,g){u&=~rx,u&=~Fu,c.suspendedLanes|=u,c.pingedLanes&=~u,g&&(c.warmLanes|=u),g=c.expirationTimes;for(var y=u;0<y;){var S=31-Z(y),x=1<<S;g[S]=-1,y&=~x}h!==0&&Rr(c,h,u)}function Ny(){return(An&6)===0?(xg(0),!1):!0}
vendor: 2,308 bytes, line 9
9function cx(){if(Xt!==null){if(On===0)var c=Xt.return;else c=Xt,Pa=ku=null,T1(c),Ed=null,ag=0,c=Xt;for(;c!==null;)a$(c.alternate,c),c=c.return;Xt=null}}function Md(c,u){var h=c.timeoutHandle;h!==-1&&(c.timeoutHandle=-1,bQ(h)),h=c.cancelPendingCommit,h!==null&&(c.cancelPendingCommit=null,h()),Wa=0,cx(),qn=c,Xt=h=La(c.current,null),en=u,On=0,Is=null,Jc=!1,kd=je(c,u),nx=!1,Id=Os=rx=Fu=Qc=Ir=0,fs=wg=null,ix=!1,(u&8)!==0&&(u|=u&32);var g=c.entangledLanes;if(g!==0)for(c=c.entanglements,g&=u;0<g;){var y=31-Z(g),S=1<<y;u|=c[y],g&=~S}return qa=u,ey(),h}function O$(c,u){$t=null,P.H=gg,u===Sd||u===cy?(u=WD(),On=3):u===d1?(u=WD(),On=4):On=u===B1?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,Is=u,Xt===null&&(Ir=1,Ey(c,Ws(u,c.current)))}function M$(){var c=Rs.current;return c===null?!0:(en&4194048)===en?Zs===null:(en&62914560)===en||(en&536870912)!==0?c===Zs:!1}function N$(){var c=P.H;return P.H=gg,c===null?gg:c}function L$(){var c=P.A;return P.A=JJ,c}function Ly(){Ir=4,Jc||(en&4194048)!==en&&Rs.current!==null||(kd=!0),(Qc&134217727)===0&&(Fu&134217727)===0||qn===null||nl(qn,en,Os,!1)}function lx(c,u,h){var g=An;An|=2;var y=N$(),S=L$();(qn!==c||en!==u)&&(My=null,Md(c,u)),u=!1;var x=Ir;e:do try{if(On!==0&&Xt!==null){var O=Xt,z=Is;switch(On){case 8:cx(),x=6;break e;case 3:case 2:case 9:case 6:Rs.current===null&&(u=!0);var ae=On;if(On=0,Is=null,Nd(c,O,z,ae),h&&kd){x=0;break e}break;default:ae=On,On=0,Is=null,Nd(c,O,z,ae)}}tQ(),x=Ir;break}catch(ve){O$(c,ve)}while(!0);return u&&c.shellSuspendCounter++,Pa=ku=null,An=g,P.H=y,P.A=S,Xt===null&&(qn=null,en=0,ey()),x}function tQ(){for(;Xt!==null;)D$(Xt)}function nQ(c,u){var h=An;An|=2;var g=N$(),y=L$();qn!==c||en!==u?(My=null,Oy=it()+500,Md(c,u)):kd=je(c,u);e:do try{if(On!==0&&Xt!==null){u=Xt;var S=Is;t:switch(On){case 1:On=0,Is=null,Nd(c,u,S,1);break;case 2:case 9:if(GD(S)){On=0,Is=null,P$(u);break}u=function(){On!==2&&On!==9||qn!==c||(On=7),Yo(c)},S.then(u,u);break e;case 3:On=7;break e;case 4:On=5;break e;case 7:GD(S)?(On=0,Is=null,P$(u)):(On=0,Is=null,Nd(c,u,S,7));break;case 5:var x=null;switch(Xt.tag){case 26:x=Xt.memoizedState;case 5:case 27:var O=Xt;if(x?SF(x):O.stateNode.complete){On=0,Is=null;var z=O.sibling;if(z!==null)Xt=z;else{var ae=O.return;ae!==null?(Xt=ae,Dy(ae)):Xt=null}break t}}On=0,Is=null,Nd(c,u,S,5);break;
vendor: 9,695 bytes, line 9
9case 6:On=0,Is=null,Nd(c,u,S,6);break;case 8:cx(),Ir=6;break e;default:throw Error(r(462))}}rQ();break}catch(ve){O$(c,ve)}while(!0);return Pa=ku=null,P.H=g,P.A=y,An=h,Xt!==null?0:(qn=null,en=0,ey(),Ir)}function rQ(){for(;Xt!==null&&!Tt();)D$(Xt)}function D$(c){var u=s$(c.alternate,c,qa);c.memoizedProps=c.pendingProps,u===null?Dy(c):Xt=u}function P$(c){var u=c,h=u.alternate;switch(u.tag){case 15:case 0:u=QP(h,u,u.pendingProps,u.type,void 0,en);break;case 11:u=QP(h,u,u.pendingProps,u.type.render,u.ref,en);break;case 5:T1(u);default:a$(h,u),u=Xt=LD(u,qa),u=s$(h,u,qa)}c.memoizedProps=c.pendingProps,u===null?Dy(c):Xt=u}function Nd(c,u,h,g){Pa=ku=null,T1(u),Ed=null,ag=0;var y=u.return;try{if(GJ(c,y,u,h,en)){Ir=1,Ey(c,Ws(h,c.current)),Xt=null;return}}catch(S){if(y!==null)throw Xt=y,S;Ir=1,Ey(c,Ws(h,c.current)),Xt=null;return}u.flags&32768?(on||g===1?c=!0:kd||(en&536870912)!==0?c=!1:(Jc=c=!0,(g===2||g===9||g===3||g===6)&&(g=Rs.current,g!==null&&g.tag===13&&(g.flags|=16384))),$$(u,c)):Dy(u)}function Dy(c){var u=c;do{if((u.flags&32768)!==0){$$(u,Jc);return}c=u.return;var h=YJ(u.alternate,u,qa);if(h!==null){Xt=h;return}if(u=u.sibling,u!==null){Xt=u;return}Xt=u=c}while(u!==null);Ir===0&&(Ir=5)}function $$(c,u){do{var h=XJ(c.alternate,c);if(h!==null){h.flags&=32767,Xt=h;return}if(h=c.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!u&&(c=c.sibling,c!==null)){Xt=c;return}Xt=c=h}while(c!==null);Ir=6,Xt=null}function F$(c,u,h,g,y,S,x,O,z){c.cancelPendingCommit=null;do Py();while(si!==0);if((An&6)!==0)throw Error(r(327));if(u!==null){if(u===c.current)throw Error(r(177));if(S=u.lanes|u.childLanes,S|=ZT,Ar(c,h,S,x,O,z),c===qn&&(Xt=qn=null,en=0),Od=u,tl=c,Wa=h,sx=S,ox=y,A$=g,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(c.callbackNode=null,c.callbackPriority=0,aQ(Hs,function(){return j$(),null})):(c.callbackNode=null,c.callbackPriority=0),g=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||g){g=P.T,P.T=null,y=ee.p,ee.p=2,x=An,An|=4;try{KJ(c,u,h)}finally{An=x,ee.p=y,P.T=g}}si=1,U$(),B$(),z$()}}function U$(){if(si===1){si=0;var c=tl,u=Od,h=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||h){h=P.T,P.T=null;var g=ee.p;ee.p=2;var y=An;An|=4;try{y$(u,c);var S=Sx,x=xD(c.containerInfo),O=S.focusedElem,z=S.selectionRange;if(x!==O&&O&&O.ownerDocument&&TD(O.ownerDocument.documentElement,O)){if(z!==null&&qT(O)){var ae=z.start,ve=z.end;if(ve===void 0&&(ve=ae),"selectionStart"in O)O.selectionStart=ae,O.selectionEnd=Math.min(ve,O.value.length);else{var Se=O.ownerDocument||document,le=Se&&Se.defaultView||window;if(le.getSelection){var pe=le.getSelection(),Xe=O.textContent.length,ut=Math.min(z.start,Xe),Bn=z.end===void 0?ut:Math.min(z.end,Xe);!pe.extend&&ut>Bn&&(x=Bn,Bn=ut,ut=x);var te=wD(O,ut),X=wD(O,Bn);if(te&&X&&(pe.rangeCount!==1||pe.anchorNode!==te.node||pe.anchorOffset!==te.offset||pe.focusNode!==X.node||pe.focusOffset!==X.offset)){var oe=Se.createRange();oe.setStart(te.node,te.offset),pe.removeAllRanges(),ut>Bn?(pe.addRange(oe),pe.extend(X.node,X.offset)):(oe.setEnd(X.node,X.offset),pe.addRange(oe))}}}}for(Se=[],pe=O;pe=pe.parentNode;)pe.nodeType===1&&Se.push({element:pe,left:pe.scrollLeft,top:pe.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<Se.length;O++){var ye=Se[O];ye.element.scrollLeft=ye.left,ye.element.scrollTop=ye.top}}Yy=!!bx,Sx=bx=null}finally{An=y,ee.p=g,P.T=h}}c.current=u,si=2}}function B$(){if(si===2){si=0;var c=tl,u=Od,h=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||h){h=P.T,P.T=null;var g=ee.p;ee.p=2;var y=An;An|=4;try{p$(c,u.alternate,u)}finally{An=y,ee.p=g,P.T=h}}si=3}}function z$(){if(si===4||si===3){si=0,Kn();var c=tl,u=Od,h=Wa,g=A$;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?si=5:(si=0,Od=tl=null,H$(c,c.pendingLanes));var y=c.pendingLanes;if(y===0&&(el=null),Lt(h),u=u.stateNode,sr&&typeof sr.onCommitFiberRoot=="function")try{sr.onCommitFiberRoot(ji,u,void 0,(u.current.flags&128)===128)}catch{}if(g!==null){u=P.T,y=ee.p,ee.p=2,P.T=null;try{for(var S=c.onRecoverableError,x=0;x<g.length;x++){var O=g[x];S(O.value,{componentStack:O.stack})}}finally{P.T=u,ee.p=y}}(Wa&3)!==0&&Py(),Yo(c),y=c.pendingLanes,(h&261930)!==0&&(y&42)!==0?c===ax?Tg++:(Tg=0,ax=c):Tg=0,xg(0)}}function H$(c,u){(c.pooledCacheLanes&=u)===0&&(u=c.pooledCache,u!=null&&(c.pooledCache=null,sg(u)))}function Py(){return U$(),B$(),z$(),j$()}function j$(){if(si!==5)return!1;var c=tl,u=sx;sx=0;var h=Lt(Wa),g=P.T,y=ee.p;try{ee.p=32>h?32:h,P.T=null,h=ox,ox=null;var S=tl,x=Wa;if(si=0,Od=tl=null,Wa=0,(An&6)!==0)throw Error(r(331));var O=An;if(An|=4,T$(S.current),S$(S,S.current,x,h),An=O,xg(0,!1),sr&&typeof sr.onPostCommitFiberRoot=="function")try{sr.onPostCommitFiberRoot(ji,S)}catch{}return!0}finally{ee.p=y,P.T=g,H$(c,u)}}function V$(c,u,h){u=Ws(h,u),u=U1(c.stateNode,u,2),c=Yc(c,u,2),c!==null&&(yn(c,2),Yo(c))}function Mn(c,u,h){if(c.tag===3)V$(c,c,h);else for(;u!==null;){if(u.tag===3){V$(u,c,h);break}else if(u.tag===1){var g=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(el===null||!el.has(g))){c=Ws(h,c),h=GP(2),g=Yc(u,h,2),g!==null&&(qP(h,g,u,c),yn(g,2),Yo(g));break}}u=u.return}}function ux(c,u,h){var g=c.pingCache;if(g===null){g=c.pingCache=new QJ;var y=new Set;g.set(u,y)}else y=g.get(u),y===void 0&&(y=new Set,g.set(u,y));y.has(h)||(nx=!0,y.add(h),c=iQ.bind(null,c,u,h),u.then(c,c))}function iQ(c,u,h){var g=c.pingCache;g!==null&&g.delete(u),c.pingedLanes|=c.suspendedLanes&h,c.warmLanes&=~h,qn===c&&(en&h)===h&&(Ir===4||Ir===3&&(en&62914560)===en&&300>it()-Iy?(An&2)===0&&Md(c,0):rx|=h,Id===en&&(Id=0)),Yo(c)}function G$(c,u){u===0&&(u=_t()),c=Cu(c,u),c!==null&&(yn(c,u),Yo(c))}function sQ(c){var u=c.memoizedState,h=0;u!==null&&(h=u.retryLane),G$(c,h)}function oQ(c,u){var h=0;switch(c.tag){case 31:case 13:var g=c.stateNode,y=c.memoizedState;y!==null&&(h=y.retryLane);break;case 19:g=c.stateNode;break;case 22:g=c.stateNode._retryCache;break;default:throw Error(r(314))}g!==null&&g.delete(u),G$(c,h)}function aQ(c,u){return Ze(c,u)}var $y=null,Ld=null,fx=!1,Fy=!1,dx=!1,rl=0;function Yo(c){c!==Ld&&c.next===null&&(Ld===null?$y=Ld=c:Ld=Ld.next=c),Fy=!0,fx||(fx=!0,lQ())}function xg(c,u){if(!dx&&Fy){dx=!0;do for(var h=!1,g=$y;g!==null;){if(c!==0){var y=g.pendingLanes;if(y===0)var S=0;else{var x=g.suspendedLanes,O=g.pingedLanes;S=(1<<31-Z(42|c)+1)-1,S&=y&~(x&~O),S=S&201326741?S&201326741|1:S?S|2:0}S!==0&&(h=!0,X$(g,S))}else S=en,S=lt(g,g===qn?S:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(S&3)===0||je(g,S)||(h=!0,X$(g,S));g=g.next}while(h);dx=!1}}function cQ(){q$()}function q$(){Fy=fx=!1;var c=0;rl!==0&&yQ()&&(c=rl);for(var u=it(),h=null,g=$y;g!==null;){var y=g.next,S=W$(g,u);S===0?(g.next=null,h===null?$y=y:h.next=y,y===null&&(Ld=h)):(h=g,(c!==0||(S&3)!==0)&&(Fy=!0)),g=y}si!==0&&si!==5||xg(c),rl!==0&&(rl=0)}function W$(c,u){for(var h=c.suspendedLanes,g=c.pingedLanes,y=c.expirationTimes,S=c.pendingLanes&-62914561;0<S;){var x=31-Z(S),O=1<<x,z=y[x];z===-1?((O&h)===0||(O&g)!==0)&&(y[x]=qe(O,u)):z<=u&&(c.expiredLanes|=O),S&=~O}if(u=qn,h=en,h=lt(c,c===u?h:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),g=c.callbackNode,h===0||c===u&&(On===2||On===9)||c.cancelPendingCommit!==null)return g!==null&&g!==null&&kn(g),c.callbackNode=null,c.callbackPriority=0;if((h&3)===0||je(c,h)){if(u=h&-h,u===c.callbackPriority)return u;switch(g!==null&&kn(g),Lt(h)){case 2:case 8:h=xs;break;case 32:h=Hs;break;case 268435456:h=wo;break;default:h=Hs}return g=Y$.bind(null,c),h=Ze(h,g),c.callbackPriority=u,c.callbackNode=h,u}return g!==null&&g!==null&&kn(g),c.callbackPriority=2,c.callbackNode=null,2}function Y$(c,u){if(si!==0&&si!==5)return c.callbackNode=null,c.callbackPriority=0,null;var h=c.callbackNode;if(Py()&&c.callbackNode!==h)return null;var g=en;return g=lt(c,c===qn?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),g===0?null:(k$(c,g,u),W$(c,it()),c.callbackNode!=null&&c.callbackNode===h?Y$.bind(null,c):null)}function X$(c,u){if(Py())return null;k$(c,u,!0)}function lQ(){SQ(function(){(An&6)!==0?Ze(Dr,cQ):q$()})}function hx(){if(rl===0){var c=yd;c===0&&(c=we,we<<=1,(we&261888)===0&&(we=256)),rl=c}return rl}function K$(c){return c==null||typeof c=="symbol"||typeof c=="boolean"?null:typeof c=="function"?c:ki(""+c)}function Z$(c,u){var h=u.ownerDocument.createElement("input");return h.name=u.name,h.value=u.value,c.id&&h.setAttribute("form",c.id),u.parentNode.insertBefore(h,u),c=new FormData(c),h.parentNode.removeChild(h),c}function uQ(c,u,h,g,y){if(u==="submit"&&h&&h.stateNode===y){var S=K$((y[gt]||null).action),x=g.submitter;x&&(u=(u=x[gt]||null)?K$(u.formAction):x.getAttribute("formAction"),u!==null&&(S=u,x=null));var O=new Kv("action","action",null,g,y);c.push({event:O,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(rl!==0){var z=x?Z$(y,x):new FormData(y);N1(h,{pending:!0,data:z,method:y.method,action:S},null,z)}}else typeof S=="function"&&(O.preventDefault(),z=x?Z$(y,x):new FormData(y),N1(h,{pending:!0,data:z,method:y.method,action:S},S,z))},currentTarget:y}]})}}for(var px=0;px<KT.length;px++){var gx=KT[px],fQ=gx.toLowerCase(),dQ=gx[0].toUpperCase()+gx.slice(1);To(fQ,"on"+dQ)}To(RD,"onAnimationEnd"),To(kD,"onAnimationIteration"),To(ID,"onAnimationStart"),To("dblclick","onDoubleClick"),To("focusin","onFocus"),To("focusout","onBlur"),To(RJ,"onTransitionRun"),To(kJ,"onTransitionStart"),To(IJ,"onTransitionCancel"),To(OD,"onTransitionEnd"),di("onMouseEnter",["mouseout","mouseover"]),di("onMouseLeave",["mouseout","mouseover"]),di("onPointerEnter",["pointerout","pointerover"]),di("onPointerLeave",["pointerout","pointerover"]),Sr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Sr("onSelect","focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange".split(" ")),Sr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Sr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Sr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Sr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cg="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),hQ=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cg));function J$(c,u){u=(u&4)!==0;for(var h=0;h<c.length;h++){var g=c[h],y=g.event;g=g.listeners;e:{var S=void 0;if(u)for(var x=g.length-1;0<=x;x--){var O=g[x],z=O.instance,ae=O.currentTarget;if(O=O.listener,z!==S&&y.isPropagationStopped())break e;S=O,y.currentTarget=ae;try{S(y)}catch(ve){Qv(ve)}y.currentTarget=null,S=z}else for(x=0;x<g.length;x++){if(O=g[x],z=O.instance,ae=O.currentTarget,O=O.listener,z!==S&&y.isPropagationStopped())break e;S=O,y.currentTarget=ae;try{S(y)}catch(ve){Qv(ve)}y.currentTarget=null,S=z}}}}function Kt(c,u){var h=u[ot];h===void 0&&(h=u[ot]=new Set);var g=c+"__bubble";h.has(g)||(Q$(u,c,2,!1),h.add(g))}function mx(c,u,h){var g=0;u&&(g|=4),Q$(h,c,g,u)}var Uy="_reactListening"+Math.random().toString(36).slice(2);function _x(c){if(!c[Uy]){c[Uy]=!0,xn.forEach(function(h){h!=="selectionchange"&&(hQ.has(h)||mx(h,!1,c),mx(h,!0,c))});var u=c.nodeType===9?c:c.ownerDocument;u===null||u[Uy]||(u[Uy]=!0,mx("selectionchange",!1,u))}}function Q$(c,u,h,g){switch(RF(u)){case 2:var y=zQ;break;case 8:y=HQ;break;default:y=Mx}h=y.bind(null,u,h,c),y=void 0,!$T||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(y=!0),g?y!==void 0?c.addEventListener(u,h,{capture:!0,passive:y}):c.addEventListener(u,h,!0):y!==void 0?c.addEventListener(u,h,{passive:y}):c.addEventListener(u,h,!1)}function vx(c,u,h,g,y){var S=g;if((u&1)===0&&(u&2)===0&&g!==null)e:for(;;){if(g===null)return;var x=g.tag;if(x===3||x===4){var O=g.stateNode.containerInfo;if(O===y)break;if(x===4)for(x=g.return;x!==null;){var z=x.tag;if((z===3||z===4)&&x.stateNode.containerInfo===y)return;x=x.return}for(;O!==null;){if(x=B(O),x===null)return;if(z=x.tag,z===5||z===6||z===26||z===27){g=S=x;continue e}O=O.parentNode}}g=g.return}iD(function(){var ae=S,ve=DT(h),Se=[];e:{var le=MD.get(c);if(le!==void 0){var pe=Kv,Xe=c;switch(c){case"keypress":if(Yv(h)===0)break e;case"keydown":case"keyup":pe=oJ;break;case"focusin":Xe="focus",pe=zT;break;case"focusout":Xe="blur",pe=zT;break;case"beforeblur":case"afterblur":pe=zT;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=aD;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=YZ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=lJ;break;case RD:case kD:case ID:pe=ZZ;break;case OD:pe=fJ;break;case"scroll":case"scrollend":pe=qZ;break;case"wheel":pe=hJ;break;case"copy":case"cut":case"paste":pe=QZ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=lD;break;case"toggle":case"beforetoggle":pe=gJ}var ut=(u&4)!==0,Bn=!ut&&(c==="scroll"||c==="scrollend"),te=ut?le!==null?le+"Capture":null:le;ut=[];for(var X=ae,oe;X!==null;){var ye=X;if(oe=ye.stateNode,ye=ye.tag,ye!==5&&ye!==26&&ye!==27||oe===null||te===null||(ye=Yp(X,te),ye!=null&&ut.push(Ag(X,ye,oe))),Bn)break;X=X.return}0<ut.length&&(le=new pe(le,Xe,null,h,ve),Se.push({event:le,listeners:ut}))}}if((u&7)===0){e:{if(le=c==="mouseover"||c==="pointerover",pe=c==="mouseout"||c==="pointerout",le&&h!==LT&&(Xe=h.relatedTarget||h.fromElement)&&(B(Xe)||Xe[ht]))break e;if((pe||le)&&(le=ve.window===ve?ve:(le=ve.ownerDocument)?le.defaultView||le.parentWindow:window,pe?(Xe=h.relatedTarget||h.toElement,pe=ae,Xe=Xe?B(Xe):null,Xe!==null&&(Bn=s(Xe),ut=Xe.tag,Xe!==Bn||ut!==5&&ut!==27&&ut!==6)&&(Xe=null)):(pe=null,Xe=ae),pe!==Xe)){if(ut=aD,ye="onMouseLeave",te="onMouseEnter",X="mouse",(c==="pointerout"||c==="pointerover")&&(ut=lD,ye="onPointerLeave",te="onPointerEnter",X="pointer"),Bn=pe==null?le:ie(pe),oe=Xe==null?le:ie(Xe),le=new ut(ye,X+"leave",pe,h,ve),le.target=Bn,le.relatedTarget=
vendor: 3,097 bytes, lines 9-10
9oe,ye=null,B(ve)===ae&&(ut=new ut(te,X+"enter",Xe,h,ve),ut.target=oe,ut.relatedTarget=Bn,ye=ut),Bn=ye,pe&&Xe)t:{for(ut=pQ,te=pe,X=Xe,oe=0,ye=te;ye;ye=ut(ye))oe++;ye=0;for(var rt=X;rt;rt=ut(rt))ye++;for(;0<oe-ye;)te=ut(te),oe--;for(;0<ye-oe;)X=ut(X),ye--;for(;oe--;){if(te===X||X!==null&&te===X.alternate){ut=te;break t}te=ut(te),X=ut(X)}ut=null}else ut=null;pe!==null&&eF(Se,le,pe,ut,!1),Xe!==null&&Bn!==null&&eF(Se,Bn,Xe,ut,!0)}}e:{if(le=ae?ie(ae):window,pe=le.nodeName&&le.nodeName.toLowerCase(),pe==="select"||pe==="input"&&le.type==="file")var En=_D;else if(gD(le))if(vD)En=xJ;else{En=wJ;var Je=EJ}else pe=le.nodeName,!pe||pe.toLowerCase()!=="input"||le.type!=="checkbox"&&le.type!=="radio"?ae&&ad(ae.elementType)&&(En=_D):En=TJ;if(En&&(En=En(c,ae))){mD(Se,En,h,ve);break e}Je&&Je(c,le,ae),c==="focusout"&&ae&&le.type==="number"&&ae.memoizedProps.value!=null&&bu(le,"number",le.value)}switch(Je=ae?ie(ae):window,c){case"focusin":(gD(Je)||Je.contentEditable==="true")&&(fd=Je,WT=ae,ng=null);break;case"focusout":ng=WT=fd=null;break;case"mousedown":YT=!0;break;case"contextmenu":case"mouseup":case"dragend":YT=!1,CD(Se,h,ve);break;case"selectionchange":if(AJ)break;case"keydown":case"keyup":CD(Se,h,ve)}var Ut;if(jT)e:{switch(c){case"compositionstart":var tn="onCompositionStart";break e;case"compositionend":tn="onCompositionEnd";break e;case"compositionupdate":tn="onCompositionUpdate";break e}tn=void 0}else ud?hD(c,h)&&(tn="onCompositionEnd"):c==="keydown"&&h.keyCode===229&&(tn="onCompositionStart");tn&&(uD&&h.locale!=="ko"&&(ud||tn!=="onCompositionStart"?tn==="onCompositionEnd"&&ud&&(Ut=sD()):(zc=ve,FT="value"in zc?zc.value:zc.textContent,ud=!0)),Je=By(ae,tn),0<Je.length&&(tn=new cD(tn,c,null,h,ve),Se.push({event:tn,listeners:Je}),Ut?tn.data=Ut:(Ut=pD(h),Ut!==null&&(tn.data=Ut)))),(Ut=_J?vJ(c,h):yJ(c,h))&&(tn=By(ae,"onBeforeInput"),0<tn.length&&(Je=new cD("onBeforeInput","beforeinput",null,h,ve),Se.push({event:Je,listeners:tn}),Je.data=Ut)),uQ(Se,c,ae,h,ve)}J$(Se,u)})}function Ag(c,u,h){return{instance:c,listener:u,currentTarget:h}}function By(c,u){for(var h=u+"Capture",g=[];c!==null;){var y=c,S=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||S===null||(y=Yp(c,h),y!=null&&g.unshift(Ag(c,y,S)),y=Yp(c,u),y!=null&&g.push(Ag(c,y,S))),c.tag===3)return g;c=c.return}return[]}function pQ(c){if(c===null)return null;do c=c.return;while(c&&c.tag!==5&&c.tag!==27);return c||null}function eF(c,u,h,g,y){for(var S=u._reactName,x=[];h!==null&&h!==g;){var O=h,z=O.alternate,ae=O.stateNode;if(O=O.tag,z!==null&&z===g)break;O!==5&&O!==26&&O!==27||ae===null||(z=ae,y?(ae=Yp(h,S),ae!=null&&x.unshift(Ag(h,ae,z))):y||(ae=Yp(h,S),ae!=null&&x.push(Ag(h,ae,z)))),h=h.return}x.length!==0&&c.push({event:u,listeners:x})}var gQ=/\r\n?/g,mQ=/\u0000|\uFFFD/g;function tF(c){return(typeof c=="string"?c:""+c).replace(gQ,`
10`).replace(mQ,"")}function nF(c,u){return u=tF(u),tF(c)===u}function Un(c,u,h,g,y,S){switch(h){case"children":typeof g=="string"?u==="body"||u==="textarea"&&g===""||Ma(c,g):(typeof g=="number"||typeof g=="bigint")&&u!=="body"&&Ma(c,""+g);break;case"className":xe(c,"class",g);break;
vendor: 6,098 bytes, line 10
10case"tabIndex":xe(c,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":xe(c,h,g);break;case"style":Su(c,g,S);break;case"data":if(u!=="object"){xe(c,"data",g);break}case"src":case"href":if(g===""&&(u!=="a"||h!=="href")){c.removeAttribute(h);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){c.removeAttribute(h);break}g=ki(""+g),c.setAttribute(h,g);break;case"action":case"formAction":if(typeof g=="function"){c.setAttribute(h,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof S=="function"&&(h==="formAction"?(u!=="input"&&Un(c,u,"name",y.name,y,null),Un(c,u,"formEncType",y.formEncType,y,null),Un(c,u,"formMethod",y.formMethod,y,null),Un(c,u,"formTarget",y.formTarget,y,null)):(Un(c,u,"encType",y.encType,y,null),Un(c,u,"method",y.method,y,null),Un(c,u,"target",y.target,y,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){c.removeAttribute(h);break}g=ki(""+g),c.setAttribute(h,g);break;case"onClick":g!=null&&(c.onclick=Xr);break;case"onScroll":g!=null&&Kt("scroll",c);break;case"onScrollEnd":g!=null&&Kt("scrollend",c);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(h=g.__html,h!=null){if(y.children!=null)throw Error(r(60));c.innerHTML=h}}break;case"multiple":c.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":c.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){c.removeAttribute("xlink:href");break}h=ki(""+g),c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?c.setAttribute(h,""+g):c.removeAttribute(h);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":g&&typeof g!="function"&&typeof g!="symbol"?c.setAttribute(h,""):c.removeAttribute(h);break;case"capture":case"download":g===!0?c.setAttribute(h,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?c.setAttribute(h,g):c.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?c.setAttribute(h,g):c.removeAttribute(h);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?c.removeAttribute(h):c.setAttribute(h,g);break;case"popover":Kt("beforetoggle",c),Kt("toggle",c),he(c,"popover",g);break;case"xlinkActuate":Ke(c,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":Ke(c,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":Ke(c,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":Ke(c,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":Ke(c,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":Ke(c,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":Ke(c,"http://www.w3.org/XML/1998/namespace","xml:base",g);break;case"xmlLang":Ke(c,"http://www.w3.org/XML/1998/namespace","xml:lang",g);break;case"xmlSpace":Ke(c,"http://www.w3.org/XML/1998/namespace","xml:space",g);break;case"is":he(c,"is",g);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=qv.get(h)||h,he(c,h,g))}}function yx(c,u,h,g,y,S){switch(h){case"style":Su(c,g,S);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(h=g.__html,h!=null){if(y.children!=null)throw Error(r(60));c.innerHTML=h}}break;case"children":typeof g=="string"?Ma(c,g):(typeof g=="number"||typeof g=="bigint")&&Ma(c,""+g);break;case"onScroll":g!=null&&Kt("scroll",c);break;case"onScrollEnd":g!=null&&Kt("scrollend",c);break;case"onClick":g!=null&&(c.onclick=Xr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vt.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(y=h.endsWith("Capture"),u=h.slice(2,y?h.length-7:void 0),S=c[gt]||null,S=S!=null?S[h]:null,typeof S=="function"&&c.removeEventListener(u,S,y),typeof g=="function")){typeof S!="function"&&S!==null&&(h in c?c[h]=null:c.hasAttribute(h)&&c.removeAttribute(h)),c.addEventListener(u,g,y);break e}h in c?c[h]=g:g===!0?c.setAttribute(h,""):he(c,h,g)}}}function Ei(c,u,h){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Kt("error",c),Kt("load",c);var g=!1,y=!1,S;for(S in h)if(h.hasOwnProperty(S)){var x=h[S];if(x!=null)switch(S){case"src":g=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:Un(c,u,S,x,h,null)}}y&&Un(c,u,"srcSet",h.srcSet,h,null),g&&Un(c,u,"src",h.src,h,null);return;case"input":Kt("invalid",c);var O=S=x=y=null,z=null,ae=null;for(g in h)if(h.hasOwnProperty(g)){var ve=h[g];if(ve!=null)switch(g){case"name":y=ve;break;case"type":x=ve;break;case"checked":z=ve;break;case"defaultChecked":ae=ve;break;case"value":S=ve;break;case"defaultValue":O=ve;break;case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(137,u));break;default:Un(c,u,g,ve,h,null)}}Ia(c,S,O,z,ae,x,y,!1);return;case"select":Kt("invalid",c),g=x=S=null;
vendor: 9,540 bytes, line 10
10for(y in h)if(h.hasOwnProperty(y)&&(O=h[y],O!=null))switch(y){case"value":S=O;break;case"defaultValue":x=O;break;case"multiple":g=O;default:Un(c,u,y,O,h,null)}u=S,h=x,c.multiple=!!g,u!=null?Oa(c,!!g,u,!1):h!=null&&Oa(c,!!g,h,!0);return;case"textarea":Kt("invalid",c),S=y=g=null;for(x in h)if(h.hasOwnProperty(x)&&(O=h[x],O!=null))switch(x){case"value":g=O;break;case"defaultValue":y=O;break;case"children":S=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:Un(c,u,x,O,h,null)}od(c,g,y,S);return;case"option":for(z in h)if(h.hasOwnProperty(z)&&(g=h[z],g!=null))switch(z){case"selected":c.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:Un(c,u,z,g,h,null)}return;case"dialog":Kt("beforetoggle",c),Kt("toggle",c),Kt("cancel",c),Kt("close",c);break;case"iframe":case"object":Kt("load",c);break;case"video":case"audio":for(g=0;g<Cg.length;g++)Kt(Cg[g],c);break;case"image":Kt("error",c),Kt("load",c);break;case"details":Kt("toggle",c);break;case"embed":case"source":case"link":Kt("error",c),Kt("load",c);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ae in h)if(h.hasOwnProperty(ae)&&(g=h[ae],g!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:Un(c,u,ae,g,h,null)}return;default:if(ad(u)){for(ve in h)h.hasOwnProperty(ve)&&(g=h[ve],g!==void 0&&yx(c,u,ve,g,h,void 0));return}}for(O in h)h.hasOwnProperty(O)&&(g=h[O],g!=null&&Un(c,u,O,g,h,null))}function _Q(c,u,h,g){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,S=null,x=null,O=null,z=null,ae=null,ve=null;for(pe in h){var Se=h[pe];if(h.hasOwnProperty(pe)&&Se!=null)switch(pe){case"checked":break;case"value":break;case"defaultValue":z=Se;default:g.hasOwnProperty(pe)||Un(c,u,pe,null,g,Se)}}for(var le in g){var pe=g[le];if(Se=h[le],g.hasOwnProperty(le)&&(pe!=null||Se!=null))switch(le){case"type":S=pe;break;case"name":y=pe;break;case"checked":ae=pe;break;case"defaultChecked":ve=pe;break;case"value":x=pe;break;case"defaultValue":O=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,u));break;default:pe!==Se&&Un(c,u,le,pe,g,Se)}}os(c,x,O,z,ae,ve,S,y);return;case"select":pe=x=O=le=null;for(S in h)if(z=h[S],h.hasOwnProperty(S)&&z!=null)switch(S){case"value":break;case"multiple":pe=z;default:g.hasOwnProperty(S)||Un(c,u,S,null,g,z)}for(y in g)if(S=g[y],z=h[y],g.hasOwnProperty(y)&&(S!=null||z!=null))switch(y){case"value":le=S;break;case"defaultValue":O=S;break;case"multiple":x=S;default:S!==z&&Un(c,u,y,S,g,z)}u=O,h=x,g=pe,le!=null?Oa(c,!!h,le,!1):!!g!=!!h&&(u!=null?Oa(c,!!h,u,!0):Oa(c,!!h,h?[]:"",!1));return;case"textarea":pe=le=null;for(O in h)if(y=h[O],h.hasOwnProperty(O)&&y!=null&&!g.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:Un(c,u,O,null,g,y)}for(x in g)if(y=g[x],S=h[x],g.hasOwnProperty(x)&&(y!=null||S!=null))switch(x){case"value":le=y;break;case"defaultValue":pe=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==S&&Un(c,u,x,y,g,S)}Gv(c,le,pe);return;case"option":for(var Xe in h)if(le=h[Xe],h.hasOwnProperty(Xe)&&le!=null&&!g.hasOwnProperty(Xe))switch(Xe){case"selected":c.selected=!1;break;default:Un(c,u,Xe,null,g,le)}for(z in g)if(le=g[z],pe=h[z],g.hasOwnProperty(z)&&le!==pe&&(le!=null||pe!=null))switch(z){case"selected":c.selected=le&&typeof le!="function"&&typeof le!="symbol";break;default:Un(c,u,z,le,g,pe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ut in h)le=h[ut],h.hasOwnProperty(ut)&&le!=null&&!g.hasOwnProperty(ut)&&Un(c,u,ut,null,g,le);for(ae in g)if(le=g[ae],pe=h[ae],g.hasOwnProperty(ae)&&le!==pe&&(le!=null||pe!=null))switch(ae){case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,u));break;default:Un(c,u,ae,le,g,pe)}return;default:if(ad(u)){for(var Bn in h)le=h[Bn],h.hasOwnProperty(Bn)&&le!==void 0&&!g.hasOwnProperty(Bn)&&yx(c,u,Bn,void 0,g,le);for(ve in g)le=g[ve],pe=h[ve],!g.hasOwnProperty(ve)||le===pe||le===void 0&&pe===void 0||yx(c,u,ve,le,g,pe);return}}for(var te in h)le=h[te],h.hasOwnProperty(te)&&le!=null&&!g.hasOwnProperty(te)&&Un(c,u,te,null,g,le);for(Se in g)le=g[Se],pe=h[Se],!g.hasOwnProperty(Se)||le===pe||le==null&&pe==null||Un(c,u,Se,le,g,pe)}function rF(c){switch(c){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vQ(){if(typeof performance.getEntriesByType=="function"){for(var c=0,u=0,h=performance.getEntriesByType("resource"),g=0;g<h.length;g++){var y=h[g],S=y.transferSize,x=y.initiatorType,O=y.duration;if(S&&O&&rF(x)){for(x=0,O=y.responseEnd,g+=1;g<h.length;g++){var z=h[g],ae=z.startTime;if(ae>O)break;var ve=z.transferSize,Se=z.initiatorType;ve&&rF(Se)&&(z=z.responseEnd,x+=ve*(z<O?1:(O-ae)/(z-ae)))}if(--g,u+=8*(S+x)/(y.duration/1e3),c++,10<c)break}}if(0<c)return u/c/1e6}return navigator.connection&&(c=navigator.connection.downlink,typeof c=="number")?c:5}var bx=null,Sx=null;function zy(c){return c.nodeType===9?c:c.ownerDocument}function iF(c){switch(c){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sF(c,u){if(c===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return c===1&&u==="foreignObject"?0:c}function Ex(c,u){return c==="textarea"||c==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var wx=null;function yQ(){var c=window.event;return c&&c.type==="popstate"?c===wx?!1:(wx=c,!0):(wx=null,!1)}var oF=typeof setTimeout=="function"?setTimeout:void 0,bQ=typeof clearTimeout=="function"?clearTimeout:void 0,aF=typeof Promise=="function"?Promise:void 0,SQ=typeof queueMicrotask=="function"?queueMicrotask:typeof aF<"u"?function(c){return aF.resolve(null).then(c).catch(EQ)}:oF;function EQ(c){setTimeout(function(){throw c})}function il(c){return c==="head"}function cF(c,u){var h=u,g=0;do{var y=h.nextSibling;if(c.removeChild(h),y&&y.nodeType===8)if(h=y.data,h==="/$"||h==="/&"){if(g===0){c.removeChild(y),Fd(u);return}g--}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")g++;else if(h==="html")Rg(c.ownerDocument.documentElement);else if(h==="head"){h=c.ownerDocument.head,Rg(h);for(var S=h.firstChild;S;){var x=S.nextSibling,O=S.nodeName;S[Ae]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&S.rel.toLowerCase()==="stylesheet"||h.removeChild(S),S=x}}else h==="body"&&Rg(c.ownerDocument.body);h=y}while(h);Fd(u)}function lF(c,u){var h=c;c=0;do{var g=h.nextSibling;if(h.nodeType===1?u?(h._stashedDisplay=h.style.display,h.style.display="none"):(h.style.display=h._stashedDisplay||"",h.getAttribute("style")===""&&h.removeAttribute("style")):h.nodeType===3&&(u?(h._stashedText=h.nodeValue,h.nodeValue=""):h.nodeValue=h._stashedText||""),g&&g.nodeType===8)if(h=g.data,h==="/$"){if(c===0)break;c--}else h!=="$"&&h!=="$?"&&h!=="$~"&&h!=="$!"||c++;h=g}while(h)}function Tx(c){var u=c.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var h=u;switch(u=u.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":Tx(h),F(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}c.removeChild(h)}}function wQ(c,u,h,g){for(;c.nodeType===1;){var y=h;if(c.nodeName.toLowerCase()!==u.toLowerCase()){if(!g&&(c.nodeName!=="INPUT"||c.type!=="hidden"))break}else if(g){if(!c[Ae])switch(u){case"meta":if(!c.hasAttribute("itemprop"))break;return c;case"link":if(S=c.getAttribute("rel"),S==="stylesheet"&&c.hasAttribute("data-precedence"))break;if(S!==y.rel||c.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||c.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||c.getAttribute("title")!==(y.title==null?null:y.title))break;return c;case"style":if(c.hasAttribute("data-precedence"))break;return c;case"script":if(S=c.getAttribute("src"),(S!==(y.src==null?null:y.src)||c.getAttribute("type")!==(y.type==null?null:y.type)||c.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&S&&c.hasAttribute("async")&&!c.hasAttribute("itemprop"))break;return c;default:return c}}else if(u==="input"&&c.type==="hidden"){var S=y.name==null?null:""+y.name;if(y.type==="hidden"&&c.getAttribute("name")===S)return c}else return c;if(c=Js(c.nextSibling),c===null)break}return null}function TQ(c,u,h){if(u==="")return null;for(;c.nodeType!==3;)if((c.nodeType!==1||c.nodeName!=="INPUT"||c.type!=="hidden")&&!h||(c=Js(c.nextSibling),c===null))return null;return c}function uF(c,u){for(;c.nodeType!==8;)if((c.nodeType!==1||c.nodeName!=="INPUT"||c.type!=="hidden")&&!u||(c=Js(c.nextSibling),c===null))return null;return c}function xx(c){return c.data==="$?"||c.data==="$~"}function Cx(c){return c.data==="$!"||c.data==="$?"&&c.ownerDocument.readyState!=="loading"}function xQ(c,u){var h=c.ownerDocument;if(c.data==="$~")c._reactRetry=u;else if(c.data!=="$?"||h.readyState!=="loading")u();else{var g=function(){u(),h.removeEventListener("DOMContentLoaded",g)};h.addEventListener("DOMContentLoaded",g),c._reactRetry=g}}function Js(c){for(;c!=null;c=c.nextSibling){var u=c.nodeType;if(u===1||u===3)break;if(u===8){if(u=c.data,u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"||u==="F!"||u==="F")break;
vendor: 12,898 bytes, line 10
10if(u==="/$"||u==="/&")return null}}return c}var Ax=null;function fF(c){c=c.nextSibling;for(var u=0;c;){if(c.nodeType===8){var h=c.data;if(h==="/$"||h==="/&"){if(u===0)return Js(c.nextSibling);u--}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||u++}c=c.nextSibling}return null}function dF(c){c=c.previousSibling;for(var u=0;c;){if(c.nodeType===8){var h=c.data;if(h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"){if(u===0)return c;u--}else h!=="/$"&&h!=="/&"||u++}c=c.previousSibling}return null}function hF(c,u,h){switch(u=zy(h),c){case"html":if(c=u.documentElement,!c)throw Error(r(452));return c;case"head":if(c=u.head,!c)throw Error(r(453));return c;case"body":if(c=u.body,!c)throw Error(r(454));return c;default:throw Error(r(451))}}function Rg(c){for(var u=c.attributes;u.length;)c.removeAttributeNode(u[0]);F(c)}var Qs=new Map,pF=new Set;function Hy(c){return typeof c.getRootNode=="function"?c.getRootNode():c.nodeType===9?c:c.ownerDocument}var Ya=ee.d;ee.d={f:CQ,r:AQ,D:RQ,C:kQ,L:IQ,m:OQ,X:NQ,S:MQ,M:LQ};function CQ(){var c=Ya.f(),u=Ny();return c||u}function AQ(c){var u=Y(c);u!==null&&u.tag===5&&u.type==="form"?OP(u):Ya.r(c)}var Dd=typeof document>"u"?null:document;function gF(c,u,h){var g=Dd;if(g&&typeof u=="string"&&u){var y=Pr(u);y='link[rel="'+c+'"][href="'+y+'"]',typeof h=="string"&&(y+='[crossorigin="'+h+'"]'),pF.has(y)||(pF.add(y),c={rel:c,crossOrigin:h,href:u},g.querySelector(y)===null&&(u=g.createElement("link"),Ei(u,"link",c),Ve(u),g.head.appendChild(u)))}}function RQ(c){Ya.D(c),gF("dns-prefetch",c,null)}function kQ(c,u){Ya.C(c,u),gF("preconnect",c,u)}function IQ(c,u,h){Ya.L(c,u,h);var g=Dd;if(g&&c&&u){var y='link[rel="preload"][as="'+Pr(u)+'"]';u==="image"&&h&&h.imageSrcSet?(y+='[imagesrcset="'+Pr(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(y+='[imagesizes="'+Pr(h.imageSizes)+'"]')):y+='[href="'+Pr(c)+'"]';var S=y;switch(u){case"style":S=Pd(c);break;case"script":S=$d(c)}Qs.has(S)||(c=p({rel:"preload",href:u==="image"&&h&&h.imageSrcSet?void 0:c,as:u},h),Qs.set(S,c),g.querySelector(y)!==null||u==="style"&&g.querySelector(kg(S))||u==="script"&&g.querySelector(Ig(S))||(u=g.createElement("link"),Ei(u,"link",c),Ve(u),g.head.appendChild(u)))}}function OQ(c,u){Ya.m(c,u);var h=Dd;if(h&&c){var g=u&&typeof u.as=="string"?u.as:"script",y='link[rel="modulepreload"][as="'+Pr(g)+'"][href="'+Pr(c)+'"]',S=y;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=$d(c)}if(!Qs.has(S)&&(c=p({rel:"modulepreload",href:c},u),Qs.set(S,c),h.querySelector(y)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(Ig(S)))return}g=h.createElement("link"),Ei(g,"link",c),Ve(g),h.head.appendChild(g)}}}function MQ(c,u,h){Ya.S(c,u,h);var g=Dd;if(g&&c){var y=Ie(g).hoistableStyles,S=Pd(c);u=u||"default";var x=y.get(S);if(!x){var O={loading:0,preload:null};if(x=g.querySelector(kg(S)))O.loading=5;else{c=p({rel:"stylesheet",href:c,"data-precedence":u},h),(h=Qs.get(S))&&Rx(c,h);var z=x=g.createElement("link");Ve(z),Ei(z,"link",c),z._p=new Promise(function(ae,ve){z.onload=ae,z.onerror=ve}),z.addEventListener("load",function(){O.loading|=1}),z.addEventListener("error",function(){O.loading|=2}),O.loading|=4,jy(x,u,g)}x={type:"stylesheet",instance:x,count:1,state:O},y.set(S,x)}}}function NQ(c,u){Ya.X(c,u);var h=Dd;if(h&&c){var g=Ie(h).hoistableScripts,y=$d(c),S=g.get(y);S||(S=h.querySelector(Ig(y)),S||(c=p({src:c,async:!0},u),(u=Qs.get(y))&&kx(c,u),S=h.createElement("script"),Ve(S),Ei(S,"link",c),h.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},g.set(y,S))}}function LQ(c,u){Ya.M(c,u);var h=Dd;if(h&&c){var g=Ie(h).hoistableScripts,y=$d(c),S=g.get(y);S||(S=h.querySelector(Ig(y)),S||(c=p({src:c,async:!0,type:"module"},u),(u=Qs.get(y))&&kx(c,u),S=h.createElement("script"),Ve(S),Ei(S,"link",c),h.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},g.set(y,S))}}function mF(c,u,h,g){var y=(y=Ee.current)?Hy(y):null;if(!y)throw Error(r(446));switch(c){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(u=Pd(h.href),h=Ie(y).hoistableStyles,g=h.get(u),g||(g={type:"style",instance:null,count:0,state:null},h.set(u,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){c=Pd(h.href);var S=Ie(y).hoistableStyles,x=S.get(c);if(x||(y=y.ownerDocument||y,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(c,x),(S=y.querySelector(kg(c)))&&!S._p&&(x.instance=S,x.state.loading=5),Qs.has(c)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},Qs.set(c,h),S||DQ(y,c,h,x.state))),u&&g===null)throw Error(r(528,""));return x}if(u&&g!==null)throw Error(r(529,""));return null;case"script":return u=h.async,h=h.src,typeof h=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=$d(h),h=Ie(y).hoistableScripts,g=h.get(u),g||(g={type:"script",instance:null,count:0,state:null},h.set(u,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,c))}}function Pd(c){return'href="'+Pr(c)+'"'}function kg(c){return'link[rel="stylesheet"]['+c+"]"}function _F(c){return p({},c,{"data-precedence":c.precedence,precedence:null})}function DQ(c,u,h,g){c.querySelector('link[rel="preload"][as="style"]['+u+"]")?g.loading=1:(u=c.createElement("link"),g.preload=u,u.addEventListener("load",function(){return g.loading|=1}),u.addEventListener("error",function(){return g.loading|=2}),Ei(u,"link",h),Ve(u),c.head.appendChild(u))}function $d(c){return'[src="'+Pr(c)+'"]'}function Ig(c){return"script[async]"+c}function vF(c,u,h){if(u.count++,u.instance===null)switch(u.type){case"style":var g=c.querySelector('style[data-href~="'+Pr(h.href)+'"]');if(g)return u.instance=g,Ve(g),g;var y=p({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return g=(c.ownerDocument||c).createElement("style"),Ve(g),Ei(g,"style",y),jy(g,h.precedence,c),u.instance=g;case"stylesheet":y=Pd(h.href);var S=c.querySelector(kg(y));if(S)return u.state.loading|=4,u.instance=S,Ve(S),S;g=_F(h),(y=Qs.get(y))&&Rx(g,y),S=(c.ownerDocument||c).createElement("link"),Ve(S);var x=S;return x._p=new Promise(function(O,z){x.onload=O,x.onerror=z}),Ei(S,"link",g),u.state.loading|=4,jy(S,h.precedence,c),u.instance=S;case"script":return S=$d(h.src),(y=c.querySelector(Ig(S)))?(u.instance=y,Ve(y),y):(g=h,(y=Qs.get(S))&&(g=p({},h),kx(g,y)),c=c.ownerDocument||c,y=c.createElement("script"),Ve(y),Ei(y,"link",g),c.head.appendChild(y),u.instance=y);case"void":return null;default:throw Error(r(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(g=u.instance,u.state.loading|=4,jy(g,h.precedence,c));return u.instance}function jy(c,u,h){for(var g=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=g.length?g[g.length-1]:null,S=y,x=0;x<g.length;x++){var O=g[x];if(O.dataset.precedence===u)S=O;else if(S!==y)break}S?S.parentNode.insertBefore(c,S.nextSibling):(u=h.nodeType===9?h.head:h,u.insertBefore(c,u.firstChild))}function Rx(c,u){c.crossOrigin==null&&(c.crossOrigin=u.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=u.referrerPolicy),c.title==null&&(c.title=u.title)}function kx(c,u){c.crossOrigin==null&&(c.crossOrigin=u.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=u.referrerPolicy),c.integrity==null&&(c.integrity=u.integrity)}var Vy=null;function yF(c,u,h){if(Vy===null){var g=new Map,y=Vy=new Map;y.set(h,g)}else y=Vy,g=y.get(h),g||(g=new Map,y.set(h,g));if(g.has(c))return g;for(g.set(c,null),h=h.getElementsByTagName(c),y=0;y<h.length;y++){var S=h[y];if(!(S[Ae]||S[Ne]||c==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var x=S.getAttribute(u)||"";x=c+x;var O=g.get(x);O?O.push(S):g.set(x,[S])}}return g}function bF(c,u,h){c=c.ownerDocument||c,c.head.insertBefore(h,u==="title"?c.querySelector("head > title"):null)}function PQ(c,u,h){if(h===1||u.itemProp!=null)return!1;switch(c){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return c=u.disabled,typeof u.precedence=="string"&&c==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function SF(c){return!(c.type==="stylesheet"&&(c.state.loading&3)===0)}function $Q(c,u,h,g){if(h.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var y=Pd(g.href),S=u.querySelector(kg(y));if(S){u=S._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(c.count++,c=Gy.bind(c),u.then(c,c)),h.state.loading|=4,h.instance=S,Ve(S);return}S=u.ownerDocument||u,g=_F(g),(y=Qs.get(y))&&Rx(g,y),S=S.createElement("link"),Ve(S);var x=S;x._p=new Promise(function(O,z){x.onload=O,x.onerror=z}),Ei(S,"link",g),h.instance=S}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(h,u),(u=h.state.preload)&&(h.state.loading&3)===0&&(c.count++,h=Gy.bind(c),u.addEventListener("load",h),u.addEventListener("error",h))}}var Ix=0;function FQ(c,u){return c.stylesheets&&c.count===0&&Wy(c,c.stylesheets),0<c.count||0<c.imgCount?function(h){var g=setTimeout(function(){if(c.stylesheets&&Wy(c,c.stylesheets),c.unsuspend){var S=c.unsuspend;c.unsuspend=null,S()}},6e4+u);0<c.imgBytes&&Ix===0&&(Ix=62500*vQ());var y=setTimeout(function(){if(c.waitingForImages=!1,c.count===0&&(c.stylesheets&&Wy(c,c.stylesheets),c.unsuspend)){var S=c.unsuspend;c.unsuspend=null,S()}},(c.imgBytes>Ix?50:800)+u);return c.unsuspend=h,function(){c.unsuspend=null,clearTimeout(g),clearTimeout(y)}}:null}function Gy(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wy(this,this.stylesheets);else if(this.unsuspend){var c=this.unsuspend;this.unsuspend=null,c()}}}var qy=null;function Wy(c,u){c.stylesheets=null,c.unsuspend!==null&&(c.count++,qy=new Map,u.forEach(UQ,c),qy=null,Gy.call(c))}function UQ(c,u){if(!(u.state.loading&4)){var h=qy.get(c);if(h)var g=h.get(null);else{h=new Map,qy.set(c,h);for(var y=c.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<y.length;S++){var x=y[S];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(h.set(x.dataset.precedence,x),g=x)}g&&h.set(null,g)}y=u.instance,x=y.getAttribute("data-precedence"),S=h.get(x)||g,S===g&&h.set(null,y),h.set(x,y),this.count++,g=Gy.bind(this),y.addEventListener("load",g),y.addEventListener("error",g),S?S.parentNode.insertBefore(y,S.nextSibling):(c=c.nodeType===9?c.head:c,c.insertBefore(y,c.firstChild)),u.state.loading|=4}}var Og={$$typeof:R,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function BQ(c,u,h,g,y,S,x,O,z){this.tag=1,this.containerInfo=c,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ln(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ln(0),this.hiddenUpdates=ln(null),this.identifierPrefix=g,this.onUncaughtError=y,this.onCaughtError=S,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function EF(c,u,h,g,y,S,x,O,z,ae,ve,Se){return c=new BQ(c,u,h,x,z,ae,ve,Se,O),u=1,S===!0&&(u|=24),S=As(3,null,null,u),c.current=S,S.stateNode=c,u=l1(),u.refCount++,c.pooledCache=u,u.refCount++,S.memoizedState={element:g,isDehydrated:h,cache:u},h1(S),c}function wF(c){return c?(c=pd,c):pd}function TF(c,u,h,g,y,S){y=wF(y),g.context===null?g.context=y:g.pendingContext=y,g=Wc(u),g.payload={element:h},S=S===void 0?null:S,S!==null&&(g.callback=S),h=Yc(c,g,u),h!==null&&(ds(h,c,u),lg(h,c,u))}function xF(c,u){if(c=c.memoizedState,c!==null&&c.dehydrated!==null){var h=c.retryLane;c.retryLane=h!==0&&h<u?h:u}}function Ox(c,u){xF(c,u),(c=c.alternate)&&xF(c,u)}function CF(c){if(c.tag===13||c.tag===31){var u=Cu(c,67108864);u!==null&&ds(u,c,67108864),Ox(c,67108864)}}function AF(c){if(c.tag===13||c.tag===31){var u=Ms();u=ke(u);var h=Cu(c,u);h!==null&&ds(h,c,u),Ox(c,u)}}var Yy=!0;function zQ(c,u,h,g){var y=P.T;P.T=null;var S=ee.p;try{ee.p=2,Mx(c,u,h,g)}finally{ee.p=S,P.T=y}}function HQ(c,u,h,g){var y=P.T;P.T=null;var S=ee.p;try{ee.p=8,Mx(c,u,h,g)}finally{ee.p=S,P.T=y}}function Mx(c,u,h,g){if(Yy){var y=Nx(g);
vendor: 6,587 bytes, line 10
10if(y===null)vx(c,u,g,Xy,h),kF(c,g);else if(VQ(y,c,u,h,g))g.stopPropagation();else if(kF(c,g),u&4&&-1<jQ.indexOf(c)){for(;y!==null;){var S=Y(y);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var x=He(S.pendingLanes);if(x!==0){var O=S;for(O.pendingLanes|=2,O.entangledLanes|=2;x;){var z=1<<31-Z(x);O.entanglements[1]|=z,x&=~z}Yo(S),(An&6)===0&&(Oy=it()+500,xg(0))}}break;case 31:case 13:O=Cu(S,2),O!==null&&ds(O,S,2),Ny(),Ox(S,2)}if(S=Nx(g),S===null&&vx(c,u,g,Xy,h),S===y)break;y=S}y!==null&&g.stopPropagation()}else vx(c,u,g,null,h)}}function Nx(c){return c=DT(c),Lx(c)}var Xy=null;function Lx(c){if(Xy=null,c=B(c),c!==null){var u=s(c);if(u===null)c=null;else{var h=u.tag;if(h===13){if(c=o(u),c!==null)return c;c=null}else if(h===31){if(c=a(u),c!==null)return c;c=null}else if(h===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;c=null}else u!==c&&(c=null)}}return Xy=c,null}function RF(c){switch(c){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(gr()){case Dr:return 2;case xs:return 8;case Hs:case ka:return 32;case wo:return 268435456;default:return 32}default:return 32}}var Dx=!1,sl=null,ol=null,al=null,Mg=new Map,Ng=new Map,cl=[],jQ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function kF(c,u){switch(c){case"focusin":case"focusout":sl=null;break;case"dragenter":case"dragleave":ol=null;break;case"mouseover":case"mouseout":al=null;break;case"pointerover":case"pointerout":Mg.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ng.delete(u.pointerId)}}function Lg(c,u,h,g,y,S){return c===null||c.nativeEvent!==S?(c={blockedOn:u,domEventName:h,eventSystemFlags:g,nativeEvent:S,targetContainers:[y]},u!==null&&(u=Y(u),u!==null&&CF(u)),c):(c.eventSystemFlags|=g,u=c.targetContainers,y!==null&&u.indexOf(y)===-1&&u.push(y),c)}function VQ(c,u,h,g,y){switch(u){case"focusin":return sl=Lg(sl,c,u,h,g,y),!0;case"dragenter":return ol=Lg(ol,c,u,h,g,y),!0;case"mouseover":return al=Lg(al,c,u,h,g,y),!0;case"pointerover":var S=y.pointerId;return Mg.set(S,Lg(Mg.get(S)||null,c,u,h,g,y)),!0;case"gotpointercapture":return S=y.pointerId,Ng.set(S,Lg(Ng.get(S)||null,c,u,h,g,y)),!0}return!1}function IF(c){var u=B(c.target);if(u!==null){var h=s(u);if(h!==null){if(u=h.tag,u===13){if(u=o(h),u!==null){c.blockedOn=u,Gn(c.priority,function(){AF(h)});return}}else if(u===31){if(u=a(h),u!==null){c.blockedOn=u,Gn(c.priority,function(){AF(h)});return}}else if(u===3&&h.stateNode.current.memoizedState.isDehydrated){c.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}c.blockedOn=null}function Ky(c){if(c.blockedOn!==null)return!1;for(var u=c.targetContainers;0<u.length;){var h=Nx(c.nativeEvent);if(h===null){h=c.nativeEvent;var g=new h.constructor(h.type,h);LT=g,h.target.dispatchEvent(g),LT=null}else return u=Y(h),u!==null&&CF(u),c.blockedOn=h,!1;u.shift()}return!0}function OF(c,u,h){Ky(c)&&h.delete(u)}function GQ(){Dx=!1,sl!==null&&Ky(sl)&&(sl=null),ol!==null&&Ky(ol)&&(ol=null),al!==null&&Ky(al)&&(al=null),Mg.forEach(OF),Ng.forEach(OF)}function Zy(c,u){c.blockedOn===u&&(c.blockedOn=null,Dx||(Dx=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,GQ)))}var Jy=null;function MF(c){Jy!==c&&(Jy=c,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Jy===c&&(Jy=null);for(var u=0;u<c.length;u+=3){var h=c[u],g=c[u+1],y=c[u+2];if(typeof g!="function"){if(Lx(g||h)===null)continue;break}var S=Y(h);S!==null&&(c.splice(u,3),u-=3,N1(S,{pending:!0,data:y,method:h.method,action:g},g,y))}}))}function Fd(c){function u(z){return Zy(z,c)}sl!==null&&Zy(sl,c),ol!==null&&Zy(ol,c),al!==null&&Zy(al,c),Mg.forEach(u),Ng.forEach(u);for(var h=0;h<cl.length;h++){var g=cl[h];g.blockedOn===c&&(g.blockedOn=null)}for(;0<cl.length&&(h=cl[0],h.blockedOn===null);)IF(h),h.blockedOn===null&&cl.shift();if(h=(c.ownerDocument||c).$$reactFormReplay,h!=null)for(g=0;g<h.length;g+=3){var y=h[g],S=h[g+1],x=y[gt]||null;if(typeof S=="function")x||MF(h);else if(x){var O=null;if(S&&S.hasAttribute("formAction")){if(y=S,x=S[gt]||null)O=x.formAction;else if(Lx(y)!==null)continue}else O=x.action;typeof O=="function"?h[g+1]=O:(h.splice(g,3),g-=3),MF(h)}}}function NF(){function c(S){S.canIntercept&&S.info==="react-transition"&&S.intercept({handler:function(){return new Promise(function(x){return y=x})},focusReset:"manual",scroll:"manual"})}function u(){y!==null&&(y(),y=null),g||setTimeout(h,20)}function h(){if(!g&&!navigation.transition){var S=navigation.currentEntry;S&&S.url!=null&&navigation.navigate(S.url,{state:S.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var g=!1,y=null;return navigation.addEventListener("navigate",c),navigation.addEventListener("navigatesuccess",u),navigation.addEventListener("navigateerror",u),setTimeout(h,100),function(){g=!0,navigation.removeEventListener("navigate",c),navigation.removeEventListener("navigatesuccess",u),navigation.removeEventListener("navigateerror",u),y!==null&&(y(),y=null)}}}function Px(c){this._internalRoot=c}Qy.prototype.render=Px.prototype.render=function(c){var u=this._internalRoot;if(u===null)throw Error(r(409));var h=u.current,g=Ms();TF(h,g,c,u,null,null)},Qy.prototype.unmount=Px.prototype.unmount=function(){var c=this._internalRoot;if(c!==null){this._internalRoot=null;
10var u=c.containerInfo;TF(c.current,2,null,c,null,null),Ny(),u[ht]=null}};function Qy(c){this._internalRoot=c}Qy.prototype.unstable_scheduleHydration=function(c){if(c){var u=un();c={blockedOn:null,target:c,priority:u};for(var h=0;h<cl.length&&u!==0&&u<cl[h].priority;h++);cl.splice(h,0,c),h===0&&IF(c)}};var LF=t.version;if(LF!=="19.2.0")throw Error(r(527,LF,"19.2.0"));ee.findDOMNode=function(c){var u=c._reactInternals;if(u===void 0)throw typeof c.render=="function"?Error(r(188)):(c=Object.keys(c).join(","),Error(r(268,c)));return c=f(u),c=c!==null?d(c):null,c=c===null?null:c.stateNode,c};var qQ={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eb=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eb.isDisabled&&eb.supportsFiber)try{ji=eb.inject(qQ),sr=eb}catch{}}return zg.createRoot=function(c,u){if(!i(c))throw Error(r(299));var h=!1,g="",y=zP,S=HP,x=jP;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(g=u.identifierPrefix),u.onUncaughtError!==void 0&&(y=u.onUncaughtError),u.onCaughtError!==void 0&&(S=u.onCaughtError),u.onRecoverableError!==void 0&&(x=u.onRecoverableError)),u=EF(c,1,!1,null,null,h,g,null,y,S,x,NF),c[ht]=u.current,_x(c),new Px(u)},zg.hydrateRoot=function(c,u,h){if(!i(c))throw Error(r(299));var g=!1,y="",S=zP,x=HP,O=jP,z=null;return h!=null&&(h.unstable_strictMode===!0&&(g=!0),h.identifierPrefix!==void 0&&(y=h.identifierPrefix),h.onUncaughtError!==void 0&&(S=h.onUncaughtError),h.onCaughtError!==void 0&&(x=h.onCaughtError),h.onRecoverableError!==void 0&&(O=h.onRecoverableError),h.formState!==void 0&&(z=h.formState)),u=EF(c,1,!0,u,h??null,g,y,z,S,x,O,NF),u.context=wF(null),h=u.current,g=Ms(),g=ke(g),y=Wc(g),y.callback=null,Yc(h,y,g),h=g,u.current.lanes=h,yn(u,h),Yo(u),c[ht]=u.current,_x(c),new Qy(u)},zg.version="19.2.0",zg}var eU;function Uee(){if(eU)return qx.exports;eU=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),qx.exports=Fee(),qx.exports}var Bee=Uee();const zee=()=>{const e=window.document.getElementById("root");if(e===null)throw new Error("Expected a root element.");return Bee.createRoot(e)},Hee=zee();var tU="popstate";function jee(e={}){function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return OR("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:n_(i)}return Gee(t,n,null,e)}function xr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Bo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vee(){return Math.random().toString(36).substring(2,10)}function nU(e,t){return{usr:e.state,key:e.key,idx:t}}function OR(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?wp(t):t,state:n,key:t&&t.key||r||Vee()}}function n_({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function wp(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Gee(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a="POP",l=null,f=d();f==null&&(f=0,o.replaceState({...o.state,idx:f},""));function d(){return(o.state||{idx:null}).idx}function p(){a="POP";let b=d(),w=b==null?null:b-f;f=b,l&&l({action:a,location:E.location,delta:w})}function m(b,w){a="PUSH";let T=OR(E.location,b,w);f=d()+1;let R=nU(T,f),C=E.createHref(T);try{o.pushState(R,"",C)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(C)}s&&l&&l({action:a,location:E.location,delta:1})}function _(b,w){a="REPLACE";let T=OR(E.location,b,w);f=d();let R=nU(T,f),C=E.createHref(T);o.replaceState(R,"",C),s&&l&&l({action:a,location:E.location,delta:0})}function v(b){return qee(b)}let E={get action(){return a},get location(){return e(i,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(tU,p),l=b,()=>{i.removeEventListener(tU,p),l=null}},createHref(b){return t(i,b)},createURL:v,encodeLocation(b){let w=v(b);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:m,replace:_,go(b){return o.go(b)}};return E}function qee(e,t=!1){let n="http://localhost";
10typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),xr(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:n_(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function l6(e,t,n="/"){return Wee(e,t,n,!1)}function Wee(e,t,n,r){let i=typeof t=="string"?wp(t):t,s=yc(i.pathname||"/",n);if(s==null)return null;let o=u6(e);Yee(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let f=ste(s);a=rte(o[l],f,r)}return a}function u6(e,t=[],n=[],r="",i=!1){let s=(o,a,l=i,f)=>{let d={relativePath:f===void 0?o.path||"":f,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&l)return;xr(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let p=hc([r,d.relativePath]),m=n.concat(d);o.children&&o.children.length>0&&(xr(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),u6(o.children,t,m,p,l)),!(o.path==null&&!o.index)&&t.push({path:p,score:tte(p,o.index),routesMeta:m})};return e.forEach((o,a)=>{if(o.path===""||!o.path?.includes("?"))s(o,a);else for(let l of f6(o.path))s(o,a,!0,l)}),t}function f6(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=f6(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Yee(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:nte(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Xee=/^:[\w-]+$/,Kee=3,Zee=2,Jee=1,Qee=10,ete=-2,rU=e=>e==="*";function tte(e,t){let n=e.split("/"),r=n.length;return n.some(rU)&&(r+=ete),t&&(r+=Zee),n.filter(i=>!rU(i)).reduce((i,s)=>i+(Xee.test(s)?Kee:s===""?Jee:Qee),r)}function nte(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function rte(e,t,n=!1){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],f=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",p=g0({path:l.relativePath,caseSensitive:l.caseSensitive,end:f},d),m=l.route;if(!p&&f&&n&&!r[r.length-1].route.index&&(p=g0({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!p)return null;
10Object.assign(i,p.params),o.push({params:i,pathname:hc([s,p.pathname]),pathnameBase:lte(hc([s,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(s=hc([s,p.pathnameBase]))}return o}function g0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ite(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((f,{paramName:d,isOptional:p},m)=>{if(d==="*"){let v=a[m]||"";o=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const _=a[m];return p&&!_?f[d]=void 0:f[d]=(_||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:o,pattern:e}}function ite(e,t=!1,n=!0){Bo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function ste(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Bo(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function yc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var d6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ote=e=>d6.test(e);function ate(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?wp(e):e,s;if(n)if(ote(n))s=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),Bo(!1,`Pathnames cannot have embedded double slashes - normalizing ${o} -> ${n}`)}n.startsWith("/")?s=iU(n.substring(1),"/"):s=iU(n,t)}else s=t;return{pathname:s,search:ute(r),hash:fte(i)}}function iU(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Kx(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function cte(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function h6(e){let t=cte(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function p6(e,t,n,r=!1){let i;typeof e=="string"?i=wp(e):(i={...e},xr(!i.pathname||!i.pathname.includes("?"),Kx("?","pathname","search",i)),xr(!i.pathname||!i.pathname.includes("#"),Kx("#","pathname","hash",i)),xr(!i.search||!i.search.includes("#"),Kx("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let p=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),p-=1;i.pathname=m.join("/")}a=p>=0?t[p]:"/"}let l=ate(i,a),f=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(f||d)&&(l.pathname+="/"),l}var hc=e=>e.join("/").replace(/\/\/+/g,"/"),lte=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ute=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fte=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,dte=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function hte(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function pte(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var g6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function m6(e,t){let n=e;
10if(typeof n!="string"||!d6.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(g6)try{let s=new URL(window.location.href),o=n.startsWith("//")?new URL(s.protocol+n):new URL(n),a=yc(o.pathname,t);o.origin===s.origin&&a!=null?n=a+o.search+o.hash:i=!0}catch{Bo(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _6=["POST","PUT","PATCH","DELETE"];new Set(_6);var gte=["GET",..._6];new Set(gte);var Tp=D.createContext(null);Tp.displayName="DataRouter";var aw=D.createContext(null);aw.displayName="DataRouterState";var mte=D.createContext(!1),v6=D.createContext({isTransitioning:!1});v6.displayName="ViewTransition";var _te=D.createContext(new Map);_te.displayName="Fetchers";var vte=D.createContext(null);vte.displayName="Await";var bo=D.createContext(null);bo.displayName="Navigation";var ev=D.createContext(null);ev.displayName="Location";var Nc=D.createContext({outlet:null,matches:[],isDataRoute:!1});Nc.displayName="Route";var xO=D.createContext(null);xO.displayName="RouteError";var y6="REACT_ROUTER_ERROR",yte="REDIRECT",bte="ROUTE_ERROR_RESPONSE";function Ste(e){if(e.startsWith(`${y6}:${yte}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Ete(e){if(e.startsWith(`${y6}:${bte}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new dte(t.status,t.statusText,t.data)}catch{}}function wte(e,{relative:t}={}){xr(tv(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=D.useContext(bo),{hash:i,pathname:s,search:o}=nv(e,{relative:t}),a=s;return n!=="/"&&(a=s==="/"?n:hc([n,s])),r.createHref({pathname:a,search:o,hash:i})}function tv(){return D.useContext(ev)!=null}function Hf(){return xr(tv(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(ev).location}var b6="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function S6(e){D.useContext(bo).static||D.useLayoutEffect(e)}function Tte(){let{isDataRoute:e}=D.useContext(Nc);return e?$te():xte()}function xte(){xr(tv(),"useNavigate() may be used only in the context of a <Router> component.");let e=D.useContext(Tp),{basename:t,navigator:n}=D.useContext(bo),{matches:r}=D.useContext(Nc),{pathname:i}=Hf(),s=JSON.stringify(h6(r)),o=D.useRef(!1);return S6(()=>{o.current=!0}),D.useCallback((l,f={})=>{if(Bo(o.current,b6),!o.current)return;if(typeof l=="number"){n.go(l);return}let d=p6(l,JSON.parse(s),i,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:hc([t,d.pathname])),(f.replace?n.replace:n.push)(d,f.state,f)},[t,n,s,i,e])}D.createContext(null);function nv(e,{relative:t}={}){let{matches:n}=D.useContext(Nc),{pathname:r}=Hf(),i=JSON.stringify(h6(n));return D.useMemo(()=>p6(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function Cte(e,t){return E6(e,t)}
10function E6(e,t,n,r,i){xr(tv(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=D.useContext(bo),{matches:o}=D.useContext(Nc),a=o[o.length-1],l=a?a.params:{},f=a?a.pathname:"/",d=a?a.pathnameBase:"/",p=a&&a.route;{let T=p&&p.path||"";T6(f,!p||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
11
12Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let m=Hf(),_;if(t){let T=typeof t=="string"?wp(t):t;xr(d==="/"||T.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${T.pathname}" was given in the \`location\` prop.`),_=T}else _=m;let v=_.pathname||"/",E=v;if(d!=="/"){let T=d.replace(/^\//,"").split("/");E="/"+v.replace(/^\//,"").split("/").slice(T.length).join("/")}let b=l6(e,{pathname:E});Bo(p||b!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Bo(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=Ote(b&&b.map(T=>Object.assign({},T,{params:Object.assign({},l,T.params),pathname:hc([d,s.encodeLocation?s.encodeLocation(T.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?d:hc([d,s.encodeLocation?s.encodeLocation(T.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),o,n,r,i);return t&&w?D.createElement(ev.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},w):w}function Ate(){let e=Pte(),t=hte(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:s},"ErrorBoundary")," or"," ",D.createElement("code",{style:s},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:i},n):null,o)}var Rte=D.createElement(Ate,null),w6=class extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Ete(e.digest);n&&(e=n)}let t=e!==void 0?D.createElement(Nc.Provider,{value:this.props.routeContext},D.createElement(xO.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?D.createElement(kte,{error:e},t):t}};w6.contextType=mte;var Zx=new WeakMap;function kte({children:e,error:t}){let{basename:n}=D.useContext(bo);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Ste(t.digest);if(r){let i=Zx.get(t);if(i)throw i;let s=m6(r.location,n);if(g6&&!Zx.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw Zx.set(t,o),o}return D.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function Ite({routeContext:e,match:t,children:n}){let r=D.useContext(Tp);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Nc.Provider,{value:e},n)}
12function Ote(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,o=n?.errors;if(o!=null){let d=s.findIndex(p=>p.route.id&&o?.[p.route.id]!==void 0);xr(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),s=s.slice(0,Math.min(s.length,d+1))}let a=!1,l=-1;if(n)for(let d=0;d<s.length;d++){let p=s[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(l=d),p.route.id){let{loaderData:m,errors:_}=n,v=p.route.loader&&!m.hasOwnProperty(p.route.id)&&(!_||_[p.route.id]===void 0);if(p.route.lazy||v){a=!0,l>=0?s=s.slice(0,l+1):s=[s[0]];break}}}let f=n&&r?(d,p)=>{r(d,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:pte(n.matches),errorInfo:p})}:void 0;return s.reduceRight((d,p,m)=>{let _,v=!1,E=null,b=null;n&&(_=o&&p.route.id?o[p.route.id]:void 0,E=p.route.errorElement||Rte,a&&(l<0&&m===0?(T6("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,b=null):l===m&&(v=!0,b=p.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,m+1)),T=()=>{let R;return _?R=E:v?R=b:p.route.Component?R=D.createElement(p.route.Component,null):p.route.element?R=p.route.element:R=d,D.createElement(Ite,{match:p,routeContext:{outlet:d,matches:w,isDataRoute:n!=null},children:R})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?D.createElement(w6,{location:n.location,revalidation:n.revalidation,component:E,error:_,children:T(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:f}):T()},null)}function CO(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mte(e){let t=D.useContext(Tp);return xr(t,CO(e)),t}function Nte(e){let t=D.useContext(aw);return xr(t,CO(e)),t}function Lte(e){let t=D.useContext(Nc);return xr(t,CO(e)),t}function AO(e){let t=Lte(e),n=t.matches[t.matches.length-1];return xr(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Dte(){return AO("useRouteId")}function Pte(){let e=D.useContext(xO),t=Nte("useRouteError"),n=AO("useRouteError");return e!==void 0?e:t.errors?.[n]}function $te(){let{router:e}=Mte("useNavigate"),t=AO("useNavigate"),n=D.useRef(!1);return S6(()=>{n.current=!0}),D.useCallback(async(i,s={})=>{Bo(n.current,b6),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var sU={};function T6(e,t,n){!t&&!sU[e]&&(sU[e]=!0,Bo(!1,n))}D.memo(Fte);function Fte({routes:e,future:t,state:n,onError:r}){return E6(e,void 0,n,r,t)}function pl(e){xr(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ute({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:s=!1,unstable_useTransitions:o}){xr(!tv(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:a,navigator:i,static:s,unstable_useTransitions:o,future:{}}),[a,i,s,o]);typeof n=="string"&&(n=wp(n));let{pathname:f="/",search:d="",hash:p="",state:m=null,key:_="default"}=n,v=D.useMemo(()=>{let E=yc(f,a);return E==null?null:{location:{pathname:E,search:d,hash:p,state:m,key:_},navigationType:r}},[a,f,d,p,m,_,r]);return Bo(v!=null,`<Router basename="${a}"> is not able to match the URL "${f}${d}${p}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:D.createElement(bo.Provider,{value:l},D.createElement(ev.Provider,{children:t,value:v}))}function Bte({children:e,location:t}){return Cte(MR(e),t)}function MR(e,t=[]){let n=[];return D.Children.forEach(e,(r,i)=>{if(!D.isValidElement(r))return;let s=[...t,i];if(r.type===D.Fragment){n.push.apply(n,MR(r.props.children,s));return}xr(r.type===pl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),xr(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,
12shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=MR(r.props.children,s)),n.push(o)}),n}var RS="get",kS="application/x-www-form-urlencoded";function cw(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function zte(e){return cw(e)&&e.tagName.toLowerCase()==="button"}function Hte(e){return cw(e)&&e.tagName.toLowerCase()==="form"}function jte(e){return cw(e)&&e.tagName.toLowerCase()==="input"}function Vte(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Gte(e,t){return e.button===0&&(!t||t==="_self")&&!Vte(e)}var rb=null;function qte(){if(rb===null)try{new FormData(document.createElement("form"),0),rb=!1}catch{rb=!0}return rb}var Wte=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Jx(e){return e!=null&&!Wte.has(e)?(Bo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${kS}"`),null):e}function Yte(e,t){let n,r,i,s,o;if(Hte(e)){let a=e.getAttribute("action");r=a?yc(a,t):null,n=e.getAttribute("method")||RS,i=Jx(e.getAttribute("enctype"))||kS,s=new FormData(e)}else if(zte(e)||jte(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||a.getAttribute("action");if(r=l?yc(l,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||RS,i=Jx(e.getAttribute("formenctype"))||Jx(a.getAttribute("enctype"))||kS,s=new FormData(a,e),!qte()){let{name:f,type:d,value:p}=e;if(d==="image"){let m=f?`${f}.`:"";s.append(`${m}x`,"0"),s.append(`${m}y`,"0")}else f&&s.append(f,p)}}else{if(cw(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=RS,r=null,i=kS,o=e}return s&&i==="text/plain"&&(o=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function RO(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Xte(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&yc(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Kte(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Zte(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Jte(e,t,n){let r=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let o=await Kte(s,n);return o.links?o.links():[]}return[]}));return nne(r.flat(1).filter(Zte).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function oU(e,t,n,r,i,s){let o=(l,f)=>n[f]?l.route.id!==n[f].route.id:!0,a=(l,f)=>n[f].pathname!==l.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==l.params["*"];return s==="assets"?t.filter((l,f)=>o(l,f)||a(l,f)):s==="data"?t.filter((l,f)=>{let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(o(l,f)||a(l,f))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function Qte(e,t,{includeHydrateFallback:n}={}){return ene(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function ene(e){return[...new Set(e)]}function tne(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function nne(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let s=JSON.stringify(tne(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}function x6(){let e=D.useContext(Tp);return RO(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function rne(){let e=D.useContext(aw);return RO(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var kO=D.createContext(void 0);kO.displayName="FrameworkContext";function C6(){let e=D.useContext(kO);return RO(e,"You must render this element inside a <HydratedRouter> element"),e}function ine(e,t){let n=D.useContext(kO),[r,i]=D.useState(!1),[s,o]=D.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:f,onMouseLeave:d,onTouchStart:p}=t,m=D.useRef(null);D.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let E=w=>
12{w.forEach(T=>{o(T.isIntersecting)})},b=new IntersectionObserver(E,{threshold:.5});return m.current&&b.observe(m.current),()=>{b.disconnect()}}},[e]),D.useEffect(()=>{if(r){let E=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(E)}}},[r]);let _=()=>{i(!0)},v=()=>{i(!1),o(!1)};return n?e!=="intent"?[s,m,{}]:[s,m,{onFocus:Hg(a,_),onBlur:Hg(l,v),onMouseEnter:Hg(f,_),onMouseLeave:Hg(d,v),onTouchStart:Hg(p,_)}]:[!1,m,{}]}function Hg(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function sne({page:e,...t}){let{router:n}=x6(),r=D.useMemo(()=>l6(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?D.createElement(ane,{page:e,matches:r,...t}):null}function one(e){let{manifest:t,routeModules:n}=C6(),[r,i]=D.useState([]);return D.useEffect(()=>{let s=!1;return Jte(e,t,n).then(o=>{s||i(o)}),()=>{s=!0}},[e,t,n]),r}function ane({page:e,matches:t,...n}){let r=Hf(),{manifest:i,routeModules:s}=C6(),{basename:o}=x6(),{loaderData:a,matches:l}=rne(),f=D.useMemo(()=>oU(e,t,l,i,r,"data"),[e,t,l,i,r]),d=D.useMemo(()=>oU(e,t,l,i,r,"assets"),[e,t,l,i,r]),p=D.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,E=!1;if(t.forEach(w=>{let T=i.routes[w.route.id];!T||!T.hasLoader||(!f.some(R=>R.route.id===w.route.id)&&w.route.id in a&&s[w.route.id]?.shouldRevalidate||T.hasClientLoader?E=!0:v.add(w.route.id))}),v.size===0)return[];let b=Xte(e,o,"data");return E&&v.size>0&&b.searchParams.set("_routes",t.filter(w=>v.has(w.route.id)).map(w=>w.route.id).join(",")),[b.pathname+b.search]},[o,a,r,i,f,t,e,s]),m=D.useMemo(()=>Qte(d,i),[d,i]),_=one(d);return D.createElement(D.Fragment,null,p.map(v=>D.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),m.map(v=>D.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),_.map(({key:v,link:E})=>D.createElement("link",{key:v,nonce:n.nonce,...E})))}function cne(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var lne=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{lne&&(window.__reactRouterVersion="7.11.0")}catch{}function une({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=D.useRef();i.current==null&&(i.current=jee({window:r,v5Compat:!0}));let s=i.current,[o,a]=D.useState({action:s.action,location:s.location}),l=D.useCallback(f=>{n===!1?a(f):D.startTransition(()=>a(f))},[n]);return D.useLayoutEffect(()=>s.listen(l),[s,l]),D.createElement(Ute,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:s,unstable_useTransitions:n})}var A6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,IO=D.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:o,state:a,target:l,to:f,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:m,..._},v){let{basename:E,unstable_useTransitions:b}=D.useContext(bo),w=typeof f=="string"&&A6.test(f),T=m6(f,E);f=T.to;let R=wte(f,{relative:i}),[C,k,M]=ine(r,_),I=pne(f,{replace:o,state:a,target:l,preventScrollReset:d,relative:i,viewTransition:p,unstable_defaultShouldRevalidate:m,unstable_useTransitions:b});function $(V){t&&t(V),V.defaultPrevented||I(V)}let Q=D.createElement("a",{..._,...M,href:T.absoluteURL||R,onClick:T.isExternal||s?t:$,ref:cne(v,k),target:l,"data-discover":!w&&n==="render"?"true":void 0});return C&&!w?D.createElement(D.Fragment,null,Q,D.createElement(sne,{page:R})):Q});IO.displayName="Link";var fne=D.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:o,viewTransition:a,children:l,...f},d){let p=nv(o,{relative:f.relative}),m=Hf(),_=D.useContext(aw),{navigator:v,basename:E}=D.useContext(bo),b=_!=null&&yne(p)&&a===!0,w=v.encodeLocation?v.encodeLocation(p).pathname:p.pathname,T=m.pathname,R=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(T=T.toLowerCase(),R=R?R.toLowerCase():null,w=w.toLowerCase()),R&&E&&(R=yc(R,E)||R);const C=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let k=T===w||!i&&T.startsWith(w)&&T.charAt(C)==="/",M=R!=null&&(R===w||!i&&R.startsWith(w)&&R.charAt(w.length)==="/"),I={isActive:k,isPending:M,isTransitioning:b},$=k?t:void 0,Q;typeof r=="function"?Q=r(I):Q=[r,k?"active":null,M?"pending":null,b?"transitioning":null].filter(
12Boolean).join(" ");let V=typeof s=="function"?s(I):s;return D.createElement(IO,{...f,"aria-current":$,className:Q,ref:d,style:V,to:o,viewTransition:a},typeof l=="function"?l(I):l)});fne.displayName="NavLink";var dne=D.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:s,method:o=RS,action:a,onSubmit:l,relative:f,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:m,..._},v)=>{let{unstable_useTransitions:E}=D.useContext(bo),b=_ne(),w=vne(a,{relative:f}),T=o.toLowerCase()==="get"?"get":"post",R=typeof a=="string"&&A6.test(a),C=k=>{if(l&&l(k),k.defaultPrevented)return;k.preventDefault();let M=k.nativeEvent.submitter,I=M?.getAttribute("formmethod")||o,$=()=>b(M||k.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:i,state:s,relative:f,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:m});E&&n!==!1?D.startTransition(()=>$()):$()};return D.createElement("form",{ref:v,method:T,action:w,onSubmit:r?l:C,..._,"data-discover":!R&&e==="render"?"true":void 0})});dne.displayName="Form";function hne(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function R6(e){let t=D.useContext(Tp);return xr(t,hne(e)),t}function pne(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:o,unstable_defaultShouldRevalidate:a,unstable_useTransitions:l}={}){let f=Tte(),d=Hf(),p=nv(e,{relative:s});return D.useCallback(m=>{if(Gte(m,t)){m.preventDefault();let _=n!==void 0?n:n_(d)===n_(p),v=()=>f(e,{replace:_,state:r,preventScrollReset:i,relative:s,viewTransition:o,unstable_defaultShouldRevalidate:a});l?D.startTransition(()=>v()):v()}},[d,f,p,n,r,t,e,i,s,o,a,l])}var gne=0,mne=()=>`__${String(++gne)}__`;function _ne(){let{router:e}=R6("useSubmit"),{basename:t}=D.useContext(bo),n=Dte(),r=e.fetch,i=e.navigate;return D.useCallback(async(s,o={})=>{let{action:a,method:l,encType:f,formData:d,body:p}=Yte(s,t);if(o.navigate===!1){let m=o.fetcherKey||mne();await r(m,n,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:p,formMethod:o.method||l,formEncType:o.encType||f,flushSync:o.flushSync})}else await i(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:p,formMethod:o.method||l,formEncType:o.encType||f,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,i,t,n])}function vne(e,{relative:t}={}){let{basename:n}=D.useContext(bo),r=D.useContext(Nc);xr(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...nv(e||".",{relative:t})},o=Hf();if(e==null){s.search=o.search;let a=new URLSearchParams(s.search),l=a.getAll("index");if(l.some(d=>d==="")){a.delete("index"),l.filter(p=>p).forEach(p=>a.append("index",p));let d=a.toString();s.search=d?`?${d}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:hc([n,s.pathname])),n_(s)}function yne(e,{relative:t}={}){let n=D.useContext(v6);xr(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=R6("useViewTransitionState"),i=nv(e,{relative:t});if(!n.isTransitioning)return!1;let s=yc(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=yc(n.nextLocation.pathname,r)||n.nextLocation.pathname;return g0(i.pathname,o)!=null||g0(i.pathname,s)!=null}var aU;(function(e){e[e.InvalidResponse=1]="InvalidResponse"})(aU||(aU={}));var NR;(function(e){e[e.InvalidReturnPath=11]="InvalidReturnPath",e[e.InvalidStateSessionId=51]="InvalidStateSessionId",e[e.MissingCookies=12]="MissingCookies",e[e.MissingReturnPath=9]="MissingReturnPath",e[e.MissingSessionIdCookie=13]="MissingSessionIdCookie",e[e.MissingStateSearchParam=4]="MissingStateSearchParam",e[e.MissingStateSessionId=10]="MissingStateSessionId",e[e.NonJsonStateSearchParam=5]="NonJsonStateSearchParam",e[e.NonObjectState=8]="NonObjectState",e[e.InvalidPatreonOAuthClientId=17]="InvalidPatreonOAuthClientId",e[e.InvalidPatreonOAuthClientSecret=19]="InvalidPatreonOAuthClientSecret",e[e.InvalidPatreonOAuthHost=21]="InvalidPatreonOAuthHost",e[e.InvalidPatreonOAuthRedirectUri=23]="InvalidPatreonOAuthRedirectUri",e[e.MissingPatreonOAuthClientId=16]="MissingPatreonOAuthClientId",e[e.MissingPatreonOAuthClientSecret=18]="MissingPatreonOAuthClientSecret",e[e.ForbiddenPatreonIdentityResponse=39]="ForbiddenPatreonIdentityResponse",e[e.InvalidInvalidPatreonTokenRequestDescription=31]="InvalidInvalidPatreonTokenRequestDescription",e[e.InvalidPatreonAccessToken=37]="InvalidPatreonAccessToken",e[e.InvalidPatreonClientId=28]="InvalidPatreonClientId",e[e.InvalidPatreonGrantCode=29]="InvalidPatreonGrantCode",e[e.InvalidPatreonIdentity=41]="InvalidPatreonIdentity",e[e.InvalidPatreonIdentityData=43]="InvalidPatreonIdentityData",e[e.InvalidPatreonIdentityId=45]="InvalidPatreonIdentityId",e[e.InvalidPatreonIdentityResponse=38]="InvalidPatreonIdentityResponse",e[e.InvalidPatreonOAuthToken=35]="InvalidPatreonOAuthToken",e[e.InvalidPatreonTokenErrorResponse=26]="InvalidPatreonTokenErrorResponse",e[e.InvalidPatreonTokenErrorResponseBody=24]="InvalidPatreonTokenErrorResponseBody",e[e.InvalidPatreonTokenRequest=32]="InvalidPatreonTokenRequest",e[e.InvalidPatreonTokenResponse=34]="InvalidPatreonTokenResponse",e[e.MissingInvalidPatreonTokenRequestDescription=30]="MissingInvalidPatreonTokenRequestDescription",e[e.MissingPatreonAccessToken=36]="MissingPatreonAccessToken",e[e.MissingPatreonIdentityData=42]="MissingPatreonIdentityData",e[e.MissingPatreonIdentityId=44]="MissingPatreonIdentityId",e[e.MissingPatreonOAuthHost=52]="MissingPatreonOAuthHost",e[e.MissingPatreonRequestCode=15]="MissingPatreonRequestCode",e[e.MissingPatreonTokenErrorResponseBody=25]="MissingPatreonTokenErrorResponseBody",e[e.MissingPatreonTokenErrorResponseCode=27]="MissingPatreonTokenErrorResponseCode",e[e.UnknownPatreonIdentityError=40]="UnknownPatreonIdentityError",e[e.UnknownPatreonTokenErrorResponseCode=33]="UnknownPatreonTokenErrorResponseCode",e[e.CSRF=14]="CSRF",e[e.InvalidAnalyticsId=53]="InvalidAnalyticsId",e[e.InvalidAnalyticsSecret=54]="InvalidAnalyticsSecret",e[e.InvalidAuthnUserIdsNamespace=2
120]="InvalidAuthnUserIdsNamespace",e[e.InvalidCause=3]="InvalidCause",e[e.InvalidDatabase=47]="InvalidDatabase",e[e.InvalidIsolateEnvironment=6]="InvalidIsolateEnvironment",e[e.InvalidOAuthUserId=48]="InvalidOAuthUserId",e[e.InvalidUsageDataset=50]="InvalidUsageDataset",e[e.InvalidUnknownEnv=22]="InvalidUnknownEnv",e[e.MissingAnalyticsId=55]="MissingAnalyticsId",e[e.MissingAnalyticsSecret=56]="MissingAnalyticsSecret",e[e.MissingAuthnUserIdsNamespace=49]="MissingAuthnUserIdsNamespace",e[e.MissingDatabase=46]="MissingDatabase",e[e.MissingIsolateEnvironment=7]="MissingIsolateEnvironment",e[e.NotFound=404]="NotFound",e[e.TooManyRequests=429]="TooManyRequests",e[e.Unknown=1]="Unknown",e[e.UnknownCause=2]="UnknownCause"})(NR||(NR={}));const bne=new Set(Object.values(NR));function UGe(e){return bne.has(e)}var km;(function(e){e[e.Cached=2]="Cached",e[e.InvalidAuthnId=3]="InvalidAuthnId",e[e.MissingAuthnId=1]="MissingAuthnId",e[e.Throttled=429]="Throttled",e[e.Uncached=4]="Uncached"})(km||(km={}));const k6=ct("https://a.quisi.do/whoami/");function Sne(e){return function(){const n=D.useContext(e);if(n===null)throw new Error("Expected a value to be provided.");return n}}function Ene(e){return Object.assign(({children:n,value:r})=>q.jsx(e.Provider,{value:r,children:n}),{$$typeof:e.Provider.$$typeof})}function rv(){const e=D.createContext(null);return{ContextProvider:Ene(e),useContextValue:Sne(e)}}function wne({lastGetRef:e,onError:t,onGetStart:n,onSuccess:r}){return D.useCallback(async i=>{n(i);try{const s=await i();if(i!==e.current)return;r(s)}catch(s){if(i!==e.current)return;t(s)}},[e,t,n,r])}const cU={data:void 0,error:void 0,initiated:!1,loading:!1};function I6({onError:e}={}){const t=D.useRef(void 0),n=D.useRef(void 0),[r,i]=D.useState(cU),s=wne({lastGetRef:n,onError:D.useCallback(o=>{e?.(o);const a=Dh(o);i({data:void 0,error:a,initiated:!0,loading:!1})},[e]),onGetStart:D.useCallback(o=>{n.current=o,i({data:void 0,error:void 0,initiated:!0,loading:!0})},[]),onSuccess:D.useCallback(o=>{i({data:o,error:void 0,initiated:!0,loading:!1})},[])});return{...r,asyncEffectRef:t,request:D.useCallback(async o=>{const a=s(o);t.current=a,await a},[s]),reset:D.useCallback(()=>{t.current=void 0,n.current=void 0,i(cU)},[]),retry:D.useCallback(async()=>{if(typeof n.current>"u")return;const o=s(n.current);t.current=o,await o},[s]),set:D.useCallback(o=>{t.current=void 0,n.current=void 0,i({data:o,error:void 0,initiated:!0,loading:!1})},[])}}const{ContextProvider:Tne,useContextValue:xne}=rv(),Cne=Tne,jf=xne;function Ane(e){const t=D.useRef(e);return D.useLayoutEffect(()=>{t.current=e},[e]),D.useCallback((...n)=>t.current(...n),[])}const Rne=e=>e===km.InvalidAuthnId||e===km.MissingAuthnId||e===km.Throttled;function kne({children:e}){const t=I6(),n=Ane(t.request);return D.useEffect(()=>{n(async()=>{const i=await(await fetch(k6,{credentials:"include",redirect:"error"})).json();if(!p0(i))throw new Error("You do not have data.");if("code"in i&&Rne(i.code))return{id:null};if(!("id"in i))throw new Error("Your ID is missing.");const{id:s}=i;
12if(typeof s!="number")throw new Error("Your ID is invalid.");return{...i,id:s}})},[]),q.jsx(Cne,{value:t,children:e})}var Ine=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.wnd,r=n===void 0?window:n;(function(i,s,o,a,l,f,d,p){var m=(function(E){return E in i?(i.console&&i.console.log&&i.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].'),!1):!0})(o);if(!m)return;function _(v){var E=[],b;function w(){b&&(E.forEach(function(C){var k;try{k=C[b[0]]&&C[b[0]](b[1])}catch(M){C[3]&&C[3](M);return}k&&k.then?k.then(C[2],C[3]):C[2]&&C[2](k)}),E.length=0)}function T(C){return function(k){b||(b=[C,k],w())}}v(T(0),T(1));function R(C,k){return _(function(M,I){E.push([C,k,M,I]),w()})}return{then:R}}d=i[o]=(function(){var E=function(T,R,C,k){k=k||2;function M(Q,V){b(T,R,C,Q,V,k)}var I=/Async$/;if(I.test(T))return T=T.replace(I,""),typeof Promise=="function"?new Promise(M):_(M);var $;return b(T,R,C,$,$,k)};function b(w,T,R,C,k,M){return E._api?E._api(w,T,R,C,k,M):(E.q&&E.q.push([w,T,R,C,k,M]),null)}return E.q=[],E})(),p=(function(){return function(E){function b(R){typeof R[4]=="function"&&R[4](new Error(E))}var w=d.q;if(w){for(var T=0;T<w.length;T++)b(w[T]);w.length=0,w.push=b}}})(),(function(){f=s.createElement(a),f.async=!0,f.crossOrigin="anonymous",f.src="https://"+l,f.onerror=function(){p("Error loading "+l)};var E=s.getElementsByTagName(a)[0];E&&E.parentNode?E.parentNode.insertBefore(f,E):s.head.appendChild(f)})(),(function(){function E(){}function b(C,k,M){d(C,k,M,1)}function w(C,k,M){b("setProperties",{type:C,properties:k},M)}function T(C,k){w("user",C,k)}function R(C,k,M){T({uid:C},M),k&&T(k,M)}d.identify=R,d.setUserVars=T,d.identifyAccount=E,d.clearUserCookie=E,d.setVars=w,d.event=function(C,k,M){b("trackEvent",{name:C,properties:k},M)},d.anonymize=function(){R(!1)},d.shutdown=function(){b("shutdown")},d.restart=function(){b("restart")},d.log=function(C,k){b("log",{level:C,msg:k})},d.consent=function(C){b("setIdentity",{consent:!arguments.length||C})}})(),(function(){var E="fetch",b="XMLHttpRequest";d._w={},d._w[b]=i[b],d._w[E]=i[E],i[E]&&(i[E]=function(){return d._w[E].apply(this,arguments)})})(),d._v="2.0.0"})(r,r.document,r._fs_namespace,"script",r._fs_script)},One=function(t){return t==="window"?"document":"".concat(t,".document")},Mne=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.shouldInsertScript,r=n===void 0?!0:n,i=t.globalVar,s=i===void 0?"window":i,o=t.apiVersion,a=o===void 0?"1.3.0":o;return`(function(m,n,e,t,l,o,g,y){
13    if (e in m) {if(m.console && m.console.log) { m.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].');} return;}
14    g=m[e]=function(a,b,s){g.q?g.q.push([a,b,s]):g._api(a,b,s);};g.q=[];`.concat(r?`
15    o=n.createElement(t);o.async=1;o.crossOrigin='anonymous';o.src='https://'+_fs_script;
16    y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y);`:"",`
17    g.identify=function(i,v,s){g(l,{uid:i},s);if(v)g(l,v,s)};g.setUserVars=function(v,s){g(l,v,s)};g.event=function(i,v,s){g('event',{n:i,p:v},s)};
18    g.anonymize=function(){g.identify(!!0)};
19    g.shutdown=function(){g("rec",!1)};g.restart=function(){g("rec",!0)};
20    g.log = function(a,b){g("log",[a,b])};
21    g.consent=function(a){g("consent",!arguments.length||a)};
22    g.identifyAccount=function(i,v){o='account';v=v||{};v.acctId=i;g(o,v)};
23    g.clearUserCookie=function(){};
24    g.setVars=function(n, p){g('setVars',[n,p]);};
25    g._w={};y='XMLHttpRequest';g._w[y]=m[y];y='fetch';g._w[y]=m[y];
26    if(m[y])m[y]=function(){return g._w[y].apply(this,arguments)};
27    g._v="`).concat(a,`";
28})(`).concat(s,",").concat(One(s),",").concat(s,"['_fs_namespace'],'script','user');")},Nne=function(t){var n=t.orgId,r=t.namespace,i=r===void 0?"FS":r,s=t.host,o=s===void 0?"fullstory.com":s,a=t.script,l=a===void 0?"edge.fullstory.com/s/fs.js":a;if(!n)throw new Error("FullStory orgId is a required parameter");window._fs_host=o,window._fs_script=l,window._fs_org=n,window._fs_namespace=i,Ine()};Mne();function Lne(e,[t,n]){return[...e,t,n]}function Dne(e){return typeof e!="object"?[e]:e===null?[null]:Object.entries(e).sort(i6).reduce(Lne,[])}function iv(e){return D.useMemo(()=>e,Dne(e))}const O6=D.createContext(null);var LR=function(){return LR=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},LR.apply(this,arguments)},m0=function(){if(window._fs_namespace)return window[window._fs_namespace]},M6=function(){var e=m0();if(!e)throw Error("FullStory is not loaded, please ensure the init function is invoked before calling FullStory API functions");return e},Pne=function(e,t){var n=LR({},e);if(m0()){console.warn("The FullStory snippet has already been defined elsewhere (likely in the <head> element)");return}n.recordCrossDomainIFrames&&(window._fs_run_in_iframe=!0),n.appHost&&(window._fs_app_host=n.appHost),n.assetMapId&&(window._fs_asset_map_id=n.assetMapId),n.startCaptureManually&&(window._fs_capture_on_startup=!1),n.recordOnlyThisIFrame&&(window._fs_is_outer_script=!0),n.cookieDomain&&(window._fs_cookie_domain=n.cookieDomain),n.debug===!0&&(n.script?console.warn("Ignoring `debug = true` because `script` is set"):n.script="edge.fullstory.com/s/fs-debug.js"),Nne(n);var r=m0();if(!r){console.warn("Failed to initialize FS snippet");return}if(t&&r("observe",{type:"start",callback:t}),n.devMode===!0){var i="FullStory was initialized in devMode and will stop recording";r("trackEvent",{name:"FullStory Dev Mode",properties:{message:i}}),r("shutdown"),window._fs_dev_mode=!0,console.warn(i)}},$ne=function(e){return function(t,n){if(window._fs_initialized){console.warn(e);return}Pne(t,n),window._fs_initialized=!0}},Fne=$ne("FullStory init has already been called once, additional invocations are ignored"),Une=function(){return!!window._fs_initialized},Bne=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=M6();return e.every(function(r){return n[r]})},eo=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(window._fs_dev_mode){var r="FullStory is in dev mode and is not capturing: ".concat(e," method not executed");return console.warn(r),r}var i=m0();return Bne(e)&&i?i[e].apply(i,t):(console.warn("FS.".concat(e," not ready")),null)}},zne=function(){var e=function(t,n,r){var i=M6();if(window._fs_dev_mode){var s="FullStory is in dev mode and is not capturing: ".concat(t," not executed");console.warn(s);return}return i(t,n,r)};return e.anonymize=eo("anonymize"),e.consent=eo("consent"),e.disableConsole=eo("disableConsole"),e.enableConsole=eo("enableConsole"),e.event=eo("event"),e.getCurrentSessionURL=eo("getCurrentSessionURL"),e.identify=eo("identify"),e.log=eo("log"),e.restart=eo("restart"),e.setUserVars=eo("setUserVars"),e.setVars=eo("setVars"),e.shutdown=eo("shutdown"),e},Hne=zne();const jne=Object.freeze(Object.defineProperty({__proto__:null,FullStory:Hne,init:Fne,isInitialized:Une},Symbol.toStringTag,{value:"Module"})),Vne=D.createContext(null);function N6(){return D.useContext(Vne)??jne}
28function Gne({identityProperties:e,identityUid:t,...n}){const{FullStory:r,init:i,isInitialized:s}=N6(),o=iv(n);D.useEffect(()=>{if(!s())return i(o),()=>{r("shutdown")}},[r,i,s,o]),D.useEffect(()=>{if(typeof e>"u"&&typeof t>"u"){r("setIdentity",{anonymous:!0,consent:!1});return}r("setIdentity",{anonymous:!1,consent:!1,properties:e,uid:t})},[r,e,t])}function qne({children:e,...t}){const{FullStory:n}=N6();return Gne(t),q.jsx(O6.Provider,{value:n,children:e})}function Wne(){const e=D.useContext(O6);if(e===null)throw new Error("Expected the Fullstory context to be provided.");return e}function Yne(){const e=jf();return typeof e.data>"u"?{}:e.data.id===null?{}:{identity:e.data,identityUid:e.data.id.toString()}}function Xne({children:e}){const t=Yne();return q.jsx(qne,{devMode:!1,orgId:"o-1X4ZHB-na1",startCaptureManually:!1,...t,children:e})}const Kne="modulepreload",Zne=function(e){return"/"+e},lU={},wl=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(d=>Promise.resolve(d).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=o?.nonce||o?.getAttribute("nonce");i=l(n.map(f=>{if(f=Zne(f),f in lU)return;lU[f]=!0;const d=f.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":Kne,d||(m.as="script"),m.crossOrigin="",m.href=f,a&&m.setAttribute("nonce",a),document.head.appendChild(m),d)return new Promise((_,v)=>{m.addEventListener("load",_),m.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},{ContextProvider:Jne,useContextValue:Qne}=rv(),ere=Jne,tre=Qne,nre=1;function rre(){return typeof window>"u"?"":window.location.hash.slice(nre)}const uU=()=>({});function L6(){const[,e]=D.useState(uU);return D.useCallback(()=>{e(uU())},[])}const D6=D.createContext(null);function sv(){return D.useContext(D6)}const ire=1;function sre(){const e=L6(),t=sv();D.useEffect(()=>{if(t===null)return;let n=0;const r=()=>{n=window.setTimeout(e,ire)};return window.addEventListener("hashchange",r,{once:!1,passive:!0}),()=>{window.clearTimeout(n),window.removeEventListener("hashchange",r)}},[e,t])}function ore(e){const{pathname:t,search:n}=window.location;return e===""?`${t}${n}`:`${t}${n}#${e}`}const are=(e,t="push")=>{switch(t){case"push":window.history.pushState(null,"",e);break;case"replace":window.history.replaceState(null,"",e);break}};function OO(){return are}function cre(){const e=OO();return D.useCallback((t,n)=>{if(typeof window>"u")return;const r=ore(n);e(r,t);const i=new HashChangeEvent("hashchange",{newURL:r,oldURL:window.location.href});window.dispatchEvent(i)},[e])}function lre(){const e=rre(),t=cre();return sre(),[e,t]}function ure(e){return function(n){return[...n,e]}}function fre(e){return function(n){return n.filter(e)}}function P6(e){return{icon:"⚠",Message(){return Dh(e)},type:"error"}}const dre=1,hre=0,pre=[],gre=async()=>wl(()=>import("./authn-error-notification-BYFEab-8.js"),[]);function mre({children:e}){const[t,n]=lre(),r=D.useRef(hre),[i,s]=D.useState(pre),o=l=>{s(fre(See(l))),typeof l.onDismiss=="function"&&l.onDismiss()},a=D.useCallback(l=>{r.current+=dre;const f={key:r.current,...l};return s(ure(f)),()=>{o(f)}},[]);return q.jsx(ere,{value:D.useMemo(()=>{const l=[...i];if(/^#authn:error=\d+$/u.test(t)){const d=()=>{n("replace","")};l.push(gre().then(({default:p})=>p.fromHash(t)).catch(P6).then(p=>({...p,key:"authn:error",onDismiss:d})))}const f=d=>d instanceof Promise?d.then(f):{...d,onDismiss(){o(d)}};return[l.map(f),a]},[t,i,a,n]),children:e})}const De=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ft=globalThis,pc="10.27.0";function Lc(){return ov(ft),ft}function ov(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||pc,t[pc]=t[pc]||{}}function xp(e,t,n=ft){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[pc]=r[pc]||{};return i[e]||(i[e]=t())}const MO=["debug","info","warn","error","log","assert","trace"],_re="Sentry Logger ",_0={};function tu(e){if(!("console"in ft))return e();const t=ft.console,n={},r=Object.keys(_0);r.forEach(i=>
28{const s=_0[i];n[i]=t[i],t[i]=s});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function vre(){LO().enabled=!0}function yre(){LO().enabled=!1}function $6(){return LO().enabled}function bre(...e){NO("log",...e)}function Sre(...e){NO("warn",...e)}function Ere(...e){NO("error",...e)}function NO(e,...t){De&&$6()&&tu(()=>{ft.console[e](`${_re}[${e}]:`,...t)})}function LO(){return De?xp("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const ne={enable:vre,disable:yre,isEnabled:$6,log:bre,warn:Sre,error:Ere},F6=50,ba="?",fU=/\(error: (.*)\)/,dU=/captureMessage|captureException/;function U6(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],o=n.split(`
29`);for(let a=r;a<o.length;a++){let l=o[a];l.length>1024&&(l=l.slice(0,1024));const f=fU.test(l)?l.replace(fU,"$1"):l;if(!f.match(/\S*Error: /)){for(const d of t){const p=d(f);if(p){s.push(p);break}}if(s.length>=F6+i)break}}return Tre(s.slice(i))}}function wre(e){return Array.isArray(e)?U6(...e):e}function Tre(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(ib(t).function||"")&&t.pop(),t.reverse(),dU.test(ib(t).function||"")&&(t.pop(),dU.test(ib(t).function||"")&&t.pop()),t.slice(0,F6).map(n=>({...n,filename:n.filename||ib(t).filename,function:n.function||ba}))}function ib(e){return e[e.length-1]||{}}const Qx="<anonymous>";function bc(e){try{return!e||typeof e!="function"?Qx:e.name||Qx}catch{return Qx}}function DR(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function B6(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const IS={},hU={};function nu(e,t){IS[e]=IS[e]||[],IS[e].push(t)}function ru(e,t){if(!hU[e]){hU[e]=!0;try{t()}catch(n){De&&ne.error(`Error while instrumenting ${e}`,n)}}}function fo(e,t){const n=e&&IS[e];if(n)for(const r of n)try{r(t)}catch(i){De&&ne.error(`Error while triggering instrumentation handler.
30Type: ${e}
31Name: ${bc(r)}
32Error:`,i)}}let eC=null;function z6(e){const t="error";nu(t,e),ru(t,xre)}function xre(){eC=ft.onerror,ft.onerror=function(e,t,n,r,i){return fo("error",{column:r,error:i,line:n,msg:e,url:t}),eC?eC.apply(this,arguments):!1},ft.onerror.__SENTRY_INSTRUMENTED__=!0}let tC=null;function H6(e){const t="unhandledrejection";nu(t,e),ru(t,Cre)}function Cre(){tC=ft.onunhandledrejection,ft.onunhandledrejection=function(e){return fo("unhandledrejection",e),tC?tC.apply(this,arguments):!0},ft.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const j6=Object.prototype.toString;function gc(e){switch(j6.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Sc(e,Error)}}function Cp(e,t){return j6.call(e)===`[object ${t}]`}function V6(e){return Cp(e,"ErrorEvent")}function pU(e){return Cp(e,"DOMError")}function Are(e){return Cp(e,"DOMException")}function $o(e){return Cp(e,"String")}function lw(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function jl(e){return e===null||lw(e)||typeof e!="object"&&typeof e!="function"}function pa(e){return Cp(e,"Object")}function uw(e){return typeof Event<"u"&&Sc(e,Event)}function Rre(e){return typeof Element<"u"&&Sc(e,Element)}function kre(e){return Cp(e,"RegExp")}function Ap(e){return!!(e?.then&&typeof e.then=="function")}function Ire(e){return pa(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Sc(e,t){try{return e instanceof t}catch{return!1}}function G6(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function q6(e){return typeof Request<"u"&&Sc(e,Request)}const DO=ft,Ore=80;function Es(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let s=0,o=0;const a=" > ",l=a.length;let f;const d=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||Ore;for(;n&&s++<r&&(f=Mre(n,d),!(f==="html"||s>1&&o+i.length*l+f.length>=p));)i.push(f),o+=f.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function Mre(e,t){const n=e,r=[];if(!n?.tagName)return"";if(DO.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=t?.length?t.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(i?.length)i.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&$o(o)){const a=o.split(/\s+/);for(const l of a)r.push(`.${l}`)}}const s=["aria-label","type","name","title","alt"];for(const o of s){const a=n.getAttribute(o);a&&r.push(`[${o}="${a}"]`)}return r.join("")}function Vf(){try{return DO.document.location.href}catch{return""}}function W6(e){if(!DO.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function xi(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&Y6(i,r);try{e[t]=i}catch{De&&ne.log(`Failed to replace method "${t}" in object`,e)}}function ws(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{De&&ne.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Y6(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,ws(e,"__sentry_original__",t)}catch{}}function PO(e){return e.__sentry_original__}function X6(e){if(gc(e))return{message:e.message,name:e.name,stack:e.stack,...mU(e)};if(uw(e)){const t={type:e.type,target:gU(e.target),currentTarget:gU(e.currentTarget),...mU(e)};return typeof CustomEvent<"u"&&Sc(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function gU(e){try{return Rre(e)?Es(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function mU(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Nre(e){const t=Object.keys(X6(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}function r_(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function nC(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-60,0);i<5&&(i=0);let s=Math.min(i+140,r);return s>r-5&&(s=r),s===r&&(i=Math.max(s-140,0)),n=n.slice(i,s),i>0&&(n=`'{snip} ${n}`),s<r&&(n+=" {snip}"),n}function v0(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{G6(i)?n.push(B6(i)):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function OS(e,t,n=!1){return $o(e)?kre(t)?t.test(e):$o(t)?n?e===t:e.includes(t):!1:!1}function Fo(e,t=[],n=!1){return t.some(r=>OS(e,r,n))}function Lre(){const e=ft;return e.crypto||e.msCrypto}let rC;function Dre(){return Math.random()*16}function ci(e=Lre()){try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"")}catch{}return rC||(rC="10000000100040008000"+1e11),rC.replace(/[018]/g,t=>(t^(Dre()&15)>>t/4).toString(16))}function K6(e){return e.exception?.values?.[0]}function ef(e){const{message:t,event_id:n}=e;if(t)return t;const r=K6(e);return r?r.type&&r.value?`${r.type}: ${r.value}
32`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function PR(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function Ec(e,t){const n=K6(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const s={...i?.data,...t.data};n.mechanism.data=s}}function Pre(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,i=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-n),i).map(o=>nC(o,0));const s=Math.min(r-1,i);t.context_line=nC(e[s],t.colno||0),t.post_context=e.slice(Math.min(i+1,r),i+1+n).map(o=>nC(o,0))}function _U(e){if($re(e))return!0;try{ws(e,"__sentry_captured__",!0)}catch{}return!1}function $re(e){try{return e.__sentry_captured__}catch{}}const Z6=1e3;function Gf(){return Date.now()/Z6}function Fre(){const{performance:e}=ft;if(!e?.now||!e.timeOrigin)return Gf;const t=e.timeOrigin;return()=>(t+e.now())/Z6}let vU;function Cr(){return(vU??(vU=Fre()))()}let iC;function Ure(){const{performance:e}=ft;if(!e?.now)return[void 0,"none"];const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i<t,o=e.timing?.navigationStart,l=typeof o=="number"?Math.abs(o+n-r):t,f=l<t;return s||f?i<=l?[e.timeOrigin,"timeOrigin"]:[o,"navigationStart"]:[r,"dateNow"]}function Bi(){return iC||(iC=Ure()),iC[0]}function Bre(e){const t=Cr(),n={sid:ci(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Hre(n)};return e&&Ph(n,e),n}function Ph(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Cr(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ci()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function zre(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Ph(e,n)}function Hre(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function av(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=av(r[i],t[i],n-1));return r}function Sa(){return ci()}function mc(){return ci().substring(16)}const $R="_sentrySpan";function wc(e,t){t?ws(e,$R,t):delete e[$R]}function $h(e){return e[$R]}const jre=100;class zo{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Sa(),sampleRand:Math.random()}}clone(){const t=new zo;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,wc(t,$h(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ph(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof zo?n.getScopeData():pa(n)?t:void 0,{tags:i,attributes:s,extra:o,user:a,contexts:l,level:f,fingerprint:d=[],propagationContext:p}=r||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...l},a&&Object.keys(a).length&&(this._user=a),f&&(this._level=f),d.length&&(this._fingerprint=d),p&&(this._propagationContext=p),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,wc(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Sa(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:jre;if(r<=0)return this;const i={timestamp:Gf(),...t,message:t.message?r_(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:$h(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=av(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||ci();if(!this._client)return De&&ne.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r?.event_id||ci();if(!this._client)return De&&ne.warn("No client configured on scope - will not capture message!"),i;const s=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:i},this),i}captureEvent(t,n){const r=n?.event_id||ci();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(De&&ne.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
32h(t=>{t(this)}),this._notifyingListeners=!1)}}function Vre(){return xp("defaultCurrentScope",()=>new zo)}function Gre(){return xp("defaultIsolationScope",()=>new zo)}class qre{constructor(t,n){let r;t?r=t:r=new zo;let i;n?i=n:i=new zo,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return Ap(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Fh(){const e=Lc(),t=ov(e);return t.stack=t.stack||new qre(Vre(),Gre())}function Wre(e){return Fh().withScope(e)}function Yre(e,t){const n=Fh();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function yU(e){return Fh().withScope(()=>e(Fh().getIsolationScope()))}function Xre(){return{withIsolationScope:yU,withScope:Wre,withSetScope:Yre,withSetIsolationScope:(e,t)=>yU(t),getCurrentScope:()=>Fh().getScope(),getIsolationScope:()=>Fh().getIsolationScope()}}function iu(e){const t=ov(e);return t.acs?t.acs:Xre()}function Mt(){const e=Lc();return iu(e).getCurrentScope()}function ii(){const e=Lc();return iu(e).getIsolationScope()}function Ol(){return xp("globalScope",()=>new zo)}function Ts(...e){const t=Lc(),n=iu(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function Kre(...e){const t=Lc(),n=iu(t);if(e.length===2){const[r,i]=e;return r?n.withSetIsolationScope(r,i):n.withIsolationScope(i)}return n.withIsolationScope(e[0])}function Ue(){return Mt().getClient()}function J6(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=t,s={trace_id:n,span_id:i||mc()};return r&&(s.parent_span_id=r),s}const $s="sentry.source",fw="sentry.sample_rate",Q6="sentry.previous_trace_sample_rate",Us="sentry.op",ir="sentry.origin",i_="sentry.idle_span_finish_reason",cv="sentry.measurement_unit",lv="sentry.measurement_value",FR="sentry.custom_span_name",$O="sentry.profile_id",Rp="sentry.exclusive_time",Zre="http.request.method",Jre="url.full",Qre="sentry.link.type",eie=0,dw=1,In=2;function ej(e){if(e<400&&e>=100)return{code:dw};if(e>=400&&e<500)switch(e){case 401:return{code:In,message:"unauthenticated"};case 403:return{code:In,message:"permission_denied"};case 404:return{code:In,message:"not_found"};case 409:return{code:In,message:"already_exists"};case 413:return{code:In,message:"failed_precondition"};case 429:return{code:In,message:"resource_exhausted"};case 499:return{code:In,message:"cancelled"};default:return{code:In,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:In,message:"unimplemented"};case 503:return{code:In,message:"unavailable"};case 504:return{code:In,message:"deadline_exceeded"};default:return{code:In,message:"internal_error"}}return{code:In,message:"internal_error"}}function s_(e,t){e.setAttribute("http.response.status_code",t);const n=ej(t);n.message!=="unknown_error"&&e.setStatus(n)}const tj="_sentryScope",nj="_sentryIsolationScope";function tie(e){try{const t=ft.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function nie(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function rie(e,t,n){e&&(ws(e,nj,tie(n)),ws(e,tj,t))}function y0(e){const t=e;return{scope:t[tj],isolationScope:nie(t[nj])}}const FO="sentry-",iie=/^sentry-/,sie=8192;function UO(e){const t=oie(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,s])=>{if(i.match(iie)){const o=i.slice(FO.length);r[o]=s}return r},{});if(Object.keys(n).length>0)return n}function rj(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${FO}${r}`]=i),n),{});return aie(t)}function oie(e){if(!(!e||!$o(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=bU(n);return Object.entries(r).forEach(([i,s])=>{t[i]=s}),t},{}):bU(e)}function bU(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),i=t.slice(n+1);return[r,i].map(s=>{try{return decodeURIComponent(s.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function aie(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=i===0?s:`${t},${s}`;return o.length>sie?(De&&ne.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const cie=/^o(\d+)\./,lie=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function uie(e){return e==="http"||e==="https"}function Dc(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${o}`}function ij(e){const t=lie.exec(e);if(!t){tu(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",s="",o="",a=""]=t.slice(1);let l="",f=a;const d=f.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),f=d.pop()),f){const p=f.match(/^\d+/);p&&(f=p[0])}return sj({host:s,pass:i,path:l,projectId:f,port:o,protocol:n,publicKey:r})}function sj(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function fie(e){if(!De)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(ne.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?uie(r)?t&&isNaN(parseInt(t,10))?(ne.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ne.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(ne.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function die(e){return e.match(cie)?.[1]}function oj(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=die(n)),r}function aj(e){const t=typeof e=="string"?ij(e):sj(e);if(!(!t||!fie(t)))return t}function Rf(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const cj=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function hie(e){if(!e)return;const t=e.match(cj);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function lj(e,t){const n=hie(e),r=UO(t);if(!n?.traceId)return{traceId:Sa(),sampleRand:Math.random()};const i=pie(n,r);r&&(r.sample_rand=i.toString());const{traceId:s,parentSpanId:o,parentSampled:a}=n;return{traceId:s,parentSpanId:o,sampled:a,dsc:r||{},sampleRand:i}}function uj(e=Sa(),t=mc(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function fj(e=Sa(),t=mc(),n){return`00-${e}-${t}-${n?"01":"00"}`}function pie(e,t){const n=Rf(t?.sample_rand);if(n!==void 0)return n;const r=Rf(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}function gie(e,t){const n=oj(e);return t&&n&&t!==n?(ne.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):(e.getOptions().strictTraceContinuation||!1)&&(t&&!n||!t&&n)?(ne.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1):!0}const dj=0,BO=1;let SU=!1;function mie(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:o,origin:a,links:l}=It(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:o,origin:a,links:l}}function hj(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:It(e).parent_span_id,s=y0(e).scope,o=r?s?.getPropagationContext().propagationSpanId||mc():t;return{parent_span_id:i,span_id:o,trace_id:n}}function pj(e){const{traceId:t,spanId:n}=e.spanContext(),r=su(e);return uj(t,n,r)}function _ie(e){const{traceId:t,spanId:n}=e.spanContext(),r=su(e);return fj(t,n,r)}function gj(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:s})=>({span_id:t,trace_id:n,sampled:r===BO,attributes:s,...i}))}function yf(e){return typeof e=="number"?EU(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?EU(e.getTime()):Cr()}function EU(e){return e>9999999999?e/1e3:e}function It(e){if(yie(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(vie(e)){const{attributes:r,startTime:i,name:s,endTime:o,status:a,links:l}=e,f="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:s,parent_span_id:f,start_timestamp:yf(i),timestamp:yf(o)||void 0,status:mj(a),op:r[Us],origin:r[ir],links:gj(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function vie(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function yie(e){return typeof e.getSpanJSON=="function"}function su(e){const{traceFlags:t}=e.spanContext();return t===BO}function mj(e){if(!(!e||e.code===eie))return e.code===dw?"ok":e.message||"internal_error"}const bf="_sentryChildSpans",UR="_sentryRootSpan";function _j(e,t){const n=e[UR]||e;ws(t,UR,n),e[bf]?e[bf].add(t):ws(e,bf,new Set([t]))}function bie(e,t){e[bf]&&e[bf].delete(t)}function Im(e){const t=new Set;function n(r){if(!t.has(r)&&su(r)){t.add(r);const i=r[bf]?Array.from(r[bf]):[];for(const s of i)n(s)}}return n(e),Array.from(t)}function Hr(e){return e[UR]||e}function Vr(){const e=Lc(),t=iu(e);return t.getActiveSpan?t.getActiveSpan():$h(Mt())}function BR(){SU||(tu(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),SU=!0)}function Sie(e,t){e.updateName(t),e.setAttributes({[$s]:"custom",[FR]:t})}let wU=!1;function vj(){if(wU)return;function e(){const t=Vr(),n=t&&Hr(t);if(n){const r="internal_error";De&&ne.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:In,message:r})}}e.tag="sentry_tracingErrorCallback",wU=!0,z6(e),H6(e)}function ho(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||Ue()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function TU(e){ne.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function b0(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(wie(n)){if(OS(e.description,n))return De&&TU(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?OS(e.description,n.name):!0,i=n.op?e.op&&OS(e.op,n.op):!0;if(r&&i)return De&&TU(e),!0}return!1}function Eie(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const i of e)i.parent_span_id===r&&(i.parent_span_id=n)}function wie(e){return typeof e=="string"||e instanceof RegExp}const hw="production",yj="_frozenDsc";function MS(e,t){ws(e,yj,t)}function bj(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||hw,release:n.release,public_key:r,trace_id:e,org_id:oj(t)};return t.emit("createDsc",i),i}function zO(e,t){const n=t.getPropagationContext();return n.dsc||bj(n.traceId,e)}function Ho(e){const t=Ue();if(!t)return{};const n=Hr(e),r=It(n),i=r.data,s=n.spanContext().traceState,o=s?.get("sentry.sample_rate")??i[fw]??i[Q6];
32function a(v){return(typeof o=="number"||typeof o=="string")&&(v.sample_rate=`${o}`),v}const l=n[yj];if(l)return a(l);const f=s?.get("sentry.dsc"),d=f&&UO(f);if(d)return a(d);const p=bj(e.spanContext().traceId,t),m=i[$s],_=r.description;return m!=="url"&&_&&(p.transaction=_),ho()&&(p.sampled=String(su(n)),p.sample_rand=s?.get("sentry.sample_rand")??y0(n).scope?.getPropagationContext().sampleRand.toString()),a(p),t.emit("createDsc",p,n),p}function Tie(e){const t=Ho(e);return rj(t)}class Tc{constructor(t={}){this._traceId=t.traceId||Sa(),this._spanId=t.spanId||mc()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:dj}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Ls(e,t=100,n=1/0){try{return zR("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Sj(e,t=3,n=100*1024){const r=Ls(e,t);return Rie(r)>n?Sj(e,t-1,n):r}function zR(e,t,n=1/0,r=1/0,i=kie()){const[s,o]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=xie(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return a.replace("object ","");if(s(t))return"[Circular ~]";const f=t;if(f&&typeof f.toJSON=="function")try{const _=f.toJSON();return zR("",_,l-1,r,i)}catch{}const d=Array.isArray(t)?[]:{};let p=0;const m=X6(t);for(const _ in m){if(!Object.prototype.hasOwnProperty.call(m,_))continue;if(p>=r){d[_]="[MaxProperties ~]";break}const v=m[_];d[_]=zR(_,v,l-1,r,i),p++}return o(t),d}function xie(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(G6(t))return B6(t);if(Ire(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${bc(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Cie(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Cie(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function Aie(e){return~-encodeURI(e).split(/%..|./).length}function Rie(e){return Aie(JSON.stringify(e))}function kie(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function jo(e,t=[]){return[e,t]}function Iie(e,t){const[n,r]=e;return[n,[...r,t]]}function kf(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function xU(e,t){return kf(e,(n,r)=>t.includes(r))}function S0(e){const t=ov(ft);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Oie(e){const t=ov(ft);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function E0(e){const[t,n]=e;let r=JSON.stringify(t);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[S0(r),s]:r.push(typeof s=="string"?S0(s):s)}for(const s of n){const[o,a]=s;if(i(`
33${JSON.stringify(o)}
34`),typeof a=="string"||a instanceof Uint8Array)i(a);else{let l;try{l=JSON.stringify(a)}catch{l=JSON.stringify(Ls(a))}i(l)}}return typeof r=="string"?r:Mie(r)}function Mie(e){const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Nie(e){let t=typeof e=="string"?S0(e):e;function n(o){const a=t.subarray(0,o);return t=t.subarray(o+1),a}function r(){let o=t.indexOf(10);return o<0&&(o=t.length),JSON.parse(Oie(n(o)))}const i=r(),s=[];for(;t.length;){const o=r(),a=typeof o.length=="number"?o.length:void 0;s.push([o,a?n(a):r()])}return[i,s]}function Lie(e){return[{type:"span"},e]}
34function Die(e){const t=typeof e.data=="string"?S0(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Pie={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function CU(e){return Pie[e]}function pw(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ej(e,t,n,r){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Dc(r)},...i&&{trace:i}}}function $ie(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Fie(e,t,n,r){const i=pw(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Dc(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return jo(s,[o])}function Uie(e,t,n,r){const i=pw(n),s=e.type&&e.type!=="replay_event"?e.type:"event";$ie(e,n?.sdk);const o=Ej(e,i,r,t);return delete e.sdkProcessingMetadata,jo(o,[[{type:s},e]])}function Bie(e,t){function n(_){return!!_.trace_id&&!!_.public_key}const r=Ho(e[0]),i=t?.getDsn(),s=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!s&&i&&{dsn:Dc(i)}},{beforeSendSpan:a,ignoreSpans:l}=t?.getOptions()||{},f=l?.length?e.filter(_=>!b0(It(_),l)):e,d=e.length-f.length;d&&t?.recordDroppedEvent("before_send","span",d);const p=a?_=>{const v=It(_),E=a(v);return E||(BR(),v)}:It,m=[];for(const _ of f){const v=p(_);v&&m.push(Lie(v))}return jo(o,m)}function zie(e){if(!De)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=It(e),{spanId:i}=e.spanContext(),s=su(e),o=Hr(e),a=o===e,l=`[Tracing] Starting ${s?"sampled":"unsampled"} ${a?"root ":""}span`,f=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];
34if(r&&f.push(`parent ID: ${r}`),!a){const{op:d,description:p}=It(o);f.push(`root ID: ${o.spanContext().spanId}`),d&&f.push(`root op: ${d}`),p&&f.push(`root description: ${p}`)}ne.log(`${l}
35  ${f.join(`
36  `)}`)}function Hie(e){if(!De)return;const{description:t="< unknown name >",op:n="< unknown op >"}=It(e),{spanId:r}=e.spanContext(),s=Hr(e)===e,o=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${t}" with ID ${r}`;ne.log(o)}function wj(e,t,n,r=Vr()){const i=r&&Hr(r);i&&(De&&ne.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[lv]:t,[cv]:n}))}function AU(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[cv],s=r[lv];typeof i=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:i})}),t}const RU=1e3;class gw{constructor(t={}){this._traceId=t.traceId||Sa(),this._spanId=t.spanId||mc(),this._startTime=t.startTimestamp||Cr(),this._links=t.links,this._attributes={},this.setAttributes({[ir]:"manual",[Us]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?BO:dj}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=yf(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute($s,"custom"),this}end(t){this._endTime||(this._endTime=yf(t),Hie(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Us],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:mj(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[ir],profile_id:this._attributes[$O],exclusive_time:this._attributes[Rp],measurements:AU(this._events),is_segment:this._isStandaloneSpan&&Hr(this)===this||void 0,segment_id:this._isStandaloneSpan?Hr(this).spanContext().spanId:void 0,links:gj(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){De&&ne.log("[Tracing] Adding an event to span:",t);const i=kU(n)?n:r||Cr(),s=kU(n)?{}:n||{},o={name:t,time:yf(i),attributes:s};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Ue();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Hr(this)))return;if(this._isStandaloneSpan){this._sampled?Vie(Bie([this],t)):(De&&ne.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(y0(this).scope||Mt()).captureEvent(r)}_convertSpanToTransaction(){if(!IU(It(this)))return;this._name||(De&&ne.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=y0(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const s=Im(this).filter(d=>d!==this&&!jie(d)).map(d=>It(d)).filter(IU),o=this._attributes[$s];
36delete this._attributes[FR],s.forEach(d=>{delete d.data[FR]});const a={contexts:{trace:mie(this)},spans:s.length>RU?s.sort((d,p)=>d.start_timestamp-p.start_timestamp).slice(0,RU):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Ho(this)},request:r,...o&&{transaction_info:{source:o}}},l=AU(this._events);return l&&Object.keys(l).length&&(De&&ne.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),a.measurements=l),a}}function kU(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function IU(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function jie(e){return e instanceof gw&&e.isStandaloneSpan()}function Vie(e){const t=Ue();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function mw(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(s){throw t(s),n(),s}return Gie(i,t,n,r)}function Gie(e,t,n,r){return Ap(e)?e.then(i=>(n(),r(i),i),i=>{throw t(i),n(),i}):(n(),r(e),e)}function qie(e,t,n){if(!ho(e))return[!1];let r,i;typeof e.tracesSampler=="function"?(i=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?i=t.parentSampled:typeof e.tracesSampleRate<"u"&&(i=e.tracesSampleRate,r=!0);const s=Rf(i);if(s===void 0)return De&&ne.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!s)return De&&ne.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s,r];const o=n<s;return o||De&&ne.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[o,s,r]}const w0="__SENTRY_SUPPRESS_TRACING__";function qf(e,t){const n=fv();if(n.startSpan)return n.startSpan(e,t);const r=jO(e),{forceTransaction:i,parentSpan:s,scope:o}=e,a=o?.clone();return Ts(a,()=>Cj(s)(()=>{const f=Mt(),d=VO(f,s),m=e.onlyIfParent&&!d?new Tc:HO({parentSpan:d,spanArguments:r,forceTransaction:i,scope:f});return wc(f,m),mw(()=>t(m),()=>{const{status:_}=It(m);m.isRecording()&&(!_||_==="ok")&&m.setStatus({code:In,message:"internal_error"})},()=>{m.end()})}))}function o_(e,t){const n=fv();if(n.startSpanManual)return n.startSpanManual(e,t);const r=jO(e),{forceTransaction:i,parentSpan:s,scope:o}=e,a=o?.clone();return Ts(a,()=>Cj(s)(()=>{const f=Mt(),d=VO(f,s),m=e.onlyIfParent&&!d?new Tc:HO({parentSpan:d,spanArguments:r,forceTransaction:i,scope:f});return wc(f,m),mw(()=>t(m,()=>m.end()),()=>{const{status:_}=It(m);m.isRecording()&&(!_||_==="ok")&&m.setStatus({code:In,message:"internal_error"})})}))}function Wf(e){const t=fv();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=jO(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?o=>Ts(e.scope,o):i!==void 0?o=>uv(i,o):o=>o())(()=>{const o=Mt(),a=VO(o,i);return e.onlyIfParent&&!a?new Tc:HO({parentSpan:a,spanArguments:n,forceTransaction:r,scope:o})})}const Wie=(e,t)=>{const n=Lc(),r=iu(n);if(r.continueTrace)return r.continueTrace(e,t);const{sentryTrace:i,baggage:s}=e,o=Ue(),a=UO(s);return o&&!gie(o,a?.org_id)?xj(t):Ts(l=>{const f=lj(i,s);return l.setPropagationContext(f),t()})};function uv(e,t){const n=fv();return n.withActiveSpan?n.withActiveSpan(e,t):Ts(r=>(wc(r,e||void 0),t(r)))}function Tj(e){const t=fv();return t.suppressTracing?t.suppressTracing(e):Ts(n=>{n.setSDKProcessingMetadata({[w0]:!0});const r=e();return n.setSDKProcessingMetadata({[w0]:void 0}),r})}function xj(e){return Ts(t=>(t.setPropagationContext({traceId:Sa(),sampleRand:Math.random()}),De&&ne.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),uv(null,e)))}function HO({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}
36){if(!ho()){const o=new Tc;if(n||!e){const a={sampled:"false",sample_rate:"0",transaction:t.name,...Ho(o)};MS(o,a)}return o}const i=ii();let s;if(e&&!n)s=Yie(e,r,t),_j(e,s);else if(e){const o=Ho(e),{traceId:a,spanId:l}=e.spanContext(),f=su(e);s=OU({traceId:a,parentSpanId:l,...t},r,f),MS(s,o)}else{const{traceId:o,dsc:a,parentSpanId:l,sampled:f}={...i.getPropagationContext(),...r.getPropagationContext()};s=OU({traceId:o,parentSpanId:l,...t},r,f),a&&MS(s,a)}return zie(s),rie(s,r,i),s}function jO(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=yf(e.startTime),delete r.startTime,r}return n}function fv(){const e=Lc();return iu(e)}function OU(e,t,n){const r=Ue(),i=r?.getOptions()||{},{name:s=""}=e,o={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};r?.emit("beforeSampling",o,{decision:!1});const a=o.parentSampled??n,l=o.spanAttributes,f=t.getPropagationContext(),[d,p,m]=t.getScopeData().sdkProcessingMetadata[w0]?[!1]:qie(i,{name:s,parentSampled:a,attributes:l,parentSampleRate:Rf(f.dsc?.sample_rate)},f.sampleRand),_=new gw({...e,attributes:{[$s]:"custom",[fw]:p!==void 0&&m?p:void 0,...l},sampled:d});return!d&&r&&(De&&ne.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",_),_}function Yie(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),s=t.getScopeData().sdkProcessingMetadata[w0]?!1:su(e),o=s?new gw({...n,parentSpanId:r,traceId:i,sampled:s}):new Tc({traceId:i});_j(e,o);const a=Ue();return a&&(a.emit("spanStart",o),n.endTimestamp&&a.emit("spanEnd",o)),o}function VO(e,t){if(t)return t;if(t===null)return;const n=$h(e);if(!n)return;const r=Ue();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Hr(n):n}function Cj(e){return e!==void 0?t=>uv(e,t):t=>t()}const NS={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Xie="heartbeatFailed",Kie="idleTimeout",Zie="finalTimeout",Jie="externalFinish";function Aj(e,t={}){const n=new Map;let r=!1,i,s=Jie,o=!t.disableAutoFinish;const a=[],{idleTimeout:l=NS.idleTimeout,finalTimeout:f=NS.finalTimeout,childSpanTimeout:d=NS.childSpanTimeout,beforeSpanEnd:p,trimIdleSpanEndTimestamp:m=!0}=t,_=Ue();if(!_||!ho()){const I=new Tc,$={sample_rate:"0",sampled:"false",...Ho(I)};return MS(I,$),I}const v=Mt(),E=Vr(),b=Qie(e);b.end=new Proxy(b.end,{apply(I,$,Q){if(p&&p(b),$ instanceof Tc)return;const[V,...N]=Q,U=V||Cr(),K=yf(U),j=Im(b).filter(ce=>ce!==b),fe=It(b);if(!j.length||!m)return M(K),Reflect.apply(I,$,[K,...N]);const P=_.getOptions().ignoreSpans,ee=j?.reduce((ce,L)=>{const J=It(L);return!J.timestamp||P&&b0(J,P)?ce:ce?Math.max(ce,J.timestamp):J.timestamp},void 0),W=fe.start_timestamp,de=Math.min(W?W+f/1e3:1/0,Math.max(W||-1/0,Math.min(K,ee||1/0)));return M(de),Reflect.apply(I,$,[de,...N])}});function w(){i&&(clearTimeout(i),i=void 0)}function T(I){w(),i=setTimeout(()=>{!r&&n.size===0&&o&&(s=Kie,b.end(I))},l)}function R(I){i=setTimeout(()=>{!r&&o&&(s=Xie,b.end(I))},d)}function C(I){w(),n.set(I,!0);const $=Cr();R($+d/1e3)}
36function k(I){if(n.has(I)&&n.delete(I),n.size===0){const $=Cr();T($+l/1e3)}}function M(I){r=!0,n.clear(),a.forEach(j=>j()),wc(v,E);const $=It(b),{start_timestamp:Q}=$;if(!Q)return;$.data[i_]||b.setAttribute(i_,s);const N=$.status;(!N||N==="unknown")&&b.setStatus({code:dw}),ne.log(`[Tracing] Idle span "${$.op}" finished`);const U=Im(b).filter(j=>j!==b);let K=0;U.forEach(j=>{j.isRecording()&&(j.setStatus({code:In,message:"cancelled"}),j.end(I),De&&ne.log("[Tracing] Cancelling span since span ended early",JSON.stringify(j,void 0,2)));const fe=It(j),{timestamp:P=0,start_timestamp:ee=0}=fe,W=ee<=I,de=(f+l)/1e3,ce=P-ee<=de;if(De){const L=JSON.stringify(j,void 0,2);W?ce||ne.log("[Tracing] Discarding span since it finished after idle span final timeout",L):ne.log("[Tracing] Discarding span since it happened after idle span was finished",L)}(!ce||!W)&&(bie(b,j),K++)}),K>0&&b.setAttribute("sentry.idle_span_discarded_spans",K)}return a.push(_.on("spanStart",I=>{if(r||I===b||It(I).timestamp||I instanceof gw&&I.isStandaloneSpan())return;Im(b).includes(I)&&C(I.spanContext().spanId)})),a.push(_.on("spanEnd",I=>{r||k(I.spanContext().spanId)})),a.push(_.on("idleSpanEnableAutoFinish",I=>{I===b&&(o=!0,T(),n.size&&R())})),t.disableAutoFinish||T(),setTimeout(()=>{r||(b.setStatus({code:In,message:"deadline_exceeded"}),s=Zie,b.end())},f),b}function Qie(e){const t=Wf(e);return wc(Mt(),t),De&&ne.log("[Tracing] Started span is an idle span"),t}const sC=0,MU=1,NU=2;function _w(e){return new a_(t=>{t(e)})}function GO(e){return new a_((t,n)=>{n(e)})}class a_{constructor(t){this._state=sC,this._handlers=[],this._runExecutor(t)}then(t,n){return new a_((r,i)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(o){i(o)}},s=>{if(!n)i(s);else try{r(n(s))}catch(o){i(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new a_((n,r)=>{let i,s;return this.then(o=>{s=!1,i=o,t&&t()},o=>{s=!0,i=o,t&&t()}).then(()=>{if(s){r(i);return}n(i)})})}_executeHandlers(){if(this._state===sC)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===MU&&n[1](this._value),this._state===NU&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,o)=>{if(this._state===sC){if(Ap(o)){o.then(r,i);return}this._state=s,this._value=o,this._executeHandlers()}},r=s=>{n(MU,s)},i=s=>{n(NU,s)};try{t(r,i)}catch(s){i(s)}}}function ese(e,t,n,r=0){try{const i=HR(t,n,e,r);return Ap(i)?i:_w(i)}catch(i){return GO(i)}}function HR(e,t,n,r){const i=n[r];if(!e||!i)return e;const s=i({...e},t);return De&&s===null&&ne.log(`Event processor "${i.id||"?"}" dropped event`),Ap(s)?s.then(o=>HR(o,t,n,r+1)):HR(s,t,n,r+1)}function tse(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=t;nse(e,t),r&&sse(e,r),ose(e,n),rse(e,i),ise(e,s)}function Uh(e,t){const{extra:n,tags:r,user:i,contexts:s,level:o,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:f,eventProcessors:d,attachments:p,propagationContext:m,transactionName:_,span:v}=t;sb(e,"extra",n),sb(e,"tags",r),sb(e,"user",i),sb(e,"contexts",s),e.sdkProcessingMetadata=av(e.sdkProcessingMetadata,a,2),o&&(e.level=o),_&&(e.transactionName=_),v&&(e.span=v),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),f.length&&(e.fingerprint=[...e.fingerprint,...f]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...m}}function sb(e,t,n){e[t]=av(e[t],n,1)}function nse(e,t){const{extra:n,tags:r,user:i,contexts:s,level:o,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),o&&(e.level=o),a&&e.type!=="transaction"&&(e.transaction=a)}function rse(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function ise(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function sse(e,t){e.contexts={trace:hj(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ho(t),...e.sdkProcessingMetadata};const n=Hr(t),r=It(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function ose(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let Uu,LU,DU,ul;function Rj(e){const t=ft._sentryDebugIds,n=ft._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(ul&&r.length===LU&&i.length===DU)return ul;LU=r.length,DU=i.length,ul={},Uu||(Uu={});const s=(o,a)=>{for(const l of o){const f=a[l],d=Uu?.[l];
36if(d&&ul&&f)ul[d[0]]=f,Uu&&(Uu[l]=[d[0],f]);else if(f){const p=e(l);for(let m=p.length-1;m>=0;m--){const v=p[m]?.filename;if(v&&ul&&Uu){ul[v]=f,Uu[l]=[v,f];break}}}}};return t&&s(r,t),n&&s(i,n),ul}function ase(e,t){const n=Rj(e);if(!n)return[];const r=[];for(const i of t)i&&n[i]&&r.push({type:"sourcemap",code_file:i,debug_id:n[i]});return r}function kj(e,t,n,r,i,s){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,l={...t,event_id:t.event_id||n.event_id||ci(),timestamp:t.timestamp||Gf()},f=n.integrations||e.integrations.map(b=>b.name);cse(l,e),fse(l,f),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&lse(l,e.stackParser);const d=hse(r,n.captureContext);n.mechanism&&Ec(l,n.mechanism);const p=i?i.getEventProcessors():[],m=Ol().getScopeData();if(s){const b=s.getScopeData();Uh(m,b)}if(d){const b=d.getScopeData();Uh(m,b)}const _=[...n.attachments||[],...m.attachments];_.length&&(n.attachments=_),tse(l,m);const v=[...p,...m.eventProcessors];return ese(v,l,n).then(b=>(b&&use(b),typeof o=="number"&&o>0?dse(b,o,a):b))}function cse(e,t){const{environment:n,release:r,dist:i,maxValueLength:s}=t;e.environment=e.environment||n||hw,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const o=e.request;o?.url&&s&&(o.url=r_(o.url,s)),s&&e.exception?.values?.forEach(a=>{a.value&&(a.value=r_(a.value,s))})}function lse(e,t){const n=Rj(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=n[i.filename])})})}function use(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function fse(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function dse(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Ls(i.data,t,n)}}))},...e.user&&{user:Ls(e.user,t,n)},...e.contexts&&{contexts:Ls(e.contexts,t,n)},...e.extra&&{extra:Ls(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ls(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>({...i,...i.data&&{data:Ls(i.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Ls(e.contexts.flags,3,n)),r}function hse(e,t){if(!t)return e;const n=e?e.clone():new zo;return n.update(t),n}function pse(e){if(e)return gse(e)?{captureContext:e}:_se(e)?{captureContext:e}:e}function gse(e){return e instanceof zo||typeof e=="function"}const mse=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function _se(e){return Object.keys(e).some(t=>mse.includes(t))}function li(e,t){return Mt().captureException(e,pse(t))}function Ij(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return Mt().captureMessage(e,n,r)}function kp(e,t){return Mt().captureEvent(e,t)}function Oj(e,t){ii().setContext(e,t)}function vse(e){ii().setExtras(e)}function yse(e,t){ii().setExtra(e,t)}function bse(e){ii().setTags(e)}function Sse(e,t){ii().setTag(e,t)}function Ese(e){ii().setUser(e)}function Mj(){return ii().lastEventId()}async function wse(e){const t=Ue();return t?t.flush(e):(De&&ne.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Tse(e){const t=Ue();return t?t.close(e):(De&&ne.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function xse(){return!!Ue()}function Nj(){const e=Ue();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function Lj(e){ii().addEventProcessor(e)}function jR(e){const t=ii(),n=Mt(),{userAgent:r}=ft.navigator||{},i=Bre({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),s=t.getSession();return s?.status==="ok"&&Ph(s,{status:"exited"}),qO(),t.setSession(i),i}function qO(){const e=ii(),n=Mt().getSession()||e.getSession();n&&zre(n),Dj(),e.setSession()}function Dj(){const e=ii(),t=Ue(),n=e.getSession();n&&t&&t.captureSession(n)}function VR(e=!1){if(e){qO();return}Dj()}const Cse="7";function Pj(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Ase(e){return`${Pj(e)}${e.projectId}/envelope/`}function Rse(e,t){const n={sentry_version:Cse};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function $j(e,t,n){return t||`${Ase(e)}?${Rse(e,n)}`}function kse(e,t){const n=aj(e);if(!n)return"";const r=`${Pj(n)}embed/error-page/`;let i=`dsn=${Dc(n)}`;for(const s in t)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const o=t.user;if(!o)continue;o.name&&(i+=`&name=${encodeURIComponent(o.name)}`),o.email&&(i+=`&email=${encodeURIComponent(o.email)}`)}else i+=`&${encodeURIComponent(s)}=${encodeURIComponent(t[s])}`;return`${r}?${i}`}const PU=[];function Ise(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];
36i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function Ose(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;return Ise(r)}function Mse(e,t){const n={};return t.forEach(r=>{r&&Fj(e,r,n)}),n}function $U(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Fj(e,t,n){if(n[t.name]){De&&ne.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!PU.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),PU.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,s)=>r(i,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((s,o)=>r(s,o,e),{id:t.name});e.addEventProcessor(i)}De&&ne.log(`Integration installed: ${t.name}`)}function GR(e){const t=Ue();if(!t){De&&ne.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function Uj(e,t){return t?Ts(t,()=>{const n=Vr(),r=n?hj(n):J6(t);return[n?Ho(n):zO(e,t),r]}):[void 0,void 0]}const Nse={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function Lse(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function Dse(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Dc(r)),jo(i,[Lse(e)])}const Pse=100;function $se(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}function Xo(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function Fse(e,t){const n=YO(),r=Bj(e);r===void 0?n.set(e,[t]):r.length>=Pse?(WO(e,r),n.set(e,[t])):n.set(e,[...r,t])}function T0(e,t=Mt(),n=Fse){const r=t?.getClient()??Ue();if(!r){De&&ne.warn("No client available to capture log.");return}const{release:i,environment:s,enableLogs:o=!1,beforeSendLog:a}=r.getOptions();if(!o){De&&ne.warn("logging option not enabled, log will not be captured.");return}const[,l]=Uj(r,t),f={...e.attributes},{user:{id:d,email:p,username:m}}=Use(t);Xo(f,"user.id",d,!1),Xo(f,"user.email",p,!1),Xo(f,"user.name",m,!1),Xo(f,"sentry.release",i),Xo(f,"sentry.environment",s);const{name:_,version:v}=r.getSdkMetadata()?.sdk??{};Xo(f,"sentry.sdk.name",_),Xo(f,"sentry.sdk.version",v);const E=r.getIntegrationByName("Replay"),b=E?.getReplayId(!0);Xo(f,"sentry.replay_id",b),b&&E?.getRecordingMode()==="buffer"&&Xo(f,"sentry._internal.replay_is_buffering",!0);const w=e.message;if(lw(w)){const{__sentry_template_string__:V,__sentry_template_values__:N=[]}=w;N?.length&&(f["sentry.message.template"]=V),N.forEach((U,K)=>{f[`sentry.message.parameter.${K}`]=U})}const T=$h(t);Xo(f,"sentry.trace.parent_span_id",T?.spanContext().spanId);const R={...e,attributes:f};r.emit("beforeCaptureLog",R);const C=a?tu(()=>a(R)):R;if(!C){r.recordDroppedEvent("before_send","log_item",1),De&&ne.warn("beforeSendLog returned null, log will not be captured.");return}const{level:k,message:M,attributes:I={},severityNumber:$}=C,Q={timestamp:Cr(),level:k,body:M,trace_id:l?.trace_id,severity_number:$??Nse[k],attributes:Object.keys(I).reduce((V,N)=>(V[N]=$se(I[N]),V),{})};n(r,Q),r.emit("afterCaptureLog",C)}function WO(e,t){const n=t??Bj(e)??[];if(n.length===0)return;const r=e.getOptions(),i=Dse(n,r._metadata,r.tunnel,e.getDsn());YO().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function Bj(e){return YO().get(e)}function Use(e){const t=Ol().getScopeData();return Uh(t,ii().getScopeData()),Uh(t,e.getScopeData()),t}function YO(){return xp("clientToLogBufferMap",()=>new WeakMap)}function Bse(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function zse(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Dc(r)),jo(i,[Bse(e)])}const Hse=1e3;function jse(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}function Xa(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function Vse(e,t){const n=KO(),r=zj(e);r===void 0?n.set(e,[t]):r.length>=Hse?(XO(e,r),n.set(e,[t])):n.set(e,[...r,t])}function Gse(e,t,n){const{release:r,environment:i}=t.getOptions(),s={...e.attributes},{user:{id:o,email:a,username:l}}=Yse(n);Xa(s,"user.id",o,!1),Xa(s,"user.email",a,!1),Xa(s,"user.name",l,!1),Xa(s,"sentry.release",r),Xa(s,"sentry.environment",i);const{name:f,version:d}=t.getSdkMetadata()?.sdk??{};Xa(s,"sentry.sdk.name",f),Xa(s,"sentry.sdk.version",d);const p=t.getIntegrationByName("Replay"),m=p?.getReplayId(!0);return Xa(s,"sentry.replay_id",m),m&&p?.getRecordingMode()==="buffer"&&Xa(s,"sentry._internal.replay_is_buffering",!0),{...e,attributes:s}}function qse(e,t,n){const r={};for(const l in e.attributes)e.attributes[l]!==void 0&&(r[l]=jse(e.attributes[l]));const[,i]=Uj(t,n),s=$h(n),o=s?s.spanContext().traceId:i?.trace_id,a=s?s.spanContext().spanId:void 0;return{timestamp:Cr(),trace_id:o??"",span_id:a,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:r}}function Wse(e,t){const n=t?.scope??Mt(),r=t?.captureSerializedMetric??Vse,i=n?.getClient()??Ue();if(!i){De&&ne.warn("No client available to capture metric.");return}const{_experiments:s,enableMetrics:o,beforeSendMetric:a}=i.getOptions();if(!(o??s?.enableMetrics??!0)){De&&ne.warn("metrics option not enabled, metric will not be captured.");return}const f=Gse(e,i,n);i.emit("processMetric",f);const d=a||s?.beforeSendMetric,p=d?d(f):f;if(!p){De&&ne.log("`beforeSendMetric` returned `null`, will not send metric.");return}const m=qse(p,i,n);De&&ne.log("[Metric]",m),r(i,m),i.emit("afterCaptureMetric",p)}function XO(e,t){const n=t??zj(e)??[];if(n.length===0)return;const r=e.getOptions(),i=zse(n,r._metadata,r.tunnel,e.getDsn());KO().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function zj(e){return KO().get(e)}function Yse(e){const t=Ol().getScopeData();return Uh(t,ii().getScopeData()),Uh(t,e.getScopeData()),t}function KO(){return xp("clientToMetricBufferMap",()=>new WeakMap)}const ZO=Symbol.for("SentryBufferFullError");function JO(e=100){const t=new Set;function n(){return t.size<e}function r(o){t.delete(o)}function i(o){if(!n())return GO(ZO);const a=o();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function s(o){if(!t.size)return _w(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return a;const l=[a,new Promise(f=>setTimeout(()=>f(!1),o))];return Promise.race(l)}return{get $(){return Array.from(t)},add:i,drain:s}}const Xse=60*1e3;function Hj(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Xse:r-t}function Kse(e,t){return e[t]||e.all||0}function jj(e,t,n=Date.now()){return Kse(e,t)>n}function Vj(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},s=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];
36if(s)for(const a of s.trim().split(",")){const[l,f,,,d]=a.split(":",5),p=parseInt(l,10),m=(isNaN(p)?60:p)*1e3;if(!f)i.all=r+m;else for(const _ of f.split(";"))_==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(i[_]=r+m):i[_]=r+m}else o?i.all=r+Hj(o,r):t===429&&(i.all=r+60*1e3);return i}const Gj=64;function qj(e,t,n=JO(e.bufferSize||Gj)){let r={};const i=o=>n.drain(o);function s(o){const a=[];if(kf(o,(p,m)=>{const _=CU(m);jj(r,_)?e.recordDroppedEvent("ratelimit_backoff",_):a.push(p)}),a.length===0)return Promise.resolve({});const l=jo(o[0],a),f=p=>{kf(l,(m,_)=>{e.recordDroppedEvent(p,CU(_))})},d=()=>t({body:E0(l)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&De&&ne.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),r=Vj(r,p),p),p=>{throw f("network_error"),De&&ne.error("Encountered error running transport request:",p),p});return n.add(d).then(p=>p,p=>{if(p===ZO)return De&&ne.error("Skipped sending event because buffer is full."),f("queue_overflow"),Promise.resolve({});throw p})}return{send:s,flush:i}}function Zse(e,t,n){const r=[{type:"client_report"},{timestamp:Gf(),discarded_events:e}];return jo(t?{dsn:t}:{},[r])}function Wj(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Jse(e){const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:s,data:o,op:a}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:o?.[$O],exclusive_time:o?.[Rp],measurements:e.measurements,is_segment:!0}}function Qse(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[$O]:e.profile_id},...e.exclusive_time&&{[Rp]:e.exclusive_time}}}},measurements:e.measurements}}const FU="Not capturing exception because it's already been captured.",UU="Discarded session because of missing or non-string release",Yj=Symbol.for("SentryInternalError"),Xj=Symbol.for("SentryDoNotSendEventError"),eoe=5e3;function LS(e){return{message:e,[Yj]:!0}}function oC(e){return{message:e,[Xj]:!0}}function BU(e){return!!e&&typeof e=="object"&&Yj in e}function zU(e){return!!e&&typeof e=="object"&&Xj in e}function HU(e,t,n,r,i){let s=0,o,a=!1;e.on(n,()=>{s=0,clearTimeout(o),a=!1}),e.on(t,l=>{s+=r(l),s>=8e5?i(e):a||(a=!0,o=setTimeout(()=>{i(e)},eoe))}),e.on("flush",()=>{i(e)})}class toe{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=JO(t.transportOptions?.bufferSize??Gj),t.dsn?this._dsn=aj(t.dsn):De&&ne.warn("No DSN provided, client will not send events."),this._dsn){const r=$j(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&HU(this,"afterCaptureLog","flushLogs",soe,WO),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&HU(this,"afterCaptureMetric","flushMetrics",ioe,XO)}captureException(t,n,r){const i=ci();if(_U(t))return De&&ne.log(FU),i;const s={event_id:i,...n};return this._process(()=>this.eventFromException(t,s).then(o=>this._captureEvent(o,s,r)).then(o=>o),"error"),s.event_id}captureMessage(t,n,r,i){const s={event_id:ci(),...r},o=lw(t)?t:String(t),a=jl(t),l=a?this.eventFromMessage(o,n,s):this.eventFromException(t,s);return this._process(()=>l.then(f=>this._captureEvent(f,s,i)),a?"unknown":"error"),s.event_id}captureEvent(t,n,r){const i=ci();if(n?.originalException&&_U(n.originalException))return De&&ne.log(FU),i;const s={event_id:i,...n},o=t.sdkProcessingMetadata||{},a=o.capturedSpanScope,l=o.capturedSpanIsolationScope,f=jU(t.type);return this._process(()=>this._captureEvent(t,s,a||r,l),f),s.event_id}captureSession(t){this.sendSession(t),Ph(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;
36this.emit("flush");const r=await this._isClientDoneProcessing(t),i=await n.flush(t);return r&&i}async close(t){const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Fj(this,t,this._integrations),n||$U(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Uie(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=Iie(r,Die(i));this.sendEnvelope(r).then(i=>this.emit("afterSendEvent",t,i))}sendSession(t){const{release:n,environment:r=hw}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n){De&&ne.warn(UU);return}s.release=s.release||n,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!n){De&&ne.warn(UU);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const i=Fie(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const i=`${t}:${n}`;De&&ne.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,i=(...s)=>n(...s);return r.add(i),()=>{r.delete(i)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return De&&ne.error("Error while sending envelope:",n),{}}return De&&ne.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Mse(this,t),$U(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",i=!1;const s=n.exception?.values;if(s){i=!0,r=!1;for(const l of s)if(l.mechanism?.handled===!1){r=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(Ph(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i){const s=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o?.length&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),kj(s,t,n,r,this,i).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:J6(r),...a.contexts};const l=zO(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:l,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=Mt(),i=ii()){return De&&qR(t)&&ne.log(`Captured error event \`${Wj(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,i).then(s=>s.event_id,s=>{De&&(zU(s)?ne.log(s.message):BU(s)?ne.warn(s.message):ne.warn(s))})}_processEvent(t,n,r,i){const s=this.getOptions(),{sampleRate:o}=s,a=Kj(t),l=qR(t),d=`before send for type \`${t.type||"error"}\``,p=typeof o>"u"?void 0:Rf(o);if(l&&typeof p=="number"&&Math.random()>p)return this.recordDroppedEvent("sample_rate","error"),GO(oC(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const m=jU(t.type);return this._prepareEvent(t,n,r,i).then(_=>{if(_===null)throw this.recordDroppedEvent("event_processor",m),oC("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return _;const E=roe(this,s,_,n);return noe(E,d)}).then(_=>{if(_===null){if(this.recordDroppedEvent("before_send",m),a){const w=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",w)}throw oC(`${d} returned \`null\`, will not send event.`)}const v=r.getSession()||i.getSession();if(l&&v&&this._updateSessionFromEvent(v,_),a){const b=_.sdkProcessingMetadata?.spanCountBeforeProcessing||0,w=_.spans?_.spans.length:0,T=b-w;T>0&&this.recordDroppedEvent("before_send","span",T)}const E=_.transaction_info;if(a&&E&&_.transaction!==t.transaction){const b="custom";_.transaction_info={...E,source:b}}return this.sendEvent(_,n),_}).then(null,_=>{throw zU(_)||BU(_)?_:(this.captureException(_,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:_}),LS(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
37Reason: ${_}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===ZO&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[i,s]=n.split(":");return{reason:i,category:s,quantity:r}})}_flushOutcomes(){De&&ne.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){De&&ne.log("No outcomes to send");return}if(!this._dsn){De&&ne.log("No dsn provided, will not send outcomes");return}De&&ne.log("Sending outcomes:",t);const n=Zse(t,this._options.tunnel&&Dc(this._dsn));this.sendEnvelope(n)}}function jU(e){return e==="replay_event"?"replay":e||"error"}function noe(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ap(e))return e.then(r=>{if(!pa(r)&&r!==null)throw LS(n);return r},r=>{throw LS(`${t} rejected with ${r}`)});if(!pa(e)&&e!==null)throw LS(n);return e}function roe(e,t,n,r){const{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:o,ignoreSpans:a}=t;let l=n;if(qR(l)&&i)return i(l,r);if(Kj(l)){if(o||a){const f=Jse(l);if(a?.length&&b0(f,a))return null;if(o){const d=o(f);d?l=av(n,Qse(d)):BR()}if(l.spans){const d=[],p=l.spans;for(const _ of p){if(a?.length&&b0(_,a)){Eie(p,_);continue}if(o){const v=o(_);v?d.push(v):(BR(),d.push(_))}else d.push(_)}const m=l.spans.length-d.length;m&&e.recordDroppedEvent("before_send","span",m),l.spans=d}}if(s){if(l.spans){const f=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:f}}return s(l,r)}}return l}function qR(e){return e.type===void 0}function Kj(e){return e.type==="transaction"}function ioe(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Zj(e.attributes)}function soe(e){let t=0;return e.message&&(t+=e.message.length*2),t+Zj(e.attributes)}function Zj(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*VU(n[0]):jl(n)?t+=VU(n):t+=100}),t}function VU(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function ooe(e,t){t.debug===!0&&(De?ne.enable():tu(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Mt().update(t.initialScope);const r=new e(t);return Jj(r),r.init(),r}function Jj(e){Mt().setClient(e)}const aC=100,cC=5e3,aoe=36e5;function coe(e){function t(...n){De&&ne.log("[Offline]:",...n)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const i=n.createStore(n);let s=cC,o;function a(p,m,_){return xU(p,["client_report"])?!1:n.shouldStore?n.shouldStore(p,m,_):!0}
37function l(p){o&&clearTimeout(o),o=setTimeout(async()=>{o=void 0;const m=await i.shift();m&&(t("Attempting to send previously queued event"),m[0].sent_at=new Date().toISOString(),d(m,!0).catch(_=>{t("Failed to retry sending",_)}))},p),typeof o!="number"&&o.unref&&o.unref()}function f(){o||(l(s),s=Math.min(s*2,aoe))}async function d(p,m=!1){if(!m&&xU(p,["replay_event","replay_recording"]))return await i.push(p),l(aC),{};try{if(n.shouldSend&&await n.shouldSend(p)===!1)throw new Error("Envelope not sent because `shouldSend` callback returned false");const _=await r.send(p);let v=aC;if(_){if(_.headers?.["retry-after"])v=Hj(_.headers["retry-after"]);else if(_.headers?.["x-sentry-rate-limits"])v=6e4;else if((_.statusCode||0)>=400)return _}return l(v),s=cC,_}catch(_){if(await a(p,_,s))return m?await i.unshift(p):await i.push(p),f(),t("Error sending. Event queued.",_),{};throw _}}return n.flushAtStartup&&f(),{send:d,flush:p=>(p===void 0&&(s=cC,l(aC)),r.flush(p))}}}function Qj(e,t){let n;return kf(e,(r,i)=>(t.includes(i)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function loe(e,t){return n=>{const r=e(n);return{...r,send:async i=>{const s=Qj(i,["event","transaction","profile","replay_event"]);return s&&(s.release=t),r.send(i)}}}}function uoe(e,t){return jo(t?{...e[0],dsn:t}:e[0],e[1])}function foe(e,t){return n=>{const r=e(n),i=new Map;function s(l,f){const d=f?`${l}:${f}`:l;let p=i.get(d);if(!p){const m=ij(l);if(!m)return;const _=$j(m,n.tunnel);p=f?loe(e,f)({...n,url:_}):e({...n,url:_}),i.set(d,p)}return[l,p]}async function o(l){function f(_){const v=_?.length?_:["event"];return Qj(l,v)}const d=t({envelope:l,getEvent:f}).map(_=>typeof _=="string"?s(_,void 0):s(_.dsn,_.release)).filter(_=>!!_),p=d.length?d:[["",r]];return(await Promise.all(p.map(([_,v])=>v.send(uoe(l,_)))))[0]}async function a(l){const f=[...i.values(),r];return(await Promise.all(f.map(p=>p.flush(l)))).every(p=>p)}return{send:o,flush:a}}}const doe="thismessage:/";function QO(e){return"isRelative"in e}function eM(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?doe:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const i=new URL(e,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function hoe(e){if(QO(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Sf(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function e8(e){return e.split(/[?#]/,1)[0]}function t8(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return goe(e,n)||poe(e,r)}function poe(e,t){return t?GU(e)===GU(t):!1}function goe(e,t){const n=eM(e);return!n||QO(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function GU(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function n8(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const moe=n8;function _oe(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function voe(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${r}:@sentry/${s}`,version:pc})),version:pc}),e._metadata=i}function tM(e={}){const t=e.client||Ue();if(!Nj()||!t)return{};const n=Lc(),r=iu(n);if(r.getTraceData)return r.getTraceData(e);const i=e.scope||Mt(),s=e.span||Vr(),o=s?pj(s):yoe(i),a=s?Ho(s):zO(t,i),l=rj(a);if(!cj.test(o))return ne.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const d={"sentry-trace":o,baggage:l};if(e.propagateTraceparent){const p=s?_ie(s):boe(i);p&&(d.traceparent=p)}return d}function yoe(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return uj(t,r,n)}function boe(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return fj(t,r,n)}function Soe(e,t,n){let r,i,s;const o=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function l(){return f(),r=e(),r}function f(){i!==void 0&&clearTimeout(i),s!==void 0&&clearTimeout(s),i=s=void 0}function d(){return i!==void 0||s!==void 0?l():r}function p(){return i&&clearTimeout(i),i=a(l,t),o&&s===void 0&&(s=a(l,o)),r}return p.cancel=f,p.flush=d,p}const Eoe=100;function Ea(e,t){const n=Ue(),r=ii();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=Eoe}=n.getOptions();if(s<=0)return;const a={timestamp:Gf(),...e},l=i?tu(()=>i(a,t)):a;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),r.addBreadcrumb(l,s))}let qU;const woe="FunctionToString",WU=new WeakMap,Toe=(()=>({name:woe,setupOnce(){qU=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=PO(this),n=WU.has(Ue())&&t!==void 0?t:this;return qU.apply(n,e)}}catch{}},setup(e){WU.set(e,!0)}})),r8=Toe,xoe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Coe="EventFilters",i8=(e={})=>{let t;return{name:Coe,setup(n){const r=n.getOptions();t=YU(e,r)},processEvent(n,r,i){if(!t){const s=i.getOptions();t=YU(e,s)}return Aoe(n,t)?null:n}}},s8=((e={})=>({...i8(e),name:"InboundFilters"}));function YU(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:xoe],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Aoe(e,t){if(e.type){if(e.type==="transaction"&&koe(e,t.ignoreTransactions))return De&&ne.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
38Event: ${ef(e)}`),!0}else{if(Roe(e,t.ignoreErrors))return De&&ne.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
39Event: ${ef(e)}`),!0;if(Noe(e))return De&&ne.warn(`Event dropped due to not having an error message, error type or stacktrace.
40Event: ${ef(e)}`),!0;if(Ioe(e,t.denyUrls))return De&&ne.warn(`Event dropped due to being matched by \`denyUrls\` option.
41Event: ${ef(e)}.
42Url: ${x0(e)}`),!0;if(!Ooe(e,t.allowUrls))return De&&ne.warn(`Event dropped due to not being matched by \`allowUrls\` option.
43Event: ${ef(e)}.
44Url: ${x0(e)}`),!0}return!1}function Roe(e,t){return t?.length?Wj(e).some(n=>Fo(n,t)):!1}function koe(e,t){if(!t?.length)return!1;const n=e.transaction;return n?Fo(n,t):!1}function Ioe(e,t){if(!t?.length)return!1;const n=x0(e);return n?Fo(n,t):!1}function Ooe(e,t){if(!t?.length)return!0;const n=x0(e);return n?Fo(n,t):!0}function Moe(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function x0(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?Moe(n):null}catch{return De&&ne.error(`Cannot extract url for event ${ef(e)}`),null}}function Noe(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function Loe(e,t,n,r,i,s){if(!i.exception?.values||!s||!Sc(s.originalException,Error))return;const o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=WR(e,t,r,s.originalException,n,i.exception.values,o,0))}function WR(e,t,n,r,i,s,o,a){if(s.length>=n+1)return s;let l=[...s];if(Sc(r[i],Error)){XU(o,a);const f=e(t,r[i]),d=l.length;KU(f,i,d,a),l=WR(e,t,n,r[i],i,[f,...l],f,d)}
44return Array.isArray(r.errors)&&r.errors.forEach((f,d)=>{if(Sc(f,Error)){XU(o,a);const p=e(t,f),m=l.length;KU(p,`errors[${d}]`,m,a),l=WR(e,t,n,f,i,[p,...l],p,m)}}),l}function XU(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function KU(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const o8=new Map,ZU=new Set;function Doe(e){if(ft._sentryModuleMetadata)for(const t of Object.keys(ft._sentryModuleMetadata)){const n=ft._sentryModuleMetadata[t];if(ZU.has(t))continue;ZU.add(t);const r=e(t);for(const i of r.reverse())if(i.filename){o8.set(i.filename,n);break}}}function Poe(e,t){return Doe(e),o8.get(t)}function a8(e,t){t.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(r=>{if(!r.filename||r.module_metadata)return;const i=Poe(e,r.filename);i&&(r.module_metadata=i)})})}function c8(e){e.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(n=>{delete n.module_metadata})})}const $oe=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{kf(t,(n,r)=>{if(r==="event"){const i=Array.isArray(n)?n[1]:void 0;i&&(c8(i),n[1]=i)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;a8(n,t)})}});function nM(e){const t="console";nu(t,e),ru(t,Foe)}function Foe(){"console"in ft&&MO.forEach(function(e){e in ft.console&&xi(ft.console,e,function(t){return _0[e]=t,function(...n){fo("console",{args:n,level:e}),_0[e]?.apply(ft.console,n)}})})}function C0(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Uoe="CaptureConsole",Boe=((e={})=>{const t=e.levels||MO,n=e.handled??!0;return{name:Uoe,setup(r){"console"in ft&&nM(({args:i,level:s})=>{Ue()!==r||!t.includes(s)||Hoe(i,s,n)})}}}),zoe=Boe;function Hoe(e,t,n){const r=C0(t),i=new Error,s={level:C0(t),extra:{arguments:e}};Ts(o=>{if(o.addEventProcessor(f=>(f.logger="console",Ec(f,{handled:n,type:"auto.core.capture_console"}),f)),t==="assert"){if(!e[0]){const f=`Assertion failed: ${v0(e.slice(1)," ")||"console.assert"}`;o.setExtra("arguments",e.slice(1)),o.captureMessage(f,r,{captureContext:s,syntheticException:i})}return}const a=e.find(f=>f instanceof Error);if(a){li(a,s);return}const l=v0(e," ");o.captureMessage(l,r,{captureContext:s,syntheticException:i})})}const joe="Dedupe",Voe=(()=>{let e;return{name:joe,processEvent(t){if(t.type)return t;try{if(Goe(t,e))return De&&ne.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),l8=Voe;function Goe(e,t){return t?!!(qoe(e,t)||Woe(e,t)):!1}function qoe(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!f8(e,t)||!u8(e,t))}function Woe(e,t){const n=JU(t),r=JU(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!f8(e,t)||!u8(e,t))}function u8(e,t){let n=DR(e),r=DR(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],o=n[i];if(s.filename!==o.filename||s.lineno!==o.lineno||s.colno!==o.colno||s.function!==o.function)return!1}return!0}function f8(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function JU(e){return e.exception?.values?.[0]}const Yoe="ExtraErrorData",Xoe=((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:Yoe,processEvent(r,i,s){const{maxValueLength:o}=s.getOptions();return Zoe(r,i,t,n,o)}}}),Koe=Xoe;function Zoe(e,t={},n,r,i){if(!t.originalException||!gc(t.originalException))return e;const s=t.originalException.name||t.originalException.constructor.name,o=d8(t.originalException,r,i);if(o){const a={...e.contexts},l=Ls(o,n);return pa(l)&&(ws(l,"__sentry_skip_normalization__",!0),a[s]=l),{...e,contexts:a}}return e}function d8(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(const s of Object.keys(e)){if(r.indexOf(s)!==-1)continue;const o=e[s];i[s]=gc(o)||typeof o=="string"?n?r_(`${o}`,n):`${o}`:o}if(t&&e.cause!==void 0)if(gc(e.cause)){const s=e.cause.name||e.cause.constructor.name;i.cause={[s]:d8(e.cause,!1,n)}}else i.cause=e.cause;if(typeof e.toJSON=="function"){const s=e.toJSON();for(const o of Object.keys(s)){const a=s[o];i[o]=gc(a)?a.toString():a}}return i}catch(r){De&&ne.error("Unable to extract extra data from the Error object:",r)}return null}function Joe(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const i=e[r];i==="."?e.splice(r,1):i===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const Qoe=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function eae(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Qoe.exec(t);return n?n.slice(1):[]}function QU(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n=i.charAt(0)==="/")}return t=Joe(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function e3(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function tae(e,t){e=QU(e).slice(1),t=QU(t).slice(1);const n=e3(e.split("/")),r=e3(t.split("/")),i=Math.min(n.length,r.length);let s=i;for(let a=0;a<i;a++)if(n[a]!==r[a]){s=a;break}let o=[];for(let a=s;a<n.length;a++)o.push("..");return o=o.concat(r.slice(s)),o.join("/")}function nae(e,t){return eae(e)[2]||""}const rae="RewriteFrames",iae=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in ft&&!!ft.window,i=e.iteratee||sae({isBrowser:r,root:t,prefix:n});function s(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(l
44=>({...l,...l.stacktrace&&{stacktrace:o(l.stacktrace)}}))}}}catch{return a}}function o(a){return{...a,frames:a?.frames?.map(l=>i(l))}}return{name:rae,processEvent(a){let l=a;return a.exception&&Array.isArray(a.exception.values)&&(l=s(l)),l}}};function sae({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),s=/^\//.test(r.filename);if(e){if(t){const o=r.filename;o.indexOf(t)===0&&(r.filename=o.replace(t,n))}}else if(i||s){const o=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?tae(t,o):nae(o);r.filename=`${n}${a}`}return r}}const oae=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],aae=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],cae={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},h8=["select","insert","upsert","update","delete"];function vw(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function yw(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function lae(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function uae(e,t){if(t===""||t==="*")return"select(*)";if(e==="select")return`select(${t})`;if(e==="or"||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let i;return n?.startsWith("fts")?i="textSearch":n?.startsWith("plfts")?i="textSearch[plain]":n?.startsWith("phfts")?i="textSearch[phrase]":n?.startsWith("wfts")?i="textSearch[websearch]":i=n&&cae[n]||"filter",`${i}(${e}, ${r.join(".")})`}function t3(e,t=!1){return new Proxy(e,{apply(n,r,i){return qf({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[ir]:"auto.db.supabase",[Us]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},s=>Reflect.apply(n,r,i).then(o=>(o&&typeof o=="object"&&"error"in o&&o.error?(s.setStatus({code:In}),li(o.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):s.setStatus({code:dw}),s.end(),o)).catch(o=>{throw s.setStatus({code:In}),s.end(),li(o,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),o}).then(...i))}})}function fae(e){const t=e.auth;if(!(!t||yw(e.auth))){for(const n of oae){const r=t[n];r&&typeof e.auth[n]=="function"&&(e.auth[n]=t3(r))}for(const n of aae){const r=t.admin[n];r&&typeof e.auth.admin[n]=="function"&&(e.auth.admin[n]=t3(r,!0))}vw(e.auth)}}function dae(e){yw(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(t,n,r){const i=Reflect.apply(t,n,r),s=i.constructor;return pae(s),i}}),vw(e.prototype.from))}function hae(e){yw(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(t,n,r){const i=h8,s=n,o=lae(s.method,s.headers);if(!i.includes(o)||!s?.url?.pathname||typeof s.url.pathname!="string")return Reflect.apply(t,n,r);const a=s.url.pathname.split("/"),l=a.length>0?a[a.length-1]:"",f=[];for(const[_,v]of s.url.searchParams.entries())f.push(uae(_,v));const d=Object.create(null);if(pa(s.body))for(const[_,v]of Object.entries(s.body))d[_]=v;const p=`${o==="select"?"":`${o}${d?"(...) ":""}`}${f.join(" ")} from(${l})`,m={"db.table":l,"db.schema":s.schema,"db.url":s.url.origin,"db.sdk":s.headers["X-Client-Info"],"db.system":"postgresql","db.operation":o,[ir]:"auto.db.supabase",[Us]:"db"};return f.length&&(m["db.query"]=f),Object.keys(d).length&&(m["db.body"]=d),qf({name:p,attributes:m},_=>Reflect.apply(t,n,[]).then(v=>{if(_&&(v&&typeof v=="object"&&"status"in v&&s_(_,v.status||500),_.end()),v.error){const w=new Error(v.error.message);v.error.code&&(w.code=v.error.code),v.error.details&&(w.details=v.error.details);const T={};f.length&&(T.query=f),Object.keys(d).length&&(T.body=d),li(w,R=>(R.addEventProcessor(C=>(Ec(C,{handled:!1,type:"auto.db.supabase.postgres"}),C)),R.setContext("supabase",T),R))}const E={type:"supabase",category:`db.${o}`,message:p},b={};return f.length&&(b.query=f),Object.keys(d).length&&(b.body=d),Object.keys(b).length&&(E.data=b),Ea(E),v},v=>{throw _&&(s_(_,500),_.end()),v}).then(...r))}}),vw(e.prototype.then))}function pae(e){for(const t of h8)yw(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(n,r,i){const s=Reflect.apply(n,r,i),o=s.constructor;return De&&ne.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),hae(o),s}}),vw(e.prototype[t]))}const p8=e=>{if(!e){De&&ne.warn("Supabase integration was not installed because no Supabase client was provided.");return}const t=e.constructor===Function?e:e.constructor;dae(t),fae(e)},gae="Supabase",mae=(e=>({setupOnce(){p8(e)},name:gae})),_ae=e=>mae(e.supabaseClient),vae=10,yae="ZodErrors";function bae(e){return gc(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function Sae(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function Eae(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function wae(e){const t=new Set;for(const r of e.issues){const i=Eae(r.path);i.length>0&&t.add(i)}const n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){const i=e.issues[0];
44i!==void 0&&"expected"in i&&typeof i.expected=="string"&&(r=i.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${r_(n.join(", "),100)}`}function Tae(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!bae(r.originalException)||r.originalException.issues.length===0)return n;try{const s=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(Sae);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:s})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:wae(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":s.slice(0,e)}}}catch(i){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:i instanceof Error?`${i.name}: ${i.message}
45${i.stack}`:"unknown"}}}}}const xae=((e={})=>{const t=e.limit??vae;return{name:yae,processEvent(n,r){return Tae(t,e.saveZodIssuesAsAttachment,n,r)}}}),Cae=xae,Aae=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{kf(n,(r,i)=>{if(i==="event"){const s=Array.isArray(r)?r[1]:void 0;s&&(c8(s),r[1]=s)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;a8(r,n)})},processEvent(t){const n=Rae(t);if(n){const r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](s=>!s.some(o=>e.filterKeys.includes(o)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function Rae(e){const t=DR(e);if(t)return t.filter(n=>!!n.filename&&(n.lineno??n.colno)!=null).map(n=>n.module_metadata?Object.keys(n.module_metadata).filter(r=>r.startsWith(n3)).map(r=>r.slice(n3.length)):[])}const n3="_sentryBundlerPluginAppKey:",kae=100,Iae=10,ob="flag.evaluation.";function Ip(e){const n=Mt().getScopeData().contexts.flags,r=n?n.values:[];return r.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function If(e,t,n=kae){const r=Mt().getScopeData().contexts;r.flags||(r.flags={values:[]});const i=r.flags.values;Oae(i,e,t,n)}function Oae(e,t,n,r){if(typeof n!="boolean")return;if(e.length>r){De&&ne.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}const i=e.findIndex(s=>s.flag===t);i!==-1&&e.splice(i,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function Of(e,t,n=Iae){if(typeof t!="boolean")return;const r=Vr();if(!r)return;const i=It(r).data;if(`${ob}${e}`in i){r.setAttribute(`${ob}${e}`,t);return}Object.keys(i).filter(o=>o.startsWith(ob)).length<n&&r.setAttribute(`${ob}${e}`,t)}const Mae=()=>({name:"FeatureFlags",processEvent(e,t,n){return Ip(e)},addFeatureFlag(e,t){If(e,t),Of(e,t)}}),Nae=({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;typeof t.isOn=="function"&&xi(t,"isOn",r3),typeof t.getFeatureValue=="function"&&xi(t,"getFeatureValue",r3)},processEvent(t,n,r){return Ip(t)}});function r3(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"&&(If(n,r),Of(n,r)),r}}function Lae(e,t,n,r,i){if(!e.fetchData)return;const{method:s,url:o}=e.fetchData,a=ho()&&t(o);if(e.endTimestamp&&a){const _=e.fetchData.__span;if(!_)return;const v=r[_];v&&($ae(v,e),Dae(v,e,i),delete r[_]);return}const{spanOrigin:l="auto.http.browser",propagateTraceparent:f=!1}=typeof i=="object"?i:{spanOrigin:i},d=!!Vr(),p=a&&d?Wf(Uae(o,s,l)):new Tc;if(e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p,n(e.fetchData.url)){const _=e.args[0],v=e.args[1]||{},E=Pae(_,v,ho()&&d?p:void 0,f);E&&(e.args[1]=v,v.headers=E)}const m=Ue();if(m){const _={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};m.emit("beforeOutgoingRequestSpan",p,_)}return p}function Dae(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function Pae(e,t,n,r){const i=tM({span:n,propagateTraceparent:r}),s=i["sentry-trace"],o=i.baggage,a=i.traceparent;if(!s)return;const l=t.headers||(q6(e)?e.headers:void 0);if(l)if(Fae(l)){const f=new Headers(l);if(f.get("sentry-trace")||f.set("sentry-trace",s),r&&a&&!f.get("traceparent")&&f.set("traceparent",a),o){const d=f.get("baggage");d?ab(d)||f.set("baggage",`${d},${o}`):f.set("baggage",o)}return f}else if(Array.isArray(l)){const f=[...l];l.find(p=>p[0]==="sentry-trace")||f.push(["sentry-trace",s]),r&&a&&!l.find(p=>p[0]==="traceparent")&&f.push(["traceparent",a]);const d=l.find(p=>p[0]==="baggage"&&ab(p[1]));return o&&!d&&f.push(["baggage",o]),f}else{const f="sentry-trace"in l?l["sentry-trace"]:void 0,d="traceparent"in l?l.traceparent:void 0,p="baggage"in l?l.baggage:void 0,m=p?Array.isArray(p)?[...p]:[p]:[],_=p&&(Array.isArray(p)?p.find(E=>ab(E)):ab(p));o&&!_&&m.push(o);const v={...l,"sentry-trace":f??s,baggage:m.length>0?m.join(","):void 0};return r&&a&&!d&&(v.traceparent=a),v}else return{...i}}function $ae(e,t){if(t.response){s_(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:In,message:"internal_error"});e.end()}function ab(e){return e.split(",").some(t=>t.trim().startsWith(FO))}function Fae(e){return typeof Headers<"u"&&Sc(e,Headers)}function Uae(e,t,n){const r=eM(e);return{name:r?`${t} ${hoe(r)}`:t,attributes:Bae(e,r,t,n)}}function Bae(e,t,n,r){const i={url:e,type:"fetch","http.method":n,[ir]:r,[Us]:"http.client"};return t&&(QO(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}function g8(e,t={},n=Mt()){const{message:r,name:i,email:s,url:o,source:a,associatedEventId:l,tags:f}=e,d={contexts:{feedback:{contact_email:s,name:i,message:r,url:o,source:a,associated_event_id:l}},type:"feedback",level:"info",tags:f},p=n?.getClient()||Ue();return p&&p.emit("beforeSendFeedback",d,t),n.captureEvent(d,t)}function Op(e,t,n,r,i){T0({level:e,message:t,attributes:n,severityNumber:i},r)}function zae(e,t,{scope:n}={}){Op("trace",e,t,n)}function Hae(e,t,{scope:n}={}){Op("debug",e,t,n)}function jae(e,t,{scope:n}={}){Op("info",e,t,n)}function Vae(e,t,{scope:n}={}){Op("warn",e,t,n)}function Gae(e,t,{scope:n}={}){Op("error",e,t,n)}function qae(e,t,{scope:n}={}){Op("fatal",e,t,n)}const Wae=Object.freeze(Object.defineProperty({__proto__:null,debug:Hae,error:Gae,fatal:qae,fmt:moe,info:jae,trace:zae,warn:Vae},Symbol.toStringTag,{value:"Module"}));function YR(e,t,n){return"util"in ft&&typeof ft.util.format=="function"?ft.util.format(...e):Yae(e,t,n)}function Yae(e,t,n){return e.map(r=>jl(r)?String(r):JSON.stringify(Ls(r,t,n))).join(" ")}function Xae(e){return/%[sdifocO]/.test(e)}function Kae(e,t){const n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((i,s)=>{n[`sentry.message.parameter.${s}`]=i}),n}const Zae="ConsoleLogs",i3={[ir]:"auto.log.console"},Jae=((e={})=>{const t=e.levels||MO;return{name:Zae,setup(n){const{enableLogs:r,normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=n.getOptions();if(!r){De&&ne.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}nM(({args:o,level:a})=>{if(Ue()!==n||!t.includes(a))return;const l=o[0],f=o.slice(1);if(a==="assert"){if(!l){const _=f.length>0?`Assertion failed: ${YR(f,i,s)}`:"Assertion failed";T0({level:"error",message:_,attributes:i3})}return}const d=a==="log",p=o.length>1&&typeof o[0]=="string"&&!Xae(o[0]),m={...i3,...p?Kae(l,f):{}};T0({level:d?"info":a,message:YR(o,i,s),severityNumber:d?10:void 0,attributes:m})})}}}),Qae=Jae;function rM(e,t,n,r){Wse({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function ece(e,t=1,n){rM("counter",e,t,n)}function tce(e,t,n){rM("gauge",e,t,n)}function nce(e,t,n){rM("distribution",e,t,n)}const rce=Object.freeze(Object.defineProperty({__proto__:null,count:ece,distribution:nce,gauge:tce},Symbol.toStringTag,{value:"Module"})),ice=["trace","debug","info","warn","error","fatal"];function sce(e={}){const t=new Set(e.levels??ice),n=e.client;return{log(r){const{type:i,level:s,message:o,args:a,tag:l,date:f,...d}=r,p=n||Ue();if(!p)return;const m=cce(i,s);if(!t.has(m))return;
45const{normalizeDepth:_=3,normalizeMaxBreadth:v=1e3}=p.getOptions(),E=[];o&&E.push(o),a&&a.length>0&&E.push(YR(a,_,v));const b=E.join(" ");d["sentry.origin"]="auto.log.consola",l&&(d["consola.tag"]=l),i&&(d["consola.type"]=i),s!=null&&typeof s=="number"&&(d["consola.level"]=s),T0({level:m,message:b,attributes:d})}}}const oce={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},ace={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function cce(e,t){if(e==="verbose")return"debug";if(e==="silent")return"trace";if(e){const n=oce[e];if(n)return n}if(typeof t=="number"){const n=ace[t];if(n)return n}return"info"}const lce="gen_ai.prompt",iM="gen_ai.system",Uo="gen_ai.request.model",m8="gen_ai.request.stream",sM="gen_ai.request.temperature",_8="gen_ai.request.max_tokens",oM="gen_ai.request.frequency_penalty",v8="gen_ai.request.presence_penalty",aM="gen_ai.request.top_p",y8="gen_ai.request.top_k",uce="gen_ai.request.encoding_format",fce="gen_ai.request.dimensions",Mp="gen_ai.response.finish_reasons",Np="gen_ai.response.model",dv="gen_ai.response.id",bw="gen_ai.usage.input_tokens",Sw="gen_ai.usage.output_tokens",Ew="gen_ai.usage.total_tokens",cM="gen_ai.operation.name",Ef="gen_ai.request.messages",ga="gen_ai.response.text",lM="gen_ai.request.available_tools",ww="gen_ai.response.streaming",ou="gen_ai.response.tool_calls",dce="openai.response.id",b8="openai.response.model",hce="openai.response.timestamp",pce="openai.usage.completion_tokens",gce="openai.usage.prompt_tokens",lC={CHAT:"chat",RESPONSES:"responses",EMBEDDINGS:"embeddings"},s3="anthropic.response.timestamp",S8=2e4,A0=e=>new TextEncoder().encode(e).length,R0=e=>A0(JSON.stringify(e));function uM(e,t){if(A0(e)<=t)return e;let n=0,r=e.length,i="";for(;n<=r;){const s=Math.floor((n+r)/2),o=e.slice(0,s);A0(o)<=t?(i=o,n=s+1):r=s-1}return i}function mce(e){return typeof e=="string"?e:e.text}function o3(e,t){return typeof e=="string"?t:{...e,text:t}}function _ce(e){return e!==null&&typeof e=="object"&&"content"in e&&typeof e.content=="string"}function vce(e){return e!==null&&typeof e=="object"&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function yce(e,t){const n={...e,content:""},r=R0(n),i=t-r;if(i<=0)return[];const s=uM(e.content,i);return[{...e,content:s}]}function bce(e,t){const{parts:n}=e,r=n.map(a=>o3(a,"")),i=R0({...e,parts:r});let s=t-i;if(s<=0)return[];const o=[];for(const a of n){const l=mce(a),f=A0(l);if(f<=s)o.push(a),s-=f;else if(o.length===0){const d=uM(l,s);d&&o.push(o3(a,d));break}else break}return o.length>0?[{...e,parts:o}]:[]}function Sce(e,t){return!e||typeof e!="object"?[]:_ce(e)?yce(e,t):vce(e)?bce(e,t):[]}function Ece(e,t){if(!Array.isArray(e)||e.length===0||R0(e)<=t)return e;const r=e.map(R0);let i=0,s=e.length;for(let o=e.length-1;o>=0;o--){const a=r[o];if(a&&i+a>t)break;a&&(i+=a),s=o}if(s===e.length){const o=e[e.length-1];return Sce(o,t)}return e.slice(s)}function wce(e){return Ece(e,S8)}function Tce(e){return uM(e,S8)}function hv(e){return e.includes("messages")?"messages":e.includes("completions")?"completions":e.includes("models")?"models":e.includes("chat")?"chat":e.split(".").pop()||"unknown"}function k0(e){return`gen_ai.${hv(e)}`}function E8(e,t){return e?`${e}.${t}`:t}function fM(e,t,n,r,i){if(t!==void 0&&e.setAttributes({[bw]:t}),n!==void 0&&e.setAttributes({[Sw]:n}),t!==void 0||n!==void 0||r!==void 0||i!==void 0){const s=(t??0)+(n??0)+(r??0)+(i??0);e.setAttributes({[Ew]:s})}}function wf(e){if(typeof e=="string")return Tce(e);if(Array.isArray(e)){const t=wce(e);return JSON.stringify(t)}return JSON.stringify(e)}const xce="OpenAI",Cce=["responses.create","chat.completions.create","embeddings.create"],Ace=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],Rce=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...Ace];function dM(e){return e.includes("chat.completions")?lC.CHAT:e.includes("responses")?lC.RESPONSES:e.includes("embeddings")?lC.EMBEDDINGS:e.split(".").pop()||"unknown"}function a3(e){return`gen_ai.${dM(e)}`}function kce(e){return Cce.includes(e)}function Ice(e,t){return e?`${e}.${t}`:t}function Oce(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion"}function Mce(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="response"}function Nce(e){if(e===null||typeof e!="object"||!("object"in e))return!1;const t=e;return t.object==="list"&&typeof t.model=="string"&&t.model.toLowerCase().includes("embedding")}function Lce(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.startsWith("response.")}function Dce(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion.chunk"}function Pce(e,t,n){if(hM(e,t.id,t.model,t.created),t.usage&&Tw(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){const r=t.choices.map(i=>i.finish_reason).filter(i=>i!==null);if(r.length>0&&e.setAttributes({[Mp]:JSON.stringify(r)}),n){const i=t.choices.map(s=>s.message?.tool_calls).filter(s=>Array.isArray(s)&&s.length>0).flat();i.length>0&&e.setAttributes({[ou]:JSON.stringify(i)})}}}function $ce(e,t,n){if(hM(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[Mp]:JSON.stringify([t.status])}),t.usage&&Tw(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),n){const r=t;if(Array.isArray(r.output)&&r.output.length>
450){const i=r.output.filter(s=>typeof s=="object"&&s!==null&&s.type==="function_call");i.length>0&&e.setAttributes({[ou]:JSON.stringify(i)})}}}function Fce(e,t){e.setAttributes({[b8]:t.model,[Np]:t.model}),t.usage&&Tw(e,t.usage.prompt_tokens,void 0,t.usage.total_tokens)}function Tw(e,t,n,r){t!==void 0&&e.setAttributes({[gce]:t,[bw]:t}),n!==void 0&&e.setAttributes({[pce]:n,[Sw]:n}),r!==void 0&&e.setAttributes({[Ew]:r})}function hM(e,t,n,r){e.setAttributes({[dce]:t,[dv]:t}),e.setAttributes({[b8]:n,[Np]:n}),e.setAttributes({[hce]:new Date(r*1e3).toISOString()})}function Uce(e,t){for(const n of e){const r=n.index;if(!(r===void 0||!n.function))if(!(r in t.chatCompletionToolCalls))t.chatCompletionToolCalls[r]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}};else{const i=t.chatCompletionToolCalls[r];n.function.arguments&&i?.function&&(i.function.arguments+=n.function.arguments)}}}function Bce(e,t,n){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&Uce(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function zce(e,t,n,r){if(!(e&&typeof e=="object")){t.eventTypes.push("unknown:non-object");return}if(e instanceof Error){r.setStatus({code:In,message:"internal_error"}),li(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if(!("type"in e))return;const i=e;if(!Rce.includes(i.type)){t.eventTypes.push(i.type);return}if(n&&(i.type==="response.output_item.done"&&"item"in i&&t.responsesApiToolCalls.push(i.item),i.type==="response.output_text.delta"&&"delta"in i&&i.delta)){t.responseTexts.push(i.delta);return}if("response"in i){const{response:s}=i;t.responseId=s.id??t.responseId,t.responseModel=s.model??t.responseModel,t.responseTimestamp=s.created_at??t.responseTimestamp,s.usage&&(t.promptTokens=s.usage.input_tokens,t.completionTokens=s.usage.output_tokens,t.totalTokens=s.usage.total_tokens),s.status&&t.finishReasons.push(s.status),n&&s.output_text&&t.responseTexts.push(s.output_text)}}async function*Hce(e,t,n){const r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const i of e)Dce(i)?Bce(i,r,n):Lce(i)&&zce(i,r,n,t),yield i}finally{hM(t,r.responseId,r.responseModel,r.responseTimestamp),Tw(t,r.promptTokens,r.completionTokens,r.totalTokens),t.setAttributes({[ww]:!0}),r.finishReasons.length&&t.setAttributes({[Mp]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length&&t.setAttributes({[ga]:r.responseTexts.join("")});const s=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];s.length>0&&t.setAttributes({[ou]:JSON.stringify(s)}),t.end()}}function jce(e,t){const n={[iM]:"openai",[cM]:dM(t),[ir]:"auto.ai.openai"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const r=e[0],i=Array.isArray(r.tools)?r.tools:[],o=r.web_search_options&&typeof r.web_search_options=="object"?[{type:"web_search_options",...r.web_search_options}]:[],a=[...i,...o];a.length>0&&(n[lM]=JSON.stringify(a))}if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const r=e[0];n[Uo]=r.model??"unknown","temperature"in r&&(n[sM]=r.temperature),"top_p"in r&&(n[aM]=r.top_p),"frequency_penalty"in r&&(n[oM]=r.frequency_penalty),"presence_penalty"in r&&(n[v8]=r.presence_penalty),"stream"in r&&(n[m8]=r.stream),"encoding_format"in r&&(n[uce]=r.encoding_format),"dimensions"in r&&(n[fce]=r.dimensions)}else n[Uo]="unknown";return n}function Vce(e,t,n){if(!t||typeof t!="object")return;const r=t;if(Oce(r)){if(Pce(e,r,n),n&&r.choices?.length){const i=r.choices.map(s=>s.message?.content||"");e.setAttributes({[ga]:JSON.stringify(i)})}}else Mce(r)?($ce(e,r,n),n&&r.output_text&&e.setAttributes({[ga]:r.output_text})):Nce(r)&&Fce(e,r)}function c3(e,t){if("messages"in t){const n=wf(t.messages);e.setAttributes({[Ef]:n})}if("input"in t){const n=wf(t.input);e.setAttributes({[Ef]:n})}}function Gce(){const t=Mt().getClient(),n=t?.getIntegrationByName(xce),r=n?!!t?.getOptions().sendDefaultPii:!1;return{recordInputs:n?.options?.recordInputs??r,recordOutputs:n?.options?.recordOutputs??r}}function qce(e,t,n,r){return async function(...s){const o=r||Gce(),a=jce(s,t),l=a[Uo]||"unknown",f=dM(t),d=s[0];return d&&typeof d=="object"&&d.stream===!0?o_({name:`${f} ${l}
45 stream-response`,op:a3(t),attributes:a},async m=>{try{o.recordInputs&&s[0]&&typeof s[0]=="object"&&c3(m,s[0]);const _=await e.apply(n,s);return Hce(_,m,o.recordOutputs??!1)}catch(_){throw m.setStatus({code:In,message:"internal_error"}),li(_,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),m.end(),_}}):qf({name:`${f} ${l}`,op:a3(t),attributes:a},async m=>{try{o.recordInputs&&s[0]&&typeof s[0]=="object"&&c3(m,s[0]);const _=await e.apply(n,s);return Vce(m,_,o.recordOutputs),_}catch(_){throw li(_,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),_}})}}function w8(e,t="",n){return new Proxy(e,{get(r,i){const s=r[i],o=Ice(t,String(i));return typeof s=="function"&&kce(o)?qce(s,o,r,n):typeof s=="function"?s.bind(r):s&&typeof s=="object"?w8(s,o,n):s}})}function Wce(e,t){return w8(e,"",t)}function Yce(e,t){return"type"in e&&typeof e.type=="string"&&e.type==="error"?(t.setStatus({code:In,message:e.error?.type??"internal_error"}),li(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0):!1}function Xce(e,t){if(e.type==="message_delta"&&e.usage&&"output_tokens"in e.usage&&typeof e.usage.output_tokens=="number"&&(t.completionTokens=e.usage.output_tokens),e.message){const n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&(typeof n.usage.input_tokens=="number"&&(t.promptTokens=n.usage.input_tokens),typeof n.usage.cache_creation_input_tokens=="number"&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),typeof n.usage.cache_read_input_tokens=="number"&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}function Kce(e,t){e.type!=="content_block_start"||typeof e.index!="number"||!e.content_block||(e.content_block.type==="tool_use"||e.content_block.type==="server_tool_use")&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]})}function Zce(e,t,n){if(!(e.type!=="content_block_delta"||!e.delta)){if(typeof e.index=="number"&&"partial_json"in e.delta&&typeof e.delta.partial_json=="string"){const r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}n&&typeof e.delta.text=="string"&&t.responseTexts.push(e.delta.text)}}function Jce(e,t){if(e.type!=="content_block_stop"||typeof e.index!="number")return;const n=t.activeToolBlocks[e.index];if(!n)return;const r=n.inputJsonParts.join("");let i;try{i=r?JSON.parse(r):{}}catch{i={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:i}),delete t.activeToolBlocks[e.index]}function T8(e,t,n,r){!(e&&typeof e=="object")||Yce(e,r)||(Xce(e,t),Kce(e,t),Zce(e,t,n),Jce(e,t))}function Qce(e,t,n){t.isRecording()&&(e.responseId&&t.setAttributes({[dv]:e.responseId}),e.responseModel&&t.setAttributes({[Np]:e.responseModel}),fM(t,e.promptTokens,e.completionTokens,e.cacheCreationInputTokens,e.cacheReadInputTokens),t.setAttributes({[ww]:!0}),e.finishReasons.length>0&&t.setAttributes({[Mp]:JSON.stringify(e.finishReasons)}),n&&e.responseTexts.length>0&&t.setAttributes({[ga]:e.responseTexts.join("")}),n&&e.toolCalls.length>0&&t.setAttributes({[ou]:JSON.stringify(e.toolCalls)}),t.end())}async function*ele(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const i of e)T8(i,r,n,t),yield i}finally{r.responseId&&t.setAttributes({[dv]:r.responseId}),r.responseModel&&t.setAttributes({[Np]:r.responseModel}),fM(t,r.promptTokens,r.completionTokens,r.cacheCreationInputTokens,r.cacheReadInputTokens),t.setAttributes({[ww]:!0}),r.finishReasons.length>0&&t.setAttributes({[Mp]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length>0&&t.setAttributes({[ga]:r.responseTexts.join("")}),n&&r.toolCalls.length>0&&t.setAttributes({[ou]:JSON.stringify(r.toolCalls)}),t.end()}}function tle(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",i=>{T8(i,r,n,t)}),e.on("message",()=>{Qce(r,t,n)}),e.on("error",i=>{li(i,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:In,message:"stream_error"}),t.end())}),e}const nle=["messages.create","messages.stream","messages.countTokens","models.get","completions.
45create","models.retrieve","beta.messages.create"];function rle(e){return nle.includes(e)}function ile(e,t){t.error&&(e.setStatus({code:In,message:t.error.type||"internal_error"}),li(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function sle(e,t){const n={[iM]:"anthropic",[cM]:hv(t),[ir]:"auto.ai.anthropic"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const r=e[0];r.tools&&Array.isArray(r.tools)&&(n[lM]=JSON.stringify(r.tools)),n[Uo]=r.model??"unknown","temperature"in r&&(n[sM]=r.temperature),"top_p"in r&&(n[aM]=r.top_p),"stream"in r&&(n[m8]=r.stream),"top_k"in r&&(n[y8]=r.top_k),"frequency_penalty"in r&&(n[oM]=r.frequency_penalty),"max_tokens"in r&&(n[_8]=r.max_tokens)}else t==="models.retrieve"||t==="models.get"?n[Uo]=e[0]:n[Uo]="unknown";return n}function XR(e,t){if("messages"in t){const n=wf(t.messages);e.setAttributes({[Ef]:n})}if("input"in t){const n=wf(t.input);e.setAttributes({[Ef]:n})}"prompt"in t&&e.setAttributes({[lce]:JSON.stringify(t.prompt)})}function ole(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[ga]:t.content.map(r=>r.text).filter(r=>!!r).join("")});const n=[];for(const r of t.content)(r.type==="tool_use"||r.type==="server_tool_use")&&n.push(r);n.length>0&&e.setAttributes({[ou]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[ga]:t.completion}),"input_tokens"in t&&e.setAttributes({[ga]:JSON.stringify(t.input_tokens)})}function ale(e,t){"id"in t&&"model"in t&&(e.setAttributes({[dv]:t.id,[Np]:t.model}),"created"in t&&typeof t.created=="number"&&e.setAttributes({[s3]:new Date(t.created*1e3).toISOString()}),"created_at"in t&&typeof t.created_at=="number"&&e.setAttributes({[s3]:new Date(t.created_at*1e3).toISOString()}),"usage"in t&&t.usage&&fM(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}function cle(e,t,n){if(!(!t||typeof t!="object")){if("type"in t&&t.type==="error"){ile(e,t);return}n&&ole(e,t),ale(e,t)}}function l3(e,t,n){throw li(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:In,message:"internal_error"}),t.end()),e}function lle(e,t,n,r,i,s,o,a,l,f,d){const p=i[Uo]??"unknown",m={name:`${s} ${p} stream-response`,op:k0(o),attributes:i};return f&&!d?o_(m,async _=>{try{l.recordInputs&&a&&XR(_,a);const v=await e.apply(n,r);return ele(v,_,l.recordOutputs??!1)}catch(v){return l3(v,_,o)}}):o_(m,_=>{try{l.recordInputs&&a&&XR(_,a);const v=t.apply(n,r);return tle(v,_,l.recordOutputs??!1)}catch(v){return l3(v,_,o)}})}function ule(e,t,n,r){return new Proxy(e,{apply(i,s,o){const a=sle(o,t),l=a[Uo]??"unknown",f=hv(t),d=typeof o[0]=="object"?o[0]:void 0,p=!!d?.stream,m=t==="messages.stream";return p||m?lle(e,i,n,o,a,f,t,d,r,p,m):qf({name:`${f} ${l}`,op:k0(t),attributes:a},_=>(r.recordInputs&&d&&XR(_,d),mw(()=>i.apply(n,o),v=>{li(v,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}})},()=>{},v=>cle(_,v,r.recordOutputs))))}})}function x8(e,t="",n){return new Proxy(e,{get(r,i){const s=r[i],o=E8(t,String(i));return typeof s=="function"&&rle(o)?ule(s,o,r,n):typeof s=="function"?s.bind(r):s&&typeof s=="object"?x8(s,o,n):s}})}function fle(e,t){const n=!!Ue()?.getOptions().sendDefaultPii,r={recordInputs:n,recordOutputs:n,...t};return x8(e,"",r)}const u3=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"],dle="google_genai",C8="chats.create",hle="chat";function ple(e,t){const n=e?.promptFeedback;if(n?.blockReason){const r=n.blockReasonMessage??n.blockReason;return t.setStatus({code:In,message:`Content blocked: ${r}`}),li(`Content blocked: ${r}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function gle(e,t){typeof e.responseId=="string"&&(t.responseId=e.responseId),typeof e.modelVersion=="string"&&(t.responseModel=e.modelVersion);const n=e.usageMetadata;n&&(typeof n.promptTokenCount=="number"&&(t.promptTokens=n.promptTokenCount),typeof n.candidatesTokenCount=="number"&&(t.completionTokens=n.candidatesTokenCount),typeof n.totalTokenCount=="number"&&(t.totalTokens=n.totalTokenCount))}function mle(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(const i of r?.content?.parts??[])n&&i.text&&t.responseTexts.push(i.text),i.functionCall&&t.toolCalls.push({type:"function",id:i.functionCall.id,name:i.functionCall.name,arguments:i.functionCall.args})}}function _le(e,t,n,r){!e||ple(e,r)||(gle(e,t),mle(e,t,n))}async function*vle(e,t,n){const r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const i of e)_le(i,r,n,t),yield i}finally{const i={[ww]:!0};r.responseId&&(i[dv]=r.responseId),r.responseModel&&(i[Np]=r.responseModel),r.promptTokens!==void 0&&(i[bw]=r.promptTokens),r.completionTokens!==void 0&&(i[Sw]=r.completionTokens),r.totalTokens!==void 0&&(i[Ew]=r.totalTokens),r.finishReasons.length&&(i[Mp]=JSON.stringify(r.finishReasons)),n&&r.responseTexts.length&&(i[ga]=r.responseTexts.join("")),n&&r.toolCalls.length&&(i[ou]=JSON.stringify(r.toolCalls)),t.setAttributes(i),t.end()}}function yle(e){if(u3.includes(e))return!0;const t=e.split(".").pop();return u3.includes(t)}function ble(e){return e.includes("Stream")||e.endsWith("generateContentStream")||e.endsWith("sendMessageStream")}function f3(e,t){if("model"in e&&typeof e.model=="string")return e.model;if(t&&typeof t=="object"){const n=t;if("model"in n&&typeof n.model=="string")return n.model;
45if("modelVersion"in n&&typeof n.modelVersion=="string")return n.modelVersion}return"unknown"}function Sle(e){const t={};return"temperature"in e&&typeof e.temperature=="number"&&(t[sM]=e.temperature),"topP"in e&&typeof e.topP=="number"&&(t[aM]=e.topP),"topK"in e&&typeof e.topK=="number"&&(t[y8]=e.topK),"maxOutputTokens"in e&&typeof e.maxOutputTokens=="number"&&(t[_8]=e.maxOutputTokens),"frequencyPenalty"in e&&typeof e.frequencyPenalty=="number"&&(t[oM]=e.frequencyPenalty),"presencePenalty"in e&&typeof e.presencePenalty=="number"&&(t[v8]=e.presencePenalty),t}function Ele(e,t,n){const r={[iM]:dle,[cM]:hv(e),[ir]:"auto.ai.google_genai"};if(t){if(r[Uo]=f3(t,n),"config"in t&&typeof t.config=="object"&&t.config){const i=t.config;if(Object.assign(r,Sle(i)),"tools"in i&&Array.isArray(i.tools)){const s=i.tools.flatMap(o=>o.functionDeclarations);r[lM]=JSON.stringify(s)}}}else r[Uo]=f3({},n);return r}function d3(e,t){if("contents"in t){const n=t.contents,r=wf(n);e.setAttributes({[Ef]:r})}if("message"in t){const n=t.message,r=wf(n);e.setAttributes({[Ef]:r})}if("history"in t){const n=t.history,r=wf(n);e.setAttributes({[Ef]:r})}}function wle(e,t,n){if(!(!t||typeof t!="object")){if(t.usageMetadata&&typeof t.usageMetadata=="object"){const r=t.usageMetadata;typeof r.promptTokenCount=="number"&&e.setAttributes({[bw]:r.promptTokenCount}),typeof r.candidatesTokenCount=="number"&&e.setAttributes({[Sw]:r.candidatesTokenCount}),typeof r.totalTokenCount=="number"&&e.setAttributes({[Ew]:r.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){const r=t.candidates.map(i=>i.content?.parts&&Array.isArray(i.content.parts)?i.content.parts.map(s=>typeof s.text=="string"?s.text:"").filter(s=>s.length>0).join(""):"").filter(i=>i.length>0);r.length>0&&e.setAttributes({[ga]:r.join("")})}if(n&&t.functionCalls){const r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[ou]:JSON.stringify(r)})}}}function h3(e,t,n,r){const i=t===C8;return new Proxy(e,{apply(s,o,a){const l=a[0],f=Ele(t,l,n),d=f[Uo]??"unknown",p=hv(t);return ble(t)?o_({name:`${p} ${d} stream-response`,op:k0(t),attributes:f},async m=>{try{r.recordInputs&&l&&d3(m,l);const _=await s.apply(n,a);return vle(_,m,!!r.recordOutputs)}catch(_){throw m.setStatus({code:In,message:"internal_error"}),li(_,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),m.end(),_}}):qf({name:i?`${p} ${d} create`:`${p} ${d}`,op:k0(t),attributes:f},m=>(r.recordInputs&&l&&d3(m,l),mw(()=>s.apply(n,a),_=>{li(_,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},_=>{i||wle(m,_,r.recordOutputs)})))}})}function KR(e,t="",n){return new Proxy(e,{get:(r,i,s)=>{const o=Reflect.get(r,i,s),a=E8(t,String(i));if(typeof o=="function"&&yle(a)){if(a===C8){const l=h3(o,a,r,n);return function(...d){const p=l(...d);return p&&typeof p=="object"?KR(p,hle,n):p}}return h3(o,a,r,n)}return typeof o=="function"?o.bind(r):o&&typeof o=="object"?KR(o,a,n):o}})}function Tle(e,t){const n=!!Ue()?.getOptions().sendDefaultPii,r={recordInputs:n,recordOutputs:n,...t};return KR(e,"",r)}function A8(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Bh=ft;function xle(){return"history"in Bh&&!!Bh.history}function Cle(){if(!("fetch"in Bh))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function ZR(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function R8(){if(typeof EdgeRuntime=="string")return!0;if(!Cle())return!1;if(ZR(Bh.fetch))return!0;let e=!1;const t=Bh.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=ZR(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){De&&ne.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Ale(){return"ReportingObserver"in Bh}function pM(e,t){const n="fetch";nu(n,e),ru(n,()=>k8(void 0,t))}function Rle(e){const t="fetch-body-resolved";nu(t,e),ru(t,()=>k8(Ile))}function k8(e,t=!1){t&&!R8()||xi(ft,"fetch",function(n){return function(...r){const i=new Error,{method:s,url:o}=Ole(r),a={args:r,fetchData:{method:s,url:o},startTimestamp:Cr()*1e3,virtualError:i,headers:Mle(r)};return e||fo("fetch",{...a}),n.apply(ft,r).then(async l=>(e?e(l):fo("fetch",{...a,endTimestamp:Cr()*1e3,response:l}),l),l=>{if(fo("fetch",{...a,endTimestamp:Cr()*1e3,error:l}),gc(l)&&l.stack===void 0&&(l.stack=i.stack,ws(l,"framesToPop",1)),l instanceof TypeError&&(l.message==="Failed to fetch"||l.message==="Load failed"||l.message==="NetworkError when attempting to fetch resource."))try{const f=new URL(a.fetchData.url);l.message=`${l.message} (${f.host})`}catch{}throw l})}})}async function kle(e,t){if(e?.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(o),a&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(o)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function Ile(e){let t;try{t=e.clone()}catch{return}kle(t,()=>{fo("fetch-body-resolved",{endTimestamp:Cr()*1e3,response:e})})}function JR(e,t){return!!e&&typeof e=="object"&&!!e[t]}function p3(e){return typeof e=="string"?e:e?JR(e,"url")?e.url:e.toString?e.toString():"":""}function Ole(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:p3(n),method:JR(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:p3(t),method:JR(t,"method")?String(t.method).toUpperCase():"GET"}}function Mle(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(q6(t))return new Headers(t.headers)}catch{}}function Nle(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Lle(){return"npm"}function Dle(){return!Nle()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function I0(){return typeof window<"u"&&(!Dle()||Ple())}function Ple(){return ft.process?.type==="renderer"}const Do=ft,Wn=Do.document,pm=Do.navigator,I8="Report a Bug",$le="Cancel",Fle="Send Bug Report",Ule="Confirm",Ble="Report a Bug",zle="[email protected]",Hle="Email",jle="What's the bug? What did you expect?",Vle="Description",Gle="Your Name",qle="Name",Wle="Thank y
45ou for your report!",Yle="(required)",Xle="Add a screenshot",Kle="Remove screenshot",Zle="Highlight",Jle="Hide",Qle="Remove",eue="widget",tue="api",nue=5e3,O8=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=Ue();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&Mt().setTags(e.tags);const r=g8({source:tue,url:Vf(),...e},t);return new Promise((i,s)=>{const o=setTimeout(()=>s("Unable to determine if Feedback was correctly sent."),3e4),a=n.on("afterSendEvent",(l,f)=>{if(l.event_id===r)return clearTimeout(o),a(),f?.statusCode&&f.statusCode>=200&&f.statusCode<300?i(r):f?.statusCode===403?s("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):s("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},DS=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function rue(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(pm.userAgent)||/Macintosh/i.test(pm.userAgent)&&pm.maxTouchPoints&&pm.maxTouchPoints>1||!isSecureContext)}function cb(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function iue(e){const t=Wn.createElement("style");return t.textContent=`
46.widget__actor {
47  position: fixed;
48  z-index: var(--z-index);
49  margin: var(--page-margin);
50  inset: var(--actor-inset);
51
52  display: flex;
53  align-items: center;
54  gap: 8px;
55  padding: 16px;
56
57  font-family: inherit;
58  font-size: var(--font-size);
59  font-weight: 600;
60  line-height: 1.14em;
61  text-decoration: none;
62
63  background: var(--actor-background, var(--background));
64  border-radius: var(--actor-border-radius, 1.7em/50%);
65  border: var(--actor-border, var(--border));
66  box-shadow: var(--actor-box-shadow, var(--box-shadow));
67  color: var(--actor-color, var(--foreground));
68  fill: var(--actor-color, var(--foreground));
69  cursor: pointer;
70  opacity: 1;
71  transition: transform 0.2s ease-in-out;
72  transform: translate(0, 0) scale(1);
73}
74.widget__actor[aria-hidden="true"] {
75  opacity: 0;
76  pointer-events: none;
77  visibility: hidden;
78  transform: translate(0, 16px) scale(0.98);
79}
80
81.widget__actor:hover {
82  background: var(--actor-hover-background, var(--background));
83  filter: var(--interactive-filter);
84}
85
86.widget__actor svg {
87  width: 1.14em;
88  height: 1.14em;
89}
90
91@media (max-width: 600px) {
92  .widget__actor span {
93    display: none;
94  }
95}
96`,e&&t.setAttribute("nonce",e),t}function Ps(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const Ud=20,sue="http://www.w3.org/2000/svg";function oue(){const e=a=>Do.document.createElementNS(sue,a),t=Ps(e("svg"),{width:`${Ud}`,height:`${Ud}`,viewBox:`0 0 ${Ud} ${Ud}`,fill:"var(--actor-color, var(--foreground))"}),n=Ps(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Ps(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const i=e("defs"),s=Ps(e("clipPath"),{id:"clip0_57_80"}),o=Ps(e("rect"),{width:`${Ud}`,height:`${Ud}`,fill:"white"});return s.appendChild(o),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(o),t}function aue({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const i=Wn.createElement("button");if(i.type="button",i.className="widget__actor",i.ariaHidden="false",i.ariaLabel=t||e||I8,i.appendChild(oue()),e){const o=Wn.createElement("span");o.appendChild(Wn.createTextNode(e)),i.appendChild(o)}const s=iue(r);return{el:i,appendToDom(){n.appendChild(s),n.appendChild(i)},removeFromDom(){i.remove(),s.remove()},show(){i.ariaHidden="false"},hide(){i.ariaHidden="true"}}}const M8="rgba(88, 74, 192, 1)",cue={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:M8,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},g3={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackgroun
96d:M8,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function m3(e){return`
97  --foreground: ${e.foreground};
98  --background: ${e.background};
99  --accent-foreground: ${e.accentForeground};
100  --accent-background: ${e.accentBackground};
101  --success-color: ${e.successColor};
102  --error-color: ${e.errorColor};
103  --border: ${e.border};
104  --box-shadow: ${e.boxShadow};
105  --outline: ${e.outline};
106  --interactive-filter: ${e.interactiveFilter};
107  `}function lue({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const i=Wn.createElement("style");return i.textContent=`
108:host {
109  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
110  --font-size: 14px;
111  --z-index: 100000;
112
113  --page-margin: 16px;
114  --inset: auto 0 0 auto;
115  --actor-inset: var(--inset);
116
117  font-family: var(--font-family);
118  font-size: var(--font-size);
119
120  ${e!=="system"?"color-scheme: only light;":""}
121
122  ${m3(e==="dark"?{...g3,...t}:{...cue,...n})}
123}
124
125${e==="system"?`
126@media (prefers-color-scheme: dark) {
127  :host {
128    ${m3({...g3,...t})}
129  }
130}`:""}
131}
132`,r&&i.setAttribute("nonce",r),i}const N8=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>(({id:i="sentry-feedback",autoInject:s=!0,showBranding:o=!0,isEmailRequired:a=!1,isNameRequired:l=!1,showEmail:f=!0,showName:d=!0,enableScreenshot:p=!0,useSentryUser:m={email:"email",name:"username"},tags:_,styleNonce:v,scriptNonce:E,colorScheme:b="system",themeLight:w={},themeDark:T={},addScreenshotButtonLabel:R=Xle,cancelButtonLabel:C=$le,confirmButtonLabel:k=Ule,emailLabel:M=Hle,emailPlaceholder:I=zle,formTitle:$=Ble,isRequiredLabel:Q=Yle,messageLabel:V=Vle,messagePlaceholder:N=jle,nameLabel:U=qle,namePlaceholder:K=Gle,removeScreenshotButtonLabel:j=Kle,submitButtonLabel:fe=Fle,successMessageText:P=Wle,triggerLabel:ee=I8,triggerAriaLabel:W="",highlightToolText:de=Zle,hideToolText:ce=Jle,removeHighlightText:L=Qle,onFormOpen:J,onFormClose:re,onSubmitSuccess:me,onSubmitError:be,onFormSubmitted:Ee}={})=>
132{const Fe={id:i,autoInject:s,showBranding:o,isEmailRequired:a,isNameRequired:l,showEmail:f,showName:d,enableScreenshot:p,useSentryUser:m,tags:_,styleNonce:v,scriptNonce:E,colorScheme:b,themeDark:T,themeLight:w,triggerLabel:ee,triggerAriaLabel:W,cancelButtonLabel:C,submitButtonLabel:fe,confirmButtonLabel:k,formTitle:$,emailLabel:M,emailPlaceholder:I,messageLabel:V,messagePlaceholder:N,nameLabel:U,namePlaceholder:K,successMessageText:P,isRequiredLabel:Q,addScreenshotButtonLabel:R,removeScreenshotButtonLabel:j,highlightToolText:de,hideToolText:ce,removeHighlightText:L,onFormClose:re,onFormOpen:J,onSubmitError:be,onSubmitSuccess:me,onFormSubmitted:Ee};let Be=null,dt=[];const pt=tt=>{if(!Be){const mt=Wn.createElement("div");mt.id=String(tt.id),Wn.body.appendChild(mt),Be=mt.attachShadow({mode:"open"}),Be.appendChild(lue(tt))}return Be},Hn=async tt=>{const mt=tt.enableScreenshot&&rue();let vn,rn;try{vn=(t?t():await e("feedbackModalIntegration",E))(),GR(vn)}catch{throw DS&&ne.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const Sn=mt?n?n():await e("feedbackScreenshotIntegration",E):void 0;Sn&&(rn=Sn(),GR(rn))}catch{DS&&ne.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const sn=vn.createDialog({options:{...tt,onFormClose:()=>{sn?.close(),tt.onFormClose?.()},onFormSubmitted:()=>{sn?.close(),tt.onFormSubmitted?.()}},screenshotIntegration:rn,sendFeedback:O8,shadow:pt(tt)});return sn},Lr=(tt,mt={})=>{const vn=cb(Fe,mt),rn=typeof tt=="string"?Wn.querySelector(tt):typeof tt.addEventListener=="function"?tt:null;if(!rn)throw DS&&ne.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let sn=null;const Sn=async()=>{sn||(sn=await Hn({...vn,onFormSubmitted:()=>{sn?.removeFromDom(),vn.onFormSubmitted?.()}})),sn.appendToDom(),sn.open()};rn.addEventListener("click",Sn);const Ze=()=>{dt=dt.filter(kn=>kn!==Ze),sn?.removeFromDom(),sn=null,rn.removeEventListener("click",Sn)};return dt.push(Ze),Ze},jn=(tt={})=>{const mt=cb(Fe,tt),vn=pt(mt),rn=aue({triggerLabel:mt.triggerLabel,triggerAriaLabel:mt.triggerAriaLabel,shadow:vn,styleNonce:v});return Lr(rn.el,{...mt,onFormOpen(){rn.hide()},onFormClose(){rn.show()},onFormSubmitted(){rn.show()}}),rn};return{name:"Feedback",setupOnce(){!I0()||!Fe.autoInject||(Wn.readyState==="loading"?Wn.addEventListener("DOMContentLoaded",()=>jn().appendToDom()):jn().appendToDom())},attachTo:Lr,createWidget(tt={}){const mt=jn(cb(Fe,tt));return mt.appendToDom(),mt},async createForm(tt={}){return Hn(cb(Fe,tt))},remove(){Be&&(Be.parentElement?.remove(),Be=null),dt.forEach(tt=>tt()),dt=[]}}});function uue(){return Ue()?.getIntegrationByName("Feedback")}var xw,Xn,L8,tf,_3,D8,QR,c_={},gM=[],fue=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mM=Array.isArray;function Tl(e,t){for(var n in t)e[n]=t[n];return e}function P8(e){var t=e.parentNode;t&&t.removeChild(e)}function Gt(e,t,n){var r,i,s,o={};for(s in t)s=="key"?r=t[s]:s=="ref"?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?xw.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)o[s]===void 0&&(o[s]=e.defaultProps[s]);return PS(e,o,r,i,null)}function PS(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++L8,__i:-1,__u:0};return i==null&&Xn.vnode!=null&&Xn.vnode(s),s}function pv(e){return e.children}function $S(e,t){this.props=e,this.context=t}function zh(e,t){if(t==null)return e.__?zh(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?zh(e):null}function due(e,t,n){var r,i=e.__v,s=i.__e,o=e.__P;if(o)return(r=Tl({},i)).__v=i.__v+1,Xn.vnode&&Xn.vnode(r),_M(o,r,i,e.__n,o.ownerSVGElement!==void 0,32&i.__u?[s]:null,t,s??zh(i),!!(32&i.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=s&&$8(r),r}function $8(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return $8(e)}}function v3(e){(!e.__d&&(e.__d=!0)&&tf.push(e)&&!O0.__r++||_3!==Xn.debounceRendering)&&((_3=Xn.debounceRendering)||D8)(O0)}function O0(){var e,t,n,r=[],i=[];for(tf.sort(QR);e=tf.shift();)e.__d&&(n=tf.length,t=due(e,r,i)||t,n===0||tf.length>n?(ek(r,t,i),i.length=r.length=0,t=void 0,tf.sort(QR)):t&&Xn.__c&&Xn.__c(t,gM));t&&ek(r,t,i),O0.__r=0}function F8(e,t,n,r,i,s,o,a,l,f,d){var p,m,_,v,E,b=r&&r.__k||gM,w=t.length;for(n.__d=l,hue(n,t,b),l=n.__d,p=0;p<w;
vendor: 3,559 bytes, line 132
132p++)(_=n.__k[p])!=null&&typeof _!="boolean"&&typeof _!="function"&&(m=_.__i===-1?c_:b[_.__i]||c_,_.__i=p,_M(e,_,m,i,s,o,a,l,f,d),v=_.__e,_.ref&&m.ref!=_.ref&&(m.ref&&vM(m.ref,null,_),d.push(_.ref,_.__c||v,_)),E==null&&v!=null&&(E=v),65536&_.__u||m.__k===_.__k?l=U8(_,l,e):typeof _.type=="function"&&_.__d!==void 0?l=_.__d:v&&(l=v.nextSibling),_.__d=void 0,_.__u&=-196609);n.__d=l,n.__e=E}function hue(e,t,n){var r,i,s,o,a,l=t.length,f=n.length,d=f,p=0;for(e.__k=[],r=0;r<l;r++)(i=e.__k[r]=(i=t[r])==null||typeof i=="boolean"||typeof i=="function"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?PS(null,i,null,null,i):mM(i)?PS(pv,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?PS(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,a=pue(i,n,o=r+p,d),i.__i=a,s=null,a!==-1&&(d--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&p--,typeof i.type!="function"&&(i.__u|=65536)):a!==o&&(a===o+1?p++:a>o?d>l-o?p+=a-o:p--:p=a<o&&a==o-1?a-o:0,a!==r+p&&(i.__u|=65536))):(s=n[r])&&s.key==null&&s.__e&&(s.__e==e.__d&&(e.__d=zh(s)),tk(s,s,!1),n[r]=null,d--);if(d)for(r=0;r<f;r++)(s=n[r])!=null&&(131072&s.__u)==0&&(s.__e==e.__d&&(e.__d=zh(s)),tk(s,s))}function U8(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=U8(r[i],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function pue(e,t,n,r){var i=e.key,s=e.type,o=n-1,a=n+1,l=t[n];if(l===null||l&&i==l.key&&s===l.type)return n;if(r>(l!=null&&(131072&l.__u)==0?1:0))for(;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&(131072&l.__u)==0&&i==l.key&&s===l.type)return o;o--}if(a<t.length){if((l=t[a])&&(131072&l.__u)==0&&i==l.key&&s===l.type)return a;a++}}return-1}function y3(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||fue.test(t)?n:n+"px"}function lb(e,t,n,r,i){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||y3(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||y3(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,s?S3:b3,s)):e.removeEventListener(t,s?S3:b3,s);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function b3(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(Xn.event?Xn.event(e):e)}}function S3(e){if(this.l)return this.l[e.type+!0](Xn.event?Xn.event(e):e)}function _M(e,t,n,r,i,s,o,a,l,f){var d,p,m,_,v,E,b,w,T,R,C,k,M,I,$,Q=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(d=Xn.__b)&&d(t);e:if(typeof Q=="function")try{if(w=t.props,T=(d=Q.contextType)&&r[d.__c],R=d?T?T.props.value:d.__:r,n.__c?b=(p=t.__c=n.__c).__=p.__E:("prototype"in Q&&Q.prototype.render?t.__c=p=new Q(w,R):(t.__c=p=new $S(w,R),p.constructor=Q,p.render=mue),T&&T.sub(p),p.props=w,p.state||(p.state={}),p.context=R,p.__n=r,m=p.__d=!0,p.__h=[],p._sb=[]),p.__s==null&&(p.__s=p.state),Q.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=Tl({}
vendor: 4,526 bytes, line 132
132,p.__s)),Tl(p.__s,Q.getDerivedStateFromProps(w,p.__s))),_=p.props,v=p.state,p.__v=t,m)Q.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(Q.getDerivedStateFromProps==null&&w!==_&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(w,R),!p.__e&&(p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(w,p.__s,R)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(p.props=w,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(V){V&&(V.__=t)}),C=0;C<p._sb.length;C++)p.__h.push(p._sb[C]);p._sb=[],p.__h.length&&o.push(p);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(w,p.__s,R),p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(_,v,E)})}if(p.context=R,p.props=w,p.__P=e,p.__e=!1,k=Xn.__r,M=0,"prototype"in Q&&Q.prototype.render){for(p.state=p.__s,p.__d=!1,k&&k(t),d=p.render(p.props,p.state,p.context),I=0;I<p._sb.length;I++)p.__h.push(p._sb[I]);p._sb=[]}else do p.__d=!1,k&&k(t),d=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++M<25);p.state=p.__s,p.getChildContext!=null&&(r=Tl(Tl({},r),p.getChildContext())),m||p.getSnapshotBeforeUpdate==null||(E=p.getSnapshotBeforeUpdate(_,v)),F8(e,mM($=d!=null&&d.type===pv&&d.key==null?d.props.children:d)?$:[$],t,n,r,i,s,o,a,l,f),p.base=t.__e,t.__u&=-161,p.__h.length&&o.push(p),b&&(p.__E=p.__=null)}catch(V){t.__v=null,l||s!=null?(t.__e=a,t.__u|=l?160:32,s[s.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),Xn.__e(V,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=gue(n.__e,t,n,r,i,s,o,l,f);(d=Xn.diffed)&&d(t)}function ek(e,t,n){for(var r=0;r<n.length;r++)vM(n[r],n[++r],n[++r]);Xn.__c&&Xn.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(s){s.call(i)})}catch(s){Xn.__e(s,i.__v)}})}function gue(e,t,n,r,i,s,o,a,l){var f,d,p,m,_,v,E,b=n.props,w=t.props,T=t.type;if(T==="svg"&&(i=!0),s!=null){for(f=0;f<s.length;f++)if((_=s[f])&&"setAttribute"in _==!!T&&(T?_.localName===T:_.nodeType===3)){e=_,s[f]=null;break}}if(e==null){if(T===null)return document.createTextNode(w);e=i?document.createElementNS("http://www.w3.org/2000/svg",T):document.createElement(T,w.is&&w),s=null,a=!1}if(T===null)b===w||a&&e.data===w||(e.data=w);else{if(s=s&&xw.call(e.childNodes),b=n.props||c_,!a&&s!=null)for(b={},f=0;f<e.attributes.length;f++)b[(_=e.attributes[f]).name]=_.value;for(f in b)_=b[f],f=="children"||(f=="dangerouslySetInnerHTML"?p=_:f==="key"||f in w||lb(e,f,null,_,i));for(f in w)_=w[f],f=="children"?m=_:f=="dangerouslySetInnerHTML"?d=_:f=="value"?v=_:f=="checked"?E=_:f==="key"||a&&typeof _!="function"||b[f]===_||lb(e,f,_,b[f],i);if(d)a||p&&(d.__html===p.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(p&&(e.innerHTML=""),F8(e,mM(m)?m:[m],t,n,r,i&&T!=="foreignObject",s,o,s?s[0]:n.__k&&zh(n,0),a,l),s!=null)for(f=s.length;f--;)s[f]!=null&&P8(s[f]);a||(f="value",v!==void 0&&(v!==e[f]||T==="progress"&&!v||T==="option"&&v!==b[f])&&lb(e,f,v,b[f],!1),f="checked",E!==void 0&&E!==e[f]&&lb(e,f,E,b[f],!1))}return e}function vM(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){Xn.__e(r,n)}}function tk(e,t,n){var r,i;if(Xn.unmount&&Xn.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||vM(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){Xn.__e(s,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&tk(r[i],t,n||typeof e.type!="function");n||e.__e==null||P8(e.__e),e.__=e.__e=e.__d=void 0}function mue(e,t,n){return this.constructor(e,n)}function _ue(e,t,n){var r,i,s,o;Xn.__&&Xn.__(e,t),i=(r=!1)?null:t.__k,s=[],o=[],_M(t,e=t.__k=Gt(pv,null,[e]),i||c_,c_,t.ownerSVGElement!==void 0,i?null:t.firstChild?xw.call(t.childNodes):null,s,i?i.__e:t.firstChild,r,o),e.__d=void 0,ek(s,e,o)}xw=gM.slice,Xn={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(a){e=a}throw e}},L8=0,$S.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Tl({},this.state),typeof e=="function"&&(e=e(Tl({},n),this.props)),e&&Tl(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),v3(this))},$S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),v3(this))},$S.prototype.render=pv,tf=[],D8=typeof Promise=="function"?Promise.prototype.then.bind(Prom
132ise.resolve()):setTimeout,QR=function(e,t){return e.__v.__b-t.__v.__b},O0.__r=0;var xc,Yn,uC,E3,Hh=0,B8=[],FS=[],Er=Xn,w3=Er.__b,T3=Er.__r,x3=Er.diffed,C3=Er.__c,A3=Er.unmount,R3=Er.__;function Yf(e,t){Er.__h&&Er.__h(Yn,e,Hh||t),Hh=0;var n=Yn.__H||(Yn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:FS}),n.__[e]}function uf(e){return Hh=1,z8(j8,e)}function z8(e,t,n){var r=Yf(xc++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):j8(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],f=r.t(l,a);l!==f&&(r.__N=[f,r.__[1]],r.__c.setState({}))}],r.__c=Yn,!Yn.u)){var i=function(a,l,f){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(m){return!!m.__c});if(d.every(function(m){return!m.__N}))return!s||s.call(this,a,l,f);var p=!1;return d.forEach(function(m){if(m.__N){var _=m.__[0];m.__=m.__N,m.__N=void 0,_!==m.__[0]&&(p=!0)}}),!(!p&&r.__c.props===a)&&(!s||s.call(this,a,l,f))};Yn.u=!0;var s=Yn.shouldComponentUpdate,o=Yn.componentWillUpdate;Yn.componentWillUpdate=function(a,l,f){if(this.__e){var d=s;s=void 0,i(a,l,f),s=d}o&&o.call(this,a,l,f)},Yn.shouldComponentUpdate=i}return r.__N||r.__}function vue(e,t){var n=Yf(xc++,3);!Er.__s&&yM(n.__H,t)&&(n.__=e,n.i=t,Yn.__H.__h.push(n))}function H8(e,t){var n=Yf(xc++,4);!Er.__s&&yM(n.__H,t)&&(n.__=e,n.i=t,Yn.__h.push(n))}function yue(e){return Hh=5,gv(function(){return{current:e}},[])}function bue(e,t,n){Hh=6,H8(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function gv(e,t){var n=Yf(xc++,7);return yM(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function wh(e,t){return Hh=8,gv(function(){return e},t)}function Sue(e){var t=Yn.context[e.__c],n=Yf(xc++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Yn)),t.props.value):e.__}function Eue(e,t){Er.useDebugValue&&Er.useDebugValue(t?t(e):e)}function wue(e){var t=Yf(xc++,10),n=uf();return t.__=e,Yn.componentDidCatch||(Yn.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Tue(){var e=Yf(xc++,11);if(!e.__){for(var t=Yn.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function xue(){for(var e;e=B8.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(US),e.__H.__h.forEach(nk),e.__H.__h=[]}catch(t){e.__H.__h=[],Er.__e(t,e.__v)}}Er.__b=function(e){Yn=null,w3&&w3(e)},Er.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),R3&&R3(e,t)},Er.__r=function(e){T3&&T3(e),xc=0;var t=(Yn=e.__c).__H;t&&(uC===Yn?(t.__h=[],Yn.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=FS,n.__N=n.i=void 0})):(t.__h.forEach(US),t.__h.forEach(nk),t.__h=[],xc=0)),uC=Yn},Er.diffed=function(e){x3&&x3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(B8.push(t)!==1&&E3===Er.requestAnimationFrame||((E3=Er.requestAnimationFrame)||Cue)(xue)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==FS&&(n.__=n.__V),n.i=void 0,n.__V=FS})),uC=Yn=null},Er.__c=function(e,t){t.some(function(n){try{n.__h.forEach(US),n.__h=n.__h.filter(function(r){return!r.__||nk(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Er.__e(r,n.__v)}}),C3&&C3(e,t)},Er.unmount=function(e){A3&&A3(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{US(r)}catch(i){t=i}}),n.__H=void 0,t&&Er.__e(t,n.__v))};var k3=typeof requestAnimationFrame=="function";function Cue(e){var t,n=function(){clearTimeout(r),k3&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);k3&&(t=requestAnimationFrame(n))}function US(e){var t=Yn,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Yn=t}function nk(e){var t=Yn;e.__c=e.__(),Yn=t}function yM(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function j8(e,t){return typeof t=="function"?t(e):t}const Aue=Object.defineProperty({__proto__:null,useCallback:wh,useContext:Sue,useDebugValue:Eue,useEffect:vue,useErrorBoundary:wue,useId:Tue,useImperativeHandle:bue,useLayoutEffect:H8,useMemo:gv,useReducer:z8,useRef:yue,useState:uf},Symbol.toStringTag,{value:"Module"}),Rue="http://www.w3.org/2000/svg";function kue(){const e=r=>Wn.createElementNS(Rue,r),t=Ps(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Ps(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function Iue({options:e}){const t=gv(()=>({__html:kue().outerHTML}),[]);return Gt("h2",{class:"dialog__header"},Gt("span",{class:"dialog__title"},e.formTitle),e.showBranding?Gt("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function Oue(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function fC(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function Mue({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:s,onSubmitError:o,showEmail
132:a,showName:l,screenshotInput:f}){const{tags:d,addScreenshotButtonLabel:p,removeScreenshotButtonLabel:m,cancelButtonLabel:_,emailLabel:v,emailPlaceholder:E,isEmailRequired:b,isNameRequired:w,messageLabel:T,messagePlaceholder:R,nameLabel:C,namePlaceholder:k,submitButtonLabel:M,isRequiredLabel:I}=e,[$,Q]=uf(!1),[V,N]=uf(null),[U,K]=uf(!1),j=f?.input,[fe,P]=uf(null),ee=wh(ce=>{P(ce),K(!1)},[]),W=wh(ce=>{const L=Oue(ce,{emailLabel:v,isEmailRequired:b,isNameRequired:w,messageLabel:T,nameLabel:C});return L.length>0?N(`Please enter in the following required fields: ${L.join(", ")}`):N(null),L.length===0},[v,b,w,T,C]),de=wh(async ce=>{Q(!0);try{if(ce.preventDefault(),!(ce.target instanceof HTMLFormElement))return;const L=new FormData(ce.target),J=await(f&&U?f.value():void 0),re={name:fC(L,"name"),email:fC(L,"email"),message:fC(L,"message"),attachments:J?[J]:void 0};if(!W(re))return;try{const me=await i({name:re.name,email:re.email,message:re.message,source:eue,tags:d},{attachments:re.attachments});s(re,me)}catch(me){DS&&ne.error(me),N(me),o(me)}}finally{Q(!1)}},[f&&U,s,o]);return Gt("form",{class:"form",onSubmit:de},j&&U?Gt(j,{onError:ee}):null,Gt("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:$},Gt("div",{class:"form__top"},V?Gt("div",{class:"form__error-container"},V):null,l?Gt("label",{for:"name",class:"form__label"},Gt(dC,{label:C,isRequiredLabel:I,isRequired:w}),Gt("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:k,required:w,type:"text"})):Gt("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?Gt("label",{for:"email",class:"form__label"},Gt(dC,{label:v,isRequiredLabel:I,isRequired:b}),Gt("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:E,required:b,type:"email"})):Gt("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),Gt("label",{for:"message",class:"form__label"},Gt(dC,{label:T,isRequiredLabel:I,isRequired:!0}),Gt("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:R,required:!0,rows:5})),j?Gt("label",{for:"screenshot",class:"form__label"},Gt("button",{class:"btn btn--default",disabled:$,type:"button",onClick:()=>{P(null),K(ce=>!ce)}},U?m:p),fe?Gt("div",{class:"form__error-container"},fe.message):null):null),Gt("div",{class:"btn-group"},Gt("button",{class:"btn btn--primary",disabled:$,type:"submit"},M),Gt("button",{class:"btn btn--default",disabled:$,type:"button",onClick:r},_))))}function dC({label:e,isRequired:t,isRequiredLabel:n}){return Gt("span",{class:"form__label__text"},e,t&&Gt("span",{class:"form__label__text--required"},n))}const ub=16,I3=17,Nue="http://www.w3.org/2000/svg";function Lue(){const e=l=>Do.document.createElementNS(Nue,l),t=Ps(e("svg"),{width:`${ub}`,height:`${I3}`,viewBox:`0 0 ${ub} ${I3}`,fill:"inherit"}),n=Ps(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Ps(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=Ps(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 
13210.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(i,r);const s=e("defs"),o=Ps(e("clipPath"),{id:"clip0_57_156"}),a=Ps(e("rect"),{width:`${ub}`,height:`${ub}`,fill:"white",transform:"translate(0 0.5)"});return o.appendChild(a),s.appendChild(o),t.appendChild(s).appendChild(o).appendChild(a),t}function Due({open:e,onFormSubmitted:t,...n}){const r=n.options,i=gv(()=>({__html:Lue().outerHTML}),[]),[s,o]=uf(null),a=wh(()=>{s&&(clearTimeout(s),o(null)),t()},[s]),l=wh((f,d)=>{n.onSubmitSuccess(f,d),o(setTimeout(()=>{t(),o(null)},nue))},[t]);return Gt(pv,null,s?Gt("div",{class:"success__position",onClick:a},Gt("div",{class:"success__content"},r.successMessageText,Gt("span",{class:"success__icon",dangerouslySetInnerHTML:i}))):Gt("dialog",{class:"dialog",onClick:r.onFormClose,open:e},Gt("div",{class:"dialog__position"},Gt("div",{class:"dialog__content",onClick:f=>{f.stopPropagation()}},Gt(Iue,{options:r}),Gt(Mue,{...n,onSubmitSuccess:l})))))}const Pue=`
133.dialog {
134  position: fixed;
135  z-index: var(--z-index);
136  margin: 0;
137  inset: 0;
138
139  display: flex;
140  align-items: center;
141  justify-content: center;
142  padding: 0;
143  height: 100vh;
144  width: 100vw;
145
146  color: var(--dialog-color, var(--foreground));
147  fill: var(--dialog-color, var(--foreground));
148  line-height: 1.75em;
149
150  background-color: rgba(0, 0, 0, 0.05);
151  border: none;
152  inset: 0;
153  opacity: 1;
154  transition: opacity 0.2s ease-in-out;
155}
156
157.dialog__position {
158  position: fixed;
159  z-index: var(--z-index);
160  inset: var(--dialog-inset);
161  padding: var(--page-margin);
162  display: flex;
163  max-height: calc(100vh - (2 * var(--page-margin)));
164}
165@media (max-width: 600px) {
166  .dialog__position {
167    inset: var(--page-margin);
168    padding: 0;
169  }
170}
171
172.dialog__position:has(.editor) {
173  inset: var(--page-margin);
174  padding: 0;
175}
176
177.dialog:not([open]) {
178  opacity: 0;
179  pointer-events: none;
180  visibility: hidden;
181}
182.dialog:not([open]) .dialog__content {
183  transform: translate(0, -16px) scale(0.98);
184}
185
186.dialog__content {
187  display: flex;
188  flex-direction: column;
189  gap: 16px;
190  padding: var(--dialog-padding, 24px);
191  max-width: 100%;
192  width: 100%;
193  max-height: 100%;
194  overflow: auto;
195
196  background: var(--dialog-background, var(--background));
197  border-radius: var(--dialog-border-radius, 20px);
198  border: var(--dialog-border, var(--border));
199  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
200  transform: translate(0, 0) scale(1);
201  transition: transform 0.2s ease-in-out;
202}
203
204`,$ue=`
205.dialog__header {
206  display: flex;
207  gap: 4px;
208  justify-content: space-between;
209  font-weight: var(--dialog-header-weight, 600);
210  margin: 0;
211}
212.dialog__title {
213  align-self: center;
214  width: var(--form-width, 272px);
215}
216
217@media (max-width: 600px) {
218  .dialog__title {
219    width: auto;
220  }
221}
222
223.dialog__position:has(.editor) .dialog__title {
224  width: auto;
225}
226
227
228.brand-link {
229  display: inline-flex;
230}
231.brand-link:focus-visible {
232  outline: var(--outline);
233}
234`,Fue=`
235.form {
236  display: flex;
237  overflow: auto;
238  flex-direction: row;
239  gap: 16px;
240  flex: 1 0;
241}
242
243.form fieldset {
244  border: none;
245  margin: 0;
246  padding: 0;
247}
248
249.form__right {
250  flex: 0 0 auto;
251  display: flex;
252  overflow: auto;
253  flex-direction: column;
254  justify-content: space-between;
255  gap: 20px;
256  width: var(--form-width, 100%);
257}
258
259.dialog__position:has(.editor) .form__right {
260  width: var(--form-width, 272px);
261}
262
263.form__top {
264  display: flex;
265  flex-direction: column;
266  gap: 8px;
267}
268
269.form__error-container {
270  color: var(--error-color);
271  fill: var(--error-color);
272}
273
274.form__label {
275  display: flex;
276  flex-direction: column;
277  gap: 4px;
278  margin: 0px;
279}
280
281.form__label__text {
282  display: flex;
283  gap: 4px;
284  align-items: center;
285}
286
287.form__label__text--required {
288  font-size: 0.85em;
289}
290
291.form__input {
292  font-family: inherit;
293  line-height: inherit;
294  background: transparent;
295  box-sizing: border-box;
296  border: var(--input-border, var(--border));
297  border-radius: var(--input-border-radius, 6px);
298  color: var(--input-color, inherit);
299  fill: var(--input-color, inherit);
300  font-size: var(--input-font-size, inherit);
301  font-weight: var(--input-font-weight, 500);
302  padding: 6px 12px;
303}
304
305.form__input::placeholder {
306  opacity: 0.65;
307  color: var(--input-placeholder-color, inherit);
308  filter: var(--interactive-filter);
309}
310
311.form__input:focus-visible {
312  outline: var(--input-focus-outline, var(--outline));
313}
314
315.form__input--textarea {
316  font-family: inherit;
317  resize: vertical;
318}
319
320.error {
321  color: var(--error-color);
322  fill: var(--error-color);
323}
324`,Uue=`
325.btn-group {
326  display: grid;
327  gap: 8px;
328}
329
330.btn {
331  line-height: inherit;
332  border: var(--button-border, var(--border));
333  border-radius: var(--button-border-radius, 6px);
334  cursor: pointer;
335  font-family: inherit;
336  font-size: var(--button-font-size, inherit);
337  font-weight: var(--button-font-weight, 600);
338  padding: var(--button-padding, 6px 16px);
339}
340.btn[disabled] {
341  opacity: 0.6;
342  pointer-events: none;
343}
344
345.btn--primary {
346  color: var(--button-primary-color, var(--accent-foreground));
347  fill: var(--button-primary-color, var(--accent-foreground));
348  background: var(--button-primary-background, var(--accent-background));
349  border: var(--button-primary-border, var(--border));
350  border-radius: var(--button-primary-border-radius, 6px);
351  font-weight: var(--button-primary-font-weight, 500);
352}
353.btn--primary:hover {
354  color: var(--button-primary-hover-color, var(--accent-foreground));
355  fill: var(--button-primary-hover-color, var(--accent-foreground));
356  background: var(--button-primary-hover-background, var(--accent-background));
357  filter: var(--interactive-filter);
358}
359.btn--primary:focus-visible {
360  background: var(--button-primary-hover-background, var(--accent-background));
361  filter: var(--interactive-filter);
362  outline: var(--button-primary-focus-outline, var(--outline));
363}
364
365.btn--default {
366  color: var(--button-color, var(--foreground));
367  fill: var(--button-color, var(--foreground));
368  background: var(--button-background, var(--background));
369  border: var(--button-border, var(--border));
370  border-radius: var(--button-border-radius, 6px);
371  font-weight: var(--button-font-weight, 500);
372}
373.btn--default:hover {
374  color: var(--button-color, var(--foreground));
375  fill: var(--button-color, var(--foreground));
376  background: var(--button-hover-background, var(--background));
377  filter: var(--interactive-filter);
378}
379.btn--default:focus-visible {
380  background: var(--button-hover-background, var(--background));
381  filter: var(--interactive-filter);
382  outline: var(--button-focus-outline, var(--outline));
383}
384`,Bue=`
385.success__position {
386  position: fixed;
387  inset: var(--dialog-inset);
388  padding: var(--page-margin);
389  z-index: var(--z-index);
390}
391.success__content {
392  background: var(--success-background, var(--background));
393  border: var(--success-border, var(--border));
394  border-radius: var(--success-border-radius, 1.7em/50%);
395  box-shadow: var(--success-box-shadow, var(--box-shadow));
396  font-weight: var(--success-font-weight, 600);
397  color: var(--success-color);
398  fill: var(--success-color);
399  padding: 12px 24px;
400  line-height: 1.75em;
401
402  display: grid;
403  align-items: center;
404  grid-auto-flow: column;
405  gap: 6px;
406  cursor: default;
407}
408
409.success__icon {
410  display: flex;
411}
412`;function zue(e){const t=Wn.createElement("style");return t.textContent=`
413:host {
414  --dialog-inset: var(--inset);
415}
416
417${Pue}
418${$ue}
419${Fue}
420${Uue}
421${Bue}
422`,e&&t.setAttribute("nonce",e),t}function Hue(){const e=Mt().getUser(),t=ii().getUser(),n=Ol().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const jue=(()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const i=r,s=e.useSentryUser,o=Hue(),a=Wn.createElement("div"),l=zue(e.styleNonce);let f="";const d={get el(){return a},appendToDom(){!i.contains(l)&&!i.contains(a)&&(i.appendChild(l),i.appendChild(a))},removeFromDom(){a.remove(),l.remove(),Wn.body.style.overflow=f},open(){m(!0),e.onFormOpen?.(),Ue()?.emit("openFeedbackWidget"),f=Wn.body.style.overflow,Wn.body.style.overflow="hidden"},close(){m(!1),Wn.body.style.overflow=f}},p=t?.createInput({h:Gt,hooks:Aue,dialog:d,options:e}),m=_=>{_ue(Gt(Due,{options:e,screenshotInput:p,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:s&&o?.[s.name]||"",defaultEmail:s&&o?.[s.email]||"",onFormClose:()=>{m(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(v,E)=>{m(!1),e.onSubmitSuccess?.(v,E)},onSubmitError:v=>{e.onSubmitError?.(v)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:_}),a)};return d}}));function Vue({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function Gue(e){const t=Wn.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`
423.editor {
424  display: flex;
425  flex-grow: 1;
426  flex-direction: column;
427}
428
429.editor__image-container {
430  justify-items: center;
431  padding: 15px;
432  position: relative;
433  height: 100%;
434  border-radius: var(--menu-border-radius, 6px);
435
436  background-color: ${n};
437  background-image: repeating-linear-gradient(
438      -145deg,
439      transparent,
440      transparent 8px,
441      ${n} 8px,
442      ${n} 11px
443    ),
444    repeating-linear-gradient(
445      -45deg,
446      transparent,
447      transparent 15px,
448      ${r} 15px,
449      ${r} 16px
450    );
451}
452
453.editor__canvas-container {
454  width: 100%;
455  height: 100%;
456  position: relative;
457  display: flex;
458  align-items: center;
459  justify-content: center;
460}
461
462.editor__canvas-container > * {
463  object-fit: contain;
464  position: absolute;
465}
466
467.editor__tool-container {
468  padding-top: 8px;
469  display: flex;
470  justify-content: center;
471}
472
473.editor__tool-bar {
474  display: flex;
475  gap: 8px;
476}
477
478.editor__tool {
479  display: flex;
480  padding: 8px 12px;
481  justify-content: center;
482  align-items: center;
483  border: var(--button-border, var(--border));
484  border-radius: var(--button-border-radius, 6px);
485  background: var(--button-background, var(--background));
486  color: var(--button-color, var(--foreground));
487}
488
489.editor__tool--active {
490  background: var(--button-primary-background, var(--accent-background));
491  color: var(--button-primary-color, var(--accent-foreground));
492}
493
494.editor__rect {
495  position: absolute;
496  z-index: 2;
497}
498
499.editor__rect button {
500  opacity: 0;
501  position: absolute;
502  top: -12px;
503  right: -12px;
504  cursor: pointer;
505  padding: 0;
506  z-index: 3;
507  border: none;
508  background: none;
509}
510
511.editor__rect:hover button {
512  opacity: 1;
513}
514`,e&&t.setAttribute("nonce",e),t}function que({h:e}){return function({action:n,setAction:r,options:i}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${n==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(n==="highlight"?"":"highlight")}},i.highlightToolText),e("button",{type:"button",class:`editor__tool ${n==="hide"?"editor__tool--active":""}`,onClick:()=>{r(n==="hide"?"":"hide")}},i.hideToolText)))}}function Wue({hooks:e}){function t(){const[n,r]=e.useState(Do.devicePixelRatio??1);return e.useEffect(()=>{const i=()=>{r(Do.devicePixelRatio)},s=matchMedia(`(resolution: ${Do.devicePixelRatio}dppx)`);
514return s.addEventListener("change",i),()=>{s.removeEventListener("change",i)}},[]),n}return function({onBeforeScreenshot:r,onScreenshot:i,onAfterScreenshot:s,onError:o}){const a=t();e.useEffect(()=>{(async()=>{r();const f=await pm.mediaDevices.getDisplayMedia({video:{width:Do.innerWidth*a,height:Do.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),d=Wn.createElement("video");await new Promise((p,m)=>{d.srcObject=f,d.onloadedmetadata=()=>{i(d,a),f.getTracks().forEach(_=>_.stop()),p()},d.play().catch(m)}),s()})().catch(o)},[])}}function Yue(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function vl(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function hC(e,t){vl(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function pC(e,t,n){vl(e,{alpha:!0},(r,i)=>{n.length&&(i.fillStyle="rgba(0, 0, 0, 0.25)",i.fillRect(0,0,r.width,r.height)),n.forEach(s=>{Yue(s,i,t)})})}function Xue({h:e,hooks:t,outputBuffer:n,dialog:r,options:i}){const s=Wue({hooks:t}),o=que({h:e}),a=Vue({h:e}),l={__html:Gue(i.styleNonce).innerText},f=r.el.style,d=({screenshot:p})=>{const[m,_]=t.useState("highlight"),[v,E]=t.useState([]),b=t.useRef(null),w=t.useRef(null),T=t.useRef(null),R=t.useRef(null),[C,k]=t.useState(1),M=t.useMemo(()=>{const U=Wn.getElementById(i.id);if(!U)return"white";const K=getComputedStyle(U);return K.getPropertyValue("--button-primary-background")||K.getPropertyValue("--accent-background")},[i.id]);t.useLayoutEffect(()=>{const U=()=>{const K=b.current;K&&(vl(p.canvas,{alpha:!1},j=>{const fe=Math.min(K.clientWidth/j.width,K.clientHeight/j.height);k(fe)}),(K.clientHeight===0||K.clientWidth===0)&&setTimeout(U,0))};return U(),Do.addEventListener("resize",U),()=>{Do.removeEventListener("resize",U)}},[p]);const I=t.useCallback((U,K)=>{vl(U,{alpha:!0},(j,fe)=>{fe.scale(K,K),j.width=p.canvas.width,j.height=p.canvas.height})},[p]);t.useEffect(()=>{I(w.current,p.dpi),hC(w.current,p.canvas)},[p]),t.useEffect(()=>{I(T.current,p.dpi),vl(T.current,{alpha:!0},(U,K)=>{K.clearRect(0,0,U.width,U.height)}),pC(T.current,M,v)},[v,M]),t.useEffect(()=>{I(n,p.dpi),hC(n,p.canvas),vl(Wn.createElement("canvas"),{alpha:!0},(U,K)=>{K.scale(p.dpi,p.dpi),U.width=p.canvas.width,U.height=p.canvas.height,pC(U,M,v),hC(n,U)})},[v,p,M]);const $=U=>{if(!m||!R.current)return;const K=R.current.getBoundingClientRect(),j={type:m,x:U.offsetX/C,y:U.offsetY/C},fe=(W,de)=>{const ce=(de.clientX-K.x)/C,L=(de.clientY-K.y)/C;return{type:W.type,x:Math.min(W.x,ce),y:Math.min(W.y,L),w:Math.abs(ce-W.x),h:Math.abs(L-W.y)}},P=W=>{vl(T.current,{alpha:!0},(de,ce)=>{ce.clearRect(0,0,de.width,de.height)}),pC(T.current,M,[...v,fe(j,W)])},ee=W=>{const de=fe(j,W);de.w*C>=1&&de.h*C>=1&&E(ce=>[...ce,de]),Wn.removeEventListener("mousemove",P),Wn.removeEventListener("mouseup",ee)};Wn.addEventListener("mousemove",P),Wn.addEventListener("mouseup",ee)},Q=t.useCallback(U=>K=>{K.preventDefault(),K.stopPropagation(),E(j=>{const fe=[...j];return fe.splice(U,1),fe})},[]),V={width:`${p.canvas.width*C}px`,height:`${p.canvas.height*C}px`},N=U=>{U.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:l}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:b},e("canvas",{ref:w,id:"background",style:V}),e("canvas",{ref:T,id:"foreground",style:V}),e("div",{ref:R,onMouseDown:$,style:V},v.map((U,K)=>e("div",{key:K,class:"editor__rect",style:{top:`${U.y*C}px`,left:`${U.x*C}px`,width:`${U.w*C}px`,height:`${U.h*C}px`}},e("button",{"aria-label":i.removeHighlightText,onClick:Q(K),onMouseDown:N,onMouseUp:N,type:"button"},e(a,null))))))),e(o,{options:i,action:m,setAction:_}))};return function({onError:m}){const[_,v]=t.useState();return s({onBeforeScreenshot:t.useCallback(()=>{f.display="none"},[]),onScreenshot:t.useCallback((E,b)=>{vl(Wn.createElement("canvas"),{alpha:!1},(w,T)=>{T.scale(b,b),w.width=E.videoWidth,w.height=E.videoHeight,T.drawImage(E,0,0,w.width,w.height),v({canvas:w,dpi:b})}),n.width=E.videoWidth,n.height=E.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{f.display="block"},[]),onError:t.useCallback(E=>{f.display="block",m(E)},[])}),_?e(d,{screenshot:_}):e("div",null)}}const Kue=(()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const i=Wn.createElement("canvas");return{input:Xue({h:e,hooks:t,outputBuffer:i,dialog:n,options:r}),value:async()=>{const s=await new Promise(o=>{i.toBlob(o,"image/png")});if(s)return{data:new Uint8Array(await s.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}})),at=ft;let rk=0;function V8(){return rk>0}function Zue(){rk++,setTimeout(()=>{rk--})}function jh(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(PO(e))return e}catch{return e}const r=function(...i){try{const s=i.map(o=>jh(o,t));return e.apply(this,s)}catch(s){throw Zue(),Ts(o=>{o.addEventProcessor(a=>(t.mechanism&&(PR(a,void 0),Ec(a,t.mechanism)),a.extra={...a.extra,arguments:i},a)),li(s)}),s}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Y6(r,e),ws(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function bM(){const e=Vf(),{referrer:t}=at.document||{},{userAgent:n}=at.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}const Jue={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient"},O3=at;async function G8(e,t){const n=Jue[e],r=O3.Sentry=O3.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const i=r[e];if(typeof i=="function"&&!("_isShim"in i))return i;const s=Que(n),o=at.document.createElement("script");
514o.src=s,o.crossOrigin="anonymous",o.referrerPolicy="strict-origin",t&&o.setAttribute("nonce",t);const a=new Promise((p,m)=>{o.addEventListener("load",()=>p()),o.addEventListener("error",m)}),l=at.document.currentScript,f=at.document.body||at.document.head||l?.parentElement;if(f)f.appendChild(o);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await a}catch{throw new Error(`Error when loading integration: ${e}`)}const d=r[e];if(typeof d!="function")throw new Error(`Could not load integration: ${e}`);return d}function Que(e){const n=Ue()?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${pc}/${e}.min.js`,n).toString()}const efe=N8({lazyLoadIntegration:G8}),M3=N8({getModalIntegration:()=>jue,getScreenshotIntegration:()=>Kue});function Cw(e,t){const n=SM(e,t),r={type:sfe(t),value:ofe(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function tfe(e,t,n,r){const s=Ue()?.getOptions().normalizeDepth,o=lfe(t),a={__serialized__:Sj(t,s)};if(o)return{exception:{values:[Cw(e,o)]},extra:a};const l={exception:{values:[{type:uw(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:afe(t,{isUnhandledRejection:r})}]},extra:a};if(n){const f=SM(e,n);f.length&&(l.exception.values[0].stacktrace={frames:f})}return l}function gC(e,t){return{exception:{values:[Cw(e,t)]}}}function SM(e,t){const n=t.stacktrace||t.stack||"",r=rfe(t),i=ife(t);try{return e(n,r,i)}catch{}return[]}const nfe=/Minified React error #\d+;/i;function rfe(e){return e&&nfe.test(e.message)?1:0}function ife(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function q8(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function sfe(e){const t=e?.name;return!t&&q8(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function ofe(e){const t=e?.message;return q8(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function W8(e,t,n,r){const i=n?.syntheticException||void 0,s=Aw(e,t,i,r);return Ec(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),_w(s)}function Y8(e,t,n="info",r,i){const s=r?.syntheticException||void 0,o=ik(e,t,s,i);return o.level=n,r?.event_id&&(o.event_id=r.event_id),_w(o)}function Aw(e,t,n,r,i){let s;if(V6(t)&&t.error)return gC(e,t.error);if(pU(t)||Are(t)){const o=t;if("stack"in t)s=gC(e,t);else{const a=o.name||(pU(o)?"DOMError":"DOMException"),l=o.message?`${a}: ${o.message}`:a;s=ik(e,l,n,r),PR(s,l)}return"code"in o&&(s.tags={...s.tags,"DOMException.code":`${o.code}`}),s}return gc(t)?gC(e,t):pa(t)||uw(t)?(s=tfe(e,t,n,i),Ec(s,{synthetic:!0}),s):(s=ik(e,t,n,r),PR(s,`${t}`),Ec(s,{synthetic:!0}),s)}function ik(e,t,n,r){const i={};if(r&&n){const s=SM(e,n);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]}),Ec(i,{synthetic:!0})}if(lw(t)){const{__sentry_template_string__:s,__sentry_template_values__:o}=t;return i.logentry={message:s,params:o},i}return i.message=t,i}function afe(e,{isUnhandledRejection:t}){const n=Nre(e),r=t?"promise rejection":"exception";return V6(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:uw(e)?`Event \`${cfe(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function cfe(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function lfe(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class X8 extends toe{constructor(t){const n=ufe(t),r=at.SENTRY_SDK_SOURCE||Lle();voe(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:i,sendClientReports:s,enableLogs:o,_experiments:a,enableMetrics:l}=this._options,f=l??a?.enableMetrics??!0;at.document&&(s||o||f)&&at.document.addEventListener("visibilitychange",()=>{at.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),o&&WO(this),f&&XO(this))}),i&&this.on("beforeSendSession",_oe)}eventFromException(t,n){return W8(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Y8(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,i)}}function ufe(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:at.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Mf=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ot=ft,ffe=(e,t)=>
514e>t[1]?"poor":e>t[0]?"needs-improvement":"good",mv=(e,t,n,r)=>{let i,s;return o=>{t.value>=0&&(o||r)&&(s=t.value-(i??0),(s||i===void 0)&&(i=t.value,t.delta=s,t.rating=ffe(t.value,n),e(t)))}},_v=(e=!0)=>{const t=Ot.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Lp=()=>_v()?.activationStart??0;function Tf(e,t,n){Ot.document&&Ot.addEventListener(e,t,n)}function EM(e,t,n){Ot.document&&Ot.removeEventListener(e,t,n)}let Th=-1;const K8=new Set,dfe=()=>Ot.document?.visibilityState==="hidden"&&!Ot.document?.prerendering?0:1/0,BS=e=>{if(hfe(e)&&Th>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of K8)t();isFinite(Th)||(Th=e.type==="visibilitychange"?e.timeStamp:0,EM("prerenderingchange",BS,!0))}},vv=()=>{if(Ot.document&&Th<0){const e=Lp();Th=(Ot.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??dfe(),Tf("visibilitychange",BS,!0),Tf("pagehide",BS,!0),Tf("prerenderingchange",BS,!0)}return{get firstHiddenTime(){return Th},onHidden(e){K8.add(e)}}};function hfe(e){return e.type==="pagehide"||Ot.document?.visibilityState==="hidden"}const pfe=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,yv=(e,t=-1)=>{const n=_v();let r="navigate";return n&&(Ot.document?.prerendering||Lp()>0?r="prerender":Ot.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:pfe(),navigationType:r}},mC=new WeakMap;function wM(e,t){return mC.get(e)||mC.set(e,new t),mC.get(e)}class M0{constructor(){M0.prototype.__init.call(this),M0.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const Dp=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},TM=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Rw=e=>{Ot.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},gfe=[1800,3e3],mfe=(e,t={})=>{Rw(()=>{const n=vv(),r=yv("FCP");let i;const o=Dp("paint",a=>{for(const l of a)l.name==="first-contentful-paint"&&(o.disconnect(),l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-Lp(),0),r.entries.push(l),i(!0)))});o&&(i=mv(e,r,gfe,t.reportAllChanges))})},_fe=[.1,.25],vfe=(e,t={})=>{mfe(TM(()=>{const n=yv("CLS",0);let r;const i=vv(),s=wM(t,M0),o=l=>{for(const f of l)s._processEntry(f);s._sessionValue>n.value&&(n.value=s._sessionValue,n.entries=s._sessionEntries,r())},a=Dp("layout-shift",o);a&&(r=mv(e,n,_fe,t.reportAllChanges),i.onHidden(()=>{o(a.takeRecords()),r(!0)}),Ot?.setTimeout?.(r))}))};let Z8=0,_C=1/0,fb=0;const yfe=e=>{e.forEach(t=>{t.interactionId&&(_C=Math.min(_C,t.interactionId),fb=Math.max(fb,t.interactionId),Z8=fb?(fb-_C)/7+1:0)})};let sk;const J8=()=>sk?Z8:performance.interactionCount||0,bfe=()=>{"interactionCount"in performance||sk||(sk=Dp("event",yfe,{type:"event",buffered:!0,durationThreshold:0}))},vC=10;let Q8=0;const Sfe=()=>J8()-Q8;class N0{constructor(){N0.prototype.__init.call(this),N0.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Q8=J8(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(Sfe()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<vC||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.
514interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((i,s)=>s._latency-i._latency),this._longestInteractionList.length>vC){const i=this._longestInteractionList.splice(vC);for(const s of i)this._longestInteractionMap.delete(s.id)}this._onAfterProcessingINPCandidate?.(r)}}}const eV=e=>{const t=n=>{(n.type==="pagehide"||Ot.document?.visibilityState==="hidden")&&e(n)};Tf("visibilitychange",t,!0),Tf("pagehide",t,!0)},tV=e=>{const t=Ot.requestIdleCallback||Ot.setTimeout;Ot.document?.visibilityState==="hidden"?e():(e=TM(e),Tf("visibilitychange",e,{once:!0,capture:!0}),t(()=>{e(),EM("visibilitychange",e,{capture:!0})}),eV(e))},Efe=[200,500],wfe=40,Tfe=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=vv();Rw(()=>{bfe();const r=yv("INP");let i;const s=wM(t,N0),o=l=>{tV(()=>{for(const d of l)s._processEntry(d);const f=s._estimateP98LongestInteraction();f&&f._latency!==r.value&&(r.value=f._latency,r.entries=f.entries,i())})},a=Dp("event",o,{durationThreshold:t.durationThreshold??wfe});i=mv(e,r,Efe,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(a.takeRecords()),i(!0)}))})};class xfe{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const Cfe=[2500,4e3],Afe=(e,t={})=>{Rw(()=>{const n=vv(),r=yv("LCP");let i;const s=wM(t,xfe),o=l=>{t.reportAllChanges||(l=l.slice(-1));for(const f of l)s._processEntry(f),f.startTime<n.firstHiddenTime&&(r.value=Math.max(f.startTime-Lp(),0),r.entries=[f],i())},a=Dp("largest-contentful-paint",o);if(a){i=mv(e,r,Cfe,t.reportAllChanges);const l=TM(()=>{o(a.takeRecords()),a.disconnect(),i(!0)}),f=d=>{d.isTrusted&&(tV(l),EM(d.type,f,{capture:!0}))};for(const d of["keydown","click","visibilitychange"])Tf(d,f,{capture:!0})}})},Rfe=[800,1800],ok=e=>{Ot.document?.prerendering?Rw(()=>ok(e)):Ot.document?.readyState!=="complete"?addEventListener("load",()=>ok(e),!0):setTimeout(e)},kfe=(e,t={})=>{const n=yv("TTFB"),r=mv(e,n,Rfe,t.reportAllChanges);ok(()=>{const i=_v();i&&(n.value=Math.max(i.responseStart-Lp(),0),n.entries=[i],r(!0))})},Om={},L0={};let nV,rV,iV,sV;function xM(e,t=!1){return kw("cls",e,Ofe,nV,t)}function CM(e,t=!1){return kw("lcp",e,Mfe,rV,t)}function Ife(e){return kw("ttfb",e,Nfe,iV)}function oV(e){return kw("inp",e,Lfe,sV)}function Nf(e,t){return aV(e,t),L0[e]||(Dfe(e),L0[e]=!0),cV(e,t)}function bv(e,t){const n=Om[e];if(n?.length)for(const r of n)try{r(t)}catch(i){Mf&&ne.error(`Error while triggering instrumentation handler.
515Type: ${e}
516Name: ${bc(r)}
517Error:`,i)}}function Ofe(){return vfe(e=>{bv("cls",{metric:e}),nV=e},{reportAllChanges:!0})}function Mfe(){return Afe(e=>{bv("lcp",{metric:e}),rV=e},{reportAllChanges:!0})}function Nfe(){return kfe(e=>{bv("ttfb",{metric:e}),iV=e})}function Lfe(){return Tfe(e=>{bv("inp",{metric:e}),sV=e})}function kw(e,t,n,r,i=!1){aV(e,t);let s;return L0[e]||(s=n(),L0[e]=!0),r&&t({metric:r}),cV(e,t,i?s:void 0)}function Dfe(e){const t={};e==="event"&&(t.durationThreshold=0),Dp(e,n=>{bv(e,{entries:n})},t)}function aV(e,t){Om[e]=Om[e]||[],Om[e].push(t)}function cV(e,t,n){return()=>{n&&n();const r=Om[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Pfe(e){return"duration"in e}function yC(e){return typeof e=="number"&&isFinite(e)}function Vl(e,t,n,{...r}){const i=It(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),uv(e,()=>{const s=Wf({startTime:t,...r});return s&&s.end(n),s})}function AM(e){const t=Ue();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:s}=e,{release:o,environment:a,sendDefaultPii:l}=t.getOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),p=Mt(),m=p.getUser(),_=m!==void 0?m.email||m.id||m.ip_address:void 0;let v;try{v=p.getScopeData().contexts.profile.profile_id}catch{}const E={release:o,environment:a,user:_||void 0,profile_id:v||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":Ot.navigator?.userAgent,"client.address":l?"{{auto}}":void 0,...i};return Wf({name:n,attributes:E,startTime:s,experimental:{standalone:!0}})}function Sv(){return Ot.addEventListener&&Ot.performance}function Nr(e){return e/1e3}function $fe(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}
517return r===e&&(t=r),{name:t,version:n}}function lV(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function uV(e,t){let n,r=!1;function i(a){!r&&n&&t(a,n),r=!0}eV(()=>{i("pagehide")});const s=e.on("beforeStartNavigationSpan",(a,l)=>{l?.isRedirect||(i("navigation"),s(),o())}),o=e.on("afterStartPageLoadSpan",a=>{n=a.spanContext().spanId,o()})}function Ffe(e){let t=0,n;if(!lV("layout-shift"))return;const r=xM(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);uV(e,(i,s)=>{Ufe(t,n,s,i),r()})}function Ufe(e,t,n,r){Mf&&ne.log(`Sending CLS span (${e})`);const i=t?Nr((Bi()||0)+t.startTime):Cr(),s=Mt().getScopeData().transactionName,o=t?Es(t.sources[0]?.node):"Layout shift",a={[ir]:"auto.http.browser.cls",[Us]:"ui.webvital.cls",[Rp]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((f,d)=>{a[`cls.source.${d+1}`]=Es(f.node)});const l=AM({name:o,transaction:s,attributes:a,startTime:i});l&&(l.addEvent("cls",{[cv]:"",[lv]:e}),l.end(i))}function Bfe(e){let t=0,n;if(!lV("largest-contentful-paint"))return;const r=CM(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);uV(e,(i,s)=>{zfe(t,n,s,i),r()})}function zfe(e,t,n,r){Mf&&ne.log(`Sending LCP span (${e})`);const i=Nr((Bi()||0)+(t?.startTime||0)),s=Mt().getScopeData().transactionName,o=t?Es(t.element):"Largest contentful paint",a={[ir]:"auto.http.browser.lcp",[Us]:"ui.webvital.lcp",[Rp]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=Es(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));const l=AM({name:o,transaction:s,attributes:a,startTime:i});l&&(l.addEvent("lcp",{[cv]:"millisecond",[lv]:e}),l.end(i))}function to(e){return e&&((Bi()||performance.timeOrigin)+e)/1e3}function fV(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=$fe(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return Bi()||Sv()?.timeOrigin?Hfe({...t,"http.request.redirect_start":to(e.redirectStart),"http.request.redirect_end":to(e.redirectEnd),"http.request.worker_start":to(e.workerStart),"http.request.fetch_start":to(e.fetchStart),"http.request.domain_lookup_start":to(e.domainLookupStart),"http.request.domain_lookup_end":to(e.domainLookupEnd),"http.request.connect_start":to(e.connectStart),"http.request.secure_connection_start":to(e.secureConnectionStart),"http.request.connection_end":to(e.connectEnd),"http.request.request_start":to(e.requestStart),"http.request.response_start":to(e.responseStart),"http.request.response_end":to(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function Hfe(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const jfe=2147483647;let N3=0,Mo={},_s,D0;function Vfe({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Sv();if(r&&Bi()){r.mark&&Ot.performance.mark("sentry-tracing-init");const i=t?Bfe(n):Xfe(),s=Kfe(),o=e?Ffe(n):Yfe();return()=>{i?.(),s(),o?.()}}return()=>{}}function Gfe(){Nf("longtask",({entries:e})=>{const t=Vr();if(!t)return;const{op:n,start_timestamp:r}=It(t);for(const i of e){const s=Nr(Bi()+i.startTime),o=Nr(i.duration);n==="navigation"&&r&&s<r||Vl(t,s,s+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[ir]:"auto.ui.browser.metrics"}})}})}function qfe(){new PerformanceObserver(t=>{const n=Vr();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const i=Nr(Bi()+r.startTime),{start_timestamp:s,op:o}=It(n);if(o==="navigation"&&s&&i<s)continue;const a=Nr(r.duration),l={[ir]:"auto.ui.browser.metrics"},f=r.scripts[0],{invoker:d,invokerType:p,sourceURL:m,sourceFunctionName:_,sourceCharPosition:v}=f;l["browser.script.invoker"]=d,l["browser.script.invoker_type"]=p,m&&(l["code.filepath"]=m),_&&(l["code.function"]=_),v!==-1&&(l["browser.script.source_char_position"]=v),Vl(n,i,i+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:l})}}).observe({type:"long-animation-frame",buffered:!0})}function Wfe(){Nf("event",({entries:e})=>{const t=Vr();if(t){for(const n of e)if(n.name==="click"){const r=Nr(Bi()+n.startTime),i=Nr(n.duration),s={name:Es(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[ir]:"auto.ui.browser.metrics"}},o=W6(n.target);o&&(s.attributes["ui.component_name"]=o),Vl(t,r,r+i,s)}}})}function Yfe(){return xM(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Mo.cls={value:e.value,unit:""},D0=t)},!0)}
517function Xfe(){return CM(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Mo.lcp={value:e.value,unit:"millisecond"},_s=t)},!0)}function Kfe(){return Ife(({metric:e})=>{e.entries[e.entries.length-1]&&(Mo.ttfb={value:e.value,unit:"millisecond"})})}function Zfe(e,t){const n=Sv(),r=Bi();if(!n?.getEntries||!r)return;const i=Nr(r),s=n.getEntries(),{op:o,start_timestamp:a}=It(e);s.slice(N3).forEach(l=>{const f=Nr(l.startTime),d=Nr(Math.max(0,l.duration));if(!(o==="navigation"&&a&&i+f<a))switch(l.entryType){case"navigation":{tde(e,l,i);break}case"mark":case"paint":case"measure":{Qfe(e,l,f,d,i,t.ignorePerformanceApiSpans);const p=vv(),m=l.startTime<p.firstHiddenTime;l.name==="first-paint"&&m&&(Mo.fp={value:l.startTime,unit:"millisecond"}),l.name==="first-contentful-paint"&&m&&(Mo.fcp={value:l.startTime,unit:"millisecond"});break}case"resource":{ide(e,l,l.name,f,d,i,t.ignoreResourceSpans);break}}}),N3=Math.max(s.length-1,0),sde(e),o==="pageload"&&(cde(Mo),t.recordClsOnPageloadSpan||delete Mo.cls,t.recordLcpOnPageloadSpan||delete Mo.lcp,Object.entries(Mo).forEach(([l,f])=>{wj(l,f.value,f.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",Lp()),ode(e,t)),_s=void 0,D0=void 0,Mo={}}function Jfe(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function Qfe(e,t,n,r,i,s){if(Jfe(t)||["mark","measure"].includes(t.entryType)&&Fo(t.name,s))return;const o=_v(!1),a=Nr(o?o.requestStart:0),l=i+Math.max(n,a),f=i+n,d=f+r,p={[ir]:"auto.resource.browser.metrics"};l!==f&&(p["sentry.browser.measure_happened_before_request"]=!0,p["sentry.browser.measure_start_time"]=l),ede(p,t),l<=d&&Vl(e,l,d,{name:t.name,op:t.entryType,attributes:p})}function ede(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&jl(i))e[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(jl(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function tde(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{db(e,t,r,n)}),db(e,t,"secureConnection",n,"TLS/SSL"),db(e,t,"fetch",n,"cache"),db(e,t,"domainLookup",n,"DNS"),rde(e,t,n)}function db(e,t,n,r,i=n){const s=nde(n),o=t[s],a=t[`${n}Start`];!a||!o||Vl(e,r+Nr(a),r+Nr(o),{op:`browser.${i}`,name:t.name,attributes:{[ir]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function nde(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function rde(e,t,n){const r=n+Nr(t.requestStart),i=n+Nr(t.responseEnd),s=n+Nr(t.responseStart);t.responseEnd&&(Vl(e,r,i,{op:"browser.request",name:t.name,attributes:{[ir]:"auto.ui.browser.metrics"}}),Vl(e,s,i,{op:"browser.response",name:t.name,attributes:{[ir]:"auto.ui.browser.metrics"}}))}function ide(e,t,n,r,i,s,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(a))return;const l={[ir]:"auto.resource.browser.metrics"},f=Sf(n);f.protocol&&(l["url.scheme"]=f.protocol.split(":").pop()),f.host&&(l["server.address"]=f.host),l["url.same_origin"]=n.includes(Ot.location.origin),ade(t,l,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const d={...l,...fV(t)},p=s+r,m=p+i;Vl(e,p,m,{name:n.replace(Ot.location.origin,""),op:a,attributes:d})}function sde(e){const t=Ot.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),yC(n.rtt)&&(Mo["connection.rtt"]={value:n.rtt,unit:"millisecond"})),yC(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),yC(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function ode(e,t){_s&&t.recordLcpOnPageloadSpan&&(_s.element&&e.setAttribute("lcp.element",Es(_s.element)),_s.id&&e.setAttribute("lcp.id",_s.id),_s.url&&e.setAttribute("lcp.url",_s.url.trim().slice(0,200)),_s.loadTime!=null&&e.setAttribute("lcp.loadTime",_s.loadTime),_s.renderTime!=null&&e.setAttribute("lcp.renderTime",_s.renderTime),e.setAttribute("lcp.size",_s.size)),D0?.sources&&t.recordClsOnPageloadSpan&&D0.sources.forEac
517h((n,r)=>e.setAttribute(`cls.source.${r+1}`,Es(n.node)))}function ade(e,t,n){n.forEach(([r,i])=>{const s=e[r];s!=null&&(typeof s=="number"&&s<jfe||typeof s=="string")&&(t[i]=s)})}function cde(e){const t=_v(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function lde(){return Sv()&&Bi()?Nf("element",ude):()=>{}}const ude=({entries:e})=>{const t=Vr(),n=t?Hr(t):void 0,r=n?It(n).description:Mt().getScopeData().transactionName;e.forEach(i=>{const s=i;if(!s.identifier)return;const o=s.name,a=s.renderTime,l=s.loadTime,[f,d]=l?[Nr(l),"load-time"]:a?[Nr(a),"render-time"]:[Cr(),"entry-emission"],p=o==="image-paint"?Nr(Math.max(0,(a??0)-(l??0))):0,m={[ir]:"auto.ui.browser.elementtiming",[Us]:"ui.elementtiming",[$s]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":r,"element.id":s.id,"element.type":s.element?.tagName?.toLowerCase()||"unknown","element.size":s.naturalWidth&&s.naturalHeight?`${s.naturalWidth}x${s.naturalHeight}`:void 0,"element.render_time":a,"element.load_time":l,"element.url":s.url||void 0,"element.identifier":s.identifier,"element.paint_type":o};qf({name:`element[${s.identifier}]`,attributes:m,startTime:f,onlyIfParent:!0},_=>{_.end(f+p)})})},fde=1e3;let L3,ak,ck;function dV(e){nu("dom",e),ru("dom",dde)}function dde(){if(!Ot.document)return;const e=fo.bind(null,"dom"),t=D3(e,!0);Ot.document.addEventListener("click",t,!1),Ot.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const i=Ot[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(xi(i,"addEventListener",function(s){return function(o,a,l){if(o==="click"||o=="keypress")try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=f[o]=f[o]||{refCount:0};if(!d.handler){const p=D3(e);d.handler=p,s.call(this,o,p,l)}d.refCount++}catch{}return s.call(this,o,a,l)}}),xi(i,"removeEventListener",function(s){return function(o,a,l){if(o==="click"||o=="keypress")try{const f=this.__sentry_instrumentation_handlers__||{},d=f[o];d&&(d.refCount--,d.refCount<=0&&(s.call(this,o,d.handler,l),d.handler=void 0,delete f[o]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,o,a,l)}}))})}function hde(e){if(e.type!==ak)return!1;try{if(!e.target||e.target._sentryId!==ck)return!1}catch{}return!0}function pde(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function D3(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=gde(n);if(pde(n.type,r))return;ws(n,"_sentryCaptured",!0),r&&!r._sentryId&&ws(r,"_sentryId",ci());
517const i=n.type==="keypress"?"input":n.type;hde(n)||(e({event:n,name:i,global:t}),ak=n.type,ck=r?r._sentryId:void 0),clearTimeout(L3),L3=Ot.setTimeout(()=>{ck=void 0,ak=void 0},fde)}}function gde(e){try{return e.target}catch{return null}}let hb;function Iw(e){const t="history";nu(t,e),ru(t,mde)}function mde(){if(Ot.addEventListener("popstate",()=>{const t=Ot.location.href,n=hb;if(hb=t,n===t)return;fo("history",{from:n,to:t})}),!xle())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=hb,s=_de(String(r));if(hb=s,i===s)return t.apply(this,n);fo("history",{from:i,to:s})}return t.apply(this,n)}}xi(Ot.history,"pushState",e),xi(Ot.history,"replaceState",e)}function _de(e){try{return new URL(e,Ot.location.origin).toString()}catch{return e}}const zS={};function RM(e){const t=zS[e];if(t)return t;let n=Ot[e];if(ZR(n))return zS[e]=n.bind(Ot);const r=Ot.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const s=i.contentWindow;s?.[e]&&(n=s[e]),r.head.removeChild(i)}catch(i){Mf&&ne.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(zS[e]=n.bind(Ot))}function vde(e){zS[e]=void 0}function Ev(...e){return RM("setTimeout")(...e)}const fc="__sentry_xhr_v3__";function kM(e){nu("xhr",e),ru("xhr",yde)}function yde(){if(!Ot.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=new Error,s=Cr()*1e3,o=$o(r[0])?r[0].toUpperCase():void 0,a=bde(r[1]);if(!o||!a)return t.apply(n,r);n[fc]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const l=()=>{const f=n[fc];if(f&&n.readyState===4){try{f.status_code=n.status}catch{}const d={endTimestamp:Cr()*1e3,startTimestamp:s,xhr:n,virtualError:i};fo("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(f,d,p){return l(),f.apply(d,p)}}):n.addEventListener("readystatechange",l),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(f,d,p){const[m,_]=p,v=d[fc];return v&&$o(m)&&$o(_)&&(v.request_headers[m.toLowerCase()]=_),f.apply(d,p)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[fc];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:Cr()*1e3,xhr:n};return fo("xhr",s),t.apply(n,r)}})}function bde(e){if($o(e))return e;try{return e.toString()}catch{}}function hV(e){return new URLSearchParams(e).toString()}function P0(e,t=ne){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[hV(e)];if(!e)return[void 0]}catch(n){return Mf&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Mf&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function IM(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function pV(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return Mf&&ne.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
518`).reduce((n,r)=>{const[i,s]=r.split(": ");return s&&(n[i.toLowerCase()]=s),n},{}):{}}const bC=[],HS=new Map,Bd=new Map,Sde=60;function Ede(){if(Sv()&&Bi()){const t=wde();return()=>{t()}}return()=>{}}const lk={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function wde(){return oV(Tde)}const Tde=({metric:e})=>{if(e.value==null)return;const t=Nr(e.value);if(t>Sde)return;const n=e.entries.find(v=>v.duration===e.value&&lk[v.name]);if(!n)return;const{interactionId:r}=n,i=lk[n.name],s=Nr(Bi()+n.startTime),o=Vr(),a=o?Hr(o):void 0,l=r!=null?HS.get(r):void 0,f=l?.span||a,d=f?It(f).description:Mt().getScopeData().transactionName,p=l?.elementName||Es(n.target),m={[ir]:"auto.http.browser.inp",[Us]:`ui.interaction.${i}`,[Rp]:n.duration},_=AM({name:p,transaction:d,attributes:m,startTime:s});_&&(_.addEvent("inp",{[cv]:"millisecond",[lv]:e.value}),_.end(s+t))};function xde(){const e=Object.keys(lk);I0()&&e.forEach(i=>
518{Ot.addEventListener(i,t,{capture:!0,passive:!0})});function t(i){const s=i.target;if(!s)return;const o=Es(s),a=Math.round(i.timeStamp);if(Bd.set(a,o),Bd.size>50){const l=Bd.keys().next().value;l!==void 0&&Bd.delete(l)}}function n(i){const s=Math.round(i.startTime);let o=Bd.get(s);if(!o)for(let a=-5;a<=5;a++){const l=Bd.get(s+a);if(l){o=l;break}}return o||"<unknown>"}const r=({entries:i})=>{const s=Vr(),o=s&&Hr(s);i.forEach(a=>{if(!Pfe(a))return;const l=a.interactionId;if(l==null||HS.has(l))return;const f=a.target?Es(a.target):n(a);if(bC.length>10){const d=bC.shift();HS.delete(d)}bC.push(l),HS.set(l,{span:o,elementName:f})})};Nf("event",r),Nf("first-input",r)}const Cde=40;function OM(e,t=RM("fetch")){let n=0,r=0;async function i(s){const o=s.body.length;n+=o,r++;const a={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const l=await t(e.url,a);return{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}}catch(l){throw vde("fetch"),l}finally{n-=o,r--}}return qj(e,i,JO(e.bufferSize||Cde))}const Me=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Ade(){const e=Ue();if(!e){Me&&ne.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){Me&&ne.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")}function Rde(){const e=Ue();if(!e){Me&&ne.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){Me&&ne.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}const kde={startProfiler:Ade,stopProfiler:Rde},Ide=10,Ode=20,Mde=30,Nde=40,Lde=50;function Vh(e,t,n,r){const i={filename:e,function:t==="<anonymous>"?ba:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const Dde=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Pde=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$de=/\((\S*)(?::(\d+))(?::(\d+))\)/,Fde=/at (.+?) ?\(data:(.+?),/,Ude=e=>{const t=e.match(Fde);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=Dde.exec(e);if(n){const[,i,s,o]=n;return Vh(i,ba,+s,+o)}const r=Pde.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const a=$de.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[s,o]=yV(r[1]||ba,r[2]);return Vh(o,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},gV=[Mde,Ude],Bde=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,zde=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Hde=e=>{const t=Bde.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=zde.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],i=t[1]||ba;return[i,r]=yV(i,r),Vh(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},mV=[Lde,Hde],jde=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Vde=e=>{const t=jde.exec(e);return t?Vh(t[2],t[1]||ba,+t[3],t[4]?+t[4]:void 0):void 0},Gde=[Nde,Vde],qde=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Wde=e=>{const t=qde.exec(e);return t?Vh(t[2],t[3]||ba,+t[1]):void 0},Yde=[Ide,Wde],Xde=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Kde=e=>{const t=Xde.exec(e);return t?Vh(t[5],t[3]||t[4]||ba,+t[1],+t[2]):void 0},Zde=[Ode,Kde],_V=[gV,mV],vV=U6(..._V),yV=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:ba,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function Jde(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Dc(r)}},s=Qde(e);return jo(i,[s])}function Qde(e){return[{type:"user_report"},e]}const pb=1024,ehe="Breadcrumbs",the=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ehe,setup(n){t.console&&nM(ihe(n)),t.dom&&dV(rhe(n,t.dom)),t.xhr&&kM(she(n)),t.fetch&&pM(ohe(n)),t.history&&Iw(ahe(n)),t.sentry&&n.on("beforeSendEvent",nhe(n))}}}),bV=the;function nhe(e){return function(n){Ue()===e&&Ea({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ef(n)},{event:n})}}function rhe(e,t){return function(r){if(Ue()!==e)return;let i,s,o=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>pb&&(Me&&ne.warn(`\`dom.maxStringLength\` cannot exceed ${pb}, but a value of ${a} was configured. Sentry will use ${pb}
518 instead.`),a=pb),typeof o=="string"&&(o=[o]);try{const f=r.event,d=che(f)?f.target:f;i=Es(d,{keyAttrs:o,maxStringLength:a}),s=W6(d)}catch{i="<unknown>"}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};s&&(l.data={"ui.component_name":s}),Ea(l,{event:r.event,name:r.name,global:r.global})}}function ihe(e){return function(n){if(Ue()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:C0(n.level),message:v0(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${v0(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Ea(r,{input:n.args,level:n.level})}}function she(e){return function(n){if(Ue()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[fc];if(!r||!i||!s)return;const{method:o,url:a,status_code:l,body:f}=s,d={method:o,url:a,status_code:l},p={xhr:n.xhr,input:f,startTimestamp:r,endTimestamp:i},m={category:"xhr",data:d,type:"http",level:A8(l)};e.emit("beforeOutgoingRequestBreadcrumb",m,p),Ea(m,p)}}function ohe(e){return function(n){if(Ue()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const s=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},a={category:"fetch",data:s,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,o),Ea(a,o)}else{const s=n.response,o={...n.fetchData,status_code:s?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,s?.status;const a={input:n.args,response:s,startTimestamp:r,endTimestamp:i},l={category:"fetch",data:o,type:"http",level:A8(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",l,a),Ea(l,a)}}}function ahe(e){return function(n){if(Ue()!==e)return;let r=n.from,i=n.to;const s=Sf(at.location.href);let o=r?Sf(r):void 0;const a=Sf(i);o?.path||(o=s),s.protocol===a.protocol&&s.host===a.host&&(i=a.relative),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),Ea({category:"navigation",data:{from:r,to:i}})}}function che(e){return!!e&&!!e.target}const lhe=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],uhe="BrowserApiErrors",fhe=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:uhe,setupOnce(){t.setTimeout&&xi(at,"setTimeout",P3),t.setInterval&&xi(at,"setInterval",P3),t.requestAnimationFrame&&xi(at,"requestAnimationFrame",dhe),t.XMLHttpRequest&&"XMLHttpRequest"in at&&xi(XMLHttpRequest.prototype,"send",hhe);const n=t.eventTarget;n&&(Array.isArray(n)?n:lhe).forEach(i=>phe(i,t))}}}),SV=fhe;function P3(e){return function(...t){const n=t[0];return t[0]=jh(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${bc(e)}`}}),e.apply(this,t)}}function dhe(e){return function(t){return e.apply(this,[jh(t,{mechanism:{data:{handler:bc(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function hhe(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&xi(n,i,function(s){const o={mechanism:{data:{handler:bc(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${i}`}},a=PO(s);return a&&(o.mechanism.data.handler=bc(a)),jh(s,o)})}),e.apply(this,t)}}function phe(e,t){const r=at[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(xi(r,"addEventListener",function(i){return function(s,o,a){try{ghe(o)&&(o.handleEvent=jh(o.handleEvent,{mechanism:{data:{handler:bc(o),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&mhe(this,s,o),i.apply(this,[s,jh(o,{mechanism:{data:{handler:bc(o),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),xi(r,"removeEventListener",function(i){return function(s,o,a){try{const l=o.__sentry_wrapped__;l&&i.call(this,s,l,a)}catch{}return i.call(this,s,o,a)}}))}function ghe(e){return typeof e.handleEvent=="function"}function mhe(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const EV=()=>({name:"BrowserSession",setupOnce(){if(typeof at.document>"u"){Me&&ne.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}jR({ignoreDuration:!0}),VR(),Iw(({from:e,to:t})=>{e!==void 0&&e!==t&&(jR({ignoreDuration:!0}),VR())})}}),_he="GlobalHandlers",vhe=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:_he,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(yhe(n),$3("onerror")),t.onunhandledrejection&&(bhe(n),$3("onunhandledrejection"))}}}),wV=vhe;function yhe(e){z6(t=>{const{stackParser:n,attachStacktrace:r}=CV();if(Ue()!==e||V8())return;const{msg:i,url:s,line:o,column:a,error:l}=t,f=She(Aw(n,l||i,void 0,r,!1),s,o,a);f.level="error",kp(f,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function bhe(e){H6(t=>{const{stackParser:n,attachStacktrace:r}=CV();if(Ue()!==e||V8())return;const i=TV(t),s=jl(i)?xV(i):Aw(n,i,void 0,r,!0);s.level="error",kp(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function TV(e){if(jl(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function xV(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function She(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},l=a.frames=a.frames||[],f=r,d=n,p=Ehe(t)??Vf();return l.length===0&&l.push({colno:f,filename:p,function:ba,in_app:!0,lineno:d}),e}function $3(e){Me&&ne.log(`Global Handler attached: ${e}`)}function CV(){return Ue()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Ehe(e){if(!(!$o(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;
518]+)/),n=t?t[1]:"text/javascript",r=e.includes("base64,");return`<data:${n}${r?",base64":""}>`}return e}}const AV=()=>({name:"HttpContext",preprocessEvent(e){if(!at.navigator&&!at.location&&!at.document)return;const t=bM(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),whe="cause",The=5,xhe="LinkedErrors",Che=((e={})=>{const t=e.limit||The,n=e.key||whe;return{name:xhe,preprocessEvent(r,i,s){const o=s.getOptions();Loe(Cw,o.stackParser,n,t,r,i)}}}),RV=Che,Ahe="SpotlightBrowser",Rhe=((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:Ahe,setup:()=>{Me&&ne.log("Using Sidecar URL",t)},processEvent:n=>Ohe(n)?null:n,afterAllSetup:n=>{khe(n,t)}}});function khe(e,t){const n=RM("fetch");let r=0;e.on("beforeEnvelope",i=>{if(r>3){ne.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:E0(i),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(s=>{s.status>=200&&s.status<400&&(r=0)},s=>{r++,ne.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",s)})})}const Ihe=Rhe;function Ohe(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}function Mhe(){return Nhe()?(Me&&tu(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Nhe(){if(typeof at.window>"u")return!1;const e=at;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=Vf(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(at===at.top&&r.some(s=>n.startsWith(`${s}://`)))}function kV(e){return[s8(),r8(),SV(),bV(),wV(),RV(),l8(),AV(),EV()]}function Lhe(e={}){const t=!e.skipBrowserExtensionCheck&&Mhe();let n=e.defaultIntegrations==null?kV():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:wre(e.stackParser||vV),integrations:Ose({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||OM};return ooe(X8,r)}function Dhe(){}function Phe(e){e()}function uk(e={}){const t=at.document,n=t?.head||t?.body;if(!n){Me&&ne.error("[showReportDialog] Global document not defined");return}const r=Mt(),s=Ue()?.getDsn();if(!s){Me&&ne.error("[showReportDialog] DSN not configured");return}const o={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||Mj()},a=at.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=kse(s,o);const{onLoad:l,onClose:f}=o;if(l&&(a.onload=l),f){const d=p=>{if(p.data==="__sentry_reportdialog_closed__")try{f()}finally{at.removeEventListener("message",d)}};at.addEventListener("message",d)}n.appendChild(a)}const $he=ft,Fhe="ReportingObserver",F3=new WeakMap,Uhe=((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(r){if(F3.has(Ue()))for(const i of r)Ts(s=>{s.setExtra("url",i.url);const o=`ReportingObserver [${i.type}]`;let a="No details available";if(i.body){const l={};for(const f in i.body)l[f]=i.body[f];if(s.setExtra("body",l),i.type==="crash"){const f=i.body;a=[f.crashId||"",f.reason||""].join(" ").trim()||a}else a=i.body.message||a}Ij(`${o}: ${a}`)})}return{name:Fhe,setupOnce(){if(!Ale())return;new $he.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){F3.set(r,!0)}}}),Bhe=Uhe,zhe="HttpClient",Hhe=((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:zhe,setup(n){Zhe(n,t),Jhe(n,t)}}}),jhe=Hhe;function Vhe(e,t,n,r,i){if(OV(e,n.status,n.url)){const s=Qhe(t,r);let o,a,l,f;NV()&&([o,l]=U3("Cookie",s),[a,f]=U3("Set-Cookie",n));const d=MV({url:s.url,method:s.method,status:n.status,requestHeaders:o,responseHeaders:a,requestCookies:l,responseCookies:f,error:i,type:"fetch"});kp(d)}}function U3(e,t){const n=Whe(t.headers);let r;try{const i=n[e]||n[e.toLowerCase()]||void 0;i&&(r=IV(i))}catch{}return[n,r]}function Ghe(e,t,n,r,i){if(OV(e,t.status,t.responseURL)){let s,o,a;if(NV()){try{const f=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;f&&(o=IV(f))}catch{}try{a=Yhe(t)}catch{}s=r}const l=MV({url:t.responseURL,method:n,status:t.status,requestHeaders:s,responseHeaders:a,responseCookies:o,error:i,type:"xhr"});kp(l)}}function qhe(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function IV(e){return e.split("; ").reduce((t,n)=>{const[r,i]=n.split("=");return r&&i&&(t[r]=i),t},{})}function Whe(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function Yhe(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
519`).reduce((n,r)=>{const[i,s]=r.split(": ");return i&&s&&(n[i]=s),n},{}):{}}function Xhe(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function Khe(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function Zhe(e,t){R8()&&pM(n=>{if(Ue()!==e)return;const{response:r,args:i,error:s,virtualError:o}=n,[a,l]=i;r&&Vhe(t,a,r,l,s||o)},!1)}function Jhe(e,t){"XMLHttpRequest"in ft&&kM(n=>{if(Ue()!==e)return;const{error:r,virtualError:i}=n,s=n.xhr,o=s[fc];if(!o)return;const{method:a,request_headers:l}=o;try{Ghe(t,s,a,l,r||i)}catch(f){Me&&ne.warn("Error while extracting response event form XHR response",f)}})}
519function OV(e,t,n){return Khe(e.failedRequestStatusCodes,t)&&Xhe(e.failedRequestTargets,n)&&!t8(n,Ue())}function MV(e){const t=Ue(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,s={message:i,exception:{values:[{type:"Error",value:i,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:qhe(e.responseHeaders)}}};return Ec(s,{type:`auto.http.client.${e.type}`,handled:!1}),s}function Qhe(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function NV(){const e=Ue();return e?!!e.getOptions().sendDefaultPii:!1}const SC=ft,epe=7,tpe="ContextLines",npe=((e={})=>{const t=e.frameContextLines!=null?e.frameContextLines:epe;return{name:tpe,processEvent(n){return ipe(n,t)}}}),rpe=npe;function ipe(e,t){const n=SC.document,r=SC.location&&e8(SC.location.href);if(!n||!r)return e;const i=e.exception?.values;if(!i?.length)return e;const s=n.documentElement.innerHTML;if(!s)return e;const o=["<!DOCTYPE html>","<html>",...s.split(`
520`),"</html>"];return i.forEach(a=>{const l=a.stacktrace;l?.frames&&(l.frames=l.frames.map(f=>spe(f,o,r,t)))}),e}function spe(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||Pre(t,e,r),e}const ope="GraphQLClient",ape=(e=>({name:ope,setup(t){cpe(t,e),lpe(t,e)}}));function cpe(e,t){e.on("beforeOutgoingRequestSpan",(n,r)=>{const s=It(n).data||{};if(!(s[Us]==="http.client"))return;const l=s[Jre]||s["http.url"],f=s[Zre]||s["http.method"];if(!$o(l)||!$o(f))return;const{endpoints:d}=t,p=Fo(l,d),m=DV(r);if(p&&m){const _=PV(m);if(_){const v=LV(_);n.updateName(`${f} ${l} (${v})`),n.setAttribute("graphql.document",m)}}})}function lpe(e,t){e.on("beforeOutgoingRequestBreadcrumb",(n,r)=>{const{category:i,type:s,data:o}=n;if(s==="http"&&(i==="fetch"||i==="xhr")){const d=o?.url,{endpoints:p}=t,m=Fo(d,p),_=DV(r);if(m&&o&&_){const v=PV(_);if(!o.graphql&&v){const E=LV(v);o["graphql.document"]=v.query,o["graphql.operation"]=E}}}})}function LV(e){const{query:t,operationName:n}=e,{operationName:r=n,operationType:i}=upe(t);return r?`${i} ${r}`:`${i}`}function DV(e){const t="xhr"in e;let n;if(t){const r=e.xhr[fc];n=r&&P0(r.body)[0]}else{const r=IM(e.input);n=P0(r)[0]}return n}function upe(e){const t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};const i=e.match(n);return i?{operationType:i[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function PV(e){let t;try{const n=JSON.parse(e);!!n.query&&(t=n)}finally{return t}}const fpe=ape,Qn=ft,MM="sentryReplaySession",dpe="replay_event",NM="Unable to send Replay",hpe=3e5,ppe=9e5,gpe=5e3,mpe=5500,_pe=6e4,vpe=5e3,ype=3,B3=15e4,gb=5e3,bpe=3e3,Spe=300,LM=2e7,Epe=4999,wpe=5e4,z3=36e5;var Tpe=Object.defineProperty,xpe=(e,t,n)=>t in e?Tpe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H3=(e,t,n)=>xpe(e,typeof t!="symbol"?t+"":t,n),ti=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ti||{});function Cpe(e){return e.nodeType===e.ELEMENT_NODE}function Mm(e){return e?.host?.shadowRoot===e}function Nm(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Ape(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Rpe(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function $0(e){try{const t=e.rules||e.cssRules;return t?Ape(Array.from(t,$V).join("")):null}catch{return null}}function kpe(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,i=r[n],s=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}function $V(e){let t;if(Ope(e))try{t=$0(e.styleSheet)||Rpe(e)}catch{}else if(Mpe(e)){let n=e.cssText;const r=e.selectorText.includes(":"),i=typeof e.style.all=="string"&&e.style.all;if(i&&(n=kpe(e)),r&&(n=Ipe(n)),r||i)return n}return t||e.cssText}function Ipe(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Ope(e){return"styleSheet"in e}function Mpe(e){return"selectorText"in e}let FV=class{constructor(){H3(this,"idNodeMap",new Map),H3(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);
520this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Npe(){return new FV}function Ow({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function l_({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function Gh(e){return e.toLowerCase()}function fk(e){return e.toUpperCase()}const j3="__rrweb_original__";function Lpe(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let i=0;i<e.height;i+=n){const s=t.getImageData,o=j3 in s?s[j3]:s;if(new Uint32Array(o.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(l=>l!==0))return!1}return!0}function DM(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Gh(t):null}function F0(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function UV(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}const V3={};function BV(e){const t=V3[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const s=i.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(i)}catch{}return V3[e]=r.bind(window)}function dk(...e){return BV("setTimeout")(...e)}function zV(...e){return BV("clearTimeout")(...e)}function HV(e){try{return e.contentDocument}catch{}}let Dpe=1;const Ppe=new RegExp("[^a-z0-9-_:]"),u_=-2;function PM(){return Dpe++}function $pe(e){if(e instanceof HTMLFormElement)return"form";const t=Gh(e.tagName);return Ppe.test(t)?"div":t}function Fpe(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let zd,G3;const Upe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Bpe=/^(?:[a-z+]+:)?\/\//i,zpe=/^www\..*/i,Hpe=/^(data:)([^,]*),(.*)/i;function jpe(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let i of n){if(i=i.trim(),!i)continue;const s=i.indexOf(":");if(s===-1){r.push(i);continue}const o=i.slice(0,s).trim();t.has(o)||r.push(i)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function U0(e,t){return(e||"").replace(Upe,(n,r,i,s,o,a)=>{const l=i||o||a,f=r||s||"";if(!l)return n;if(Bpe.test(l)||zpe.test(l))return`url(${f}${l}${f})`;if(Hpe.test(l))return`url(${f}${l}${f})`;if(l[0]==="/")return`url(${f}${Fpe(t)+l}${f})`;const d=t.split("/"),p=l.split("/");d.pop();for(const m of p)m!=="."&&(m===".."?d.pop():d.push(m));return`url(${f}${d.join("/")}${f})`})}const Vpe=/^[^ \t\n\r\u000c]+/,Gpe=/^[, \t\n\r\u000c]+/;function qpe(e,t){if(t.trim()==="")return t;let n=0;function r(s){let o;const a=s.exec(t.substring(n));return a?(o=a[0],n+=o.length,o):""}const i=[];for(;r(Gpe),!(n>=t.length);){let s=r(Vpe);if(s.slice(-1)===",")s=sh(e,s.substring(0,s.length-1)),i.push(s);else{let o="";s=sh(e,s);let a=!1;for(;;){const l=t.charAt(n);if(l===""){i.push((s+o).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){n+=1,i.push((s+o).trim());break}else l==="("&&(a=!0);o+=l,n+=1}}}return i.join(", ")}const q3=new WeakMap;function sh(e,t){return!t||t.trim()===""?t:Mw(e,t)}function Wpe(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Mw(e,t){let n=q3.get(e);if(n||(n=e.createElement("a"),q3.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function jV(e,t,n,r,i,s,o){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return sh(e,r);if(n==="xlink:href"&&r[0]!=="#")return sh(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return sh(e,r);if(n==="srcset")return qpe(e,r);if(n==="style"){let a=U0(r,Mw(e));return o&&o.size>0&&(a=jpe(a,o)),a}else if(t==="object"&&n==="data")return sh(e,r);return typeof s=="function"?s(n,r,i):r}function VV(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Ype(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const s=e.classList[i];if(t.test(s))return!0}if(n)return e.matches(n)}catch{}return!1}function Xpe(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function ff(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ff(e.parentNode,t,n,r+1)}function oh(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(Xpe(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function qh(e,t,n,r,i,s){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const f=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(f))return!0}let a=-1,l=-1;if(s){if(l=ff(o,oh(r,i)),l<0)return!0;a=ff(o,oh(t,n),l>=0?l:1/0)}else{if(a=ff(o,oh(t,n)),a<0)return!1;l=ff(o,oh(r,i),a>=0?a:1/0)}return a>=0?l>=0?a<=l:!0:l>=0?!1:!!s}catch{}return!!s}function Kpe(e,t,n){const r=e.contentWindow;if(!r)return;let i=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){const a=dk(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{zV(a),i=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return dk(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Zpe(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;const s=dk(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{zV(s),r=!0,t()})}function Jpe(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:a,maskAttributeFn:l,maskTextClass:f,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:_,maskInputOptions:v={},maskTextFn:E,maskInputFn:b,dataURLOptions:w={}
520,inlineImages:T,recordCanvas:R,keepIframeSrcFn:C,newlyAddedElement:k=!1,ignoreCSSAttributes:M}=t,I=Qpe(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ti.Document,childNodes:[],compatMode:e.compatMode}:{type:ti.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ti.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return tge(e,{doc:n,blockClass:i,blockSelector:s,unblockSelector:o,inlineStylesheet:_,maskAttributeFn:l,maskInputOptions:v,maskInputFn:b,dataURLOptions:w,inlineImages:T,recordCanvas:R,keepIframeSrcFn:C,newlyAddedElement:k,rootId:I,maskTextClass:f,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,ignoreCSSAttributes:M});case e.TEXT_NODE:return ege(e,{doc:n,maskAllText:a,maskTextClass:f,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,maskTextFn:E,maskInputOptions:v,maskInputFn:b,rootId:I});case e.CDATA_SECTION_NODE:return{type:ti.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:ti.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}function Qpe(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function ege(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:l,maskInputFn:f,rootId:d}=t,p=e.parentNode&&e.parentNode.tagName;let m=e.textContent;const _=p==="STYLE"?!0:void 0,v=p==="SCRIPT"?!0:void 0,E=p==="TEXTAREA"?!0:void 0;if(_&&m){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(m=$0(e.parentNode.sheet))}catch(w){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${w}`,e)}m=U0(m,Mw(t.doc))}v&&(m="SCRIPT_PLACEHOLDER");const b=qh(e,r,s,i,o,n);if(!_&&!v&&!E&&m&&b&&(m=a?a(m,e.parentElement):m.replace(/[\S]/g,"*")),E&&m&&(l.textarea||b)&&(m=f?f(m,e.parentNode):m.replace(/[\S]/g,"*")),p==="OPTION"&&m){const w=Ow({type:null,tagName:p,maskInputOptions:l});m=l_({isMasked:qh(e,r,s,i,o,w),element:e,value:m,maskInputFn:f})}return{type:ti.Text,textContent:m||"",isStyle:_,rootId:d}}function tge(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:s,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:l,maskInputFn:f,dataURLOptions:d={},inlineImages:p,recordCanvas:m,keepIframeSrcFn:_,newlyAddedElement:v=!1,rootId:E,maskTextClass:b,unmaskTextClass:w,maskTextSelector:T,unmaskTextSelector:R,ignoreCSSAttributes:C}=t,k=Ype(e,r,i,s),M=$pe(e);let I={};const $=e.attributes.length;for(let V=0;V<$;V++){const N=e.attributes[V];N.name&&!VV(M,N.name,N.value)&&(I[N.name]=jV(n,M,Gh(N.name),N.value,e,l,C))}if(M==="link"&&o){const V=Array.from(n.styleSheets).find(U=>U.href===e.href);let N=null;V&&(N=$0(V)),N&&(I.rel=null,I.href=null,I.crossorigin=null,I._cssText=U0(N,V.href))}if(M==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const V=$0(e.sheet);
520V&&(I._cssText=U0(V,Mw(n)))}if(M==="input"||M==="textarea"||M==="select"||M==="option"){const V=e,N=DM(V),U=F0(V,fk(M),N),K=V.checked;if(N!=="submit"&&N!=="button"&&U){const j=qh(V,b,T,w,R,Ow({type:N,tagName:fk(M),maskInputOptions:a}));I.value=l_({isMasked:j,element:V,value:U,maskInputFn:f})}K&&(I.checked=K)}if(M==="option"&&(e.selected&&!a.select?I.selected=!0:delete I.selected),M==="canvas"&&m){if(e.__context==="2d")Lpe(e)||(I.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const V=e.toDataURL(d.type,d.quality),N=n.createElement("canvas");N.width=e.width,N.height=e.height;const U=N.toDataURL(d.type,d.quality);V!==U&&(I.rr_dataURL=V)}}if(M==="img"&&p){zd||(zd=n.createElement("canvas"),G3=zd.getContext("2d"));const V=e,N=V.currentSrc||V.getAttribute("src")||"<unknown-src>",U=V.crossOrigin,K=()=>{V.removeEventListener("load",K);try{zd.width=V.naturalWidth,zd.height=V.naturalHeight,G3.drawImage(V,0,0),I.rr_dataURL=zd.toDataURL(d.type,d.quality)}catch(j){if(V.crossOrigin!=="anonymous"){V.crossOrigin="anonymous",V.complete&&V.naturalWidth!==0?K():V.addEventListener("load",K);return}else console.warn(`Cannot inline img src=${N}! Error: ${j}`)}V.crossOrigin==="anonymous"&&(U?I.crossOrigin=U:V.removeAttribute("crossorigin"))};V.complete&&V.naturalWidth!==0?K():V.addEventListener("load",K)}if((M==="audio"||M==="video")&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),v||(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),k){const{width:V,height:N}=e.getBoundingClientRect();I={class:I.class,rr_width:`${V}px`,rr_height:`${N}px`}}M==="iframe"&&!_(I.src)&&(!k&&!HV(e)&&(I.rr_src=I.src),delete I.src);let Q;try{customElements.get(M)&&(Q=!0)}catch{}return{type:ti.Element,tagName:M,attributes:I,childNodes:[],isSVG:Wpe(e)||void 0,needBlock:k,rootId:E,isCustom:Q}}function Zn(e){return e==null?"":e.toLowerCase()}function nge(e,t){if(t.comment&&e.type===ti.Comment)return!0;if(e.type===ti.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&UV(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Zn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Zn(e.attributes.name)==="application-name"||Zn(e.attributes.rel)==="icon"||Zn(e.attributes.rel)==="apple-touch-icon"||Zn(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Zn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Zn(e.attributes.property).match(/^(og|twitter|fb):/)||Zn(e.attributes.name).match(/^(og|twitter):/)||Zn(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Zn(e.attributes.name)==="robots"||Zn(e.attributes.name)==="googlebot"||Zn(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Zn(e.attributes.name)==="author"||Zn(e.attributes.name)==="generator"||Zn(e.attributes.name)==="framework"||Zn(e.attributes.name)==="publisher"||Zn(e.attributes.name)==="progid"||Zn(e.attributes.property).match(/^article:/)||Zn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Zn(e.attributes.name)==="google-site-verification"||Zn(e.attributes.name)==="yandex-verification"||Zn(e.attributes.name)==="csrf-token"||Zn(e.attributes.name)==="p:domain_verify"||Zn(e.attributes.name)==="verify-v1"||Zn(e.attributes.name)==="verification"||Zn(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ah(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:a,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,skipChild:m=!1,inlineStylesheet:_=!0,maskInputOptions:v={},maskAttributeFn:E,maskTextFn:b,maskInputFn:w,slimDOMOptions:T,dataURLOptions:R={},inlineImages:C=!1,recordCanvas:k=!1,onSerialize:M,onIframeLoad:I,iframeLoadTimeout:$=5e3,onBlockedImageLoad:Q,onStylesheetLoad:V,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:U=()=>!1,newlyAddedElement:K=!1,ignoreCSSAttributes:j}=t;let{preserveWhiteSpace:fe=!0}=t;const P=Jpe(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:a,unblockSelector:o,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:_,maskInputOptions:v,maskAttributeFn:E,maskTextFn:b,maskInputFn:w,dataURLOptions:R,inlineImages:C,recordCanvas:k,keepIframeSrcFn:U,newlyAddedElement:K,ignoreCSSAttributes:j}
520);if(!P)return console.warn(e,"not serialized"),null;let ee;r.hasNode(e)?ee=r.getId(e):nge(P,T)||!fe&&P.type===ti.Text&&!P.isStyle&&!P.textContent.replace(/^\s+|\s+$/gm,"").length?ee=u_:ee=PM();const W=Object.assign(P,{id:ee});if(r.add(e,W),ee===u_)return null;M&&M(e);let de=!m;if(W.type===ti.Element){de=de&&!W.needBlock;const ce=e.shadowRoot;ce&&Nm(ce)&&(W.isShadowHost=!0)}if((W.type===ti.Document||W.type===ti.Element)&&de){T.headWhitespace&&W.type===ti.Element&&W.tagName==="head"&&(fe=!1);const ce={doc:n,mirror:r,blockClass:i,blockSelector:s,maskAllText:a,unblockSelector:o,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,skipChild:m,inlineStylesheet:_,maskInputOptions:v,maskAttributeFn:E,maskTextFn:b,maskInputFn:w,slimDOMOptions:T,dataURLOptions:R,inlineImages:C,recordCanvas:k,preserveWhiteSpace:fe,onSerialize:M,onIframeLoad:I,iframeLoadTimeout:$,onBlockedImageLoad:Q,onStylesheetLoad:V,stylesheetLoadTimeout:N,keepIframeSrcFn:U,ignoreCSSAttributes:j},L=e.childNodes?Array.from(e.childNodes):[];for(const J of L){const re=ah(J,ce);re&&W.childNodes.push(re)}if(Cpe(e)&&e.shadowRoot)for(const J of Array.from(e.shadowRoot.childNodes)){const re=ah(J,ce);re&&(Nm(e.shadowRoot)&&(re.isShadow=!0),W.childNodes.push(re))}}if(e.parentNode&&Mm(e.parentNode)&&Nm(e.parentNode)&&(W.isShadow=!0),W.type===ti.Element&&W.tagName==="iframe"&&!W.needBlock&&Kpe(e,()=>{const ce=HV(e);if(ce&&I){const L=ah(ce,{doc:ce,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:a,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:_,maskInputOptions:v,maskAttributeFn:E,maskTextFn:b,maskInputFn:w,slimDOMOptions:T,dataURLOptions:R,inlineImages:C,recordCanvas:k,preserveWhiteSpace:fe,onSerialize:M,onIframeLoad:I,iframeLoadTimeout:$,onStylesheetLoad:V,stylesheetLoadTimeout:N,keepIframeSrcFn:U,ignoreCSSAttributes:j});L&&I(e,L)}},$),W.type===ti.Element&&W.tagName==="img"&&!e.complete&&W.needBlock){const ce=e,L=()=>{if(ce.isConnected&&!ce.complete&&Q)try{const J=ce.getBoundingClientRect();J.width>0&&J.height>0&&Q(ce,W,J)}catch{}ce.removeEventListener("load",L)};ce.isConnected&&ce.addEventListener("load",L)}return W.type===ti.Element&&W.tagName==="link"&&typeof W.attributes.rel=="string"&&(W.attributes.rel==="stylesheet"||W.attributes.rel==="preload"&&typeof W.attributes.href=="string"&&UV(W.attributes.href)==="css")&&Zpe(e,()=>{if(V){const ce=ah(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:a,maskTextClass:l,unmaskTextClass:f,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:_,maskInputOptions:v,maskAttributeFn:E,maskTextFn:b,maskInputFn:w,slimDOMOptions:T,dataURLOptions:R,inlineImages:C,recordCanvas:k,preserveWhiteSpace:fe,onSerialize:M,onIframeLoad:I,iframeLoadTimeout:$,onStylesheetLoad:V,stylesheetLoadTimeout:N,keepIframeSrcFn:U,ignoreCSSAttributes:j});ce&&V(e,ce)}},N),W.type===ti.Element&&delete W.needBlock,W}function rge(e,t){const{mirror:n=new FV,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:f=null,unmaskTextSelector:d=null,inlineStylesheet:p=!0,inlineImages:m=!1,recordCanvas:_=!1,maskAllInputs:v=!1,maskAttributeFn:E,maskTextFn:b,maskInputFn:w,slimDOM:T=!1,dataURLOptions:R,preserveWhiteSpace:C,onSerialize:k,onIframeLoad:M,iframeLoadTimeout:I,onBlockedImageLoad:$,onStylesheetLoad:Q,stylesheetLoadTimeout:V,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:U=new Set([])}=t||{};return ah(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,maskAllText:o,maskTextClass:a,unmaskTextClass:l,maskTextSelector:f,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:v===!0?{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}:v===!1?{}:v,maskAttributeFn:E,maskTextFn:b,maskInputFn:w,slimDOMOptions:T===!0||T==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:T==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
520:T===!1?{}:T,dataURLOptions:R,inlineImages:m,recordCanvas:_,preserveWhiteSpace:C,onSerialize:k,onIframeLoad:M,iframeLoadTimeout:I,onBlockedImageLoad:$,onStylesheetLoad:Q,stylesheetLoadTimeout:V,keepIframeSrcFn:N,newlyAddedElement:!1,ignoreCSSAttributes:U})}function Ji(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Jd=`Please stop import mirror directly. Instead of that,\r
521now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
522or you can use record.mirror to access the mirror instance during recording.`;let W3={map:{},getId(){return console.error(Jd),-1},getNode(){return console.error(Jd),null},removeNodeFromMap(){console.error(Jd)},has(){return console.error(Jd),!1},reset(){console.error(Jd)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(W3=new Proxy(W3,{get(e,t,n){return t==="map"&&console.error(Jd),Reflect.get(e,t,n)}}));function f_(e,t,n={}){let r=null,i=0;return function(...s){const o=Date.now();!i&&n.leading===!1&&(i=o);const a=t-(o-i),l=this;a<=0||a>t?(r&&(uge(r),r=null),i=o,e.apply(l,s)):!r&&n.trailing!==!1&&(r=Nw(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(l,s)},a))}}function GV(e,t,n,r,i=window){const s=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(o){Nw(()=>{n.set.call(this,o)},0),s&&s.set&&s.set.call(this,o)}}),()=>GV(e,t,s||{},!0)}function $M(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}let B0=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(B0=()=>new Date().getTime());function qV(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function WV(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function YV(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function XV(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Ds(e,t,n,r,i){if(!e)return!1;const s=XV(e);if(!s)return!1;const o=oh(t,n);if(!i){const f=r&&s.matches(r);return o(s)&&!f}const a=ff(s,o);let l=-1;return a<0?!1:(r&&(l=ff(s,oh(null,r))),a>-1&&l<0?!0:a<l)}function ige(e,t){return t.getId(e)!==-1}function EC(e,t){return t.getId(e)===u_}function KV(e,t){if(Mm(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?KV(e.parentNode,t):!0:!0}function hk(e){return!!e.changedTouches}function sge(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function ZV(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function JV(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function pk(e){return!!e?.shadowRoot}let oge=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function QV(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function age(e){let t=e,n;for(;n=QV(t);)t=n;return t}function cge(e){const t=e.ownerDocument;if(!t)return!1;const n=age(e);return t.contains(n)}function eG(e){const t=e.ownerDocument;return t?t.contains(e)||cge(e):!1}const Y3={};function FM(e){const t=Y3[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);
522const s=i.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(i)}catch{}return Y3[e]=r.bind(window)}function lge(...e){return FM("requestAnimationFrame")(...e)}function Nw(...e){return FM("setTimeout")(...e)}function uge(...e){return FM("clearTimeout")(...e)}var Vt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Vt||{}),xt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(xt||{}),Xi=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Xi||{}),Qa=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Qa||{}),Qd=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Qd||{});function UM(e){try{return e.contentDocument}catch{}}function fge(e){try{return e.contentWindow}catch{}}function X3(e){return"__ln"in e}let dge=class{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&X3(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&X3(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}};const K3=(e,t)=>`${e}@${t}`;let hge=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new dge,i=l=>{let f=l,d=u_;for(;d===u_;)f=f&&f.nextSibling,d=f&&this.mirror.getId(f);return d},s=l=>{if(!l.parentNode||!eG(l))return;const f=Mm(l.parentNode)?this.mirror.getId(QV(l)):this.mirror.getId(l.parentNode),d=i(l);if(f===-1||d===-1)return r.addNode(l);const p=ah(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:m=>{ZV(m,this.mirror)&&!Ds(m,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(m),JV(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),pk(l)&&this.shadowDomManager.addShadowRoot(l.shadowRoot,this.doc)},onIframeLoad:(m,_)=>{Ds(m,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(m,_),m.contentWindow&&this.canvasManager.addWindow(m.contentWindow),this.shadowDomManager.observeAttachShadow(m))},onStylesheetLoad:(m,_)=>{this.stylesheetManager.attachLinkElement(m,_)},onBlockedImageLoad:(m,_,{width:v,height:E})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:_.id,attributes:{style:{width:`${v}px`,height:`${E}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});
vendor: 4,869 bytes, line 522
522p&&(t.push({parentId:f,nextId:d,node:p}),n.add(p.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const l of this.movedSet)Z3(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||s(l);for(const l of this.addedSet)!J3(this.droppedSet,l)&&!Z3(this.removes,l,this.mirror)||J3(this.movedSet,l)?s(l):this.droppedSet.add(l);let o=null;for(;r.length;){let l=null;if(o){const f=this.mirror.getId(o.value.parentNode),d=i(o.value);f!==-1&&d!==-1&&(l=o)}if(!l){let f=r.tail;for(;f;){const d=f;if(f=f.previous,d){const p=this.mirror.getId(d.value.parentNode);if(i(d.value)===-1)continue;if(p!==-1){l=d;break}else{const _=d.value;if(_.parentNode&&_.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const v=_.parentNode.host;if(this.mirror.getId(v)!==-1){l=d;break}}}}}}if(!l){for(;r.head;)r.removeNode(r.head.value);break}o=l.previous,r.removeNode(l.value),s(l.value)}const a={texts:this.texts.map(l=>({id:this.mirror.getId(l.node),value:l.value})).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{const{attributes:f}=l;if(typeof f.style=="string"){const d=JSON.stringify(l.styleDiff),p=JSON.stringify(l._unchangedStyles);d.length<f.style.length&&(d+p).split("var(").length===f.style.split("var(").length&&(f.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:f}}).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!EC(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Ds(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:qh(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,XV(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,i=t.target.getAttribute(r);if(r==="value"){const o=DM(n),a=n.tagName;i=F0(n,a,o);const l=Ow({maskInputOptions:this.maskInputOptions,tagName:a,type:o}),f=qh(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,l);i=l_({isMasked:f,element:n,value:i,maskInputFn:this.maskInputFn})}if(Ds(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let s=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!UM(n))r="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!VV(n.tagName,r)&&(s.attributes[r]=jV(this.doc,Gh(n.tagName),Gh(r),i,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&&o.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const l=n.style.getPropertyValue(a),f=n.style.getPropertyPriority(a);l!==o.style.getPropertyValue(a)||f!==o.style.getPropertyPriority(a)?f===""?s.styleDiff[a]=l:s.styleDiff[a]=[l,f]:s._unchangedStyles[a]=[l,f]}for(const a of Array.from(o.style))n.style.getPropertyValue(a)===""&&(s.styleDiff[a]=!1)}break}case"childList":{if(Ds(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=Mm(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Ds(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||EC(n,this.mirror)||!ige(n,this.mirror)||(this.addedSet.has(n)?(gk(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||KV(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[K3(r,i)]?gk(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:Mm(t.target)&&Nm(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(EC(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[K3(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Ds(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEac
522h(r=>this.genAdds(r)),pk(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]})}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 gk(e,t){e.delete(t),t.childNodes?.forEach(n=>gk(e,n))}function Z3(e,t,n){return e.length===0?!1:pge(e,t,n)}function pge(e,t,n){let r=t.parentNode;for(;r;){const i=n.getId(r);if(e.some(s=>s.id===i))return!0;r=r.parentNode}return!1}function J3(e,t){return e.size===0?!1:tG(e,t)}function tG(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:tG(e,n):!1}let Lm;function gge(e){Lm=e}function mge(){Lm=void 0}const hn=e=>Lm?(...n)=>{try{return e(...n)}catch(r){if(Lm&&Lm(r)===!0)return()=>{};throw r}}:e,ch=[];function wv(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function nG(e,t){const n=new hge;ch.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(r=window[i]);const s=new r(hn(o=>{e.onMutation&&e.onMutation(o)===!1||n.processMutations.bind(n)(o)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function _ge({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,s=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],a;const l=f_(hn(p=>{const m=Date.now()-a;e(o.map(_=>(_.timeOffset-=m,_)),p),o=[],a=null}),s),f=hn(f_(hn(p=>{const m=wv(p),{clientX:_,clientY:v}=hk(p)?p.changedTouches[0]:p;a||(a=B0()),o.push({x:_,y:v,id:r.getId(m),timeOffset:B0()-a}),l(typeof DragEvent<"u"&&p instanceof DragEvent?xt.Drag:p instanceof MouseEvent?xt.MouseMove:xt.TouchMove)}),i,{trailing:!1})),d=[Ji("mousemove",f,n),Ji("touchmove",f,n),Ji("drag",f,n)];return hn(()=>{d.forEach(p=>p())})}function vge({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,l=[];let f=null;const d=p=>m=>{const _=wv(m);if(Ds(_,r,i,s,!0))return;let v=null,E=p;if("pointerType"in m){switch(m.pointerType){case"mouse":v=Qa.Mouse;break;case"touch":v=Qa.Touch;break;case"pen":v=Qa.Pen;break}v===Qa.Touch?Xi[p]===Xi.MouseDown?E="TouchStart":Xi[p]===Xi.MouseUp&&(E="TouchEnd"):Qa.Pen}else hk(m)&&(v=Qa.Touch);v!==null?(f=v,(E.startsWith("Touch")&&v===Qa.Touch||E.startsWith("Mouse")&&v===Qa.Mouse)&&(v=null)):Xi[p]===Xi.Click&&(v=f,f=null);const b=hk(m)?m.changedTouches[0]:m;if(!b)return;const w=n.getId(_),{clientX:T,clientY:R}=b;hn(e)({type:Xi[E],id:w,x:T,y:R,...v!==null&&{pointerType:v}})};return Object.keys(Xi).filter(p=>Number.isNaN(Number(p))&&!p.endsWith("_Departed")&&a[p]!==!1).forEach(p=>{let m=Gh(p);const _=d(p);if(window.PointerEvent)switch(Xi[p]){case Xi.MouseDown:case Xi.MouseUp:m=m.replace("mouse","pointer");break;case Xi.TouchStart:case Xi.TouchEnd:return}l.push(Ji(m,_,t))}),hn(()=>{l.forEach(p=>p())})}function rG({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,sampling:o}){const a=hn(f_(hn(l=>{const f=wv(l);if(!f||Ds(f,r,i,s,!0))return;const d=n.getId(f);if(f===t&&t.defaultView){const p=qV(t.defaultView);e({id:d,x:p.left,y:p.top})}else e({id:d,x:f.scrollLeft,y:f.scrollTop})}),o.scroll||100));return Ji("scroll",a,t)}function yge({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const i=hn(f_(hn(()=>{const s=WV(),o=YV();(n!==s||r!==o)&&(e({width:Number(o),height:Number(s)}),n=s,r=o)}),200));return Ji("resize",i,t)}const bge=["INPUT","TEXTAREA","SELECT"],Q3=new WeakMap;function Sge({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,ignoreClass:o,ignoreSelector:a,maskInputOptions:l,maskInputFn:f,sampling:d,userTr
522iggeredOnInput:p,maskTextClass:m,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:E}){function b(I){let $=wv(I);const Q=I.isTrusted,V=$&&fk($.tagName);if(V==="OPTION"&&($=$.parentElement),!$||!V||bge.indexOf(V)<0||Ds($,r,i,s,!0))return;const N=$;if(N.classList.contains(o)||a&&N.matches(a))return;const U=DM($);let K=F0(N,V,U),j=!1;const fe=Ow({maskInputOptions:l,tagName:V,type:U}),P=qh($,m,v,_,E,fe);(U==="radio"||U==="checkbox")&&(j=$.checked),K=l_({isMasked:P,element:$,value:K,maskInputFn:f}),w($,p?{text:K,isChecked:j,userTriggered:Q}:{text:K,isChecked:j});const ee=$.name;U==="radio"&&ee&&j&&t.querySelectorAll(`input[type="radio"][name="${ee}"]`).forEach(W=>{if(W!==$){const de=l_({isMasked:P,element:W,value:F0(W,V,U),maskInputFn:f});w(W,p?{text:de,isChecked:!j,userTriggered:!1}:{text:de,isChecked:!j})}})}function w(I,$){const Q=Q3.get(I);if(!Q||Q.text!==$.text||Q.isChecked!==$.isChecked){Q3.set(I,$);const V=n.getId(I);hn(e)({...$,id:V})}}const R=(d.input==="last"?["change"]:["input","change"]).map(I=>Ji(I,hn(b),t)),C=t.defaultView;if(!C)return()=>{R.forEach(I=>I())};const k=C.Object.getOwnPropertyDescriptor(C.HTMLInputElement.prototype,"value"),M=[[C.HTMLInputElement.prototype,"value"],[C.HTMLInputElement.prototype,"checked"],[C.HTMLSelectElement.prototype,"value"],[C.HTMLTextAreaElement.prototype,"value"],[C.HTMLSelectElement.prototype,"selectedIndex"],[C.HTMLOptionElement.prototype,"selected"]];return k&&k.set&&R.push(...M.map(I=>GV(I[0],I[1],{set(){hn(b)({target:this,isTrusted:!1})}},!1,C))),hn(()=>{R.forEach(I=>I())})}function z0(e){const t=[];function n(r,i){if(mb("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||mb("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||mb("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||mb("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(o)}return i}return n(e,t)}function yl(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function Ege({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:hn((d,p,m)=>{const[_,v]=m,{id:E,styleId:b}=yl(p,t,n.styleMirror);return(E&&E!==-1||b&&b!==-1)&&e({id:E,styleId:b,adds:[{rule:_,index:v}]}),d.apply(p,m)})});const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:hn((d,p,m)=>{const[_]=m,{id:v,styleId:E}=yl(p,t,n.styleMirror);return(v&&v!==-1||E&&E!==-1)&&e({id:v,styleId:E,removes:[{index:_}]}),d.apply(p,m)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:hn((d,p,m)=>{const[_]=m,{id:v,styleId:E}=yl(p,t,n.styleMirror);return(v&&v!==-1||E&&E!==-1)&&e({id:v,styleId:E,replace:_}),d.apply(p,m)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:hn((d,p,m)=>{const[_]=m,{id:v,styleId:E}=yl(p,t,n.styleMirror);return(v&&v!==-1||E&&E!==-1)&&e({id:v,styleId:E,replaceSync:_}),d.apply(p,m)})}));const l={};_b("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(_b("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),_b("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),_b("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const f={};return Object.entries(l).forEach(([d,p])=>{f[d]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(f[d].insertRule,{apply:hn((m,_,v)=>{const[E,b]=v,{id:w,styleId:T}=yl(_.parentStyleSheet,t,n.styleMirror);return(w&&w!==-1||T&&T!==-1)&&e({id:w,styleId:T,adds:[{rule:E,index:[...z0(_),b||0]}]}),m.apply(_,v)})}),p.prototype.deleteRule=new Proxy(f[d].deleteRule,{apply:hn((m,_,v)=>{const[E]=v,{id:b,styleId:w}=yl(_.parentStyleSheet,t,n.styleMirror);return(b&&b!==-1||w&&w!==-1)&&e({id:b,styleId:w,removes:[{index:[...z0(_),E]}]}),m.apply(_,v)})})}),hn(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=s,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([d,p])=>
522{p.prototype.insertRule=f[d].insertRule,p.prototype.deleteRule=f[d].deleteRule})})}function iG({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const i=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,s=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!i||!s?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return s.get?.call(this)},set(o){const a=s.set?.call(this,o);if(r!==null&&r!==-1)try{t.adoptStyleSheets(o,r)}catch{}return a}}),hn(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})}))}function wge({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:hn((a,l,f)=>{const[d,p,m]=f;if(n.has(d))return s.apply(l,[d,p,m]);const{id:_,styleId:v}=yl(l.parentRule?.parentStyleSheet,t,r.styleMirror);return(_&&_!==-1||v&&v!==-1)&&e({id:_,styleId:v,set:{property:d,value:p,priority:m},index:z0(l.parentRule)}),a.apply(l,f)})});const o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:hn((a,l,f)=>{const[d]=f;if(n.has(d))return o.apply(l,[d]);const{id:p,styleId:m}=yl(l.parentRule?.parentStyleSheet,t,r.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,remove:{property:d},index:z0(l.parentRule)}),a.apply(l,f)})}),hn(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o})}function Tge({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:s,doc:o}){const a=hn(f=>f_(hn(d=>{const p=wv(d);if(!p||Ds(p,t,n,r,!0))return;const{currentTime:m,volume:_,muted:v,playbackRate:E}=p;e({type:f,id:i.getId(p),currentTime:m,volume:_,muted:v,playbackRate:E})}),s.media||500)),l=[Ji("play",a(Qd.Play),o),Ji("pause",a(Qd.Pause),o),Ji("seeked",a(Qd.Seeked),o),Ji("volumechange",a(Qd.VolumeChange),o),Ji("ratechange",a(Qd.RateChange),o)];return hn(()=>{l.forEach(f=>f())})}function xge({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(l,f,d){const p=new s(l,f,d);return i.set(p,{family:l,buffer:typeof f!="string",descriptors:d,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),p};const o=$M(t.fonts,"add",function(a){return function(l){return Nw(hn(()=>{const f=i.get(l);f&&(e(f),i.delete(l))}),0),a.apply(this,[l])}});return r.push(()=>{n.FontFace=s}),r.push(o),hn(()=>{r.forEach(a=>a())})}function Cge(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:s,selectionCb:o}=e;let a=!0;const l=hn(()=>{const f=t.getSelection();if(!f||a&&f?.isCollapsed)return;a=f.isCollapsed||!1;const d=[],p=f.rangeCount||0;for(let m=0;m<p;m++){const _=f.getRangeAt(m),{startContainer:v,startOffset:E,endContainer:b,endOffset:w}=_;Ds(v,r,i,s,!0)||Ds(b,r,i,s,!0)||d.push({start:n.getId(v),startOffset:E,end:n.getId(b),endOffset:w})}o({ranges:d})});return l(),Ji("selectionchange",l)}function Age({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:$M(n.customElements,"define",function(i){return function(s,o,a){try{t({define:{name:s}})}catch{}return i.apply(this,[s,o,a])}})}function Rge(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=nG(e,e.doc));const i=_ge(e),s=vge(e),o=rG(e),a=yge(e,{win:n}),l=Sge(e),f=Tge(e);let d=()=>{},p=()=>{},m=()=>{},_=()=>{};e.recordDOM&&(d=Ege(e,{win:n}),p=iG(e,e.doc),m=wge(e,{win:n}),e.collectFonts&&(_=xge(e)));const v=Cge(e),E=Age(e),b=[];for(const w of e.plugins)b.push(w.observer(w.callback,n,w.options));return hn(()=>
522{ch.forEach(w=>w.reset()),r?.disconnect(),i(),s(),o(),a(),l(),f(),d(),p(),m(),_(),v(),E(),b.forEach(w=>w())})}function mb(e){return typeof window[e]<"u"}function _b(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}let mk=class{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,i){const s=r||this.getIdToRemoteIdMap(t),o=i||this.getRemoteIdToIdMap(t);let a=s.get(n);return a||(a=this.generateIdFn(),s.set(n,a),o.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(s=>this.getId(t,s,r,i))}getRemoteId(t,n,r){const i=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const s=i.get(n);return s||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}};class kge{constructor(){this.crossOriginIframeMirror=new mk(PM),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}let Ige=class{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new mk(PM),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new mk(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const r=UM(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const s=this.transformCrossOriginEvent(i,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case Vt.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:Vt.IncrementalSnapshot,data:{source:xt.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Vt.Meta:case Vt.Load:case Vt.DomContentLoaded:return!1;case Vt.Plugin:return n;case Vt.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Vt.IncrementalSnapshot:switch(n.data.source){case xt.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(r.node,i)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case xt.Drag:case xt.TouchMove:case xt.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case xt.ViewportResize:return!1;case xt.MediaInteraction:case xt.MouseInteraction:case xt.Scroll:case xt.CanvasMutation:case xt.Input:return this.replaceIds(n.data,t,["i
522d"]),n;case xt.StyleSheetRule:case xt.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case xt.Font:return n;case xt.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case xt.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,i){for(const s of i)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=t.getIds(r,n[s]):n[s]=t.getId(r,n[s]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==ti.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}};class Oge{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}let Mge=class{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Nm(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=nG({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(rG({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Nw(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(iG({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=UM(t),r=fge(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push($M(t.prototype,"attachShadow",function(i){return function(s){const o=i.call(this,s);return this.shadowRoot&&eG(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}};var eB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nge=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var vb=0;vb<eB.length;vb++)Nge[eB.charCodeAt(vb)]=vb;class tB{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}let Lge=class{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new oge,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},i=[];for(const s of t){let o;this.styleMirror.has(s)?o=this.styleMirror.getId(s):(o=this.styleMirror.add(s),i.push({styleId:o,rules:Array.from(s.rules||CSSRule,(a,l)=>({rule:$V(a),index:l}))})),r.styleIds.push(o)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},Dge=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(i=>i!==n)}add(t,n){this.active||(this.active=!0,lge(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}},Or,H0;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Ro=Npe();function _c(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:s=null,unblockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:l=null,maskAllText:f=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:m=null,unmaskTextSelector:_=null,inlineStylesheet:v=!0,maskAllInputs:E,maskInputOptions:b,slimDOMOptions:w,maskAttributeFn:T,maskInputFn:R,maskTextFn:C,maxCanvasSize:k=null,packFn:M,sampling:I={},dataURLOptions:$={}
522,mousemoveWait:Q,recordDOM:V=!0,recordCanvas:N=!1,recordCrossOriginIframes:U=!1,recordAfter:K=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:fe=!1,inlineImages:P=!1,plugins:ee,keepIframeSrcFn:W=()=>!1,ignoreCSSAttributes:de=new Set([]),errorHandler:ce,onMutation:L,getCanvasManager:J}=e;gge(ce);const re=U?window.parent===window:!0;let me=!1;if(!re)try{window.parent.document&&(me=!1)}catch{me=!0}if(re&&!t)throw new Error("emit function is required");if(!re&&!me)return()=>{};Q!==void 0&&I.mousemove===void 0&&(I.mousemove=Q),Ro.reset();const be=E===!0?{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}:b!==void 0?b:{},Ee=w===!0||w==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:w==="all",headMetaDescKeywords:w==="all"}:w||{};sge();let Fe,Be=0;const dt=Ze=>{for(const kn of ee||[])kn.eventProcessor&&(Ze=kn.eventProcessor(Ze));return M&&!me&&(Ze=M(Ze)),Ze};Or=(Ze,kn)=>{const Tt=Ze;if(Tt.timestamp=B0(),ch[0]?.isFrozen()&&Tt.type!==Vt.FullSnapshot&&!(Tt.type===Vt.IncrementalSnapshot&&Tt.data.source===xt.Mutation)&&ch.forEach(Kn=>Kn.unfreeze()),re)t?.(dt(Tt),kn);else if(me){const Kn={type:"rrweb",event:dt(Tt),origin:window.location.origin,isCheckout:kn};window.parent.postMessage(Kn,"*")}if(Tt.type===Vt.FullSnapshot)Fe=Tt,Be=0;else if(Tt.type===Vt.IncrementalSnapshot){if(Tt.data.source===xt.Mutation&&Tt.data.isAttachIframe)return;Be++;const Kn=r&&Be>=r,it=n&&Fe&&Tt.timestamp-Fe.timestamp>n;(Kn||it)&&Sn(!0)}};const pt=Ze=>{Or({type:Vt.IncrementalSnapshot,data:{source:xt.Mutation,...Ze}})},Hn=Ze=>Or({type:Vt.IncrementalSnapshot,data:{source:xt.Scroll,...Ze}}),Lr=Ze=>Or({type:Vt.IncrementalSnapshot,data:{source:xt.CanvasMutation,...Ze}}),jn=Ze=>Or({type:Vt.IncrementalSnapshot,data:{source:xt.AdoptedStyleSheet,...Ze}}),tt=new Lge({mutationCb:pt,adoptedStyleSheetCb:jn}),mt=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new kge:new Ige({mirror:Ro,mutationCb:pt,stylesheetManager:tt,recordCrossOriginIframes:U,wrappedEmit:Or});for(const Ze of ee||[])Ze.getMirror&&Ze.getMirror({nodeMirror:Ro,crossOriginIframeMirror:mt.crossOriginIframeMirror,crossOriginIframeStyleMirror:mt.crossOriginIframeStyleMirror});const vn=new Dge,rn=$ge(J,{mirror:Ro,win:window,mutationCb:Ze=>Or({type:Vt.IncrementalSnapshot,data:{source:xt.CanvasMutation,...Ze}}),recordCanvas:N,blockClass:i,blockSelector:s,unblockSelector:o,maxCanvasSize:k,sampling:I.canvas,dataURLOptions:$,errorHandler:ce}),sn=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Oge:new Mge({mutationCb:pt,scrollCb:Hn,bypassOptions:{onMutation:L,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:f,maskTextClass:d,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:_,inlineStylesheet:v,maskInputOptions:be,dataURLOptions:$,maskAttributeFn:T,maskTextFn:C,maskInputFn:R,recordCanvas:N,inlineImages:P,sampling:I,slimDOMOptions:Ee,iframeManager:mt,stylesheetManager:tt,canvasManager:rn,keepIframeSrcFn:W,processedNodeManager:vn,ignoreCSSAttributes:de},mirror:Ro}),Sn=(Ze=!1)=>{if(!V)return;Or({type:Vt.Meta,data:{href:window.location.href,width:YV(),height:WV()}},Ze),tt.reset(),sn.init(),ch.forEach(Tt=>Tt.lock());const kn=rge(document,{mirror:Ro,blockClass:i,blockSelector:s,unblockSelector:o,maskAllText:f,maskTextClass:d,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:_,inlineStylesheet:v,maskAllInputs:be,maskAttributeFn:T,maskInputFn:R,maskTextFn:C,slimDOM:Ee,dataURLOptions:$,recordCanvas:N,inlineImages:P,onSerialize:Tt=>{ZV(Tt,Ro)&&mt.addIframe(Tt),JV(Tt,Ro)&&tt.trackLinkElement(Tt),pk(Tt)&&sn.addShadowRoot(Tt.shadowRoot,document)},onIframeLoad:(Tt,Kn)=>{mt.attachIframe(Tt,Kn),Tt.contentWindow&&rn.addWindow(Tt.contentWindow),sn.observeAttachShadow(Tt)},onStylesheetLoad:(Tt,Kn)=>{tt.attachLinkElement(Tt,Kn)},onBlockedImageLoad:(Tt,Kn,{width:it,height:gr})=>{pt({adds:[],removes:[],texts:[],attributes:[{id:Kn.id,attributes:{style:{width:`${it}px`,height:`${gr}px`}}}]})},keepIframeSrcFn:W,ignoreCSSAttributes:de});if(!kn)return console.warn("Failed to snapshot the document");Or({type:Vt.FullSnapshot,data:{node:kn,initialOffset:qV(window)}}
522),ch.forEach(Tt=>Tt.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&tt.adoptStyleSheets(document.adoptedStyleSheets,Ro.getId(document))};H0=Sn;try{const Ze=[],kn=Kn=>hn(Rge)({onMutation:L,mutationCb:pt,mousemoveCb:(it,gr)=>Or({type:Vt.IncrementalSnapshot,data:{source:gr,positions:it}}),mouseInteractionCb:it=>Or({type:Vt.IncrementalSnapshot,data:{source:xt.MouseInteraction,...it}}),scrollCb:Hn,viewportResizeCb:it=>Or({type:Vt.IncrementalSnapshot,data:{source:xt.ViewportResize,...it}}),inputCb:it=>Or({type:Vt.IncrementalSnapshot,data:{source:xt.Input,...it}}),mediaInteractionCb:it=>Or({type:Vt.IncrementalSnapshot,data:{source:xt.MediaInteraction,...it}}),styleSheetRuleCb:it=>Or({type:Vt.IncrementalSnapshot,data:{source:xt.StyleSheetRule,...it}}),styleDeclarationCb:it=>Or({type:Vt.IncrementalSnapshot,data:{source:xt.StyleDeclaration,...it}}),canvasMutationCb:Lr,fontCb:it=>Or({type:Vt.IncrementalSnapshot,data:{source:xt.Font,...it}}),selectionCb:it=>{Or({type:Vt.IncrementalSnapshot,data:{source:xt.Selection,...it}})},customElementCb:it=>{Or({type:Vt.IncrementalSnapshot,data:{source:xt.CustomElement,...it}})},blockClass:i,ignoreClass:a,ignoreSelector:l,maskAllText:f,maskTextClass:d,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:_,maskInputOptions:be,inlineStylesheet:v,sampling:I,recordDOM:V,recordCanvas:N,inlineImages:P,userTriggeredOnInput:j,collectFonts:fe,doc:Kn,maskAttributeFn:T,maskInputFn:R,maskTextFn:C,keepIframeSrcFn:W,blockSelector:s,unblockSelector:o,slimDOMOptions:Ee,dataURLOptions:$,mirror:Ro,iframeManager:mt,stylesheetManager:tt,shadowDomManager:sn,processedNodeManager:vn,canvasManager:rn,ignoreCSSAttributes:de,plugins:ee?.filter(it=>it.observer)?.map(it=>({observer:it.observer,options:it.options,callback:gr=>Or({type:Vt.Plugin,data:{plugin:it.name,payload:gr}})}))||[]},{});mt.addLoadListener(Kn=>{try{Ze.push(kn(Kn.contentDocument))}catch(it){console.warn(it)}});const Tt=()=>{Sn(),Ze.push(kn(document))};return document.readyState==="interactive"||document.readyState==="complete"?Tt():(Ze.push(Ji("DOMContentLoaded",()=>{Or({type:Vt.DomContentLoaded,data:{}}),K==="DOMContentLoaded"&&Tt()})),Ze.push(Ji("load",()=>{Or({type:Vt.Load,data:{}}),K==="load"&&Tt()},window))),()=>{Ze.forEach(Kn=>Kn()),vn.destroy(),H0=void 0,mge()}}catch(Ze){console.warn(Ze)}}function Pge(e){if(!H0)throw new Error("please take full snapshot after start recording");H0(e)}_c.mirror=Ro;_c.takeFullSnapshot=Pge;function $ge(e,t){try{return e?e(t):new tB}catch{return console.warn("Unable to initialize CanvasManager"),new tB}}var nB;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(nB||(nB={}));const Fge=3,Uge=5;function BM(e){return e>9999999999?e:e*1e3}function wC(e){return e>9999999999?e/1e3:e}function Tv(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Vt.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ls(t,10,1e3)}}),t.category==="console")))}const Bge="button,a";function sG(e){return e.closest(Bge)||e}function oG(e){const t=aG(e);return!t||!(t instanceof Element)?t:sG(t)}function aG(e){return zge(e)?e.target:e}function zge(e){return typeof e=="object"&&!!e&&"target"in e}let bl;function Hge(e){return bl||(bl=[],jge()),bl.push(e),()=>{const t=bl?bl.indexOf(e):-1;t>-1&&bl.splice(t,1)}}function jge(){xi(Qn,"open",function(e){return function(...t){if(bl)try{bl.forEach(n=>n())}catch{}return e.apply(Qn,t)}})}const Vge=new Set([xt.Mutation,xt.StyleSheetRule,xt.StyleDeclaration,xt.AdoptedStyleSheet,xt.CanvasMutation,xt.Selection,xt.MediaInteraction]);function Gge(e,t,n){e.handleClick(t,n)}class qge{constructor(t,n,r=Tv){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=Hge(()=>{this._lastMutation=rB()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(Yge(n,this._ignoreSelector)||!Xge(t))return;const r={timestamp:wC(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===r.node&&Math.abs(i.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=wC(t)}registerScroll(t=Date.now()){this._lastScroll=wC(t)}registerClick(t){const n=sG(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>
522{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=rB();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,s=!r&&!i,{clickCount:o,clickBreadcrumb:a}=t;if(s){const l=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,f=l<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:Qn.location.href,route:n.getCurrentRoute(),timeAfterClickMs:l,endReason:f,clickCount:o||1}};this._addBreadcrumbEvent(n,d);return}if(o>1){const l={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:Qn.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,l)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Ev(()=>this._checkClicks(),1e3)}}const Wge=["A","BUTTON","INPUT"];function Yge(e,t){return!!(!Wge.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function Xge(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function rB(){return Date.now()/1e3}function Kge(e,t){try{if(!Zge(t))return;const{source:n}=t.data;if(Vge.has(n)&&e.registerMutation(t.timestamp),n===xt.Scroll&&e.registerScroll(t.timestamp),Jge(t)){const{type:r,id:i}=t.data,s=_c.mirror.getNode(i);s instanceof HTMLElement&&r===Xi.Click&&e.registerClick(s)}}catch{}}function Zge(e){return e.type===Fge}function Jge(e){return e.data.source===xt.MouseInteraction}function ua(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var zM=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(zM||{});const Qge=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function eme(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Qge.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const tme=e=>t=>{if(!e.isEnabled())return;const n=nme(t);if(!n)return;const r=t.name==="click",i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&Gge(e.clickDetector,n,oG(t.event)),Tv(e,n)};function cG(e,t){const n=_c.mirror.getId(e),r=n&&_c.mirror.getNode(n),i=r&&_c.mirror.getMeta(r),s=i&&ime(i)?i:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(o=>o.type===zM.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:eme(s.attributes)}}:{}}}function nme(e){const{target:t,message:n}=rme(e);return ua({category:`ui.${e.name}`,...cG(t,n)})}function rme(e){const t=e.name==="click";let n,r=null;try{r=t?oG(e.event):aG(e.event),n=Es(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function ime(e){return e.type===zM.Element}function sme(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=ome(t);n&&Tv(e,n)}function ome(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:s,target:o}=e;if(!o||ame(o)||!s)return null;const a=t||r||i,l=s.length===1;if(!a&&l)return null;const f=Es(o,{maxStringLength:200})||"<unknown>",d=cG(o,f);return ua({category:"ui.keyDown",message:f,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:s}})}function ame(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const cme={resource:hme,paint:fme,navigation:dme};function TC(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}
522function lme(e){return e.map(ume).filter(Boolean)}function ume(e){const t=cme[e.entryType];return t?t(e):null}function Wh(e){return((Bi()||Qn.performance.timeOrigin)+e)/1e3}function fme(e){const{duration:t,entryType:n,name:r,startTime:i}=e,s=Wh(i);return{type:n,name:r,start:s,end:s+t,data:void 0}}function dme(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:s,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:f,loadEventStart:d,loadEventEnd:p,redirectCount:m,startTime:_,transferSize:v,type:E}=e;return i===0?null:{type:`${t}.${E}`,start:Wh(_),end:Wh(s),name:n,data:{size:v,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:f,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:d,loadEventEnd:p,domComplete:s,redirectCount:m}}}function hme(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:s,decodedBodySize:o,encodedBodySize:a,responseStatus:l,transferSize:f}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Wh(s),end:Wh(i),name:r,data:{size:f,statusCode:l,decodedBodySize:o,encodedBodySize:a}}}function pme(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return HM(e,"largest-contentful-paint",n)}function gme(e){return e.sources!==void 0}function mme(e){const t=[],n=[];for(const r of e.entries)if(gme(r)){const i=[];for(const s of r.sources)if(s.node){n.push(s.node);const o=_c.mirror.getId(s.node);o&&i.push(o)}t.push({value:r.value,nodeIds:i.length?i:void 0})}return HM(e,"cumulative-layout-shift",n,t)}function _me(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return HM(e,"interaction-to-next-paint",n)}function HM(e,t,n,r){const i=e.value,s=e.rating,o=Wh(i);return{type:"web-vital",name:t,start:o,end:o,data:{value:i,size:i,rating:s,nodeIds:n?n.map(a=>_c.mirror.getId(a)):void 0,attributions:r}}}function vme(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(i=>{r.push(Nf(i,n))}),r.push(CM(TC(pme,e)),xM(TC(mme,e)),oV(TC(_me,e))),()=>{r.forEach(i=>i())}}const bt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,yme='
vendor: 10,329 bytes, line 522
522var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([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,0,0,0]),i=new t([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,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
522';function bme(){const e=new Blob([yme]);return URL.createObjectURL(e)}const iB=["log","warn","error"],jS="[Replay] ";function xC(e,t="info"){Ea({category:"console",data:{logger:"replay"},level:t,message:`${jS}${e}`},{level:t})}function Sme(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return bt?(iB.forEach(r=>{n[r]=(...i)=>{ne[r](jS,...i),t&&xC(i.join(""),C0(r))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),ne.error(jS,r),e?li(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&xC(r,"error")},n.infoTick=(...r)=>{ne.log(jS,...r),t&&setTimeout(()=>xC(r[0]),0)}):iB.forEach(r=>{n[r]=()=>{}}),n}const St=Sme();class jM extends Error{constructor(){super(`Event buffer exceeded maximum size of ${LM}.`)}}class lG{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>LM)throw new jM;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?BM(t):null}}class Eme{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){bt&&St.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((i,s)=>{const o=({data:a})=>{const l=a;if(l.method===t&&l.id===r){if(this._worker.removeEventListener("message",o),!l.success){bt&&St.error("Error in compression worker: ",l.response),s(new Error("Error in compression worker"));return}i(l.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class wme{constructor(t){this._worker=new Eme(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=BM(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>LM?Promise.reject(new jM):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{bt&&St.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class Tme{constructor(t){this._fallback=new lG,this._compression=new wme(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}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){bt&&St.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,i=[];for(const s of t)i.push(this._compression.addEvent(s));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(i),this._fallback.clear()}catch(s){bt&&St.exception(s,"Failed to add events when switching buffers.")}}}function xme({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=Cme(t);if(n)return n}return bt&&St.log("Using simple buffer"),new lG}function Cme(e){try{const t=e||Ame();if(!t)return;bt&&St.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new Tme(n)}catch(t){bt&&St.exception(t,"Failed to create compression worker")}}function Ame(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?bme():""}
522function VM(){try{return"sessionStorage"in Qn&&!!Qn.sessionStorage}catch{return!1}}function Rme(e){kme(),e.session=void 0}function kme(){if(VM())try{Qn.sessionStorage.removeItem(MM)}catch{}}function uG(e){return e===void 0?!1:Math.random()<e}function Lw(e){if(VM())try{Qn.sessionStorage.setItem(MM,JSON.stringify(e))}catch{}}function fG(e){const t=Date.now(),n=e.id||ci(),r=e.started||t,i=e.lastActivity||t,s=e.segmentId||0,o=e.sampled,a=e.previousSessionId,l=e.dirty||!1;return{id:n,started:r,lastActivity:i,segmentId:s,sampled:o,previousSessionId:a,dirty:l}}function Ime(e,t){return uG(e)?"session":t?"buffer":!1}function sB({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const i=Ime(e,t),s=fG({sampled:i,previousSessionId:r});return n&&Lw(s),s}function Ome(){if(!VM())return null;try{const e=Qn.sessionStorage.getItem(MM);if(!e)return null;const t=JSON.parse(e);return bt&&St.infoTick("Loading existing session"),fG(t)}catch{return null}}function _k(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function dG(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return _k(e.started,t,r)||_k(e.lastActivity,n,r)}function hG(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!dG(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function CC({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const i=r.stickySession&&Ome();return i?hG(i,{sessionIdleExpire:e,maxReplayDuration:t})?(bt&&St.infoTick("Session in sessionStorage is expired, creating new one..."),sB(r,{previousSessionId:i.id})):i:(bt&&St.infoTick("Creating new session"),sB(r,{previousSessionId:n}))}function Mme(e){return e.type===Vt.Custom}function GM(e,t,n){return gG(e,t)?(pG(e,t,n),!0):!1}function Nme(e,t,n){return gG(e,t)?pG(e,t,n):Promise.resolve(null)}async function pG(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const i=e.recordingMode==="buffer";try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const s=e.getOptions(),o=Lme(t,s.beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(s){const o=s&&s instanceof jM,a=o?"addEventSizeExceeded":"addEvent",l=Ue();if(l){const f=o?"buffer_overflow":"internal_sdk_error";l.recordDroppedEvent(f,"replay")}if(o&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(s),await e.stop({reason:a})}}function gG(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=BM(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(bt&&St.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function Lme(e,t){try{if(typeof t=="function"&&Mme(e))return t(e)}catch(n){return bt&&St.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function qM(e){return!e.type}function vk(e){return e.type==="transaction"}function Dme(e){return e.type==="replay_event"}function oB(e){return e.type==="feedback"}function Pme(e){return(t,n)=>{if(!e.isEnabled()||!qM(t)&&!vk(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(vk(t)){$me(e,t);return}Fme(e,t)}}}function $me(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function Fme(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Ev(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(i){e.handleException(i)}})}function Ume(e){return t=>{!e.isEnabled()||!qM(t)||Bme(e,t)}}function Bme(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=ua({category:"replay.hydrate-error",data:{url:Vf()}});Tv(e,r)}}function zme(e){const t=Ue();t&&t.on("beforeAddBreadcrumb",n=>Hme(e,n))}function Hme(e,t){if(!e.isEnabled()||!mG(t))return;const n=jme(t);n&&Tv(e,n)}function jme(e){return!mG(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?Vme(e):ua(e)}function Vme(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return ua(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>gb?(n=!0,`${i.slice(0,gb)}…`):i;if(typeof i=="object")try{const s=Ls(i,7);return JSON.stringify(s).length>gb?(n=!0,`${JSON.stringify(s,null,2).slice(0,gb)}…`):s}catch{}return i});return ua({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function mG(e){return!!e.category}function Gme(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function _G(){const e=Mt().getPropagationContext().dsc;e&&delete e.replay_id;const t=Vr();if(t){const n=Ho(t);delete n.replay_id}}function qme(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Vt.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function Wme(e,t){return e.recordingMode!=="buffer"||t.message===NM||!t.exception||t.type?!1:uG(e.getOptions().errorSampleRate)}function Yme(e){return Object.assign((t,n)=>
522{if(!e.isEnabled()||e.isPaused())return t;if(Dme(t))return delete t.breadcrumbs,t;if(!qM(t)&&!vk(t)&&!oB(t))return t;if(!e.checkAndHandleExpiredSession())return _G(),t;if(oB(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),qme(e,t),t;if(Gme(t,n)&&!e.getOptions()._experiments.captureExceptions)return bt&&St.log("Ignoring error from rrweb internals",t),null;const i=Wme(e,t);if((i||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),i&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){const o=e.session;o.dirty=!0,e.getOptions().stickySession&&Lw(o)}return t},{id:"Replay"})}function Dw(e,t){return t.map(({type:n,start:r,end:i,name:s,data:o})=>{const a=e.throttledAddEvent({type:Vt.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:s,startTimestamp:r,endTimestamp:i,data:o}}});return typeof a=="string"?Promise.resolve(null):a})}function Xme(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function Kme(e){return t=>{if(!e.isEnabled())return;const n=Xme(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Dw(e,[n]),!1)))}}function Zme(e,t){return bt&&e.getOptions()._experiments.traceInternals?!1:t8(t,Ue())}function vG(e,t){e.isEnabled()&&t!==null&&(Zme(e,t.name)||e.addUpdate(()=>(Dw(e,[t]),!0)))}function Pw(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=hV(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function yG(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function j0(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function bG(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:s,statusCode:o,request:a,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:s,statusCode:o,request:a,response:l}}}function d_(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Ml(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:s}=Jme(n);return r.body=i,s?.length&&(r._meta={warnings:s}),r}function yk(e,t){return Object.entries(e).reduce((n,[r,i])=>{const s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=i),n},{})}function Jme(e){if(!e||typeof e!="string")return{body:e};const t=e.length>B3,n=Qme(e);if(t){const r=e.slice(0,B3);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Qme(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function V0(e,t){const n=e_e(e);return Fo(n,t)}function e_e(e,t=Qn.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Qn.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function t_e(e,t,n){try{const r=await r_e(e,t,n),i=bG("resource.fetch",r);vG(n.replay,i)}catch(r){bt&&St.exception(r,"Failed to capture fetch breadcrumb")}}function n_e(e,t){const{input:n,response:r}=t,i=n?IM(n):void 0,s=Pw(i),o=r?yG(r.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),o!==void 0&&(e.data.response_body_size=o)}async function r_e(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r}=t,{url:o,method:a,status_code:l=0,request_body_size:f,response_body_size:d}=e.data,p=V0(o,n.networkDetailAllowUrls)&&!V0(o,n.networkDetailDenyUrls),m=p?i_e(n,t.input,f):d_(f),_=await s_e(p,n,t.response,d);return{startTimestamp:i,endTimestamp:s,url:o,method:a,statusCode:l,request:m,response:_}}function i_e({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?c_e(n,t):{};if(!e)return Ml(i,r,void 0);const s=IM(n),[o,a]=P0(s,St),l=Ml(i,r,o);return a?j0(l,a):l}async function s_e(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return d_(i);const s=r?SG(r.headers,n):{};if(!r||!t&&i!==void 0)return Ml(s,i,void 0);const[o,a]=await a_e(r),l=o_e(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:s});return a?j0(l,a):l}function o_e(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{const s=e?.length&&n===void 0?Pw(e):n;return r?t?Ml(i,s,e):Ml(i,s,void 0):d_(s)}catch(s){return bt&&St.exception(s,"Failed to serialize response body"),Ml(i,n,void 0)}}async function a_e(e){const t=l_e(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await u_e(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(bt&&St.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(bt&&St.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function SG(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}
522function c_e(e,t){return e.length===1&&typeof e[0]!="string"?aB(e[0],t):e.length===2?aB(e[1],t):{}}function aB(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?SG(n,t):Array.isArray(n)?{}:yk(n,t):{}}function l_e(e){try{return e.clone()}catch(t){bt&&St.exception(t,"Failed to clone response body")}}function u_e(e){return new Promise((t,n)=>{const r=Ev(()=>n(new Error("Timeout while trying to read response body")),500);f_e(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(r))})}async function f_e(e){return await e.text()}async function d_e(e,t,n){try{const r=p_e(e,t,n),i=bG("resource.xhr",r);vG(n.replay,i)}catch(r){bt&&St.exception(r,"Failed to capture xhr breadcrumb")}}function h_e(e,t){const{xhr:n,input:r}=t;if(!n)return;const i=Pw(r),s=n.getResponseHeader("content-length")?yG(n.getResponseHeader("content-length")):__e(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}function p_e(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:s=r,input:o,xhr:a}=t,{url:l,method:f,status_code:d=0,request_body_size:p,response_body_size:m}=e.data;if(!l)return null;if(!a||!V0(l,n.networkDetailAllowUrls)||V0(l,n.networkDetailDenyUrls)){const M=d_(p),I=d_(m);return{startTimestamp:i,endTimestamp:s,url:l,method:f,statusCode:d,request:M,response:I}}const _=a[fc],v=_?yk(_.request_headers,n.networkRequestHeaders):{},E=yk(pV(a),n.networkResponseHeaders),[b,w]=n.networkCaptureBodies?P0(o,St):[void 0],[T,R]=n.networkCaptureBodies?g_e(a):[void 0],C=Ml(v,p,b),k=Ml(E,m,T);return{startTimestamp:i,endTimestamp:s,url:l,method:f,statusCode:d,request:w?j0(C,w):C,response:R?j0(k,R):k}}function g_e(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return m_e(e.response,e.responseType)}catch(n){t.push(n)}return bt&&St.warn("Failed to get xhr response body",...t),[void 0]}function m_e(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return bt&&St.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return bt&&St.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function __e(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Pw(n)}catch{return}}function v_e(e){const t=Ue();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(l,f)=>y_e(a,l,f))}catch{}}function y_e(e,t,n){if(t.data)try{b_e(t)&&E_e(n)&&(h_e(t,n),d_e(t,n,e)),S_e(t)&&w_e(n)&&(n_e(t,n),t_e(t,n,e))}catch(r){bt&&St.exception(r,"Error when enriching network breadcrumb")}}function b_e(e){return e.category==="xhr"}function S_e(e){return e.category==="fetch"}function E_e(e){return e?.xhr}function w_e(e){return e?.response}function T_e(e){const t=Ue();dV(tme(e)),Iw(Kme(e)),zme(e),v_e(e);const n=Yme(e);Lj(n),t&&(t.on("beforeSendEvent",Ume(e)),t.on("afterSendEvent",Pme(e)),t.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=i)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,i)=>{const s=e.getSessionId();i?.includeReplay&&e.isEnabled()&&s&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=s)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function x_e(e){try{return Promise.all(Dw(e,[C_e(Qn.performance.memory)]))}catch{return[]}}function C_e(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function A_e(e,t,n){return Soe(e,t,{...n,setTimeoutImpl:Ev})}const yb=ft.navigator;
522function R_e(){return/iPhone|iPad|iPod/i.test(yb?.userAgent??"")||/Macintosh/i.test(yb?.userAgent??"")&&yb?.maxTouchPoints&&yb?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function k_e(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){bt&&St.warn("Received replay event after session expired.");return}const i=r||!t;t=!0,e.clickDetector&&Kge(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!GM(e,n,i))return!0;if(!i)return!1;const s=e.session;if(O_e(e,i),e.recordingMode==="buffer"&&s&&e.eventBuffer&&!s.dirty){const o=e.eventBuffer.getEarliestTimestamp();o&&(bt&&St.log(`Updating session start time to earliest event in buffer to ${new Date(o)}`),s.started=o,e.getOptions().stickySession&&Lw(s))}return s?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function I_e(e){const t=e.getOptions();return{type:Vt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function O_e(e,t){!t||!e.session||e.session.segmentId!==0||GM(e,I_e(e),!1)}function M_e(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function N_e(e,t,n,r){return jo(Ej(e,pw(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function L_e({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
523`;if(typeof e=="string")n=`${r}${e}`;else{const s=new TextEncoder().encode(r);n=new Uint8Array(s.length+e.length),n.set(s),n.set(e,s.length)}return n}async function D_e({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,s={event_id:n,integrations:i};e.emit("preprocessEvent",r,s);const o=await kj(e.getOptions(),r,s,t,e,ii());if(!o)return null;e.emit("postprocessEvent",o,s),o.platform=o.platform||"javascript";const a=e.getSdkMetadata(),{name:l,version:f,settings:d}=a?.sdk||{};return o.sdk={...o.sdk,name:l||"sentry.javascript.unknown",version:f||"0.0.0",settings:d},o}async function P_e({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:s}){const o=L_e({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:l,traceIds:f,initialTimestamp:d}=r,p=Ue(),m=Mt(),_=p?.getTransport(),v=p?.getDsn();if(!p||!_||!v||!s.sampled)return Promise.resolve({});const E={type:dpe,replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:l,trace_ids:f,urls:a,replay_id:t,segment_id:n,replay_type:s.sampled},b=await D_e({scope:m,client:p,replayId:t,event:E});if(!b)return p.recordDroppedEvent("event_processor","replay"),bt&&St.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete b.sdkProcessingMetadata;const w=N_e(b,o,v,p.getOptions().tunnel);let T;try{T=await _.send(w)}catch(C){const k=new Error(NM);try{k.cause=C}catch{}throw k}if(typeof T.statusCode=="number"&&(T.statusCode<200||T.statusCode>=300))throw new EG(T.statusCode);const R=Vj({},T);if(jj(R,"replay"))throw new WM(R);return T}class EG extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class WM extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function wG(e,t={count:0,interval:vpe}){const{recordingData:n,onError:r}=e;if(n.length)try{return await P_e(e),!0}catch(i){if(i instanceof EG||i instanceof WM)throw i;if(Oj("Replays",{_retryCount:t.count}),r&&r(i),t.count>=ype){const s=new Error(`${NM} - max retries exceeded`);try{s.cause=i}catch{}throw s}return t.interval*=++t.count,new Promise((s,o)=>{Ev(async()=>{try{await wG(e,t),s(!0)}catch(a){o(a)}},t.interval)})}}const TG="__THROTTLED",$_e="__SKIPPED";function F_e(e,t,n){const r=new Map,i=a=>{const l=a-n;r.forEach((f,d)=>{d<l&&r.delete(d)})},s=()=>[...r.values()].reduce((a,l)=>a+l,0);let o=!1;return(...a)=>{const l=Math.floor(Date.now()/1e3);if(i(l),s()>=t){const d=o;return o=!0,d?$_e:TG}o=!1;const f=r.get(l)||0;return r.set(l,f+1),e(...a)}}class U_e{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:hpe,sessionIdleExpire:ppe},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=A_e(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=F_e((o,a)=>Nme(this,o,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),s=r?{threshold:Math.min(bpe,r),timeout:r,scrollTimeout:Spe,ignoreSelector:i?i.join(","):""}:void 0;if(s&&(this.clickDetector=new qge(this,s)),bt){const o=t._experiments;St.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}this._handleVisibilityChange=()=>{Qn.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
523dTasks()},this._handleWindowBlur=()=>{const o=ua({category:"ui.blur"});this._doChangeToBackgroundTasks(o)},this._handleWindowFocus=()=>{const o=ua({category:"ui.focus"});this._doChangeToForegroundTasks(o)},this._handleKeyboardEvent=o=>{sme(this,o)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){bt&&St.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){bt&&St.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",bt&&St.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){bt&&St.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){bt&&St.log("Buffering is in progress, call `flush()` to save the replay");return}bt&&St.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=CC({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){bt&&St.log("Buffering is in progress, call `flush()` to save the replay");return}bt&&St.infoTick("Starting replay in buffer mode");const t=CC({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=_c({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:_pe}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:k_e(this),...R_e(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}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({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{bt&&St.log(`Stopping Replay${n?` triggered by ${n}`:""}`),_G(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Rme(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),bt&&St.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),bt&&St.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();bt&&St.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}
523checkAndHandleExpiredSession(){if(this._lastActivity&&_k(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Qn.location.pathname}${Qn.location.hash}${Qn.location.search}`,n=`${Qn.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===TG){const i=ua({category:"replay.throttled"});this.addUpdate(()=>!GM(this,{type:Uge,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Vr(),n=t&&Hr(t),i=(n&&It(n).data||{})[$s];if(!(!n||!i||!["route","custom"].includes(i)))return It(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=xme({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=CC({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return hG(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Qn.document.addEventListener("visibilitychange",this._handleVisibilityChange),Qn.addEventListener("blur",this._handleWindowBlur),Qn.addEventListener("focus",this._handleWindowFocus),Qn.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(T_e(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=vme(this)}_removeListeners(){try{Qn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Qn.removeEventListener("blur",this._handleWindowBlur),Qn.removeEventListener("focus",this._handleWindowFocus),Qn.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||dG(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){bt&&St.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(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:Vt.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=lme(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(Dw(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}
523_popEventContext(){const 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(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){bt&&St.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await x_e(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await wG({replayId:t,recordingData:s,segmentId:i,eventContext:r,session:this.session,timestamp:n,onError:o=>this.handleException(o)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=Ue();if(r){const i=n instanceof WM?"ratelimit_backoff":"send_error";r.recordDroppedEvent(i,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){bt&&St.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const s=i<this._options.minReplayDuration,o=i>this._options.maxReplayDuration+5e3;if(s||o){bt&&St.log(`Session duration (${Math.floor(i/1e3)}s) is too ${s?"short":"long"}, not sending replay.`),s&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&bt&&St.log("Flushing initial segment without checkout.");const l=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(f){this.handleException(f)}finally{this._flushLock=void 0,l&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Lw(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{const l=M_e(a.target),f=n.join(",");return l?.matches(f)}))return!1;const r=t.length,i=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,o=i&&r>i;
523if(r>s||o){const a=ua({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(a)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function jg(e,t){return[...e,...t].join(",")}function B_e({mask:e,unmask:t,block:n,unblock:r,ignore:i}){const s=["base","iframe[srcdoc]:not([src])"],o=jg(e,[".sentry-mask","[data-sentry-mask]"]),a=jg(t,[]);return{maskTextSelector:o,unmaskTextSelector:a,blockSelector:jg(n,[".sentry-block","[data-sentry-block]",...s]),unblockSelector:jg(r,[]),ignoreSelector:jg(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function z_e({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:s}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?s:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s}const cB='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',H_e=["content-length","content-type","accept"];let lB=!1;const xG=(e=>new j_e(e));class j_e{constructor({flushMinDelay:t=gpe,flushMaxDelay:n=mpe,minReplayDuration:r=Epe,maxReplayDuration:i=z3,stickySession:s=!0,useCompression:o=!0,workerUrl:a,_experiments:l={},maskAllText:f=!0,maskAllInputs:d=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:m=750,mutationLimit:_=1e4,slowClickTimeout:v=7e3,slowClickIgnoreSelectors:E=[],networkDetailAllowUrls:b=[],networkDetailDenyUrls:w=[],networkCaptureBodies:T=!0,networkRequestHeaders:R=[],networkResponseHeaders:C=[],mask:k=[],maskAttributes:M=["title","placeholder","aria-label"],unmask:I=[],block:$=[],unblock:Q=[],ignore:V=[],maskFn:N,beforeAddRecordingEvent:U,beforeErrorSampling:K,onError:j}={}){this.name="Replay";const fe=B_e({mask:k,unmask:I,block:$,unblock:Q,ignore:V});if(this._recordingOptions={maskAllInputs:d,maskAllText:f,maskInputOptions:{password:!0},maskTextFn:N,maskInputFn:N,maskAttributeFn:(P,ee,W)=>z_e({maskAttributes:M,maskAllText:f,privacyOptions:fe,key:P,value:ee,el:W}),...fe,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:P=>{try{P.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!l.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,wpe),maxReplayDuration:Math.min(i,z3),stickySession:s,useCompression:o,workerUrl:a,blockAllMedia:p,maskAllInputs:d,maskAllText:f,mutationBreadcrumbLimit:m,mutationLimit:_,slowClickTimeout:v,slowClickIgnoreSelectors:E,networkDetailAllowUrls:b,networkDetailDenyUrls:w,networkCaptureBodies:T,networkRequestHeaders:uB(R),networkResponseHeaders:uB(C),beforeAddRecordingEvent:U,beforeErrorSampling:K,onError:j,_experiments:l},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${cB}`:cB,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&I0())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return lB}set _isInitialized(t){lB=t}afterAllSetup(t){!I0()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=V_e(this._initialOptions,t);this._replay=new U_e({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function V_e(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=Rf(n.replaysSessionSampleRate),s=Rf(n.replaysOnErrorSampleRate);return i==null&&s==null&&tu(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),s!=null&&(r.errorSampleRate=s),r}function uB(e){return[...H_e,...e.map(t=>t.toLowerCase())]}function G_e(){return Ue()?.getIntegrationByName("Replay")}
523var q_e=Object.defineProperty,W_e=(e,t,n)=>t in e?q_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fB=(e,t,n)=>W_e(e,typeof t!="symbol"?t+"":t,n);let Y_e=class{constructor(){fB(this,"idNodeMap",new Map),fB(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function X_e(){return new Y_e}function K_e(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function bk(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:bk(e.parentNode,t,n,r+1)}function dB(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(K_e(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const eh=`Please stop import mirror directly. Instead of that,\r
524now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
525or you can use record.mirror to access the mirror instance during recording.`;let hB={map:{},getId(){return console.error(eh),-1},getNode(){return console.error(eh),null},removeNodeFromMap(){console.error(eh)},has(){return console.error(eh),!1},reset(){console.error(eh)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(hB=new Proxy(hB,{get(e,t,n){return t==="map"&&console.error(eh),Reflect.get(e,t,n)}}));function YM(e,t,n,r,i=window){const s=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(o){AG(()=>{n.set.call(this,o)},0),s&&s.set&&s.set.call(this,o)}}),()=>YM(e,t,s||{},!0)}function XM(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function Z_e(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function $w(e,t,n,r,i){if(!e)return!1;const s=Z_e(e);if(!s)return!1;const o=dB(t,n),a=bk(s,o);let l=-1;return a<0?!1:(r&&(l=bk(s,dB(null,r))),a>-1&&l<0?!0:a<l)}const pB={};function CG(e){const t=pB[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const s=i.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(i)}catch{}return pB[e]=r.bind(window)}function Bu(...e){return CG("requestAnimationFrame")(...e)}function AG(...e){return CG("setTimeout")(...e)}var Yh=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Yh||{});let VS;function J_e(e){VS=e}const AC=e=>VS?(...n)=>{try{return e(...n)}catch(r){if(VS&&VS(r)===!0)return()=>{};throw r}}:e;var lh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q_e=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var bb=0;bb<lh.length;bb++)Q_e[lh.charCodeAt(bb)]=bb;var eve=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n<r;n+=3)i+=lh[t[n]>>2],i+=lh[(t[n]&3)<<4|t[n+1]>>4],i+=lh[(t[n+1]&15)<<2|t[n+2]>>6],i+=lh[t[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const gB=new Map;function tve(e,t){let n=gB.get(e);return n||(n=new Map,gB.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const RG=(e,t,n)=>{if(!e||!(IG(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=tve(n,r);let s=i.indexOf(e);return s===-1&&(s=i.length,i.push(e)),s};function GS(e,t,n){if(e instanceof Array)return e.map(r=>GS(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,i=eve(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[GS(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",i=e.toDataURL();return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[GS(e.data,t,n),e.width,e.height]};
525if(IG(e,t)||typeof e=="object"){const r=e.constructor.name,i=RG(e,t,n);return{rr_type:r,index:i}}}}return e}const kG=(e,t,n)=>e.map(r=>GS(r,t,n)),IG=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function nve(e,t,n,r,i){const s=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of o)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const l=XM(t.CanvasRenderingContext2D.prototype,a,function(f){return function(...d){return $w(this.canvas,n,r,i,!0)||AG(()=>{const p=kG(d,t,this);e(this.canvas,{type:Yh["2D"],property:a,args:p})},0),f.apply(this,d)}});s.push(l)}catch{const l=YM(t.CanvasRenderingContext2D.prototype,a,{set(f){e(this.canvas,{type:Yh["2D"],property:a,args:[f],setter:!0})}});s.push(l)}return()=>{s.forEach(a=>a())}}function rve(e){return e==="experimental-webgl"?"webgl":e}function mB(e,t,n,r,i){const s=[];try{const o=XM(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(l,...f){if(!$w(this,t,n,r,!0)){const d=rve(l);if("__context"in this||(this.__context=d),i&&["webgl","webgl2"].includes(d))if(f[0]&&typeof f[0]=="object"){const p=f[0];p.preserveDrawingBuffer||(p.preserveDrawingBuffer=!0)}else f.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[l,...f])}});s.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(o=>o())}}function _B(e,t,n,r,i,s,o,a){const l=[],f=Object.getOwnPropertyNames(e);for(const d of f)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if(typeof e[d]!="function")continue;const p=XM(e,d,function(m){return function(..._){const v=m.apply(this,_);if(RG(v,a,this),"tagName"in this.canvas&&!$w(this.canvas,r,i,s,!0)){const E=kG(_,a,this),b={type:t,property:d,args:E};n(this.canvas,b)}return v}});l.push(p)}catch{const p=YM(e,d,{set(m){n(this.canvas,{type:t,property:d,args:[m],setter:!0})}});l.push(p)}return l}function ive(e,t,n,r,i,s){const o=[];return o.push(..._B(t.WebGLRenderingContext.prototype,Yh.WebGL,e,n,r,i,s,t)),typeof t.WebGL2RenderingContext<"u"&&o.push(..._B(t.WebGL2RenderingContext.prototype,Yh.WebGL2,e,n,r,i,s,t)),()=>{o.forEach(a=>a())}}const sve='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function ove(){const e=new Blob([sve]);return URL.createObjectURL(e)}let ave=class{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,l)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(l)};const{enableManualSnapshot:n,sampling:r="all",win:i,recordCanvas:s,errorHandler:o}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,o&&J_e(o),(s&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(i),!n&&AC(()=>{s&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),s&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEac
525h(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:i,unblockSelector:s,recordCanvas:o,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}AC(()=>{if(o&&n==="all"&&this.initCanvasMutationObserver(t,r,i,s),o&&typeof n=="number"){const l=mB(t,r,i,s,!0);this.restoreHandlers.push(()=>{l()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}Bu(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(ove());return t.onmessage=n=>{const r=n.data,{id:i}=r;if(this.snapshotInProgressMap.set(i,!1),!("base64"in r))return;const{base64:s,type:o,width:a,height:l}=r;this.mutationCb({id:i,type:Yh["2D"],commands:[{property:"clearRect",args:[0,0,a,l]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:s}],type:o}]},0,0,a,l]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=Bu(n)};t=Bu(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,i){const s=mB(t,n,r,i,!1),o=nve(this.processMutation.bind(this),t,n,r,i),a=ive(this.processMutation.bind(this),t,n,r,i,this.mirror);this.restoreHandlers.push(()=>{s(),o(),a()})}getCanvasElements(t,n,r){const i=[],s=o=>{o.querySelectorAll("canvas").forEach(a=>{$w(a,t,n,r)||i.push(a)})};for(const o of this.windows){const a=o.deref();let l;try{l=a&&a.document}catch{}l&&s(l)}for(const o of this.shadowDoms){const a=o.deref();a&&s(a)}return i}takeSnapshot(t,n,r){const{sampling:i,blockClass:s,blockSelector:o,unblockSelector:a,dataURLOptions:l,maxCanvasSize:f}=this.options,p=1e3/(i==="all"?2:i||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<p?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(s,o,a)).forEach(v=>{const E=this.mirror.getId(v);if(!(!this.mirror.hasNode(v)||!v.width||!v.height||this.snapshotInProgressMap.get(E))){if(this.snapshotInProgressMap.set(E,!0),!n&&["webgl","webgl2"].includes(v.__context)){const b=v.getContext(v.__context);b?.getContextAttributes()?.preserveDrawingBuffer===!1&&b.clear(b.COLOR_BUFFER_BIT)}createImageBitmap(v).then(b=>{this.worker?.postMessage({id:E,bitmap:b,width:v.width,height:v.height,dataURLOptions:l,maxCanvasSize:f},[b])}).catch(b=>{AC(()=>{throw this.snapshotInProgressMap.delete(E),b})()})}}),!0)}startPendingCanvasMutationFlusher(){Bu(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,Bu(t)};Bu(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),Bu(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const i=r.map(o=>{const{type:a,...l}=o;return l}),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:i}),this.pendingCanvasMutations.delete(t)}};try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}X_e();var vB;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(vB||(vB={}));const yB={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},cve="ReplayCanvas",Sb=1280,lve=((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Sb):Sb,n?Math.min(n,Sb):Sb]};let i;const s=new Promise(o=>i=o);return{name:cve,getOptions(){const{quality:o,enableManualSnapshot:a,maxCanvasSize:l}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:f=>{const d=new ave({...f,enableManualSnapshot:a,maxCanvasSize:l,errorHandler:p=>{try{typeof p=="object"&&(p.__rrweb__=!0)}catch{}}});return i(d),d},...yB[o]||yB.medium}},async snapshot(o,a){(await s).snapshot(o,a)}}}),uve=lve;function fve(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function OG(e){try{return new URL(e,at.location.origin).href}catch{return}}function dve(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.
525initiatorType==="xmlhttprequest")}function MG(e){try{return new Headers(e)}catch{return}}const bB=new WeakMap,RC=new Map,KM={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function NG(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:o,tracePropagationTargets:a,onRequestSpanStart:l,onRequestSpanEnd:f}={...KM,...t},d=typeof s=="function"?s:v=>!0,p=v=>hve(v,a),m={},_=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(v=>(v.type==="transaction"&&v.spans&&v.spans.forEach(E=>{if(E.op==="http.client"){const b=RC.get(E.span_id);b&&(E.timestamp=b/1e3,RC.delete(E.span_id))}}),v)),i&&Rle(v=>{if(v.response){const E=bB.get(v.response);E&&v.endTimestamp&&RC.set(E,v.endTimestamp)}}),pM(v=>{const E=Lae(v,d,p,m,{propagateTraceparent:_,onRequestSpanEnd:f});if(v.response&&v.fetchData.__span&&bB.set(v.response,v.fetchData.__span),E){const b=OG(v.fetchData.url),w=b?Sf(b).host:void 0;E.setAttributes({"http.url":b,"server.address":w}),o&&SB(E),l?.(E,{headers:v.headers})}})),r&&kM(v=>{const E=pve(v,d,p,m,_,f);E&&(o&&SB(E),l?.(E,{headers:MG(v.xhr.__sentry_xhr_v3__?.request_headers)}))})}function SB(e){const{url:t}=It(e).data;if(!t||typeof t!="string")return;const n=Nf("resource",({entries:r})=>{r.forEach(i=>{dve(i)&&i.name.endsWith(t)&&(e.setAttributes(fV(i)),setTimeout(n))})})}function hve(e,t){const n=Vf();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return t?Fo(r.toString(),t)||s&&Fo(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?Fo(e,t):r}}function pve(e,t,n,r,i,s){const o=e.xhr,a=o?.[fc];if(!o||o.__sentry_own_request__||!a)return;const{url:l,method:f}=a,d=ho()&&t(l);if(e.endTimestamp&&d){const w=o.__sentry_xhr_span_id__;if(!w)return;const T=r[w];T&&a.status_code!==void 0&&(s_(T,a.status_code),T.end(),s?.(T,{headers:MG(pV(o)),error:e.error}),delete r[w]);return}const p=OG(l),m=Sf(p||l),_=e8(l),v=!!Vr(),E=d&&v?Wf({name:`${f} ${_}`,attributes:{url:l,type:"xhr","http.method":f,"http.url":p,"server.address":m?.host,[ir]:"auto.http.browser",[Us]:"http.client",...m?.search&&{"http.query":m?.search},...m?.hash&&{"http.fragment":m?.hash}}}):new Tc;o.__sentry_xhr_span_id__=E.spanContext().spanId,r[o.__sentry_xhr_span_id__]=E,n(l)&&gve(o,ho()&&v?E:void 0,i);const b=Ue();return b&&b.emit("beforeOutgoingRequestSpan",E,e),E}function gve(e,t,n){const{"sentry-trace":r,baggage:i,traceparent:s}=tM({span:t,propagateTraceparent:n});r&&mve(e,r,i,s)}function mve(e,t,n,r){const i=e.__sentry_xhr_v3__?.request_headers;if(!(i?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!i?.traceparent&&e.setRequestHeader("traceparent",r),n){const s=i?.baggage;(!s||!fve(s))&&e.setRequestHeader("baggage",n)}}catch{}}function _ve(){at.document?at.document.addEventListener("visibilitychange",()=>{const e=Vr();if(!e)return;const t=Hr(e);if(at.document.hidden&&t){const n="cancelled",{op:r,status:i}=It(t);Me&&ne.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:In,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Me&&ne.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const vve=3600,LG="sentry_previous_trace",yve="sentry.previous_trace";function bve(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?wve():void 0;e.on("spanStart",o=>{if(Hr(o)!==o)return;const a=Mt().getPropagationContext();i=Sve(i,o,a),r&&Eve(i)});let s=!0;n&&e.on("beforeSampling",o=>{if(!i)return;const a=Mt(),l=a.getPropagationContext();if(s&&l.parentSpanId){s=!1;return}a.setPropagationContext({...l,dsc:{...l.dsc,sample_rate:String(i.sampleRate),sampled:String(Sk(i.spanContext))},sampleRand:i.sampleRand}),o.parentSampled=Sk(i.spanContext),o.parentSampleRate=i.sampleRate,o.spanAttributes={...o.spanAttributes,[Q6]:i.sampleRate}})}function Sve(e,t,n){const r=It(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[fw])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return s;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=vve&&(Me&&ne.log(`Adding previous_trace ${o} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:o,attributes:{[Qre]:"previous_trace"}}),t.setAttribute(yve,`${o.traceId}-${o.spanId}-${Sk(o)?1:0}
525`)),s)}function Eve(e){try{at.sessionStorage.setItem(LG,JSON.stringify(e))}catch(t){Me&&ne.warn("Could not store previous trace in sessionStorage",t)}}function wve(){try{const e=at.sessionStorage?.getItem(LG);return JSON.parse(e)}catch{return}}function Sk(e){return e.traceFlags===1}const Tve="BrowserTracing",xve={...NS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...KM},Cve=((e={})=>{const t={name:void 0,source:void 0},n=at.document,{enableInp:r,enableElementTiming:i,enableLongTask:s,enableLongAnimationFrame:o,_experiments:{enableInteractions:a,enableStandaloneClsSpans:l,enableStandaloneLcpSpans:f},beforeStartSpan:d,idleTimeout:p,finalTimeout:m,childSpanTimeout:_,markBackgroundSpan:v,traceFetch:E,traceXHR:b,trackFetchStreamPerformance:w,shouldCreateSpanForRequest:T,enableHTTPTimings:R,ignoreResourceSpans:C,ignorePerformanceApiSpans:k,instrumentPageLoad:M,instrumentNavigation:I,detectRedirects:$,linkPreviousTrace:Q,consistentTraceSampling:V,enableReportPageLoaded:N,onRequestSpanStart:U,onRequestSpanEnd:K}={...xve,...e};let j,fe,P;function ee(W,de,ce=!0){const L=de.op==="pageload",J=de.name,re=d?d(de):de,me=re.attributes||{};if(J!==re.name&&(me[$s]="custom",re.attributes=me),!ce){const Fe=Gf();Wf({...re,startTime:Fe}).end(Fe);return}t.name=re.name,t.source=me[$s];const be=Aj(re,{idleTimeout:p,finalTimeout:m,childSpanTimeout:_,disableAutoFinish:L,beforeSpanEnd:Fe=>{j?.(),Zfe(Fe,{recordClsOnPageloadSpan:!l,recordLcpOnPageloadSpan:!f,ignoreResourceSpans:C,ignorePerformanceApiSpans:k}),wB(W,void 0);const Be=Mt(),dt=Be.getPropagationContext();Be.setPropagationContext({...dt,traceId:be.spanContext().traceId,sampled:su(be),dsc:Ho(Fe)}),L&&(P=void 0)},trimIdleSpanEndTimestamp:!N});L&&N&&(P=be),wB(W,be);function Ee(){n&&["interactive","complete"].includes(n.readyState)&&W.emit("idleSpanEnableAutoFinish",be)}L&&!N&&n&&(n.addEventListener("readystatechange",()=>{Ee()}),Ee())}return{name:Tve,setup(W){if(vj(),j=Vfe({recordClsStandaloneSpans:l||!1,recordLcpStandaloneSpans:f||!1,client:W}),r&&Ede(),i&&lde(),o&&ft.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?qfe():s&&Gfe(),a&&Wfe(),$&&n){const ce=()=>{fe=Cr()};addEventListener("click",ce,{capture:!0}),addEventListener("keydown",ce,{capture:!0,passive:!0})}function de(){const ce=h_(W);ce&&!It(ce).timestamp&&(Me&&ne.log(`[Tracing] Finishing current active span with op: ${It(ce).op}`),ce.setAttribute(i_,"cancelled"),ce.end())}W.on("startNavigationSpan",(ce,L)=>{if(Ue()!==W)return;if(L?.isRedirect){Me&&ne.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),ee(W,{op:"navigation.redirect",...ce},!1);return}fe=void 0,de(),ii().setPropagationContext({traceId:Sa(),sampleRand:Math.random(),propagationSpanId:ho()?void 0:mc()});const J=Mt();J.setPropagationContext({traceId:Sa(),sampleRand:Math.random(),propagationSpanId:ho()?void 0:mc()}),J.setSDKProcessingMetadata({normalizedRequest:void 0}),ee(W,{op:"navigation",...ce,parentSpan:null,forceTransaction:!0})}),W.on("startPageLoadSpan",(ce,L={})=>{if(Ue()!==W)return;de();const J=L.sentryTrace||EB("sentry-trace"),re=L.baggage||EB("baggage"),me=lj(J,re),be=Mt();be.setPropagationContext(me),ho()||(be.getPropagationContext().propagationSpanId=mc()),be.setSDKProcessingMetadata({normalizedRequest:bM()}),ee(W,{op:"pageload",...ce})}),W.on("endPageloadSpan",()=>{N&&P&&(P.setAttribute(i_,"reportPageLoaded"),P.end())})},afterAllSetup(W){let de=Vf();if(Q!=="off"&&bve(W,{linkPreviousTrace:Q,consistentTraceSampling:V}),at.location){if(M){const ce=Bi();DG(W,{name:at.location.pathname,startTime:ce?ce/1e3:void 0,attributes:{[$s]:"url",[ir]:"auto.pageload.browser"}})}I&&Iw(({to:ce,from:L})=>{if(L===void 0&&de?.indexOf(ce)!==-1){de=void 0;return}de=void 0;const J=eM(ce),re=h_(W),me=re&&$&&Rve(re,fe);PG(W,{name:J?.pathname||at.location.pathname,attributes:{[$s]:"url",[ir]:"auto.navigation.browser"}},{url:ce,isRedirect:me})})}v&&_ve(),a&&Ave(W,p,m,_,t),r&&xde(),NG(W,{traceFetch:E,traceXHR:b,trackFetchStreamPerformance:w,tracePropagationTargets:W.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:T,enableHTTPTimings:R,onRequestSpanStart:U,onRequestSpanEnd:K})}}});function DG(e,t,n){e.emit("startPageLoadSpan",t,n),Mt().setTransactionName(t.name);const r=h_(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function PG(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const s=Mt();return s.setTransactionName(t.name),r&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...bM(),url:r}}),h_(e)}function EB(e){return at.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function Ave(e,t,n,r,i){const s=at.document;let o;const a=()=>{const l="ui.action.click",f=h_(e);if(f){const d=It(f).op;
525if(["navigation","pageload"].includes(d)){Me&&ne.warn(`[Tracing] Did not create ${l} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(i_,"interactionInterrupted"),o.end(),o=void 0),!i.name){Me&&ne.warn(`[Tracing] Did not create ${l} transaction because _latestRouteName is missing.`);return}o=Aj({name:i.name,op:l,attributes:{[$s]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};s&&addEventListener("click",a,{capture:!0})}const $G="_sentry_idleSpan";function h_(e){return e[$G]}function wB(e,t){ws(e,$G,t)}const TB=1.5;function Rve(e,t){const n=It(e),r=Gf(),i=n.start_timestamp;return!(r-i>TB||t&&r-t<=TB)}function kve(e=Ue()){e?.emit("endPageloadSpan")}function Ive(e){const t=Vr();if(t===e)return;const n=Mt();e.end=new Proxy(e.end,{apply(r,i,s){return wc(n,t),Reflect.apply(r,i,s)}}),wc(n,e)}function Xh(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Ove(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Xh(n);return i=>r.then(s=>i(s.transaction(t,"readwrite").objectStore(t)))}function ZM(e){return Xh(e.getAllKeys())}function Mve(e,t,n){return e(r=>ZM(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.max(...i,0)+1),Xh(r.transaction)}))}function Nve(e,t,n){return e(r=>ZM(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.min(...i,0)-1),Xh(r.transaction)}))}function Lve(e){return e(t=>ZM(t).then(n=>{const r=n[0];if(r!=null)return Xh(t.get(r)).then(i=>(t.delete(r),Xh(t.transaction).then(()=>i)))}))}function Dve(e){let t;function n(){return t==null&&(t=Ove(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const i=await E0(r);await Mve(n(),i,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const i=await E0(r);await Nve(n(),i,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await Lve(n());if(r)return Nie(r)}catch{}}}}function Pve(e){return t=>{const n=e({...t,createStore:Dve});return at.addEventListener("online",async r=>{await n.flush()}),n}}function $ve(e=OM){return Pve(coe(e))}const xB=1e6,Fve="window"in ft&&ft.window===ft&&typeof importScripts>"u",Nl=String(0),G0=Fve?"main":"worker",q0=at.navigator;let FG="",UG="",BG="",Ek=q0?.userAgent||"",zG="";const Uve=q0?.language||q0?.languages?.[0]||"";function Bve(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const CB=q0?.userAgentData;Bve(CB)&&CB.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(FG=e.platform||"",BG=e.architecture||"",zG=e.model||"",UG=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];Ek=`${t.brand} ${t.version}`}}).catch(e=>{});function zve(e){return!("thread_metadata"in e)}function Hve(e){return zve(e)?Yve(e):e}function jve(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&Me&&ne.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function Vve(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const i=jve(r),s=Hve(n),o=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Cr()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:Cr()*1e3;return{event_id:e,timestamp:new Date(o).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||hw,runtime:{name:"javascript",version:at.navigator.userAgent},os:{name:FG,version:UG,build_number:Ek},device:{locale:Uve,model:zG,manufacturer:Ek,architecture:BG,is_emulator:!1},debug_meta:{images:jG(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||ci(),trace_id:i,active_thread_id:Nl,relative_start_ns:"0",relative_end_ns:((a-o)*1e6).toFixed(0)}]}}function Gve(e,t,n){if(e==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const r=Wve(e),i=t.getOptions(),s=t.getSdkMetadata?.()?.sdk;return{chunk_id:ci(),client_sdk:{name:s?.name??"sentry.javascript.browser",version:s?.version??"0.0.0"},profiler_id:n||ci(),platform:"javascript",version:"2",release:i.release??"",environment:i.environment??"production",debug_meta:{images:jG(e.resources)},profile:r}}function qve(e){try{if(!e||typeof e!="object")return{reason:"chunk is not an object"};const t=r=>typeof r=="string"&&/^[a-f0-9]{32}$/.test(r);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const n=e.profile;return n?!Array.isArray(n.frames)||!n.frames.length?{reason:"profile has no frames"}
525:!Array.isArray(n.stacks)||!n.stacks.length?{reason:"profile has no stacks"}:!Array.isArray(n.samples)||!n.samples.length?{reason:"profile has no samples"}:{valid:!0}:{reason:"missing profile data"}}catch(t){return{reason:`unknown validation error: ${t}`}}}function Wve(e){const t=[];for(let a=0;a<e.frames.length;a++){const l=e.frames[a];l&&(t[a]={function:l.name,abs_path:typeof l.resourceId=="number"?e.resources[l.resourceId]:void 0,lineno:l.line,colno:l.column})}const n=[];for(let a=0;a<e.stacks.length;a++){const l=e.stacks[a];if(!l)continue;const f=[];let d=l;for(;d;)f.push(d.frameId),d=d.parentId===void 0?void 0:e.stacks[d.parentId];n[a]=f}const r=Bi(),i=typeof performance.timeOrigin=="number"?performance.timeOrigin:r||0,s=i-(r||i),o=[];for(let a=0;a<e.samples.length;a++){const l=e.samples[a];if(!l)continue;const f=(i+(l.timestamp-s))/1e3;o[a]={stack_id:l.stackId??0,thread_id:Nl,timestamp:f}}return{frames:t,stacks:n,samples:o,thread_metadata:{[Nl]:{name:G0}}}}function HG(e){return It(e).op==="pageload"}function Yve(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Nl]:{name:G0}}},i=e.samples[0];if(!i)return r;const s=i.timestamp,o=Bi(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:o||0,l=a-(o||a);return e.samples.forEach((f,d)=>{if(f.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[d]={elapsed_since_start_ns:((f.timestamp+l-s)*xB).toFixed(0),stack_id:t,thread_id:Nl};return}let p=e.stacks[f.stackId];const m=[];for(;p;){m.push(p.frameId);const v=e.frames[p.frameId];v&&r.frames[p.frameId]===void 0&&(r.frames[p.frameId]={function:v.name,abs_path:typeof v.resourceId=="number"?e.resources[v.resourceId]:void 0,lineno:v.line,colno:v.column}),p=p.parentId===void 0?void 0:e.stacks[p.parentId]}const _={elapsed_since_start_ns:((f.timestamp+l-s)*xB).toFixed(0),stack_id:n,thread_id:Nl};r.stacks[n]=m,r.samples[d]=_,n++}),r}function Xve(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function Kve(e){const t=[];return kf(e,(n,r)=>{if(r==="transaction")for(let i=1;i<n.length;i++)n[i]?.contexts?.profile?.profile_id&&t.push(n[i])}),t}function jG(e){const r=Ue()?.getOptions()?.stackParser;return r?ase(r,e):[]}function VG(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(Me&&ne.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(Me&&ne.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function Zve(e){return e.samples.length<2?(Me&&ne.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(Me&&ne.log("[Profiling] Discarding profile because it contains no frames"),!1)}let JM=!1;const GG=3e4;function Jve(e){return typeof e=="function"}function qG(){const e=at.Profiler;if(!Jve(e)){Me&&ne.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(GG/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{Me&&(ne.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),ne.log("[Profiling] Disabling profiling for current user session.")),JM=!0}}function AB(e){if(JM)return Me&&ne.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return Me&&ne.log("[Profiling] Discarding profile because root span was not sampled."),!1;const n=Ue()?.getOptions();if(!n)return Me&&ne.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return VG(r)?r?(r===!0?!0:Math.random()<r)?!0:(Me&&ne.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(Me&&ne.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(Me&&ne.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function Qve(e){if(JM)return Me&&ne.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if(e.profileLifecycle!=="trace"&&e.profileLifecycle!=="manual")return Me&&ne.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const t=e.profileSessionSampleRate;return VG(t)?t?Math.random()<=t:(Me&&ne.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(Me&&ne.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function Eb(e){return typeof e.profilesSampleRate<"u"}function eye(e,t,n,r){return Zve(n)?Vve(e,t,n,r):null}const df=new Map;function tye(){return df.size}function nye(e){const t=df.get(e);return t&&df.delete(e),t}function rye(e,t){if(df.set(e,t),df.size>30){const n=df.keys().next().value;n!==void 0&&df.delete(n)}}function iye(e){return!e?.contexts?.profile||!e.contexts||(e.contexts.trace={...e.contexts?.trace??{},data:{...e.contexts?.trace?.data??{},"thread.id":Nl,"thread.name":G0}},e.spans?.forEach(t=>{t.data={...t.data||{},"thread.id":Nl,"thread.name":G0}})),e}function RB(e){let t;HG(e)&&(t=Cr()*1e3);const n=qG();if(!n)return;Me&&ne.log(`[Profiling] started profiling span: ${It(e).description}`);const r=ci();let i=null;Mt().setContext("profile",{profile_id:r,start_timestamp:t});async function s(){if(e&&n){if(i){Me&&ne.log("[Profiling] profile for:",It(e).description,"already exists, returning early");return}return n.stop().then(f=>{if(o&&(at.clearTimeout(o),o=void 0),Me&&ne.log(`[Profiling] stopped profiling of span: ${It(e).description}`),!f){Me&&ne.log(`[Profiling] profiler returned null profile for: ${It(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}i=f,rye(r,f)}).catch(f=>{Me&&ne.log("[Profiling] error while stopping profiler:",f)})}}let o=at.setTimeout(()=>{Me&&ne.log("[Profiling] max profile duration elapsed, stopping profiling for:",It(e).description),s()},GG);const a=e.end.bind(e);function l(){return e?(s().then(()=>{a()},()=>{a()}),e):a()}e.end=l}const sye=6e4,oye=3e5;class aye{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(t){const n=t.getOptions().profileLifecycle,r=Qve(t.getOptions());Me&&ne.log(`[Profiling] Initializing profiler (lifecycle='${n}').`),r||Me&&ne.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=ci(),this._client=t,this._sessionSampled=r,this._lifecycleMode=n,n==="trace"&&this._setupTraceLifecycleListeners(t)}
525start(){if(this._lifecycleMode==="trace"){Me&&ne.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){Me&&ne.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){Me&&ne.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode==="trace"){Me&&ne.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){Me&&ne.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(t){if(this._lifecycleMode!=="trace"||!this._sessionSampled)return;const n=t.spanContext().spanId;if(!n||this._activeRootSpanIds.has(n))return;this._registerTraceRootSpan(n);const r=this._activeRootSpanIds.size;r===1&&(Me&&ne.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,Me&&ne.log("[Profiling] Started profiling with profiler ID:",this._profilerId),Ol().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){Me&&ne.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(t=>{Me&&ne.error("[Profiling] Failed to collect current profile chunk on `stop()`:",t)}),this._lifecycleMode==="manual"&&Ol().setContext("profile",{}))}_setupTraceLifecycleListeners(t){t.on("spanStart",n=>{if(!this._sessionSampled){Me&&ne.log("[Profiling] Session not sampled because of negative sampling decision.");return}if(n!==Hr(n))return;if(!n.isRecording()){Me&&ne.log("[Profiling] Discarding profile because root span was not sampled.");return}const r=n.spanContext().spanId;if(!r||this._activeRootSpanIds.has(r))return;this._registerTraceRootSpan(r);const i=this._activeRootSpanIds.size;i===1&&(Me&&ne.log(`[Profiling] Root span ${r} started. Profiling active while there are active root spans (count=${i}).`),this._beginProfiling())}),t.on("spanEnd",n=>{if(!this._sessionSampled)return;const r=n.spanContext().spanId;if(!r||!this._activeRootSpanIds.has(r))return;this._activeRootSpanIds.delete(r);const i=this._activeRootSpanIds.size;Me&&ne.log(`[Profiling] Root span with ID ${r} ended. Will continue profiling for as long as there are active root spans (currently: ${i}).`),i===0&&(this._collectCurrentChunk().catch(s=>{Me&&ne.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",s)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,Ol().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(t=>clearTimeout(t)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(t){this._activeRootSpanIds.add(t);const n=setTimeout(()=>this._onRootSpanTimeout(t),oye);this._rootSpanTimeouts.set(t,n)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;const t=qG();if(!t){Me&&ne.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=t}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(t=>{Me&&ne.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",t)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},sye))}_onRootSpanTimeout(t){this._rootSpanTimeouts.has(t)&&(this._rootSpanTimeouts.delete(t),this._activeRootSpanIds.has(t)&&(Me&&ne.log(`[Profiling] Reached 5-minute timeout for root span ${t}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(t),this._activeRootSpanIds.size===0&&this._endProfiling()))}async _collectCurrentChunk(){const t=this._profiler;if(this._profiler=void 0,!!t)try{const n=await t.stop(),r=Gve(n,this._client,this._profilerId),i=qve(r);if("reason"in i){Me&&ne.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",i.reason);return}this._sendProfileChunk(r),Me&&ne.log("[Profiling] Collected browser profile chunk.")}catch(n){Me&&ne.log("[Profiling] Error while stopping JS Profiler for chunk:",n)}}_sendProfileChunk(t){const n=this._client,r=pw(n.getSdkMetadata?.()),i=n.getDsn(),s=n.getOptions().tunnel,o=jo({event_id:ci(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!s&&i&&{dsn:Dc(i)}},[[{type:"profile_chunk"},t]]);n.sendEnvelope(o).then(null,a=>{Me&&ne.error("Error while sending profile chunk envelope:",a)})}}const cye="BrowserProfiling",lye=(()=>({name:cye,setup(e){const t=e.getOptions(),n=new aye;if(!Eb(t)&&!t.profileLifecycle&&(t.profileLifecycle="manual"),Eb(t)&&!t.profilesSampleRate){Me&&ne.log("[Profiling] Profiling disabled, no profiling options foun
525d.");return}const r=Vr(),i=r&&Hr(r);if(Eb(t)&&t.profileSessionSampleRate!==void 0&&Me&&ne.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),Eb(t))i&&HG(i)&&AB(i)&&RB(i),e.on("spanStart",s=>{s===Hr(s)&&AB(s)&&RB(s)}),e.on("beforeEnvelope",s=>{if(!tye())return;const o=Kve(s);if(!o.length)return;const a=[];for(const l of o){const f=l?.contexts,d=f?.profile?.profile_id,p=f?.profile?.start_timestamp;if(typeof d!="string"){Me&&ne.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!d){Me&&ne.log("[Profiling] cannot find profile for a span without a profile context");continue}f?.profile&&delete f.profile;const m=nye(d);if(!m){Me&&ne.log(`[Profiling] Could not retrieve profile for span: ${d}`);continue}const _=eye(d,p,m,l);_&&a.push(_)}Xve(s,a)});else{const s=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),s==="manual")n.initialize(e);else if(s==="trace"){if(!ho(t)){Me&&ne.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),i&&n.notifyRootSpanActive(i),at.setTimeout(()=>{const o=Vr(),a=o&&Hr(o);a&&n.notifyRootSpanActive(a)},0)}}},processEvent(e){return iye(e)}})),WG=lye,uye=()=>({name:"LaunchDarkly",processEvent(e,t,n){return Ip(e)}});function fye(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{If(e,t.value),Of(e,t.value)}}}const dye=()=>({name:"OpenFeature",processEvent(e,t,n){return Ip(e)}});class hye{after(t,n){If(n.flagKey,n.value),Of(n.flagKey,n.value)}error(t,n,r){If(t.flagKey,t.defaultValue),Of(t.flagKey,t.defaultValue)}}const pye=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;xi(t,"isEnabled",gye)},processEvent(t,n,r){return Ip(t)}});function gye(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(If(n,r),Of(n,r)):Me&&ne.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const mye=(({growthbookClass:e})=>Nae({growthbookClass:e})),_ye=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{If(n.gate.name,n.gate.value),Of(n.gate.name,n.gate.value)})},processEvent(t,n,r){return Ip(t)}});async function vye(){const e=Ue();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await Tj(()=>fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}const yye="WebWorker",bye=({worker:e})=>({name:yye,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>kB(t))},addWorker:t=>kB(t)});function kB(e){e.addEventListener("message",t=>{wye(t.data)&&(t.stopImmediatePropagation(),t.data._sentryDebugIds&&(Me&&ne.log("Sentry debugId web worker message received",t.data),at._sentryDebugIds={...t.data._sentryDebugIds,...at._sentryDebugIds}),t.data._sentryWorkerError&&(Me&&ne.log("Sentry worker rejection message received",t.data._sentryWorkerError),Sye(t.data._sentryWorkerError)))})}function Sye(e){const t=Ue();if(!t)return;const n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,i=e.reason,s=jl(i)?xV(i):Aw(n,i,void 0,r,!0);s.level="error",e.filename&&(s.contexts={...s.contexts,worker:{filename:e.filename}}),kp(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),Me&&ne.log("Captured worker unhandled rejection",i)}function Eye({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0}),e.addEventListener("unhandledrejection",t=>{const r={reason:TV(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),Me&&ne.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),Me&&ne.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function wye(e){if(!pa(e)||e._sentryMessage!==!0)return!1;const t="_sentryDebugIds"in e,n="_sentryWorkerError"in e;return!(!t&&!n||t&&!(pa(e._sentryDebugIds)||e._sentryDebugIds===void 0)||n&&!pa(e._sentryWorkerError))}const Tye=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:X8,OpenFeatureIntegrationHook:hye,SDK_VERSION:pc,SEMANTIC_ATTRIBUTE_SENTRY_OP:Us,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:ir,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:fw,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:$s,Scope:zo,WINDOW:at,addBreadcrumb:Ea,addEventProcessor:Lj,addIntegration:GR,breadcrumbsIntegration:bV,browserApiErrorsIntegration:SV,browserProfilingIntegration:WG,browserSessionIntegration:EV,browserTracingIntegration:Cve,buildLaunchDarklyFlagUsedHandler:fye,captureConsoleIntegration:zoe,captureEvent:kp,captureException:li,captureFeedback:g8,captureMessage:Ij,captureSession:VR,chromeStackLineParser:gV,close:Tse,consoleLoggingIntegration:Qae,contextLinesIntegration:rpe,continueTrace:Wie,createConsolaReporter:sce,createTransport:qj,createUserFeedbackEnvelope:Jde,dedupeIntegration:l8,defaultRequestInstrumentationOptions:KM,defaultStackLineParsers:_V,defaultStackParser:vV,diagnoseSdkConnectivity:vye,endSession:qO,eventFiltersIntegration:i8,eventFromException:W8,eventFromMessage:Y8,exceptionFromError:Cw,extraErrorDataIntegration:Koe,featureFlagsIntegration:Mae,feedbackAsyncIntegration:efe,feedbackIntegration:M3,feedbackSyncIntegration:M3,flush:wse,forceLoad:Dhe,functionToStringIntegration:r8,geckoStackLineParser:mV,getActiveSpan:Vr,getClient:Ue,getCurrentScope:Mt,getDefaultIntegrations:kV,getFeedback:uue,getGlobalScope:Ol,getIsolationScope:ii,getReplay:G_e,getRootSpan:Hr,getSpanDescendants:Im,getSpanStatusFromHttpCode:ej,getTraceData:tM,globalHandlersIntegration:wV,graphqlClientIntegration:fpe,growthbookIntegration:mye,httpClientIntegration:jhe,httpContextIntegration:AV,inboundFiltersIntegration:s8,init:Lhe,instrumentAnthropicAiClient:fle,instrumentGoogleGenAIClient:Tle,instrumentOpenAiClient:Wce,instrumentOutgoingRequests:NG,instrumentSupabaseClient:p8,isEnabled:Nj,isInitialized:xse,lastEventId:Mj,launchDarklyIntegration:uye,lazyLoadIntegration:G8,linkedErrorsIntegration:RV,logger:Wae,makeBrowserOfflineTransport:$ve,makeFetchTransport:OM,makeMultiplexedTransport:foe,metrics:rce,moduleMetadataIntegration:$oe,onLoad:Phe,openFeatureIntegration:dye,opera10StackLineParser:Yde,opera11StackLineParser:Zde,parameterize:n8,registerSpanErrorInstrumentation:vj,registerWebWorker:Eye,replayCanvasIntegration:uve,replayIntegration:xG,reportPageLoaded:kve,reportingObserverIntegration:Bhe,rewriteFramesIntegration:iae,sendFeedback:O8,setActiveSpanInBrowser:Ive,setContext:Oj,setCurrentClient:Jj,setExtra:yse,setExtras:vse,setHttpStatus:s_,setMeasurement:wj,setTag:Sse,setTags:bse,setUser:Ese,showReportDialog:uk,spanToBaggageHeader:Tie,spanToJSON:It,spanToTraceHeader:pj,spotlightBrowserIntegration:Ihe,startBrowserTracingNavigationSpan:PG,startBrowserTracingPageLoadSpan:DG,startInactiveSpan:Wf,startNewTrace:xj,startSession:jR,startSpan:qf,startSpanManual:o_,statsigIntegration:_ye,supabaseIntegration:_ae,suppressTracing:Tj,thirdPartyErrorFilterIntegration:Aae,uiProfiler:kde,unleashIntegration:pye,updateSpanName:Sie,webWorkerIntegration:bye,winjsStackLineParser:Gde,withActiveSpan:uv,withIsolationScope:Kre,withScope:Ts,zodErrorsIntegration:Cae},Symbol.toStringTag,{value:"Module"})),xye=D.createContext(null);function Cye(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function Aye(e,t){const n=new WeakSet;
525function r(i,s){if(!n.has(i)){if(i.cause)return n.add(i),r(i.cause,s);i.cause=s}}r(e,t)}function Rye(e,{componentStack:t},n){if(Cye(D.version)&&gc(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,Aye(e,r)}return Ts(r=>(r.setContext("react",{componentStack:t}),li(e,n)))}const kye=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,kC={componentStack:null,error:null,eventId:null};class Iye extends D.Component{constructor(t){super(t),this.state=kC,this._openFallbackReportDialog=!0;const n=Ue();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&uk({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,{beforeCapture:i,onError:s,showDialog:o,dialogOptions:a}=this.props;Ts(l=>{i&&i(l,t,r);const f=this.props.handled!=null?this.props.handled:!!this.props.fallback,d=Rye(t,n,{mechanism:{handled:f,type:"auto.function.react.error_boundary"}});s&&s(t,r,d),o&&(this._lastEventId=d,this._openFallbackReportDialog&&uk({...a,eventId:d})),this.setState({error:t,componentStack:r,eventId:d})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:i}=this.props;i&&(this.state===kC?i(null,null,null):i(t,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;t&&t(n,r,i),this.setState(kC)}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const i=typeof t=="function"?D.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):t;return D.isValidElement(i)?i:(t&&kye&&ne.warn("fallback did not produce a valid ReactElement"),null)}}function Oye({error:e}){return q.jsx(q.Fragment,{children:Dh(e)})}function YG(){return D.useContext(xye)??Tye}function Mye({user:e,...t}){const{init:n,setUser:r}=YG(),i=iv(t);D.useEffect(()=>{n(i)},[n,i]),D.useEffect(()=>{r({ip_address:"{{auto}}",...e})},[r,e])}function Nye({beforeErrorBoundaryCapture:e,children:t,errorBoundaryDialogOptions:n,ErrorBoundaryFallback:r=Oye,onErrorBoundaryError:i,onErrorBoundaryMount:s,onErrorBoundaryReset:o,onErrorBoundaryUnmount:a,showErrorBoundaryDialog:l,user:f,...d}){return Mye({user:f,...d}),q.jsx(Iye,{beforeCapture:e,dialogOptions:n,fallback:r,onError:i,onMount:s,onReset:o,onUnmount:a,showDialog:l,children:t})}const Lye=xG({blockAllMedia:!1,maskAllText:!1});function Dye(){return D.useMemo(()=>[WG(),Lye],[])}const Pye=[/^Object Not Found Matching Id:\d+, MethodName:\w+, ParamCount:\d+$/u];function $ye({children:e,dsn:t,environment:n,release:r,tracePropagationTargets:i,user:s}){const o=Dye();return q.jsx(Nye,{attachStacktrace:!0,dsn:t,enabled:!0,environment:n,ignoreErrors:Pye,integrations:o,normalizeDepth:Number.POSITIVE_INFINITY,release:r,replaysOnErrorSampleRate:1,replaysSessionSampleRate:1,sampleRate:1,sendClientReports:!0,sendDefaultPii:!0,tracePropagationTargets:i,tracesSampleRate:1,user:s,children:e})}const XG=void 0,Fye=ct("production"),Uye="unknown",Bye=["api.quisi.do","localhost","quisi.do"];function zye(){const e=jf();return{user:D.useMemo(()=>{if(typeof e.data>"u")return;const{id:n}=e.data;if(n!==null)return{...e.data,id:n}},[e])}}function Hye({children:e}){const{user:t}=zye();return q.jsx($ye,{dsn:"https://[email protected]/5740642",environment:Fye,release:Uye,tracePropagationTargets:Bye,user:t,children:e})}const{ContextProvider:jye,useContextValue:Vye}=rv(),Gye=jye,qye=Vye,IB="0123456789abcdefghijklmnopqrstuvwxyz",OB=1,Wye=18,Yye=3,Xye=()=>{const e=Math.floor(Math.random()*IB.length);return IB.charAt(e)};function Kye(){const e=[];for(let t=0;t<Yye;t+=OB){const n=[];for(let r=0;r<Wye;r+=OB)n.push(Xye());e.push(n.join(""))}return e.join("-")}function Zye(e){const t=window.document.cookie.split(/;\s*/u),n=`__Secure-${e}`;for(const r of t){const[i,...s]=r.split("=");if(i===n)return s.join("=")}return null}const Jye=365,Qye=24,W0=1e3,ebe=60,tbe=60,nbe=W0*tbe,rbe=nbe*ebe,ibe=rbe*Qye,sbe=ibe*Jye,obe={},wk=0,abe=e=>e===wk?sbe:Math.floor(e/W0);function KG(e,t,{expiresMs:n=wk,partitioned:r=!1,path:i="/",subdomains:s=!1}=obe){const o=abe(n),a=[`__Secure-${e}=${t}`,`max-age=${o.toString()}`,`path=${i}`,"samesite=lax","secure"];if(s&&a.push(`domain=${window.location.hostname}`),n>wk){const l=new Date(Date.now()+n);a.push(`expires=${l.toUTCString()}`)}r&&a.push("partitioned"),document.cookie=a.join("; ")}
vendor: 5,260 bytes, line 525
525function cbe(){const e=Zye("Session-ID");if(e!==null)return e;const t=Kye();return KG("Session-ID",t,{partitioned:!0,subdomains:!0}),t}function lbe({children:e}){const[t,n]=D.useState();return D.useLayoutEffect(()=>{n(cbe)},[]),q.jsx(Gye,{value:t,children:e})}function QM(){const e=sv();return e===null?"quisi.do":e.location.hostname}const IC="exception.message",ube="exception.stacktrace",OC="exception.type",ZG="service.name",fbe="service.version",p_="telemetry.sdk.language",dbe="nodejs",JG="webjs",Y0="telemetry.sdk.name",X0="telemetry.sdk.version";function hbe(){return sv()===null?dbe:JG}var pbe=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},hf="1.9.0",MB=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function gbe(e){var t=new Set([e]),n=new Set,r=e.match(MB);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(l){return l===e};function s(a){return n.add(a),!1}function o(a){return t.add(a),!0}return function(l){if(t.has(l))return!0;if(n.has(l))return!1;var f=l.match(MB);if(!f)return s(l);var d={major:+f[1],minor:+f[2],patch:+f[3],prerelease:f[4]};return d.prerelease!=null||i.major!==d.major?s(l):i.major===0?i.minor===d.minor&&i.patch<=d.patch?o(l):s(l):i.minor<=d.minor?o(l):s(l)}}var mbe=gbe(hf),_be=hf.split(".")[0],g_=Symbol.for("opentelemetry.js.api."+_be),m_=pbe;function Fw(e,t,n,r){var i;r===void 0&&(r=!1);var s=m_[g_]=(i=m_[g_])!==null&&i!==void 0?i:{version:hf};if(!r&&s[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(o.stack||o.message),!1}if(s.version!==hf){var o=new Error("@opentelemetry/api: Registration of version v"+s.version+" for "+e+" does not match previously registered API v"+hf);return n.error(o.stack||o.message),!1}return s[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+hf+"."),!0}function Kh(e){var t,n,r=(t=m_[g_])===null||t===void 0?void 0:t.version;if(!(!r||!mbe(r)))return(n=m_[g_])===null||n===void 0?void 0:n[e]}function Uw(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+hf+".");var n=m_[g_];n&&delete n[e]}var vbe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},ybe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},bbe=(function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Vg("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Vg("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Vg("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Vg("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Vg("verbose",this._namespace,t)},e})();function Vg(e,t,n){var r=Kh("diag");if(r)return n.unshift(t),r[e].apply(r,ybe([],vbe(n),!1))}var Ns;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Ns||(Ns={}));function Sbe(e,t){e<Ns.NONE?e=Ns.NONE:e>Ns.ALL&&(e=Ns.ALL),t=t||{};function n(r,i){var s=t[r];return typeof s=="function"&&e>=i?s.bind(t):function(){}}return{error:n("error",Ns.ERROR),warn:n("warn",Ns.WARN),info:n("info",Ns.INFO),debug:n("debug",Ns.DEBUG),verbose:n("verbose",Ns.VERBOSE)}}var Ebe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},wbe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},Tbe="diag",Gl=(function(){function e(){function t(i){return function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var a=Kh("diag");if(a)return a[i].apply(a,wbe([],Ebe(s),!1))}}var n=this,r=function(i,s){var o,a,l;if(s===void 0&&(s={logLevel:Ns.INFO}),i===n){var f=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((o=f.stack)!==null&&o!==void 0?o:f.message),!1}typeof s=="number"&&(s={logLevel:s});var d=Kh("diag"),p=Sbe((a=s.logLevel)!==null&&a!==void 0?a:Ns.INFO,i);if(d&&!s.suppressOverrideMessage){var m=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";d.warn("Current logger will be overwritten from "+m),p.warn("Current logger will over
525write one already registered from "+m)}return Fw("diag",p,n,!0)};n.setLogger=r,n.disable=function(){Uw(Tbe,n)},n.createComponentLogger=function(i){return new bbe(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e})(),xbe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},Cbe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Abe=(function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=xbe(t,2),r=n[0],i=n[1];return[r,i]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=new e(this._entries);try{for(var o=Cbe(r),a=o.next();!a.done;a=o.next()){var l=a.value;s._entries.delete(l)}}catch(f){t={error:f}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return s},e.prototype.clear=function(){return new e},e})(),Rbe=Symbol("BaggageEntryMetadata"),kbe=Gl.instance();function Ibe(e){return e===void 0&&(e={}),new Abe(new Map(Object.entries(e)))}function Obe(e){return typeof e!="string"&&(kbe.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:Rbe,toString:function(){return e}}}function eN(e){return Symbol.for(e)}var Mbe=(function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var s=new e(n._currentContext);return s._currentContext.set(r,i),s},n.deleteValue=function(r){var i=new e(n._currentContext);return i._currentContext.delete(r),i}}return e})(),ac=new Mbe,Nbe={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},Lbe={set:function(e,t,n){e!=null&&(e[t]=n)}},Dbe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},Pbe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},$be=(function(){function e(){}return e.prototype.active=function(){return ac},e.prototype.with=function(t,n,r){for(var i=[],s=3;s<arguments.length;s++)i[s-3]=arguments[s];return n.call.apply(n,Pbe([r],Dbe(i),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e})(),Fbe=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s},Ube=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},MC="context",Bbe=new $be,Bw=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Fw(MC,t,Gl.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,r){for(var i,s=[],o=3;o<arguments.length;o++)s[o-3]=arguments[o];return(i=this._getContextManager()).with.apply(i,Ube([t,n,r],Fbe(s),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return Kh(MC)||Bbe},e.prototype.disable=function(){this._getContextManager().disable(),Uw(MC,Gl.instance())},e})(),Cc;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Cc||(Cc={}));var QG="0000000000000000",eq="00000000000000000000000000000000",tq={traceId:eq,spanId:QG,traceFlags:Cc.NONE},Dm=(function(){function e(t){t===void 0&&(t=tq),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e})(),tN=eN("OpenTelemetry Context Key SPAN");function nN(e){return e.getValue(tN)||void 0}function zbe(){return nN(Bw.getInstance().active())}function rN(e,t){return e.setValue(tN,t)}function Hbe(e){return e.deleteValue(tN)}function jbe(e,t){return rN(e,new Dm(t))}function nq(e){var t;return(t=nN(e))===null||t===void 0?void 0:t.spanContext()}var Vbe=/^([0-9a-f]{32})$/i,Gbe=/^[0-9a-f]{16}$/i;function rq(e){return Vbe.test(e)&&e!==eq}function qbe(e){return Gbe.test(e)&&e!==QG}function zw(e){return rq(e.traceId)&&qbe(e.spanId)}function Wbe(e){return new Dm(e)}var NC=Bw.getInstance(),iq=(function(){function e(){}return e.prototype.startSpan=function(t,n,r){r===void 0&&(r=NC.active());var i=!!n?.root;if(i)return new Dm;var s=r&&nq(r);return Ybe(s)&&zw(s)?new Dm(s):new Dm},e.prototype.startActiveSpan=function(t,n,r,i){var s,o,a;if(!(arguments.length<2)){arguments.length===2?a=n:arguments.length===3?(s=n,a=r):(s=n,o=r,a=i);var l=o??NC.active(),f=this.startSpan(t,s,l),d=rN(l,f);return NC.with(d,a,void 0,f)}},e})();function Ybe(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var Xbe=new iq,Kbe=(function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.startSpan=function(t,n,r){return this._getTracer().startSpan(t,n,r)},e.prototype.startActiveSpan=function(t,n,r,i){var s=this._getTracer();return Reflect.apply(s.startActiveSpan,s,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Xbe},e})(),Zbe=(function(){function e(){}return e.prototype.getTracer=function(t,n,r){return new iq},e})(),Jbe=new Zbe,NB=(function(){function e(){}return e.prototype.getTracer=function(t,n,r){var i;return(i=this.getDelegateTracer(t,n,r))!==null&&i!==void 0?i:new Kbe(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Jbe},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,r)},e})(),K0;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(K0||(K0={}));var Tk;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(Tk||(Tk={}));var xk;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(xk||(xk={}));var xf=Bw.getInstance(),dn=Gl.instance(),Qbe=(function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e})(),iN=eN("OpenTelemetry Baggage Key");function sq(e){return e.getValue(iN)||void 0}function eSe(){return sq(Bw.getInstance().active())}function tSe(e,t){return e.setValue(iN,t)}function nSe(e){return e.deleteValue(iN)}var LC="propagation",rSe=new Qbe,iSe=(function(){function e(){this.createBaggage=Ibe,this.getBaggage=sq,this.getActiveBaggage=eSe,this.setBaggage=tSe,this.deleteBaggage=nSe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Fw(LC,t,Gl.instance())},e.prototype.inject=function(t,n,r){return r===void 0&&(r=Lbe),this._getGlobalPropagator().inject(t,n,r)},e.prototype.extract=function(t,n,r){return r===void 0&&(r=Nbe),this._getGlobalPropagator().extract(t,n,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Uw(LC,Gl.instance())},e.prototype._getGlobalPropagator=function(){return Kh(LC)||rSe},e})(),Pm=iSe.getInstance(),DC="trace",sSe=(function(){function e(){this._proxyTracerProvider=new NB,this.wrapSpanContext=Wbe,this.isSpanContextValid=zw,this.deleteSpan=Hbe,this.get
525Span=nN,this.getActiveSpan=zbe,this.getSpanContext=nq,this.setSpan=rN,this.setSpanContext=jbe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=Fw(DC,this._proxyTracerProvider,Gl.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return Kh(DC)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){Uw(DC,Gl.instance()),this._proxyTracerProvider=new NB},e})(),aa=sSe.getInstance();const oSe=D.createContext(null);function aSe({children:e,value:t}){return q.jsx(oSe.Provider,{value:t,children:e})}function Ki(){}function cSe(e){return typeof e=="object"&&e!==null&&"addEventListener"in e&&typeof e.addEventListener=="function"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"}const LB="OT_ZONE_CONTEXT";class lSe{_enabled=!1;_zoneCounter=0;_activeContextFromZone(t){return t&&t.get(LB)||ac}_bindFunction(t,n){const r=this,i=function(...s){return r.with(t,()=>n.apply(this,s))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}_bindListener(t,n){const r=n;return r.__ot_listeners!==void 0||(r.__ot_listeners={},typeof r.addEventListener=="function"&&(r.addEventListener=this._patchAddEventListener(r,r.addEventListener,t)),typeof r.removeEventListener=="function"&&(r.removeEventListener=this._patchRemoveEventListener(r,r.removeEventListener))),n}_createZoneName(){this._zoneCounter++;const t=Math.random();return`${this._zoneCounter}-${t}`}_createZone(t,n){return Zone.current.fork({name:t,properties:{[LB]:n}})}_getActiveZone(){return Zone.current}_patchAddEventListener(t,n,r){const i=this;return function(s,o,a){t.__ot_listeners===void 0&&(t.__ot_listeners={});let l=t.__ot_listeners[s];l===void 0&&(l=new WeakMap,t.__ot_listeners[s]=l);const f=i.bind(r,o);return l.set(o,f),n.call(this,s,f,a)}}_patchRemoveEventListener(t,n){return function(r,i){if(t.__ot_listeners===void 0||t.__ot_listeners[r]===void 0)return n.call(this,r,i);const s=t.__ot_listeners[r],o=s.get(i);return s.delete(i),n.call(this,r,o||i)}}active(){if(!this._enabled)return ac;const t=this._getActiveZone(),n=this._activeContextFromZone(t);return n||ac}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):(cSe(n)&&this._bindListener(t,n),n)}disable(){return this._enabled=!1,this}enable(){return this._enabled=!0,this}with(t,n,r,...i){const s=this._createZoneName();return this._createZone(s,t).run(n,r,i)}}var DB={},PB;function uSe(){if(PB)return DB;PB=1;const e=globalThis;function t(H){return(e.__Zone_symbol_prefix||"__zone_symbol__")+H}function n(){const H=e.performance;function Z(F){H&&H.mark&&H.mark(F)}function se(F,B){H&&H.measure&&H.measure(F,B)}Z("Zone");class G{static __symbol__=t;static assertZonePatched(){if(e.Promise!==ht.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let B=G.current;for(;B.parent;)B=B.parent;return B}static get current(){return st.zone}static get currentTask(){return yt}static __load_patch(B,Y,ie=!1){if(ht.hasOwnProperty(B)){const Ie=e[t("forceDuplicateZoneCheck")]===!0;if(!ie&&Ie)throw Error("Already loaded patch: "+B)}else if(!e["__Zone_disable_"+B]){const Ie="Zone:"+B;Z(Ie),ht[B]=Y(e,G,ot),se(Ie,Ie)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(B,Y){this._parent=B,this._name=Y?Y.name||"unnamed":"<root>",this._properties=Y&&Y.properties||{},this._zoneDelegate=new we(this,this._parent&&this._parent._zoneDelegate,Y)}get(B){const Y=this.getZoneWith(B);if(Y)return Y._properties[B]}getZoneWith(B){let Y=this;for(;Y;){if(Y._properties.hasOwnProperty(B))return Y;Y=Y._parent}return null}fork(B){if(!B)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,B)}wrap(B,Y){if(typeof B!="function")throw new Error("Expecting function got: "+B);const ie=this._zoneDelegate.intercept(this,B,Y),Ie=this;return function(){return Ie.runGuarded(ie,this,arguments,Y)}}run(B,Y,ie,Ie){st={parent:st,zone:this};try{return this._zoneDelegate.invoke(this,B,Y,ie,Ie)}finally{st=st.parent}}runGuarded(B,Y=null,ie,Ie){st={parent:st,zone:this};try{try{return this._zoneDelegate.invoke(this,B,Y,ie,Ie)}catch(Ve){if(this._zoneDelegate.handleError(this,Ve))throw Ve}}finally{st=st.parent}}runTask(B,Y,ie){if(B.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(B.zone||Rr).name+"; Execution: "+this.name+")");const Ie=B,{type:Ve,data:{isPeriodic:xn=!1,isRefreshable:vt=!1}={}}=B;if(B.state===Vn&&(Ve===gt||Ve===Ne))return;const Sr=B.state!=Lt;Sr&&Ie._transitionTo(Lt,ke);const di=yt;yt=Ie,st={parent:st,zone:this};try{Ve==Ne&&B.data&&!xn&&!vt&&(B.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,Ie,Y,ie)}catch(fn){if(this._zoneDelegate.handleError(this,fn))throw fn}}finally{const fn=B.state;if(fn!==Vn&&fn!==Gn)if(Ve==gt||xn||vt&&fn===nt)Sr&&Ie._transitionTo(ke,Lt,nt);else{const Gs=Ie._zoneDelegates;this._updateTaskCount(Ie,-1),Sr&&Ie._transitionTo(Vn,Lt,Vn),vt&&(Ie._zoneDelegates=Gs)}st=st.parent,yt=di}}scheduleTask(B){if(B.zone&&B.zone!==this){let ie=this;for(;ie;){if(ie===B.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${B.zone.name}`);ie=ie.parent}}B._transitionTo(nt,Vn);const Y=[];B._zoneDelegates=Y,B._zone=this;try{B=this._zoneDelegate.scheduleTask(this,B)}catch(ie){throw B._transitionTo(Gn,nt,Vn),this._zoneDelegate.handleError(this,ie),ie}return B._zoneDelegates===Y&&this._updateTaskCount(B,1),B.state==nt&&B._transitionTo(ke,nt),B}scheduleMicroTask(B,Y,ie,Ie){return this.scheduleTask(new ze(jt,B,Y,ie,Ie,void 0))}scheduleMacroTask(B,Y,ie,Ie,Ve){return this.scheduleTask(new ze(Ne,B,Y,ie,Ie,Ve))}scheduleEventTask(B,Y,ie,Ie,Ve){return this.scheduleTask(new ze(gt,B,Y,ie,Ie,Ve))}cancelTask(B){if(B.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(B.zone||Rr).name+"; Execution: "+this.name+")");if(!(B.state!==ke&&B.state!==Lt)){B._transitionTo(un,ke,Lt);try{this._zoneDelegate.cancelTask(this,B)}catch(Y){throw B._transitionTo(Gn,un),this._zoneDelegate.handleError(this,Y),Y}return this._updateTaskCount(B,-1),B._transitionTo(Vn,un),B.runCount=-1,B}}_updateTaskCount(B,Y){const ie=B._zoneDelegates;Y==-1&&(B._zoneDelegates=null);for(let Ie=0;Ie<ie.length;Ie++)ie[Ie]._updateTaskCount(B.type,Y)}}const _e={name:"",onHasTask:(F,B,Y,ie)=>F.hasTask(Y,ie),onScheduleTask:(F,B,Y,ie)=>F.scheduleTask(Y,ie),onInvokeTask:(F,B,Y,ie,Ie,Ve)=>F.invokeTask(Y,ie,Ie,Ve),onCancelTask:(F,B,Y,ie)=>F.cancelTask(Y,ie)};class we{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(B,Y,ie){this._zone=B,this._parentDelegate=Y,this._forkZS=ie&&(ie&&ie.onFork?ie:Y._forkZS),this._forkDlgt=ie&&(ie.onFork?Y:Y._forkDlgt),this._forkCurrZone=ie&&(ie.onFork?this._zone:Y._forkCurrZone),this._interceptZS=ie&&(ie.onIntercept?ie:Y._interceptZS),this._interceptDlgt=ie&&(ie.onIntercept?Y:Y._interceptDlgt),this._interceptCurrZone=ie&&(ie.onIntercept?this._zone:Y._interceptCurrZone),this._invokeZS=ie&&(ie.onInvoke?ie:Y._invokeZS),this._invokeDlgt=ie&&(ie.onInvoke?Y:Y._invokeDlgt),this._invokeCurrZone=ie&&(ie.onInvoke?this._zone:Y._invokeCurrZone),this._handleErrorZS=ie&&(ie.onHandleError?ie:Y._handleErrorZS),this._handleErrorDlgt=ie&&(ie.onHandleError?Y:Y._handleErrorDlgt),this._handleErrorCurrZone=ie&&(ie.onHandleError?this._zone:Y._handleErrorCurrZone),this._scheduleTaskZS=ie&&(ie.onScheduleTask?ie:Y._scheduleTaskZS),this._scheduleTaskDlgt=ie&&(ie.onScheduleTask?Y:Y._scheduleTaskDlgt),this._scheduleTaskCurrZone=ie&&(ie.onScheduleTask?this._zone:Y._scheduleTaskCurrZone),this._invokeTaskZS=ie&&(ie.onInvokeTask?ie:Y._invokeTaskZS),this._invokeTaskDlgt=ie&&(ie.onInvokeTask?Y:Y._invokeTaskDlgt),this._invokeTaskCurrZone=ie&&(ie.onInvokeTask?this._zone:Y._invokeTaskCurrZone),this._cancelTaskZS=ie&&(ie.onCancelTask?ie:Y._cancelTaskZS),this._cancelTaskDlgt=ie&&(ie.onCancelTask?Y:Y._cancelTaskDlgt),this._cancelTaskCurrZone=ie&&(ie.onCancelTask?this._zone:Y._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const Ie=ie&&ie.onHasTask,Ve=Y&&Y._hasTaskZS;(Ie||Ve)&&(this._hasTaskZS=Ie?ie:_e,this._hasTaskDlgt=Y,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,ie.onScheduleTask||(this._scheduleTaskZS=_e,this._scheduleTaskDlgt=Y,this._scheduleTaskCurrZone=this._zone),ie.onInvokeTask||(this._invokeTaskZS=_e,this._invokeTaskDlgt=Y,this._invokeTaskCurrZone=this._zone),ie.onCancelTask||(this._cancelTaskZS=_e,this._cancelTaskDlgt=Y,this._cancelTaskCurrZone=this._zone))}fork(B,Y){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,B,Y):new G(B,Y)}intercept(B,Y,ie){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,B,Y,ie):Y}invoke(B,Y,ie,Ie,Ve){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,B,Y,ie,Ie,Ve):Y.apply(ie,Ie)}handleError(B,Y){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,B,Y):!0}scheduleTask(B,Y){let ie=Y;if(this._scheduleTaskZS)this._hasTaskZS&&ie._zoneDelegates.push(this._hasTaskDlgtOwner),ie=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,B,Y),ie||(ie=Y);
vendor: 29,880 bytes, lines 525-526
525else if(Y.scheduleFn)Y.scheduleFn(Y);else if(Y.type==jt)yn(Y);else throw new Error("Task is missing scheduleFn.");return ie}invokeTask(B,Y,ie,Ie){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,B,Y,ie,Ie):Y.callback.apply(ie,Ie)}cancelTask(B,Y){let ie;if(this._cancelTaskZS)ie=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,B,Y);else{if(!Y.cancelFn)throw Error("Task is not cancelable");ie=Y.cancelFn(Y)}return ie}hasTask(B,Y){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,B,Y)}catch(ie){this.handleError(B,ie)}}_updateTaskCount(B,Y){const ie=this._taskCounts,Ie=ie[B],Ve=ie[B]=Ie+Y;if(Ve<0)throw new Error("More tasks executed then were scheduled.");if(Ie==0||Ve==0){const xn={microTask:ie.microTask>0,macroTask:ie.macroTask>0,eventTask:ie.eventTask>0,change:B};this.hasTask(this._zone,xn)}}}class ze{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(B,Y,ie,Ie,Ve,xn){if(this.type=B,this.source=Y,this.data=Ie,this.scheduleFn=Ve,this.cancelFn=xn,!ie)throw new Error("callback is not defined");this.callback=ie;const vt=this;B===gt&&Ie&&Ie.useG?this.invoke=ze.invokeTask:this.invoke=function(){return ze.invokeTask.call(e,vt,this,arguments)}}static invokeTask(B,Y,ie){B||(B=this),Yr++;try{return B.runCount++,B.zone.runTask(B,Y,ie)}finally{Yr==1&&Ar(),Yr--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Vn,nt)}_transitionTo(B,Y,ie){if(this._state===Y||this._state===ie)this._state=B,B==Vn&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${B}', expecting state '${Y}'${ie?" or '"+ie+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const Ge=t("setTimeout"),He=t("Promise"),lt=t("then");let je=[],qe=!1,_t;function ln(F){if(_t||e[He]&&(_t=e[He].resolve(0)),_t){let B=_t[lt];B||(B=_t.then),B.call(_t,F)}else e[Ge](F,0)}function yn(F){Yr===0&&je.length===0&&ln(Ar),F&&je.push(F)}function Ar(){if(!qe){for(qe=!0;je.length;){const F=je;je=[];for(let B=0;B<F.length;B++){const Y=F[B];try{Y.zone.runTask(Y,null,null)}catch(ie){ot.onUnhandledError(ie)}}}ot.microtaskDrainDone(),qe=!1}}const Rr={name:"NO ZONE"},Vn="notScheduled",nt="scheduling",ke="scheduled",Lt="running",un="canceling",Gn="unknown",jt="microTask",Ne="macroTask",gt="eventTask",ht={},ot={symbol:t,currentZoneFrame:()=>st,onUnhandledError:Ae,microtaskDrainDone:Ae,scheduleMicroTask:yn,showUncaughtError:()=>!G[t("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:Ae,patchMethod:()=>Ae,bindArguments:()=>[],patchThen:()=>Ae,patchMacroTask:()=>Ae,patchEventPrototype:()=>Ae,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>Ae,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>Ae,wrapWithCurrentZone:()=>Ae,filterProperties:()=>[],attachOriginToPatched:()=>Ae,_redefineProperty:()=>Ae,patchCallbacks:()=>Ae,nativeScheduleMicroTask:ln};let st={parent:null,zone:new G(null,null)},yt=null,Yr=0;function Ae(){}return se("Zone","Zone"),G}function r(){const H=globalThis,Z=H[t("forceDuplicateZoneCheck")]===!0;if(H.Zone&&(Z||typeof H.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return H.Zone??=n(),H.Zone}const i=Object.getOwnPropertyDescriptor,s=Object.defineProperty,o=Object.getPrototypeOf,a=Object.create,l=Array.prototype.slice,f="addEventListener",d="removeEventListener",p=t(f),m=t(d),_="true",v="false",E=t("");function b(H,Z){return Zone.current.wrap(H,Z)}function w(H,Z,se,G,_e){return Zone.current.scheduleMacroTask(H,Z,se,G,_e)}const T=t,R=typeof window<"u",C=R?window:void 0,k=R&&C||globalThis,M="removeAttribute";function I(H,Z){for(let se=H.length-1;se>=0;se--)typeof H[se]=="function"&&(H[se]=b(H[se],Z+"_"+se));return H}function $(H,Z){const se=H.constructor.name;for(let G=0;G<Z.length;G++){const _e=Z[G],we=H[_e];if(we){const ze=i(H,_e);if(!Q(ze))continue;H[_e]=(Ge=>{const He=function(){return Ge.apply(this,I(arguments,se+"."+_e))};return re(He,Ge),He})(we)}}}function Q(H){return H?H.writable===!1?!1:!(typeof H.get=="function"&&typeof H.set>"u"):!0}const V=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,N=!("nw"in k)&&typeof k.process<"u"&&k.process.toString()==="[object process]",U=!N&&!V&&!!(R&&C.HTMLElement),K=typeof k.process<"u"&&k.process.toString()==="[object process]"&&!V&&!!(R&&C.HTMLElement),j={},fe=T("enable_beforeunload"),P=function(H){if(H=H||k.event,!H)return;let Z=j[H.type];Z||(Z=j[H.type]=T("ON_PROPERTY"+H.type));const se=this||H.target||k,G=se[Z];let _e;if(U&&se===C&&H.type==="error"){const we=H;_e=G&&G.call(this,we.message,we.filename,we.lineno,we.colno,we.error),_e===!0&&H.preventDefault()}else _e=G&&G.apply(this,arguments),H.type==="beforeunload"&&k[fe]&&typeof _e=="string"?H.returnValue=_e:_e!=null&&!_e&&H.preventDefault();return _e};function ee(H,Z,se){let G=i(H,Z);if(!G&&se&&i(se,Z)&&(G={enumerable:!0,configurable:!0}),!G||!G.configurable)return;const _e=T("on"+Z+"patched");if(H.hasOwnProperty(_e)&&H[_e])return;delete G.writable,delete G.value;const we=G.get,ze=G.set,Ge=Z.slice(2);let He=j[Ge];He||(He=j[Ge]=T("ON_PROPERTY"+Ge)),G.set=function(lt){let je=this;if(!je&&H===k&&(je=k),!je)return;typeof je[He]=="function"&&je.removeEventListener(Ge,P),ze?.call(je,null),je[He]=lt,typeof lt=="function"&&je.addEventListener(Ge,P,!1)},G.get=function(){let lt=this;if(!lt&&H===k&&(lt=k),!lt)return null;const je=lt[He];if(je)return je;if(we){let qe=we.call(this);if(qe)return G.set.call(this,qe),typeof lt[M]=="function"&&lt.removeAttribute(Z),qe}return null},s(H,Z,G),H[_e]=!0}function W(H,Z,se){if(Z)for(let G=0;G<Z.length;G++)ee(H,"on"+Z[G],se);else{const G=[];for(const _e in H)_e.slice(0,2)=="on"&&G.push(_e);for(let _e=0;_e<G.length;_e++)ee(H,G[_e],se)}}const de=T("originalInstance");function ce(H){const Z=k[H];if(!Z)return;k[T(H)]=Z,k[H]=function(){const _e=I(arguments,H);switch(_e.length){case 0:this[de]=new Z;break;case 1:this[de]=new Z(_e[0]);break;case 2:this[de]=new Z(_e[0],_e[1]);break;case 3:this[de]=new Z(_e[0],_e[1],_e[2]);break;case 4:this[de]=new Z(_e[0],_e[1],_e[2],_e[3]);break;default:throw new Error("Arg list too long.")}},re(k[H],Z);const se=new Z(function(){});let G;for(G in se)H==="XMLHttpRequest"&&G==="responseBlob"||(function(_e){typeof se[_e]=="function"?k[H].prototype[_e]=function(){return this[de][_e].apply(this[de],arguments)}:s(k[H].prototype,_e,{set:function(we){typeof we=="function"?(this[de][_e]=b(we,H+"."+_e),re(this[de][_e],we)):this[de][_e]=we},get:function(){return this[de][_e]}})})(G);for(G in Z)G!=="prototype"&&Z.hasOwnProperty(G)&&(k[H][G]=Z[G])}function L(H,Z,se){let G=H;for(;G&&!G.hasOwnProperty(Z);)G=o(G);!G&&H[Z]&&(G=H);const _e=T(Z);let we=null;if(G&&(!(we=G[_e])||!G.hasOwnProperty(_e))){we=G[_e]=G[Z];const ze=G&&i(G,Z);if(Q(ze)){const Ge=se(we,_e,Z);G[Z]=function(){return Ge(this,arguments)},re(G[Z],we)}}return we}function J(H,Z,se){let G=null;function _e(we){const ze=we.data;return ze.args[ze.cbIdx]=function(){we.invoke.apply(this,arguments)},G.apply(ze.target,ze.args),we}G=L(H,Z,we=>function(ze,Ge){const He=se(ze,Ge);return He.cbIdx>=0&&typeof Ge[He.cbIdx]=="function"?w(He.name,Ge[He.cbIdx],He,_e):we.apply(ze,Ge)})}function re(H,Z){H[T("OriginalDelegate")]=Z}let me=!1,be=!1;function Ee(){if(me)return be;me=!0;try{const H=C.navigator.userAgent;(H.indexOf("MSIE ")!==-1||H.indexOf("Trident/")!==-1||H.indexOf("Edge/")!==-1)&&(be=!0)}catch{}return be}function Fe(H){return typeof H=="function"}function Be(H){return typeof H=="number"}const dt={useG:!0},pt={},Hn={},Lr=new RegExp("^"+E+"(\\w+)(true|false)$"),jn=T("propagationStopped");function tt(H,Z){const se=(Z?Z(H):H)+v,G=(Z?Z(H):H)+_,_e=E+se,we=E+G;pt[H]={},pt[H][v]=_e,pt[H][_]=we}function mt(H,Z,se,G){const _e=G&&G.add||f,we=G&&G.rm||d,ze=G&&G.listeners||"eventListeners",Ge=G&&G.rmAll||"removeAllListeners",He=T(_e),lt="."+_e+":",je="prependListener",qe="."+je+":",_t=function(nt,ke,Lt){if(nt.isRemoved)return;const un=nt.callback;typeof un=="object"&&un.handleEvent&&(nt.callback=Ne=>un.handleEvent(Ne),nt.originalDelegate=un);let Gn;try{nt.invoke(nt,ke,[Lt])}catch(Ne){Gn=Ne}const jt=nt.options;if(jt&&typeof jt=="object"&&jt.once){const Ne=nt.originalDelegate?nt.originalDelegate:nt.callback;ke[we].call(ke,Lt.type,Ne,jt)}return Gn};function ln(nt,ke,Lt){if(ke=ke||H.event,!ke)return;const un=nt||ke.target||H,Gn=un[pt[ke.type][Lt?_:v]];if(Gn){const jt=[];if(Gn.length===1){const Ne=_t(Gn[0],un,ke);Ne&&jt.push(Ne)}else{const Ne=Gn.slice();for(let gt=0;gt<Ne.length&&!(ke&&ke[jn]===!0);gt++){const ht=_t(Ne[gt],un,ke);ht&&jt.push(ht)}}if(jt.length===1)throw jt[0];for(let Ne=0;Ne<jt.length;Ne++){const gt=jt[Ne];Z.nativeScheduleMicroTask(()=>{throw gt})}}}const yn=function(nt){return ln(this,nt,!1)},Ar=function(nt){return ln(this,nt,!0)};function Rr(nt,ke){if(!nt)return!1;let Lt=!0;ke&&ke.useG!==void 0&&(Lt=ke.useG);const un=ke&&ke.vh;let Gn=!0;ke&&ke.chkDup!==void 0&&(Gn=ke.chkDup);let jt=!1;ke&&ke.rt!==void 0&&(jt=ke.rt);let Ne=nt;for(;Ne&&!Ne.hasOwnProperty(_e);)Ne=o(Ne);if(!Ne&&nt[_e]&&(Ne=nt),!Ne||Ne[He])return!1;const gt=ke&&ke.eventNameToString,ht={},ot=Ne[He]=Ne[_e],st=Ne[T(we)]=Ne[we],yt=Ne[T(ze)]=Ne[ze],Yr=Ne[T(Ge)]=Ne[Ge];let Ae;ke&&ke.prepend&&(Ae=Ne[T(ke.prepend)]=Ne[ke.prepend]);function F(he,xe){return xe?typeof he=="boolean"?{capture:he,passive:!0}:he?typeof he=="object"&&he.passive!==!1?{...he,passive:!0}:he:{passive:!0}:he}const B=function(he){if(!ht.isExisting)return ot.call(ht.target,ht.eventName,ht.capture?Ar:yn,ht.options)},Y=function(he){if(!he.isRemoved){const xe=pt[he.eventName];let Ke;xe&&(Ke=xe[he.capture?_:v]);const Qe=Ke&&he.target[Ke];if(Qe){for(let et=0;et<Qe.length;et++)if(Qe[et]===he){Qe.splice(et,1),he.isRemoved=!0,he.removeAbortListener&&(he.removeAbortListener(),he.removeAbortListener=null),Qe.length===0&&(he.allRemoved=!0,he.target[Ke]=null);break}}}if(he.allRemoved)return st.call(he.target,he.eventName,he.capture?Ar:yn,he.options)},ie=function(he){return ot.call(ht.target,ht.eventName,he.invoke,ht.options)},Ie=function(he){return Ae.call(ht.target,ht.eventName,he.invoke,ht.options)},Ve=function(he){return st.call(he.target,he.eventName,he.invoke,he.options)},xn=Lt?B:ie,vt=Lt?Y:Ve,Sr=function(he,xe){const Ke=typeof xe;return Ke==="function"&&he.callback===xe||Ke==="object"&&he.originalDelegate===xe},di=ke?.diff||Sr,fn=Zone[T("UNPATCHED_EVENTS")],Gs=H[T("PASSIVE_EVENTS")];function Re(he){if(typeof he=="object"&&he!==null){const xe={...he};return he.signal&&(xe.signal=he.signal),xe}return he}const Ce=function(he,xe,Ke,Qe,et=!1,Dt=!1){return function(){const kt=this||H;let Pt=arguments[0];ke&&ke.transferEventName&&(Pt=ke.transferEventName(Pt));let Cn=arguments[1];if(!Cn)return he.apply(this,arguments);if(N&&Pt==="uncaughtException")return he.apply(this,arguments);let $n=!1;if(typeof Cn!="function"){if(!Cn.handleEvent)return he.apply(this,arguments);$n=!0}if(un&&!un(he,Cn,kt,arguments))return;const Pr=!!Gs&&Gs.indexOf(Pt)!==-1,os=Re(F(arguments[2],Pr)),Ia=os?.signal;if(Ia?.aborted)return;if(fn){for(let Xr=0;Xr<fn.length;Xr++)if(Pt===fn[Xr])return Pr?he.call(kt,Pt,Cn,os):he.apply(this,arguments)}const bu=os?typeof os=="boolean"?!0:os.capture:!1,Oa=os&&typeof os=="object"?os.once:!1,Gv=Zone.current;let od=pt[Pt];od||(tt(Pt,gt),od=pt[Pt]);const Ma=od[bu?_:v];let Bc=kt[Ma],Wp=!1;if(Bc){if(Wp=!0,Gn){for(let Xr=0;Xr<Bc.length;Xr++)if(di(Bc[Xr],Cn))return}}else Bc=kt[Ma]=[];let Su;const ad=kt.constructor.name,qv=Hn[ad];qv&&(Su=qv[Pt]),Su||(Su=ad+xe+(gt?gt(Pt):Pt)),ht.options=os,Oa&&(ht.options.once=!1),ht.target=kt,ht.capture=bu,ht.eventName=Pt,ht.isExisting=Wp;const Eu=Lt?dt:void 0;Eu&&(Eu.taskData=ht),Ia&&(ht.options.signal=void 0);const ki=Gv.scheduleEventTask(Su,Cn,Eu,Ke,Qe);if(Ia){ht.options.signal=Ia;const Xr=()=>ki.zone.cancelTask(ki);he.call(Ia,"abort",Xr,{once:!0}),ki.removeAbortListener=()=>Ia.removeEventListener("abort",Xr)}if(ht.target=null,Eu&&(Eu.taskData=null),Oa&&(ht.options.once=!0),typeof ki.options!="boolean"&&(ki.options=os),ki.target=kt,ki.capture=bu,ki.eventName=Pt,$n&&(ki.originalDelegate=Cn),Dt?Bc.unshift(ki):Bc.push(ki),et)return kt}};return Ne[_e]=Ce(ot,lt,xn,vt,jt),Ae&&(Ne[je]=Ce(Ae,qe,Ie,vt,jt,!0)),Ne[we]=function(){const he=this||H;let xe=arguments[0];ke&&ke.transferEventName&&(xe=ke.transferEventName(xe));const Ke=arguments[2],Qe=Ke?typeof Ke=="boolean"?!0:Ke.capture:!1,et=arguments[1];if(!et)return st.apply(this,arguments);if(un&&!un(st,et,he,arguments))return;const Dt=pt[xe];let kt;Dt&&(kt=Dt[Qe?_:v]);const Pt=kt&&he[kt];if(Pt)for(let Cn=0;Cn<Pt.length;Cn++){const $n=Pt[Cn];if(di($n,et)){if(Pt.splice(Cn,1),$n.isRemoved=!0,Pt.length===0&&($n.allRemoved=!0,he[kt]=null,!Qe&&typeof xe=="string")){const Pr=E+"ON_PROPERTY"+xe;he[Pr]=null}return $n.zone.cancelTask($n),jt?he:void 0}}return st.apply(this,arguments)},Ne[ze]=function(){const he=this||H;let xe=arguments[0];ke&&ke.transferEventName&&(xe=ke.transferEventName(xe));const Ke=[],Qe=vn(he,gt?gt(xe):xe);for(let et=0;et<Qe.length;et++){const Dt=Qe[et];let kt=Dt.originalDelegate?Dt.originalDelegate:Dt.callback;Ke.push(kt)}return Ke},Ne[Ge]=function(){const he=this||H;let xe=arguments[0];if(xe){ke&&ke.transferEventName&&(xe=ke.transferEventName(xe));const Ke=pt[xe];if(Ke){const Qe=Ke[v],et=Ke[_],Dt=he[Qe],kt=he[et];if(Dt){const Pt=Dt.slice();for(let Cn=0;Cn<Pt.length;Cn++){const $n=Pt[Cn];let Pr=$n.originalDelegate?$n.originalDelegate:$n.callback;this[we].call(this,xe,Pr,$n.options)}}if(kt){const Pt=kt.slice();for(let Cn=0;Cn<Pt.length;Cn++){const $n=Pt[Cn];let Pr=$n.originalDelegate?$n.originalDelegate:$n.callback;this[we].call(this,xe,Pr,$n.options)}}}}else{const Ke=Object.keys(he);for(let Qe=0;Qe<Ke.length;Qe++){const et=Ke[Qe],Dt=Lr.exec(et);let kt=Dt&&Dt[1];kt&&kt!=="removeListener"&&this[Ge].call(this,kt)}this[Ge].call(this,"removeListener")}if(jt)return this},re(Ne[_e],ot),re(Ne[we],st),Yr&&re(Ne[Ge],Yr),yt&&re(Ne[ze],yt),!0}let Vn=[];for(let nt=0;nt<se.length;nt++)Vn[nt]=Rr(se[nt],G);return Vn}function vn(H,Z){if(!Z){const we=[];for(let ze in H){const Ge=Lr.exec(ze);let He=Ge&&Ge[1];if(He&&(!Z||He===Z)){const lt=H[ze];if(lt)for(let je=0;je<lt.length;je++)we.push(lt[je])}}return we}let se=pt[Z];se||(tt(Z),se=pt[Z]);const G=H[se[v]],_e=H[se[_]];return G?_e?G.concat(_e):G.slice():_e?_e.slice():[]}function rn(H,Z){const se=H.Event;se&&se.prototype&&Z.patchMethod(se.prototype,"stopImmediatePropagation",G=>function(_e,we){_e[jn]=!0,G&&G.apply(_e,we)})}function sn(H,Z){Z.patchMethod(H,"queueMicrotask",se=>function(G,_e){Zone.current.scheduleMicroTask("queueMicrotask",_e[0])})}const Sn=T("zoneTask");function Ze(H,Z,se,G){let _e=null,we=null;Z+=G,se+=G;const ze={};function Ge(lt){const je=lt.data;je.args[0]=function(){return lt.invoke.apply(this,arguments)};const qe=_e.apply(H,je.args);return Be(qe)?je.handleId=qe:(je.handle=qe,je.isRefreshable=Fe(qe.refresh)),lt}function He(lt){const{handle:je,handleId:qe}=lt.data;return we.call(H,je??qe)}_e=L(H,Z,lt=>function(je,qe){if(Fe(qe[0])){const _t={isRefreshable:!1,isPeriodic:G==="Interval",delay:G==="Timeout"||G==="Interval"?qe[1]||0:void 0,args:qe},ln=qe[0];qe[0]=function(){try{return ln.apply(this,arguments)}finally{const{handle:Lt,handleId:un,isPeriodic:Gn,isRefreshable:jt}=_t;!Gn&&!jt&&(un?delete ze[un]:Lt&&(Lt[Sn]=null))}};const yn=w(Z,qe[0],_t,Ge,He);if(!yn)return yn;const{handleId:Ar,handle:Rr,isRefreshable:Vn,isPeriodic:nt}=yn.data;if(Ar)ze[Ar]=yn;else if(Rr&&(Rr[Sn]=yn,Vn&&!nt)){const ke=Rr.refresh;Rr.refresh=function(){const{zone:Lt,state:un}=yn;return un==="notScheduled"?(yn._state="scheduled",Lt._updateTaskCount(yn,1)):un==="running"&&(yn._state="scheduling"),ke.call(this)}}return Rr??Ar??yn}else return lt.apply(H,qe)}),we=L(H,se,lt=>function(je,qe){const _t=qe[0];let ln;Be(_t)?(ln=ze[_t],delete ze[_t]):(ln=_t?.[Sn],ln?_t[Sn]=null:ln=_t),ln?.type?ln.cancelFn&&ln.zone.cancelTask(ln):lt.apply(H,qe)})}function kn(H,Z){const{isBrowser:se,isMix:G}=Z.getGlobalObjects();if(!se&&!G||!H.customElements||!("customElements"in H))return;const _e=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];Z.patchCallbacks(Z,H.customElements,"customElements","define",_e)}function Tt(H,Z){if(Zone[Z.symbol("patchEventTarget")])return;const{eventNames:se,zoneSymbolEventNames:G,TRUE_STR:_e,FALSE_STR:we,ZONE_SYMBOL_PREFIX:ze}=Z.getGlobalObjects();for(let He=0;He<se.length;He++){const lt=se[He],je=lt+we,qe=lt+_e,_t=ze+je,ln=ze+qe;G[lt]={},G[lt][we]=_t,G[lt][_e]=ln}const Ge=H.EventTarget;if(!(!Ge||!Ge.prototype))return Z.patchEventTarget(H,Z,[Ge&&Ge.prototype]),!0}function Kn(H,Z){Z.patchEventPrototype(H,Z)}function it(H,Z,se){if(!se||se.length===0)return Z;const G=se.filter(we=>we.target===H);if(G.length===0)return Z;const _e=G[0].ignoreProperties;return Z.filter(we=>_e.indexOf(we)===-1)}function gr(H,Z,se,G){if(!H)return;const _e=it(H,Z,se);W(H,_e,G)}function Dr(H){return Object.getOwnPropertyNames(H).filter(Z=>Z.startsWith("on")&&Z.length>2).map(Z=>Z.substring(2))}function xs(H,Z){if(N&&!K||Zone[H.symbol("patchEvents")])return;const se=Z.__Zone_ignore_on_properties;let G=[];if(U){const _e=window;G=G.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const we=[];gr(_e,Dr(_e),se&&se.concat(we),o(_e))}G=G.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let _e=0;_e<G.length;_e++){const we=Z[G[_e]];we?.prototype&&gr(we.prototype,Dr(we.prototype),se)}}function Hs(H){H.__load_patch("legacy",Z=>{const se=Z[H.__symbol__("legacyPatch")];se&&se()}),H.__load_patch("timers",Z=>{const G="clear";Ze(Z,"set",G,"Timeout"),Ze(Z,"set",G,"Interval"),Ze(Z,"set",G,"Immediate")}),H.__load_patch("requestAnimationFrame",Z=>{Ze(Z,"request","cancel","AnimationFrame"),Ze(Z,"mozRequest","mozCancel","AnimationFrame"),Ze(Z,"webkitRequest","webkitCancel","AnimationFrame")}),H.__load_patch("blocking",(Z,se)=>{const G=["alert","prompt","confirm"];for(let _e=0;_e<G.length;_e++){const we=G[_e];L(Z,we,(ze,Ge,He)=>function(lt,je){return se.current.run(ze,Z,je,He)})}}),H.__load_patch("EventTarget",(Z,se,G)=>{Kn(Z,G),Tt(Z,G);const _e=Z.XMLHttpRequestEventTarget;_e&&_e.prototype&&G.patchEventTarget(Z,G,[_e.prototype])}),H.__load_patch("MutationObserver",(Z,se,G)=>{ce("MutationObserver"),ce("WebKitMutationObserver")}),H.__load_patch("IntersectionObserver",(Z,se,G)=>{ce("IntersectionObserver")}),H.__load_patch("FileReader",(Z,se,G)=>{ce("FileReader")}),H.__load_patch("on_property",(Z,se,G)=>{xs(G,Z)}),H.__load_patch("customElements",(Z,se,G)=>{kn(Z,G)}),H.__load_patch("XHR",(Z,se)=>{lt(Z);const G=T("xhrTask"),_e=T("xhrSync"),we=T("xhrListener"),ze=T("xhrScheduled"),Ge=T("xhrURL"),He=T("xhrErrorBeforeScheduled");function lt(je){const qe=je.XMLHttpRequest;if(!qe)return;const _t=qe.prototype;function ln(ot){return ot[G]}let yn=_t[p],Ar=_t[m];if(!yn){const ot=je.XMLHttpRequestEventTarget;if(ot){const st=ot.prototype;yn=st[p],Ar=st[m]}}const Rr="readystatechange",Vn="scheduled";function nt(ot){const st=ot.data,yt=st.target;yt[ze]=!1,yt[He]=!1;const Yr=yt[we];yn||(yn=yt[p],Ar=yt[m]),Yr&&Ar.call(yt,Rr,Yr);const Ae=yt[we]=()=>{if(yt.readyState===yt.DONE)if(!st.aborted&&yt[ze]&&ot.state===Vn){const B=yt[se.__symbol__("loadfalse")];if(yt.status!==0&&B&&B.length>0){const Y=ot.invoke;ot.invoke=function(){const ie=yt[se.__symbol__("loadfalse")];for(let Ie=0;Ie<ie.length;Ie++)ie[Ie]===ot&&ie.splice(Ie,1);!st.aborted&&ot.state===Vn&&Y.call(ot)},B.push(ot)}else ot.invoke()}else!st.aborted&&yt[ze]===!1&&(yt[He]=!0)};return yn.call(yt,Rr,Ae),yt[G]||(yt[G]=ot),gt.apply(yt,st.args),yt[ze]=!0,ot}function ke(){}function Lt(ot){const st=ot.data;return st.aborted=!0,ht.apply(st.target,st.args)}const un=L(_t,"open",()=>function(ot,st){return ot[_e]=st[2]==!1,ot[Ge]=st[1],un.apply(ot,st)}),Gn="XMLHttpRequest.send",jt=T("fetchTaskAborting"),Ne=T("fetchTaskScheduling"),gt=L(_t,"send",()=>function(ot,st){if(se.current[Ne]===!0||ot[_e])return gt.apply(ot,st);{const yt={target:ot,url:ot[Ge],isPeriodic:!1,args:st,aborted:!1},Yr=w(Gn,ke,yt,nt,Lt);ot&&ot[He]===!0&&!yt.aborted&&Yr.state===Vn&&Yr.invoke()}}),ht=L(_t,"abort",()=>function(ot,st){const yt=ln(ot);if(yt&&typeof yt.type=="string"){if(yt.cancelFn==null||yt.data&&yt.data.aborted)return;yt.zone.cancelTask(yt)}else if(se.current[jt]===!0)return ht.apply(ot,st)})}}),H.__load_patch("geolocation",Z=>{Z.navigator&&Z.navigator.geolocation&&$(Z.navigator.geolocation,["getCurrentPosition","watchPosition"])}),H.__load_patch("PromiseRejectionEvent",(Z,se)=>{function G(_e){return function(we){vn(Z,_e).forEach(Ge=>{const He=Z.PromiseRejectionEvent;if(He){const lt=new He(_e,{promise:we.promise,reason:we.rejection});Ge.invoke(lt)}})}}Z.PromiseRejectionEvent&&(se[T("unhandledPromiseRejectionHandler")]=G("unhandledrejection"),se[T("rejectionHandledHandler")]=G("rejectionhandled"))}),H.__load_patch("queueMicrotask",(Z,se,G)=>{sn(Z,G)})}function ka(H){H.__load_patch("ZoneAwarePromise",(Z,se,G)=>{const _e=Object.getOwnPropertyDescriptor,we=Object.defineProperty;function ze(Re){if(Re&&Re.toString===Object.prototype.toString){const Ce=Re.constructor&&Re.constructor.name;return(Ce||"")+": "+JSON.stringify(Re)}return Re?Re.toString():Object.prototype.toString.call(Re)}const Ge=G.symbol,He=[],lt=Z[Ge("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,je=Ge("Promise"),qe=Ge("then"),_t="__creationTrace__";G.onUnhandledError=Re=>{if(G.showUncaughtError()){const Ce=Re&&Re.rejection;Ce?console.error("Unhandled Promise rejection:",Ce instanceof Error?Ce.message:Ce,"; Zone:",Re.zone.name,"; Task:",Re.task&&Re.task.source,"; Value:",Ce,Ce instanceof Error?Ce.stack:void 0):console.error(Re)}},G.microtaskDrainDone=()=>{for(;He.length;){const Re=He.shift();try{Re.zone.runGuarded(()=>{throw Re.throwOriginal?Re.rejection:Re})}catch(Ce){yn(Ce)}}};const ln=Ge("unhandledPromiseRejectionHandler");function yn(Re){G.onUnhandledError(Re);try{const Ce=se[ln];typeof Ce=="function"&&Ce.call(this,Re)}catch{}}function Ar(Re){return Re&&typeof Re.then=="function"}function Rr(Re){return Re}function Vn(Re){return vt.reject(Re)}const nt=Ge("state"),ke=Ge("value"),Lt=Ge("finally"),un=Ge("parentPromiseValue"),Gn=Ge("parentPromiseState"),jt="Promise.then",Ne=null,gt=!0,ht=!1,ot=0;function st(Re,Ce){return he=>{try{F(Re,Ce,he)}catch(xe){F(Re,!1,xe)}}}const yt=function(){let Re=!1;return function(he){return function(){Re||(Re=!0,he.apply(null,arguments))}}},Yr="Promise resolved with itself",Ae=Ge("currentTaskTrace");function F(Re,Ce,he){const xe=yt();if(Re===he)throw new TypeError(Yr);if(Re[nt]===Ne){let Ke=null;try{(typeof he=="object"||typeof he=="function")&&(Ke=he&&he.then)}catch(Qe){return xe(()=>{F(Re,!1,Qe)})(),Re}if(Ce!==ht&&he instanceof vt&&he.hasOwnProperty(nt)&&he.hasOwnProperty(ke)&&he[nt]!==Ne)Y(he),F(Re,he[nt],he[ke]);else if(Ce!==ht&&typeof Ke=="function")try{Ke.call(he,xe(st(Re,Ce)),xe(st(Re,!1)))}catch(Qe){xe(()=>{F(Re,!1,Qe)})()}else{Re[nt]=Ce;const Qe=Re[ke];if(Re[ke]=he,Re[Lt]===Lt&&Ce===gt&&(Re[nt]=Re[Gn],Re[ke]=Re[un]),Ce===ht&&he instanceof Error){const et=se.currentTask&&se.currentTask.data&&se.currentTask.data[_t];et&&we(he,Ae,{configurable:!0,enumerable:!1,writable:!0,value:et})}for(let et=0;et<Qe.length;)ie(Re,Qe[et++],Qe[et++],Qe[et++],Qe[et++]);if(Qe.length==0&&Ce==ht){Re[nt]=ot;let et=he;try{throw new Error("Uncaught (in promise): "+ze(he)+(he&&he.stack?`
526`+he.stack:""))}catch(Dt){et=Dt}lt&&(et.throwOriginal=!0),et.rejection=he,et.promise=Re,et.zone=se.current,et.task=se.currentTask,He.push(et),G.scheduleMicroTask()}}}return Re}const B=Ge("rejectionHandledHandler");function Y(Re){if(Re[nt]===ot){try{const Ce=se[B];Ce&&typeof Ce=="function"&&Ce.call(this,{rejection:Re[ke],promise:Re})}catch{}Re[nt]=ht;for(let Ce=0;Ce<He.length;Ce++)Re===He[Ce].promise&&He.splice(Ce,1)}}function ie(Re,Ce,he,xe,Ke){Y(Re);const Qe=Re[nt],et=Qe?typeof xe=="function"?xe:Rr:typeof Ke=="function"?Ke:Vn;Ce.scheduleMicroTask(jt,()=>{try{const Dt=Re[ke],kt=!!he&&Lt===he[Lt];kt&&(he[un]=Dt,he[Gn]=Qe);const Pt=Ce.run(et,void 0,kt&&et!==Vn&&et!==Rr?[]:[Dt]);F(he,!0,Pt)}catch(Dt){F(he,!1,Dt)}},he)}const Ie="function ZoneAwarePromise() { [native code] }",Ve=function(){},xn=Z.AggregateError;class vt{static toString(){return Ie}static resolve(Ce){return Ce instanceof vt?Ce:F(new this(null),gt,Ce)}static reject(Ce){return F(new this(null),ht,Ce)}static withResolvers(){const Ce={};return Ce.promise=new vt((he,xe)=>{Ce.resolve=he,Ce.reject=xe}),Ce}static any(Ce){if(!Ce||typeof Ce[Symbol.iterator]!="function")return Promise.reject(new xn([],"All promises were rejected"));const he=[];let xe=0;try{for(let et of Ce)xe++,he.push(vt.resolve(et))}catch{return Promise.reject(new xn([],"All promises were rejected"))}if(xe===0)return Promise.reject(new xn([],"All promises were rejected"));let Ke=!1;const Qe=[];return new vt((et,Dt)=>{for(let kt=0;kt<he.length;kt++)he[kt].then(Pt=>{Ke||(Ke=!0,et(Pt))},Pt=>{Qe.push(Pt),xe--,xe===0&&(Ke=!0,Dt(new xn(Qe,"All promises were rejected")))})})}static race(Ce){let he,xe,Ke=new this((Dt,kt)=>{he=Dt,xe=kt});function Qe(Dt){he(Dt)}function et(Dt){xe(Dt)}for(let Dt of Ce)Ar(Dt)||(Dt=this.resolve(Dt)),Dt.then(Qe,et);return Ke}static all(Ce){return vt.allWithCallback(Ce)}static allSettled(Ce){return(this&&this.prototype instanceof vt?this:vt).allWithCallback(Ce,{thenCallback:xe=>({status:"fulfilled",value:xe}),errorCallback:xe=>({status:"rejected",reason:xe})})}static allWithCallback(Ce,he){let xe,Ke,Qe=new this((Pt,Cn)=>{xe=Pt,Ke=Cn}),et=2,Dt=0;const kt=[];for(let Pt of Ce){Ar(Pt)||(Pt=this.resolve(Pt));const Cn=Dt;try{Pt.then($n=>{kt[Cn]=he?he.thenCallback($n):$n,et--,et===0&&xe(kt)},$n=>{he?(kt[Cn]=he.errorCallback($n),et--,et===0&&xe(kt)):Ke($n)})}catch($n){Ke($n)}et++,Dt++}return et-=2,et===0&&xe(kt),Qe}constructor(Ce){const he=this;if(!(he instanceof vt))throw new Error("Must be an instanceof Promise.");he[nt]=Ne,he[ke]=[];try{const xe=yt();Ce&&Ce(xe(st(he,gt)),xe(st(he,ht)))}catch(xe){F(he,!1,xe)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return vt}then(Ce,he){let xe=this.constructor?.[Symbol.species];(!xe||typeof xe!="function")&&(xe=this.constructor||vt);const Ke=new xe(Ve),Qe=se.current;return this[nt]==Ne?this[ke].push(Qe,Ke,Ce,he):ie(this,Qe,Ke,Ce,he),Ke}catch(Ce){return this.then(null,Ce)}finally(Ce){let he=this.constructor?.[Symbol.species];(!he||typeof he!="function")&&(he=vt);const xe=new he(Ve);xe[Lt]=Lt;const Ke=se.current;return this[nt]==Ne?this[ke].push(Ke,xe,Ce,Ce):ie(this,Ke,xe,Ce,Ce),xe}}vt.resolve=vt.resolve,vt.reject=vt.reject,vt.race=vt.race,vt.all=vt.all;const Sr=Z[je]=Z.Promise;Z.Promise=vt;const di=Ge("thenPatched");function fn(Re){const Ce=Re.prototype,he=_e(Ce,"then");if(he&&(he.writable===!1||!he.configurable))return;const xe=Ce.then;Ce[qe]=xe,Re.prototype.then=function(Ke,Qe){return new vt((Dt,kt)=>{xe.call(this,Dt,kt)}).then(Ke,Qe)},Re[di]=!0}G.patchThen=fn;function Gs(Re){return function(Ce,he){let xe=Re.apply(Ce,he);if(xe instanceof vt)return xe;let Ke=xe.constructor;return Ke[di]||fn(Ke),xe}}return Sr&&(fn(Sr),L(Z,"fetch",Re=>Gs(Re))),Promise[se.__symbol__("uncaughtPromiseErrors")]=He,vt})}function wo(H){H.__load_patch("toString",Z=>{const se=Function.prototype.toString,G=T("OriginalDelegate"),_e=T("Promise"),we=T("Error"),ze=function(){if(typeof this=="function"){const je=this[G];if(je)return typeof je=="function"?se.call(je):Object.prototype.toString.call(je);if(this===Promise){const qe=Z[_e];if(qe)return se.call(qe)}if(this===Error){const qe=Z[we];if(qe)return se.call(qe)}}return se.call(this)};ze[G]=se,Function.prototype.toString=ze;const Ge=Object.prototype.toString,He="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?He:Ge.call(this)}})}function js(H,Z,se,G,_e){const we=Zone.__symbol__(G);if(Z[we])return;const ze=Z[we]=Z[G];Z[G]=function(Ge,He,lt){return He&&He.prototype&&_e.forEach(function(je){const qe=`${se}.${G}::`+je,_t=He.prototype;try{if(_t.hasOwnProperty(je)){const ln=H.ObjectGetOwnPropertyDescriptor(_t,je);ln&&ln.value?(ln.value=H.wrapWithCurrentZone(ln.value,qe),H._redefineProperty(He.prototype,je,ln)):_t[je]&&(_t[je]=H.wrapWithCurrentZone(_t[je],qe))}else _t[je]&&(_t[je]=H.wrapWithCurrentZone(_t[je],qe))}catch{}}),ze.call(Z,Ge,He,lt)},H.attachOriginToPatched(Z[G],ze)}function Vs(H){H.__load_patch("util",(Z,se,G)=>{const _e=Dr(Z);G.patchOnProperties=W,G.patchMethod=L,G.bindArguments=I,G.patchMacroTask=J;const we=se.__symbol__("BLACK_LISTED_EVENTS"),ze=se.__symbol__("UNPATCHED_EVENTS");Z[ze]&&(Z[we]=Z[ze]),Z[we]&&(se[we]=se[ze]=Z[we]),G.patchEventPrototype=rn,G.patchEventTarget=mt,G.isIEOrEdge=Ee,G.ObjectDefineProperty=s,G.ObjectGetOwnPropertyDescriptor=i,G.ObjectCreate=a,G.ArraySlice=l,G.patchClass=ce,G.wrapWithCurrentZone=b,G.filterProperties=it,G.attachOriginToPatched=re,G._redefineProperty=Object.defineProperty,G.patchCallbacks=js,G.getGlobalObjects=()=>({globalSources:Hn,zoneSymbolEventNames:pt,eventNames:_e,isBrowser:U,isMix:K,isNode:N,TRUE_STR:_,FALSE_STR:v,ZONE_SYMBOL_PREFIX:E,ADD_EVENT_LISTENER_STR:f,REMOVE_EVENT_LISTENER_STR:d})})}function ji(H){ka(H),wo(H),Vs(H)}const sr=r();return ji(sr),Hs(sr),DB}uSe();const oq=eN("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function fSe(e){return e.setValue(oq,!0)}function sN(e){return e.getValue(oq)===!0}const dSe="=",Ck=";
526",Ak=",",PC="baggage",hSe=180,pSe=4096,gSe=8192;function mSe(e){return e.reduce((t,n)=>{const r=`${t}${t!==""?Ak:""}${n}`;return r.length>gSe?t:r},"")}function _Se(e){return e.getAllEntries().map(([t,n])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=Ck+n.metadata.toString()),r})}function vSe(e){const t=e.split(Ck);if(t.length<=0)return;const n=t.shift();if(!n)return;const r=n.indexOf(dSe);if(r<=0)return;const i=decodeURIComponent(n.substring(0,r).trim()),s=decodeURIComponent(n.substring(r+1).trim());let o;return t.length>0&&(o=Obe(t.join(Ck))),{key:i,value:s,metadata:o}}class aq{inject(t,n,r){const i=Pm.getBaggage(t);if(!i||sN(t))return;const s=_Se(i).filter(a=>a.length<=pSe).slice(0,hSe),o=mSe(s);o.length>0&&r.set(n,PC,o)}extract(t,n,r){const i=r.get(n,PC),s=Array.isArray(i)?i.join(Ak):i;if(!s)return t;const o={};return s.length===0||(s.split(Ak).forEach(l=>{const f=vSe(l);if(f){const d={value:f.value};f.metadata&&(d.metadata=f.metadata),o[f.key]=d}}),Object.entries(o).length===0)?t:Pm.setBaggage(t,Pm.createBaggage(o))}fields(){return[PC]}}function qS(e){const t={};if(typeof e!="object"||e==null)return t;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(!ySe(n)){dn.warn(`Invalid attribute key: ${n}`);continue}const r=e[n];if(!cq(r)){dn.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function ySe(e){return typeof e=="string"&&e!==""}function cq(e){return e==null?!0:Array.isArray(e)?bSe(e):lq(typeof e)}function bSe(e){let t;for(const n of e){if(n==null)continue;const r=typeof n;if(r!==t){if(!t){if(lq(r)){t=r;continue}return!1}return!1}}return!0}function lq(e){switch(e){case"number":case"boolean":case"string":return!0}return!1}function SSe(){return e=>{dn.error(ESe(e))}}function ESe(e){return typeof e=="string"?e:JSON.stringify(wSe(e))}function wSe(e){const t={};let n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(t[r])return;const i=n[r];i&&(t[r]=String(i))}),n=Object.getPrototypeOf(n);return t}let TSe=SSe();function Zh(e){try{TSe(e)}catch{}}const xh=performance,xSe="2.2.0",CSe="process.runtime.name",$C={[Y0]:"opentelemetry",[CSe]:"browser",[p_]:JG,[X0]:xSe},ASe=9,RSe=6,kSe=Math.pow(10,RSe),Z0=Math.pow(10,ASe);function uh(e){const t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*kSe);return[n,r]}function uq(){let e=xh.timeOrigin;if(typeof e!="number"){const t=xh;e=t.timing&&t.timing.fetchStart}return e}function ISe(e){const t=uh(uq()),n=uh(typeof e=="number"?e:xh.now());return dq(t,n)}function OSe(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=Z0),[n,r]}function MSe(e){return e[0]*Z0+e[1]}function fq(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function $B(e){return fq(e)||typeof e=="number"||e instanceof Date}function dq(e,t){const n=[e[0]+t[0],e[1]+t[1]];return n[1]>=Z0&&(n[1]-=Z0,n[0]+=1),n}var oa;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(oa||(oa={}));class hq{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,r)=>n.concat(r),[])))}inject(t,n,r){for(const i of this._propagators)try{i.inject(t,n,r)}catch(s){dn.warn(`Failed to inject with ${i.constructor.name}. Err: ${s.message}`)}}extract(t,n,r){return this._propagators.reduce((i,s)=>{try{return s.extract(i,n,r)}catch(o){dn.warn(`Failed to extract with ${s.constructor.name}. Err: ${o.message}`)}return i},t)}fields(){return this._fields.slice()}}const Rk="[_0-9a-z-*/]",NSe=`[a-z]${Rk}{0,255}`,LSe=`[a-z0-9]${Rk}{0,240}@[a-z]${Rk}{0,13}`,DSe=new RegExp(`^(?:${NSe}|${LSe})$`),PSe=/^[ -~]{0,255}[!-~]$/,$Se=/,|=/;function FSe(e){return DSe.test(e)}function USe(e){return PSe.test(e)&&!$Se.test(e)}const FB=32,BSe=512,UB=",",BB="=";class oN{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,n){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r}unset(t){const n=this._clone();return n._internalState.delete(t),n}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,n)=>(t.push(n+BB+this.get(n)),t),[]).join(UB)}_parse(t){t.length>BSe||(this._internalState=t.split(UB).reverse().reduce((n,r)=>{const i=r.trim(),s=i.indexOf(BB);if(s!==-1){const o=i.slice(0,s),a=i.slice(s+1,r.length);FSe(o)&&USe(a)&&n.set(o,a)}return n},new Map),this._internalState.size>FB&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,FB))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new oN;return t._internalState=new Map(this._internalState),t}}const FC="traceparent",UC="tracestate",zSe="00",HSe="(?!ff)[\\da-f]{2}
526",jSe="(?![0]{32})[\\da-f]{32}",VSe="(?![0]{16})[\\da-f]{16}",GSe="[\\da-f]{2}",qSe=new RegExp(`^\\s?(${HSe})-(${jSe})-(${VSe})-(${GSe})(-.*)?\\s?$`);function WSe(e){const t=qSe.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class pq{inject(t,n,r){const i=aa.getSpanContext(t);if(!i||sN(t)||!zw(i))return;const s=`${zSe}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||Cc.NONE).toString(16)}`;r.set(n,FC,s),i.traceState&&r.set(n,UC,i.traceState.serialize())}extract(t,n,r){const i=r.get(n,FC);if(!i)return t;const s=Array.isArray(i)?i[0]:i;if(typeof s!="string")return t;const o=WSe(s);if(!o)return t;o.isRemote=!0;const a=r.get(n,UC);if(a){const l=Array.isArray(a)?a.join(","):a;o.traceState=new oN(typeof l=="string"?l:void 0)}return aa.setSpanContext(t,o)}fields(){return[FC,UC]}}const YSe="[object Object]",XSe="[object Null]",KSe="[object Undefined]",ZSe=Function.prototype,gq=ZSe.toString,JSe=gq.call(Object),QSe=Object.getPrototypeOf,mq=Object.prototype,_q=mq.hasOwnProperty,nf=Symbol?Symbol.toStringTag:void 0,vq=mq.toString;function zB(e){if(!e0e(e)||t0e(e)!==YSe)return!1;const t=QSe(e);if(t===null)return!0;const n=_q.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&gq.call(n)===JSe}function e0e(e){return e!=null&&typeof e=="object"}function t0e(e){return e==null?e===void 0?KSe:XSe:nf&&nf in Object(e)?n0e(e):r0e(e)}function n0e(e){const t=_q.call(e,nf),n=e[nf];let r=!1;try{e[nf]=void 0,r=!0}catch{}const i=vq.call(e);return r&&(t?e[nf]=n:delete e[nf]),i}function r0e(e){return vq.call(e)}const i0e=20;function s0e(...e){let t=e.shift();const n=new WeakMap;for(;e.length>0;)t=yq(t,e.shift(),0,n);return t}function BC(e){return J0(e)?e.slice():e}function yq(e,t,n=0,r){let i;if(!(n>i0e)){if(n++,WS(e)||WS(t)||bq(t))i=BC(t);else if(J0(e)){if(i=e.slice(),J0(t))for(let s=0,o=t.length;s<o;s++)i.push(BC(t[s]));else if(Gg(t)){const s=Object.keys(t);for(let o=0,a=s.length;o<a;o++){const l=s[o];i[l]=BC(t[l])}}}else if(Gg(e))if(Gg(t)){if(!o0e(e,t))return t;i=Object.assign({},e);const s=Object.keys(t);for(let o=0,a=s.length;o<a;o++){const l=s[o],f=t[l];if(WS(f))typeof f>"u"?delete i[l]:i[l]=f;else{const d=i[l],p=f;if(HB(e,l,r)||HB(t,l,r))delete i[l];else{if(Gg(d)&&Gg(p)){const m=r.get(d)||[],_=r.get(p)||[];m.push({obj:e,key:l}),_.push({obj:t,key:l}),r.set(d,m),r.set(p,_)}i[l]=yq(i[l],f,n,r)}}}}else i=t;return i}}function HB(e,t,n){const r=n.get(e[t])||[];for(let i=0,s=r.length;i<s;i++){const o=r[i];if(o.key===t&&o.obj===e)return!0}return!1}function J0(e){return Array.isArray(e)}function bq(e){return typeof e=="function"}function Gg(e){return!WS(e)&&!J0(e)&&!bq(e)&&typeof e=="object"}function WS(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function o0e(e,t){return!(!zB(e)||!zB(t))}class a0e{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class c0e{_callback;_that;_isCalled=!1;_deferred=new a0e;constructor(t,n){this._callback=t,this._that=n}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}}function l0e(){return"unknown_service"}const gm=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class Q0{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,n){const r=new Q0({},n);return r._rawAttributes=jB(t),r._asyncAttributesPending=t.filter(([i,s])=>gm(s)).length>0,r}constructor(t,n){const r=t.attributes??{};this._rawAttributes=Object.entries(r).map(([i,s])=>(gm(s)&&(this._asyncAttributesPending=!0),[i,s])),this._rawAttributes=jB(this._rawAttributes),this._schemaUrl=d0e(n?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[n,r]=this._rawAttributes[t];this._rawAttributes[t]=[n,gm(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&dn.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};
526for(const[n,r]of this._rawAttributes){if(gm(r)){dn.debug(`Unsettled resource attribute ${n} skipped`);continue}r!=null&&(t[n]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;const n=h0e(this,t),r=n?{schemaUrl:n}:void 0;return Q0.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],r)}}function u0e(e,t){return Q0.FromAttributeList(Object.entries(e),t)}function f0e(){return u0e({[ZG]:l0e(),[p_]:$C[p_],[Y0]:$C[Y0],[X0]:$C[X0]})}function jB(e){return e.map(([t,n])=>gm(n)?[t,n.catch(r=>{dn.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,n])}function d0e(e){if(typeof e=="string"||e===void 0)return e;dn.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}function h0e(e,t){const n=e?.schemaUrl,r=t?.schemaUrl,i=n===void 0||n==="",s=r===void 0||r==="";if(i)return r;if(s||n===r)return n;dn.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',n,r)}const p0e="exception";class g0e{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:xk.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const n=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=xh.now(),this._performanceOffset=n-(this._performanceStartTime+uq()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??n),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,n){if(n==null||this._isSpanEnded())return this;if(t.length===0)return dn.warn(`Invalid attribute key: ${t}`),this;if(!cq(n))return dn.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(n),this)}setAttributes(t){for(const[n,r]of Object.entries(t))this.setAttribute(n,r);return this}addEvent(t,n,r){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return dn.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&dn.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),$B(n)&&($B(r)||(r=n),n=void 0);const s=qS(n);return this.events.push({name:t,attributes:s,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(dn.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){dn.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=OSe(this.startTime,this.endTime),this._duration[0]<0&&(dn.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&dn.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=xh.now())return ISe(t+this._performanceOffset);if(typeof t=="number")return uh(t);if(t instanceof Date)return uh(t.getTime());if(fq(t))return t;if(this._startTimeProvided)return uh(Date.now());const n=xh.now()-this._performanceStartTime;return dq(this.startTime,uh(n))}isRecording(){return this._ended===!1}
526recordException(t,n){const r={};typeof t=="string"?r[IC]=t:t&&(t.code?r[OC]=t.code.toString():t.name&&(r[OC]=t.name),t.message&&(r[IC]=t.message),t.stack&&(r[ube]=t.stack)),r[OC]||r[IC]?this.addEvent(p0e,r,n):dn.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);dn.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,n){return t.length<=n?t:t.substring(0,n)}_truncateToSize(t){const n=this._attributeValueLengthLimit;return n<=0?(dn.warn(`Attribute value limit must be positive, got ${n}`),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):t}}var Jh;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Jh||(Jh={}));class eE{shouldSample(){return{decision:Jh.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Ch{shouldSample(){return{decision:Jh.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class wb{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Zh(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Ch),this._remoteParentSampled=t.remoteParentSampled??new Ch,this._remoteParentNotSampled=t.remoteParentNotSampled??new eE,this._localParentSampled=t.localParentSampled??new Ch,this._localParentNotSampled=t.localParentNotSampled??new eE}shouldSample(t,n,r,i,s,o){const a=aa.getSpanContext(t);return!a||!zw(a)?this._root.shouldSample(t,n,r,i,s,o):a.isRemote?a.traceFlags&Cc.SAMPLED?this._remoteParentSampled.shouldSample(t,n,r,i,s,o):this._remoteParentNotSampled.shouldSample(t,n,r,i,s,o):a.traceFlags&Cc.SAMPLED?this._localParentSampled.shouldSample(t,n,r,i,s,o):this._localParentNotSampled.shouldSample(t,n,r,i,s,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class VB{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,n){return{decision:rq(n)&&this._accumulate(n)<this._upperBound?Jh.RECORD_AND_SAMPLED:Jh.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let n=0;for(let r=0;r<t.length/8;r++){const i=r*8,s=parseInt(t.slice(i,i+8),16);n=(n^s)>>>0}return n}}var ia;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(ia||(ia={}));const GB=1;function Sq(){return{sampler:Eq(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function Eq(){const e=ia.ParentBasedAlwaysOn;switch(e){case ia.AlwaysOn:return new Ch;case ia.AlwaysOff:return new eE;case ia.ParentBasedAlwaysOn:return new wb({root:new Ch});case ia.ParentBasedAlwaysOff:return new wb({root:new eE});case ia.TraceIdRatio:return new VB(qB());case ia.ParentBasedTraceIdRatio:return new wb({root:new VB(qB())});default:return dn.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${ia.ParentBasedAlwaysOn}".`),new wb({root:new Ch})}}function qB(){return dn.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${GB}.`),GB}const m0e=128,_0e=1/0;function v0e(e){const t={sampler:Eq()},n=Sq(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function y0e(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??m0e,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??_0e,Object.assign({},e,{spanLimits:t})}class b0e{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,n){this._exporter=t,this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:512,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:2048,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof n?.exp
526ortTimeoutMillis=="number"?n.exportTimeoutMillis:3e4,this._shutdownOnce=new c0e(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(dn.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,n){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Cc.SAMPLED)!==0&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&dn.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(dn.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,n)=>{const r=[],i=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let s=0,o=i;s<o;s++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(n)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,n)=>{const r=setTimeout(()=>{n(new Error("Timeout"))},this._exportTimeoutMillis);xf.with(fSe(xf.active()),()=>{let i;this._finishedSpans.length<=this._maxExportBatchSize?(i=this._finishedSpans,this._finishedSpans=[]):i=this._finishedSpans.splice(0,this._maxExportBatchSize);const s=()=>this._exporter.export(i,a=>{clearTimeout(r),a.code===oa.SUCCESS?t():n(a.error??new Error("BatchSpanProcessor: span export failed"))});let o=null;for(let a=0,l=i.length;a<l;a++){const f=i[a];f.resource.asyncAttributesPending&&f.resource.waitForAsyncAttributes&&(o??=[],o.push(f.resource.waitForAsyncAttributes()))}o===null?s():Promise.all(o).then(s,a=>{Zh(a),n(a)})})})}_maybeStartTimer(){if(this._isExporting)return;const t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(n=>{this._isExporting=!1,Zh(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),typeof this._timer!="number"&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class S0e extends b0e{_visibilityChangeListener;_pageHideListener;constructor(t,n){super(t,n),this.onInit(n)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(n=>{Zh(n)})},this._pageHideListener=()=>{this.forceFlush().catch(n=>{Zh(n)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const E0e=8,w0e=16;class T0e{generateTraceId=WB(w0e);generateSpanId=WB(E0e)}const Tb=Array(32);function WB(e){return function(){for(let n=0;n<e*2;n++)Tb[n]=Math.floor(Math.random()*16)+48,Tb[n]>=58&&(Tb[n]+=39);return String.fromCharCode.apply(null,Tb.slice(0,e*2))}}class x0e{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,n,r,i){const s=v0e(n);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=n.idGenerator||new T0e,this._resource=r,this._spanProcessor=i,this.instrumentationScope=t}startSpan(t,n={},r=xf.active()){n.root&&(r=aa.deleteSpan(r));const i=aa.getSpan(r);if(sN(r))return dn.debug("Instrumentation suppressed, returning Noop Span"),aa.wrapSpanContext(tq);const s=i?.spanContext(),o=this._idGenerator.generateSpanId();let a,l,f;!s||!aa.isSpanContextValid(s)?l=this._idGenerator.generateTraceId():(l=s.traceId,f=s.traceState,a=s);const d=n.kind??Tk.INTERNAL,p=(n.links??[]).map(T=>({context:T.context,attributes:qS(T.attributes)})),m=qS(n.attributes),_=this._sampler.shouldSample(r,l,t,d,m,p);f=_.traceState??f;const v=_.decision===K0.RECORD_AND_SAMPLED?Cc.SAMPLED:Cc.NONE,E={traceId:l,spanId:o,traceFlags:v,traceState:f};if(_.decision===K0.NOT_RECORD)return dn.debug("Recording is off, prop
526agating context in a non-recording span"),aa.wrapSpanContext(E);const b=qS(Object.assign(m,_.attributes));return new g0e({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:E,name:t,kind:d,links:p,parentSpanContext:a,attributes:b,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,n,r,i){let s,o,a;if(arguments.length<2)return;arguments.length===2?a=n:arguments.length===3?(s=n,a=r):(s=n,o=r,a=i);const l=o??xf.active(),f=this.startSpan(t,s,l),d=aa.setSpan(l,f);return xf.with(d,a,void 0,f)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class C0e{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const n of this._spanProcessors)t.push(n.forceFlush());return new Promise(n=>{Promise.all(t).then(()=>{n()}).catch(r=>{Zh(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(t,n){for(const r of this._spanProcessors)r.onStart(t,n)}onEnd(t){for(const n of this._spanProcessors)n.onEnd(t)}shutdown(){const t=[];for(const n of this._spanProcessors)t.push(n.shutdown());return new Promise((n,r)=>{Promise.all(t).then(()=>{n()},r)})}}var rf;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(rf||(rf={}));class A0e{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const n=s0e({},Sq(),y0e(t));this._resource=n.resource??f0e(),this._config=Object.assign({},n,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new C0e(r)}getTracer(t,n,r){const i=`${t}@${n||""}:${r?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new x0e({name:t,version:n,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(i=>{let s;const o=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${t} ms`)),s=rf.timeout},t);r.forceFlush().then(()=>{clearTimeout(o),s!==rf.timeout&&(s=rf.resolved,i(s))}).catch(a=>{clearTimeout(o),s=rf.error,i(a)})}));return new Promise((r,i)=>{Promise.all(n).then(s=>{const o=s.filter(a=>a!==rf.resolved);o.length>0?i(o):r()}).catch(s=>i([s]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class R0e{_enabled=!1;_currentContext=ac;_bindFunction(t=ac,n){const r=this,i=function(...s){return r.with(t,()=>n.apply(this,s))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}active(){return this._currentContext}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):n}disable(){return this._currentContext=ac,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=ac,this)}with(t,n,r,...i){const s=this._currentContext;this._currentContext=t||ac;try{return n.call(r,...i)}finally{this._currentContext=s}}}function k0e(e){if(e!==null){if(e===void 0){const t=new R0e;t.enable(),xf.setGlobalContextManager(t);return}e.enable(),xf.setGlobalContextManager(e)}}function I0e(e){if(e!==null){if(e===void 0){Pm.setGlobalPropagator(new hq({propagators:[new pq,new aq]}));return}Pm.setGlobalPropagator(e)}}class O0e extends A0e{constructor(t={}){super(t)}register(t={}){aa.setGlobalTracerProvider(this),I0e(t.propagator),k0e(t.contextManager)}}class M0e{_delegate;constructor(t){this._delegate=t}export(t,n){this._delegate.export(t,n)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}
526class YB extends Error{code;name="OTLPExporterError";data;constructor(t,n,r){super(t),this.data=r,this.code=n}}function N0e(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function L0e(e){if(e!=null)return()=>e}function D0e(e,t,n){return{timeoutMillis:N0e(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function P0e(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class $0e{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const n=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(n,n)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function F0e(e){return new $0e(e.concurrencyLimit)}function U0e(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function B0e(){return{handleResponse(e){e==null||!U0e(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||dn.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class z0e{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,n,r,i,s){this._transport=t,this._serializer=n,this._responseHandler=r,this._promiseQueue=i,this._timeout=s,this._diagLogger=dn.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,n){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){n({code:oa.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){n({code:oa.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(s){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",s,i.data)}n({code:oa.SUCCESS});return}else if(i.status==="failure"&&i.error){n({code:oa.FAILED,error:i.error});return}else i.status==="retryable"?n({code:oa.FAILED,error:new YB("Export failed with retryable status")}):n({code:oa.FAILED,error:new YB("Export failed with unknown error")})},i=>n({code:oa.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function H0e(e,t){return new z0e(e.transport,e.serializer,B0e(),e.promiseHandler,t.timeout)}function aN(e,t,n){return H0e({transport:n,serializer:t,promiseHandler:F0e(e)},{timeout:e.timeoutMillis})}function XB(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function wq(e){const t=new Uint8Array(e.length/2);let n=0;for(let r=0;r<e.length;r+=2){const i=XB(e.charCodeAt(r)),s=XB(e.charCodeAt(r+1));t[n++]=i<<4|s}return t}function Tq(e){const t=BigInt(1e9);return BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))}function j0e(e){const t=Number(BigInt.asUintN(32,e)),n=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:n}}function V0e(e){const t=Tq(e);return j0e(t)}function G0e(e){return Tq(e).toString()}const q0e=typeof BigInt<"u"?G0e:MSe;function KB(e){return e}function W0e(e){if(e!==void 0)return wq(e)}const Y0e={encodeHrTime:V0e,encodeSpanContext:wq,encodeOptionalSpanContext:W0e};function X0e(e){return e===void 0?Y0e:{encodeHrTime:q0e,encodeSpanContext:KB,encodeOptionalSpanContext:KB}}function K0e(e){const t={attributes:Hw(e.attributes),droppedAttributesCount:0},n=e.schemaUrl;return n&&n!==""&&(t.schemaUrl=n),t}function Z0e(e){return{name:e.name,version:e.version}}function Hw(e){return Object.keys(e).map(t=>xq(t,e[t]))}function xq(e,t){return{key:e,value:Cq(t)}}function Cq(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(Cq)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([n,r])=>xq(n,r))}}:{}}
526const J0e=256,Q0e=512;function Aq(e,t){let n=e&255|J0e;return t&&(n|=Q0e),n}function eEe(e,t){const n=e.spanContext(),r=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:i,traceState:n.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:Hw(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(s=>nEe(s,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(s=>tEe(s,t)),droppedLinksCount:e.droppedLinksCount,flags:Aq(n.traceFlags,e.parentSpanContext?.isRemote)}}function tEe(e,t){return{attributes:e.attributes?Hw(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0,flags:Aq(e.context.traceFlags,e.context.isRemote)}}function nEe(e,t){return{attributes:e.attributes?Hw(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function rEe(e,t){const n=X0e(t);return{resourceSpans:sEe(e,n)}}function iEe(e){const t=new Map;for(const n of e){let r=t.get(n.resource);r||(r=new Map,t.set(n.resource,r));const i=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let s=r.get(i);s||(s=[],r.set(i,s)),s.push(n)}return t}function sEe(e,t){const n=iEe(e),r=[],i=n.entries();let s=i.next();for(;!s.done;){const[o,a]=s.value,l=[],f=a.values();let d=f.next();for(;!d.done;){const _=d.value;if(_.length>0){const v=_.map(E=>eEe(E,t));l.push({scope:Z0e(_[0].instrumentationScope),spans:v,schemaUrl:_[0].instrumentationScope.schemaUrl})}d=f.next()}const p=K0e(o),m={resource:p,scopeSpans:l,schemaUrl:p.schemaUrl};r.push(m),s=i.next()}return r}const oEe={serializeRequest:e=>{const t=rEe(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},aEe=5,cEe=1e3,lEe=5e3,uEe=1.5,ZB=.2;function fEe(){return Math.random()*(2*ZB)-ZB}class dEe{_transport;constructor(t){this._transport=t}retry(t,n,r){return new Promise((i,s)=>{setTimeout(()=>{this._transport.send(t,n).then(i,s)},r)})}async send(t,n){const r=Date.now()+n;let i=await this._transport.send(t,n),s=aEe,o=cEe;for(;i.status==="retryable"&&s>0;){s--;const a=Math.max(Math.min(o,lEe)+fEe(),0);o=o*uEe;const l=i.retryInMillis??a,f=r-Date.now();if(l>f)return i;i=await this.retry(t,f,l)}return i}shutdown(){return this._transport.shutdown()}}function cN(e){return new dEe(e.transport)}function Rq(e){return[429,502,503,504].includes(e)}function kq(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const n=new Date(e).getTime()-Date.now();return n>=0?n:0}class hEe{_parameters;constructor(t){this._parameters=t}send(t,n){return new Promise(r=>{const i=new XMLHttpRequest;i.timeout=n,i.open("POST",this._parameters.url);const s=this._parameters.headers();Object.entries(s).forEach(([o,a])=>{i.setRequestHeader(o,a)}),i.ontimeout=o=>{r({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(dn.debug("XHR success"),r({status:"success"})):i.status&&Rq(i.status)?r({status:"retryable",retryInMillis:kq(i.getResponseHeader("Retry-After"))}):i.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},i.send(t)})}shutdown(){}}function pEe(e){return new hEe(e)}class gEe{_params;constructor(t){this._params=t}send(t){return new Promise(n=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(dn.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function mEe(e){return new gEe(e)}class _Ee{_parameters;constructor(t){this._parameters=t}async send(t,n){const r=new AbortController,i=setTimeout(()=>r.abort(),n);try{const s=!!globalThis.location,o=new URL(this._parameters.url),a=await fetch(o.href,{method:"POST",headers:this._parameters.headers(),body:t,signal:r.signal,keepalive:s,mode:s?globalThis.location?.origin===o.origin?"same-origin":"cors":"no-cors"});if(a.status>=200&&a.status<=299)return dn.debug("response success"),{status:"success"};if(Rq(a.status)){const l=a.headers.get("Retry-After");return{status:"retryable",retryInMillis:kq(l)}}return{status:"failure",error:new Error("Fetch request failed with non-retryable status")}}catch(s){return s?.name==="AbortError"?{status:"failure",error:new Error("Fetch request timed out",{cause:s})}:{status:"failure",error:new Error("Fetch request errored",{cause:s})}}finally{clearTimeout(i)}}shutdown(){}}function vEe(e){return new _Ee(e)}function yEe(e,t){return aN(e,t,cN({transport:pEe(e)}))}function bEe(e,t){return aN(e,t,cN({transport:vEe(e)}))}function SEe(e,t){return aN(e,t,cN({transport:mEe({url:e.url,blobType:e.headers()["Content-Type"]})}))}function EEe(e){return()=>{const t={};return Object.entries(e?.()??{}
526).forEach(([n,r])=>{typeof r<"u"?t[n]=String(r):dn.warn(`Header "${n}" has invalid value (${r}) and will be ignored`)}),t}}function wEe(e,t,n){const r={...n()},i={};return()=>(t!=null&&Object.assign(i,t()),e!=null&&Object.assign(i,e()),Object.assign(i,r))}function TEe(e){if(e!=null)try{const t=globalThis.location?.href;return new URL(e,t).href}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function xEe(e,t,n){return{...D0e(e,t,n),headers:wEe(EEe(e.headers),t.headers,n.headers),url:TEe(e.url)??t.url??n.url}}function CEe(e,t){return{...P0e(),headers:()=>e,url:"http://localhost:4318/"+t}}function AEe(e,t,n){return xEe({url:e.url,timeoutMillis:e.timeoutMillis,headers:L0e(e.headers),concurrencyLimit:e.concurrencyLimit},{},CEe(n,t))}function REe(e,t,n,r){const i=kEe(e.headers),s=AEe(e,n,r);return i(s,t)}function kEe(e){return!e&&typeof navigator.sendBeacon=="function"?SEe:typeof globalThis.fetch<"u"?bEe:yEe}class IEe extends M0e{constructor(t={}){super(REe(t,oEe,"v1/traces",{"Content-Type":"application/json"}))}}const OEe="GH6CGA8kqwmAfqGsSfolmL",MEe="5ETF0avPANSDTgm3hSy8vA";function NEe(e){switch(e){case"quisi.do":return OEe;default:return MEe}}class LEe extends IEe{constructor(t){super({headers:{"x-honeycomb-team":NEe(t)},url:"https://api.honeycomb.io:443/v1/traces"})}}class DEe extends S0e{otlpTraceExporter;constructor(t){const n=new LEe(t);super(n),this.otlpTraceExporter=n}}class PEe extends hq{w3cBaggagePropagator;w3cTraceContextPropagator;constructor(){const t=new aq,n=new pq;super({propagators:[t,n]}),this.w3cBaggagePropagator=t,this.w3cTraceContextPropagator=n}}const $Ee="cloud.account.id",FEe="cloud.platform",UEe="cloud.provider",BEe="deployment.environment.name",JB="host.name",zEe="os.description",HEe="os.name",jEe="os.type",VEe="linux",QB="windows",GEe="process.executable.path",qEe="process.runtime.description",WEe="process.runtime.name",YEe="process.runtime.version",XEe="service.instance.id",KEe="service.namespace",ZEe="webengine.description",JEe="webengine.name",QEe="webengine.version",ewe="7.2.4",twe="Native-ESM powered web dev build tool",nwe={version:ewe,description:twe},rwe="@quisido/vite",iwe="1.0.0",swe={"@datadog/browser-rum":"^6.23.0","@datadog/datadog-api-client":"^1.46.0","@emotion/react":"^11.14.0","@emotion/styled":"^11.14.1","@fullstory/browser":"^2.0.6","@microsoft/clarity":"^1.0.0","@newrelic/browser-agent":"^1.302.0","@opentelemetry/api":"^1.9.0","@opentelemetry/context-zone":"^2.2.0","@opentelemetry/exporter-trace-otlp-http":"^0.207.0","@opentelemetry/instrumentation":"^0.207.0","@opentelemetry/instrumentation-document-load":"^0.53.0","@opentelemetry/instrumentation-fetch":"^0.207.0","@opentelemetry/instrumentation-user-interaction":"^0.52.0","@opentelemetry/instrumentation-xml-http-request":"^0.207.0","@opentelemetry/resources":"^2.2.0","@opentelemetry/sdk-trace-web":"^2.2.0","@opentelemetry/semantic-conventions":"^1.37.0","@quisido/authn-shared":"^1.1.5","@quisido/csp-shared":"^1.0.1","@react-aria/button":"^3.14.2","@react-aria/overlays":"^3.30.0","@sentry/browser":"^10.23.0","@sentry/core":"^10.23.0","@sentry/profiling-node":"^10.23.0","@sentry/react":"^10.23.0","@sentry/tracing":"^7.120.4","@types/google.visualization":"^0.0.74","chart.js":"^4.5.1","d3-shape":"^3.2.0",dompurify:"^3.3.0",fmrs:"^2.1.1","fullstory-react":"^3.0.0","lazy-i18n":"^3.0.4","mixpanel-browser":"^2.71.1","number-format-react":"^2.0.1","posthog-js":"^1.288.0",react:"^19.2.0","react-chartjs-2":"^5.3.1","react-datadog":"^3.0.1","react-dom":"^19.2.0","react-innertext":"^1.1.5","react-router":"^7.11.0","sentry-react":"^2.1.3","use-force-update":"^2.0.0","use-shallow-memo":"^1.1.0","zone.js":"^0.15.1"},owe={name:rwe,version:iwe,dependencies:swe};function awe(e){if(!(typeof e>"u")){switch(e){case"Mac_PowerPC":case"Macintosh":return"Mac OS";case"Win16":return"Windows 3.11";case"Win95":case"WinNT":case"WinNT4.0":case"Windows NT":return"Windows NT 4.0";case"Windows_95":return"Windows 95";case"Win98":return"Windows 98";case"Windows 10.0":case"Windows NT 10.0":return"Windows 10";case"Windows NT 5.0":return"Windows 2000";case"Windows NT 5.1":return"Windows XP";case"Windows NT 5.2":return"Windows Server 2003";case"Windows NT 6.0":return"Windows Vista";case"Windows NT 6.1":return"Windows 7";case"Windows NT 6.2":case"WOW64":return"Windows 8";case"X11":return"Linux"}return e}}function cwe(e){if(!(typeof e>"u")){if(e.startsWith("Win"))return QB;switch(e){case"Mac_PowerPC":case"Macintosh":case"X11":return VEe;case"WOW64":return QB;default:return e.toLowerCase()}}}function lwe(e){const{productSub:t,userAgent:n,vendor:r}=e,s=(()=>
526{if("oscpu"in e)try{return ct(e.oscpu)}catch{return}})();return{[zEe]:s,[HEe]:awe(s),[jEe]:cwe(s),[ZEe]:n,[JEe]:r,[QEe]:t}}function uwe(){return typeof window>"u"?{}:lwe(window.navigator)}function fwe(e,t){const[n,...r]=e.split(t);return[n,...r]}const dwe=e=>[...e].reverse();function hwe({name:e,version:t}){const[n,r]=dwe(fwe(e,"/"));return{[ZG]:n,[KEe]:r,[fbe]:t}}const{description:pwe,version:gwe}=nwe,{dependencies:mwe,name:_we,version:vwe}=owe,ywe=ct("Cloudflare"),bwe=ct("Cloudflare Pages"),e2="@opentelemetry/sdk-trace-web",Swe=ct("quisi.do"),Ewe=ct("live");class lN{#e;#t;constructor(t,n){this.#e=t,this.#t=n,this.merge=this.merge.bind(this)}get attributes(){return{[$Ee]:Swe,[FEe]:ywe,[UEe]:bwe,[BEe]:Ewe,[JB]:this.#e,[GEe]:process.execPath,[qEe]:pwe,[WEe]:"vite",[YEe]:gwe,[XEe]:XG,[p_]:this.#t,[Y0]:e2,[X0]:mwe[e2],...uwe(),...hwe({name:_we,version:vwe})}}merge(t){return new lN(t?.attributes[JB]??this.#e,t?.attributes[p_]??this.#t)}getRawAttributes(){return Object.entries(this.attributes)}}class wwe extends O0e{batchSpanProcessor;contextManager=new lSe;compositePropagator=new PEe;constructor(t,n){const r=new DEe(t);super({resource:new lN(t,n),spanProcessors:[r]}),this.register({contextManager:this.contextManager,propagator:this.compositePropagator}),this.batchSpanProcessor=r}}function Twe({children:e}){const t=QM(),n=hbe(),r=D.useMemo(()=>new wwe(t,n),[t,n]);return D.useEffect(()=>()=>{r.shutdown().catch(Ki)},[r]),q.jsx(aSe,{value:r,children:e})}function xwe(e,t){return function({children:r}){return q.jsx(e,{children:q.jsx(t,{children:r})})}}function Cwe(...e){const t=e.reduce(xwe,D.Fragment);return function(r){return function(s){return q.jsx(t,{children:q.jsx(r,{...s},null)})}}}const{ContextProvider:Awe,useContextValue:Rwe}=rv(),kwe=Awe,Iq=Rwe,Iwe=2,Owe=16;function Mwe(e){return e.toString(Owe).padStart(Iwe,"0")}function xb(e){return`#${e.map(Mwe).join("")}`}function zC(e,t,n){return D.useCallback(r=>{const i=n.toString(),s=t.toString(),o=r.toString();return`rgba(${e.toString()}, ${s}, ${i}, ${o})`},[n,t,e])}function au(){const e=Iq(),{foreground:t,primary:n,secondary:r}=e;return{...e,backgroundHex:xb(e.background),foregroundAlpha:zC(...t),foregroundHex:xb(t),primaryAlpha:zC(...n),primaryHex:xb(n),secondaryAlpha:zC(...r),secondaryHex:xb(r)}}function Nwe(e,t){return e.map(t)}const Lwe="_theme_1jfch_53",uN={"border-inner":"_border-inner_1jfch_1","border-outer":"_border-outer_1jfch_25",theme:Lwe},Dwe=.5,Pwe=ct(uN.theme),$we=255,Fwe=ct(uN["border-inner"]),Uwe=ct(uN["border-outer"]),Bwe=e=>$we-e;function zwe(){const{background:e,lines:t}=au();return D.useMemo(()=>t?`repeating-linear-gradient(${["transparent",`rgba(${Nwe(e,Bwe).join(", ")}, 0.25) 1px`,"transparent 1px","transparent 1rem"].join(", ")})`:void 0,[e,t])}function Hwe({children:e}){const{backgroundHex:t,foregroundHex:n,lines:r,secondaryAlpha:i}=au(),s=zwe();D.useLayoutEffect(()=>{const{style:l}=window.document.body,f=l.getPropertyValue("color"),d=l.getPropertyValue("background-color");return l.setProperty("background-color",t),l.setProperty("color",n),()=>{l.setProperty("background-color",d),l.setProperty("color",f)}},[t,n]);const a=r?i(Dwe):"transparent";return q.jsx("div",{className:Uwe,style:{borderColor:a},children:q.jsx("div",{className:Fwe,children:q.jsx("div",{className:Pwe,style:{backgroundImage:s,borderColor:a},children:e})})})}const jwe={background:[248,244,240],displayFontFamily:'"Noto Sans Display", "Noto Sans", Helvetica, sans-serif',displayFontWeight:700,foreground:[0,0,0],lines:!1,primary:[229,58,53],primaryFontWeight:700,secondary:[114,191,128]};function Vwe(e){return!e}const t2=!1;function Gwe({children:e}){const[t,n]=D.useState(t2),r=D.useMemo(()=>({...jwe,dev:t2,lines:t,toggleLines(){n(Vwe)}}),[t]);return q.jsx(kwe,{value:r,children:e})}var ge=typeof window<"u"?window:void 0,Ci=typeof globalThis<"u"?globalThis:ge;typeof self>"u"&&(Ci.self=Ci),typeof File>"u"&&(Ci.File=function(){});var Oq=Array.prototype,n2=Oq.forEach,r2=Oq.indexOf,Fs=Ci?.navigator,Pe=Ci?.document,ys=Ci?.location,kk=Ci?.fetch,Ik=Ci!=null&&Ci.XMLHttpRequest&&"withCredentials"in new Ci.XMLHttpRequest?Ci.XMLHttpRequest:void 0,i2=Ci?.AbortController,vs=Fs?.userAgent,Et=ge??{},rc={DEBUG:!1,LIB_VERSION:"1.298.1"};function s2(e,t,n,r,i,s,o){try{var a=e[s](o),l=a.value}catch(f){return void n(f)}a.done?t(l):Promise.resolve(l).then(r,i)}function o2(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var s=e.apply(t,n);function o(l){s2(s,r,i,o,a,"next",l)}
526function a(l){s2(s,r,i,o,a,"throw",l)}o(void 0)}))}}function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},We.apply(null,arguments)}function Mq(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var qwe=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],a2=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var n=e.toLowerCase();return qwe.concat(t).some((r=>{var i=r.toLowerCase();return n.indexOf(i)!==-1}))},Wwe=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function Jt(e,t){return e.indexOf(t)!==-1}var jw=function(e){return e.trim()},Ok=function(e){return e.replace(/^\$/,"")},Ywe=Array.isArray,Nq=Object.prototype,Lq=Nq.hasOwnProperty,Vw=Nq.toString,tr=Ywe||function(e){return Vw.call(e)==="[object Array]"},Ll=e=>typeof e=="function",Ti=e=>e===Object(e)&&!tr(e),fh=e=>{if(Ti(e)){for(var t in e)if(Lq.call(e,t))return!1;return!0}return!1},Le=e=>e===void 0,ai=e=>Vw.call(e)=="[object String]",Mk=e=>ai(e)&&e.trim().length===0,Pc=e=>e===null,dr=e=>Le(e)||Pc(e),wa=e=>Vw.call(e)=="[object Number]",Dl=e=>Vw.call(e)==="[object Boolean]",Xwe=e=>e instanceof FormData,Kwe=e=>Jt(Wwe,e);function Nk(e){return e===null||typeof e!="object"}function tE(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function Dq(e){return!Le(Event)&&(function(t,n){try{return t instanceof n}catch{return!1}})(e,Event)}var Zwe=[!0,"true",1,"1","yes"],HC=e=>Jt(Zwe,e),Jwe=[!1,"false",0,"0","no"];function fa(e,t,n,r,i){return t>n&&(r.warn("min cannot be greater than max."),t=n),wa(e)?e>n?(r.warn(" cannot be  greater than max: "+n+". Using max value instead."),n):e<t?(r.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+i),fa(i||n,t,n,r))}class Qwe{constructor(t){this.t={},this.i=t.i,this.o=fa(t.bucketSize,0,100,t.h),this.m=fa(t.refillRate,0,this.o,t.h),this.$=fa(t.refillInterval,0,864e5,t.h)}S(t,n){var r=n-t.lastAccess,i=Math.floor(r/this.$);if(i>0){var s=i*this.m;t.tokens=Math.min(t.tokens+s,this.o),t.lastAccess=t.lastAccess+i*this.$}}consumeRateLimit(t){var n,r=Date.now(),i=String(t),s=this.t[i];return s?this.S(s,r):(s={tokens:this.o,lastAccess:r},this.t[i]=s),s.tokens===0||(s.tokens--,s.tokens===0&&((n=this.i)==null||n.call(this,t)),s.tokens===0)}stop(){this.t={}}}var Cb,c2,jC,eTe=e=>e instanceof Error;function tTe(e){var t=globalThis._posthogChunkIds;if(t){var n=Object.keys(t);return jC&&n.length===c2||(c2=n.length,jC=n.reduce(((r,i)=>{Cb||(Cb={});var s=Cb[i];if(s)r[s[0]]=s[1];else for(var o=e(i),a=o.length-1;a>=0;a--){var l=o[a],f=l?.filename,d=t[i];if(f&&d){r[f]=d,Cb[i]=[f,d];break}}return r}),{})),jC}}class nTe{constructor(t,n,r){r===void 0&&(r=[]),this.coercers=t,this.stackParser=n,this.modifiers=r}buildFromUnknown(t,n){n===void 0&&(n={});var r=n&&n.mechanism||{handled:!0,type:"generic"},i=this.buildCoercingContext(r,n,0).apply(t),s=this.buildParsingContext(),o=this.parseStacktrace(i,s);return{$exception_list:this.convertToExceptionList(o,r),$exception_level:"error"}}modifyFrames(t){var n=this;return o2((function*(){for(var r of t)r.stacktrace&&r.stacktrace.frames&&tr(r.stacktrace.frames)&&(r.stacktrace.frames=yield n.applyModifiers(r.stacktrace.frames));return t}))()}coerceFallback(t){var n;return{type:"Error",value:"Unknown error",stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(t,n){var r,i;return t.cause!=null&&(r=this.parseStacktrace(t.cause,n)),t.stack!=""&&t.stack!=null&&(i=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?1:0),n.chunkIdMap)),We({},t,{cause:r,stack:i})}applyChunkIds(t,n){return t.map((r=>(r.filename&&n&&(r.chunk_id=n[r.filename]),r)))}applyCoercers(t,n){for(var r of this.coercers)if(r.match(t))return r.coerce(t,n);return this.coerceFallback(n)}applyModifiers(t){var n=this;return o2((function*(){var r=t;for(var i of n.modifiers)r=yield i(r);return r}))()}convertToExceptionList(t,n){var r,i,s,o={type:t.type,value:t.value,mechanism:{type:(r=n.type)!==null&&r!==void 0?r:"generic",handled:(i=n.handled)===null||i===void 0||i,synthetic:(s=t.synthetic)!==null&&s!==void 0&&s}};t.stack&&(o.stacktrace={type:"raw",frames:t.stack});var a=[o];return t.cause!=null&&a.push(...this.convertToExceptionList(t.cause,We({},n,{handled:!0}))),a}buildParsingContext(){return{chunkIdMap:tTe(this.stackParser)}}buildCoercingContext(t,n,r){r===void 0&&(r=0);var i=(s,o)=>
vendor: 6,911 bytes, lines 526-527
526{if(o<=4){var a=this.buildCoercingContext(t,n,o);return this.applyCoercers(s,a)}};return We({},n,{syntheticException:r==0?n.syntheticException:void 0,mechanism:t,apply:s=>i(s,r),next:s=>i(s,r+1)})}}var Qh="?";function Lk(e,t,n,r,i){var s={platform:e,filename:t,function:n==="<anonymous>"?Qh:n,in_app:!0};return Le(r)||(s.lineno=r),Le(i)||(s.colno=i),s}var Pq=(e,t)=>{var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Qh,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},rTe=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,iTe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,sTe=/\((\S*)(?::(\d+))(?::(\d+))\)/,oTe=(e,t)=>{var n=rTe.exec(e);if(n){var[,r,i,s]=n;return Lk(t,r,Qh,+i,+s)}var o=iTe.exec(e);if(o){if(o[2]&&o[2].indexOf("eval")===0){var a=sTe.exec(o[2]);a&&(o[2]=a[1],o[3]=a[2],o[4]=a[3])}var[l,f]=Pq(o[1]||Qh,o[2]);return Lk(t,f,l,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},aTe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,cTe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,lTe=(e,t)=>{var n=aTe.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=cTe.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var i=n[3],s=n[1]||Qh;return[s,i]=Pq(s,i),Lk(t,i,s,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},l2=/\(error: (.*)\)/,u2=50;function uTe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(i,s){s===void 0&&(s=0);for(var o=[],a=i.split(`
527`),l=s;l<a.length;l++){var f=a[l];if(!(f.length>1024)){var d=l2.test(f)?f.replace(l2,"$1"):f;if(!d.match(/\S*Error: /)){for(var p of n){var m=p(d,e);if(m){o.push(m);break}}if(o.length>=u2)break}}}return(function(_){if(!_.length)return[];var v=Array.from(_);return v.reverse(),v.slice(0,u2).map((E=>{return We({},E,{filename:E.filename||(b=v,b[b.length-1]||{}).filename,function:E.function||Qh});var b}))})(o)}}class fTe{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,n){var r=ai(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:r?t.stack:void 0,cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var n=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?n+": "+t.message:n}isDOMException(t){return tE(t,"DOMException")}isDOMError(t){return tE(t,"DOMError")}}class dTe{match(t){return(n=>n instanceof Error)(t)}coerce(t,n){return{type:this.getType(t),value:this.getMessage(t,n),stack:this.getStack(t),cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,n){var r=t.message;return r.error&&typeof r.error.message=="string"?String(r.error.message):String(r)}getStack(t){return t.stacktrace||t.stack||void 0}}class hTe{constructor(){}match(t){return tE(t,"ErrorEvent")&&t.error!=null}coerce(t,n){var r,i=n.apply(t.error);return i||{type:"ErrorEvent",value:t.message,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}var pTe=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class gTe{match(t){return typeof t=="string"}coerce(t,n){var r,[i,s]=this.getInfos(t);return{type:i??"Error",value:s??t,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}getInfos(t){var n="Error",r=t,i=t.match(pTe);return i&&(n=i[1],r=i[2]),[n,r]}}var mTe=["fatal","error","warning","log","info","debug"];function $q(e,t){t===void 0&&(t=40);var n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length||i.length<=t?i:i.slice(0,t)+"..."}return""}class _Te{match(t){return typeof t=="object"&&t!==null}coerce(t,n){var r,i=this.getErrorPropertyFromObject(t);return i?n.apply(i):{type:this.getType(t),value:this.getValue(t),stack:(r=n.syntheticException)==null?void 0:r.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return Dq(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var n="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(n+=" with message: '"+t.message+"'"),n}if("message"in t&&typeof t.message=="string")return t.message;var r=this.getObjectClassName(t);return(r&&r!=="Object"?"'"+r+"'":"Object")+" captured as exception with keys: "+$q(t)}isSeverityLevel(t){return ai(t)&&!Mk(t)&&mTe.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];if(eTe(r))return r}}getObjectClassName(t){try{var n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{return}}}class vTe{match(t){return Dq(t)}coerce(t,n){var r,i=t.constructor.name;return{type:i,value:i+" captured as exception with keys: "+$q(t),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class yTe{match(t){return Nk(t)}coerce(t,n){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class bTe{match(t){return tE(t,"PromiseRejectionEvent")}coerce(t,n){var r,i=this.getUnhandledRejectionReason(t);return Nk(i)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}:n.apply(i)}getUnhandledRejectionReason(t){if(Nk(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}}var Fq=function(e,t){var{debugEnabled:n}=t===void 0?{}:t,r={k:function(i){if(ge&&(rc.DEBUG||Et.POSTHOG_DEBUG||n)&&!Le(ge.console)&&ge.console){for(var s=("__rrweb_original__"in ge.console[i])?ge.console[i].__rrweb_original__:ge.console[i],o=arguments.length,a=new Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];s(e,...a)}},info:function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];r.k("log",...s)},warn:function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];r.k("warn",...s)},error:function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];r.k("error",...s)},critical:function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];console.error(e,...s)},uninitializedWarning:i=>{r.error("You must initialize PostHog before calling "+i)},createLogger:(i,s)=>Fq(e+" "+i,s)};return r},$e=Fq("[PostHog.js]"),fi=$e.createLogger,STe=fi("[ExternalScriptsLoader]"),f2=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return STe.warn(t+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=Pe?.querySelectorAll("script");
527if(r){for(var i,s=function(){if(r[o].src===t){var l=r[o];return l.__posthog_loading_callback_fired?{v:n()}:(l.addEventListener("load",(f=>{l.__posthog_loading_callback_fired=!0,n(void 0,f)})),l.onerror=f=>n(f),{v:void 0})}},o=0;o<r.length;o++)if(i=s())return i.v}var a=()=>{if(!Pe)return n("document not found");var l=Pe.createElement("script");if(l.type="text/javascript",l.crossOrigin="anonymous",l.src=t,l.onload=p=>{l.__posthog_loading_callback_fired=!0,n(void 0,p)},l.onerror=p=>n(p),e.config.prepare_external_dependency_script&&(l=e.config.prepare_external_dependency_script(l)),!l)return n("prepare_external_dependency_script returned null");var f,d=Pe.querySelectorAll("body > script");d.length>0?(f=d[0].parentNode)==null||f.insertBefore(l,d[0]):Pe.body.appendChild(l)};Pe!=null&&Pe.body?a():Pe?.addEventListener("DOMContentLoaded",a)};Et.__PosthogExtensions__=Et.__PosthogExtensions__||{},Et.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{var r="/static/"+t+".js?v="+e.version;if(t==="remote-config"&&(r="/array/"+e.config.token+"/config.js"),t==="toolbar"){var i=3e5;r=r+"&t="+Math.floor(Date.now()/i)*i}var s=e.requestRouter.endpointFor("assets",r);f2(e,s,n)},Et.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{var r=e.requestRouter.endpointFor("api",t);f2(e,r,n)};var nE={};function Pl(e,t,n){if(tr(e)){if(n2&&e.forEach===n2)e.forEach(t,n);else if("length"in e&&e.length===+e.length){for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r)===nE)return}}}function er(e,t,n){if(!dr(e)){if(tr(e))return Pl(e,t,n);if(Xwe(e)){for(var r of e.entries())if(t.call(n,r[1],r[0])===nE)return}else for(var i in e)if(Lq.call(e,i)&&t.call(n,e[i],i)===nE)return}}var Ur=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Pl(n,(function(i){for(var s in i)i[s]!==void 0&&(e[s]=i[s])})),e},Pp=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Pl(n,(function(i){Pl(i,(function(s){e.push(s)}))})),e};function YS(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var d2=function(e){try{return e()}catch{return}},ETe=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}catch(i){$e.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),$e.critical(i)}}},fN=function(e){var t={};return er(e,(function(n,r){(ai(n)&&n.length>0||wa(n))&&(t[r]=n)})),t};function wTe(e,t){return n=e,r=s=>ai(s)&&!Pc(t)?s.slice(0,t):s,i=new Set,(function s(o,a){return o!==Object(o)?r?r(o,a):o:i.has(o)?void 0:(i.add(o),tr(o)?(l=[],Pl(o,(f=>{l.push(s(f))}))):(l={},er(o,((f,d)=>{i.has(f)||(l[d]=s(f,d))}))),l);var l})(n);var n,r,i}var TTe=["herokuapp.com","vercel.app","netlify.app"];function xTe(e){var t=e?.hostname;if(!ai(t))return!1;var n=t.split(".").slice(-2).join(".");for(var r of TTe)if(n===r)return!1;return!0}function Uq(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function ni(e,t,n,r){var{capture:i=!1,passive:s=!0}=r??{};e?.addEventListener(t,n,{capture:i,passive:s})}var Bq="$people_distinct_id",mm="__alias",_m="__timers",h2="$autocapture_disabled_server_side",Dk="$heatmaps_enabled_server_side",p2="$exception_capture_enabled_server_side",Pk="$error_tracking_suppression_rules",g2="$error_tracking_capture_extension_exceptions",m2="$web_vitals_enabled_server_side",zq="$dead_clicks_enabled_server_side",_2="$web_vitals_allowed_metrics",VC="$session_recording_remote_config",rE="$sesid",Hq="$session_is_sampled",dh="$enabled_feature_flags",vm="$early_access_features",$k="$feature_flag_details",ym="$stored_person_properties",Ku="$stored_group_properties",Fk="$surveys",Ab="$surveys_activated",iE="$flag_call_reported",ic="$user_state",Uk="$client_session_props",Bk="$capture_rate_limit",zk="$initial_campaign_params",Hk="$initial_referrer_info",sE="$initial_person_info",oE="$epp",jq="__POSTHOG_TOOLBAR__",qg="$posthog_cookieless",CTe=[Bq,mm,"__cmpns",_m,"$session_recording_enabled_server_side",Dk,rE,dh,Pk,ic,vm,$k,Ku,ym,Fk,iE,Uk,Bk,zk,Hk,oE,sE];function v2(e){return e instanceof Element&&(e.id===jq||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function Gw(e){return!!e&&e.nodeType===1}function $l(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Vq(e){return!!e&&e.nodeType===3}function Gq(e){return!!e&&e.nodeType===11}function dN(e){return e?jw(e).split(/\s+/):[]}function y2(e){var t=ge?.location.href;return!!(t&&e&&e.some((n=>t.match(n))))}function aE(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return dN(t)}function qq(e){return dr(e)?null:jw(e).split(/(\s+)/).filter((t=>__(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function xv(e){var t="";return jk(e)&&!Zq(e)&&e.childNodes&&e.childNodes.length&&er(e.childNodes,(function(n){var r;Vq(n)&&n.textContent&&(t+=(r=qq(n.textContent))!==null&&r!==void 0?r:"")})),jw(t)}function Wq(e){return Le(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var hN=["a","button","form","input","select","textarea","label"];function Yq(e,t){if(Le(t))return!0;var n,r=function(s){if(t.some((o=>s.matches(o))))return{v:!0}};for(var i of e)if(n=r(i))return n.v;return!1}function Xq(e){var t=e.parentNode;return!(!t||!Gw(t))&&t}var ATe=["next","previous","prev",">","<"],b2=10,S2=[".ph-no-rageclick",".ph-no-capture"];function RTe(e,t){if(!ge||pN(e))return!1;var n,r,i;if(Dl(t)?(n=!!t&&S2,r=void 0):(n=(i=t?.css_selector_ignorelist)!==null&&i!==void 0?i:S2,r=t?.content_ignorelist),n===!1)return!1;var{targetElementList:s}=Kq(e,!1);return!(function(o,a){if(o===!1||Le(o))return!1;var l;if(o===!0)l=ATe;else{if(!tr(o))return!1;if(o.length>b2)return $e.error("[PostHog] content_ignorelist array cannot exceed "+b2+" items. Use css_selector_ignorelist for more complex matching."),!1;l=o.map((f=>f.toLowerCase()))}return a.some((f=>{var{safeText:d,ariaLabel:p}=f;return l.some((m=>d.includes(m)||p.includes(m)))}))})(r,s.map((o=>{var a;return{safeText:xv(o).toLowerCase(),ariaLabel:((a=o.getAttribute("aria-label"))==null?void 0:a.toLowerCase().trim())||""}})))&&!Yq(s,n)}var pN=e=>!e||$l(e,"html")||!Gw(e),Kq=(e,t)=>{if(!ge||pN(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[e],i=e;i.parentNode&&!$l(i,"body");)if(Gq(i.parentNode))r.push(i.parentNode.host),i=i.parentNode.host;else{var s=Xq(i);if(!s)break;if(t||hN.indexOf(s.tagName.toLowerCase())>-1)n=!0;else{var o=ge.getComputedStyle(s);o&&o.getPropertyValue("cursor")==="pointer"&&(n=!0)}r.push(s),i=s}return{parentIsUsefulElement:n,targetElementList:r}};function kTe(e,t,n,r,i){var s,o,a,l;if(n===void 0&&(n=void 0),!ge||pN(e)||(s=n)!=null&&s.url_allowlist&&!y2(n.url_allowlist)||(o=n)!=null&&o.url_ignorelist&&y2(n.url_ignorelist))return!1;if((a=n)!=null&&a.dom_event_allowlist){var f=n.dom_event_allowlist;
527if(f&&!f.some((v=>t.type===v)))return!1}var{parentIsUsefulElement:d,targetElementList:p}=Kq(e,r);if(!(function(v,E){var b=E?.element_allowlist;if(Le(b))return!0;var w,T=function(C){if(b.some((k=>C.tagName.toLowerCase()===k)))return{v:!0}};for(var R of v)if(w=T(R))return w.v;return!1})(p,n)||!Yq(p,(l=n)==null?void 0:l.css_selector_allowlist))return!1;var m=ge.getComputedStyle(e);if(m&&m.getPropertyValue("cursor")==="pointer"&&t.type==="click")return!0;var _=e.tagName.toLowerCase();switch(_){case"html":return!1;case"form":return(i||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(t.type)>=0;default:return d?(i||["click"]).indexOf(t.type)>=0:(i||["click"]).indexOf(t.type)>=0&&(hN.indexOf(_)>-1||e.getAttribute("contenteditable")==="true")}}function jk(e){for(var t=e;t.parentNode&&!$l(t,"body");t=t.parentNode){var n=aE(t);if(Jt(n,"ph-sensitive")||Jt(n,"ph-no-capture"))return!1}if(Jt(aE(e),"ph-include"))return!0;var r=e.type||"";if(ai(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(ai(i)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function Zq(e){return!!($l(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||$l(e,"select")||$l(e,"textarea")||e.getAttribute("contenteditable")==="true")}var Jq="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",ITe=new RegExp("^(?:"+Jq+")$"),OTe=new RegExp(Jq),Qq="\\d{3}-?\\d{2}-?\\d{4}",MTe=new RegExp("^("+Qq+")$"),NTe=new RegExp("("+Qq+")");function __(e,t){return t===void 0&&(t=!0),!(dr(e)||ai(e)&&(e=jw(e),(t?ITe:OTe).test((e||"").replace(/[- ]/g,""))||(t?MTe:NTe).test(e)))}function e7(e){var t=xv(e);return __(t=(t+" "+t7(e)).trim())?t:""}function t7(e){var t="";return e&&e.childNodes&&e.childNodes.length&&er(e.childNodes,(function(n){var r;if(n&&((r=n.tagName)==null?void 0:r.toLowerCase())==="span")try{var i=xv(n);t=(t+" "+i).trim(),n.childNodes&&n.childNodes.length&&(t=(t+" "+t7(n)).trim())}catch(s){$e.error("[AutoCapture]",s)}})),t}function LTe(e){return(function(t){var n=t.map((r=>{var i,s,o="";if(r.tag_name&&(o+=r.tag_name),r.attr_class)for(var a of(r.attr_class.sort(),r.attr_class))o+="."+a.replace(/"/g,"");var l=We({},r.text?{text:r.text}:{},{"nth-child":(i=r.nth_child)!==null&&i!==void 0?i:0,"nth-of-type":(s=r.nth_of_type)!==null&&s!==void 0?s:0},r.href?{href:r.href}:{},r.attr_id?{attr_id:r.attr_id}:{},r.attributes),f={};return YS(l).sort(((d,p)=>{var[m]=d,[_]=p;return m.localeCompare(_)})).forEach((d=>{var[p,m]=d;return f[E2(p.toString())]=E2(m.toString())})),o+=":",o+=YS(f).map((d=>{var[p,m]=d;return p+'="'+m+'"'})).join("")}));return n.join(";")})((function(t){return t.map((n=>{var r,i,s={text:(r=n.$el_text)==null?void 0:r.slice(0,400),tag_name:n.tag_name,href:(i=n.attr__href)==null?void 0:i.slice(0,2048),attr_class:DTe(n),attr_id:n.attr__id,nth_child:n.nth_child,nth_of_type:n.nth_of_type,attributes:{}};return YS(n).filter((o=>{var[a]=o;return a.indexOf("attr__")===0})).forEach((o=>{var[a,l]=o;return s.attributes[a]=l})),s}))})(e))}function E2(e){return e.replace(/"|\\"/g,'\\"')}function DTe(e){var t=e.attr__class;return t?tr(t)?t:dN(t):void 0}class n7{constructor(t){this.disabled=t===!1;var n=Ti(t)?t:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(t,n,r){if(this.disabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<this.thresholdPx&&r-i.timestamp<this.timeoutMs){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}var GC="$copy_autocapture",cc=(function(e){return e.GZipJS="gzip-js",e.Base64="base64",e})({}),cE=e=>{var t=Pe?.createElement("a");return Le(t)?null:(t.href=e,t)},PTe=function(e,t){var n,r;t===void 0&&(t="&");var i=[];return er(e,(function(s,o){Le(s)||Le(o)||o==="undefined"||(n=encodeURIComponent((a=>a instanceof File)(s)?s.name:s.toString()),r=encodeURIComponent(o),i[i.length]=r+"="+n)})),i.join(t)},lE=function(e,t){for(var n,r=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;i<r.length;i++){var s=r[i].split("=");if(s[0]===t){n=s;break}}if(!tr(n)||n.length<2)return"";var o=n[1];try{o=decodeURIComponent(o)}catch{$e.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},Cv=function(e,t,n){if(!e||!t||!t.length)return e;for(var r=e.split("#"),i=r[0]||"",s=r[1],o=i.split("?"),a=o[1],l=o[0],f=(a||"").split("&"),d=[],p=0;p<f.length;p++){var m=f[p].split("=");
527tr(m)&&(t.includes(m[0])?d.push(m[0]+"="+n):d.push(f[p]))}var _=l;return a!=null&&(_+="?"+d.join("&")),s!=null&&(_+="#"+s),_},uE=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},w2=fi("[AutoCapture]");function qC(e,t){return t.length>e?t.slice(0,e)+"...":t}function $Te(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!Gw(t));return t}function FTe(e,t,n,r){var i=e.tagName.toLowerCase(),s={tag_name:i};hN.indexOf(i)>-1&&!n&&(i.toLowerCase()==="a"||i.toLowerCase()==="button"?s.$el_text=qC(1024,e7(e)):s.$el_text=qC(1024,xv(e)));var o=aE(e);o.length>0&&(s.classes=o.filter((function(d){return d!==""}))),er(e.attributes,(function(d){var p;if((!Zq(e)||["name","id","class","aria-label"].indexOf(d.name)!==-1)&&(r==null||!r.includes(d.name))&&!t&&__(d.value)&&(p=d.name,!ai(p)||p.substring(0,10)!=="_ngcontent"&&p.substring(0,7)!=="_nghost")){var m=d.value;d.name==="class"&&(m=dN(m).join(" ")),s["attr__"+d.name]=qC(1024,m)}}));for(var a=1,l=1,f=e;f=$Te(f);)a++,f.tagName===e.tagName&&l++;return s.nth_child=a,s.nth_of_type=l,s}function UTe(e,t){for(var n,r,{e:i,maskAllElementAttributes:s,maskAllText:o,elementAttributeIgnoreList:a,elementsC
vendor: 9,883 bytes, line 527
527hainAsString:l}=t,f=[e],d=e;d.parentNode&&!$l(d,"body");)Gq(d.parentNode)?(f.push(d.parentNode.host),d=d.parentNode.host):(f.push(d.parentNode),d=d.parentNode);var p,m=[],_={},v=!1,E=!1;if(er(f,(C=>{var k=jk(C);C.tagName.toLowerCase()==="a"&&(v=C.getAttribute("href"),v=k&&v&&__(v)&&v),Jt(aE(C),"ph-no-capture")&&(E=!0),m.push(FTe(C,s,o,a));var M=(function(I){if(!jk(I))return{};var $={};return er(I.attributes,(function(Q){if(Q.name&&Q.name.indexOf("data-ph-capture-attribute")===0){var V=Q.name.replace("data-ph-capture-attribute-",""),N=Q.value;V&&N&&__(N)&&($[V]=N)}})),$})(C);Ur(_,M)})),E)return{props:{},explicitNoCapture:E};if(o||(e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?m[0].$el_text=e7(e):m[0].$el_text=xv(e)),v){var b,w;m[0].attr__href=v;var T=(b=cE(v))==null?void 0:b.host,R=ge==null||(w=ge.location)==null?void 0:w.host;T&&R&&T!==R&&(p=v)}return{props:Ur({$event_type:i.type,$ce_version:1},l?{}:{$elements:m},{$elements_chain:LTe(m)},(n=m[0])!=null&&n.$el_text?{$el_text:(r=m[0])==null?void 0:r.$el_text}:{},p&&i.type==="click"?{$external_click_url:p}:{},_)}}class BTe{constructor(t){this.P=!1,this.T=null,this.I=!1,this.instance=t,this.rageclicks=new n7(t.config.rageclick),this.R=null}get F(){var t,n,r=Ti(this.instance.config.autocapture)?this.instance.config.autocapture:{};return r.url_allowlist=(t=r.url_allowlist)==null?void 0:t.map((i=>new RegExp(i))),r.url_ignorelist=(n=r.url_ignorelist)==null?void 0:n.map((i=>new RegExp(i))),r}C(){if(this.isBrowserSupported()){if(ge&&Pe){var t=r=>{r=r||ge?.event;try{this.O(r)}catch(i){w2.error("Failed to capture event",i)}};if(ni(Pe,"submit",t,{capture:!0}),ni(Pe,"change",t,{capture:!0}),ni(Pe,"click",t,{capture:!0}),this.F.capture_copied_text){var n=r=>{r=r||ge?.event,this.O(r,GC)};ni(Pe,"copy",n,{capture:!0}),ni(Pe,"cut",n,{capture:!0})}}}else w2.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.P&&(this.C(),this.P=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.I=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[h2]:!!t.autocapture_opt_out}),this.T=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.R=t}getElementSelectors(t){var n,r=[];return(n=this.R)==null||n.forEach((i=>{var s=Pe?.querySelectorAll(i);s?.forEach((o=>{t===o&&r.push(i)}))})),r}get isEnabled(){var t,n,r=(t=this.instance.persistence)==null?void 0:t.props[h2],i=this.T;if(Pc(i)&&!Dl(r)&&!this.instance.M())return!1;var s=(n=this.T)!==null&&n!==void 0?n:!!r;return!!this.instance.config.autocapture&&!s}O(t,n){if(n===void 0&&(n="$autocapture"),this.isEnabled){var r,i=Wq(t);Vq(i)&&(i=i.parentNode||null),n==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(r=this.rageclicks)!=null&&r.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&RTe(i,this.instance.config.rageclick)&&this.O(t,"$rageclick");var s=n===GC;if(i&&kTe(i,t,this.F,s,s?["copy","cut"]:void 0)){var{props:o,explicitNoCapture:a}=UTe(i,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.F.element_attribute_ignorelist,elementsChainAsString:this.I});if(a)return!1;var l=this.getElementSelectors(i);if(l&&l.length>0&&(o.$element_selectors=l),n===GC){var f,d=qq(ge==null||(f=ge.getSelection())==null?void 0:f.toString()),p=t.type||"clipboard";if(!d)return!1;o.$selected_content=d,o.$copy_type=p}return this.instance.capture(n,o),!0}}}isBrowserSupported(){return Ll(Pe?.querySelectorAll)}}Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return wa(e)&&isFinite(e)&&Math.floor(e)===e});var T2="0123456789abcdef";class fE{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var s=new Uint8Array(16);return s[0]=t/Math.pow(2,40),s[1]=t/Math.pow(2,32),s[2]=t/Math.pow(2,24),s[3]=t/Math.pow(2,16),s[4]=t/Math.pow(2,8),s[5]=t,s[6]=112|n>>>8,s[7]=n,s[8]=128|r>>>24,s[9]=r>>>16,s[10]=r>>>8,s[11]=r,s[12]=i>>>24,s[13]=i>>>16,s[14]=i>>>8,s[15]=i,new fE(s)}toString(){for(var t="",n=0;n<this.bytes.length;n++)t=t+T2.charAt(this.bytes[n]>>>4)+T2.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new fE(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class zTe{constructor(){this.A=0,this.D=0,this.j=new HTe}generate(){var t=this.generateOrAbort();if(Le(t)){this.A=0;var n=this.generateOrAbort();if(Le(n))throw new Error("Could not generate UUID after timestamp reset");return n}return t}generateOrAbort(){var t=Date.now();if(t>this.A)this.A=t,this.L();else{if(!(t+1e4>this.A))return;this.D++,this.D>4398046511103&&(this.A++,this.L())}return fE.fromFieldsV7(this.A,Math.trunc(this.D/Math.pow(2,30)),this.D&Math.pow(2,30)-1,this.j.nextUint32())}L(){this.D=1024*this.j.nextUint32()+(1023&this.j.nextUint32())}}var x2,r7=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};ge&&!Le(ge.crypto)&&crypto.getRandomValues&&(r7=e=>crypto.getRandomValues(e));class HTe{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(r7(this.N),this.U=0),this.N[this.U++]}}var xl=()=>jTe().toString(),jTe=()=>(x2||(x2=new zTe)).generate(),Wg="",VTe=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;function GTe(e,t){if(t){var n=(function(i,s){if(s===void 0&&(s=Pe),Wg)return Wg;if(!s||["localhost","127.0.0.1"].includes(i))return"";for(var o=i.split("."),a=Math.min(o.length,8),l="dmn_chk_"+xl();!Wg&&a--;){var f=o.slice(a).join("."),d=l+"=1;domain=."+f+";path=/";s.cookie=d+";max-age=3",s.cookie.includes(l)&&(s.cookie=d+";max-age=0",Wg=f)}return Wg})(e);if(!n){var r=(i=>{var s=i.match(VTe);return s?s[0]:""})(e);r!==n&&$e.info("Warning: cookie subdomain discovery mismatch",r,n),n=r}return n?"; domain=."+n:""}return""}var ma={H:()=>!!Pe,B:function(e){$e.error("cookieStore error: "+e)},q:function(e){if(Pe){try{for(var t=e+"=",n=Pe.cookie.split(";").filter((s=>s.length)),r=0;r<n.length;r++){for(var i=n[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}}catch{}return null}},W:function(e){var t;try{t=JSON.parse(ma.q(e))||{}}catch{}return t},G:function(e,t,n,r,i){if(Pe)try{var s="",o="",a=GTe(Pe.location.hostname,r);if(n){var l=new Date;l.setTime(l.getTime()+24*n*60*60*1e3),s="; expires="+l.toUTCString()}i&&(o="; secure");var f=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+a+o;return f.length>3686.4&&$e.warn("cookieStore warning: large cookie, len="+f.length),Pe.cookie=f,f}catch{return}},V:function(e,t){if(Pe!=null&&Pe.cookie)try{ma.G(e,"",-1,t)}catch{return}}},WC=null,wr={H:function(){if(!Pc(WC))return WC;var e=!0;if(Le(ge))e=!1;else try{var t="__mplssupport__";wr.G(t,"xyz"),wr.q(t)!=='"xyz"'&&(e=!1),wr.V(t)}catch{e=!1}return e||$e.error("localStorage unsupported; falling back to cookie store"),WC=e,e},B:function(e){$e.error("localStorage error: "+e)},q:function(e){try{return ge?.localStorage.getItem(e)}catch(t){wr.B(t)}return null},W:function(e){try{return JSON.parse(wr.q(e))||{}}catch{}return null},G:function(e,t){try{ge?.localStorage.setItem(e,JSON.stringify(t))}catch(n){wr.B(n)}},V:function(e){try{ge?.localStorage.removeItem(e)}catch(t){wr.B(t)}}},qTe=["distinct_id",rE,Hq,oE,sE],Rb=We({},wr,{W:function(e){try{var t={};try{t=ma.W(e)||{}}catch{}var n=Ur(t,JSON.parse(wr.q(e)||"{}"));return wr.G(e,n),n}catch{}return null},G:function(e,t,n,r,i,s){try{wr.G(e,t,void 0,void 0,s);var o={};qTe.forEach((a=>{t[a]&&(o[a]=t[a])})),Object.keys(o).length&&ma.G(e,o,n,r,i,s)}catch(a){wr.B(a)}},V:function(e,t){try{ge?.localStorage.removeItem(e),ma.V(e,t)}catch(n){wr.B(n)}}}),kb={},WTe={H:function(){return!0},B:function(e){$e.error("memoryStorage error: "+e)},q:function(e){return kb[e]||null},W:function(e){return kb[e]||null},G:function(e,t){kb[e]=t},V:function(e){delete kb[e]}},zu=null,wi={H:function(){if(!Pc(zu))return zu;if(zu=!0,Le(ge))zu=!1;else try{var e="__support__";wi.G(e,"xyz"),wi.q(e)!=='"xyz"'&&(zu=!1),wi.V(e)}catch{zu=!1}return zu},B:function(e){$e.error("sessionStorage error: ",e)},q:function(e){try{return ge?.sessionStorage.getItem(e)}catch(t){wi.B(t)}return null},W:function(e){try{return JSON.parse(wi.q(e))||null}catch{}return null},G:function(e,t){try{ge?.sessionStorage.setItem(e,JSON.stringify(t))}catch(n){wi.B(n)}},V:function(e){try{ge?.sessionStorage.removeItem(e)}catch(t){wi.B(t)}}},sc=(function(e){return e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED",e})({});class YTe{constructor(t){this._instance=t}get F(){return this._instance.config}get consent(){return this.J()?sc.DENIED:this.K}isOptedOut(){return this.F.cookieless_mode==="always"||this.consent===sc.DENIED||this.consent===sc.PENDING&&(this.F.opt_out_capturing_by_default||this.F.cookieless_mode==="on_reject")}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===sc.DENIED}optInOut(t){this.Y.G(this.X,t?1:0,this.F.cookie_expiration,this.F.cross_subdomain_cookie,this.F.secure_cookie)}reset(){this.Y.V(this.X,this.F.cross_subdomain_cookie)}get X(){var{token:t,opt_out_capturing_cookie_prefix:n,consent_persistence_name:r}=this._instance.config;
527return r||(n?n+t:"__ph_opt_in_out_"+t)}get K(){var t=this.Y.q(this.X);return HC(t)?sc.GRANTED:Jt(Jwe,t)?sc.DENIED:sc.PENDING}get Y(){if(!this.Z){var t=this.F.opt_out_capturing_persistence_type;this.Z=t==="localStorage"?wr:ma;var n=t==="localStorage"?ma:wr;n.q(this.X)&&(this.Z.q(this.X)||this.optInOut(HC(n.q(this.X))),n.V(this.X,this.F.cross_subdomain_cookie))}return this.Z}J(){return!!this.F.respect_dnt&&!!Uq([Fs?.doNotTrack,Fs?.msDoNotTrack,Et.doNotTrack],(t=>HC(t)))}}var Ib=fi("[Dead Clicks]"),XTe=()=>!0,KTe=e=>{var t,n=!((t=e.instance.persistence)==null||!t.get_property(zq)),r=e.instance.config.capture_dead_clicks;return Dl(r)?r:n};class i7{get lazyLoadedDeadClicksAutocapture(){return this.tt}constructor(t,n,r){this.instance=t,this.isEnabled=n,this.onCapture=r,this.startIfEnabled()}onRemoteConfig(t){this.instance.persistence&&this.instance.persistence.register({[zq]:t?.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.it((()=>{this.et()}))}it(t){var n,r;(n=Et.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture&&t(),(r=Et.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",(i=>{i?Ib.error("failed to load script",i):t()}))}et(){var t;if(Pe){if(!this.tt&&(t=Et.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var n=Ti(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.tt=Et.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.tt.start(Pe),Ib.info("starting...")}}else Ib.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,Ib.info("stopping..."))}}var Yg=fi("[ExceptionAutocapture]");class ZTe{constructor(t){var n,r,i;this.rt=()=>{var s;if(ge&&this.isEnabled&&(s=Et.__PosthogExtensions__)!=null&&s.errorWrappingFunctions){var o=Et.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,a=Et.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,l=Et.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.st&&this.F.capture_unhandled_errors&&(this.st=o(this.captureException.bind(this))),!this.nt&&this.F.capture_unhandled_rejections&&(this.nt=a(this.captureException.bind(this))),!this.ot&&this.F.capture_console_errors&&(this.ot=l(this.captureException.bind(this)))}catch(f){Yg.error("failed to start",f),this.lt()}}},this._instance=t,this.ut=!((n=this._instance.persistence)==null||!n.props[p2]),this.F=this.ht(),this.dt=new Qwe({refillRate:(r=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&r!==void 0?r:1,bucketSize:(i=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&i!==void 0?i:10,refillInterval:1e4,h:Yg}),this.startIfEnabled()}ht(){var t=this._instance.config.capture_exceptions,n={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Ti(t)?n=We({},n,t):(Le(t)?this.ut:t)&&(n=We({},n,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),n}get isEnabled(){return this.F.capture_console_errors||this.F.capture_unhandled_errors||this.F.capture_unhandled_rejections}startIfEnabled(){this.isEnabled&&(Yg.info("enabled"),this.it(this.rt))}it(t){var n,r;(n=Et.__PosthogExtensions__)!=null&&n.errorWrappingFunctions&&t(),(r=Et.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"exception-autocapture",(i=>{if(i)return Yg.error("failed to load script",i);t()}))}lt(){var t,n,r;(t=this.st)==null||t.call(this),this.st=void 0,(n=this.nt)==null||n.call(this),this.nt=void 0,(r=this.ot)==null||r.call(this),this.ot=void 0}onRemoteConfig(t){var n=t.autocaptureExceptions;this.ut=!!n||!1,this.F=this.ht(),this._instance.persistence&&this._instance.persistence.register({[p2]:this.ut}),this.startIfEnabled()}captureException(t){var n,r,i=(n=t==null||(r=t.$exception_list)==null||(r=r[0])==null?void 0:r.type)!==null&&n!==void 0?n:"Exception";this.dt.consumeRateLimit(i)?Yg.info("Skipping exception capture because of client rate limiting.",{exception:i}):this._instance.exceptions.sendExceptionEvent(t)}}function C2(e,t,n){try{if(!(t in e))return()=>{};var r=e[t],i=n(r);return Ll(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}class JTe{constructor(t){var n;this._instance=t,this.vt=(ge==null||(n=ge.location)==null?void 0:n.pathname)||""}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&($e.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ct&&this.ct(),this.ct=void 0,$e.info("History API monitoring stopped")}monitorHistoryChanges(){var t,n;if(ge&&ge.history){var r=this;(t=ge.history.pushState)!=null&&t.__posthog_wrapped__||C2(ge.history,"pushState",(i=>function(s,o,a){i.call(this,s,o,a),r.ft("pushState")})),(n=ge.history.replaceState)!=null&&n.__posthog_wrapped__||C2(ge.history,"replaceState",(i=>function(s,o,a){i.call(this,s,o,a),r.ft("replaceState")})),this.gt()}}ft(t){try{var n,r=ge==null||(n=ge.location)==null?void 0:n.pathname;if(!r)return;r!==this.vt&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:t}),this.vt=r}catch(i){$e.error("Error capturing "+t+" pageview",i)}}
527gt(){if(!this.ct){var t=()=>{this.ft("popstate")};ni(ge,"popstate",t),this.ct=()=>{ge&&ge.removeEventListener("popstate",t)}}}}var YC=fi("[SegmentIntegration]");function QTe(e,t){var n=e.config.segment;if(!n)return t();(function(r,i){var s=r.config.segment;if(!s)return i();var o=l=>{var f=()=>l.anonymousId()||xl();r.config.get_device_id=f,l.id()&&(r.register({distinct_id:l.id(),$device_id:f()}),r.persistence.set_property(ic,"identified")),i()},a=s.user();"then"in a&&Ll(a.then)?a.then((l=>o(l))):o(a)})(e,(()=>{n.register((r=>{Promise&&Promise.resolve||YC.warn("This browser does not have Promise support, and can not use the segment integration");var i=(s,o)=>{if(!o)return s;s.event.userId||s.event.anonymousId===r.get_distinct_id()||(YC.info("No userId set, resetting PostHog"),r.reset()),s.event.userId&&s.event.userId!==r.get_distinct_id()&&(YC.info("UserId set, identifying with PostHog"),r.identify(s.event.userId));var a=r.calculateEventProperties(o,s.event.properties);return s.event.properties=Object.assign({},a,s.event.properties),s};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:s=>i(s,s.event.event),page:s=>i(s,"$pageview"),identify:s=>i(s,"$identify"),screen:s=>i(s,"$screen")}})(e)).then((()=>{t()}))}))}var s7="posthog-js";function o7(e,t){var{organization:n,projectId:r,prefix:i,severityAllowList:s=["error"],sendExceptionsToPostHog:o=!0}=t===void 0?{}:t;return a=>{var l,f,d,p,m;if(!(s==="*"||s.includes(a.level))||!e.__loaded)return a;a.tags||(a.tags={});var _=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());a.tags["PostHog Person URL"]=_,e.sessionRecordingStarted()&&(a.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var v=((l=a.exception)==null?void 0:l.values)||[],E=v.map((w=>We({},w,{stacktrace:w.stacktrace?We({},w.stacktrace,{type:"raw",frames:(w.stacktrace.frames||[]).map((T=>We({},T,{platform:"web:javascript"})))}):void 0}))),b={$exception_message:((f=v[0])==null?void 0:f.value)||a.message,$exception_type:(d=v[0])==null?void 0:d.type,$exception_level:a.level,$exception_list:E,$sentry_event_id:a.event_id,$sentry_exception:a.exception,$sentry_exception_message:((p=v[0])==null?void 0:p.value)||a.message,$sentry_exception_type:(m=v[0])==null?void 0:m.type,$sentry_tags:a.tags};return n&&r&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+a.event_id),o&&e.exceptions.sendExceptionEvent(b),a}}class e1e{constructor(t,n,r,i,s,o){this.name=s7,this.setupOnce=function(a){a(o7(t,{organization:n,projectId:r,prefix:i,severityAllowList:s,sendExceptionsToPostHog:o==null||o}))}}}var t1e=ge!=null&&ge.location?uE(ge.location.hash,"__posthog")||uE(location.hash,"state"):null,A2="_postHogToolbarParams",R2=fi("[Toolbar]"),gl=(function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e})(gl||{});class n1e{constructor(t){this.instance=t}_t(t){Et.ph_toolbar_state=t}yt(){var t;return(t=Et.ph_toolbar_state)!==null&&t!==void 0?t:gl.UNINITIALIZED}maybeLoadToolbar(t,n,r){if(t===void 0&&(t=void 0),n===void 0&&(n=void 0),r===void 0&&(r=void 0),!ge||!Pe)return!1;t=t??ge.location,r=r??ge.history;try{if(!n){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}n=ge?.localStorage}var i,s=t1e||uE(t.hash,"__posthog")||uE(t.hash,"state"),o=s?d2((()=>JSON.parse(atob(decodeURIComponent(s)))))||d2((()=>JSON.parse(decodeURIComponent(s)))):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState(r.state,"",t.pathname+t.search):t.hash="")):((i=JSON.parse(n.getItem(A2)||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.config.token!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}bt(t){var n=Et.ph_load_toolbar||Et.ph_load_editor;!dr(n)&&Ll(n)?n(t,this.instance):R2.warn("No toolbar load function found")}loadToolbar(t){var n=!(Pe==null||!Pe.getElementById(jq));if(!ge||n)return!1;var r=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,i=We({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},r?{instrument:!1}:{});if(ge.localStorage.setItem(A2,JSON.stringify(We({},i,{source:void 0}))),this.yt()===gl.LOADED)this.bt(i);else if(this.yt()===gl.UNINITIALIZED){var s;this._t(gl.LOADING),(s=Et.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this.instance,"toolbar",(o=>{if(o)return R2.error("[Toolbar] Failed to load",o),void this._t(gl.UNINITIALIZED);this._t(gl.LOADED),this.bt(i)})),ni(ge,"turbolinks:load",(()=>{this._t(gl.UNINITIALIZED),this.loadToolbar(i)}))}return!0}wt(t){return this.loadToolbar(t)}maybeLoadEditor(t,n,r){return t===void 0&&(t=void 0),n===void 0&&(n=void 0),r===void 0&&(r=void 0),this.maybeLoadToolbar(t,n,r)}}var r1e=fi("[TracingHeaders]");class i1e{constructor(t){this.xt=void 0,this.$t=void 0,this.rt=()=>{var n,r;Le(this.xt)&&((n=Et.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null||n._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),Le(this.$t)&&((r=Et.__PosthogExtensions__)==null||(r=r.tracingHeadersPatchFns)==null||r._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}it(t){var n,r;(n=Et.__PosthogExtensions__)!=null&&n.tracingHeadersPatchFns&&t(),(r=Et.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"tracing-headers",(i=>{if(i)return r1e.error("failed to load script",i);t()}))}startIfEnabledOrStop(){var t,n;this._instance.config.__add_tracing_headers?this.it(this.rt):((t=this.xt)==null||t.call(this),(n=this.$t)==null||n.call(this),this.xt=void 0,this.$t=void 0)}}var po="Mobile",dE="iOS",da="Android",v_="Tablet",a7=da+" "+v_,c7="iPad",l7="Apple",u7=l7+" Watch",y_="Safari",ep="BlackBerry",f7="Samsung",d7=f7+"Browser",h7=f7+" Internet",Lf="Chrome",s1e=Lf+" OS",p7=Lf+" "+dE,gN="Internet Explorer",g7=gN+" "+po,mN="Opera",o1e=mN+" Mini",_N="Edge",m7="Microsoft "+_N,Ah="Firefox",_7=Ah+" "+dE,b_="Nintendo",S_="PlayStation",Rh="Xbox",v7=da+" "+po,y7=p
vendor: 12,458 bytes, line 527
527o+" "+y_,bm="Windows",Vk=bm+" Phone",k2="Nokia",Gk="Ouya",b7="Generic",a1e=b7+" "+po.toLowerCase(),S7=b7+" "+v_.toLowerCase(),qk="Konqueror",Yi="(\\d+(\\.\\d+)?)",XC=new RegExp("Version/"+Yi),c1e=new RegExp(Rh,"i"),l1e=new RegExp(S_+" \\w+","i"),u1e=new RegExp(b_+" \\w+","i"),vN=new RegExp(ep+"|PlayBook|BB10","i"),f1e={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},d1e=(e,t)=>t&&Jt(t,l7)||(function(n){return Jt(n,y_)&&!Jt(n,Lf)&&!Jt(n,da)})(e),E7=function(e,t){return t=t||"",Jt(e," OPR/")&&Jt(e,"Mini")?o1e:Jt(e," OPR/")?mN:vN.test(e)?ep:Jt(e,"IE"+po)||Jt(e,"WPDesktop")?g7:Jt(e,d7)?h7:Jt(e,_N)||Jt(e,"Edg/")?m7:Jt(e,"FBIOS")?"Facebook "+po:Jt(e,"UCWEB")||Jt(e,"UCBrowser")?"UC Browser":Jt(e,"CriOS")?p7:Jt(e,"CrMo")||Jt(e,Lf)?Lf:Jt(e,da)&&Jt(e,y_)?v7:Jt(e,"FxiOS")?_7:Jt(e.toLowerCase(),qk.toLowerCase())?qk:d1e(e,t)?Jt(e,po)?y7:y_:Jt(e,Ah)?Ah:Jt(e,"MSIE")||Jt(e,"Trident/")?gN:Jt(e,"Gecko")?Ah:""},h1e={[g7]:[new RegExp("rv:"+Yi)],[m7]:[new RegExp(_N+"?\\/"+Yi)],[Lf]:[new RegExp("("+Lf+"|CrMo)\\/"+Yi)],[p7]:[new RegExp("CriOS\\/"+Yi)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Yi)],[y_]:[XC],[y7]:[XC],[mN]:[new RegExp("(Opera|OPR)\\/"+Yi)],[Ah]:[new RegExp(Ah+"\\/"+Yi)],[_7]:[new RegExp("FxiOS\\/"+Yi)],[qk]:[new RegExp("Konqueror[:/]?"+Yi,"i")],[ep]:[new RegExp(ep+" "+Yi),XC],[v7]:[new RegExp("android\\s"+Yi,"i")],[h7]:[new RegExp(d7+"\\/"+Yi)],[gN]:[new RegExp("(rv:|MSIE )"+Yi)],Mozilla:[new RegExp("rv:"+Yi)]},p1e=function(e,t){var n=E7(e,t),r=h1e[n];if(Le(r))return null;for(var i=0;i<r.length;i++){var s=r[i],o=e.match(s);if(o)return parseFloat(o[o.length-2])}return null},I2=[[new RegExp(Rh+"; "+Rh+" (.*?)[);]","i"),e=>[Rh,e&&e[1]||""]],[new RegExp(b_,"i"),[b_,""]],[new RegExp(S_,"i"),[S_,""]],[vN,[ep,""]],[new RegExp(bm,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Vk,""];if(new RegExp(po).test(t)&&!/IEMobile\b/.test(t))return[bm+" "+po,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=n[1],i=f1e[r]||"";return/arm/i.test(t)&&(i="RT"),[bm,i]}return[bm,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[dE,t.join(".")]}return[dE,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=Le(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+da+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+da+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[da,t.join(".")]}return[da,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];if(e&&e[1]){var n=[e[1],e[2],e[3]||"0"];t[1]=n.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[s1e,""]],[/Linux|debian/i,["Linux",""]]],O2=function(e){return u1e.test(e)?b_:l1e.test(e)?S_:c1e.test(e)?Rh:new RegExp(Gk,"i").test(e)?Gk:new RegExp("("+Vk+"|WPDesktop)","i").test(e)?Vk:/iPad/.test(e)?c7:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?u7:vN.test(e)?ep:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(k2,"i").test(e)?k2:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(po).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?da:a7:da:new RegExp("(pda|"+po+")","i").test(e)?a1e:new RegExp(v_,"i").test(e)&&!new RegExp(v_+" pc","i").test(e)?S7:""},Ob="https?://(.*)",$p=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],g1e=Pp(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],$p),Av="<masked>",m1e=["li_fat_id"];function w7(e,t,n){if(!Pe)return{};var r,i=t?Pp([],$p,n||[]):[],s=T7(Cv(Pe.URL,i,Av),e),o=(r={},er(m1e,(function(a){var l=ma.q(a);r[a]=l||null})),r);return Ur(o,s)}function T7(e,t){var n=g1e.concat(t||[]),r={};return er(n,(function(i){var s=lE(e,i);r[i]=s||null})),r}function x7(e){var t=(function(s){return s?s.search(Ob+"google.([^/?]*)")===0?"google":s.search(Ob+"bing.com")===0?"bing":s.search(Ob+"yahoo.com")===0?"yahoo":s.search(Ob+"duckduckgo.com")===0?"duckduckgo":null:null})(e),n=t!="yahoo"?"q":"p",r={};if(!Pc(t)){r.$search_engine=t;var i=Pe?lE(Pe.referrer,n):"";i.length&&(r.ph_keyword=i)}return r}function M2(){return navigator.language||navigator.userLanguage}function C7(){return Pe?.referrer||"$direct"}function A7(e,t){var n=e?Pp([],$p,t||[]):[],r=ys?.href.substring(0,1e3);return{r:C7().substring(0,1e3),u:r?Cv(r,n,Av):void 0}}function R7(e){var t,{r:n,u:r}=e,i={$referrer:n,$referring_domain:n==null?void 0:n=="$direct"?"$direct":(t=cE(n))==null?void 0:t.host};if(r){i.$current_url=r;var s=cE(r);i.$host=s?.host,i.$pathname=s?.pathname;var o=T7(r);Ur(i,o)}if(n){var a=x7(n);Ur(i,a)}return i}function k7(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function _1e(){try{return new Date().getTimezoneOffset()}catch{return}}function v1e(e,t){if(!vs)return{};var n,r,i,s=e?Pp([],$p,t||[]):[],[o,a]=(function(l){for(var f=0;f<I2.length;f++){var[d,p]=I2[f],m=d.exec(l),_=m&&(Ll(p)?p(m,l):p);if(_)return _}return["",""]})(vs);return Ur(fN({$os:o,$os_version:a,$browser:E7(vs,navigator.vendor),$device:O2(vs),$device_type:(r=vs,i=O2(r),i===c7||i===a7||i==="Kobo"||i==="Kindle Fire"||i===S7?v_:i===b_||i===Rh||i===S_||i===Gk?"Console":i===u7?"Wearable":i?po:"Desktop"),$timezone:k7(),$timezone_offset:_1e()}),{$current_url:Cv(ys?.href,s,Av),$host:ys?.host,$pathname:ys?.pathname,$raw_user_agent:vs.length>1e3?vs.substring(0,997)+"...":vs,$browser_version:p1e(vs,navigator.vendor),$browser_language:M2(),$browser_language_prefix:(n=M2(),typeof n=="string"?n.split("-")[0]:void 0),$screen_height:ge?.screen.height,$screen_width:ge?.screen.width,$viewport_height:ge?.innerHeight,$viewport_width:ge?.innerWidth,$lib:"web",$lib_version:rc.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}var fl=fi("[Web Vitals]"),N2=9e5;class y1e{constructor(t){var n;this.Et=!1,this.P=!1,this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.St=()=>{clearTimeout(this.kt),this.N.metrics.length!==0&&(this._instance.capture("$web_vitals",this.N.metrics.reduce(((r,i)=>We({},r,{["$web_vitals_"+i.name+"_event"]:We({},i),["$web_vitals_"+i.name+"_value"]:i.value})),{})),this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Pt=r=>{var i,s=(i=this._instance.sessionManager)==null?void 0:i.checkAndGetSessionAndWindowId(!0);if(Le(s))fl.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var o=this.Tt();Le(o)||(dr(r?.name)||dr(r?.value)?fl.error("Invalid metric received",r):this.It&&r.value>=this.It?fl.error("Ignoring metric with value >= "+this.It,r):(this.N.url!==o&&(this.St(),this.kt=setTimeout(this.St,this.flushToCaptureTimeoutMs)),Le(this.N.url)&&(this.N.url=o),this.N.firstMetricTimestamp=Le(this.N.firstMetricTimestamp)?Date.now():this.N.firstMetricTimestamp,r.attribution&&r.attribution.interactionTargetElement&&(r.attribution.interactionTargetElement=void 0),this.N.metrics.push(We({},r,{$current_url:o,$session_id:s.sessionId,$window_id:s.windowId,timestamp:Date.now()})),this.N.metrics.length===this.allowedMetrics.length&&this.St()))}},this.rt=()=>{var r,i,s,o,a=Et.__PosthogExtensions__;Le(a)||Le(a.postHogWebVitalsCallbacks)||({onLCP:r,onCLS:i,onFCP:s,onINP:o}=a.postHogWebVitalsCallbacks),r&&i&&s&&o?(this.allowedMetrics.indexOf("LCP")>-1&&r(this.Pt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&i(this.Pt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&s(this.Pt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&o(this.Pt.bind(this)),this.P=!0):fl.error("web vitals callbacks not loaded - not starting")},this._instance=t,this.Et=!((n=this._instance.persistence)==null||!n.props[m2]),this.startIfEnabled()}get allowedMetrics(){var t,n,r=Ti(this._instance.config.capture_performance)?(t=this._instance.config.capture_performance)==null?void 0:t.web_vitals_allowed_metrics:void 0;return Le(r)?((n=this._instance.persistence)==null?void 0:n.props[_2])||["CLS","FCP","INP","LCP"]:r}get flushToCaptureTimeoutMs(){return(Ti(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get It(){var t=Ti(this._instance.config.capture_performance)&&wa(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:N2;return 0<t&&t<=6e4?N2:t}get isEnabled(){var t=ys?.protocol;if(t!=="http:"&&t!=="https:")return fl.info("Web Vitals are disabled on non-http/https protocols"),!1;var n=Ti(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:Dl(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return Dl(n)?n:this.Et}startIfEnabled(){this.isEnabled&&!this.P&&(fl.info("enabled, starting..."),this.it(this.rt))}onRemoteConfig(t){var n=Ti(t.capturePerformance)&&!!t.capturePerformance.web_vitals,r=Ti(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[m2]:n}),this._instance.persistence.register({[_2]:r})),this.Et=n,this.startIfEnabled()}it(t){var n,r;(n=Et.__PosthogExtensions__)!=null&&n.postHogWebVitalsCallbacks&&t(),(r=Et.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"web-vitals",(i=>{i?fl.error("failed to load script",i):t()}))}Tt(){var t=ge?ge.location.href:void 0;if(t){var n=this._instance.config.mask_personal_data_properties,r=this._instance.config.custom_personal_data_properties,i=n?Pp([],$p,r||[]):[];return Cv(t,i,Av)}fl.error("Could not determine current URL")}}var b1e=fi("[Heatmaps]");function L2(e){return Ti(e)&&"clientX"in e&&"clientY"in e&&wa(e.clientX)&&wa(e.clientY)}class S1e{constructor(t){var n;this.Et=!1,this.P=!1,this.Rt=null,this.instance=t,this.Et=!((n=this.instance.persistence)==null||!n.props[Dk]),this.rageclicks=new n7(t.config.rageclick)}get flushIntervalMilliseconds(){var t=5e3;return Ti(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(t=this.instance.config.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return Le(this.instance.config.capture_heatmaps)?Le(this.instance.config.enable_heatmaps)?this.Et:this.instance.config.enable_heatmaps:this.instance.config.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.P)return;b1e.info("starting..."),this.Ft(),this.Ct()}else{var t;clearInterval((t=this.Rt)!==null&&t!==void 0?t:void 0),this.Ot(),this.getAndClearBuffer()}}onRemoteConfig(t){var n=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Dk]:n}),this.Et=n,this.startIfEnabled()}getAndClearBuffer(){var t=this.N;return this.N=void 0,t}Mt(t){this.At(t.originalEvent,"deadclick")}Ct(){this.Rt&&clearInterval(this.Rt),this.Rt=(function(t){return t?.visibilityState==="visible"})(Pe)?setInterval(this.Dt.bind(this),this.flushIntervalMilliseconds):null}Ft(){ge&&Pe&&(this.jt=this.Dt.bind(this),ni(ge,"beforeunload",this.jt),this.Lt=t=>this.At(t||ge?.event),ni(Pe,"click",this.Lt,{capture:!0}),this.Nt=t=>this.Ut(t||ge?.event),ni(Pe,"mousemove",this.Nt,{capture:!0}),this.zt=new i7(this.instance,XTe,this.Mt.bind(this)),this.zt.startIfEnabled(),this.Ht=this.Ct.bind(this),ni(Pe,"visibilitychange",this.Ht),this.P=!0)}Ot(){var t;ge&&Pe&&(this.jt&&ge.removeEventListener("beforeunload",this.jt),this.Lt&&Pe.removeEventListener("click",this.Lt,{capture:!0}),this.Nt&&Pe.removeEventListener("mousemove",this.Nt,{capture:!0}),this.Ht&&Pe.removeEventListener("visibilitychange",this.Ht),clearTimeout(this.Bt),(t=this.zt)==null||t.stop(),this.P=!1)}qt(t,n){var r=this.instance.scrollManager.scrollY(),i=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),o=(function(a,l,f){for(var d=a;d&&Gw(d)&&!$l(d,"body");){if(d===f)return!1;if(Jt(l,ge?.getComputedStyle(d).position))return!0;d=Xq(d)}return!1})(Wq(t),["fixed","sticky"],s);return{x:t.clientX+(o?0:i),y:t.clientY+(o?0:r),target_fixed:o,type:n}}At(t,n){var r;
527if(n===void 0&&(n="click"),!v2(t.target)&&L2(t)){var i=this.qt(t,n);(r=this.rageclicks)!=null&&r.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.Wt(We({},i,{type:"rageclick"})),this.Wt(i)}}Ut(t){!v2(t.target)&&L2(t)&&(clearTimeout(this.Bt),this.Bt=setTimeout((()=>{this.Wt(this.qt(t,"mousemove"))}),500))}Wt(t){if(ge){var n=ge.location.href,r=this.instance.config.mask_personal_data_properties,i=this.instance.config.custom_personal_data_properties,s=r?Pp([],$p,i||[]):[],o=Cv(n,s,Av);this.N=this.N||{},this.N[o]||(this.N[o]=[]),this.N[o].push(t)}}Dt(){this.N&&!fh(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class E1e{constructor(t){this._instance=t}doPageView(t,n){var r,i=this.Gt(t,n);return this.Vt={pathname:(r=ge?.location.pathname)!==null&&r!==void 0?r:"",pageViewId:n,timestamp:t},this._instance.scrollManager.resetContext(),i}doPageLeave(t){var n;return this.Gt(t,(n=this.Vt)==null?void 0:n.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.Vt)==null?void 0:t.pageViewId}}Gt(t,n){var r=this.Vt;if(!r)return{$pageview_id:n};var i={$pageview_id:n,$prev_pageview_id:r.pageViewId},s=this._instance.scrollManager.getContext();if(s&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:a,maxScrollY:l,maxContentHeight:f,lastContentY:d,maxContentY:p}=s;if(!(Le(o)||Le(a)||Le(l)||Le(f)||Le(d)||Le(p))){o=Math.ceil(o),a=Math.ceil(a),l=Math.ceil(l),f=Math.ceil(f),d=Math.ceil(d),p=Math.ceil(p);var m=o<=1?1:fa(a/o,0,1,$e),_=o<=1?1:fa(l/o,0,1,$e),v=f<=1?1:fa(d/f,0,1,$e),E=f<=1?1:fa(p/f,0,1,$e);i=Ur(i,{$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:m,$prev_pageview_max_scroll:l,$prev_pageview_max_scroll_percentage:_,$prev_pageview_last_content:d,$prev_pageview_last_content_percentage:v,$prev_pageview_max_content:p,$prev_pageview_max_content_percentage:E})}}return r.pathname&&(i.$prev_pageview_pathname=r.pathname),r.timestamp&&(i.$prev_pageview_duration=(t.getTime()-r.timestamp.getTime())/1e3),i}}var go=Uint8Array,Ss=Uint16Array,tp=Uint32Array,yN=new go([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,0,0,0]),bN=new go([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,0,0]),D2=new go([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),I7=function(e,t){for(var n=new Ss(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new tp(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)i[s]=s-n[r]<<5|r;return[n,i]},O7=I7(yN,2),w1e=O7[0],Wk=O7[1];w1e[28]=258,Wk[258]=28;for(var P2=I7(bN,0)[1],M7=new Ss(32768),hr=0;hr<32768;++hr){var Hu=(43690&hr)>>>1|(21845&hr)<<1;Hu=(61680&(Hu=(52428&Hu)>>>2|(13107&Hu)<<2))>>>4|(3855&Hu)<<4,M7[hr]=((65280&Hu)>>>8|(255&Hu)<<8)>>>1}var $m=function(e,t,n){for(var r=e.length,i=0,s=new Ss(t);i<r;++i)++s[e[i]-1];var o,a=new Ss(t);for(i=0;i<t;++i)a[i]=a[i-1]+s[i-1]<<1;for(o=new Ss(r),i=0;i<r;++i)o[i]=M7[a[e[i]-1]++]>>>15-e[i];return o},Df=new go(288);for(hr=0;hr<144;++hr)Df[hr]=8;for(hr=144;hr<256;++hr)Df[hr]=9;for(hr=256;hr<280;++hr)Df[hr]=7;for(hr=280;hr<288;++hr)Df[hr]=8;var hE=new go(32);for(hr=0;hr<32;++hr)hE[hr]=5;var T1e=$m(Df,9),x1e=$m(hE,5),N7=function(e){return(e/8>>0)+(7&e&&1)},L7=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof Ss?Ss:e instanceof tp?tp:go)(n-t);return r.set(e.subarray(t,n)),r},Ka=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},Xg=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},KC=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,s=n.slice();if(!i)return[new go(0),0];if(i==1){var o=new go(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort((function(k,M){return k.f-M.f})),n.push({s:-1,f:25001});var a=n[0],l=n[1],f=0,d=1,p=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};d!=i-1;)a=n[n[f].f<n[p].f?f++:p++],l=n[f!=d&&n[f].f<n[p].f?f++:p++],n[d++]={s:-1,f:a.f+l.f,l:a,r:l};var m=s[0].s;for(r=1;r<i;++r)s[r].s>m&&(m=s[r].s);var _=new Ss(m+1),v=Yk(n[d-1],_,0);if(v>t){r=0;var E=0,b=v-t,w=1<<b;for(s.sort((function(k,M){return _[M.s]-_[k.s]||k.f-M.f}));r<i;++r){var T=s[r].s;if(!(_[T]>t))break;E+=w-(1<<v-_[T]),_[T]=t}for(E>>>=b;E>0;){var R=s[r].s;
vendor: 5,547 bytes, lines 527-529
527_[R]<t?E-=1<<t-_[R]++-1:++r}for(;r>=0&&E;--r){var C=s[r].s;_[C]==t&&(--_[C],++E)}v=t}return[new go(_),v]},Yk=function(e,t,n){return e.s==-1?Math.max(Yk(e.l,t,n+1),Yk(e.r,t,n+1)):t[e.s]=n},$2=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Ss(++t),r=0,i=e[0],s=1,o=function(l){n[r++]=l},a=1;a<=t;++a)if(e[a]==i&&a!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=e[a]}return[n.subarray(0,r),t]},Kg=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},Xk=function(e,t,n){var r=n.length,i=N7(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var s=0;s<r;++s)e[i+s+4]=n[s];return 8*(i+4+r)},F2=function(e,t,n,r,i,s,o,a,l,f,d){Ka(t,d++,n),++i[256];for(var p=KC(i,15),m=p[0],_=p[1],v=KC(s,15),E=v[0],b=v[1],w=$2(m),T=w[0],R=w[1],C=$2(E),k=C[0],M=C[1],I=new Ss(19),$=0;$<T.length;++$)I[31&T[$]]++;for($=0;$<k.length;++$)I[31&k[$]]++;for(var Q=KC(I,7),V=Q[0],N=Q[1],U=19;U>4&&!V[D2[U-1]];--U);var K,j,fe,P,ee=f+5<<3,W=Kg(i,Df)+Kg(s,hE)+o,de=Kg(i,m)+Kg(s,E)+o+14+3*U+Kg(I,V)+(2*I[16]+3*I[17]+7*I[18]);if(ee<=W&&ee<=de)return Xk(t,d,e.subarray(l,l+f));if(Ka(t,d,1+(de<W)),d+=2,de<W){K=$m(m,_),j=m,fe=$m(E,b),P=E;var ce=$m(V,N);for(Ka(t,d,R-257),Ka(t,d+5,M-1),Ka(t,d+10,U-4),d+=14,$=0;$<U;++$)Ka(t,d+3*$,V[D2[$]]);d+=3*U;for(var L=[T,k],J=0;J<2;++J){var re=L[J];for($=0;$<re.length;++$){var me=31&re[$];Ka(t,d,ce[me]),d+=V[me],me>15&&(Ka(t,d,re[$]>>>5&127),d+=re[$]>>>12)}}}else K=T1e,j=Df,fe=x1e,P=hE;for($=0;$<a;++$)if(r[$]>255){me=r[$]>>>18&31,Xg(t,d,K[me+257]),d+=j[me+257],me>7&&(Ka(t,d,r[$]>>>23&31),d+=yN[me]);var be=31&r[$];Xg(t,d,fe[be]),d+=P[be],be>3&&(Xg(t,d,r[$]>>>5&8191),d+=bN[be])}else Xg(t,d,K[r[$]]),d+=j[r[$]];return Xg(t,d,K[256]),d+j[256]},C1e=new tp([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),A1e=(function(){for(var e=new tp(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e})(),R1e=function(e,t,n,r,i){return(function(s,o,a,l,f,d){var p=s.length,m=new go(l+p+5*(1+Math.floor(p/7e3))+f),_=m.subarray(l,m.length-f),v=0;if(!o||p<8)for(var E=0;E<=p;E+=65535){var b=E+65535;b<p?v=Xk(_,v,s.subarray(E,b)):(_[E]=d,v=Xk(_,v,s.subarray(E,p)))}else{for(var w=C1e[o-1],T=w>>>13,R=8191&w,C=(1<<a)-1,k=new Ss(32768),M=new Ss(C+1),I=Math.ceil(a/3),$=2*I,Q=function(rn){return(s[rn]^s[rn+1]<<I^s[rn+2]<<$)&C},V=new tp(25e3),N=new Ss(288),U=new Ss(32),K=0,j=0,fe=(E=0,0),P=0,ee=0;E<p;++E){var W=Q(E),de=32767&E,ce=M[W];if(k[de]=ce,M[W]=de,P<=E){var L=p-E;if((K>7e3||fe>24576)&&L>423){v=F2(s,_,0,V,N,U,j,fe,ee,E-ee,v),fe=K=j=0,ee=E;for(var J=0;J<286;++J)N[J]=0;for(J=0;J<30;++J)U[J]=0}var re=2,me=0,be=R,Ee=de-ce&32767;if(L>2&&W==Q(E-Ee))for(var Fe=Math.min(T,L)-1,Be=Math.min(32767,E),dt=Math.min(258,L);Ee<=Be&&--be&&de!=ce;){if(s[E+re]==s[E+re-Ee]){for(var pt=0;pt<dt&&s[E+pt]==s[E+pt-Ee];++pt);if(pt>re){if(re=pt,me=Ee,pt>Fe)break;var Hn=Math.min(Ee,pt-2),Lr=0;for(J=0;J<Hn;++J){var jn=E-Ee+J+32768&32767,tt=jn-k[jn]+32768&32767;tt>Lr&&(Lr=tt,ce=jn)}}}Ee+=(de=ce)-(ce=k[de])+32768&32767}if(me){V[fe++]=268435456|Wk[re]<<18|P2[me];var mt=31&Wk[re],vn=31&P2[me];j+=yN[mt]+bN[vn],++N[257+mt],++U[vn],P=E+re,++K}else V[fe++]=s[E],++N[s[E]]}}v=F2(s,_,d,V,N,U,j,fe,ee,E-ee,v)}return L7(m,0,l+N7(v)+f)})(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!0)},ZC=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function k1e(e,t){t===void 0&&(t={});var n=(function(){var a=4294967295;return{p:function(l){for(var f=a,d=0;d<l.length;++d)f=A1e[255&f^l[d]]^f>>>8;a=f},d:function(){return 4294967295^a}}})(),r=e.length;n.p(e);var i,s=R1e(e,t,10+((i=t).filename&&i.filename.length+1||0),8),o=s.length;return(function(a,l){var f=l.filename;if(a[0]=31,a[1]=139,a[2]=8,a[8]=l.level<2?4:l.level==9?2:0,a[9]=3,l.mtime!=0&&ZC(a,4,Math.floor(new Date(l.mtime||Date.now())/1e3)),f){a[3]=8;for(var d=0;d<=f.length;++d)a[d+10]=f.charCodeAt(d)}})(s,t),ZC(s,o-8,n.d()),ZC(s,o-4,r),s}var I1e=function(e){var t,n,r,i,s="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,`
528`).replace(/\r/g,`
529`)).length,i=0;i<r;i++){var o=e.charCodeAt(i),a=null;o<128?n++:a=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),Pc(a)||(n>t&&(s+=e.substring(t,n)),s+=a,t=n=i+1)}return n>t&&(s+=e.substring(t,e.length)),s},O1e=!!Ik||!!kk,U2="text/plain",pE=function(e,t,n){var r;n===void 0&&(n=!0);var[i,s]=e.split("?"),o=We({},t),a=(r=s?.split("&").map((f=>{var d,[p,m]=f.split("="),_=n&&(d=o[p])!==null&&d!==void 0?d:m;return delete o[p],p+"="+_})))!==null&&r!==void 0?r:[],l=PTe(o);return l&&a.push(l),i+"?"+a.join("&")},Sm=(e,t)=>JSON.stringify(e,((n,r)=>typeof r=="bigint"?r.toString():r),t),JC=e=>{var{data:t,compression:n}=e;if(t){if(n===cc.GZipJS){var r=k1e((function(l,f){var d=l.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(l);for(var p=new go(l.length+(l.length>>>1)),m=0,_=function(w){p[m++]=w},v=0;v<d;++v){if(m+5>p.length){var E=new go(m+8+(d-v<<1));E.set(p),p=E}var b=l.charCodeAt(v);b<128||f?_(b):b<2048?(_(192|b>>>6),_(128|63&b)):b>55295&&b<57344?(_(240|(b=65536+(1047552&b)|1023&l.charCodeAt(++v))>>>18),_(128|b>>>12&63),_(128|b>>>6&63),_(128|63&b)):(_(224|b>>>12),_(128|b>>>6&63),_(128|63&b))}return L7(p,0,m)})(Sm(t)),{mtime:0}),i=new Blob([r],{type:U2});return{contentType:U2,body:i,estimatedSize:i.size}}if(n===cc.Base64){var s=(function(l){var f,d,p,m,_,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
529+/=",E=0,b=0,w="",T=[];if(!l)return l;l=I1e(l);do f=(_=l.charCodeAt(E++)<<16|l.charCodeAt(E++)<<8|l.charCodeAt(E++))>>18&63,d=_>>12&63,p=_>>6&63,m=63&_,T[b++]=v.charAt(f)+v.charAt(d)+v.charAt(p)+v.charAt(m);while(E<l.length);switch(w=T.join(""),l.length%3){case 1:w=w.slice(0,-2)+"==";break;case 2:w=w.slice(0,-1)+"="}return w})(Sm(t)),o=(l=>"data="+encodeURIComponent(typeof l=="string"?l:Sm(l)))(s);return{contentType:"application/x-www-form-urlencoded",body:o,estimatedSize:new Blob([o]).size}}var a=Sm(t);return{contentType:"application/json",body:a,estimatedSize:new Blob([a]).size}}},XS=[];kk&&XS.push({transport:"fetch",method:e=>{var t,n,{contentType:r,body:i,estimatedSize:s}=(t=JC(e))!==null&&t!==void 0?t:{},o=new Headers;er(e.headers,(function(d,p){o.append(p,d)})),r&&o.append("Content-Type",r);var a=e.url,l=null;if(i2){var f=new i2;l={signal:f.signal,timeout:setTimeout((()=>f.abort()),e.timeout)}}kk(a,We({method:e?.method||"GET",headers:o,keepalive:e.method==="POST"&&(s||0)<52428.8,body:i,signal:(n=l)==null?void 0:n.signal},e.fetchOptions)).then((d=>d.text().then((p=>{var m={statusCode:d.status,text:p};if(d.status===200)try{m.json=JSON.parse(p)}catch(_){$e.error(_)}e.callback==null||e.callback(m)})))).catch((d=>{$e.error(d),e.callback==null||e.callback({statusCode:0,text:d})})).finally((()=>l?clearTimeout(l.timeout):null))}}),Ik&&XS.push({transport:"XHR",method:e=>{var t,n=new Ik;n.open(e.method||"GET",e.url,!0);var{contentType:r,body:i}=(t=JC(e))!==null&&t!==void 0?t:{};er(e.headers,(function(s,o){n.setRequestHeader(o,s)})),r&&n.setRequestHeader("Content-Type",r),e.timeout&&(n.timeout=e.timeout),e.disableXHRCredentials||(n.withCredentials=!0),n.onreadystatechange=()=>{if(n.readyState===4){var s={statusCode:n.status,text:n.responseText};if(n.status===200)try{s.json=JSON.parse(n.responseText)}catch{}e.callback==null||e.callback(s)}},n.send(i)}}),Fs!=null&&Fs.sendBeacon&&XS.push({transport:"sendBeacon",method:e=>{var t=pE(e.url,{beacon:"1"});try{var n,{contentType:r,body:i}=(n=JC(e))!==null&&n!==void 0?n:{},s=typeof i=="string"?new Blob([i],{type:r}):i;Fs.sendBeacon(t,s)}catch{}}});var np=function(e,t){if(!(function(n){try{new RegExp(n)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function B2(e,t,n){return Sm({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var D7={exact:(e,t)=>t.some((n=>e.some((r=>n===r)))),is_not:(e,t)=>t.every((n=>e.every((r=>n!==r)))),regex:(e,t)=>t.some((n=>e.some((r=>np(n,r))))),not_regex:(e,t)=>t.every((n=>e.every((r=>!np(n,r))))),icontains:(e,t)=>t.map(Mb).some((n=>e.map(Mb).some((r=>n.includes(r))))),not_icontains:(e,t)=>t.map(Mb).every((n=>e.map(Mb).every((r=>!n.includes(r)))))},Mb=e=>e.toLowerCase(),QC=fi("[Error tracking]");class M1e{constructor(t){var n,r;this.Jt=[],this.Kt=new nTe([new fTe,new bTe,new hTe,new dTe,new vTe,new _Te,new gTe,new yTe],uTe("web:javascript",oTe,lTe)),this._instance=t,this.Jt=(n=(r=this._instance.persistence)==null?void 0:r.get_property(Pk))!==null&&n!==void 0?n:[]}onRemoteConfig(t){var n,r,i,s=(n=(r=t.errorTracking)==null?void 0:r.suppressionRules)!==null&&n!==void 0?n:[],o=(i=t.errorTracking)==null?void 0:i.captureExtensionExceptions;this.Jt=s,this._instance.persistence&&this._instance.persistence.register({[Pk]:this.Jt,[g2]:o})}get Yt(){var t,n=!!this._instance.get_property(g2),r=this._instance.config.error_tracking.captureExtensionExceptions;return(t=r??n)!==null&&t!==void 0&&t}buildProperties(t,n){return this.Kt.buildFromUnknown(t,{syntheticException:n?.syntheticException,mechanism:{handled:n?.handled}})}sendExceptionEvent(t){var n=t.$exception_list;
vendor: 12,336 bytes, line 529
529if(this.Xt(n)){if(this.Qt(n))return void QC.info("Skipping exception capture because a suppression rule matched");if(!this.Yt&&this.Zt(n))return void QC.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ti(n))return void QC.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",t,{_noTruncate:!0,_batchKey:"exceptionEvent"})}Qt(t){if(t.length===0)return!1;var n=t.reduce(((r,i)=>{var{type:s,value:o}=i;return ai(s)&&s.length>0&&r.$exception_types.push(s),ai(o)&&o.length>0&&r.$exception_values.push(o),r}),{$exception_types:[],$exception_values:[]});return this.Jt.some((r=>{var i=r.values.map((s=>{var o,a=D7[s.operator],l=tr(s.value)?s.value:[s.value],f=(o=n[s.key])!==null&&o!==void 0?o:[];return l.length>0&&a(l,f)}));return r.type==="OR"?i.some(Boolean):i.every(Boolean)}))}Zt(t){return t.flatMap((n=>{var r,i;return(r=(i=n.stacktrace)==null?void 0:i.frames)!==null&&r!==void 0?r:[]})).some((n=>n.filename&&n.filename.startsWith("chrome-extension://")))}ti(t){if(t.length>0){var n,r,i,s,o=(n=(r=t[0].stacktrace)==null?void 0:r.frames)!==null&&n!==void 0?n:[],a=o[o.length-1];return(i=a==null||(s=a.filename)==null?void 0:s.includes("posthog.com/static"))!==null&&i!==void 0&&i}return!1}Xt(t){return!dr(t)&&tr(t)}}var ko=fi("[FeatureFlags]"),Zg=fi("[FeatureFlags]",{debugEnabled:!0}),eA="$active_feature_flags",Hd="$override_feature_flags",z2="$feature_flag_payloads",Jg="$override_feature_flag_payloads",H2="$feature_flag_request_id",j2=e=>{var t={};for(var[n,r]of YS(e||{}))r&&(t[n]=r);return t},N1e=e=>{var t=e.flags;return t?(e.featureFlags=Object.fromEntries(Object.keys(t).map((n=>{var r;return[n,(r=t[n].variant)!==null&&r!==void 0?r:t[n].enabled]}))),e.featureFlagPayloads=Object.fromEntries(Object.keys(t).filter((n=>t[n].enabled)).filter((n=>{var r;return(r=t[n].metadata)==null?void 0:r.payload})).map((n=>{var r;return[n,(r=t[n].metadata)==null?void 0:r.payload]})))):ko.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e},L1e=(function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e})({});class D1e{constructor(t){this.ii=!1,this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this._instance=t,this.featureFlagEventHandlers=[]}li(){var t=this._instance.config.evaluation_environments;return t!=null&&t.length?t.filter((n=>{var r=n&&typeof n=="string"&&n.trim().length>0;return r||ko.error("Invalid evaluation environment found:",n,"Expected non-empty string"),r})):[]}ui(){return this.li().length>0}flags(){if(this._instance.config.__preview_remote_config)this.oi=!0;else{var t=!this.hi&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.di({disableFlags:t})}}get hasLoadedFlags(){return this.ei}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this._instance.get_property($k),n=this._instance.get_property(Hd),r=this._instance.get_property(Jg);if(!r&&!n)return t||{};var i=Ur({},t||{}),s=[...new Set([...Object.keys(r||{}),...Object.keys(n||{})])];for(var o of s){var a,l,f=i[o],d=n?.[o],p=Le(d)?(a=f?.enabled)!==null&&a!==void 0&&a:!!d,m=Le(d)?f.variant:typeof d=="string"?d:void 0,_=r?.[o],v=We({},f,{enabled:p,variant:p?m??f?.variant:void 0});p!==f?.enabled&&(v.original_enabled=f?.enabled),m!==f?.variant&&(v.original_variant=f?.variant),_&&(v.metadata=We({},f?.metadata,{payload:_,original_payload:f==null||(l=f.metadata)==null?void 0:l.payload})),i[o]=v}return this.ii||(ko.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:r,finalDetails:i}),this.ii=!0),i}getFlagVariants(){var t=this._instance.get_property(dh),n=this._instance.get_property(Hd);if(!n)return t||{};for(var r=Ur({},t),i=Object.keys(n),s=0;s<i.length;s++)r[i[s]]=n[i[s]];return this.ii||(ko.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:n,finalFlags:r}),this.ii=!0),r}getFlagPayloads(){var t=this._instance.get_property(z2),n=this._instance.get_property(Jg);if(!n)return t||{};for(var r=Ur({},t||{}),i=Object.keys(n),s=0;s<i.length;s++)r[i[s]]=n[i[s]];return this.ii||(ko.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:n,finalPayloads:r}),this.ii=!0),r}reloadFeatureFlags(){this.si||this._instance.config.advanced_disable_feature_flags||this.hi||(this.hi=setTimeout((()=>{this.di()}),5))}vi(){clearTimeout(this.hi),this.hi=void 0}ensureFlagsLoaded(){this.ei||this.ri||this.hi||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.si=t}di(t){var n;if(this.vi(),!this._instance.M())if(this.ri)this.ni=!0;else{var r={token:this._instance.config.token,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:We({},((n=this._instance.persistence)==null?void 0:n.get_initial_props())||{},this._instance.get_property(ym)||{}),group_properties:this._instance.get_property(Ku)};(t!=null&&t.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(r.disable_flags=!0),this.ui()&&(r.evaluation_environments=this.li());var i=this._instance.config.__preview_remote_config,s=i?"/flags/?v=2":"/flags/?v=2&config=true",o=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",a=this._instance.requestRouter.endpointFor("flags",s+o);i&&(r.timezone=k7()),this.ri=!0,this._instance.ci({method:"POST",url:a,data:r,compression:this._instance.config.disable_compression?void 0:cc.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:l=>{var f,d,p=!0;if(l.statusCode===200&&(this.ni||(this.$anon_distinct_id=void 0),p=!1),this.ri=!1,this.oi||(this.oi=!0,this._instance.fi((d=l.json)!==null&&d!==void 0?d:{})),!r.disable_flags||this.ni)if(this.ai=!p,l.json&&(f=l.json.quotaLimited)!=null&&f.includes(L1e.FeatureFlags))ko.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset.  Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");else{var m;r.disable_flags||this.receivedFeatureFlags((m=l.json)!==null&&m!==void 0?m:{},p),this.ni&&(this.ni=!1,this.di())}}})}}getFeatureFlag(t,n){if(n===void 0&&(n={}),this.ei||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],i=""+r,s=this._instance.get_property(H2)||void 0,o=this._instance.get_property(iE)||{};if((n.send_event||!("send_event"in n))&&(!(t in o)||!o[t].includes(i))){var a,l,f,d,p,m,_,v,E;tr(o[t])?o[t].push(i):o[t]=[i],(a=this._instance.persistence)==null||a.register({[iE]:o});var b=this.getFeatureFlagDetails(t),w={$feature_flag:t,$feature_flag_response:r,$feature_flag_payload:this.getFeatureFlagPayload(t)||null,$feature_flag_request_id:s,$feature_flag_bootstrapped_response:((l=this._instance.config.bootstrap)==null||(l=l.featureFlags)==null?void 0:l[t])||null,$feature_flag_bootstrapped_payload:((f=this._instance.config.bootstrap)==null||(f=f.featureFlagPayloads)==null?void 0:f[t])||null,$used_bootstrap_value:!this.ai};Le(b==null||(d=b.metadata)==null?void 0:d.version)||(w.$feature_flag_version=b.metadata.version);var T,R=(p=b==null||(m=b.reason)==null?void 0:m.description)!==null&&p!==void 0?p:b==null||(_=b.reason)==null?void 0:_.code;R&&(w.$feature_flag_reason=R),b!=null&&(v=b.metadata)!=null&&v.id&&(w.$feature_flag_id=b.metadata.id),Le(b?.original_variant)&&Le(b?.original_enabled)||(w.$feature_flag_original_response=Le(b.original_variant)?b.original_enabled:b.original_variant),b!=null&&(E=b.metadata)!=null&&E.original_payload&&(w.$feature_flag_original_payload=b==null||(T=b.metadata)==null?void 0:T.original_payload),this._instance.capture("$feature_flag_called",w)}return r}ko.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){return this.getFlagPayloads()[t]}getRemoteConfigPayload(t,n){var r=this._instance.config.token,i={distinct_id:this._instance.get_distinct_id(),token:r};this.ui()&&(i.evaluation_environments=this.li()),this._instance.ci({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2&config=true"),data:i,compression:this._instance.config.disable_compression?void 0:cc.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:s=>{var o,a=(o=s.json)==null?void 0:o.featureFlagPayloads;n(a?.[t]||void 0)}})}isFeatureEnabled(t,n){if(n===void 0&&(n={}),this.ei||this.getFlags()&&this.getFlags().length>0){var r=this.getFeatureFlag(t,n);return Le(r)?void 0:!!r}ko.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((n=>n!==t))}receivedFeatureFlags(t,n){if(this._instance.persistence){this.ei=!0;var r=this.getFlagVariants(),i=this.getFlagPayloads(),s=this.getFlagsWithDetails();(function(o,a,l,f,d){l===void 0&&(l={}),f===void 0&&(f={}),d===void 0&&(d={});var p=N1e(o),m=p.flags,_=p.featureFlags,v=p.featureFlagPayloads;if(_){var E=o.requestId;if(tr(_)){ko.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var b={};if(_)for(var w=0;w<_.length;w++)b[_[w]]=!0;a&&a.register({[eA]:_,[dh]:b})}else{var T=_,R=v,C=m;o.errorsWhileComputingFlags&&(T=We({},l,T),R=We({},f,R),C=We({},d,C)),a&&a.register(We({[eA]:Object.keys(j2(T)),[dh]:T||{},[z2]:R||{},[$k]:C||{}},E?{[H2]:E}:{}))}}})(t,this._instance.persistence,r,i,s),this.pi(n)}}override(t,n){n===void 0&&(n=!1),ko.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:n})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this._instance.persistence)return ko.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this._instance.persistence.unregister(Hd),this._instance.persistence.unregister(Jg),this.pi(),Zg.info("All overrides cleared");if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var n,r=t;if(this.ii=!!((n=r.suppressWarning)!==null&&n!==void 0&&n),"flags"in r){if(r.flags===!1)this._instance.persistence.unregister(Hd),Zg.info("Flag overrides cleared");else if(r.flags){if(tr(r.flags)){for(var i={},s=0;s<r.flags.length;s++)i[r.flags[s]]=!0;this._instance.persistence.register({[Hd]:i})}else this._instance.persistence.register({[Hd]:r.flags});Zg.info("Flag overrides set",{flags:r.flags})}}return"payloads"in r&&(r.payloads===!1?(this._instance.persistence.unregister(Jg),Zg.info("Payload overrides cleared")):r.payloads&&(this._instance.persistence.register({[Jg]:r.payloads}),Zg.info("Payload overrides set",{payloads:r.payloads}))),void this.pi()}this.pi()}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.ei){var{flags:n,flagVariants:r}=this.gi();t(n,r)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,n,r){var i,s=(this._instance.get_property(vm)||[]).find((f=>f.flagKey===t)),o={["$feature_enrollment/"+t]:n},a={$feature_flag:t,$feature_enrollment:n,$set:o};s&&(a.$early_access_feature_name=s.name),r&&(a.$feature_enrollment_stage=r),this._instance.capture("$feature_enrollment_update",a),this.setPersonPropertiesForFlags(o,!1);var l=We({},this.getFlagVariants(),{[t]:n});(i=this._instance.persistence)==null||i.register({[eA]:Object.keys(j2(l)),[dh]:l}),this.pi()}getEarlyAccessFeatures(t,n,r){n===void 0&&(n=!1);var i=this._instance.get_property(vm),s=r?"&"+r.map((o=>"stage="+o)).join("&"):"";if(i&&!n)return t(i);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+s),method:"GET",callback:o=>{var a,l;if(o.json){var f=o.json.earlyAccessFeatures;return(a=this._instance.persistence)==null||a.unregister(vm),(l=this._instance.persistence)==null||l.register({[vm]:f}),t(f)}}})}gi(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter((r=>n[r])),flagVariants:Object.keys(n).filter((r=>n[r])).reduce(((r,i)=>(r[i]=n[i],r)),{})}}pi(t){var{flags:n,flagVariants:r}=this.gi();
529this.featureFlagEventHandlers.forEach((i=>i(n,r,{errorsLoading:t})))}setPersonPropertiesForFlags(t,n){n===void 0&&(n=!0);var r=this._instance.get_property(ym)||{};this._instance.register({[ym]:We({},r,t)}),n&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(ym)}setGroupPropertiesForFlags(t,n){n===void 0&&(n=!0);var r=this._instance.get_property(Ku)||{};Object.keys(r).length!==0&&Object.keys(r).forEach((i=>{r[i]=We({},r[i],t[i]),delete t[i]})),this._instance.register({[Ku]:We({},r,t)}),n&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var n=this._instance.get_property(Ku)||{};this._instance.register({[Ku]:We({},n,{[t]:{}})})}else this._instance.unregister(Ku)}reset(){this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this.$anon_distinct_id=void 0,this.vi(),this.ii=!1}}var P1e=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class tA{constructor(t,n){this.F=t,this.props={},this.mi=!1,this.yi=(r=>{var i="";return r.token&&(i=r.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),r.persistence_name?"ph_"+r.persistence_name:"ph_"+i+"_posthog"})(t),this.Y=this.bi(t),this.load(),t.debug&&$e.info("Persistence loaded",t.persistence,We({},this.props)),this.update_config(t,t,n),this.save()}isDisabled(){return!!this.wi}bi(t){P1e.indexOf(t.persistence.toLowerCase())===-1&&($e.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var n=t.persistence.toLowerCase();return n==="localstorage"&&wr.H()?wr:n==="localstorage+cookie"&&Rb.H()?Rb:n==="sessionstorage"&&wi.H()?wi:n==="memory"?WTe:n==="cookie"?ma:Rb.H()?Rb:ma}properties(){var t={};return er(this.props,(function(n,r){if(r===dh&&Ti(n))for(var i=Object.keys(n),s=0;s<i.length;s++)t["$feature/"+i[s]]=n[i[s]];else a=r,l=!1,(Pc(o=CTe)?l:r2&&o.indexOf===r2?o.indexOf(a)!=-1:(er(o,(function(f){if(l||(l=f===a))return nE})),l))||(t[r]=n);var o,a,l})),t}load(){if(!this.wi){var t=this.Y.W(this.yi);t&&(this.props=Ur({},t))}}save(){this.wi||this.Y.G(this.yi,this.props,this.xi,this.$i,this.Ei,this.F.debug)}remove(){this.Y.V(this.yi,!1),this.Y.V(this.yi,!0)}clear(){this.remove(),this.props={}}register_once(t,n,r){if(Ti(t)){Le(n)&&(n="None"),this.xi=Le(r)?this.Si:r;var i=!1;if(er(t,((s,o)=>{this.props.hasOwnProperty(o)&&this.props[o]!==n||(this.props[o]=s,i=!0)})),i)return this.save(),!0}return!1}register(t,n){if(Ti(t)){this.xi=Le(n)?this.Si:n;var r=!1;if(er(t,((i,s)=>{t.hasOwnProperty(s)&&this.props[s]!==i&&(this.props[s]=i,r=!0)})),r)return this.save(),!0}return!1}unregister(t){t in this.props&&(delete this.props[t],this.save())}update_campaign_params(){if(!this.mi){var t=w7(this.F.custom_campaign_params,this.F.mask_personal_data_properties,this.F.custom_personal_data_properties);fh(fN(t))||this.register(t),this.mi=!0}}update_search_keyword(){var t;this.register((t=Pe?.referrer)?x7(t):{})}update_referrer_info(){var t;this.register_once({$referrer:C7(),$referring_domain:Pe!=null&&Pe.referrer&&((t=cE(Pe.referrer))==null?void 0:t.host)||"$direct"},void 0)}set_initial_person_info(){this.props[zk]||this.props[Hk]||this.register_once({[sE]:A7(this.F.mask_personal_data_properties,this.F.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};er([Hk,zk],(o=>{var a=this.props[o];a&&er(a,(function(l,f){t["$initial_"+Ok(f)]=l}))}));var n,r,i=this.props[sE];if(i){var s=(n=R7(i),r={},er(n,(function(o,a){r["$initial_"+Ok(a)]=o})),r);Ur(t,s)}return t}safe_merge(t){return er(this.props,(function(n,r){r in t||(t[r]=n)})),t}update_config(t,n,r){if(this.Si=this.xi=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!r),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==n.persistence){var i=this.bi(t),s=this.props;this.clear(),this.Y=i,this.props=s,this.save()}}set_disabled(t){this.wi=t,this.wi?this.remove():this.save()}set_cross_subdomain(t){t!==this.$i&&(this.$i=t,this.remove(),this.save())}set_secure(t){t!==this.Ei&&(this.Ei=t,this.remove(),this.save())}set_event_timer(t,n){var r=this.props[_m]||{};r[t]=n,this.props[_m]=r,this.save()}remove_event_timer(t){var n=(this.props[_m]||{})[t];return Le(n)||(delete this.props[_m][t],this.save()),n}get_property(t){return this.props[t]}set_property(t,n){this.props[t]=n,this.save()}}(function(e){return e.Button="button",e.Tab="tab",e.Selector="selector",e})({});(function(e){return e.TopLeft="top_left",e.TopRight="top_right",e.TopCenter="top_center",e.MiddleLeft="middle_left",e.MiddleRight="middle_right",e.MiddleCenter="middle_center",e.Left="left",e.Center="center",e.Right="right",e.NextToTrigger="next_to_trigger",e})({});(function(e){return e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom",e})({});var nA=(function(e){return e.Popover="popover",e.API="api",e.Widget="widget",e.ExternalSurvey="external_survey",e})({});(function(e){return e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link",e})({});(function(e){return e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question",e})({});(function(e){return e.Once="once",e.Recurring="recurring",e.Always="always",e})({});var KS=(function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e})({}),V2=(function(e){return e.SURVEY_ID="$survey_id",e.SURVEY_NAME="$survey_name",e.SURVEY_RESPONSE="$survey_response",e.SURVEY_ITERATION="$survey_iteration",e.SURVEY_ITERATION_
529START_DATE="$survey_iteration_start_date",e.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",e.SURVEY_SUBMISSION_ID="$survey_submission_id",e.SURVEY_QUESTIONS="$survey_questions",e.SURVEY_COMPLETED="$survey_completed",e})({}),P7=(function(e){return e.Popover="popover",e.Inline="inline",e})({});class SN{constructor(){this.ki={},this.ki={}}on(t,n){return this.ki[t]||(this.ki[t]=[]),this.ki[t].push(n),()=>{this.ki[t]=this.ki[t].filter((r=>r!==n))}}emit(t,n){for(var r of this.ki[t]||[])r(n);for(var i of this.ki["*"]||[])i(t,n)}}class sf{constructor(t){this.Pi=new SN,this.Ti=(n,r)=>this.Ii(n,r)&&this.Ri(n,r)&&this.Fi(n,r),this.Ii=(n,r)=>r==null||!r.event||n?.event===r?.event,this._instance=t,this.Ci=new Set,this.Oi=new Set}init(){var t;if(!Le((t=this._instance)==null?void 0:t.Mi)){var n;(n=this._instance)==null||n.Mi(((r,i)=>{this.on(r,i)}))}}register(t){var n,r;if(!Le((n=this._instance)==null?void 0:n.Mi)&&(t.forEach((o=>{var a,l;(a=this.Oi)==null||a.add(o),(l=o.steps)==null||l.forEach((f=>{var d;(d=this.Ci)==null||d.add(f?.event||"")}))})),(r=this._instance)!=null&&r.autocapture)){var i,s=new Set;t.forEach((o=>{var a;(a=o.steps)==null||a.forEach((l=>{l!=null&&l.selector&&s.add(l?.selector)}))})),(i=this._instance)==null||i.autocapture.setElementSelectors(s)}}on(t,n){var r;n!=null&&t.length!=0&&(this.Ci.has(t)||this.Ci.has(n?.event))&&this.Oi&&((r=this.Oi)==null?void 0:r.size)>0&&this.Oi.forEach((i=>{this.Ai(n,i)&&this.Pi.emit("actionCaptured",i.name)}))}Di(t){this.onAction("actionCaptured",(n=>t(n)))}Ai(t,n){if(n?.steps==null)return!1;for(var r of n.steps)if(this.Ti(t,r))return!0;return!1}onAction(t,n){return this.Pi.on(t,n)}Ri(t,n){if(n!=null&&n.url){var r,i=t==null||(r=t.properties)==null?void 0:r.$current_url;if(!i||typeof i!="string"||!sf.ji(i,n?.url,n?.url_matching||"contains"))return!1}return!0}static ji(t,n,r){switch(r){case"regex":return!!ge&&np(t,n);case"exact":return n===t;case"contains":var i=sf.Li(n).replace(/_/g,".").replace(/%/g,".*");return np(t,i);default:return!1}}static Li(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Fi(t,n){if((n!=null&&n.href||n!=null&&n.tag_name||n!=null&&n.text)&&!this.Ni(t).some((s=>!(n!=null&&n.href&&!sf.ji(s.href||"",n?.href,n?.href_matching||"exact"))&&(n==null||!n.tag_name||s.tag_name===n?.tag_name)&&!(n!=null&&n.text&&!sf.ji(s.text||"",n?.text,n?.text_matching||"exact")&&!sf.ji(s.$el_text||"",n?.text,n?.text_matching||"exact")))))return!1;if(n!=null&&n.selector){var r,i=t==null||(r=t.properties)==null?void 0:r.$element_selectors;if(!i||!i.includes(n?.selector))return!1}return!0}Ni(t){return t?.properties.$elements==null?[]:t?.properties.$elements}}var zn=fi("[Surveys]"),Kk="seenSurvey_",$1e=(e,t)=>{var n="$survey_"+t+"/"+e.id;return e.current_iteration&&e.current_iteration>0&&(n="$survey_"+t+"/"+e.id+"/"+e.current_iteration),n},G2=e=>{var t=""+Kk+e.id;return e.current_iteration&&e.current_iteration>0&&(t=""+Kk+e.id+"_"+e.current_iteration),t},F1e=[nA.Popover,nA.Widget,nA.API],U1e={ignoreConditions:!1,ignoreDelay:!1,displayType:P7.Popover};class B1e{constructor(t){this._instance=t,this.Ui=new Map,this.zi=new Map}register(t){var n;Le((n=this._instance)==null?void 0:n.Mi)||(this.Hi(t),this.Bi(t))}Bi(t){var n=t.filter((r=>{var i,s;return((i=r.conditions)==null?void 0:i.actions)&&((s=r.conditions)==null||(s=s.actions)==null||(s=s.values)==null?void 0:s.length)>0}));n.length!==0&&(this.qi==null&&(this.qi=new sf(this._instance),this.qi.init(),this.qi.Di((r=>{this.onAction(r)}))),n.forEach((r=>{var i,s,o,a,l;r.conditions&&(i=r.conditions)!=null&&i.actions&&(s=r.conditions)!=null&&(s=s.actions)!=null&&s.values&&((o=r.conditions)==null||(o=o.actions)==null||(o=o.values)==null?void 0:o.length)>0&&((a=this.qi)==null||a.register(r.conditions.actions.values),(l=r.conditions)==null||(l=l.actions)==null||(l=l.values)==null||l.forEach((f=>{if(f&&f.name){var d=this.zi.get(f.name);d&&d.push(r.id),this.zi.set(f.name,d||[r.id])}})))})))}Hi(t){var n;t.filter((r=>{var i,s;return((i=r.conditions)==null?void 0:i.events)&&((s=r.conditions)==null||(s=s.events)==null||(s=s.values)==null?void 0:s.length)>0})).length!==0&&((n=this._instance)==null||n.Mi(((r,i)=>{this.onEvent(r,i)})),t.forEach((r=>{var i;(i=r.conditions)==null||(i=i.events)==null||(i=i.values)==null||i.forEac
529h((s=>{if(s&&s.name){var o=this.Ui.get(s.name);o&&o.push(r.id),this.Ui.set(s.name,o||[r.id])}}))})))}onEvent(t,n){var r,i,s=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[Ab])||[];if(KS.SHOWN===t&&n&&s.length>0){var o;zn.info("survey event matched, removing survey from activated surveys",{event:t,eventPayload:n,existingActivatedSurveys:s});var a=n==null||(o=n.properties)==null?void 0:o.$survey_id;if(a){var l=s.indexOf(a);l>=0&&(s.splice(l,1),this.Wi(s))}}else if(this.Ui.has(t)){zn.info("survey event name matched",{event:t,eventPayload:n,surveys:this.Ui.get(t)});var f=[];(i=this._instance)==null||i.getSurveys((p=>{f=p.filter((m=>{var _;return(_=this.Ui.get(t))==null?void 0:_.includes(m.id)}))}));var d=f.filter((p=>{var m,_=(m=p.conditions)==null||(m=m.events)==null||(m=m.values)==null?void 0:m.find((v=>v.name===t));return!!_&&(!_.propertyFilters||Object.entries(_.propertyFilters).every((v=>{var E,[b,w]=v,T=n==null||(E=n.properties)==null?void 0:E[b];if(Le(T)||Pc(T))return!1;var R=[String(T)],C=D7[w.operator];return C?C(w.values,R):(zn.warn("Unknown property comparison operator: "+w.operator),!1)})))}));this.Wi(s.concat(d.map((p=>p.id))||[]))}}onAction(t){var n,r=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[Ab])||[];this.zi.has(t)&&this.Wi(r.concat(this.zi.get(t)||[]))}Wi(t){var n;zn.info("updating activated surveys",{activatedSurveys:t}),(n=this._instance)==null||(n=n.persistence)==null||n.register({[Ab]:[...new Set(t)]})}getSurveys(){var t,n=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[Ab];return n||[]}getEventToSurveys(){return this.Ui}Gi(){return this.qi}}class z1e{constructor(t){this.Vi=void 0,this._surveyManager=null,this.Ji=!1,this.Ki=!1,this.Yi=[],this._instance=t,this._surveyEventReceiver=null}onRemoteConfig(t){if(!this._instance.config.disable_surveys){var n=t.surveys;if(dr(n))return zn.warn("Flags not loaded yet. Not loading surveys.");var r=tr(n);this.Vi=r?n.length>0:n,zn.info("flags response received, isSurveysEnabled: "+this.Vi),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);(r!=null&&r.startsWith(Kk)||r!=null&&r.startsWith("inProgressSurvey_"))&&t.push(r)}t.forEach((i=>localStorage.removeItem(i)))}loadIfEnabled(){if(!this._surveyManager)if(this.Ki)zn.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)zn.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())zn.info("Not loading surveys in cookieless mode without consent.");else{var t=Et?.__PosthogExtensions__;if(t){if(!Le(this.Vi)||this._instance.config.advanced_enable_surveys){var n=this.Vi||this._instance.config.advanced_enable_surveys;this.Ki=!0;try{var r=t.generateSurveys;if(r)return void this.Xi(r,n);var i=t.loadExternalDependency;if(!i)return void this.Qi("PostHog loadExternalDependency extension not found.");i(this._instance,"surveys",(s=>{s||!t.generateSurveys?this.Qi("Could not load surveys script",s):this.Xi(t.generateSurveys,n)}))}catch(s){throw this.Qi("Error initializing surveys",s),s}finally{this.Ki=!1}}}else zn.error("PostHog Extensions not found.")}}Xi(t,n){this._surveyManager=t(this._instance,n),this._surveyEventReceiver=new B1e(this._instance),zn.info("Surveys loaded successfully"),this.Zi({isLoaded:!0})}Qi(t,n){zn.error(t,n),this.Zi({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.Yi.push(t),this._surveyManager&&this.Zi({isLoaded:!0}),()=>{this.Yi=this.Yi.filter((n=>n!==t))}}getSurveys(t,n){if(n===void 0&&(n=!1),this._instance.config.disable_surveys)return zn.info("Disabled. Not loading surveys."),t([]);var r=this._instance.get_property(Fk);if(r&&!n)return t(r,{isLoaded:!0});if(this.Ji)return t([],{isLoaded:!1,error:"Surveys are already being loaded"});try{this.Ji=!0,this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:i=>{var s;this.Ji=!1;var o=i.statusCode;if(o!==200||!i.json){var a="Surveys API could not be loaded, status: "+o;return zn.error(a),t([],{isLoaded:!1,error:a})}var l,f=i.json.surveys||[],d=f.filter((p=>(function(m){return!(!m.start_date||m.end_date)}
529)(p)&&((function(m){var _;return!((_=m.conditions)==null||(_=_.events)==null||(_=_.values)==null||!_.length)})(p)||(function(m){var _;return!((_=m.conditions)==null||(_=_.actions)==null||(_=_.values)==null||!_.length)})(p))));return d.length>0&&((l=this._surveyEventReceiver)==null||l.register(d)),(s=this._instance.persistence)==null||s.register({[Fk]:f}),t(f,{isLoaded:!0})}})}catch(i){throw this.Ji=!1,i}}Zi(t){for(var n of this.Yi)try{if(!t.isLoaded)return n([],t);this.getSurveys(n)}catch(r){zn.error("Error in survey callback",r)}}getActiveMatchingSurveys(t,n){if(n===void 0&&(n=!1),!dr(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,n);zn.warn("init was not called")}te(t){var n=null;return this.getSurveys((r=>{var i;n=(i=r.find((s=>s.id===t)))!==null&&i!==void 0?i:null})),n}ie(t){if(dr(this._surveyManager))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var n=typeof t=="string"?this.te(t):t;return n?this._surveyManager.checkSurveyEligibility(n):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(dr(this._surveyManager))return zn.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var n=this.ie(t);return{visible:n.eligible,disabledReason:n.reason}}canRenderSurveyAsync(t,n){return dr(this._surveyManager)?(zn.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise((r=>{this.getSurveys((i=>{var s,o=(s=i.find((l=>l.id===t)))!==null&&s!==void 0?s:null;if(o){var a=this.ie(o);r({visible:a.eligible,disabledReason:a.reason})}else r({visible:!1,disabledReason:"Survey not found"})}),n)}))}renderSurvey(t,n){var r;if(dr(this._surveyManager))zn.warn("init was not called");else{var i=typeof t=="string"?this.te(t):t;if(i!=null&&i.id)if(F1e.includes(i.type)){var s=Pe?.querySelector(n);if(s)return(r=i.appearance)!=null&&r.surveyPopupDelaySeconds?(zn.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var o,a;zn.info("Rendering survey "+i.id+" with delay of "+((o=i.appearance)==null?void 0:o.surveyPopupDelaySeconds)+" seconds"),(a=this._surveyManager)==null||a.renderSurvey(i,s),zn.info("Survey "+i.id+" rendered")}),1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,s);zn.warn("Survey element not found")}else zn.warn("Surveys of type "+i.type+" cannot be rendered in the app");else zn.warn("Survey not found")}}displaySurvey(t,n){var r;if(dr(this._surveyManager))zn.warn("init was not called");else{var i=this.te(t);if(i){var s=i;if((r=i.appearance)!=null&&r.surveyPopupDelaySeconds&&n.ignoreDelay&&(s=We({},i,{appearance:We({},i.appearance,{surveyPopupDelaySeconds:0})})),n.ignoreConditions===!1){var o=this.canRenderSurvey(i);if(!o.visible)return void zn.warn("Survey is not eligible to be displayed: ",o.disabledReason)}n.displayType!==P7.Inline?this._surveyManager.handlePopoverSurvey(s):this.renderSurvey(s,n.selector)}else zn.warn("Survey not found")}}}var q2=fi("[RateLimiter]");class H1e{constructor(t){var n,r;this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=i=>{var s=i.text;if(s&&s.length)try{(JSON.parse(s).quota_limited||[]).forEach((o=>{q2.info((o||"events")+" is quota limited."),this.serverLimits[o]=new Date().getTime()+6e4}))}catch(o){return void q2.warn('could not rate limit - continuing. Error: "'+o?.message+'"',{text:s})}},this.instance=t,this.captureEventsPerSecond=((n=t.config.rate_limiting)==null?void 0:n.events_per_second)||10,this.captureEventsBurstLimit=Math.max(((r=t.config.rate_limiting)==null?void 0:r.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(t){var n,r,i;t===void 0&&(t=!1);var s=new Date().getTime(),o=(n=(r=this.instance.persistence)==null?void 0:r.get_property(Bk))!==null&&n!==void 0?n:{tokens:this.captureEventsBurstLimit,last:s};o.tokens+=(s-o.last)/1e3*this.captureEventsPerSecond,o.last=s,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);var a=o.tokens<1;return a||t||(o.tokens=Math.max(0,o.tokens-1)),!a||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+this.captureEventsPerSecond+" events per second and "+this.captureEventsBurstLimit+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=a,(i=this.instance.persistence)==null||i.set_property(Bk,o),{isRateLimited:a,remainingTokens:o.tokens}}isServerRateLimited(t){var n=this.serverLimits[t||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var ju=fi("[RemoteConfig]");class j1e{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=Et._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}ee(t){var n,r;(n=Et.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=Et.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):(ju.error("PostHog Extensions not found. Cannot load remote config."),t())}re(t){this._instance.ci({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:n=>{t(n.json)}})}load(){try{if(this.remoteConfig)return ju.info("Using preloaded remote config",this.remoteConfig),void this.fi(this.remoteConfig);if(this._instance.M())return void ju.warn("Remote config is disabled. Falling back to local config.");this.ee((t=>{if(!t)return ju.info("No config found after loading remote JS config. Falling back to JSON."),void this.re((n=>{this.fi(n)}));this.fi(t)}))}catch(t){ju.error("Error loading remote config",t)}}fi(t){t?this._instance.config.__preview_remote_config?(this._instance.fi(t),t.hasFeatureFlags!==!1&&this._instance.featureFlags.ensureFlagsLoaded()):ju.info("__preview_remote_config is disabled. Logging config instead",t):ju.error("Failed to fetch remote config from PostHog.")}}var Zk=3e3;class V1e{constructor(t,n){this.se=!0,this.ne=[],this.oe=fa(n?.flush_interval_ms||Zk,250,5e3,$e.createLogger("flush interval"),Zk),this.ae=t}enqueue(t){this.ne.push(t),this.le||this.ue()}unload(){this.he();var t=this.ne.length>0?this.de():{},n=Object.values(t);[...n.filter((r=>r.url.indexOf("/e")===0)),...n.filter((r=>r.url.indexOf("/e")!==0))].map((r=>{this.ae(We({},r,{transport:"sendBeacon"}))}))}enable(){this.se=!1,this.ue()}ue(){var t=this;this.se||(this.le=setTimeout((()=>
529{if(this.he(),this.ne.length>0){var n=this.de(),r=function(){var s=n[i],o=new Date().getTime();s.data&&tr(s.data)&&er(s.data,(a=>{a.offset=Math.abs(a.timestamp-o),delete a.timestamp})),t.ae(s)};for(var i in n)r()}}),this.oe))}he(){clearTimeout(this.le),this.le=void 0}de(){var t={};return er(this.ne,(n=>{var r,i=n,s=(i?i.batchKey:null)||i.url;Le(t[s])&&(t[s]=We({},i,{data:[]})),(r=t[s].data)==null||r.push(i.data)})),this.ne=[],t}}var G1e=["retriesPerformedSoFar"];class q1e{constructor(t){this.ve=!1,this.ce=3e3,this.ne=[],this._instance=t,this.ne=[],this.fe=!0,!Le(ge)&&"onLine"in ge.navigator&&(this.fe=ge.navigator.onLine,this.pe=()=>{this.fe=!0,this.Dt()},this.ge=()=>{this.fe=!1},ni(ge,"online",this.pe),ni(ge,"offline",this.ge))}get length(){return this.ne.length}retriableRequest(t){var{retriesPerformedSoFar:n}=t,r=Mq(t,G1e);wa(n)&&n>0&&(r.url=pE(r.url,{retry_count:n})),this._instance.ci(We({},r,{callback:i=>{i.statusCode!==200&&(i.statusCode<400||i.statusCode>=500)&&(n??0)<10?this._e(We({retriesPerformedSoFar:n},r)):r.callback==null||r.callback(i)}}))}_e(t){var n=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=n+1;var r=(function(o){var a=3e3*Math.pow(2,o),l=a/2,f=Math.min(18e5,a),d=(Math.random()-.5)*(f-l);return Math.ceil(f+d)})(n),i=Date.now()+r;this.ne.push({retryAt:i,requestOptions:t});var s="Enqueued failed request for retry in "+r;navigator.onLine||(s+=" (Browser is offline)"),$e.warn(s),this.ve||(this.ve=!0,this.me())}me(){if(this.ye&&clearTimeout(this.ye),this.ne.length===0)return this.ve=!1,void(this.ye=void 0);this.ye=setTimeout((()=>{this.fe&&this.ne.length>0&&this.Dt(),this.me()}),this.ce)}Dt(){var t=Date.now(),n=[],r=this.ne.filter((s=>s.retryAt<t||(n.push(s),!1)));if(this.ne=n,r.length>0)for(var{requestOptions:i}of r)this.retriableRequest(i)}unload(){for(var{requestOptions:t}of(this.ye&&(clearTimeout(this.ye),this.ye=void 0),this.ve=!1,Le(ge)||(this.pe&&(ge.removeEventListener("online",this.pe),this.pe=void 0),this.ge&&(ge.removeEventListener("offline",this.ge),this.ge=void 0)),this.ne))try{this._instance.ci(We({},t,{transport:"sendBeacon"}))}catch(n){$e.error(n)}this.ne=[]}}class W1e{constructor(t){this.be=()=>{var n,r,i,s;this.we||(this.we={});var o=this.scrollElement(),a=this.scrollY(),l=o?Math.max(0,o.scrollHeight-o.clientHeight):0,f=a+(o?.clientHeight||0),d=o?.scrollHeight||0;this.we.lastScrollY=Math.ceil(a),this.we.maxScrollY=Math.max(a,(n=this.we.maxScrollY)!==null&&n!==void 0?n:0),this.we.maxScrollHeight=Math.max(l,(r=this.we.maxScrollHeight)!==null&&r!==void 0?r:0),this.we.lastContentY=f,this.we.maxContentY=Math.max(f,(i=this.we.maxContentY)!==null&&i!==void 0?i:0),this.we.maxContentHeight=Math.max(d,(s=this.we.maxContentHeight)!==null&&s!==void 0?s:0)},this._instance=t}getContext(){return this.we}resetContext(){var t=this.we;return setTimeout(this.be,0),t}startMeasuringScrollPosition(){ni(ge,"scroll",this.be,{capture:!0}),ni(ge,"scrollend",this.be,{capture:!0}),ni(ge,"resize",this.be)}scrollElement(){if(!this._instance.config.scroll_root_selector)return ge?.document.documentElement;var t=tr(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var n of t){var r=ge?.document.querySelector(n);if(r)return r}}scrollY(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollTop||0}return ge&&(ge.scrollY||ge.pageYOffset||ge.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollLeft||0}return ge&&(ge.scrollX||ge.pageXOffset||ge.document.documentElement.scrollLeft)||0}}var Y1e=e=>A7(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class W2{constructor(t,n,r,i){this.xe=s=>{var o=this.$e();if(!o||o.sessionId!==s){var a={sessionId:s,props:this.Ee(this._instance)};this.Se.register({[Uk]:a})}},this._instance=t,this.ke=n,this.Se=r,this.Ee=i||Y1e,this.ke.onSessionId(this.xe)}$e(){return this.Se.props[Uk]}getSetOnceProps(){var t,n=(t=this.$e())==null?void 0:t.props;return n?"r"in n?R7(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var t={};return er(fN(this.getSetOnceProps()),((n,r)=>{r==="$current_url"&&(r="url"),t["$session_entry_"+Ok(r)]=n})),t}}var rA=fi("[SessionId]");class Y2{on(t,n){return this.Pe.on(t,n)}constructor(t,n,r){var i;if(this.Te=[],this.Ie=void 0,this.Pe=new SN,this.Re=(d,p)=>Math.abs(d-p)>
529this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode==="always")throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.F=t.config,this.Se=t.persistence,this.Fe=void 0,this.Ce=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Oe=n||xl,this.Me=r||xl;var s=this.F.persistence_name||this.F.token,o=this.F.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*fa(o,60,36e3,rA.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Ae(),this.De="ph_"+s+"_window_id",this.je="ph_"+s+"_primary_window_exists",this.Le()){var a=wi.W(this.De),l=wi.W(this.je);a&&!l?this.Fe=a:wi.V(this.De),wi.G(this.je,!0)}if((i=this.F.bootstrap)!=null&&i.sessionID)try{var f=(d=>{var p=d.replace(/-/g,"");if(p.length!==32)throw new Error("Not a valid UUID");if(p[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(p.substring(0,12),16)})(this.F.bootstrap.sessionID);this.Ne(this.F.bootstrap.sessionID,new Date().getTime(),f)}catch(d){rA.error("Invalid sessionID in bootstrap",d)}this.Ue()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return Le(this.Te)&&(this.Te=[]),this.Te.push(t),this.Ce&&t(this.Ce,this.Fe),()=>{this.Te=this.Te.filter((n=>n!==t))}}Le(){return this.F.persistence!=="memory"&&!this.Se.wi&&wi.H()}ze(t){t!==this.Fe&&(this.Fe=t,this.Le()&&wi.G(this.De,t))}He(){return this.Fe?this.Fe:this.Le()?wi.W(this.De):null}Ne(t,n,r){t===this.Ce&&n===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this.Ce=t,this.Se.register({[rE]:[n,t,r]}))}Be(){if(this.Ce&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this.Ce,this._sessionStartTimestamp];var t=this.Se.props[rE];return tr(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.Ne(null,null,null)}destroy(){clearTimeout(this.qe),this.qe=void 0,this.Ie&&ge&&(ge.removeEventListener("beforeunload",this.Ie,{capture:!1}),this.Ie=void 0),this.Te=[]}Ue(){this.Ie=()=>{this.Le()&&wi.V(this.je)},ni(ge,"beforeunload",this.Ie,{capture:!1})}checkAndGetSessionAndWindowId(t,n){if(t===void 0&&(t=!1),n===void 0&&(n=null),this.F.cookieless_mode==="always")throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var r=n||new Date().getTime(),[i,s,o]=this.Be(),a=this.He(),l=wa(o)&&o>0&&Math.abs(r-o)>864e5,f=!1,d=!s,p=!d&&!t&&this.Re(r,i);d||p||l?(s=this.Oe(),a=this.Me(),rA.info("new session ID generated",{sessionId:s,windowId:a,changeReason:{noSessionId:d,activityTimeout:p,sessionPastMaximumLength:l}}),o=r,f=!0):a||(a=this.Me(),f=!0);var m=i===0||!t||l?r:i,_=o===0?new Date().getTime():o;return this.ze(a),this.Ne(s,m,_),t||this.Ae(),f&&this.Te.forEach((v=>v(s,a,f?{noSessionId:d,activityTimeout:p,sessionPastMaximumLength:l}:void 0))),{sessionId:s,windowId:a,sessionStartTimestamp:_,changeReason:f?{noSessionId:d,activityTimeout:p,sessionPastMaximumLength:l}:void 0,lastActivityTimestamp:i}}Ae(){clearTimeout(this.qe),this.qe=setTimeout((()=>{var[t]=this.Be();if(this.Re(new Date().getTime(),t)){var n=this.Ce;this.resetSessionId(),this.Pe.emit("forcedIdleReset",{idleSessionId:n})}}),1.1*this.sessionTimeoutMs)}}var X1e=["$set_once","$set"],dl=fi("[SiteApps]");class K1e{constructor(t){this._instance=t,this.We=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Ge(t,n){if(n){var r=this.globalsForEvent(n);this.We.push(r),this.We.length>1e3&&(this.We=this.We.slice(10))}}get siteAppLoaders(){var t;return(t=Et._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}init(){if(this.isEnabled){var t=this._instance.Mi(this.Ge.bind(this));this.Ve=()=>{t(),this.We=[],this.Ve=void 0}}}globalsForEvent(t){var n,r,i,s,o,a,l;if(!t)throw new Error("Event payload is required");var f={},d=this._instance.get_property("$groups")||[],p=this._instance.get_property("$stored_group_properties")||{};for(var[m,_]of Object.entries(p))f[m]={id:d[m],type:m,properties:_};var{$set_once:v,$set:E}=t;return{event:We({},Mq(t,X1e),{properties:We({},t.properties,E?{$set:We({},(n=(r=t.properties)==null?void 0:r.$set)!==null&&n!==void 0?n:{},E)}:{},v?{$set_once:We({},(i=(s=t.properties)==null?void 0:s.$set_once)!==null&&i!==void 0?i:{},v)}:{}),elements_chain:(o=(a=t.properties)==null?void 0:a.$elements_chain)!==null&&o!==void 0?o:"",distinct_id:(l=t.properties)==null?void 0:l.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:f}}setupSiteApp(t){var n=this.apps[t.id],r=()=>{var a;!n.errored&&this.We.length&&(dl.info("Processing "+this.We.length+" events for site app with id "+t.id),this.We.forEach((l=>n.processEvent==null?void 0:n.processEvent(l))),n.processedBuffer=!0),Object.values(this.apps).every((l=>l.processedBuffer||l.errored))&&((a=this.Ve)==null||a.call(this))},i=!1,s=a=>{n.errored=!a,n.loaded=!0,dl.info("Site app with id "+t.id+" "+(a?"loaded":"errored")),i&&r()};try{var{processEvent:o}=t.init({posthog:this._instance,callback:a=>{s(a)}});o&&(n.processEvent=o),i=!0}catch(a){dl.error("Error while initializing PostHog app with config id "+t.id,a),s(!1)}if(i&&n.loaded)try{r()}catch(a){dl.error("Error while processing buffered events PostHog app with config id "+t.id,a),n.errored=!0}}Je(){var t=this.siteAppLoaders||[];for(var n of t)this.apps[n.id]={id:n.id,loaded:!1,errored:!1,processedBuffer:!1};for(var r of t)this.setupSiteApp(r)}Ke(t){if(Object.keys(this.apps).length!==0){var n=this.globalsForEvent(t);for(var r of Object.values(this.apps))try{r.processEvent==null||r.processEvent(n)}catch(i){dl.error("Error while processing event "+t.event+" for site app "+r.id,i)}}}onRemoteConfig(t){var n,r,i,s=this;if((n=this.siteAppLoaders)!=null&&n.length)return this.isEnabled?(this.Je(),void this._instance.on("eventCaptured",(f=>this.Ke(f)))):void dl.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((r=this.Ve)==null||r.call(this),(i=t.siteApps)!=null&&i.length)if(this.isEnabled){var o=function(f){var d;Et["__$$ph_site_app_"+f]=s._instance,(d=Et.__PosthogExtensions__)==null||d.loadSiteApp==null||d.loadSiteApp(s._instance,l,(p=>{if(p)return dl.error("Error while initializing PostHog app with config id "+f,p)}))};for(var{id:a,url:l}of t.siteApps)o(a)}else dl.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var $7=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&a2(n,t))return!0;try{var r=e?.userAgentData;if(r!=null&&r.brands&&r.brands.some((i=>a2(i?.brand,t))))return!0}catch{}return!!e.webdriver},Em=(function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e})({}),X2="i.posthog.com";class Z1e{constructor(t){this.Ye={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,n=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+X2,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}
529get region(){return this.Ye[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ye[this.apiHost]=Em.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Ye[this.apiHost]=Em.EU:this.Ye[this.apiHost]=Em.CUSTOM),this.Ye[this.apiHost]}endpointFor(t,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),t==="ui")return this.uiHost+n;if(t==="flags")return this.flagsApiHost+n;if(this.region===Em.CUSTOM)return this.apiHost+n;var r=X2+n;switch(t){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var J1e={icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!ge&&np(t.href,e),not_regex:(e,t)=>!!ge&&!np(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Mi{constructor(t){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments((i=>{Mi.Xe("retrieved web experiments from the server"),n.Qe=new Map,i.forEach((s=>{if(s.feature_flag_key){var o;n.Qe&&(Mi.Xe("setting flag key ",s.feature_flag_key," to web experiment ",s),(o=n.Qe)==null||o.set(s.feature_flag_key,s));var a=n._instance.getFeatureFlag(s.feature_flag_key);ai(a)&&s.variants[a]&&n.Ze(s.name,a,s.variants[a].transforms)}else if(s.variants)for(var l in s.variants){var f=s.variants[l];Mi.tr(f)&&n.Ze(s.name,l,f.transforms)}}))}),r)},this._instance=t,this._instance.onFeatureFlags((r=>{this.onFeatureFlags(r)}))}onFeatureFlags(t){if(this._is_bot())Mi.Xe("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(dr(this.Qe))return this.Qe=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Mi.Xe("applying feature flags",t),t.forEach((n=>{var r;if(this.Qe&&(r=this.Qe)!=null&&r.has(n)){var i,s=this._instance.getFeatureFlag(n),o=(i=this.Qe)==null?void 0:i.get(n);s&&o!=null&&o.variants[s]&&this.Ze(o.name,s,o.variants[s].transforms)}}))}}previewWebExperiment(){var t=Mi.getWindowLocation();if(t!=null&&t.search){var n=lE(t?.search,"__experiment_id"),r=lE(t?.search,"__experiment_variant");n&&r&&(Mi.Xe("previewing web experiments "+n+" && "+r),this.getWebExperiments((i=>{this.ir(parseInt(n),r,i)}),!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,n,r){if(this._instance.config.disable_web_experiments&&!r)return t([]);var i=this._instance.get_property("$web_experiments");if(i&&!n)return t(i);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:s=>{if(s.statusCode!==200||!s.json)return t([]);var o=s.json.experiments||[];return t(o)}})}ir(t,n,r){var i=r.filter((s=>s.id===t));i&&i.length>0&&(Mi.Xe("Previewing web experiment ["+i[0].name+"] with variant ["+n+"]"),this.Ze(i[0].name,n,i[0].variants[n].transforms))}static tr(t){return!dr(t.conditions)&&Mi.er(t)&&Mi.rr(t)}static er(t){var n;if(dr(t.conditions)||dr((n=t.conditions)==null?void 0:n.url))return!0;var r,i,s,o=Mi.getWindowLocation();return!!o&&((r=t.conditions)==null||!r.url||J1e[(i=(s=t.conditions)==null?void 0:s.urlMatchType)!==null&&i!==void 0?i:"icontains"](t.conditions.url,o))}
529static getWindowLocation(){return ge?.location}static rr(t){var n;if(dr(t.conditions)||dr((n=t.conditions)==null?void 0:n.utm))return!0;var r=w7();if(r.utm_source){var i,s,o,a,l,f,d,p,m=(i=t.conditions)==null||(i=i.utm)==null||!i.utm_campaign||((s=t.conditions)==null||(s=s.utm)==null?void 0:s.utm_campaign)==r.utm_campaign,_=(o=t.conditions)==null||(o=o.utm)==null||!o.utm_source||((a=t.conditions)==null||(a=a.utm)==null?void 0:a.utm_source)==r.utm_source,v=(l=t.conditions)==null||(l=l.utm)==null||!l.utm_medium||((f=t.conditions)==null||(f=f.utm)==null?void 0:f.utm_medium)==r.utm_medium,E=(d=t.conditions)==null||(d=d.utm)==null||!d.utm_term||((p=t.conditions)==null||(p=p.utm)==null?void 0:p.utm_term)==r.utm_term;return m&&v&&E&&_}return!1}static Xe(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];$e.info("[WebExperiments] "+t,r)}Ze(t,n,r){this._is_bot()?Mi.Xe("Refusing to render web experiment since the viewer is a likely bot"):n!=="control"?r.forEach((i=>{if(i.selector){var s;Mi.Xe("applying transform of variant "+n+" for experiment "+t+" ",i);var o=(s=document)==null?void 0:s.querySelectorAll(i.selector);o?.forEach((a=>{var l=a;i.html&&(l.innerHTML=i.html),i.css&&l.setAttribute("style",i.css)}))}})):Mi.Xe("Control variants leave the page unmodified.")}_is_bot(){return Fs&&this._instance?$7(Fs,this._instance.config.custom_blocked_useragents):void 0}}var Q1e=fi("[PostHog ExternalIntegrations]"),exe={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class txe{constructor(t){this._instance=t}it(t,n){var r;(r=Et.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,t,(i=>{if(i)return Q1e.error("failed to load script",i);n()}))}startIfEnabledOrStop(){var t=this,n=function(o){var a,l,f;!i||(a=Et.__PosthogExtensions__)!=null&&(a=a.integrations)!=null&&a[o]||t.it(exe[o],(()=>{var d;(d=Et.__PosthogExtensions__)==null||(d=d.integrations)==null||(d=d[o])==null||d.start(t._instance)})),!i&&(l=Et.__PosthogExtensions__)!=null&&(l=l.integrations)!=null&&l[o]&&((f=Et.__PosthogExtensions__)==null||(f=f.integrations)==null||(f=f[o])==null||f.stop())};for(var[r,i]of Object.entries((s=this._instance.config.integrations)!==null&&s!==void 0?s:{})){var s;n(r)}}}var Jk="[SessionRecording]",Qg=fi(Jk);class K2{get started(){var t;return!((t=this.sr)==null||!t.isStarted)}get status(){return this.sr?this.sr.status:this.nr&&!this.ar?"disabled":"lazy_loading"}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.nr=!1,this.lr=void 0,this._instance=t,!this._instance.sessionManager)throw Qg.error("started without valid sessionManager"),new Error(Jk+" started without valid sessionManager. This is a bug.");if(this._instance.config.cookieless_mode==="always")throw new Error(Jk+' cannot be used with cookieless_mode="always"')}get ar(){var t,n=!((t=this._instance.get_property(VC))==null||!t.enabled),r=!this._instance.config.disable_session_recording,i=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return ge&&n&&r&&!i}startIfEnabledOrStop(t){var n;if(!this.ar||(n=this.sr)==null||!n.isStarted){var r=!Le(Object.assign)&&!Le(Array.from);this.ar&&r?(this.ur(t),Qg.info("starting")):this.stopRecording()}}ur(t){var n,r,i;this.ar&&(Et!=null&&(n=Et.__PosthogExtensions__)!=null&&(n=n.rrweb)!=null&&n.record&&(r=Et.__PosthogExtensions__)!=null&&r.initSessionRecording?this.hr(t):(i=Et.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this._instance,this.dr,(s=>{if(s)return Qg.error("could not load recorder",s);this.hr(t)})))}stopRecording(){var t,n;(t=this.lr)==null||t.call(this),this.lr=void 0,(n=this.sr)==null||n.stop()}vr(){var t;(t=this._instance.persistence)==null||t.unregister(Hq)}cr(t){if(this._instance.persistence){var n,r,i=this._instance.persistence,s=()=>{var o=t.sessionRecording===!1?void 0:t.sessionRecording,a=o?.sampleRate,l=dr(a)?null:parseFloat(a);dr(l)&&this.vr();var f=o?.minimumDurationMilliseconds;i.register({[VC]:We({enabled:!!o},o,{networkPayloadCapture:We({capturePerformance:t.capturePerformance},o?.networkPayloadCapture),canvasRecording:{enabled:o?.recordCanvas,fps:o?.canvasFps,quality:o?.canvasQuality},sampleRate:l,minimumDurationMilliseconds:Le(f)?null:f,endpoint:o?.endpoint,triggerMatchType:o?.triggerMatchType,masking:o?.masking,urlTriggers:o?.urlTriggers})})};s(),(n=this.lr)==null||n.call(this),this.lr=(r=this._instance.sessionManager)==null?void 0:r.onSessionId(s)}}onRemoteConfig(t){"sessionRecording"in t?t.sessionRecording!==!1?(this.cr(t),this.nr=!0,this.startIfEnabledOrStop()):this.nr=!0:Qg.info("skipping remote config with no sessionRecording",t)}log(t,n){var r;n===void 0&&(n="log"),(r=this.sr)!=null&&r.log?this.sr.log(t,n):Qg.warn("log called before recorder was ready")}get dr(){var t,n,r=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(VC);return(r==null||(n=r.scriptConfig)==null?void 0:n.script)||"lazy-recorder"}hr(t){var n,r;if((n=Et.__PosthogExtensions__)==null||!n.initSessionRecording)throw Error("Called on script loaded before session recording is available");this.sr||(this.sr=(r=Et.__PosthogExtensions__)==null?void 0:r.initSessionRecording(this._instance),this.sr._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this.sr.start(t)}onRRwebEmit(t){var n;(n=this.sr)==null||n.onRRwebEmit==null||n.onRRwebEmit(t)}overrideLinkedFlag(){var t,n;this.sr||(n=this._instance.persistence)==null||n.register({$replay_override_linked_flag:!0}),(t=this.sr)==null||t.overrideLinkedFlag()}overrideSampling(){var t,n;this.sr||(n=this._instance.persistence)==null||n.register({$replay_override_sampling:!0}),(t=this.sr)==null||t.overrideSampling()}overrideTrigger(t){var n,r;this.sr||(r=this._instance.persistence)==null||r.register({[t==="url"?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}
529),(n=this.sr)==null||n.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.sr)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,n){var r;return!((r=this.sr)==null||!r.tryAddCustomEvent(t,n))}}var Fm={},Qk=()=>{},th="posthog",F7=!O1e&&vs?.indexOf("MSIE")===-1&&vs?.indexOf("Mozilla")===-1,Z2=e=>{var t;return We({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:xTe(Pe?.location),persistence:"localStorage+cookie",persistence_name:"",loaded:Qk,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,debug:ys&&ai(ys?.search)&&ys.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(ge==null||(t=ge.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:n=>{var r="Bad HTTP status: "+n.statusCode+" "+n.text;$e.error(r)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:Zk},error_tracking:{},_onCapture:Qk,__preview_eager_load_replay:!1},(n=>({rageclick:!(n&&n>="2025-11-30")||{content_ignorelist:!0},capture_pageview:!(n&&n>="2025-05-24")||"history_change",session_recording:n&&n>="2025-11-30"?{strictMinimumDuration:!0}:{}}))(e))},J2=e=>{var t={};Le(e.process_person)||(t.person_profiles=e.process_person),Le(e.xhr_headers)||(t.request_headers=e.xhr_headers),Le(e.cookie_name)||(t.persistence_name=e.cookie_name),Le(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),Le(e.store_google)||(t.save_campaign_params=e.store_google),Le(e.verbose)||(t.debug=e.verbose);var n=Ur({},t,e);return tr(e.property_blacklist)&&(Le(e.property_denylist)?n.property_denylist=e.property_blacklist:tr(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:$e.error("Invalid value for property_denylist config: "+e.property_denylist)),n};class nxe{constructor(){this.__forceAllowLocalhost=!1}get pr(){return this.__forceAllowLocalhost}set pr(t){$e.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class qw{get decideEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){this.webPerformance=new nxe,this.gr=!1,this.version=rc.LIB_VERSION,this._r=new SN,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=Z2(),this.SentryIntegration=e1e,this.sentryIntegration=t=>(function(n,r){var i=o7(n,r);return{name:s7,processEvent:s=>i(s)}})(this,t),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.mr=!1,this.yr=null,this.br=null,this.wr=null,this.featureFlags=new D1e(this),this.toolbar=ne
529w n1e(this),this.scrollManager=new W1e(this),this.pageViewManager=new E1e(this),this.surveys=new z1e(this),this.experiments=new Mi(this),this.exceptions=new M1e(this),this.rateLimiter=new H1e(this),this.requestRouter=new Z1e(this),this.consent=new YTe(this),this.externalIntegrations=new txe(this),this.people={set:(t,n,r)=>{var i=ai(t)?{[t]:n}:t;this.setPersonProperties(i),r?.({})},set_once:(t,n,r)=>{var i=ai(t)?{[t]:n}:t;this.setPersonProperties(void 0,i),r?.({})}},this.on("eventCaptured",(t=>$e.info('send "'+t?.event+'"',t)))}init(t,n,r){if(r&&r!==th){var i,s=(i=Fm[r])!==null&&i!==void 0?i:new qw;return s._init(t,n,r),Fm[r]=s,Fm[th][r]=s,s}return this._init(t,n,r)}_init(t,n,r){var i;if(n===void 0&&(n={}),Le(t)||Mk(t))return $e.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},n.debug=this.$r(n.debug),this.Er=n,this.Sr=[],n.person_profiles&&(this.br=n.person_profiles),this.set_config(Ur({},Z2(n.defaults),J2(n),{name:r,token:t})),this.config.on_xhr_error&&$e.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:cc.GZipJS;var s=this.kr();this.persistence=new tA(this.config,s),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new tA(We({},this.config,{persistence:"sessionStorage"}),s);var o=We({},this.persistence.props),a=We({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Pr=new V1e((T=>this.Tr(T)),this.config.request_queue_config),this.Ir=new q1e(this),this.__request_queue=[];var l=this.config.cookieless_mode==="always"||this.config.cookieless_mode==="on_reject"&&this.consent.isExplicitlyOptedOut();if(l||(this.sessionManager=new Y2(this),this.sessionPropsManager=new W2(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?($e.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.Rr(l)}),0)):($e.info("Initializing extensions synchronously"),this.Rr(l)),rc.DEBUG=rc.DEBUG||this.config.debug,rc.DEBUG&&$e.info("Starting in debug mode",{this:this,config:n,thisC:We({},this.config),p:o,s:a}),((i=n.bootstrap)==null?void 0:i.distinctID)!==void 0){var f,d,p=this.config.get_device_id(xl()),m=(f=n.bootstrap)!=null&&f.isIdentifiedID?p:n.bootstrap.distinctID;this.persistence.set_property(ic,(d=n.bootstrap)!=null&&d.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:n.bootstrap.distinctID,$device_id:m})}if(this.Fr()){var _,v,E=Object.keys(((_=n.bootstrap)==null?void 0:_.featureFlags)||{}).filter((T=>{var R;return!((R=n.bootstrap)==null||(R=R.featureFlags)==null||!R[T])})).reduce(((T,R)=>{var C;return T[R]=((C=n.bootstrap)==null||(C=C.featureFlags)==null?void 0:C[R])||!1,T}),{}),b=Object.keys(((v=n.bootstrap)==null?void 0:v.featureFlagPayloads)||{}).filter((T=>E[T])).reduce(((T,R)=>{var C,k;return(C=n.bootstrap)!=null&&(C=C.featureFlagPayloads)!=null&&C[R]&&(T[R]=(k=n.bootstrap)==null||(k=k.featureFlagPayloads)==null?void 0:k[R]),T}),{});this.featureFlags.receivedFeatureFlags({featureFlags:E,featureFlagPayloads:b})}if(l)this.register_once({distinct_id:qg,$device_id:null},"");else if(!this.get_distinct_id()){var w=this.config.get_device_id(xl());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_property(ic,"anonymous")}return ni(ge,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),n.segment?QTe(this,(()=>this.Cr())):this.Cr(),Ll(this.config._onCapture)&&this.config._onCapture!==Qk&&($e.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(T=>this.config._onCapture(T.event,T)))),this.config.ip&&$e.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}Rr(t){var n=performance.now();this.historyAutocapture=new JTe(this),this.historyAutocapture.startIfEnabled();var r=[];r.push((()=>{new i1e(this).startIfEnabledOrStop()})),r.push((()=>{var i;this.siteApps=new K1e(this),(i=this.siteApps)==null||i.init()})),t||r.push((()=>{this.sessionRecording=new K2(this),this.sessionRecording.startIfEnabledOrStop()})),this.config.disable_scroll_properties||r.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),r.push((()=>{this.autocapture=new BTe(this),this.autocapture.startIfEnabled()})),r.push((()=>{this.surveys.loadIfEnabled()})),r.push((()=>{this.heatmaps=new S1e(this),this.heatmaps.startIfEnabled()})),r.push((()=>{this.webVitalsAutocapture=new y1e(this)})),r.push((()=>{this.exceptionObserver=new ZTe(this),this.exceptionObserver.startIfEnabled()})),r.push((()=>{this.deadClicksAutocapture=new i7(this,KTe),this.deadClicksAutocapture.startIfEnabled()})),r.push((()=>
529{if(this.Or){var i=this.Or;this.Or=void 0,this.fi(i)}})),this.Mr(r,n)}Mr(t,n){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&t.length>0)return void setTimeout((()=>{this.Mr(t,n)}),0);var r=t.shift();if(r)try{r()}catch(s){$e.error("Error initializing extension:",s)}}var i=Math.round(performance.now()-n);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",$sdk_debug_extensions_init_time_ms:i}),this.config.__preview_deferred_init_extensions&&$e.info("PostHog extensions initialized ("+i+"ms)")}fi(t){var n,r,i,s,o,a,l,f;if(!Pe||!Pe.body)return $e.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.fi(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Or=t),this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=Jt(t.supportedCompression,cc.GZipJS)?cc.GZipJS:Jt(t.supportedCompression,cc.Base64)?cc.Base64:void 0),(n=t.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.br?this.br:"identified_only"}),(r=this.siteApps)==null||r.onRemoteConfig(t),(i=this.sessionRecording)==null||i.onRemoteConfig(t),(s=this.autocapture)==null||s.onRemoteConfig(t),(o=this.heatmaps)==null||o.onRemoteConfig(t),this.surveys.onRemoteConfig(t),(a=this.webVitalsAutocapture)==null||a.onRemoteConfig(t),(l=this.exceptionObserver)==null||l.onRemoteConfig(t),this.exceptions.onRemoteConfig(t),(f=this.deadClicksAutocapture)==null||f.onRemoteConfig(t)}Cr(){try{this.config.loaded(this)}catch(t){$e.critical("`loaded` function failed",t)}this.Ar(),this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.config.cookieless_mode==="always")&&this.Dr()}),1),new j1e(this).load(),this.featureFlags.flags()}Ar(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Pr)==null||t.enable())}_dom_loaded(){this.is_capturing()&&Pl(this.__request_queue,(t=>this.Tr(t))),this.__request_queue=[],this.Ar()}_handle_unload(){var t,n;this.config.request_batching?(this.jr()&&this.capture("$pageleave"),(t=this.Pr)==null||t.unload(),(n=this.Ir)==null||n.unload()):this.jr()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}ci(t){this.__loaded&&(F7?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=pE(t.url,{ip:this.config.ip?1:0}),t.headers=We({},this.config.request_headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(n=>{var r,i,s,o=We({},n);o.timeout=o.timeout||6e4,o.url=pE(o.url,{_:new Date().getTime().toString(),ver:rc.LIB_VERSION,compression:o.compression});var a=(r=o.transport)!==null&&r!==void 0?r:"fetch",l=XS.filter((d=>!o.disableTransport||!d.transport||!o.disableTransport.includes(d.transport))),f=(i=(s=Uq(l,(d=>d.transport===a)))==null?void 0:s.method)!==null&&i!==void 0?i:l[0].method;if(!f)throw new Error("No available transport method");f(o)})(We({},t,{callback:n=>{var r,i;this.rateLimiter.checkForLimiting(n),n.statusCode>=400&&((r=(i=this.config).on_request_error)==null||r.call(i,n)),t.callback==null||t.callback(n)}}))))}Tr(t){this.Ir?this.Ir.retriableRequest(t):this.ci(t)}_execute_array(t){var n,r=[],i=[],s=[];Pl(t,(a=>{a&&(n=a[0],tr(n)?s.push(a):Ll(a)?a.call(this):tr(a)&&n==="alias"?r.push(a):tr(a)&&n.indexOf("capture")!==-1&&Ll(this[n])?s.push(a):i.push(a))}));var o=function(a,l){Pl(a,(function(f){if(tr(f[0])){var d=l;er(f,(function(p){d=d[p[0]].apply(d,p.slice(1))}))}else this[f[0]].apply(this,f.slice(1))}),l)};o(r,this),o(i,this),o(s,this)}Fr(){var t,n;return((t=this.config.bootstrap)==null?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)==null?void 0:n.featureFlags).length>0||!1}push(t){this._execute_array([t])}capture(t,n,r){var i;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Pr){if(this.is_capturing())if(!Le(t)&&ai(t)){var s=!this.config.opt_out_useragent_filter&&this._is_bot();if(!(s&&!this.config.__preview_capture_bot_pageviews)){var o=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(o==null||!o.isRateLimited){n!=null&&n.$current_url&&!ai(n?.$current_url)&&($e.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var a=new Date,l=r?.timestamp||a,f=xl(),d={uuid:f,event:t,properties:this.calculateEventProperties(t,n||{},l,f)};t==="$pageview"&&this.config.__preview_capture_bot_pageviews&&s&&(d.event="$bot_pageview",d.properties.$browser_type="bot"),o&&(d.properties.$lib_rate_limit_remaining_tokens=o.remainingTokens),r?.$set&&(d.$set=r?.$set);var p,m=this.Lr(r?.$set_once);if(m&&(d.$set_once=m),(d=wTe(d,r!=null&&r._noTruncate?null:this.config.properties_string_max_length)).timestamp=l,Le(r?.timestamp)||(d.properties.$event_time_override_provided=!0,d.properties.$event_time_override_system_time=a),t===KS.DISMISSED||t===KS.SENT){var _=n?.[V2.SURVEY_ID],v=n?.[V2.SURVEY_ITERATION];p={id:_,current_iteration:v},localStorage.getItem(G2(p))||localStorage.setItem(G2(p),"true"),d.$set=We({},d.$set,{[$1e({id:_,current_iteration:v},t===KS.SENT?"responded":"dismissed")]:!0})}var E=We({},d.properties.$set,d.$set);if(fh(E)||this.setPersonPropertiesForFlags(E),!dr(this.config.before_send)){var b=this.Nr(d);if(!b)return;d=b}this._r.emit("eventCaptured",d);var w={method:"POST",url:(i=r?._url)!==null&&i!==void 0?i:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:d,compression:"best-available",batchKey:r?._batchKey};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this.Tr(w):this.Pr.enqueue(w),d}$e.critical("This capture call is ignored due to client rate limiting.")}}else $e.error("No event name provided to posthog.capture")}else $e.uninitializedWarning("posthog.capture")}Mi(t){return this.on("eventCaptured",(n=>t(n.event,n)))}calculateEventProperties(t,n,r,i,s){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;var o=s?void 0:this.persistence.remove_event_timer(t),a=We({},n);if(a.token=this.config.token,a.$config_defaults=this.config.defaults,(this.config.cookieless_mode=="always"||this.config.cookieless_mode=="on_reject"&&this.consent.isExplicitlyOptedOut())&&(a.$cookieless_mode=!0),t==="$snapshot"){var l=We({},this.persistence.properties(),this.sessionPersistence.properties());return a.distinct_id=l.distinct_id,(!ai(a.distinct_id)&&!wa(a.distinct_id)||Mk(a.distinct_id))&&$e.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),a}var f,d=v1e(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:p,windowId:m}=this.sessionManager.checkAndGetSessionAndWindowId(s,r.getTime());a.$session_id=p,a.$window_id=m}this.sessionPropsManager&&Ur(a,this.sessionPropsManager.getSessionProps());try{var _;this.sessionRecording&&Ur(a,this.sessionRecording.sdkDebugProperties),a.$sdk_debug_retry_queue_size=(_=this.Ir)==null?void 0:_.length}catch(w){a.$sdk_debug_error_capturing_properties=String(w)}if(this.requestRouter.region===Em.CUSTOM&&(a.$lib_custom_api_host=this.config.api_host),f=t!=="$pageview"||s?t!=="$pageleave"||s?this.pageViewM
vendor: 12,106 bytes, line 529
529anager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,i),a=Ur(a,f),t==="$pageview"&&Pe&&(a.title=Pe.title),!Le(o)){var v=r.getTime()-o;a.$duration=parseFloat((v/1e3).toFixed(3))}vs&&this.config.opt_out_useragent_filter&&(a.$browser_type=this._is_bot()?"bot":"browser"),(a=Ur({},d,this.persistence.properties(),this.sessionPersistence.properties(),a)).$is_identified=this._isIdentified(),tr(this.config.property_denylist)?er(this.config.property_denylist,(function(w){delete a[w]})):$e.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var E=this.config.sanitize_properties;E&&($e.error("sanitize_properties is deprecated. Use before_send instead"),a=E(a,t));var b=this.Ur();return a.$process_person_profile=b,b&&!s&&this.zr("_calculate_event_properties"),a}Lr(t){var n;if(!this.persistence||!this.Ur()||this.gr)return t;var r=this.persistence.get_initial_props(),i=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),s=Ur({},r,i||{},t||{}),o=this.config.sanitize_properties;return o&&($e.error("sanitize_properties is deprecated. Use before_send instead"),s=o(s,"$set_once")),this.gr=!0,fh(s)?void 0:s}register(t,n){var r;(r=this.persistence)==null||r.register(t,n)}register_once(t,n,r){var i;(i=this.persistence)==null||i.register_once(t,n,r)}register_for_session(t){var n;(n=this.sessionPersistence)==null||n.register(t)}unregister(t){var n;(n=this.persistence)==null||n.unregister(t)}unregister_for_session(t){var n;(n=this.sessionPersistence)==null||n.unregister(t)}Hr(t,n){this.register({[t]:n})}getFeatureFlag(t,n){return this.featureFlags.getFeatureFlag(t,n)}getFeatureFlagPayload(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}isFeatureEnabled(t,n){return this.featureFlags.isFeatureEnabled(t,n)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(t,n,r){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n,r)}getEarlyAccessFeatures(t,n,r){return n===void 0&&(n=!1),this.featureFlags.getEarlyAccessFeatures(t,n,r)}on(t,n){return this._r.on(t,n)}onFeatureFlags(t){return this.featureFlags.onFeatureFlags(t)}onSurveysLoaded(t){return this.surveys.onSurveysLoaded(t)}onSessionId(t){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(t))!==null&&n!==void 0?n:()=>{}}getSurveys(t,n){n===void 0&&(n=!1),this.surveys.getSurveys(t,n)}getActiveMatchingSurveys(t,n){n===void 0&&(n=!1),this.surveys.getActiveMatchingSurveys(t,n)}renderSurvey(t,n){this.surveys.renderSurvey(t,n)}displaySurvey(t,n){n===void 0&&(n=U1e),this.surveys.displaySurvey(t,n)}canRenderSurvey(t){return this.surveys.canRenderSurvey(t)}canRenderSurveyAsync(t,n){return n===void 0&&(n=!1),this.surveys.canRenderSurveyAsync(t,n)}identify(t,n,r){if(!this.__loaded||!this.persistence)return $e.uninitializedWarning("posthog.identify");if(wa(t)&&(t=t.toString(),$e.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),t)if(["distinct_id","distinctid"].includes(t.toLowerCase()))$e.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(t!==qg){if(this.zr("posthog.identify")){var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var s=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:s},"")}t!==i&&t!==this.get_property(mm)&&(this.unregister(mm),this.register({distinct_id:t}));var o=(this.persistence.get_property(ic)||"anonymous")==="anonymous";t!==i&&o?(this.persistence.set_property(ic,"identified"),this.setPersonPropertiesForFlags(We({},r||{},n||{}),!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.wr=B2(t,n,r),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(iE))}}else $e.critical('The string "'+qg+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else $e.error("Unique user id has not been set in posthog.identify")}setPersonProperties(t,n){if((t||n)&&this.zr("posthog.setPersonProperties")){var r=B2(this.get_distinct_id(),t,n);this.wr!==r?(this.setPersonPropertiesForFlags(We({},n||{},t||{})),this.capture("$set",{$set:t||{},$set_once:n||{}}),this.wr=r):$e.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,n,r){if(t&&n){if(this.zr("posthog.group")){var i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:We({},i,{[t]:n})}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags({[t]:r})),i[t]===n||r||this.reloadFeatureFlags()}}else $e.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,n){n===void 0&&(n=!0),this.featureFlags.setPersonPropertiesForFlags(t,n)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,n){n===void 0&&(n=!0),this.zr("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(t,n)}resetGroupPropertiesForFlags(t){this.featureFlags.resetGroupPropertiesForFlags(t)}reset(t){var n,r,i,s;if($e.info("reset"),!this.__loaded)return $e.uninitializedWarning("posthog.reset");var o=this.get_property("$device_id");if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(r=this.sessionPersistence)==null||r.clear(),this.surveys.reset(),this.featureFlags.reset(),(i=this.persistence)==null||i.set_property(ic,"anonymous"),(s=this.sessionManager)==null||s.resetSessionId(),this.wr=null,this.config.cookieless_mode==="always")this.register_once({distinct_id:qg,$device_id:null},"");else{var a=this.config.get_device_id(xl());this.register_once({distinct_id:a,$device_id:t?a:o},"")}this.register({$last_posthog_reset:new Date().toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,n;return(t=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(t!=null&&t.withTimestamp&&r){var s,o=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!r)return i;i+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-o,0)}return i}alias(t,n){return t===this.get_property(Bq)?($e.critical("Attempting to create alias for existing People user - aborting."),-2):this.zr("posthog.alias")?(Le(n)&&(n=this.get_distinct_id()),t!==n?(this.Hr(mm,t),this.capture("$create_alias",{alias:t,distinct_id:n})):($e.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var n=We({},this.config);if(Ti(t)){var r,i,s,o,a;Ur(this.config,J2(t));var l=this.kr();(r=this.persistence)==null||r.update_config(this.config,n,l),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new tA(We({},this.config,{persistence:"sessionStorage"}),l);var f=this.$r(this.config.debug);Dl(f)&&(this.config.debug=f),Dl(this.config.debug)&&(this.config.debug?(rc.DEBUG=!0,wr.H()&&wr.G("ph_debug","true"),$e.info("set_config",{config:t,oldConfig:n,newConfig:We({},this.config)})):(rc.DEBUG=!1,wr.H()&&wr.V("ph_debug"))),(i=this.sessionRecording)==null||i.startIfEnabledOrStop(),(s=this.autocapture)==null||s.startIfEnabled(),(o=this.heatmaps)==null||o.startIfEnabled(),this.surveys.loadIfEnabled(),this.Br(),(a=this.externalIntegrations)==null||a.startIfEnabledOrStop()}}startSessionRecording(t){var n=t===!0,r={sampling:n||!(t==null||!t.sampling),linked_flag:n||!(t==null||!t.linked_flag),url_trigger:n||!(t==null||!t.url_trigger),event_trigger:n||!(t==null||!t.event_trigger)};if(Object.values(r).some(Boolean)){var i,s,o,a,l;(i=this.sessionManager)==null||i.checkAndGetSessionAndWindowId(),r.sampling&&((s=this.sessionRecording)==null||s.overrideSampling()),r.linked_flag&&((o=this.sessionRecording)==null||o.overrideLinkedFlag()),r.url_trigger&&((a=this.sessionRecording)==null||a.overrideTrigger("url")),r.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))}this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,n){var r=new Error("PostHog syntheticException"),i=this.exceptions.buildProperties(t,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(We({},i,n))}loadToolbar(t){return this.toolbar.loadToolbar(t)}get_property(t){var n;return(n=this.persistence)==null?void 0:n.props[t]}getSessionProperty(t){var n;return(n=this.sessionPersistence)==null?void 0:n.props[t]}toString(){var t,n=(t=this.config.name)!==null&&t!==void 0?t:th;return n!==th&&(n=th+"."+n),n}_isIdentified(){var t,n;return((t=this.persistence)==null?void 0:t.get_property(ic))==="identified"||((n=this.sessionPersistence)==null?void 0:n.get_property(ic))==="identified"}Ur(){var t,n;return!(this.config.person_profiles==="never"||this.config.person_profiles==="identified_only"&&!this._isIdentified()&&fh(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[mm])&&((n=this.persistence)==null||(n=n.props)==null||!n[oE]))}jr(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.Ur()||this.zr("posthog.createPersonProfile")&&this.setPersonProperties({},{})}zr(t){return this.config.person_profiles==="never"?($e.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Hr(oE,!0),!0)}kr(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut(),n=this.config.opt_out_persistence_by_default||this.config.cookieless_mode==="on_reject";return this.config.disable_persistence||t&&!!n}Br(){var t,n,r,i,s=this.kr();return((t=this.persistence)==null?void 0:t.wi)!==s&&((r=this.persistence)==null||r.set_disabled(s)),((n=this.sessionPersistence)==null?void 0:n.wi)!==s&&((i=this.sessionPersistence)==null||i.set_disabled(s)),s}opt_in_capturing(t){if(this.config.cookieless_mode!=="always"){var n,r;this.config.cookieless_mode==="on_reject"&&this.consent.isExplicitlyOptedOut()&&(this.reset(!0),(n=this.sessionManager)==null||n.destroy(),this.sessionManager=new Y2(this),this.persistence&&(this.sessionPropsManager=new W2(this,this.sessionManager,this.persistence)),this.sessionRecording=new K2(this),this.sessionRecording.startIfEnabledOrStop()),this.consent.optInOut(!0),this.Br(),this.Ar(),this.config.cookieless_mode=="on_reject"&&this.surveys.loadIfEnabled(),(Le(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((r=t?.captureEventName)!==null&&r!==void 0?r:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Dr()}else $e.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var t,n;this.config.cookieless_mode!=="always"?(this.config.cookieless_mode==="on_reject"&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.Br(),this.config.cookieless_mode==="on_reject"&&(this.register({distinct_id:qg,$device_id:null}),(t=this.sessionManager)==null||t.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(n=this.sessionRecording)==null||n.stopRecording(),this.sessionRecording=void 0,this.Dr())):$e.warn('Consent opt in/out is not val
529id with cookieless_mode="always" and will be ignored')}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===sc.GRANTED?"granted":t===sc.DENIED?"denied":"pending"}is_capturing(){return this.config.cookieless_mode==="always"||(this.config.cookieless_mode==="on_reject"?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.Br()}_is_bot(){return Fs?$7(Fs,this.config.custom_blocked_useragents):void 0}Dr(){Pe&&(Pe.visibilityState==="visible"?this.mr||(this.mr=!0,this.capture("$pageview",{title:Pe.title},{send_instantly:!0}),this.yr&&(Pe.removeEventListener("visibilitychange",this.yr),this.yr=null)):this.yr||(this.yr=this.Dr.bind(this),ni(Pe,"visibilitychange",this.yr)))}debug(t){t===!1?(ge?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(ge?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}M(){var t,n,r,i,s,o,a,l=this.Er||{};return"advanced_disable_flags"in l?!!l.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?($e.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(r="advanced_disable_decide",i=!1,s=$e,o=(n="advanced_disable_flags")in(t=l)&&!Le(t[n]),a=r in t&&!Le(t[r]),o?t[n]:a?(s&&s.warn("Config field '"+r+"' is deprecated. Please use '"+n+"' instead. The old field will be removed in a future major version."),t[r]):i)}Nr(t){if(dr(this.config.before_send))return t;var n=tr(this.config.before_send)?this.config.before_send:[this.config.before_send],r=t;for(var i of n){if(r=i(r),dr(r)){var s="Event '"+t.event+"' was rejected in beforeSend function";return Kwe(t.event)?$e.warn(s+". This can cause unexpected behavior."):$e.info(s),null}r.properties&&!fh(r.properties)||$e.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var t;return(t=this.pageViewManager.Vt)==null?void 0:t.pageViewId}captureTraceFeedback(t,n){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:n})}captureTraceMetric(t,n,r){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:n,$ai_metric_value:String(r)})}$r(t){var n=Dl(t)&&!t,r=wr.H()&&wr.q("ph_debug")==="true";return!n&&(!!r||t)}}(function(e,t){for(var n=0;n<t.length;n++)e.prototype[t[n]]=ETe(e.prototype[t[n]])})(qw,["identify"]);var Q2,io=(Q2=Fm[th]=new qw,(function(){function e(){e.done||(e.done=!0,F7=!1,er(Fm,(function(t){t._dom_loaded()})))}Pe!=null&&Pe.addEventListener?Pe.readyState==="complete"?e():ni(Pe,"DOMContentLoaded",e,{capture:!1}):ge&&$e.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),Q2),EN=D.createContext({client:io,bootstrap:void 0});function U7(e,t,n){if(n===void 0&&(n=new WeakMap),e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(n.has(e)&&n.get(e)===t)return!0;n.set(e,t);var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var s=0,o=r;s<o.length;s++){var a=o[s];if(!i.includes(a)||!U7(e[a],t[a],n))return!1}return!0}function rxe(e){var t,n,r=e.children,i=e.client,s=e.apiKey,o=e.options,a=D.useRef(null),l=D.useMemo(function(){return i?(s&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),o&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),i):(s||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),io)},[i,s,JSON.stringify(o)]);return D.useEffect(function(){if(!i){var f=a.current;f?(s!==f.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),o&&!U7(o,f.options)&&io.set_config(o),a.current={apiKey:s,options:o??{}}):(io.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),io.init(s,o),a.current={apiKey:s,options:o??{}})}},[i,s,JSON.stringify(o)]),la.createElement(EN.Provider,{value:{client:l,bootstrap:(t=o?.bootstrap)!==null&&t!==void 0?t:(n=i?.config)===null||n===void 0?void 0:n.bootstrap}},r)}var iA=function(e){return typeof e=="function"},ixe=function(){var e=D.useContext(EN).client;return e}
529,eI=function(e,t){return eI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},eI(e,t)};function sxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");eI(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var oxe={componentStack:null,exceptionEvent:null,error:null},axe={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};(function(e){sxe(t,e);function t(n){var r=e.call(this,n)||this;return r.state=oxe,r}return t.prototype.componentDidCatch=function(n,r){var i=this.props.additionalProperties,s;iA(i)?s=i(n):typeof i=="object"&&(s=i);var o=this.context.client,a=o.captureException(n,s),l=r.componentStack;this.setState({error:n,componentStack:l,exceptionEvent:a})},t.prototype.render=function(){var n=this.props,r=n.children,i=n.fallback,s=this.state;if(s.componentStack==null)return iA(r)?r():r;var o=iA(i)?la.createElement(i,{error:s.error,componentStack:s.componentStack,exceptionEvent:s.exceptionEvent}):i;return la.isValidElement(o)?o:(console.warn(axe.INVALID_FALLBACK),la.createElement(la.Fragment,null))},t.contextType=EN,t})(la.Component);const cxe=ct("https://us.i.posthog.com"),lxe=ct("phc_qgxn9IH7LL0PWTQv12DQa6j65d7bSpkTG2nfTpVtJOW");function uxe({children:e}){const t=jf();return D.useLayoutEffect(()=>(io.init(lxe,{api_host:cxe,person_profiles:"always"}),io.startSessionRecording(),()=>{io.stopSessionRecording(),io.reset()}),[]),D.useEffect(()=>{typeof t.data>"u"||t.data.id!==null&&io.identify(t.data.id.toString(),t.data)},[t]),q.jsx(rxe,{client:io,children:e})}const B7=D.createContext(null);function fxe({children:e}){const[t,n]=D.useState(null);return D.useLayoutEffect(()=>{n(window)},[]),q.jsx(B7.Provider,{value:t,children:q.jsx(D6.Provider,{value:t,children:e})})}const dxe=Cwe(kne,une,mre,lbe,Gwe,fxe,Xne,uxe,Hye,Hwe,Twe)(D.Fragment),Ww={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},lc=console,nh={};Object.keys(Ww).forEach(e=>{nh[e]=lc[e]});const em="Datadog Browser SDK:",Ft={debug:nh.debug.bind(lc,em),log:nh.log.bind(lc,em),info:nh.info.bind(lc,em),warn:nh.warn.bind(lc,em),error:nh.error.bind(lc,em)},Yw="https://docs.datadoghq.com",hxe=`${Yw}/real_user_monitoring/browser/troubleshooting`,wN="More details:";function z7(e,t){return(...n)=>{try{return e(...n)}catch(r){Ft.error(t,r)}}}function pf(e){return e!==0&&Math.random()*100<=e}function Um(e,t){return+e.toFixed(t)}function pxe(e){return Rv(e)&&e>=0&&e<=100}function Rv(e){return typeof e=="number"}function E_(e){return{...e}}function gE(e,t){return Object.keys(e).some(n=>e[n]===t)}function cu(e){return Object.keys(e).length===0}function H7(e,t){const n={};for(const r of Object.keys(e))n[r]=t(e[r]);return n}function So(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let e=_dd_temp_;return delete Object.prototype._dd_temp_,typeof e!="object"&&(typeof self=="object"?e=self:typeof window=="object"?e=window:e={}),e}const Ta=So(),Xw="WorkerGlobalScope"in Ta;function ql(e,t){const n=So();let r;return n.Zone&&typeof n.Zone.__symbol__=="function"&&(r=e[n.Zone.__symbol__(t)]),r||(r=e[t]),r}let tI,j7=!1;function gxe(e){tI=e}function mxe(e){j7=e}function Ht(e){return function(){return Fl(e,this,arguments)}}function Fl(e,t,n){try{return e.apply(t,n)}catch(r){Wl(r)}}function Wl(e){if(nI(e),tI)try{tI(e)}catch(t){nI(t)}}function nI(...e){j7&&Ft.error("[MONITOR]",...e)}function Fi(e,t){return ql(So(),"setTimeout")(Ht(e),t)}function oo(e){ql(So(),"clearTimeout")(e)}function Fp(e,t){return ql(So(),"setInterval")(Ht(e),t)}function Kw(e){ql(So(),"clearInterval")(e)}function e5(e){var t;const n=(t=Ta.queueMicrotask)===null||t===void 0?void 0:t.bind(Ta);typeof n=="function"?n(Ht(e)):Promise.resolve().then(Ht(e))}class mn{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}
529notify(t){this.observers.forEach(n=>n(t))}addObserver(t){this.observers.push(t),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(n=>t!==n),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function V7(...e){return new mn(t=>{const n=e.map(r=>r.subscribe(i=>t.notify(i)));return()=>n.forEach(r=>r.unsubscribe())})}class G7 extends mn{constructor(t){super(),this.maxBufferSize=t,this.buffer=[]}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(t)}subscribe(t){let n=!1;const r={unsubscribe:()=>{n=!0,this.removeObserver(t)}};return e5(()=>{for(const i of this.buffer){if(n)return;t(i)}n||this.addObserver(t)}),r}unbuffer(){e5(()=>{this.maxBufferSize=this.buffer.length=0})}}const zi=1e3,ss=60*zi,q7=60*ss,_xe=24*q7,W7=365*_xe;function Zw(e){return{relative:e,timeStamp:yxe(e)}}function vxe(e){return{relative:TN(e),timeStamp:e}}function yxe(e){const t=ts()-performance.now();return t>kv()?Math.round(Up(t,e)):Sxe(e)}function bxe(){return Math.round(ts()-Up(kv(),performance.now()))}function Bt(e){return Rv(e)?Um(e*1e6,0):e}function ts(){return new Date().getTime()}function Ai(){return ts()}function Bs(){return performance.now()}function vi(){return{relative:Bs(),timeStamp:Ai()}}function Y7(){return{relative:0,timeStamp:kv()}}function jr(e,t){return t-e}function Up(e,t){return e+t}function TN(e){return e-kv()}function Sxe(e){return Math.round(Up(kv(),e))}function Exe(e){return e<W7}let sA;function kv(){var e,t;return sA===void 0&&(sA=(t=(e=performance.timing)===null||e===void 0?void 0:e.navigationStart)!==null&&t!==void 0?t:performance.timeOrigin),sA}
529function Jw(e,t,n){const r=n&&n.leading!==void 0?n.leading:!0,i=n&&n.trailing!==void 0?n.trailing:!0;let s=!1,o,a;return{throttled:(...l)=>{if(s){o=l;return}r?e(...l):o=l,s=!0,a=Fi(()=>{i&&o&&e(...o),s=!1,o=void 0},t)},cancel:()=>{oo(a),s=!1,o=void 0}}}function Ln(){}function Ui(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,Ui)}const rp=/([\w-]+)\s*=\s*([^;]+)/g;function w_(e,t){for(rp.lastIndex=0;;){const n=rp.exec(e);if(n){if(n[1]===t)return n[2]}else break}}function wxe(e){const t=new Map;for(rp.lastIndex=0;;){const n=rp.exec(e);if(n){const r=n[1],i=n[2];t.has(r)?t.get(r).push(i):t.set(r,[i])}else break}return t}function Txe(e){const t=new Map;for(rp.lastIndex=0;;){const n=rp.exec(e);if(n)t.set(n[1],n[2]);else break}return t}function xN(e,t,n=""){const r=e.charCodeAt(t-1),s=r>=55296&&r<=56319?t+1:t;return e.length<=s?e:`${e.slice(0,s)}${n}`}function xxe(){return X7()===0}function ZGe(){return X7()===1}let Nb;function X7(){return Nb??(Nb=Cxe())}function Cxe(e=window){var t;const n=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(n)?0:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?1:2}function CN(e){return Qw(e,location.href).href}function Axe(e){try{return!!Qw(e)}catch{return!1}}function Rxe(e){const t=Qw(e).pathname;return t[0]==="/"?t:`/${t}`}function Qw(e,t){const{URL:n}=kxe();try{return t!==void 0?new n(e,t):new n(e)}catch(r){throw new Error(`Failed to construct URL: ${String(r)}`)}}let oA;function kxe(){if(!oA){let e,t;try{e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e),t=e.contentWindow}catch{t=Ta}oA={URL:t.URL},e?.remove()}return oA}function eT(e,t,n=0,r){const i=new Date;i.setTime(i.getTime()+n);const s=`expires=${i.toUTCString()}`,o=r&&r.crossSite?"none":"strict",a=r&&r.domain?`;domain=${r.domain}`:"",l=r&&r.secure?";secure":"",f=r&&r.partitioned?";partitioned":"";document.cookie=`${e}=${t};${s};path=/;samesite=${o}${a}${l}${f}`}function tT(e){return w_(document.cookie,e)}function Ixe(e){return wxe(document.cookie).get(e)||[]}let aA;function Cl(e){return aA||(aA=Txe(document.cookie)),aA.get(e)}function K7(e,t){eT(e,"",0,t)}function Oxe(e){if(document.cookie===void 0||document.cookie===null)return!1;try{const t=`dd_cookie_test_${Ui()}`,n="test";eT(t,n,ss,e);const r=tT(t)===n;return K7(t,e),r}catch(t){return Ft.error(t),!1}}let cA;function Z7(e=location.hostname,t=document.referrer){if(cA===void 0){const n=Mxe(e,t);if(n){const r=`dd_site_test_${Ui()}`,i="test",s=n.split(".");let o=s.pop();for(;s.length&&!tT(r);)o=`${s.pop()}.${o}`,eT(r,i,zi,{domain:o});K7(r,{domain:o}),cA=o}}return cA}function Mxe(e,t){try{return e||Qw(t).hostname}catch{}}const Ac="_dd_s";function J7(e,t){for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(t(r,n,e))return r}}function Q7(e){return Object.values(e)}function AN(e){return Object.entries(e)}const Xf=4*q7,e9=15*ss,Nxe=W7,t9="0",ip={COOKIE:"cookie",LOCAL_STORAGE:"local-storage"},n9=/^([a-zA-Z]+)=([a-z0-9-]+)$/,RN="&";function Lxe(e){return!!e&&(e.indexOf(RN)!==-1||n9.test(e))}const Dxe="1";function of(e,t){const n={isExpired:Dxe};return t.trackAnonymousUser&&e?.anonymousId&&(n.anonymousId=e?.anonymousId),n}function ZS(e){return cu(e)}function r9(e){return!ZS(e)}function Bm(e){return e.isExpired!==void 0||!Pxe(e)}function Pxe(e){return(e.created===void 0||ts()-Number(e.created)<Xf)&&(e.expire===void 0||ts()<Number(e.expire))}function i9(e){e.expire=String(ts()+e9)}function rI(e){return AN(e).map(([t,n])=>t==="anonymousId"?`aid=${n}`:`${t}=${n}`).join(RN)}function nT(e){const t={};return Lxe(e)&&e.split(RN).forEach(n=>{const r=n9.exec(n);if(r!==null){const[,i,s]=r;i==="aid"?t.anonymousId=s:t[i]=s}}),t}const $xe="_dd",Fxe="_dd_r",Uxe="_dd_l",Bxe="rum",zxe="logs";function Hxe(e){if(!Cl(Ac)){const n=Cl($xe),r=Cl(Fxe),i=Cl(Uxe),s={};n&&(s.id=n),i&&/^[01]$/.test(i)&&(s[zxe]=i),r&&/^[012]$/.test(r)&&(s[Bxe]=r),r9(s)&&(i9(s),e.persistSession(s))}}const jxe=0;function t5(e){const t=Gxe(e);return t&&Oxe(t)?{type:ip.COOKIE,cookieOptions:t}:void 0}function Vxe(e,t){const n={isLockEnabled:xxe(),persistSession:r=>n5(t,e,r,e9),retrieveSession:()=>s9(t,e),expireSession:r=>n5(t,e,of(r,e),Xf)};return Hxe(n),n}function n5(e,t,n,r){let i=rI(n);t.betaEncodeCookieOptions&&(i=rI({...n,...cu(n)?{}:{c:o9(e)}}
529)),eT(Ac,i,t.trackAnonymousUser?Nxe:r,e)}function s9(e,t){if(t.betaEncodeCookieOptions)return qxe(e);const n=tT(Ac);return nT(n)}function Gxe(e){const t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){const n=Z7();if(!n)return;t.domain=n}return t}function o9(e){const t=e.domain?e.domain.split(".").length-1:0;let n=0;return n|=jxe<<5,n|=t<<1,n|=e.crossSite?1:0,n.toString(16)}function qxe(e){const t=Ixe(Ac),n=o9(e);let r;for(const i of t.reverse())if(r=nT(i),r.c===n)break;return r==null||delete r.c,r??{}}const Wxe="_dd_test_";function r5(){try{const e=Ui(),t=`${Wxe}${e}`;localStorage.setItem(t,e);const n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:ip.LOCAL_STORAGE}:void 0}catch{return}}function Yxe(e){return{isLockEnabled:!1,persistSession:a9,retrieveSession:c9,expireSession:t=>Xxe(t,e)}}function a9(e){localStorage.setItem(Ac,rI(e))}function c9(){const e=localStorage.getItem(Ac);return nT(e)}function Xxe(e,t){a9(of(e,t))}const Kxe=10,Zxe=100,Jxe=zi,l9="--",u9=[];let JS;function af(e,t,n=0){var r;const{isLockEnabled:i,persistSession:s,expireSession:o}=t,a=m=>s({...m,lock:f}),l=()=>{const{lock:m,..._}=t.retrieveSession();return{session:_,lock:m&&!eCe(m)?m:void 0}};if(JS||(JS=e),e!==JS){u9.push(e);return}if(i&&n>=Zxe){i5(t);return}let f,d=l();if(i){if(d.lock){Lb(e,t,n);return}if(f=Qxe(),a(d.session),d=l(),d.lock!==f){Lb(e,t,n);return}}let p=e.process(d.session);if(i&&(d=l(),d.lock!==f)){Lb(e,t,n);return}if(p&&(Bm(p)?o(p):(i9(p),i?a(p):s(p))),i&&!(p&&Bm(p))){if(d=l(),d.lock!==f){Lb(e,t,n);return}s(d.session),p=d.session}(r=e.after)===null||r===void 0||r.call(e,p||d.session),i5(t)}function Lb(e,t,n){Fi(()=>{af(e,t,n+1)},Kxe)}function i5(e){JS=void 0;const t=u9.shift();t&&af(t,e)}function Qxe(){return Ui()+l9+Ai()}function eCe(e){const[,t]=e.split(l9);return!t||jr(Number(t),Ai())>Jxe}const s5=zi;function tCe(e){switch(e.sessionPersistence){case ip.COOKIE:return t5(e);case ip.LOCAL_STORAGE:return r5();case void 0:{let t=t5(e);return!t&&e.allowFallbackToLocalStorage&&(t=r5()),t}default:Ft.error(`Invalid session persistence '${String(e.sessionPersistence)}'`)}}function nCe(e,t){return e.type===ip.COOKIE?Vxe(t,e.cookieOptions):Yxe(t)}function rCe(e,t,n,r,i=nCe(e,t)){const s=new mn,o=new mn,a=new mn,l=Fp(_,s5);let f;E();const{throttled:d,cancel:p}=Jw(()=>{af({process:M=>{if(ZS(M))return;const I=v(M);return b(I),I},after:M=>{r9(M)&&!w()&&C(M),f=M}},i)},s5);function m(){af({process:M=>w()?v(M):void 0},i)}function _(){const M=i.retrieveSession();Bm(M)?af({process:I=>Bm(I)?of(I,t):void 0,after:v},i):v(M)}
529function v(M){return Bm(M)&&(M=of(M,t)),w()&&(T(M)?R():(a.notify({previousState:f,newState:M}),f=M)),M}function E(){af({process:M=>{if(ZS(M))return M.anonymousId=Ui(),of(M,t)},after:M=>{f=M}},i)}function b(M){if(ZS(M))return!1;const I=r(M[n]);M[n]=I,delete M.isExpired,I!==t9&&!M.id&&(M.id=Ui(),M.created=String(ts()))}function w(){return f?.[n]!==void 0}function T(M){return f.id!==M.id||f[n]!==M[n]}function R(){f=of(f,t),o.notify()}function C(M){f=M,s.notify()}function k(M){af({process:I=>({...I,...M}),after:v},i)}return{expandOrRenewSession:d,expandSession:m,getSession:()=>f,renewObservable:s,expireObservable:o,sessionStateUpdateObservable:a,restartSession:E,expire:M=>{p(),M===!1&&f&&delete f.anonymousId,i.expireSession(f),v(of(f,t))},stop:()=>{Kw(l)},updateSessionState:k}}const iI={GRANTED:"granted",NOT_GRANTED:"not-granted"};function iCe(e){const t=new mn;return{tryToInit(n){e||(e=n)},update(n){e=n,t.notify()},isGranted(){return e===iI.GRANTED},observable:t}}function Kf(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function T_(e){const t=Kf(e);return t==="string"||t==="function"||e instanceof RegExp}function rT(e,t,n=!1){return e.some(r=>{try{if(typeof r=="function")return r(t);if(r instanceof RegExp)return r.test(t);if(typeof r=="string")return n?t.startsWith(r):r===t}catch(i){Ft.error(i)}return!1})}const sCe=["chrome-extension://","moz-extension://"];function o5(e){return sCe.some(t=>e.includes(t))}function oCe(e,t=""){if(o5(e))return!1;const r=t.split(`
530`).filter(i=>{const s=i.trim();return s.length&&/^at\s+|@/.test(s)})[1]||"";return o5(r)}const aCe="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",cCe="SDK initialized on a non-allowed domain.";function lCe(e,t,n=typeof location<"u"?location.origin:""){const r=e.allowedTrackingOrigins;if(!r)return oCe(n,t)?(Ft.error(aCe),!1):!0;const i=rT(r,n);return i||Ft.error(cCe),i}const f9="datad0g.com",uCe="dd0g-gov.com",gf="datadoghq.com",fCe="datadoghq.eu",dCe="ddog-gov.com",hCe="pci.browser-intake-datadoghq.com",pCe=["ddsource","dd-api-key","dd-request-id"];function cf(e,t,n){const r=gCe(e,t);return{build(i,s){const o=mCe(e,t,i,s,n);return r(o)},trackType:t}}function gCe(e,t){const n=`/api/v2/${t}`,r=e.proxy;if(typeof r=="string"){const s=CN(r);return o=>`${s}?ddforward=${encodeURIComponent(`${n}?${o}`)}`}if(typeof r=="function")return s=>r({path:n,parameters:s});const i=d9(t,e);return s=>`https://${i}${n}?${s}`}function d9(e,t){const{site:n=gf,internalAnalyticsSubdomain:r}=t;if(e==="logs"&&t.usePciIntake&&n===gf)return hCe;if(r&&n===gf)return`${r}.${gf}`;if(n===uCe)return`http-intake.logs.${n}`;const i=n.split("."),s=i.pop();return`browser-intake-${i.join("-")}.${s}`}function mCe({clientToken:e,internalAnalyticsSubdomain:t,source:n="browser"},r,i,{retry:s,encoding:o},a=[]){const l=[`ddsource=${n}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.24.1")}`,"dd-evp-origin=browser",`dd-request-id=${Ui()}`].concat(a);return o&&l.push(`dd-evp-encoding=${o}`),r==="rum"&&(l.push(`batch_time=${Ai()}`,`_dd.api=${i}`),s&&l.push(`_dd.retry_count=${s.count}`,`_dd.retry_after=${s.lastFailureStatus}`)),t&&l.reverse(),l.join("&")}function _Ce(e){const t=e.site||gf,n=vCe(e.source),r=yCe({...e,site:t,source:n});return{replica:bCe({...e,site:t,source:n}),site:t,source:n,...r}}function vCe(e){return e==="flutter"||e==="unity"?e:"browser"}function yCe(e){return{logsEndpointBuilder:cf(e,"logs"),rumEndpointBuilder:cf(e,"rum"),profilingEndpointBuilder:cf(e,"profile"),sessionReplayEndpointBuilder:cf(e,"replay"),exposuresEndpointBuilder:cf(e,"exposures")}}function bCe(e){if(!e.replica)return;const t={...e,site:gf,clientToken:e.replica.clientToken};return{logsEndpointBuilder:cf(t,"logs"),rumEndpointBuilder:cf(t,"rum",[`application.id=${e.replica.applicationId}`])}}function SCe(e){return pCe.every(t=>e.includes(t))}const hh={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},sI={ALL:"all",SAMPLED:"sampled"};function lA(e,t){return e!=null&&typeof e!="string"?(Ft.error(`${t} must be defined as a string`),!1):!0}function ECe(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(Ft.error(`Site should be a valid Datadog site. ${wN} ${Yw}/getting_started/site/.`),!1):!0}function ph(e,t){return e!==void 0&&!pxe(e)?(Ft.error(`${t} Sample Rate should be a number between 0 and 100`),!1):!0}function wCe(e,t){var n,r,i,s,o,a,l,f,d,p;if(!e||!e.clientToken){Ft.error("Client Token is not configured, we will not send any data.");return}if(e.allowedTrackingOrigins!==void 0&&!Array.isArray(e.allowedTrackingOrigins)){Ft.error("Allowed Tracking Origins must be an array");return}if(!(!ECe(e.site)||!ph(e.sessionSampleRate,"Session")||!ph(e.telemetrySampleRate,"Telemetry")||!ph(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!ph(e.telemetryUsageSampleRate,"Telemetry Usage")||!lA(e.version,"Version")||!lA(e.env,"Env")||!lA(e.service,"Service")||!lCe(e,t??""))){if(e.trackingConsent!==void 0&&!gE(iI,e.trackingConsent)){Ft.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:e.beforeSend&&z7(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Xw?void 0:tCe(e),sessionSampleRate:(n=e.sessionSampleRate)!==null&&n!==void 0?n:100,telemetrySampleRate:(r=e.telemetrySampleRate)!==null&&r!==void 0?r:20,telemetryConfigurationSampleRate:(i=e.telemetryConfigurationSampleRate)!==null&&i!==void 0?i:5,telemetryUsageSampleRate:(s=e.telemetryUsageSampleRate)!==null&&s!==void 0?s:5,service:(o=e.service)!==null&&o!==void 0?o:void 0,env:(a=e.env)!==null&&a!==void 0?a:void 0,version:(l=e.version)!==null&&l!==void 0?l:void 0,datacenter:(f=e.datacenter)!==null&&f!==void 0?f:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:(d=e.trackingConsent)!==null&&d!==void 0?d:iI.GRANTED,trackAnonymousUser:(p=e.trackA
530nonymousUser)!==null&&p!==void 0?p:!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,betaEncodeCookieOptions:!!e.betaEncodeCookieOptions,variant:e.variant,sdkVersion:e.sdkVersion,..._Ce(e)}}}function TCe(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackAnonymousUser,session_persistence:e.sessionPersistence,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),beta_encode_cookie_options:e.betaEncodeCookieOptions,source:e.source,sdk_version:e.sdkVersion,variant:e.variant}}var Yl;(function(e){e.TRACK_INTAKE_REQUESTS="track_intake_requests",e.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",e.FEATURE_OPERATION_VITAL="feature_operation_vital",e.SHORT_SESSION_INVESTIGATION="short_session_investigation",e.AVOID_FETCH_KEEPALIVE="avoid_fetch_keepalive"})(Yl||(Yl={}));const kN=new Set;function xCe(e){Array.isArray(e)&&CCe(e.filter(t=>gE(Yl,t)))}function CCe(e){e.forEach(t=>{kN.add(t)})}function Iv(e){return kN.has(e)}function ACe(){return kN}const sp="?";function Ov(e){var t,n;const r=[];let i=uA(e,"stack");const s=String(e);if(i&&i.startsWith(s)&&(i=i.slice(s.length)),i&&i.split(`
531`).forEach(o=>
531{const a=ICe(o)||MCe(o)||LCe(o)||$Ce(o);a&&(!a.func&&a.line&&(a.func=sp),r.push(a))}),r.length>0&&zCe()&&e instanceof Error){const o=[];let a=e;for(;(a=Object.getPrototypeOf(a))&&p9(a);){const l=((t=a.constructor)===null||t===void 0?void 0:t.name)||sp;o.push(l)}for(let l=o.length-1;l>=0&&((n=r[0])===null||n===void 0?void 0:n.func)===o[l];l--)r.shift()}return{message:uA(e,"message"),name:uA(e,"name"),stack:r}}const h9="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",op="(?::(\\d+))",RCe=new RegExp(`^\\s*at (.*?) ?\\(${h9}${op}?${op}?\\)?\\s*$`,"i"),kCe=new RegExp(`\\((\\S*)${op}${op}\\)`);function ICe(e){const t=RCe.exec(e);if(!t)return;const n=t[2]&&t[2].indexOf("native")===0,r=t[2]&&t[2].indexOf("eval")===0,i=kCe.exec(t[2]);return r&&i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||sp,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}const OCe=new RegExp(`^\\s*at ?${h9}${op}?${op}??\\s*$`,"i");function MCe(e){const t=OCe.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:sp,line:t[2]?+t[2]:void 0,url:t[1]}}const NCe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function LCe(e){const t=NCe.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||sp,line:+t[3],url:t[2]}}const DCe=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,PCe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function $Ce(e){const t=DCe.exec(e);if(!t)return;const n=t[3]&&t[3].indexOf(" > eval")>-1,r=PCe.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||sp,line:t[4]?+t[4]:void 0,url:t[3]}}function uA(e,t){if(typeof e!="object"||!e||!(t in e))return;const n=e[t];return typeof n=="string"?n:void 0}function FCe(e,t,n,r){if(t===void 0)return;const{name:i,message:s}=BCe(e);return{name:i,message:s,stack:[{url:t,column:r,line:n}]}}const UCe=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function BCe(e){let t,n;return{}.toString.call(e)==="[object String]"&&([,t,n]=UCe.exec(e)),{name:t,message:n}}function p9(e){return String(e.constructor).startsWith("class ")}let Db;function zCe(){if(Db!==void 0)return Db;class e extends Error{constructor(){super(),this.name="Error"}}const[t,n]=[e,Error].map(r=>new r);return Db=p9(Object.getPrototypeOf(t))&&n.stack!==t.stack,Db}function mE(e){const n=new Error(e);n.name="HandlingStack";let r;return Fl(()=>{const i=Ov(n);i.stack=i.stack.slice(2),r=Mv(i)}),r}function Mv(e){let t=g9(e);return e.stack.forEach(n=>{const r=n.func==="?"?"<anonymous>":n.func,i=n.args&&n.args.length>0?`(${n.args.join(", ")})`:"",s=n.line?`:${n.line}`:"",o=n.line&&n.column?`:${n.column}`:"";t+=`
532  at ${r}${i} @ ${n.url}${s}${o}`}),t}function g9(e){return`${e.name||"Error"}: ${e.message}`}function _a(e,t,n,{computeHandlingStack:r}={}){let i=e[t];if(typeof i!="function")if(t in e&&t.startsWith("on"))i=Ln;else return{stop:Ln};let s=!1;const o=function(){if(s)return i.apply(this,arguments);const a=Array.from(arguments);let l;Fl(n,null,[{target:this,parameters:a,onPostCall:d=>{l=d},handlingStack:r?mE("instrumented method"):void 0}]);const f=i.apply(this,a);return l&&Fl(l,null,[f]),f};return e[t]=o,{stop:()=>{s=!0,e[t]===o&&(e[t]=i)}}}function JGe(e,t,n){const r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r.set||!r.configurable)return{stop:Ln};const i=Ln;let s=(a,l)=>{Fi(()=>{s!==i&&n(a,l)},0)};const o=function(a){r.set.call(this,a),s(this,a)};return Object.defineProperty(e,t,{set:o}),{stop:()=>{var a;((a=Object.getOwnPropertyDescriptor(e,t))===null||a===void 0?void 0:a.set)===o&&Object.defineProperty(e,t,r),s=i}}}const Zf=1024,m9=1024*Zf,HCe=/[^\u0000-\u007F]/;function _9(e){return HCe.test(e)?window.TextEncoder!==void 0?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function v9(e){if(e.length===1)return e[0];const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Nv(e,t,n){if(typeof e!="object"||e===null)return JSON.stringify(e);const r=gh(Object.prototype),i=gh(Array.prototype),s=gh(Object.getPrototypeOf(e)),o=gh(e);
532try{return JSON.stringify(e,t,n)}catch{return"<error: unable to serialize object>"}finally{r(),i(),s(),o()}}function gh(e){const t=e,n=t.toJSON;return n?(delete t.toJSON,()=>{t.toJSON=n}):Ln}const jCe=220*Zf,VCe="$",GCe=3;function ur(e,t=jCe){const n=gh(Object.prototype),r=gh(Array.prototype),i=[],s=new WeakMap,o=fA(e,VCe,void 0,i,s),a=JSON.stringify(o);let l=a?a.length:0;if(l>t){dA(t,"discarded",e);return}for(;i.length>0&&l<t;){const f=i.shift();let d=0;if(Array.isArray(f.source))for(let p=0;p<f.source.length;p++){const m=fA(f.source[p],f.path,p,i,s);if(m!==void 0?l+=JSON.stringify(m).length:l+=4,l+=d,d=1,l>t){dA(t,"truncated",e);break}f.target[p]=m}else for(const p in f.source)if(Object.prototype.hasOwnProperty.call(f.source,p)){const m=fA(f.source[p],f.path,p,i,s);if(m!==void 0&&(l+=JSON.stringify(m).length+d+p.length+GCe,d=1),l>t){dA(t,"truncated",e);break}f.target[p]=m}}return n(),r(),o}function fA(e,t,n,r,i){const s=YCe(e);if(!s||typeof s!="object")return qCe(s);const o=oI(s);if(o!=="[Object]"&&o!=="[Array]"&&o!=="[Error]")return o;const a=e;if(i.has(a))return`[Reference seen at ${i.get(a)}]`;const l=n!==void 0?`${t}.${n}`:t,f=Array.isArray(s)?[]:{};return i.set(a,l),r.push({source:s,target:f,path:l}),f}function qCe(e){return typeof e=="bigint"?`[BigInt] ${e.toString()}`:typeof e=="function"?`[Function] ${e.name||"unknown"}`:typeof e=="symbol"?`[Symbol] ${e.description||e.toString()}`:e}function oI(e){try{if(e instanceof Event)return WCe(e);if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;const n=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[1]}]`}catch{}return"[Unserializable]"}function WCe(e){return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?oI(e.currentTarget):null,target:e.target?oI(e.target):null}}function YCe(e){const t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function dA(e,t,n){Ft.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,n)}const y9="No stack, consider using an instance of Error";function IN({stackTrace:e,originalError:t,handlingStack:n,componentStack:r,startClocks:i,nonErrorPrefix:s,useFallbackStack:o=!0,source:a,handling:l}){const f=Jf(t);return!e&&f&&(e=Ov(t)),{startClocks:i,source:a,handling:l,handlingStack:n,componentStack:r,originalError:t,type:e?e.name:void 0,message:XCe(e,f,s,t),stack:e?Mv(e):o?y9:void 0,causes:f?JCe(t,a):void 0,fingerprint:KCe(t),context:ZCe(t)}}function XCe(e,t,n,r){return e?.message&&e?.name?e.message:t?"Empty message":`${n} ${Nv(ur(r))}`}function KCe(e){return Jf(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function ZCe(e){if(e!==null&&typeof e=="object"&&"dd_context"in e)return e.dd_context}function Jf(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function JCe(e,t){let n=e;const r=[];for(;Jf(n?.cause)&&r.length<10;){const i=Ov(n.cause);r.push({message:n.cause.message,source:t,type:i?.name,stack:i&&Mv(i)}),n=n.cause}return r.length?r:void 0}const Bp={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function QCe(){return new mn(e=>{const t=(i,s)=>{const o=IN({stackTrace:s,originalError:i,startClocks:vi(),nonErrorPrefix:"Uncaught",source:Bp.SOURCE,handling:"unhandled"});e.notify(o)},{stop:n}=eAe(t),{stop:r}=tAe(t);return()=>{n(),r()}})}function eAe(e){return _a(So(),"onerror",({parameters:[t,n,r,i,s]})=>{let o;Jf(s)||(o=FCe(t,n,r,i)),e(s??t,o)})}function tAe(e){return _a(So(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")})}function nAe(e){const t={version:"6.24.1",onReady(n){n()},...e};return Object.defineProperty(t,"_setDebug",{get(){return mxe},enumerable:!1}),t}function rAe(e,t,n){const r=e[t];r&&!r.q&&r.version&&Ft.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,r&&r.q&&r.q.forEach(i=>z7(i,"onReady callback threw an error:")())}function b9(e,t){t.silentMultipleInit||Ft.error(`${e} is already initialized.`)}function Tr(e,t,n,r,i){return Xl(e,t,[n],r,i)}function Xl(e,t,n,r,{once:i,capture:s,passive:o}={}){const a=Ht(m=>{!m.isTrusted&&!m.__ddIsTrusted&&!e.allowUntrustedEvents||(i&&p(),r(m))}),l=o?{capture:s,passive:o}:s,f=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,d=ql(f,"addEventListener");
532n.forEach(m=>d.call(t,m,a,l));function p(){const m=ql(f,"removeEventListener");n.forEach(_=>m.call(t,_,a,l))}return{stop:p}}const x_={intervention:"intervention",cspViolation:"csp_violation"};function iAe(e,t){const n=[];t.includes(x_.cspViolation)&&n.push(oAe(e));const r=t.filter(i=>i!==x_.cspViolation);return r.length&&n.push(sAe(r)),V7(...n)}function sAe(e){return new mn(t=>{if(!window.ReportingObserver)return;const n=Ht((i,s)=>i.forEach(o=>t.notify(aAe(o)))),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),()=>{r.disconnect()}})}function oAe(e){return new mn(t=>{const{stop:n}=Tr(e,document,"securitypolicyviolation",r=>{t.notify(cAe(r))});return n})}function aAe(e){const{type:t,body:n}=e;return S9({type:n.id,message:`${t}: ${n.message}`,originalError:e,stack:E9(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}function cAe(e){const t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return S9({type:e.effectiveDirective,message:`${x_.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:E9(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${xN(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function S9(e){return{startClocks:vi(),source:Bp.REPORT,handling:"unhandled",...e}}function E9(e,t,n,r,i){return n?Mv({name:e,message:t,stack:[{func:"?",url:n,line:r??void 0,column:i??void 0}]}):void 0}const lAe=200;function w9(e){const{env:t,service:n,version:r,datacenter:i,sdkVersion:s,variant:o}=e,a=[jd("sdk_version",s??"6.24.1")];return t&&a.push(jd("env",t)),n&&a.push(jd("service",n)),r&&a.push(jd("version",r)),i&&a.push(jd("datacenter",i)),o&&a.push(jd("variant",o)),a}function jd(e,t){const n=t?`${e}:${t}`:e;return(n.length>lAe||fAe(n))&&Ft.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${wN} ${Yw}/getting_started/tagging/#defining-tags`),uAe(n)}function uAe(e){return e.replace(/,/g,"_")}function fAe(e){return dAe()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e):!1}function dAe(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function T9(e,t){const n=Ta.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function _E(e,t,n=hAe()){if(t===void 0)return e;if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const i=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,i)}if(n.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){const i=Array.isArray(e)?e:[];for(let s=0;s<t.length;++s)i[s]=_E(i[s],t[s],n);return i}const r=Kf(e)==="object"?e:{};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=_E(r[i],t[i],n));return r}function ON(e){return _E(void 0,e)}function Rc(...e){let t;for(const n of e)n!=null&&(t=_E(t,n));return t}function hAe(){if(typeof WeakSet<"u"){const t=new WeakSet;return{hasAlreadyBeenSeen(n){const r=t.has(n);return r||t.add(n),r}}}const e=[];return{hasAlreadyBeenSeen(t){const n=e.indexOf(t)>=0;return n||e.push(t),n}}}function x9(){var e;const t=Ta.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:(e=t.connection)===null||e===void 0?void 0:e.effectiveType}}function pAe(e){return e>=500}function gAe(e){try{return e.clone()}catch{return}}const mAe=80*Zf,_Ae=32,C9=20*m9,vAe=ss,A9=zi;function R9(e,t,n,r,i,s){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?I9(e,t,n,s,{onSuccess:()=>O9(0,t,n,r,i,s),onFailure:()=>{t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),k9(t,n,r,i,s)}}):t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function k9(e,t,n,r,i){e.transportStatus===2&&Fi(()=>{const s=e.queuedPayloads.first();I9(s,e,t,i,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=A9,O9(1,e,t,n,r,i)},onFailure:()=>{e.currentBackoffTime=Math.min(vAe,e.currentBackoffTime*2),k9(e,t,n,r,i)}})},e.currentBackoffTime)}function I9(e,t,n,r,{onSuccess:i,onFailure:s}){t.bandwidthMonitor.add(e),n(e,o=>{t.bandwidthMonitor.remove(e),yAe(o)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:o.status}
532,r.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),s()):(t.transportStatus=0,r.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),i())})}function O9(e,t,n,r,i,s){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:`Reached max ${r} events size queued for upload: ${C9/m9}MiB`,source:Bp.AGENT,startClocks:vi()}),t.queueFullReported=!0);const o=t.queuedPayloads;for(t.queuedPayloads=M9();o.size()>0;)R9(o.dequeue(),t,n,r,i,s)}function yAe(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||pAe(e.status))}function bAe(){return{transportStatus:0,currentBackoffTime:A9,bandwidthMonitor:SAe(),queuedPayloads:M9(),queueFullReported:!1}}function M9(){const e=[];return{bytesCount:0,enqueue(t){return this.isFull()?!1:(e.push(t),this.bytesCount+=t.bytesCount,!0)},first(){return e[0]},dequeue(){const t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size(){return e.length},isFull(){return this.bytesCount>=C9}}}function SAe(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=mAe&&this.ongoingRequestCount<_Ae},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}}}const aI=16*Zf;function N9(e,t,n=aI){const r=new mn,i=bAe();return{observable:r,send:s=>{for(const o of e)R9(s,i,(a,l)=>{Iv(Yl.AVOID_FETCH_KEEPALIVE)?vE(o,a,l):TAe(o,n,a,l)},o.trackType,t,r)},sendOnExit:s=>{for(const o of e)EAe(o,n,s)}}}function EAe(e,t,n){if(!!navigator.sendBeacon&&n.bytesCount<t)try{const i=e.build("beacon",n);if(navigator.sendBeacon(i,n.data))return}catch(i){wAe(i)}vE(e,n)}let a5=!1;function wAe(e){a5||(a5=!0,Wl(e))}function TAe(e,t,n,r){if(xAe()&&n.bytesCount<t){const s=e.build("fetch-keepalive",n);fetch(s,{method:"POST",body:n.data,keepalive:!0,mode:"cors"}).then(Ht(o=>r?.({status:o.status,type:o.type}))).catch(Ht(()=>vE(e,n,r)))}else vE(e,n,r)}function vE(e,t,n){const r=e.build("fetch",t);fetch(r,{method:"POST",body:t.data,mode:"cors"}).then(Ht(i=>n?.({status:i.status,type:i.type}))).catch(Ht(()=>n?.({status:0})))}function xAe(){try{return window.Request&&"keepalive"in new Request("http://a")}catch{return!1}}function Lv(){const e=CAe();if(e)return{getCapabilities(){var t;return JSON.parse(((t=e.getCapabilities)===null||t===void 0?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return(t=e.getPrivacyLevel)===null||t===void 0?void 0:t.call(e)},getAllowedWebViewHosts(){return JSON.parse(e.getAllowedWebViewHosts())},send(t,n,r){const i=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:i}))}}}function L9(e){const t=Lv();return!!t&&t.getCapabilities().includes(e)}function ap(e){var t;e===void 0&&(e=(t=So().location)===null||t===void 0?void 0:t.hostname);const n=Lv();return!!n&&n.getAllowedWebViewHosts().some(r=>e===r||e.endsWith(`.${r}`))}function CAe(){return So().DatadogEventBridge}const kh={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function AAe(e){return new mn(t=>{const{stop:n}=Xl(e,window,["visibilitychange","freeze"],i=>{i.type==="visibilitychange"&&document.visibilityState==="hidden"?t.notify({reason:kh.HIDDEN}):i.type==="freeze"&&t.notify({reason:kh.FROZEN})},{capture:!0}),r=Tr(e,window,"beforeunload",()=>{t.notify({reason:kh.UNLOADING})}).stop;return()=>{n(),r()}})}function RAe(e){return Q7(kh).includes(e)}const c5=256*Zf;function D9({encoder:e,request:t,flushController:n}){let r={};const i=n.flushObservable.subscribe(d=>f(d));function s(d,p,m){n.notifyBeforeAddMessage(p),m!==void 0?(r[m]=d,n.notifyAfterAddMessage()):e.write(e.isEmpty?d:`
533${d}`,_=>{n.notifyAfterAddMessage(_-p)})}function o(d){return d!==void 0&&r[d]!==void 0}function a(d){const p=r[d];delete r[d];const m=e.estimateEncodedBytesCount(p);n.notifyAfterRemoveMessage(m)}function l(d,p){const m=Nv(d),_=e.estimateEncodedBytesCount(m);if(_>=c5){Ft.warn(`Discarded a message whose size was bigger than the maximum allowed size ${c5/Zf}KiB. ${wN} ${hxe}/#technical-limitations`);return}o(p)&&a(p),s(m,_,p)}function f(d){const p=Q7(r).join(`
534`);r={};const m=RAe(d.reason),_=m?t.sendOnExit:t.send;if(m&&e.isAsync){const v=e.finishSync();v.outputBytesCount&&_(l5(v));
534const E=[v.pendingData,p].filter(Boolean).join(`
535`);E&&_({data:E,bytesCount:_9(E)})}else p&&e.write(e.isEmpty?p:`
536${p}`),e.finish(v=>{_(l5(v))})}return{flushController:n,add:l,upsert:l,stop:i.unsubscribe}}function l5(e){let t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}const kAe=30*zi,IAe=Xw?1:50;function P9({pageMayExitObservable:e,sessionExpireObservable:t}){const n=e.subscribe(p=>a(p.reason)),r=t.subscribe(()=>a("session_expire")),i=new mn(()=>()=>{n.unsubscribe(),r.unsubscribe()});let s=0,o=0;function a(p){if(o===0)return;const m=o,_=s;o=0,s=0,d(),i.notify({reason:p,messagesCount:m,bytesCount:_})}let l;function f(){l===void 0&&(l=Fi(()=>{a("duration_limit")},kAe))}function d(){oo(l),l=void 0}return{flushObservable:i,get messagesCount(){return o},notifyBeforeAddMessage(p){s+p>=aI&&a("bytes_limit"),o+=1,s+=p,f()},notifyAfterAddMessage(p=0){s+=p,o>=IAe?a("messages_limit"):s>=aI&&a("bytes_limit")},notifyAfterRemoveMessage(p){s-=p,o-=1,o===0&&d()}}}const Kl="DISCARDED",zs="SKIPPED";function OAe(){const e={};return{register(t,n){return e[t]||(e[t]=[]),e[t].push(n),{unregister:()=>{e[t]=e[t].filter(r=>r!==n)}}},triggerHook(t,n){const r=e[t]||[],i=[];for(const s of r){const o=s(n);if(o===Kl)return Kl;o!==zs&&i.push(o)}return Rc(...i)}}}const Ul={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},MAe=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],NAe=1,LAe=[dCe],DAe=15;let hA;function zp(){return hA||(hA=new G7(100)),hA}function PAe(e,t,n,r,i,s){const o=new mn,{stop:a}=FAe(t,r,i,s,o),{enabled:l,metricsEnabled:f}=$Ae(e,t,n,o);return{stop:a,enabled:l,metricsEnabled:f}}function $Ae(e,t,n,r,i=NAe,s=DAe){const o={},a=!LAe.includes(t.site)&&pf(t.telemetrySampleRate),l={[Ul.LOG]:a,[Ul.CONFIGURATION]:a&&pf(t.telemetryConfigurationSampleRate),[Ul.USAGE]:a&&pf(t.telemetryUsageSampleRate),metric:a&&pf(i)},f=UAe(),d=zp();return d.subscribe(({rawEvent:m,metricName:_})=>{if(_&&!l.metric||!l[m.type])return;const v=_||m.status||m.type;let E=o[v];if(E||(E=o[v]=new Set),E.size>=s)return;const b=Nv(m);if(E.has(b))return;const w=n.triggerHook(1,{startTime:vi().relative});if(w===Kl)return;const T=p(w,e,m,f);r.notify(T),T9("telemetry",T),E.add(b)}),d.unbuffer(),gxe(MN),{enabled:a,metricsEnabled:l.metric};function p(m,_,v,E){const w={type:"telemetry",date:vi().timeStamp,service:_,version:"6.24.1",source:"browser",_dd:{format_version:2},telemetry:Rc(v,{runtime_env:E,connectivity:x9(),sdk_setup:"npm"}),ddtags:w9(t).join(","),experimental_features:Array.from(ACe())};return Rc(w,m)}}function FAe(e,t,n,r,i){const s=[];if(ap()){const o=Lv(),a=i.subscribe(l=>o.send("internal_telemetry",l));s.push(a.unsubscribe)}else{const o=[e.rumEndpointBuilder];e.replica&&BAe(e)&&o.push(e.replica.rumEndpointBuilder);const a=D9({encoder:r(4),request:N9(o,t),flushController:P9({pageMayExitObservable:n,sessionExpireObservable:new mn})});s.push(a.stop);const l=i.subscribe(a.add);s.push(l.unsubscribe)}return{stop:()=>s.forEach(o=>o())}}function UAe(){var e;return{is_local_file:((e=Ta.location)===null||e===void 0?void 0:e.protocol)==="file:",is_worker:Xw}}function BAe(e){return e.site===f9}function Dv(e,t){nI(Ww.debug,e,t),zp().notify({rawEvent:{type:Ul.LOG,message:e,status:"debug",...t}})}function MN(e,t){zp().notify({rawEvent:{type:Ul.LOG,status:"error",...HAe(e),...t}})}function zAe(e){zp().notify({rawEvent:{type:Ul.CONFIGURATION,configuration:e}})}function iT(e,t){zp().notify({rawEvent:{type:Ul.LOG,message:e,status:"debug",...t},metricName:e})}function pi(e){zp().notify({rawEvent:{type:Ul.USAGE,usage:e}})}function HAe(e){if(Jf(e)){const t=Ov(e);return{error:{kind:t.name,stack:Mv(jAe(t))},message:t.message}}return{error:{stack:y9},message:`Uncaught ${Nv(e)}`}}function jAe(e){return e.stack=e.stack.filter(t=>!t.url||MAe.some(n=>t.url.startsWith(n))),e}function $9(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function Cf(e){return Array.isArray(e)&&e.length>0}const Pb=1/0,VAe=ss;let tm=null;const QS=new Set;
536function GAe(){QS.forEach(e=>e())}function Hp({expireDelay:e,maxEntries:t}){let n=[];tm||(tm=Fp(()=>GAe(),VAe));const r=()=>{const d=Bs()-e;for(;n.length>0&&n[n.length-1].endTime<d;)n.pop()};QS.add(r);function i(d,p){const m={value:d,startTime:p,endTime:Pb,remove:()=>{$9(n,m)},close:_=>{m.endTime=_}};return t&&n.length>=t&&n.pop(),n.unshift(m),m}function s(d=Pb,p={returnInactive:!1}){for(const m of n)if(m.startTime<=d){if(p.returnInactive||d<=m.endTime)return m.value;break}}function o(d){const p=n[0];p&&p.endTime===Pb&&p.close(d)}function a(d=Pb,p=0){const m=Up(d,p);return n.filter(_=>_.startTime<=m&&d<=_.endTime).map(_=>_.value)}function l(){n=[]}function f(){QS.delete(r),QS.size===0&&tm&&(Kw(tm),tm=null)}return{add:i,find:s,closeActive:o,findAll:a,reset:l,stop:f}}const qAe="datadog-synthetics-public-id",WAe="datadog-synthetics-result-id",YAe="datadog-synthetics-injects-rum";function F9(){return Xw?!1:!!(Ta._DATADOG_SYNTHETICS_INJECTS_RUM||Cl(YAe))}function U9(){const e=window._DATADOG_SYNTHETICS_PUBLIC_ID||Cl(qAe);return typeof e=="string"?e:void 0}function B9(){const e=window._DATADOG_SYNTHETICS_RESULT_ID||Cl(WAe);return typeof e=="string"?e:void 0}function z9(){return!!(U9()&&B9())}const XAe=ss,KAe=Xf;function ZAe(e,t,n,r){const i=new mn,s=new mn,o=rCe(e.sessionStoreStrategyType,e,t,n),a=Hp({expireDelay:KAe});if(o.renewObservable.subscribe(()=>{a.add(l(),Bs()),i.notify()}),o.expireObservable.subscribe(()=>{s.notify(),a.closeActive(Bs())}),o.expandOrRenewSession(),a.add(l(),Y7().relative),Iv(Yl.SHORT_SESSION_INVESTIGATION)){const f=o.getSession();f&&nRe(e,f)}r.observable.subscribe(()=>{r.isGranted()?o.expandOrRenewSession():o.expire(!1)}),JAe(e,()=>{r.isGranted()&&o.expandOrRenewSession()}),QAe(e,()=>o.expandSession()),eRe(e,()=>o.restartSession());function l(){const f=o.getSession();return f?{id:f.id,trackingType:f[t],isReplayForced:!!f.forcedReplay,anonymousId:f.anonymousId}:(tRe(e).catch(()=>{}),{id:"invalid",trackingType:t9,isReplayForced:!1,anonymousId:void 0})}return{findSession:(f,d)=>a.find(f,d),renewObservable:i,expireObservable:s,sessionStateUpdateObservable:o.sessionStateUpdateObservable,expire:o.expire,updateSessionState:o.updateSessionState}}function JAe(e,t){const{stop:n}=Xl(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0})}function QAe(e,t){const n=()=>{document.visibilityState==="visible"&&t()},{stop:r}=Tr(e,document,"visibilitychange",n);Fp(n,XAe)}function eRe(e,t){const{stop:n}=Tr(e,window,"resume",t,{capture:!0})}async function tRe(e){const t=e.sessionStoreStrategyType;if(!t)return;let n,r;t.type===ip.COOKIE?(n=s9(t.cookieOptions,e),r={cookie:await H9(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):n=c9(),Dv("Unexpected session state",{sessionStoreStrategyType:t.type,session:n,isSyntheticsTest:z9(),createdTimestamp:n?.created,expireTimestamp:n?.expire,...r})}function nRe(e,t){if(!window.cookieStore||!t.created)return;const n=Number(t.created),r=ts(),{stop:i}=Tr(e,cookieStore,"change",s);function s(o){const a=J7(o.changed,f=>f.name===Ac);if(!a)return;const l=ts()-n;if(l>14*ss)i();else{const f=nT(a.value);if(f.id&&f.id!==t.id){i();const d=ts()-r;H9().then(p=>{Dv("Session cookie changed",{time:d,session_age:l,old:t,new:f,cookie:p})}).catch(Wl)}}}}async function H9(){let e;return"cookieStore"in window?e=await window.cookieStore.getAll(Ac):e=document.cookie.split(/\s*;\s*/).filter(t=>t.startsWith(Ac)),{count:e.length,domain:Z7()||"undefined",...e}}function rRe(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,r){const i=_9(n);t+=i,e+=n,r&&r(i)},finish(n){n(this.finishSync())},finishSync(){const n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount(n){return n.length}}}class iRe{constructor(){this.callbacks={}}notify(t,n){const r=this.callbacks[t];r&&r.forEach(i=>i(n))}subscribe(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(r=>n!==r)}}}}const sRe=3e3;function pA(e,t,n=sRe){let r=0,i=!1;return{isLimitReached(){if(r===0&&Fi(()=>{r=0},ss),r+=1,r<=n||i)return i=!1,!1;if(r===n+1){i=!0;try{t({message:`Reached max number of ${e}s by minute: ${n}`,source:Bp.AGENT,startClocks:vi()})}finally{i=!1}}return!0}}}function NN(e,t,n){return document.readyState===t||document.readyState==="complete"?(n(),{stop:Ln}):Tr(e,window,t==="complete"?"load":"DOMContentLoaded",n,{once:!0})}function oRe(e,t){return new Promise(n=>{NN(e,t,n)})}let gA;
536const LN=new WeakMap;function aRe(e){return gA||(gA=cRe(e)),gA}function cRe(e){return new mn(t=>{const{stop:n}=_a(XMLHttpRequest.prototype,"open",lRe),{stop:r}=_a(XMLHttpRequest.prototype,"send",s=>{uRe(s,e,t)},{computeHandlingStack:!0}),{stop:i}=_a(XMLHttpRequest.prototype,"abort",fRe);return()=>{n(),r(),i()}})}function lRe({target:e,parameters:[t,n]}){LN.set(e,{state:"open",method:String(t).toUpperCase(),url:CN(String(n))})}function uRe({target:e,parameters:[t],handlingStack:n},r,i){const s=LN.get(e);if(!s)return;const o=s;o.state="start",o.startClocks=vi(),o.isAborted=!1,o.xhr=e,o.handlingStack=n,o.requestBody=t;let a=!1;const{stop:l}=_a(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&f()}),f=()=>{if(d(),l(),a)return;a=!0;const p=s;p.state="complete",p.duration=jr(o.startClocks.timeStamp,Ai()),p.status=e.status,typeof e.response=="string"&&(p.responseBody=e.response),i.notify(E_(p))},{stop:d}=Tr(r,e,"loadend",f);i.notify(o)}function fRe({target:e}){const t=LN.get(e);t&&(t.isAborted=!0)}async function dRe(e,t){const n=e.getReader(),r=[];for(;;){const i=await n.read();if(i.done)break;t.collectStreamBody&&r.push(i.value)}return n.cancel().catch(Ln),t.collectStreamBody?v9(r):void 0}let mA;const j9=[];function V9({responseBodyAction:e}={}){return e&&j9.push(e),mA||(mA=hRe()),mA}function hRe(){return new mn(e=>{if(!Ta.fetch)return;const{stop:t}=_a(Ta,"fetch",n=>pRe(n,e),{computeHandlingStack:!0});return t})}function pRe({parameters:e,onPostCall:t,handlingStack:n},r){const[i,s]=e;let o=s&&s.method;o===void 0&&i instanceof Request&&(o=i.method);const a=o!==void 0?String(o).toUpperCase():"GET",l=i instanceof Request?i.url:CN(String(i)),f=vi(),d={state:"start",init:s,input:i,method:a,startClocks:f,url:l,handlingStack:n};r.notify(d),e[0]=d.input,e[1]=d.init,t(p=>{gRe(r,p,d).catch(Wl)})}async function gRe(e,t,n){var r,i;const s=n;s.state="resolve";let o;try{o=await t}catch(l){s.status=0,s.isAborted=((i=(r=s.init)===null||r===void 0?void 0:r.signal)===null||i===void 0?void 0:i.aborted)||l instanceof DOMException&&l.code===DOMException.ABORT_ERR,s.error=l,e.notify(s);return}s.response=o,s.status=o.status,s.responseType=o.type,s.isAborted=!1;const a=j9.reduce((l,f)=>Math.max(l,f(s)),0);if(a!==0){const l=gAe(o);if(l&&l.body)try{const f=await dRe(l.body,{collectStreamBody:a===2});s.responseBody=f&&new TextDecoder().decode(f)}catch{}}e.notify(s)}function mRe(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback(Ht(e),t);return()=>window.cancelIdleCallback(n)}return vRe(e)}const _Re=50;function vRe(e){const t=ts(),n=Fi(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,_Re-(ts()-t))})},0);return()=>oo(n)}const yRe=zi,bRe=30;function SRe(){const e=[];function t(r){let i;if(r.didTimeout){const s=performance.now();i=()=>bRe-(performance.now()-s)}else i=r.timeRemaining.bind(r);for(;i()>0&&e.length;)e.shift()();e.length&&n()}function n(){mRe(t,{timeout:yRe})}return{push(r){e.push(r)===1&&n()},stop(){e.length=0}}}let _A={};function ERe(e){const t=e.map(n=>(_A[n]||(_A[n]=wRe(n)),_A[n]));return V7(...t)}function wRe(e){return new mn(t=>{const n=lc[e];return lc[e]=(...r)=>{n.apply(console,r);const i=mE("console error");Fl(()=>{t.notify(TRe(r,e,i))})},()=>{lc[e]=n}})}function TRe(e,t,n){const r=e.map(i=>xRe(i)).join(" ");if(t===Ww.error){const i=e.find(Jf),s=IN({originalError:i,handlingStack:n,startClocks:vi(),source:Bp.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return s.message=r,{api:t,message:r,handlingStack:n,error:s}}return{api:t,message:r,error:void 0,handlingStack:n}}function xRe(e){return typeof e=="string"?ur(e):Jf(e)?g9(Ov(e)):Nv(ur(e),void 0,2)}const CRe=500;function ARe(){const e=[];return{add:i=>{e.push(i)>CRe&&e.splice(0,1)},remove:i=>{$9(e,i)},drain:i=>{e.forEach(s=>s(i)),e.length=0}}}function RRe(e){const t=Kf(e)==="object";return t||Ft.error("Unsupported context:",e),t}function vA(e,t,n){const r={...e};for(const[i,{required:s,type:o}]of Object.entries(t))o==="string"&&!u5(r[i])&&(r[i]=String(r[i])),s&&u5(r[i])&&Ft.warn(`The property ${i} of ${n} is required; context will not be sent to the intake.`);return r}function u5(e){return e==null||e===""}function sT(e="",{propertiesConfig:t={}}={}){let n={};const r=new mn,i={getContext:()=>ON(n),setContext:s=>{RRe(s)?n=ur(vA(s,t,e)):i.clearContext(),r.notify()},setContextProperty:(s,o)=>{n=ur(vA({...n,[s]:o}
536,t,e)),r.notify()},removeContextProperty:s=>{delete n[s],vA(n,t,e),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return i}function qi(e,t,n,r){return Ht((...i)=>(r&&pi({feature:r}),e()[t][n](...i)))}const kRe="_dd_c",IRe=[];function DN(e,t,n,r){const i=ORe(n,r);IRe.push(Tr(e,window,"storage",({key:f})=>{i===f&&o()})),t.changeObservable.subscribe(a);const s=Rc(l(),t.getContext());cu(s)||t.setContext(s);function o(){t.setContext(l())}function a(){localStorage.setItem(i,JSON.stringify(t.getContext()))}function l(){const f=localStorage.getItem(i);return f?JSON.parse(f):{}}}function ORe(e,t){return`${kRe}_${e}_${t}`}function MRe(e,t,n){const r=G9();return t.storeContextsAcrossPages&&DN(t,r,n,4),e.register(0,()=>{const i=r.getContext();return cu(i)||!i.id?zs:{account:i}}),r}function G9(){return sT("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function NRe(e,t,n,r){const i=q9();return t.storeContextsAcrossPages&&DN(t,i,n,2),e.register(0,()=>({context:i.getContext()})),i}function q9(){return sT("global context")}function LRe(e,t,n,r){const i=W9();return t.storeContextsAcrossPages&&DN(t,i,r,1),e.register(0,({eventType:s,startTime:o})=>{const a=i.getContext(),l=n.findTrackedSession(o);return l&&l.anonymousId&&!a.anonymous_id&&t.trackAnonymousUser&&(a.anonymous_id=l.anonymousId),cu(a)?zs:{type:s,usr:a}}),e.register(1,({startTime:s})=>{var o;return{anonymous_id:(o=n.findTrackedSession(s))===null||o===void 0?void 0:o.anonymousId}}),i}function W9(){return sT("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}const gi={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},Wi={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"},Zi={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},oT={FETCH:Zi.FETCH,XHR:Zi.XHR},DRe=500;function PRe(e=QCe){const t=new G7(DRe),n=e().subscribe(r=>{t.notify({type:0,error:r})});return{observable:t,stop:()=>{n.unsubscribe()}}}function $Re(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}const zt={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},Y9={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},uc={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",BF_CACHE:"bf_cache"},PN={CLICK:"click",CUSTOM:"custom"},nm={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},C_={DURATION:"duration",OPERATION_STEP:"operation_step"};function FRe(){return{vitalsByName:new Map,vitalsByReference:new WeakMap}}function URe(e,t,n){function r(o){return!t.wasInPageStateDuringPeriod("frozen",o.startClocks.relative,o.duration)}function i(o){r(o)&&e.notify(12,f5(o))}function s(o,a,l,f){if(!Iv(Yl.FEATURE_OPERATION_VITAL))return;const{operationKey:d,context:p,description:m}=l||{},_={name:o,type:C_.OPERATION_STEP,operationKey:d,failureReason:f,stepType:a,startClocks:vi(),context:ur(p),description:m};e.notify(12,f5(_))}return{addOperationStepVital:s,addDurationVital:i,startDurationVital:(o,a={})=>X9(n,o,a),stopDurationVital:(o,a={})=>{K9(i,n,o,a)}}}function X9({vitalsByName:e,vitalsByReference:t},n,r={}){const i={name:n,startClocks:vi(),...r},s={__dd_vital_reference:!0};return e.set(n,i),t.set(s,i),s}function K9(e,{vitalsByName:t,vitalsByReference:n},r,i={}){const s=typeof r=="string"?t.get(r):n.get(r);s&&(e(BRe(s,s.startClocks,i,vi())),typeof r=="string"?t.delete(r):n.delete(r))}function BRe(e,t,n,r){var i;return{name:e.name,type:C_.DURATION,startClocks:t,duration:jr(t.timeStamp,r.timeStamp),context:Rc(e.context,n.context),description:(i=n.description)!==null&&i!==void 0?i:e.description}}function f5(e){const{startClocks:t,type:n,name:r,description:i,context:s}=e,o={id:Ui(),type:n,name:r,description:i,...n===C_.DURATION?{duration:Bt(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:o,type:zt.VITAL,context:s},startTime:t.relative,duration:n===C_.DURATION?e.duration:void 0,domainContext:{}}}function Z9(e,t,n){if(e)for(const r of e){const i=r[t];i&&i(n)}}const d5=new Map;function J9(e,t){if(t===100)return!0;
536if(t===0)return!1;const n=d5.get(t);if(n&&e===n.sessionId)return n.decision;let r;return window.BigInt?r=zRe(BigInt(`0x${e.split("-")[4]}`),t):r=pf(t),d5.set(t,{sessionId:e,decision:r}),r}function zRe(e,t){const n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000"),i=e*n%r;return Number(i)<=t/100*Number(r)}function HRe(){return eW(64)}function Q9(){return eW(63)}function eW(e){const t=crypto.getRandomValues(new Uint32Array(2));return e===63&&(t[t.length-1]>>>=1),{toString(n=10){let r=t[1],i=t[0],s="";do{const o=r%n*4294967296+i;r=Math.floor(r/n),i=Math.floor(o/n),s=(o%n).toString(n)+s}while(r||i);return s}}}function Vd(e){return e.toString(16).padStart(16,"0")}function jRe(e){const t=e;return Kf(t)==="object"&&T_(t.match)&&Array.isArray(t.propagatorTypes)}function VRe(e){e.status===0&&!e.isAborted&&(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function GRe(e,t,n,r){return{clearTracingIfNeeded:VRe,traceFetch:i=>h5(e,i,t,n,r,s=>{var o;if(i.input instanceof Request&&!(!((o=i.init)===null||o===void 0)&&o.headers))i.input=new Request(i.input),Object.keys(s).forEach(a=>{i.input.headers.append(a,s[a])});else{i.init=E_(i.init);const a=[];i.init.headers instanceof Headers?i.init.headers.forEach((l,f)=>{a.push([f,l])}):Array.isArray(i.init.headers)?i.init.headers.forEach(l=>{a.push(l)}):i.init.headers&&Object.keys(i.init.headers).forEach(l=>{a.push([l,i.init.headers[l]])}),i.init.headers=a.concat(AN(s))}}),traceXhr:(i,s)=>h5(e,i,t,n,r,o=>{Object.keys(o).forEach(a=>{s.setRequestHeader(a,o[a])})})}}function h5(e,t,n,r,i,s){const o=n.findTrackedSession();if(!o)return;const a=e.allowedTracingUrls.find(d=>rT([d.match],t.url,!0));if(!a)return;const l=J9(o.id,e.traceSampleRate);(l||e.traceContextInjection===sI.ALL)&&(t.traceSampled=l,t.traceId=HRe(),t.spanId=Q9(),s(qRe(t.traceId,t.spanId,t.traceSampled,o.id,a.propagatorTypes,r,i,e)))}function qRe(e,t,n,r,i,s,o,a){const l={};if(i.forEach(f=>{switch(f){case"datadog":{Object.assign(l,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":e.toString()});break}case"tracecontext":{Object.assign(l,{traceparent:`00-0000000000000000${Vd(e)}-${Vd(t)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break}case"b3":{Object.assign(l,{b3:`${Vd(e)}-${Vd(t)}-${n?"1":"0"}`});break}case"b3multi":{Object.assign(l,{"X-B3-TraceId":Vd(e),"X-B3-SpanId":Vd(t),"X-B3-Sampled":n?"1":"0"});break}}}),a.propagateTraceBaggage){const f={"session.id":r},d=s.getContext().id;typeof d=="string"&&(f["user.id"]=d);const p=o.getContext().id;typeof p=="string"&&(f["account.id"]=p);const m=Object.entries(f).map(([_,v])=>`${_}=${encodeURIComponent(v)}`).join(",");m&&(l.baggage=m)}return l}const tW=["tracecontext","datadog"];function WRe(e,t){var n,r,i,s,o,a,l;if(e.trackFeatureFlagsForEvents!==void 0&&!Array.isArray(e.trackFeatureFlagsForEvents)&&Ft.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId){Ft.error("Application ID is not configured, no RUM data will be collected.");return}if(!ph(e.sessionReplaySampleRate,"Session Replay")||!ph(e.traceSampleRate,"Trace"))return;if(e.excludedActivityUrls!==void 0&&!Array.isArray(e.excludedActivityUrls)){Ft.error("Excluded Activity Urls should be an array");return}const f=YRe(e);if(!f)return;const d=wCe(e,t),p=KRe(e);if(!d)return;const m=(n=e.sessionReplaySampleRate)!==null&&n!==void 0?n:0;return{applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:m,startSessionReplayRecordingManually:e.startSessionReplayRecordingManually!==void 0?!!e.startSessionReplayRecordingManually:m===0,traceSampleRate:(r=e.traceSampleRate)!==null&&r!==void 0?r:100,rulePsr:Rv(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:f,excludedActivityUrls:(i=e.excludedActivityUrls)!==null&&i!==void 0?i:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(!((s=e.trackUserInteractions)!==null&&s!==void 0)||s),trackViewsManually:!!e.trackViewsManually,trackResources:!!(!((o=e.trackResources)!==null&&o!==void 0)||o),trackLongTasks:!!(!((a=e.trackLongTasks)!==null&&a!==void 0)||a),trackBfcacheViews:!!e.trackBfcacheViews,trackEarlyRequests:!!e.trackEarlyRequests,subdomain:e.subdomain,defaultPrivacyLevel:gE(hh,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:hh.MASK,enablePrivacyF
536orActionName:!!e.enablePrivacyForActionName,traceContextInjection:gE(sI,e.traceContextInjection)?e.traceContextInjection:sI.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:(l=e.profilingSampleRate)!==null&&l!==void 0?l:0,propagateTraceBaggage:!!e.propagateTraceBaggage,allowedGraphQlUrls:p,...d}}function YRe(e){if(e.allowedTracingUrls===void 0)return[];if(!Array.isArray(e.allowedTracingUrls)){Ft.error("Allowed Tracing URLs should be an array");return}if(e.allowedTracingUrls.length!==0&&e.service===void 0){Ft.error("Service needs to be configured when tracing is enabled");return}const t=[];return e.allowedTracingUrls.forEach(n=>{T_(n)?t.push({match:n,propagatorTypes:tW}):jRe(n)?t.push(n):Ft.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)}),t}function XRe(e){const t=new Set;return Cf(e.allowedTracingUrls)&&e.allowedTracingUrls.forEach(n=>{T_(n)?tW.forEach(r=>t.add(r)):Kf(n)==="object"&&Array.isArray(n.propagatorTypes)&&n.propagatorTypes.forEach(r=>t.add(r))}),Array.from(t)}function KRe(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return Ft.warn("allowedGraphQlUrls should be an array"),[];const t=[];
536return e.allowedGraphQlUrls.forEach(n=>{T_(n)?t.push({match:n,trackPayload:!1,trackResponseErrors:!1}):n&&typeof n=="object"&&"match"in n&&T_(n.match)&&t.push({match:n.match,trackPayload:!!n.trackPayload,trackResponseErrors:!!n.trackResponseErrors})}),t}function ZRe(e){return Cf(e)&&e.some(t=>typeof t=="object"&&"trackPayload"in t?!!t.trackPayload:!1)}function JRe(e){return Cf(e)&&e.some(t=>typeof t=="object"&&"trackResponseErrors"in t?!!t.trackResponseErrors:!1)}function QRe(e){var t;const n=TCe(e);return{session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,propagate_trace_baggage:e.propagateTraceBaggage,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Cf(e.allowedTracingUrls),use_allowed_graph_ql_urls:Cf(e.allowedGraphQlUrls),use_track_graph_ql_payload:ZRe(e.allowedGraphQlUrls),use_track_graph_ql_response_errors:JRe(e.allowedGraphQlUrls),selected_tracing_propagators:XRe(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:Cf(e.excludedActivityUrls),use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,track_bfcache_views:e.trackBfcacheViews,track_early_requests:e.trackEarlyRequests,plugins:(t=e.plugins)===null||t===void 0?void 0:t.map(r=>{var i;return{name:r.name,...(i=r.getConfigurationTelemetry)===null||i===void 0?void 0:i.call(r)}}),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,remote_configuration_id:e.remoteConfigurationId,profiling_sample_rate:e.profilingSampleRate,use_remote_configuration_proxy:!!e.remoteConfigurationProxy,...n}}function eke(e){const t=[];let n=0,r;const i={quote:void 0,escapeSequence:void 0};let s="";for(const o of e){if(r=p5[n].find(a=>oke[a](o,i)),!r)return[];if(i.escapeSequence!==void 0&&r!==12){if(!lke(i.escapeSequence))return[];s+=fke(i.escapeSequence),i.escapeSequence=void 0}ake.includes(r)?s+=o:cke.includes(r)&&s!==""?(t.push(s),s=""):r===12?i.escapeSequence=i.escapeSequence?`${i.escapeSequence}${o}`:o:r===8?i.quote=o:r===9&&(i.quote=void 0),n=r}return p5[n].includes(1)?(s!==""&&t.push(s),t):[]}const tke=/[a-zA-Z_$]/,nke=/[a-zA-Z0-9_$]/,rke=/[0-9]/,ike=/[a-fA-F0-9]/,ske=`'"`,oke={0:()=>!1,1:()=>!1,2:e=>tke.test(e),3:e=>nke.test(e),4:e=>e===".",5:e=>e==="[",6:e=>e==="]",7:e=>rke.test(e),8:e=>ske.includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>e==="\\",12:(e,t)=>t.escapeSequence===void 0?`${t.quote}/\\bfnrtu`.includes(e):t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5?ike.test(e):!1},p5={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},ake=[2,3,7,10],cke=[4,5,6];function lke(e){return`"'/\\bfnrt`.includes(e)||e.startsWith("u")&&e.length===5}const uke={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:`
537`,r:"\r",t:"	"};function fke(e){return e.startsWith("u")?String.fromCharCode(parseInt(e.slice(1),16)):uke[e]}const dke="v1",hke=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function pke(e,t){let n;const r=mke(),i=await bke(e);return i.ok?(r.increment("fetch","success"),n=gke(e,i.value,t,r)):(r.increment("fetch","failure"),Ft.error(i.error)),iT("remote configuration metrics",{metrics:r.get()}),n}function gke(e,t,n,r){const i={...e};return hke.forEach(m=>{m in t&&(i[m]=s(t[m]))}),Object.keys(n).forEach(m=>{t[m]!==void 0&&o(n[m],t[m])}),i;function s(m){if(Array.isArray(m))return m.map(s);if(_ke(m)){if(vke(m)){const _=m.rcSerializedType;switch(_){case"string":return m.value;case"regex":return nW(m.value);case"dynamic":return a(m);default:Ft.error(`Unsupported remote configuration: "rcSerializedType": "${_}"`);return}}return H7(m,s)}return m}function o(m,_){_.forEach(({key:v,value:E})=>{m.setContextProperty(v,s(E))})}function a(m){const _=m.strategy;let v;switch(_){case"cookie":v=l(m);break;case"dom":v=f(m);break;case"js":v=p(m);break;default:Ft.error(`Unsupported remote configuration: "strategy": "${_}"`);return}const E=m.extractor;return E!==void 0&&typeof v=="string"?yke(E,v):v}function l({name:m}){const _=tT(m);return r.increment("cookie",_!==void 0?"success":"missing"),_}function f({selector:m,attribute:_}){let v;try{v=document.querySelector(m)}catch{Ft.error(`Invalid selector in the remote configuration: '${m}'`),r.increment("dom","failure");return}if(!v){r.increment("dom","missing");return}if(d(v,_)){Ft.error(`Forbidden element selected by the remote configuration: '${m}'`),r.increment("dom","failure");return}const E=_!==void 0?v.getAttribute(_):v.textContent;if(E===null){r.increment("dom","missing");return}return r.increment("dom","success"),E}function d(m,_){return m.getAttribute("type")==="password"&&_==="value"}function p({path:m}){let _=window;const v=eke(m);
537if(v.length===0){Ft.error(`Invalid JSON path in the remote configuration: '${m}'`),r.increment("js","failure");return}for(const E of v){if(!(E in _)){r.increment("js","missing");return}try{_=_[E]}catch(b){Ft.error(`Error accessing: '${m}'`,b),r.increment("js","failure");return}}return r.increment("js","success"),_}}function mke(){const e={fetch:{}};return{get:()=>e,increment:(t,n)=>{e[t]||(e[t]={}),e[t][n]||(e[t][n]=0),e[t][n]=e[t][n]+1}}}function _ke(e){return typeof e=="object"&&e!==null}function vke(e){return"rcSerializedType"in e}function nW(e){try{return new RegExp(e)}catch{Ft.error(`Invalid regex in the remote configuration: '${e}'`)}}function yke(e,t){const n=nW(e.value);if(n===void 0)return;const r=n.exec(t);if(r===null)return;const[i,s]=r;return s||i}async function bke(e){let t;try{t=await fetch(Ske(e))}catch{t=void 0}if(!t||!t.ok)return{ok:!1,error:new Error("Error fetching the remote configuration.")};const n=await t.json();return n.rum?{ok:!0,value:n.rum}:{ok:!1,error:new Error("No remote configuration for RUM.")}}function Ske(e){return e.remoteConfigurationProxy?e.remoteConfigurationProxy:`https://sdk-configuration.${d9("rum",e)}/${dke}/${encodeURIComponent(e.remoteConfigurationId)}.json`}function Eke({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},n,r,i){const s=ARe(),o=q9();yA(o,gi.globalContext,s);const a=W9();yA(a,gi.userContext,s);const l=G9();yA(l,gi.accountContext,s);let f,d,p,m;const _=n.observable.subscribe(E),v={};function E(){if(!p||!m||!n.isGranted())return;_.unsubscribe();let C;if(m.trackViewsManually){if(!f)return;s.remove(f.callback),C=f.options}const k=i(m,d,C);s.drain(k)}function b(C,k){const M=ap();if(M&&(C=wke(C)),p=C,zAe(QRe(C)),m){b9("DD_RUM",C);return}const I=WRe(C,k);if(I){if(!M&&!I.sessionStoreStrategyType){Ft.warn("No storage available for session. We will not send any data.");return}I.compressIntakeRequests&&!M&&t&&(d=t(I,"Datadog RUM",Ln),!d)||(m=I,V9().subscribe(Ln),n.tryToInit(I.trackingConsent),E())}}const w=C=>{s.add(k=>k.addDurationVital(C))};return{init(C,k,M){if(!C){Ft.error("Missing configuration");return}xCe(C.enableExperimentalFeatures),p=C,!(e&&F9())&&(Z9(C.plugins,"onInit",{initConfiguration:C,publicApi:k}),C.remoteConfigurationId?pke(C,{user:a,context:o}).then(I=>{I&&b(I,M)}).catch(Wl):b(C,M))},get initConfiguration(){return p},getInternalContext:Ln,stopSession:Ln,addTiming(C,k=Ai()){s.add(M=>M.addTiming(C,k))},startView(C,k=vi()){const M=I=>{I.startView(C,k)};s.add(M),f||(f={options:C,callback:M},E())}
537,setViewName(C){s.add(k=>k.setViewName(C))},setViewContext(C){s.add(k=>k.setViewContext(C))},setViewContextProperty(C,k){s.add(M=>M.setViewContextProperty(C,k))},getViewContext:()=>v,globalContext:o,userContext:a,accountContext:l,addAction(C){s.add(k=>k.addAction(C))},addError(C){s.add(k=>k.addError(C))},addFeatureFlagEvaluation(C,k){s.add(M=>M.addFeatureFlagEvaluation(C,k))},startDurationVital(C,k){return X9(r,C,k)},stopDurationVital(C,k){K9(w,r,C,k)},addDurationVital:w,addOperationStepVital:(C,k,M,I)=>{s.add($=>$.addOperationStepVital(ur(C),k,ur(M),ur(I)))}}}function wke(e){var t,n;return{...e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(t=e.defaultPrivacyLevel)!==null&&t!==void 0?t:(n=Lv())===null||n===void 0?void 0:n.getPrivacyLevel()}}function yA(e,t,n){e.changeObservable.subscribe(()=>{const r=e.getContext();n.add(i=>i[t].setContext(r))})}function Tke(e,t,n,r={}){const i=iCe(),s=FRe(),o=PRe().observable;let a=Eke(r,i,s,(p,m,_)=>{const v=m&&r.createDeflateEncoder?b=>r.createDeflateEncoder(p,m,b):rRe,E=e(p,t,n,_,v,i,s,o,r.sdkName);return t.onRumStart(E.lifeCycle,p,E.session,E.viewHistory,m,E.telemetry),n.onRumStart(E.lifeCycle,E.hooks,p,E.session,E.viewHistory,v),a=xke(a,E),Z9(p.plugins,"onRumStart",{strategy:a,addEvent:E.addEvent}),E});const l=()=>a,f=Ht(p=>{const m=typeof p=="object"?p:{name:p};a.startView(m),pi({feature:"start-view"})}),d=nAe({init:p=>{const m=new Error().stack;Fl(()=>a.init(p,d,m))},setTrackingConsent:Ht(p=>{i.update(p),pi({feature:"set-tracking-consent",tracking_consent:p})}),setViewName:Ht(p=>{a.setViewName(p),pi({feature:"set-view-name"})}),setViewContext:Ht(p=>{a.setViewContext(p),pi({feature:"set-view-context"})}),setViewContextProperty:Ht((p,m)=>{a.setViewContextProperty(p,m),pi({feature:"set-view-context-property"})}),getViewContext:Ht(()=>(pi({feature:"set-view-context-property"}),a.getViewContext())),getInternalContext:Ht(p=>a.getInternalContext(p)),getInitConfiguration:Ht(()=>ON(a.initConfiguration)),addAction:(p,m)=>{const _=mE("action");Fl(()=>{a.addAction({name:ur(p),context:ur(m),startClocks:vi(),type:PN.CUSTOM,handlingStack:_}),pi({feature:"add-action"})})},addError:(p,m)=>{const _=mE("error");Fl(()=>{a.addError({error:p,handlingStack:_,context:ur(m),startClocks:vi()}),pi({feature:"add-error"})})},addTiming:Ht((p,m)=>{a.addTiming(ur(p),m)}),setGlobalContext:qi(l,gi.globalContext,Wi.setContext,"set-global-context"),getGlobalContext:qi(l,gi.globalContext,Wi.getContext,"get-global-context"),setGlobalContextProperty:qi(l,gi.globalContext,Wi.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:qi(l,gi.globalContext,Wi.removeContextProperty,"remove-global-context-property"),clearGlobalContext:qi(l,gi.globalContext,Wi.clearContext,"clear-global-context"),setUser:qi(l,gi.userContext,Wi.setContext,"set-user"),getUser:qi(l,gi.userContext,Wi.getContext,"get-user"),setUserProperty:qi(l,gi.userContext,Wi.setContextProperty,"set-user-property"),removeUserProperty:qi(l,gi.userContext,Wi.removeContextProperty,"remove-user-property"),clearUser:qi(l,gi.userContext,Wi.clearContext,"clear-user"),setAccount:qi(l,gi.accountContext,Wi.setContext,"set-account"),getAccount:qi(l,gi.accountContext,Wi.getContext,"get-account"),setAccountProperty:qi(l,gi.accountContext,Wi.setContextProperty,"set-account-property"),removeAccountProperty:qi(l,gi.accountContext,Wi.removeContextProperty,"remove-account-property"),clearAccount:qi(l,gi.accountContext,Wi.clearContext,"clear-account"),startView:f,stopSession:Ht(()=>{a.stopSession(),pi({feature:"stop-session"})}),addFeatureFlagEvaluation:Ht((p,m)=>{a.addFeatureFlagEvaluation(ur(p),ur(m)),pi({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:Ht(()=>t.getSessionReplayLink()),startSessionReplayRecording:Ht(p=>{t.start(p),pi({feature:"start-session-replay-recording",force:p&&p.force})}),stopSessionReplayRecording:Ht(()=>t.stop()),addDurationVital:Ht((p,m)=>{pi({feature:"add-duration-vital"}),a.addDurationVital({name:ur(p),type:C_.DURATION,startClocks:vxe(m.startTime),duration:m.duration,context:ur(m&&m.context),description:ur(m&&m.description)})}),startDurationVital:Ht((p,m)=>(pi({feature:"start-duration-vital"}),a.startDurationVital(ur(p),{context:ur(m&&m.context),description:ur(m&&m.description)}))),stopDurationVital:Ht((p,m)=>{pi({feature:"stop-duration-vital"}),a.stopDurationVital(typeof p=="string"?ur(p):p,{context:ur(m&&m.context),description:ur(m&&m.description)})}),startFeatureOperation:Ht((p,m)=>{pi({feature:"add-operation-step-vital",action_type:"start"}),a.addOperationStepVital(p,"start",m)}),succeedFeatureOperation:Ht((p,m)=>{pi({feature:"add-operation-step-vital",action_type:"succeed"}),a.addOperationStepVital(p,"end",m)}),failFeatureOperation:Ht((p,m,_)=>{pi({feature:"add-operation-step-vital",action_type:"fail"}),a.addOperationStepVital(p,"end",_,m)})});return d}function xke(e,t){return{init:n=>{b9("DD_RUM",n)}
537,initConfiguration:e.initConfiguration,...t}}function Cke(){const e=Ake();return new mn(t=>{if(!e)return;const n=new e(Ht(r=>t.notify(r)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}function Ake(){let e;const t=window;if(t.Zone&&(e=ql(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){const n=new t.MutationObserver(Ln),r=ql(n,"originalInstance");e=r&&r.constructor}return e||(e=t.MutationObserver),e}function Rke(){const e=new mn,{stop:t}=_a(window,"open",()=>e.notify());return{observable:e,stop:t}}function kke(e,t,n,r,i){return{get:s=>{const o=n.findView(s),a=i.findUrl(s),l=t.findTrackedSession(s);if(l&&o&&a){const f=r.findActionId(s);return{application_id:e,session_id:l.id,user_action:f?{id:f}:void 0,view:{id:o.id,name:o.name,referrer:a.referrer,url:a.url}}}}}}const Ike=iRe,Oke=Xf;function Mke(e){const t=Hp({expireDelay:Oke});e.subscribe(1,r=>{t.add(n(r),r.startClocks.relative)}),e.subscribe(6,({endClocks:r})=>{t.closeActive(r.relative)}),e.subscribe(3,r=>{const i=t.find(r.startClocks.relative);i&&(r.name&&(i.name=r.name),r.context&&(i.context=r.context),i.sessionIsActive=r.sessionIsActive)}),e.subscribe(10,()=>{t.reset()});function n(r){return{service:r.service,version:r.version,context:r.context,id:r.id,name:r.name,startClocks:r.startClocks}}return{findView:r=>t.find(r),stop:()=>{t.stop()}}}const rW="initial_document",Nke=[[Zi.DOCUMENT,e=>rW===e],[Zi.XHR,e=>e==="xmlhttprequest"],[Zi.FETCH,e=>e==="fetch"],[Zi.BEACON,e=>e==="beacon"],[Zi.CSS,(e,t)=>/\.css$/i.test(t)],[Zi.JS,(e,t)=>/\.js$/i.test(t)],[Zi.IMAGE,(e,t)=>["image","img","icon"].includes(e)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)!==null],[Zi.FONT,(e,t)=>/\.(woff|eot|woff2|ttf)$/i.exec(t)!==null],[Zi.MEDIA,(e,t)=>["audio","video"].includes(e)||/\.(mp3|mp4)$/i.exec(t)!==null]];function Lke(e){const t=e.name;if(!Axe(t))return Zi.OTHER;const n=Rxe(t);for(const[r,i]of Nke)if(i(e.initiatorType,n))return r;return Zi.OTHER}function g5(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function iW(e){return e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch"}function Dke(e){const{duration:t,startTime:n,responseEnd:r}=e;return t===0&&n<r?jr(n,r):t}function Pke(e){if(!oW(e))return;const{startTime:t,fetchStart:n,workerStart:r,redirectStart:i,redirectEnd:s,domainLookupStart:o,domainLookupEnd:a,connectStart:l,secureConnectionStart:f,connectEnd:d,requestStart:p,responseStart:m,responseEnd:_}=e,v={download:Vu(t,m,_),first_byte:Vu(t,p,m)};return 0<r&&r<n&&(v.worker=Vu(t,r,n)),n<d&&(v.connect=Vu(t,l,d),l<=f&&f<=d&&(v.ssl=Vu(t,f,d))),n<a&&(v.dns=Vu(t,o,a)),t<s&&(v.redirect=Vu(t,i,s)),v}function sW(e){return e.duration>=0}function oW(e){const t=g5(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=$ke(e)?g5(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart):!0;return t&&n}function $ke(e){return e.redirectEnd>e.startTime}function Vu(e,t,n){if(e<=t&&t<=n)return{duration:Bt(jr(t,n)),start:Bt(jr(e,t))}}function Fke(e){return e.nextHopProtocol===""?void 0:e.nextHopProtocol}function Uke(e){return e.deliveryType===""?"other":e.deliveryType}function Bke(e){if(e.startTime<e.responseStart){const{encodedBodySize:t,decodedBodySize:n,transferSize:r}=e;return{size:n,encoded_body_size:t,decoded_body_size:n,transfer_size:r}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function $N(e){return e&&(!SCe(e)||Iv(Yl.TRACK_INTAKE_REQUESTS))}const zke=/data:(.+)?(;base64)?,/g,Hke=24e3;function jke(e,t=Hke){if(e.length<=t||!e.startsWith("data:"))return e;const n=e.substring(0,100).match(zke);return n?`${n[0]}[...]`:e}const Vke=32*Zf;function Gke(e,t){const n=Wke(e.requestBody,t.trackPayload);if(n){if(t.trackResponseErrors&&e.responseBody){const r=qke(e.responseBody);r&&(n.errors_count=r.length,n.errors=r)}return n}}function qke(e){let t;try{t=JSON.parse(e)}catch{return}if(!t||typeof t!="object")return;const n=t;return Cf(n.errors)?n.errors.map(i=>{var s;return{message:i.message,path:i.path,locations:i.locations,code:(s=i.extensions)===null||s===void 0?void 0:s.code}}):void 0}function aW(e,t){return t.allowedGraphQlUrls.find(n=>rT([n.match],e))}function Wke(e,t=!1){if(!e||typeof e!="string")return;let n;try{n=JSON.parse(e)}catch{return}if(!n||!n.query)return;const r=n.query.trim(),i=Yke(r),s=n.operationName;if(!i)return;let o;return n.variables&&(o=JSON.stringify(n.variables)),{operationType:i,operationName:s,variables:o,payload:t?xN(r,Vke,"..."):void 0}}function Yke(e){var t;return(t=e.match(/^\s*(query|mutation|subscription)\b/i))===null||t===void 0?void 0:t[1]}let m5=1;function Xke(e,t,n,r,i){const s=GRe(t,n,r,i);Kke(e,t,s),Zke(e,t,s)}function Kke(e,t,n){const r=aRe(t).subscribe(i=>{const s=i;if($N(s.url))switch(s.state){case"start":n.traceXhr(s,s.xhr),s.requestIndex=cW(),e.notify(7,{requestIndex:s.requestIndex,url:s.url});break;case"complete":n.clearTracingIfNeeded(s),e.notify(8,{duration:s.duration,method:s.method,requestIndex:s.requestIndex,spanId:s.spanId,startClocks:s.startClocks,status:s.status,traceId:s.traceId,traceSampled:s.traceSampled,type:oT.XHR,url:s.url,xhr:s.xhr,isAborted:s.isAborted,handlingStack:s.handlingStack,requestBody:s.requestBody,responseBody:s.responseBody});break}});return{stop:()=>r.unsubscribe()}}function Zke(e,t,n){const r=V9({responseBodyAction:i=>{var s;return!((s=aW(i.url,t))===null||s===void 0)&&s.trackResponseErrors?2:1}}).subscribe(i=>{var s;const o=i;if($N(o.url))switch(o.state){case"start":n.traceFetch(o),o.requestIndex=cW(),e.notify(7,{requestIndex:o.requestIndex,url:o.url});break;case"resolve":n.clearTracingIfNeeded(o),e.notify(8,{duration:jr(o.startClocks.timeStamp,Ai()),method:o.method,requestIndex:o.requestIndex,responseType:o.responseType,spanId:o.spanId,startClocks:o.startClocks,status:o.status,traceId:o.traceId,traceSampled:o.traceSampled,type:oT.FETCH,url:o.url,response:o.response,init:o.init,input:o.input,isAborted:o.isAborted,handlingStack:o.handlingStack,requestBody:(s=o.init)===null||s===void 0?void 0:s.body,responseBody:o.responseBody});break}});return{stop:()=>r.unsubscribe()}}function cW(){const e=m5;return m5+=1,e}function lW(e){return Rv(e)&&e<0?void 0:e}
537function uW({lifeCycle:e,isChildEvent:t,onChange:n=Ln}){const r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},i=e.subscribe(13,s=>{var o;if(!(s.type==="view"||s.type==="vital"||!t(s)))switch(s.type){case zt.ERROR:r.errorCount+=1,n();break;case zt.ACTION:r.actionCount+=1,s.action.frustration&&(r.frustrationCount+=s.action.frustration.type.length),n();break;case zt.LONG_TASK:r.longTaskCount+=1,n();break;case zt.RESOURCE:!((o=s._dd)===null||o===void 0)&&o.discarded||(r.resourceCount+=1,n());break}});return{stop:()=>{i.unsubscribe()},eventCounts:r}}function Jke(e,t){const n=ts();let r=!1;const{stop:i}=Xl(e,window,["click","mousedown","keydown","touchstart","pointerdown"],a=>{if(!a.cancelable)return;const l={entryType:"first-input",processingStart:Bs(),processingEnd:Bs(),startTime:a.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};a.type==="pointerdown"?s(e,l):o(l)},{passive:!0,capture:!0});return{stop:i};function s(a,l){Xl(a,window,["pointerup","pointercancel"],f=>{f.type==="pointerup"&&o(l)},{once:!0})}function o(a){if(!r){r=!0,i();const l=a.processingStart-a.startTime;l>=0&&l<ts()-n&&t(a)}}}var Tn;(function(e){e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.LONG_ANIMATION_FRAME="long-animation-frame",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource",e.VISIBILITY_STATE="visibility-state"})(Tn||(Tn={}));function xa(e,t){return new mn(n=>{if(!window.PerformanceObserver)return;const r=l=>{const f=tIe(l);f.length>0&&n.notify(f)};let i,s=!0;const o=new PerformanceObserver(Ht(l=>{s?i=Fi(()=>r(l.getEntries())):r(l.getEntries())}));try{o.observe(t)}catch{if([Tn.RESOURCE,Tn.NAVIGATION,Tn.LONG_TASK,Tn.PAINT].includes(t.type)){t.buffered&&(i=Fi(()=>r(performance.getEntriesByType(t.type))));try{o.observe({entryTypes:[t.type]})}catch{return}}}s=!1,Qke(e);let a;return!Qf(Tn.FIRST_INPUT)&&t.type===Tn.FIRST_INPUT&&({stop:a}=Jke(e,l=>{r([l])})),()=>{o.disconnect(),a&&a(),oo(i)}})}let rm;function Qke(e){return!rm&&eIe()&&"addEventListener"in performance&&(rm=Tr(e,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),()=>{rm?.stop()}}function eIe(){return window.performance!==void 0&&"getEntries"in performance}function Qf(e){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(e)}function tIe(e){return e.filter(t=>!nIe(t))}function nIe(e){return e.entryType===Tn.RESOURCE&&(!$N(e.name)||!sW(e))}function cI(e){return e.nodeType===Node.TEXT_NODE}function rIe(e){return e.nodeType===Node.COMMENT_NODE}function kc(e){return e.nodeType===Node.ELEMENT_NODE}function fW(e){return kc(e)&&!!e.shadowRoot}function iIe(e){const t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&kc(t.host)}function QGe(e){return e.childNodes.length>0||fW(e)}function eqe(e,t){let n=e.firstChild;for(;n;)t(n),n=n.nextSibling;fW(e)&&t(e.shadowRoot)}function sIe(e){return iIe(e)?e.host:e.parentNode}const dW=100,oIe=100,_5="data-dd-excluded-activity-mutations";function FN(e,t,n,r,i,s){const o=cIe(e,t,n,r);return aIe(o,i,s)}function aIe(e,t,n){let r,i=!1;const s=Fi(Ht(()=>f({hadActivity:!1})),dW),o=n!==void 0?Fi(Ht(()=>f({hadActivity:!0,end:Ai()})),n):void 0,a=e.subscribe(({isBusy:d})=>{oo(s),oo(r);const p=Ai();d||(r=Fi(Ht(()=>f({hadActivity:!0,end:p})),oIe))}),l=()=>{i=!0,oo(s),oo(r),oo(o),a.unsubscribe()};function f(d){i||(l(),t(d))}return{stop:l}}function cIe(e,t,n,r){return new mn(i=>{const s=[];let o,a=0;return s.push(t.subscribe(f=>{f.every(lIe)||l()}),n.subscribe(l),xa(r,{type:Tn.RESOURCE}).subscribe(f=>{f.some(d=>!bA(r,d.name))&&l()}),e.subscribe(7,f=>{bA(r,f.url)||(o===void 0&&(o=f.requestIndex),a+=1,l())}),e.subscribe(8,f=>{bA(r,f.url)||o===void 0||f.requestIndex<o||(a-=1,l())})),()=>{s.forEach(f=>f.unsubscribe())};function l(){i.notify({isBusy:a>0})}})}function bA(e,t){return rT(e.excludedActivityUrls,t)}function lIe(e){const t=e.type==="characterData"?e.target.parentElement:e.target;return!!(t&&kc(t)&&t.matches(`[${_5}], [${_5}] *`))}const aT="data-dd-action-name",hW="Masked Element",pW=[aT,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],uIe=[mW,dIe],fIe=[mW,hIe,pIe];function Pv(e,t){if(!e.isConnected)return;let n,r=e;for(;r&&r.nodeName!=="HTML";){const i=v5(r,uIe,mIe,t,n);if(i)return i;
537n=v5(r,fIe,_Ie,t,n)||cT(gIe(r),n),r=r.parentElement}return n}function gW(e){return/[0-9]/.test(e)}function dIe(e){if(e.id&&!gW(e.id))return`#${CSS.escape(e.id)}`}function hIe(e){if(e.tagName==="BODY")return;const t=e.classList;for(let n=0;n<t.length;n+=1){const r=t[n];if(!gW(r))return`${CSS.escape(e.tagName)}.${CSS.escape(r)}`}}function pIe(e){return CSS.escape(e.tagName)}function mW(e,t){if(t){const r=n(t);if(r)return r}for(const r of pW){const i=n(r);if(i)return i}function n(r){if(e.hasAttribute(r))return`${CSS.escape(e.tagName)}[${r}="${CSS.escape(e.getAttribute(r))}"]`}}function gIe(e){let t=e.parentElement.firstElementChild,n=1;for(;t&&t!==e;)t.tagName===e.tagName&&(n+=1),t=t.nextElementSibling;return`${CSS.escape(e.tagName)}:nth-of-type(${n})`}function v5(e,t,n,r,i){for(const s of t){const o=s(e,r);if(o&&n(e,o,i))return cT(o,i)}}function mIe(e,t,n){return e.ownerDocument.querySelectorAll(cT(t,n)).length===1}function _Ie(e,t,n){let r;if(n===void 0)r=o=>o.matches(t);else{const o=cT(`${t}:scope`,n);r=a=>a.querySelector(o)!==null}let s=e.parentElement.firstElementChild;for(;s;){if(s!==e&&r(s))return!1;s=s.nextElementSibling}return!0}function cT(e,t){return t?`${e}>${t}`:e}const qt={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:hh.ALLOW,MASK:hh.MASK,MASK_USER_INPUT:hh.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:hh.MASK_UNLESS_ALLOWLISTED},_W="data-dd-privacy",tqe="hidden",vIe="dd-privacy-",SA="***",nqe="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",yIe={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},bIe="x";function lf(e){return`[${_W}="${e}"], .${vIe}${e}`}function lT(e,t,n){if(n&&n.has(e))return n.get(e);const r=sIe(e),i=r?lT(r,t,n):t,s=EIe(e),o=SIe(s,i);return n&&n.set(e,o),o}function SIe(e,t){switch(t){case qt.HIDDEN:case qt.IGNORE:return t}switch(e){case qt.ALLOW:case qt.MASK:case qt.MASK_USER_INPUT:case qt.MASK_UNLESS_ALLOWLISTED:case qt.HIDDEN:case qt.IGNORE:return e;default:return t}}function EIe(e){if(kc(e)){if(e.tagName==="BASE")return qt.ALLOW;if(e.tagName==="INPUT"){const t=e;if(t.type==="password"||t.type==="email"||t.type==="tel"||t.type==="hidden")return qt.MASK;const n=t.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return qt.MASK}if(e.matches(lf(qt.HIDDEN)))return qt.HIDDEN;if(e.matches(lf(qt.MASK)))return qt.MASK;if(e.matches(lf(qt.MASK_UNLESS_ALLOWLISTED)))return qt.MASK_UNLESS_ALLOWLISTED;if(e.matches(lf(qt.MASK_USER_INPUT)))return qt.MASK_USER_INPUT;if(e.matches(lf(qt.ALLOW)))return qt.ALLOW;if(TIe(e))return qt.IGNORE}}function vW(e,t){switch(t){case qt.MASK:case qt.HIDDEN:case qt.IGNORE:return!0;case qt.MASK_UNLESS_ALLOWLISTED:return cI(e)?$b(e.parentNode)?!0:!bW(e.textContent||""):$b(e);case qt.MASK_USER_INPUT:return cI(e)?$b(e.parentNode):$b(e);default:return!1}}function wIe(e,t,n,r,i){if(r!==qt.MASK&&r!==qt.MASK_UNLESS_ALLOWLISTED||t===_W||pW.includes(t)||t===i.actionNameAttribute)return!1;switch(t){case"title":case"alt":case"placeholder":return!0}return!!(e==="A"&&t==="href"||e==="IFRAME"&&t==="srcdoc"||n&&t.startsWith("data-")||(e==="IMG"||e==="SOURCE")&&(t==="src"||t==="srcset"))}function $b(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;const t=e;if(t.tagName==="INPUT")switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!yIe[t.tagName]}const yW=e=>e.replace(/\S/g,bIe);function rqe(e,t){var n;const r=(n=e.parentElement)===null||n===void 0?void 0:n.tagName;let i=e.textContent||"";if(r==="HEAD"&&!i.trim())return;const o=t;if(r==="SCRIPT")i=SA;else if(o===qt.HIDDEN)i=SA;else if(vW(e,o))if(r==="DATALIST"||r==="SELECT"||r==="OPTGROUP"){if(!i.trim())return}else r==="OPTION"?i=SA:o===qt.MASK_UNLESS_ALLOWLISTED?i=SW(i):i=yW(i);return i}function TIe(e){if(e.nodeName==="SCRIPT")return!0;if(e.nodeName==="LINK"){const n=t("rel");return/preload|prefetch/i.test(n)&&t("as")==="script"||n==="shortcut icon"||n==="icon"}if(e.nodeName==="META"){const n=t("name"),r=t("rel"),i=t("property");return/^msapplication-tile(image|color)$/.test(n)||n==="application-name"||r==="icon"||r==="apple-touch-icon"||r==="shortcut icon"||n==="keywords"||n==="description"||/^(og|twitter|fb):/.test(i)||/^(og|twitter):/.test(n)||n==="pinterest"||n==="robots"||n==="googlebot"||n==="bingbot"||e.hasAttribute("http-equiv")||n==="author"||n==="generator"||n==="framework"||n==="publisher"||n==="progid"||/^article:/.test(i)||/^product:/.test(i)||n==="google-site-verification"||n==="yandex-verification"||n==="csrf-token"||n==="p:domain_verify"||n==="verify-v1"||n==="verification"||n==="shopify-checkout-api-token"}function t(n){return(e.getAttribute(n)||"").toLowerCase()}return!1}function bW(e){var t;return!e||!e.trim()?!0:((t=window.$DD_ALLOW)===null||t===void 0?void 0:t.has(e.toLocaleLowerCase()))||!1}function SW(e,t){return bW(e)?e:t||yW(e)}const EW=zi,xIe=100;function CIe(e,t){const n=[];let r=0,i;s(e);function s(l){l.stopObservable.subscribe(o),n.push(l),oo(i),i=Fi(a,EW)}function o(){r===1&&n.every(l=>l.isStopped())&&(r=2,t(n))}function a(){oo(i),r===0&&(r=1,o())}return{tryAppend:l=>r!==0?!1:n.length>0&&!AIe(n[n.length-1].event,l.event)?(a(),!1):(s(l),!0),stop:()=>{a()}}}function AIe(e,t){return e.target===t.target&&RIe(e,t)<=xIe&&e.t
537imeStamp-t.timeStamp<=EW}function RIe(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function kIe(e,t,n=qt.ALLOW){const r=new Map,{actionNameAttribute:i}=t,s=y5(e,aT)||i&&y5(e,i);return s?{name:s,nameSource:"custom_attribute"}:n===qt.MASK?{name:hW,nameSource:"mask_placeholder"}:b5(e,IIe,t,r)||b5(e,OIe,t,r)||{name:"",nameSource:"blank"}}function y5(e,t){const n=e.closest(`[${t}]`);if(!n)return;const r=n.getAttribute(t);return TW(wW(r.trim()))}const IIe=[(e,t,n)=>{if("labels"in e&&e.labels&&e.labels.length>0)return e0(e.labels[0],t,n)},e=>{if(e.nodeName==="INPUT"){const t=e,n=t.getAttribute("type");if(n==="button"||n==="submit"||n==="reset")return{name:t.value,nameSource:"text_content"}}},(e,t,n)=>{if(e.nodeName==="BUTTON"||e.nodeName==="LABEL"||e.getAttribute("role")==="button")return e0(e,t,n)},(e,t,n)=>im(e,"aria-label",t,n),(e,t,n)=>{const r=e.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(i=>NIe(e,i)).filter(i=>!!i).map(i=>xW(i,t,n)).join(" "),nameSource:"text_content"}},(e,t,n)=>
537im(e,"alt",t,n),(e,t,n)=>im(e,"name",t,n),(e,t,n)=>im(e,"title",t,n),(e,t,n)=>im(e,"placeholder",t,n),(e,t,n)=>{if("options"in e&&e.options.length>0)return e0(e.options[0],t,n)}],OIe=[(e,t,n)=>e0(e,t,n)],MIe=10;function b5(e,t,n,r){let i=e,s=0;for(;s<=MIe&&i&&i.nodeName!=="BODY"&&i.nodeName!=="HTML"&&i.nodeName!=="HEAD";){for(const o of t){const a=o(i,n,r);if(a){const{name:l,nameSource:f}=a,d=l&&l.trim();if(d)return{name:TW(wW(d)),nameSource:f}}}if(i.nodeName==="FORM")break;i=i.parentElement,s+=1}}function wW(e){return e.replace(/\s+/g," ")}function TW(e){return e.length>100?`${xN(e,100)} [...]`:e}function NIe(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}function im(e,t,n,r){const{enablePrivacyForActionName:i,defaultPrivacyLevel:s}=n;let o=e.getAttribute(t);if(o&&i){const a=lT(e,s,r);wIe(e.tagName,t,o,a,n)&&(o=SW(o,hW))}else o||(o="");return{name:o,nameSource:"standard_attribute"}}function e0(e,t,n){return{name:xW(e,t,n)||"",nameSource:"text_content"}}function xW(e,t,n){if(e.isContentEditable)return;const{enablePrivacyForActionName:r,actionNameAttribute:i,defaultPrivacyLevel:s}=t;if(Iv(Yl.USE_TREE_WALKER_FOR_ACTION_NAME))return LIe(e,i,r,s,n);if("innerText"in e){let o=e.innerText;const a=l=>{const f=e.querySelectorAll(l);for(let d=0;d<f.length;d+=1){const p=f[d];if("innerText"in p){const m=p.innerText;m&&m.trim().length>0&&(o=o.replace(m,""))}}};return a(`[${aT}]`),i&&a(`[${i}]`),r&&a(`${lf(qt.HIDDEN)}, ${lf(qt.MASK)}`),o}return e.textContent}function LIe(e,t,n,r,i){const s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,a);let o="";for(;s.nextNode();){const l=s.currentNode;if(kc(l)){(l.nodeName==="BR"||l.nodeName==="P"||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(l).display))&&(o+=" ");continue}o+=l.textContent||""}return o.replace(/\s+/g," ").trim();function a(l){const f=lT(l,r,i);if(n&&f&&vW(l,f))return NodeFilter.FILTER_REJECT;if(kc(l)){if(l.hasAttribute(aT)||t&&l.hasAttribute(t))return NodeFilter.FILTER_REJECT;const d=getComputedStyle(l);if(d.visibility!=="visible"||d.display==="none"||d.contentVisibility&&d.contentVisibility!=="visible")return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}}function DIe(e,{onPointerDown:t,onPointerUp:n}){let r,i={selection:!1,input:!1,scroll:!1},s;const o=[Tr(e,window,"pointerdown",a=>{E5(a)&&(r=S5(),i={selection:!1,input:!1,scroll:!1},s=t(a))},{capture:!0}),Tr(e,window,"selectionchange",()=>{(!r||!S5())&&(i.selection=!0)},{capture:!0}),Tr(e,window,"scroll",()=>{i.scroll=!0},{capture:!0,passive:!0}),Tr(e,window,"pointerup",a=>{if(E5(a)&&s){const l=i;n(s,a,()=>l),s=void 0}},{capture:!0}),Tr(e,window,"input",()=>{i.input=!0},{capture:!0})];return{stop:()=>{o.forEach(a=>a.stop())}}}function S5(){const e=window.getSelection();return!e||e.isCollapsed}function E5(e){return e.target instanceof Element&&e.isPrimary!==!1}const w5=3;function PIe(e,t){if($Ie(e))return t.addFrustration(nm.RAGE_CLICK),e.some(T5)&&t.addFrustration(nm.DEAD_CLICK),t.hasError&&t.addFrustration(nm.ERROR_CLICK),{isRage:!0};const n=e.some(r=>r.getUserActivity().selection);return e.forEach(r=>{r.hasError&&r.addFrustration(nm.ERROR_CLICK),T5(r)&&!n&&r.addFrustration(nm.DEAD_CLICK)}),{isRage:!1}}function $Ie(e){if(e.some(t=>t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let t=0;t<e.length-(w5-1);t+=1)if(e[t+w5-1].event.timeStamp-e[t].event.timeStamp<=zi)return!0;return!1}const FIe='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function T5(e){if(e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll)return!1;let t=e.event.target;return t.tagName==="LABEL"&&t.hasAttribute("for")&&(t=document.getElementById(t.getAttribute("for"))),!t||!t.matches(FIe)}const CW=10*zi,zm=new Map;function UIe(e){const t=zm.get(e);return zm.delete(e),t}function AW(e,t){zm.set(e,t),zm.forEach((n,r)=>{jr(r,Bs())>CW&&zm.delete(r)})}const BIe=5*ss;function zIe(e,t,n,r){const i=Hp({expireDelay:BIe}),s=new mn;let o;e.subscribe(10,()=>{i.reset()}),e.subscribe(5,d),e.subscribe(11,p=>{p.reason===kh.UNLOADING&&d()});const{stop:a}=DIe(r,{onPointerDown:p=>HIe(r,e,t,p,n),onPointerUp:({clickActionBase:p,hadActivityOnPointerDown:m},_,v)=>{jIe(r,e,t,n,i,s,f,p,_,v,m)}});return{stop:()=>{d(),s.notify(),a()},actionContexts:{findActionId:p=>i.findAll(p)}};function f(p){if(!o||!o.tryAppend(p)){const m=p.clone();o=CIe(p,_=>{GIe(_,m)})}}function d(){o&&o.stop()}}function HIe(e,t,n,r,i){let s;
537if(e.enablePrivacyForActionName?s=lT(r.target,e.defaultPrivacyLevel):s=qt.ALLOW,s===qt.HIDDEN)return;const o=VIe(r,s,e);let a=!1;return FN(t,n,i,e,l=>{a=l.hadActivity},dW),{clickActionBase:o,hadActivityOnPointerDown:()=>a}}function jIe(e,t,n,r,i,s,o,a,l,f,d){var p;const m=RW(t,i,f,a,l);o(m);const _=(p=a?.target)===null||p===void 0?void 0:p.selector;_&&AW(l.timeStamp,_);const{stop:v}=FN(t,n,r,e,w=>{w.hadActivity&&w.end<m.startClocks.timeStamp?m.discard():w.hadActivity?m.stop(w.end):d()?m.stop(m.startClocks.timeStamp):m.stop()},CW),E=t.subscribe(5,({endClocks:w})=>{m.stop(w.timeStamp)}),b=s.subscribe(()=>{m.stop()});m.stopObservable.subscribe(()=>{E.unsubscribe(),v(),b.unsubscribe()})}function VIe(e,t,n){const r=e.target.getBoundingClientRect(),i=Pv(e.target,n.actionNameAttribute);i&&AW(e.timeStamp,i);const{name:s,nameSource:o}=kIe(e.target,n,t);return{type:PN.CLICK,target:{width:Math.round(r.width),height:Math.round(r.height),selector:i},position:{x:Math.round(e.clientX-r.left),y:Math.round(e.clientY-r.top)},name:s,nameSource:o}}function RW(e,t,n,r,i){const s=Ui(),o=vi(),a=t.add(s,o.relative),l=uW({lifeCycle:e,isChildEvent:v=>v.action!==void 0&&(Array.isArray(v.action.id)?v.action.id.includes(s):v.action.id===s)});let f=0,d;const p=[],m=new mn;function _(v){f===0&&(d=v,f=1,d?a.close(TN(d)):a.remove(),l.stop(),m.notify())}return{event:i,stop:_,stopObservable:m,get hasError(){return l.eventCounts.errorCount>0},get hasPageActivity(){return d!==void 0},getUserActivity:n,addFrustration:v=>{p.push(v)},startClocks:o,isStopped:()=>f===1||f===2,clone:()=>RW(e,t,n,r,i),validate:v=>{if(_(),f!==1)return;const{resourceCount:E,errorCount:b,longTaskCount:w}=l.eventCounts,T={duration:d&&jr(o.timeStamp,d),startClocks:o,id:s,frustrationTypes:p,c
537ounts:{resourceCount:E,errorCount:b,longTaskCount:w},events:v??[i],event:i,...r};e.notify(0,T),f=2},discard:()=>{_(),f=2}}}function GIe(e,t){const{isRage:n}=PIe(e,t);n?(e.forEach(r=>r.discard()),t.stop(Ai()),t.validate(e.map(r=>r.event))):(t.discard(),e.forEach(r=>r.validate()))}function qIe(e,t,n,r,i){const{unsubscribe:s}=e.subscribe(0,l=>{e.notify(12,x5(l))});t.register(0,({startTime:l,eventType:f})=>{if(f!==zt.ERROR&&f!==zt.RESOURCE&&f!==zt.LONG_TASK)return zs;const d=o.findActionId(l);return d?{type:f,action:{id:d}}:zs}),t.register(1,({startTime:l})=>({action:{id:o.findActionId(l)}}));let o={findActionId:Ln},a=Ln;return i.trackUserInteractions&&({actionContexts:o,stop:a}=zIe(e,n,r,i)),{addAction:l=>{e.notify(12,x5(l))},actionContexts:o,stop:()=>{s(),a()}}}function x5(e){const t=EA(e)?{action:{id:e.id,loading_time:lW(Bt(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position,name_source:e.nameSource}}}:{context:e.context},n=Rc({action:{id:Ui(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:zt.ACTION},t),r=EA(e)?e.duration:void 0,i=EA(e)?{events:e.events}:{handlingStack:e.handlingStack};return{rawRumEvent:n,duration:r,startTime:e.startClocks.relative,domainContext:i}}function EA(e){return e.type!==PN.CUSTOM}function WIe(e){const t=ERe([Ww.error]).subscribe(n=>e.notify(n.error));return{stop:()=>{t.unsubscribe()}}}function YIe(e,t){const n=iAe(e,[x_.cspViolation,x_.intervention]).subscribe(r=>t.notify(r));return{stop:()=>{n.unsubscribe()}}}function XIe(e,t,n){const r=new mn;return n.subscribe(i=>{i.type===0&&r.notify(i.error)}),WIe(r),YIe(t,r),r.subscribe(i=>e.notify(14,{error:i})),KIe(e)}function KIe(e){return e.subscribe(14,({error:t})=>{e.notify(12,ZIe(t))}),{addError:({error:t,handlingStack:n,componentStack:r,startClocks:i,context:s})=>{const o=IN({originalError:t,handlingStack:n,componentStack:r,startClocks:i,nonErrorPrefix:"Provided",source:Bp.CUSTOM,handling:"handled"});o.context=Rc(o.context,s),e.notify(14,{error:o})}}}function ZIe(e){const t={date:e.startClocks.timeStamp,error:{id:Ui(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:zt.ERROR,context:e.context},n={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:t,startTime:e.startClocks.relative,domainContext:n}}const C5=new WeakSet;function JIe(e){if(!performance||!("getEntriesByName"in performance))return;const t=performance.getEntriesByName(e.url,"resource");if(!t.length||!("toJSON"in t[0]))return;const n=t.filter(r=>!C5.has(r)).filter(r=>sW(r)&&oW(r)).filter(r=>QIe(r,e.startClocks.relative,kW({startTime:e.startClocks.relative,duration:e.duration})));if(n.length===1)return C5.add(n[0]),n[0].toJSON()}function kW(e){return Up(e.startTime,e.duration)}function QIe(e,t,n){return e.startTime>=t-1&&kW(e)<=Up(n,1)}const eOe=2*ss;function tOe(e){const t=nOe(e)||rOe(e);if(!(!t||t.traceTime<=ts()-eOe))return t.traceId}function nOe(e){const t=e.querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]");return IW(t&&t.content,n&&n.content)}function rOe(e){const t=iOe(e);if(t)return IW(w_(t,"trace-id"),w_(t,"trace-time"))}function IW(e,t){const n=t&&Number(t);if(!(!e||!n))return{traceId:e,traceTime:n}}function iOe(e){for(let t=0;t<e.childNodes.length;t+=1){const n=A5(e.childNodes[t]);if(n)return n}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){const n=e.body.childNodes[t],r=A5(n);if(r)return r;if(!cI(n))break}}function A5(e){if(e&&rIe(e)){const t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function OW(){if(Qf(Tn.NAVIGATION)){const n=performance.getEntriesByType(Tn.NAVIGATION)[0];if(n)return n}const e=sOe(),t={entryType:Tn.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function sOe(){const e={},t=performance.timing;for(const n in t)if(Rv(t[n])){const r=n,i=t[r];e[r]=i===0?0:TN(i)}return e}function oOe(e,t,n=OW){NN(e,"interactive",()=>{const r=n(),i=Object.assign(r.toJSON(),{entryType:Tn.RESOURCE,initiatorType:rW,duration:r.responseEnd,traceId:tOe(document),toJSON:()=>({...i,toJSON:void 0})});t(i)})}const aOe=1e3;function cOe(e){const t=new Set,n=e.subscribe(8,r=>{t.add(r),t.size>aOe&&(Dv("Too many requests"),t.delete(t.values().next().value))});return{getMatchingRequest(r){let i=1/0,s;for(const o of t){const a=r.startTime-o.startClocks.relative;0<=a&&a<i&&o.url===r.name&&(i=Math.abs(a),s=o)}return s&&t.delete(s),s},stop(){n.unsubscribe()}}}function lOe(e,t,n,r=SRe(),i=oOe){let s;const o=t.trackEarlyRequests;o?s=cOe(e):e.subscribe(8,f=>{l(()=>uOe(f,t,n))});const a=xa(t,{type:Tn.RESOURCE,buffered:!0}).subscribe(f=>{for(const d of f)(o||!iW(d))&&l(()=>R5(d,t,n,s))});i(t,f=>{l(()=>R5(f,t,n,s))});function l(f){r.push(()=>{const d=f();d&&e.notify(12,d)})}return{stop:()=>{r.stop(),a.unsubscribe()}}}function uOe(e,t,n){const r=JIe(e);return MW(r,e,n,t)}function R5(e,t,n,r){const i=iW(e)&&r?r.getMatchingRequest(e):void 0;return MW(e,i,n,t)}function MW(e,t,n,r){if(!e&&!t)return;const i=t?pOe(t,r):gOe(e,r);if(!r.trackResources&&!i)return;const s=e?Zw(e.startTime):t.startClocks,o=e?Dke(e):mOe(n,s,t.duration),a=t&&fOe(t,r),l=Rc({date:s.timeStamp,resource:{id:Ui(),duration:Bt(o),type:t?t.type===oT.XHR?Zi.XHR:Zi.FETCH:Lke(e),method:t?t.method:void 0,status_code:t?t.status:_Oe(e.responseStatus),url:t?jke(t.url):e.name,protocol:e&&Fke(e),delivery_type:e&&Uke(e),graphql:a},type:zt.RESOURCE,_dd:{discarded:!r.trackResources}},i,e&&hOe(e));return{startTime:s.relative,duration:o,rawRumEvent:l,domainContext:dOe(e,t)}}function fOe(e,t){const n=aW(e.url,t);if(n)return Gke(e,n)}function dOe(e,t){if(t){const n={performanceEntry:e,isAborted:t.isAborted,handlingStack:t.handlingStack};return t.type===oT.XHR?{xhr:t.xhr,...n}:{requestInput:t.input,requestInit:t.init,response:t.response,error:t.error,...n}}return{performanceEntry:e}}function hOe(e){const{renderBlockingStatus:t}=e;return{resource:{render_blocking_status:t,...Bke(e),...Pke(e)}}}function pOe(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}function gOe(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:Q9().toString(),rule_psr:t.rulePsr}}}function mOe(e,t,n){return e.wasInPageStateDuringPeriod("frozen",t.relative,n)?void 0:n}function _Oe(e){return e===0?void 0:e}function vOe(e,t,n){const{stop:r,eventCounts:i}=uW({lifeCycle:e,isChildEvent:s=>s.view.id===t,onChange:n});return{stop:r,eventCounts:i}}const yOe=10*ss;function bOe(e,t,n){return{stop:xa(e,{type:Tn.PAINT,buffered:!0}).subscribe(i=>{const s=i.find(o=>o.name==="first-contentful-paint"&&o.startTime<t.timeStamp&&o.startTime<yOe);s&&n(s.startTime)}).unsubscribe}}function SOe(e,t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t(jr(e,Bs()))})})}function EOe(e,t,n){const r=xa(e,{type:Tn.FIRST_INPUT,buffered:!0}).subscribe(i=>{const s=i.find(o=>o.startTime<t.timeStamp);if(s){const o=jr(s.startTime,s.processingStart);let a;s.target&&kc(s.target)&&(a=Pv(s.target,e.actionNameAttribute)),n({delay:o>=0?o:0,time:s.startTime,targetSelector:a})}});return{stop:()=>{r.unsubscribe()}}}function wOe(e,t,n=OW){return COe(e,()=>{const r=n();xOe(r)||t(TOe(r))})}function TOe(e){return{domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=Bs()?e.responseStart:void 0}}function xOe(e){return e.loadEventEnd<=0}function COe(e,t){let n;const{stop:r}=NN(e,"complete",()=>{n=Fi(()=>t())});return{stop:()=>{r(),oo(n)}}}const AOe=10*ss;function ROe(e,t,n,r){let i=1/0;const{stop:s}=Xl(e,n,["pointerdown","keydown"],l=>{i=l.timeStamp},{capture:!0,once:!0});let o=0;const a=xa(e,{type:Tn.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(l=>{const f=J7(l,d=>d.entryType===Tn.LARGEST_CONTENTFUL_PAINT&&d.startTime<i&&d.startTime<t.timeStamp&&d.startTime<AOe&&d.size>o);if(f){let d;f.element&&(d=Pv(f.element,e.actionNameAttribute)),r({value:f.startTime,targetSelector:d,resourceUrl:kOe(f)}),o=f.size}});return{stop:()=>{s(),a.unsubscribe()}}}function kOe(e){return e.url===""?void 0:e.url}function NW(e,t,n=window){if(document.visibilityState==="hidden")return{timeStamp:0,stop:Ln};if(Qf(Tn.VISIBILITY_STATE)){const s=performance.getEntriesByType(Tn.VISIBILITY_STATE).filter(o=>o.name==="hidden").find(o=>o.startTime>=t.relative);if(s)return{timeStamp:s.startTime,stop:Ln}}let r=1/0;const{stop:i}=Xl(e,n,["pagehide","visibilitychange"],s=>{(s.type==="pagehide"||document.visibilityState==="hidden")&&(r=s.timeStamp,i())},{capture:!0});return{get timeStamp(){return r},stop:i}}function IOe(e,t,n,r){const i={},{stop:s}=wOe(e,p=>{n(p.loadEvent),i.navigationTimings=p,r()}),o=NW(e,t),{stop:a}=bOe(e,o,p=>{i.firstContentfulPaint=p,r()}),{stop:l}=ROe(e,o,window,p=>{i.largestContentfulPaint=p,r()}),{stop:f}=EOe(e,o,p=>{i.firstInput=p,r()});function d(){s(),a(),l(),f(),o.stop()}return{stop:d,initialViewMetrics:i}}const lI=(e,t)=>e*t,OOe=(e,t)=>
537{const n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),i=Math.min(e.right,t.right),s=Math.min(e.bottom,t.bottom);return n>=i||r>=s?0:lI(i-n,s-r)},k5=e=>{const t=lI(e.previousRect.width,e.previousRect.height),n=lI(e.currentRect.width,e.currentRect.height),r=OOe(e.previousRect,e.currentRect);return t+n-r};function MOe(e,t,n){if(!$Oe())return{stop:Ln};let r=0,i;n({value:0});const s=POe(),o=xa(e,{type:Tn.LAYOUT_SHIFT,buffered:!0}).subscribe(a=>{var l;for(const f of a){if(f.hadRecentInput||f.startTime<t)continue;const{cumulatedValue:d,isMaxValue:p}=s.update(f);if(p){const m=NOe(f.sources);i={target:m?.node?new WeakRef(m.node):void 0,time:jr(t,f.startTime),previousRect:m?.previousRect,currentRect:m?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(d>r){r=d;const m=(l=i?.target)===null||l===void 0?void 0:l.deref();n({value:Um(r,4),targetSelector:m&&Pv(m,e.actionNameAttribute),time:i?.time,previousRect:i?.previousRect?I5(i.previousRect):void 0,currentRect:i?.currentRect?I5(i.currentRect):void 0,devicePixelRatio:i?.devicePixelRatio})}}});return{stop:()=>{o.unsubscribe()}}}function NOe(e){let t;for(const n of e)if(n.node&&kc(n.node)){const r=k5(n);(!t||k5(t)<r)&&(t=n)}return t}function I5({x:e,y:t,width:n,height:r}){return{x:e,y:t,width:n,height:r}}const LOe=5*zi,DOe=zi;function POe(){let e=0,t,n,r=0;return{update:i=>{const s=t===void 0||i.startTime-n>=DOe||i.startTime-t>=LOe;let o;return s?(t=n=i.startTime,r=e=i.value,o=!0):(e+=i.value,n=i.startTime,o=i.value>r,o&&(r=i.value)),{cumulatedValue:e,isMaxValue:o}}}}function $Oe(){return Qf(Tn.LAYOUT_SHIFT)&&"WeakRef"in window}let t0,LW=0,wA=1/0,TA=0;function FOe(){"interactionCount"in performance||t0||(t0=new window.PerformanceObserver(Ht(e=>{e.getEntries().forEach(t=>{const n=t;n.interactionId&&(wA=Math.min(wA,n.interactionId),TA=Math.max(TA,n.interactionId),LW=(TA-wA)/7+1)})})),t0.observe({type:"event",buffered:!0,durationThreshold:0}))}const O5=()=>t0?LW:window.performance.interactionCount||0,M5=10,UOe=1*ss;function BOe(e,t,n){if(!jOe())return{getInteractionToNextPaint:()=>{},setViewEnd:Ln,stop:Ln};const{getViewInteractionCount:r,stopViewInteractionCount:i}=HOe(n);let s=1/0;const o=zOe(r);let a=-1,l,f;function d(_){for(const E of _)E.interactionId&&E.startTime>=t&&E.startTime<=s&&o.process(E);const v=o.estimateP98Interaction();v&&v.duration!==a&&(a=v.duration,f=jr(t,v.startTime),l=UIe(v.startTime),!l&&v.target&&kc(v.target)&&(l=Pv(v.target,e.actionNameAttribute)))}const p=xa(e,{type:Tn.FIRST_INPUT,buffered:!0}).subscribe(d),m=xa(e,{type:Tn.EVENT,durationThreshold:40,buffered:!0}).subscribe(d);return{getInteractionToNextPaint:()=>{if(a>=0)return{value:Math.min(a,UOe),targetSelector:l,time:f};if(r())return{value:0}}
537,setViewEnd:_=>{s=_,i()},stop:()=>{m.unsubscribe(),p.unsubscribe()}}}function zOe(e){const t=[];function n(){t.sort((r,i)=>i.duration-r.duration).splice(M5)}return{process(r){const i=t.findIndex(o=>r.interactionId===o.interactionId),s=t[t.length-1];i!==-1?r.duration>t[i].duration&&(t[i]=r,n()):(t.length<M5||r.duration>s.duration)&&(t.push(r),n())},estimateP98Interaction(){const r=Math.min(t.length-1,Math.floor(e()/50));return t[r]}}}function HOe(e){FOe();const t=e===uc.INITIAL_LOAD?0:O5();let n={stopped:!1};function r(){return O5()-t}return{getViewInteractionCount:()=>n.stopped?n.interactionCount:r(),stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:r()}}}}function jOe(){return Qf(Tn.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function VOe(e,t,n,r,i,s,o){let a=i===uc.INITIAL_LOAD,l=!0;const f=[],d=NW(r,s);function p(){if(!l&&!a&&f.length>0){const _=Math.max(...f);_<d.timeStamp-s.relative&&o(_)}}const{stop:m}=FN(e,t,n,r,_=>{l&&(l=!1,_.hadActivity&&f.push(jr(s.timeStamp,_.end)),p())});return{stop:()=>{m(),d.stop()},setLoadEvent:_=>{a&&(a=!1,f.push(_),p())}}}function iqe(){let e;const t=window.visualViewport;return t?e=t.pageLeft-t.offsetLeft:window.scrollX!==void 0?e=window.scrollX:e=window.pageXOffset||0,Math.round(e)}function GOe(){let e;const t=window.visualViewport;return t?e=t.pageTop-t.offsetTop:window.scrollY!==void 0?e=window.scrollY:e=window.pageYOffset||0,Math.round(e)}let xA;function qOe(e){return xA||(xA=WOe(e)),xA}function WOe(e){return new mn(t=>{const{throttled:n}=Jw(()=>{t.notify(UN())},200);return Tr(e,window,"resize",n,{capture:!0,passive:!0}).stop})}function UN(){const e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}const YOe=zi;function XOe(e,t,n,r=ZOe(e)){let i=0,s=0,o=0;const a=r.subscribe(({scrollDepth:l,scrollTop:f,scrollHeight:d})=>{let p=!1;if(l>i&&(i=l,p=!0),d>s){s=d;const m=Bs();o=jr(t.relative,m),p=!0}p&&n({maxDepth:Math.min(i,s),maxDepthScrollTop:f,maxScrollHeight:s,maxScrollHeightTime:o})});return{stop:()=>a.unsubscribe()}}function KOe(){const e=GOe(),{height:t}=UN(),n=Math.round((document.scrollingElement||document.documentElement).scrollHeight),r=Math.round(t+e);return{scrollHeight:n,scrollDepth:r,scrollTop:e}}function ZOe(e,t=YOe){return new mn(n=>{function r(){n.notify(KOe())}if(window.ResizeObserver){const i=Jw(r,t,{leading:!1,trailing:!0}),s=document.scrollingElement||document.documentElement,o=new ResizeObserver(Ht(i.throttled));s&&o.observe(s);const a=Tr(e,window,"scroll",i.throttled,{passive:!0});return()=>{i.cancel(),o.disconnect(),a.stop()}}})}function JOe(e,t,n,r,i,s,o){const a={},{stop:l,setLoadEvent:f}=VOe(e,t,n,r,s,o,E=>{a.loadingTime=E,i()}),{stop:d}=XOe(r,o,E=>{a.scroll=E}),{stop:p}=MOe(r,o.relative,E=>{a.cumulativeLayoutShift=E,i()}),{stop:m,getInteractionToNextPaint:_,setViewEnd:v}=BOe(r,o.relative,s);return{stop:()=>{l(),p(),d()},stopINPTracking:m,setLoadEvent:f,setViewEnd:v,getCommonViewMetrics:()=>(a.interactionToNextPaint=_(),a)}}function QOe(e,t){const{stop:n}=Tr(e,window,"pageshow",r=>{r.persisted&&t(r)},{capture:!0});return n}function eMe(e,t,n){SOe(e.relative,r=>{t.firstContentfulPaint=r,t.largestContentfulPaint={value:r},n()})}const tMe=3e3,nMe=5*ss,rMe=5*ss;function iMe(e,t,n,r,i,s,o,a){const l=new Set;let f=m(uc.INITIAL_LOAD,Y7(),a),d;_();let p;o&&(p=v(s),i.trackBfcacheViews&&(d=QOe(i,E=>{f.end();const b=Zw(E.timeStamp);f=m(uc.BF_CACHE,b,void 0)})));function m(E,b,w){const T=sMe(t,n,r,i,e,E,b,w);return l.add(T),T.stopObservable.subscribe(()=>{l.delete(T)}),T}function _(){t.subscribe(10,()=>{f=m(uc.ROUTE_CHANGE,void 0,{name:f.name,service:f.service,version:f.version,context:f.contextManager.getContext()})}),t.subscribe(9,()=>{f.end({sessionIsActive:!1})})}function v(E){return E.subscribe(({oldLocation:b,newLocation:w})=>{aMe(b,w)&&(f.end(),f=m(uc.ROUTE_CHANGE))})}return{addTiming:(E,b=Ai())=>{f.addTiming(E,b)},startView:(E,b)=>{f.end({endClocks:b}),f=m(uc.ROUTE_CHANGE,b,E)},setViewContext:E=>{f.contextManager.setContext(E)}
537,setViewContextProperty:(E,b)=>{f.contextManager.setContextProperty(E,b)},setViewName:E=>{f.setViewName(E)},getViewContext:()=>f.contextManager.getContext(),stop:()=>{p&&p.unsubscribe(),d&&d(),f.end(),l.forEach(E=>E.stop())}}}function sMe(e,t,n,r,i,s,o=vi(),a){const l=Ui(),f=new mn,d={};let p=0,m;const _=E_(i),v=sT();let E=!0,b=a?.name;const w=a?.service||r.service,T=a?.version||r.version,R=a?.context;R&&v.setContext(R);const C={id:l,name:b,startClocks:o,service:w,version:T,context:R};e.notify(1,C),e.notify(2,C);const{throttled:k,cancel:M}=Jw(ce,tMe,{leading:!1}),{setLoadEvent:I,setViewEnd:$,stop:Q,stopINPTracking:V,getCommonViewMetrics:N}=JOe(e,t,n,r,de,s,o),{stop:U,initialViewMetrics:K}=s===uc.INITIAL_LOAD?IOe(r,o,I,de):{stop:Ln,initialViewMetrics:{}};s===uc.BF_CACHE&&eMe(o,K,de);const{stop:j,eventCounts:fe}=vOe(e,l,de),P=Fp(ce,nMe),ee=e.subscribe(11,L=>{L.reason===kh.UNLOADING&&ce()});ce(),v.changeObservable.subscribe(de);function W(){e.notify(3,{id:l,name:b,context:v.getContext(),startClocks:o,sessionIsActive:E})}function de(){W(),k()}function ce(){M(),W(),p+=1;const L=m===void 0?Ai():m.timeStamp;e.notify(4,{customTimings:d,documentVersion:p,id:l,name:b,service:w,version:T,context:v.getContext(),loadingType:s,location:_,startClocks:o,commonViewMetrics:N(),initialViewMetrics:K,duration:jr(o.timeStamp,L),isActive:m===void 0,sessionIsActive:E,eventCounts:fe})}return{get name(){return b},service:w,version:T,contextManager:v,stopObservable:f,end(L={}){var J,re;m||(m=(J=L.endClocks)!==null&&J!==void 0?J:vi(),E=(re=L.sessionIsActive)!==null&&re!==void 0?re:!0,e.notify(5,{endClocks:m}),e.notify(6,{endClocks:m}),Kw(P),$(m.relative),Q(),ee.unsubscribe(),ce(),Fi(()=>{this.stop()},rMe))},stop(){U(),j(),V(),f.notify()},addTiming(L,J){if(m)return;const re=Exe(J)?J:jr(o.timeStamp,J);d[oMe(L)]=re,de()}
537,setViewName(L){b=L,ce()}}}function oMe(e){const t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&Ft.warn(`Invalid timing name: ${e}, sanitized to: ${t}`),t}function aMe(e,t){return e.pathname!==t.pathname||!cMe(t.hash)&&N5(t.hash)!==N5(e.hash)}function cMe(e){const t=e.substring(1);return t!==""&&!!document.getElementById(t)}function N5(e){const t=e.indexOf("?");return t<0?e:e.slice(0,t)}function lMe(e,t,n,r,i,s,o,a,l,f){return e.subscribe(4,d=>e.notify(12,uMe(d,n,a))),t.register(0,({startTime:d,eventType:p})=>{const m=l.findView(d);return m?{type:p,service:m.service,version:m.version,context:m.context,view:{id:m.id,name:m.name}}:Kl}),t.register(1,({startTime:d})=>{var p;return{view:{id:(p=l.findView(d))===null||p===void 0?void 0:p.id}}}),iMe(r,e,i,s,n,o,!n.trackViewsManually,f)}function uMe(e,t,n){var r,i,s,o,a,l,f,d,p,m,_,v,E,b,w,T,R,C;const k=n.getReplayStats(e.id),M=(i=(r=e.commonViewMetrics)===null||r===void 0?void 0:r.cumulativeLayoutShift)===null||i===void 0?void 0:i.devicePixelRatio,I={_dd:{document_version:e.documentVersion,replay_stats:k,cls:M?{device_pixel_ratio:M}:void 0,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:zt.VIEW,view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:(s=e.commonViewMetrics.cumulativeLayoutShift)===null||s===void 0?void 0:s.value,cumulative_layout_shift_time:Bt((o=e.commonViewMetrics.cumulativeLayoutShift)===null||o===void 0?void 0:o.time),cumulative_layout_shift_target_selector:(a=e.commonViewMetrics.cumulativeLayoutShift)===null||a===void 0?void 0:a.targetSelector,first_byte:Bt((l=e.initialViewMetrics.navigationTimings)===null||l===void 0?void 0:l.firstByte),dom_complete:Bt((f=e.initialViewMetrics.navigationTimings)===null||f===void 0?void 0:f.domComplete),dom_content_loaded:Bt((d=e.initialViewMetrics.navigationTimings)===null||d===void 0?void 0:d.domContentLoaded),dom_interactive:Bt((p=e.initialViewMetrics.navigationTimings)===null||p===void 0?void 0:p.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:Bt(e.initialViewMetrics.firstContentfulPaint),first_input_delay:Bt((m=e.initialViewMetrics.firstInput)===null||m===void 0?void 0:m.delay),first_input_time:Bt((_=e.initialViewMetrics.firstInput)===null||_===void 0?void 0:_.time),first_input_target_selector:(v=e.initialViewMetrics.firstInput)===null||v===void 0?void 0:v.targetSelector,interaction_to_next_paint:Bt((E=e.commonViewMetrics.interactionToNextPaint)===null||E===void 0?void 0:E.value),interaction_to_next_paint_time:Bt((b=e.commonViewMetrics.interactionToNextPaint)===null||b===void 0?void 0:b.time),interaction_to_next_paint_target_selector:(w=e.commonViewMetrics.interactionToNextPaint)===null||w===void 0?void 0:w.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:Bt((T=e.initialViewMetrics.largestContentfulPaint)===null||T===void 0?void 0:T.value),largest_contentful_paint_target_selector:(R=e.initialViewMetrics.largestContentfulPaint)===null||R===void 0?void 0:R.targetSelector,load_event:Bt((C=e.initialViewMetrics.navigationTimings)===null||C===void 0?void 0:C.loadEvent),loading_time:lW(Bt(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},performance:fMe(e.commonViewMetrics,e.initialViewMetrics),resource:{count:e.eventCounts.resourceCount},time_spent:Bt(e.duration)},display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:Bt(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:t.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:$Re()}};return cu(e.customTimings)||(I.view.custom_timings=H7(e.customTimings,Bt)),{rawRumEvent:I,startTime:e.startClocks.relative,duration:e.duration,domainContext:{location:e.location}}}function fMe({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:n,firstInput:r,largestContentfulPaint:i}){return{cls:e&&{score:e.value,timestamp:Bt(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:n&&{timestamp:Bt(n)},fid:r&&{duration:Bt(r.delay),timestamp:Bt(r.time),target_selector:r.targetSelector},inp:t&&{duration:Bt(t.value),timestamp:Bt(t.time),target_selector:t.targetSelector},lcp:i&&{timestamp:Bt(i.value),target_selector:i.targetSelector,resource_url:i.resourceUrl}}}const dMe="rum";function hMe(e,t,n){const r=ZAe(e,dMe,i=>gMe(e,i),n);return r.expireObservable.subscribe(()=>{t.notify(9)}
537),r.renewObservable.subscribe(()=>{t.notify(10)}),r.sessionStateUpdateObservable.subscribe(({previousState:i,newState:s})=>{if(!i.forcedReplay&&s.forcedReplay){const o=r.findSession();o&&(o.isReplayForced=!0)}}),{findTrackedSession:i=>{const s=r.findSession(i);if(!(!s||s.trackingType==="0"))return{id:s.id,sessionReplay:s.trackingType==="1"?1:s.isReplayForced?2:0,anonymousId:s.anonymousId}},expire:r.expire,expireObservable:r.expireObservable,setForcedReplay:()=>r.updateSessionState({forcedReplay:"1"})}}function pMe(){const e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:L9("records")?1:0};return{findTrackedSession:()=>e,expire:Ln,expireObservable:new mn,setForcedReplay:Ln}}function gMe(e,t){return mMe(t)?t:pf(e.sessionSampleRate)?pf(e.sessionReplaySampleRate)?"1":"2":"0"}function mMe(e){return e==="0"||e==="1"||e==="2"}function _Me(e,t,n,r,i,s){const o=[e.rumEndpointBuilder];e.replica&&o.push(e.replica.rumEndpointBuilder);const a=D9({encoder:s(2),request:N9(o,n),flushController:P9({pageMayExitObservable:r,sessionExpireObservable:i})});return t.subscribe(13,l=>{l.type===zt.VIEW?a.upsert(l,l.view.id):a.add(l)}),a}function vMe(e){const t=Lv();e.subscribe(13,n=>{t.send("rum",n)})}const yMe=Xf;function bMe(e,t,n,r){const i=Hp({expireDelay:yMe});let s;e.subscribe(1,({startClocks:l})=>{const f=r.href;i.add(a({url:f,referrer:s||document.referrer}),l.relative),s=f}),e.subscribe(6,({endClocks:l})=>{i.closeActive(l.relative)});const o=n.subscribe(({newLocation:l})=>{const f=i.find();if(f){const d=Bs();i.closeActive(d),i.add(a({url:l.href,referrer:f.referrer}),d)}});function a({url:l,referrer:f}){return{url:l,referrer:f}}return t.register(0,({startTime:l,eventType:f})=>{const d=i.find(l);return d?{type:f,view:{url:d.url,referrer:d.referrer}}:Kl}),{findUrl:l=>i.find(l),stop:()=>{o.unsubscribe(),i.stop()}}}function SMe(e,t){let n=E_(t);return new mn(r=>{const{stop:i}=EMe(e,o),{stop:s}=wMe(e,o);function o(){if(n.href===t.href)return;const a=E_(t);r.notify({newLocation:a,oldLocation:n}),n=a}return()=>{i(),s()}})}function EMe(e,t){const{stop:n}=_a(L5("pushState"),"pushState",({onPostCall:s})=>{s(t)}),{stop:r}=_a(L5("replaceState"),"replaceState",({onPostCall:s})=>{s(t)}),{stop:i}=Tr(e,window,"popstate",t);return{stop:()=>{n(),r(),i()}}}function wMe(e,t){return Tr(e,window,"hashchange",t)}function L5(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}const TMe=Xf;function xMe(e,t,n){const r=Hp({expireDelay:TMe});return e.subscribe(1,({startClocks:i})=>{r.add({},i.relative)}),e.subscribe(6,({endClocks:i})=>{r.closeActive(i.relative)}),t.register(0,({startTime:i,eventType:s})=>{if(!n.trackFeatureFlagsForEvents.concat([zt.VIEW,zt.ERROR]).includes(s))return zs;const a=r.find(i);return!a||cu(a)?zs:{type:s,feature_flags:a}}),{addFeatureFlagEvaluation:(i,s)=>{const o=r.find();o&&(o[i]=s)}}}const CMe=10*zi;let Ih,Fb;function AMe(e,t,n){e.metricsEnabled&&(DW(),Fb=!1,t.subscribe(13,()=>{Fb=!0}),n.subscribe(({bytesCount:r,messagesCount:i})=>{Fb&&(Fb=!1,Ih.batchCount+=1,P5(Ih.batchBytesCount,r),P5(Ih.batchMessagesCount,i))}),Fp(RMe,CMe))}function RMe(){Ih.batchCount!==0&&(iT("Customer data measures",Ih),DW())}function D5(){return{min:1/0,max:0,sum:0}}function P5(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function DW(){Ih={batchCount:0,batchBytesCount:D5(),batchMessagesCount:D5()}}const kMe=4e3,IMe=500,OMe=Xf;function MMe(e,t,n=IMe){const r=Hp({expireDelay:OMe,maxEntries:kMe});let i;Qf(Tn.VISIBILITY_STATE)&&performance.getEntriesByType(Tn.VISIBILITY_STATE).forEach(f=>{const d=f.name==="hidden"?"hidden":"active";o(d,f.startTime)}),o(PW(),Bs());const{stop:s}=Xl(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],l=>{o(LMe(l),l.timeStamp)},{capture:!0});function o(l,f=Bs()){l!==i&&(i=l,r.closeActive(f),r.add({state:i,startTime:f},f))}function a(l,f,d){return r.findAll(f,d).some(p=>p.state===l)}return e.register(0,({startTime:l,duration:f=0,eventType:d})=>{if(d===zt.VIEW){const p=r.findAll(l,f);return{type:d,_dd:{page_states:NMe(p,l,n)}}}return d===zt.ACTION||d===zt.ERROR?{type:d,view:{in_foreground:a("active",l,0)}}:zs}),{wasInPageStateDuringPeriod:a,addPageState:o,stop:()=>{s(),r.stop()}}}function NMe(e,t,n){if(e.length!==0)return e.slice(-n).reverse().map(({state:r,startTime:i})=>({state:r,start:Bt(jr(t,i))}
537))}function LMe(e){return e.type==="freeze"?"frozen":e.type==="pagehide"?e.persisted?"frozen":"terminated":PW()}function PW(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function DMe(e,t){let n;const r=requestAnimationFrame(Ht(()=>{n=UN()})),i=qOe(t).subscribe(s=>{n=s}).unsubscribe;return e.register(0,({eventType:s})=>({type:s,display:n?{viewport:n}:void 0})),{stop:()=>{i(),r&&cancelAnimationFrame(r)}}}function PMe(e,t){const n=window.cookieStore?$Me(e):UMe;return new mn(r=>n(t,i=>r.notify(i)))}function $Me(e){return(t,n)=>Tr(e,window.cookieStore,"change",i=>{const s=i.changed.find(o=>o.name===t)||i.deleted.find(o=>o.name===t);s&&n(s.value)}).stop}const FMe=zi;function UMe(e,t){const n=w_(document.cookie,e),r=Fp(()=>{const i=w_(document.cookie,e);i!==n&&t(i)},FMe);return()=>{Kw(r)}}const $5="datadog-ci-visibility-test-execution-id";function BMe(e,t,n=PMe(e,$5)){var r;let i=Cl($5)||((r=window.Cypress)===null||r===void 0?void 0:r.env("traceId"));const s=n.subscribe(o=>{i=o});return t.register(0,({eventType:o})=>typeof i!="string"?zs:{type:o,session:{type:"ci_test"},ci_test:{test_execution_id:i}}),{stop:()=>{s.unsubscribe()}}}function zMe(e,t){const n=xa(t,{type:Tn.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(r=>{for(const i of r){const s=Zw(i.startTime),o={date:s.timeStamp,long_task:{id:Ui(),entry_type:Y9.LONG_ANIMATION_FRAME,duration:Bt(i.duration),blocking_duration:Bt(i.blockingDuration),first_ui_event_timestamp:Bt(i.firstUIEventTimestamp),render_start:Bt(i.renderStart),style_and_layout_start:Bt(i.styleAndLayoutStart),start_time:Bt(i.startTime),scripts:i.scripts.map(a=>({duration:Bt(a.duration),pause_duration:Bt(a.pauseDuration),forced_style_and_layout_duration:Bt(a.forcedStyleAndLayoutDuration),start_time:Bt(a.startTime),execution_start:Bt(a.executionStart),source_url:a.sourceURL,source_function_name:a.sourceFunctionName,source_char_position:a.sourceCharPosition,invoker:a.invoker,invoker_type:a.invokerType,window_attribution:a.windowAttribution}))},type:zt.LONG_TASK,_dd:{discarded:!1}};e.notify(12,{rawRumEvent:o,startTime:s.relative,duration:i.duration,domainContext:{performanceEntry:i}})}});return{stop:()=>n.unsubscribe()}}function HMe(e,t){const n=xa(t,{type:Tn.LONG_TASK,buffered:!0}).subscribe(r=>{for(const i of r){if(i.entryType!==Tn.LONG_TASK||!t.trackLongTasks)break;const s=Zw(i.startTime),o={date:s.timeStamp,long_task:{id:Ui(),entry_type:Y9.LONG_TASK,duration:Bt(i.duration)},type:zt.LONG_TASK,_dd:{discarded:!1}};e.notify(12,{rawRumEvent:o,startTime:s.relative,duration:i.duration,domainContext:{performanceEntry:i}})}});return{stop(){n.unsubscribe()}}}function jMe(e){e.register(0,({eventType:t})=>{if(!z9())return zs;const n=U9(),r=B9();return{type:t,session:{type:"synthetics"},synthetics:{test_id:n,result_id:r,injected:F9()}}})}function VMe(e,t,n){const r=ON(e),i=n(r);return AN(t).forEach(([s,o])=>uI(e,r,s.split(/\.|(?=\[\])/),o)),i}function uI(e,t,n,r){const[i,...s]=n;if(i==="[]"){Array.isArray(e)&&Array.isArray(t)&&e.forEach((o,a)=>uI(o,t[a],s,r));return}if(!(!F5(e)||!F5(t))){if(s.length>0)return uI(e[i],t[i],s,r);GMe(e,i,t[i],r)}}function GMe(e,t,n,r){const i=Kf(n);i===r?e[t]=ur(n):r==="object"&&(i==="undefined"||i==="null")&&(e[t]={})}function F5(e){return Kf(e)==="object"}const Gd={"view.name":"string","view.url":"string","view.referrer":"string"},qd={context:"object"},Wd={service:"string",version:"string"};let $W;function qMe(e,t,n,r,i){$W={[zt.VIEW]:{"view.performance.lcp.resource_url":"string",...qd,...Gd,...Wd},[zt.ERROR]:{"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string",...qd,...Gd,...Wd},[zt.RESOURCE]:{"resource.url":"string","resource.graphql.variables":"string",...qd,...Gd,...Wd},[zt.ACTION]:{"action.target.name":"string",...qd,...Gd,...Wd},[zt.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...qd,...Gd,...Wd},[zt.VITAL]:{...qd,...Gd,...Wd}};const s={[zt.ERROR]:pA(zt.ERROR,r,i),[zt.ACTION]:pA(zt.ACTION,r,i),[zt.VITAL]:pA(zt.VITAL,r,i)};t.subscribe(12,({startTime:o,duration:a,rawRumEvent:l,domainContext:f})=>{const d=n.triggerHook(0,{eventType:l.type,startTime:o,duration:a});if(d===Kl)return;const p=Rc(d,l,{ddtags:w9(e).join(",")});WMe(p,e.beforeSend,f,s)&&(cu(p.context)&&delete p.context,t.notify(13,p))})}function WMe(e,t,n,r){var i;if(t){const o=VMe(e,$W[e.type],a=>t(a,n));if(o===!1&&e.type!==zt.VIEW)return!1;o===!1&&Ft.warn("Can't dismiss view events using beforeSend!")}return!((i=r[e.type])===null||i===void 0?void 0:i.isLimitReached())}function YMe(e,t,n,r){e.register(0,({eventType:i,startTime:s})=>{const o=t.findTrackedSession(s),a=r.findView(s);if(!o||!a)return Kl;let l,f,d;return i===zt.VIEW?(l=n.getReplayStats(a.id)?!0:void 0,f=o.sessionReplay===1,d=a.sessionIsActive?void 0:!1):l=n.isRecording()?!0:void 0,{type:i,session:{id:o.id,type:"user",has_replay:l,sampled_for_replay:f,is_active:d}}}),e.register(1,({startTime:i})=>{const s=t.findTrackedSession(i);return s?{session:{id:s.id}}:zs})}function XMe(e){e.register(0,({eventType:t})=>({type:t,connectivity:x9()}))}function KMe(e,t,n){e.register(0,({eventType:r})=>{const i=t.source;return{type:r,_dd:{format_version:2,drift:bxe(),configuration:{session_sample_rate:Um(t.sessionSampleRate,3),session_replay_sample_rate:Um(t.sessionReplaySampleRate,3),profiling_sample_rate:Um(t.profilingSampleRate,3),beta_encode_cookie_options:t.betaEncodeCookieOptions},browser_sdk_version:ap()?"6.24.1":void 0,sdk_name:n},application:{id:t.applicationId},date:Ai(),source:i}}),e.register(1,()=>({application:{id:t.applicationId}}))}function ZMe(e,t){e.register(1,()=>t.isGranted()?zs:Kl)}const JMe=OAe,QMe=[zt.ACTION,zt.ERROR,zt.LONG_TASK,zt.RESOURCE,zt.VITAL];function eNe(e){return{addEvent:(t,n,r,i)=>
537{QMe.includes(n.type)&&e.notify(12,{startTime:t,rawRumEvent:n,domainContext:r,duration:i})}}}function tNe(e,t){if(!t.metricsEnabled)return{stop:Ln};const{unsubscribe:n}=e.subscribe(4,({initialViewMetrics:r})=>{!r.largestContentfulPaint||!r.navigationTimings||(iT("Initial view metrics",{metrics:nNe(r.largestContentfulPaint,r.navigationTimings)}),n())});return{stop:n}}function nNe(e,t){return{lcp:{value:e.value},navigation:{domComplete:t.domComplete,domContentLoaded:t.domContentLoaded,domInteractive:t.domInteractive,firstByte:t.firstByte,loadEvent:t.loadEvent}}}function rNe(e,t,n,r,i,s,o,a,l){const f=[],d=new Ike,p=JMe();d.subscribe(13,Be=>T9("rum",Be));const m=Be=>{d.notify(14,{error:Be}),Dv("Error reported to customer",{"error.message":Be.message})},_=AAe(e),v=_.subscribe(Be=>{d.notify(11,Be)});f.push(()=>v.unsubscribe());const E=PAe("browser-rum-sdk",e,p,m,_,i);f.push(E.stop);const b=ap()?pMe():hMe(e,d,s);if(ap())vMe(d);else{const Be=_Me(e,d,m,_,b.expireObservable,i);f.push(()=>Be.stop()),AMe(E,d,Be.flushController.flushObservable)}const w=Cke(),T=SMe(e,location),{observable:R,stop:C}=Rke();f.push(C),KMe(p,e,l);const k=MMe(p,e),M=Mke(d);f.push(()=>M.stop());const I=bMe(d,p,T,location);f.push(()=>I.stop());const $=xMe(d,p,e);YMe(p,b,t,M),XMe(p),ZMe(p,s);const Q=NRe(p,e,"rum"),V=LRe(p,e,b,"rum"),N=MRe(p,e,"rum"),{actionContexts:U,addAction:K,addEvent:j,stop:fe}=iNe(d,p,e,k,w,R,m);f.push(fe);const{addTiming:P,startView:ee,setViewName:W,setViewContext:de,setViewContextProperty:ce,getViewContext:L,stop:J}=lMe(d,p,e,location,w,R,T,t,M,r);f.push(J);const{stop:re}=tNe(d,E);f.push(re);const{stop:me}=lOe(d,e,k);if(f.push(me),e.trackLongTasks)if(Qf(Tn.LONG_ANIMATION_FRAME)){const{stop:Be}=zMe(d,e);f.push(Be)}else HMe(d,e);const{addError:be}=XIe(d,e,a);a.unbuffer(),Xke(d,e,b,V,N);const Ee=URe(d,k,o),Fe=kke(e.applicationId,b,M,U,I);return f.push(()=>n.stop()),{addAction:K,addEvent:j,addError:be,addTiming:P,addFeatureFlagEvaluation:$.addFeatureFlagEvaluation,startView:ee,setViewContext:de,setViewContextProperty:ce,getViewContext:L,setViewName:W,lifeCycle:d,viewHistory:M,session:b,stopSession:()=>b.expire(),getInternalContext:Fe.get,startDurationVital:Ee.startDurationVital,stopDurationVital:Ee.stopDurationVital,addDurationVital:Ee.addDurationVital,addOperationStepVital:Ee.addOperationStepVital,globalContext:Q,userContext:V,accountContext:N,telemetry:E,stop:()=>{f.forEach(Be=>Be())},hooks:p}}function iNe(e,t,n,r,i,s,o){const a=qIe(e,t,i,s,n),l=eNe(e),f=DMe(t,n),d=BMe(n,t);return jMe(t),qMe(n,e,t,o),{pageStateHistory:r,addAction:a.addAction,addEvent:l.addEvent,actionContexts:a.actionContexts,stop:()=>{a.stop(),d.stop(),f.stop(),r.stop()}}}function sNe(e,{session:t,viewContext:n,errorType:r}){const i=t?t.id:"no-session-id",s=[];r!==void 0&&s.push(`error-type=${r}`),n&&(s.push(`seed=${n.id}`),s.push(`from=${n.startClocks.timeStamp}`));const o=oNe(e),a=`/rum/replay/sessions/${i}`;return`${o}${a}?${s.join("&")}`}function oNe(e){const t=e.site,n=e.subdomain||aNe(e);return`https://${n?`${n}.`:""}${t}`}function aNe(e){switch(e.site){case gf:case fCe:return"app";case f9:return"dd";default:return}}const cNe=1e3;let so;function sqe(e){return uT(e).segments_count}function oqe(e){uT(e).segments_count+=1}function aqe(e){uT(e).records_count+=1}function cqe(e,t){uT(e).segments_total_raw_size+=t}function lNe(e){return so?.get(e)}function uT(e){so||(so=new Map);let t;return so.has(e)?t=so.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},so.set(e,t),so.size>cNe&&uNe()),t}function uNe(){if(!so)return;const e=so.keys().next().value;e&&so.delete(e)}function FW(e,t,n){let r=0,i=[],s,o=!0,a=0;const l=[],{stop:f}=Tr(e,t,"message",({data:m})=>{if(m.type!=="wrote"||m.streamId!==n)return;const _=l[0];_&&(_.id===m.id?(l.shift(),r+=m.additionalBytesCount,i.push(m.result),s=m.trailer,_.writeCallback?_.writeCallback(m.result.byteLength):_.finishCallback&&_.finishCallback()):_.id<m.id&&f())});function d(){const m=i.length===0?new Uint8Array(0):v9(i.concat(s)),_={rawBytesCount:r,output:m,outputBytesCount:m.byteLength,encoding:"deflate"};return r=0,i=[],_}function p(){o||(t.postMessage({action:"reset",streamId:n}),o=!0)}return{isAsync:!0,get isEmpty(){return o},write(m,_){t.postMessage({action:"write",id:a,data:m,streamId:n}),l.push({id:a,writeCallback:_,data:m}),o=!1,a+=1},finish(m){p(),l.length?(l.forEach(_=>{delete _.writeCallback}),l[l.length-1].finishCallback=()=>m(d())):m(d())},finishSync(){p();const m=l.map(_=>_.data).join("");return l.length=0,{...d(),pendingData:m}},estimateEncodedBytesCount(m){return m.length/8},stop(){f()}}}function BN({configuredUrl:e,error:t,source:n,scriptType:r}){if(Ft.error(`${n} failed to start: an error occurred while initializing the ${r}:`,t),t instanceof Event||t instanceof Error&&fNe(t.message)){let i;e?i=`Please make sure the ${r} URL ${e} is correct and CSP is correctly configured.`:i="Please make sure CSP is correctly configured.",Ft.error(`${i} See documentation at ${Yw}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else r==="worker"&&MN(t)}function fNe(e){return e.includes("Content Security Policy")||e.includes("requires 'TrustedScriptURL'")}const dNe=30*zi;function UW(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=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]),n=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]),r=new 
vendor: 5,817 bytes, line 537
537Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(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)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var 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.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},C=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},D=!1,M=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},j=M,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),T=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},O={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"},q=j,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=O[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,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))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var 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)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;
vendor: 14,903 bytes, line 537
537for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?M(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);C(t,t.dyn_ltree,e-1),C(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=T(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(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-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(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=W(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=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(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-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(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++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(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&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){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=8,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),V(this.dyn_ltree),V(this.dyn_dtree),V(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),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t||!t.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){D||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),D=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t||!t.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=T(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(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)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t||!t.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=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},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(O[n]);if(t.header&&(e=this.strm,a=t.header,e&&e.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t||!t.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
537i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(O[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"6.24.1"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let Br={status:0};function BW(e,t,n,r=UW){switch(Br.status===0&&hNe(e,t,r),Br.status){case 1:return Br.initializationFailureCallbacks.push(n),Br.worker;case 3:return Br.worker}}function U5(){return Br.status}function hNe(e,t,n=UW){try{const r=n(e),{stop:i}=Tr(e,r,"error",a=>{CA(e,t,a)}),{stop:s}=Tr(e,r,"message",({data:a})=>{a.type==="errored"?CA(e,t,a.error,a.streamId):a.type==="initialized"&&gNe(a.version)});r.postMessage({action:"init"}),Fi(()=>pNe(t),dNe),Br={status:1,worker:r,stop:()=>{i(),s()},initializationFailureCallbacks:[]}}catch(r){CA(e,t,r)}}function pNe(e){Br.status===1&&(Ft.error(`${e} failed to start: a timeout occurred while initializing the Worker`),Br.initializationFailureCallbacks.forEach(t=>t()),Br={status:2})}function gNe(e){Br.status===1&&(Br={status:3,worker:Br.worker,stop:Br.stop,version:e})}function CA(e,t,n,r){Br.status===1||Br.status===0?(BN({configuredUrl:e.workerUrl,error:n,source:t,scriptType:"worker"}),Br.status===1&&Br.initializationFailureCallbacks.forEach(i=>
537i()),Br={status:2}):MN(n,{worker_version:Br.status===3&&Br.version,stream_id:r})}function zW(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function mNe(e,t,n,r){const i=t.findTrackedSession(),s=_Ne(i,r),o=n.findView();return sNe(e,{viewContext:o,errorType:s,session:i})}function _Ne(e,t){if(!zW())return"browser-not-supported";if(!e)return"rum-not-tracked";if(e.sessionReplay===0)return"incorrect-session-plan";if(!t)return"replay-not-started"}function vNe(e,t){if(!e.metricsEnabled)return{stop:Ln};let n,r,i;const{unsubscribe:s}=t.subscribe(o=>{switch(o.type){case"start":n={forced:o.forced,timestamp:Ai()},r=void 0,i=void 0;break;case"document-ready":n&&(r=jr(n.timestamp,Ai()));break;case"recorder-settled":n&&(i=jr(n.timestamp,Ai()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":s(),n&&iT("Recorder init metrics",{metrics:yNe(n.forced,i,jr(n.timestamp,Ai()),o.type,r)});break}});return{stop:s}}function yNe(e,t,n,r,i){return{forced:e,loadRecorderModuleDuration:t,recorderInitDuration:n,result:r,waitForDocReadyDuration:i}}function bNe(e,t,n,r,i,s,o){let a=0,l;t.subscribe(9,()=>{(a===2||a===3)&&(m(),a=1)}),t.subscribe(10,()=>{a===1&&p()});const f=new mn;vNe(o,f);const d=async _=>{f.notify({type:"start",forced:_});const[v]=await Promise.all([B5(f,{type:"recorder-settled"},i()),B5(f,{type:"document-ready"},oRe(e,"interactive"))]);if(a!==2){f.notify({type:"aborted"});return}if(!v){a=0,f.notify({type:"recorder-load-failed"});return}const E=s();if(!E){a=0,f.notify({type:"deflate-encoder-load-failed"});return}({stop:l}=v(t,e,n,r,E,o)),a=3,f.notify({type:"succeeded"})};function p(_){const v=n.findTrackedSession();if(SNe(v,_)){a=1;return}if(ENe(a))return;a=2;const E=wNe(v,_)||!1;d(E).catch(Wl),E&&n.setForcedReplay()}function m(){a===3&&l?.(),a=0}return{start:p,stop:m,getSessionReplayLink(){return mNe(e,n,r,a!==0)},isRecording:()=>a===3}}function SNe(e,t){return!e||e.sessionReplay===0&&(!t||!t.force)}function ENe(e){return e===2||e===3}function wNe(e,t){return t&&t.force&&e.sessionReplay===0}async function B5(e,t,n){try{return await n}finally{e.notify(t)}}function TNe(){let e=0;return{strategy:{start(){e=1},stop(){e=2},isRecording:()=>!1,getSessionReplayLink:Ln},shouldStartImmediately(t){return e===1||e===0&&!t.startSessionReplayRecordingManually}}}function xNe(e,t){if(ap()&&!L9("records")||!zW())return{start:Ln,stop:Ln,getReplayStats:()=>{},onRumStart:Ln,isRecording:()=>!1,getSessionReplayLink:()=>{}};let{strategy:n,shouldStartImmediately:r}=TNe();return{start:s=>n.start(s),stop:()=>n.stop(),getSessionReplayLink:()=>n.getSessionReplayLink(),onRumStart:i,isRecording:()=>U5()===3&&n.isRecording(),getReplayStats:s=>U5()===3?lNe(s):void 0};function i(s,o,a,l,f,d){let p;function m(){return p||(f??(f=BW(o,"Datadog Session Replay",()=>{n.stop()},t)),f&&(p=FW(o,f,1))),p}n=bNe(o,s,a,l,e,m,d),r(o)&&n.start()}}async function CNe(e=ANe){try{return await e()}catch(t){BN({error:t,source:"Recorder",scriptType:"module"})}}async function ANe(){return(await wl(()=>import("./startRecording-CiCa3x88.js"),[])).startRecording}function RNe(){return So().Profiler!==void 0}const kNe=e=>{let t={status:"starting"};return e.register(0,({eventType:n})=>n!==zt.VIEW&&n!==zt.LONG_TASK?zs:{type:n,_dd:{profiling:t}}),{get:()=>t,set:n=>{t=n}}};async function INe(e=ONe){try{return await e()}catch(t){BN({error:t,source:"Profiler",scriptType:"module"})}}async function ONe(){return(await wl(()=>import("./profiler-DWm89bbE.js"),[])).createRumProfiler}function MNe(){let e;function t(n,r,i,s,o,a){const l=s.findTrackedSession();if(!l||!J9(l.id,i.profilingSampleRate))return;const f=kNe(r);if(!RNe()){f.set({status:"error",error_reason:"not-supported-by-browser"});return}INe().then(d=>{if(!d){Dv("[DD_RUM] Failed to lazy load the RUM Profiler"),f.set({status:"error",error_reason:"failed-to-lazy-load"});return}e=d(i,n,s,f,a),e.start(o.findView())}).catch(Wl)}return{onRumStart:t,stop:()=>{e?.stop().catch(Wl)}}}const NNe=xNe(CNe),LNe=MNe(),HW=Tke(rNe,NNe,LNe,{startDeflateWorker:BW,createDeflateEncoder:FW,s
537dkName:"rum"});rAe(So(),"DD_RUM",HW);const DNe=D.createContext(null);function fT(){const e=D.useContext(DNe);return e===null?HW:e}function PNe({enabled:e,rumInitConfiguration:t}){const n=fT(),r=D.useRef(null);D.useEffect(()=>{e&&r.current!==t&&(r.current=t,n.init(t))},[e,n,t])}function $Ne({enabled:e,sessionReplayRecording:t}){const n=fT();D.useEffect(()=>{if(!(!e||!t))return n.startSessionReplayRecording(),()=>{n.stopSessionReplayRecording()}},[e,n,t])}const FNe=e=>Object.values(e).every(IR);function UNe(e){const t=fT(),n=iv(e??{});D.useEffect(()=>{if(!FNe(n))return t.setUser(n),()=>{t.clearUser()}},[t,n])}function BNe({enabled:e=!0,sessionReplayRecording:t=!0,silentMultipleInit:n=!0,site:r="datadoghq.com",user:i,...s}){PNe({enabled:e,rumInitConfiguration:iv({...s,silentMultipleInit:n,site:r})}),$Ne({enabled:e,sessionReplayRecording:t}),UNe(i)}const zNe=ct("pubdb61afd2a8ec4725bfdb7fc4eb4ab6ce"),HNe=["feature_flags"],jNe=ct("e29eb164-e193-4380-b512-ebd70bbfaeb6"),VNe={allowedGraphQlUrls:[],allowFallbackToLocalStorage:!0,allowUntrustedEvents:!0,applicationId:jNe,clientToken:zNe,compressIntakeRequests:!0,defaultPrivacyLevel:"mask-user-input",enabled:!0,enableExperimentalFeatures:HNe,enablePrivacyForActionName:!0,env:"production",excludedActivityUrls:[/^https:\/\/(?:[a-z\d]+\.clarity\.ms|analytics\.google\.com|cloudflareinsights\.com|edge\.fullstory\.com|[a-z\d]+\.ingest\.sentry\.io|r\.logr-ingest\.com|r\.lrkt-in\.com|region\d+\.analytics\.google\.com|rs\.fullstory\.com|stats\.g\.doubleclick\.net|www\.google-analytics\.com)\//u,/^https:\/\/(?:td\.td\.doubleclick\.net)\//u,/^https:\/\/(?:api-js\.mixpanel\.com|c\.bing\.com|c\.clarity\.ms|www\.google\.[a-z]+|www\.google\.co\.[a-z]+|www\.google\.com\.[a-z]+|www\.googletagmanager\.com)\//u,/^https:\/\/(?:ajax\.cloudflare\.com|cdn\.logr-ingest\.com|cdn\.lrkt-in\.com|edge\.fullstory\.com|static\.cloudflareinsights\.com|www\.clarity\.ms)\//u,"https://quisi.do/cdn-cgi/speculation","https://fonts.googleapis.com/css2"],plugins:[],profilingSampleRate:100,propagateTraceBaggage:!1,service:"quisi.do",sessionPersistence:"local-storage",sessionReplayRecording:!0,sessionReplaySampleRate:100,sessionSampleRate:100,silentMultipleInit:!0,site:"datadoghq.com",startSessionReplayRecordingManually:!1,storeContextsAcrossPages:!0,telemetryConfigurationSampleRate:100,telemetrySampleRate:100,telemetryUsageSampleRate:100,traceContextInjection:"all",traceSampleRate:100,trackAnonymousUser:!0,trackBfcacheViews:!0,trackEarlyRequests:!0,trackFeatureFlagsForEvents:["action","long_task","resource","vital"],trackLongTasks:!0,trackResources:!0,trackSessionAcrossSubdomains:!0,trackUserInteractions:!0,trackViewsManually:!1,usePartitionedCrossSiteSessionCookie:!0,useSecureSessionCookie:!0,version:"unknown"},GNe=e=>{if(typeof e>"u")return;const{id:t}=e;if(t!==null)return{...e,id:t.toString()}};function qNe(){const{data:e}=jf();BNe({...VNe,user:GNe(e)})}function n0(...e){const t=window;typeof t.dataLayer>"u"?t.dataLayer=[arguments]:t.dataLayer.push(arguments)}function WNe(){D.useEffect(()=>{const e=window;if(!(typeof e.dataLayer<"u"))return e.dataLayer=[],()=>{delete e.dataLayer}},[])}function YNe(){D.useEffect(()=>{const e=window;if(!(typeof e.gtag<"u"))return e.gtag=n0,()=>{delete e.gtag}},[])}function XNe(e){return`https://www.googletagmanager.com/gtag/js?id=${e}`}function KNe(e){const t=document.createElement("script");return t.setAttribute("async",""),t.setAttribute("crossorigin","anonymous"),t.setAttribute("src",XNe(e)),t.setAttribute("type","text/javascript"),t}function ZNe(e){D.useEffect(()=>{const t=KNe(e);return window.document.head.appendChild(t),()=>{window.document.head.removeChild(t)}},[e])}const fI=Object.freeze({});function JNe(e=fI){const{address:t=fI,email:n,emailAddressSha256:r,phoneNumber:i,phoneNumberSha256:s}=e,{city:o,country:a,firstName:l,firstNameSha256:f,lastName:d,lastNameSha256:p,postalCode:m,region:_,street:v}=t,E=D.useMemo(()=>{const b={city:o,country:a,first_name:l,last_name:d,postal_code:m,region:_,sha256_first_name:f,sha256_last_name:p,street:v};if(!Object.values(b).every(IR))return b},[o,a,l,f,d,p,m,_,v]);return D.useMemo(()=>{const b={address:E,email:n,phone_number:i,sha256_email_address:r,sha256_phone_number:s};if(!Object.values(b).every(IR))return b},[n,r,E,i,s])}function QNe({trackingId:e,userData:t}){const n=JNe(t);ZNe(e),WNe(),YNe(),D.useEffect(()=>
537{n0("js",new Date)},[]),D.useEffect(()=>{n0("config",e)},[e]),D.useEffect(()=>{typeof n>"u"||n0("set","user_data",n)},[n])}const eLe=ct("G-ZTQ6K5CVQS");function tLe(){QNe({trackingId:eLe,userData:void 0})}const nLe=0,rLe=new Set;class iLe{#e=new Map;add(t,n){const r=this.#e.get(t);typeof r>"u"?this.#e.set(t,new Set([n])):this.#e.set(t,new Set([...r,n]))}delete(t,n){if(typeof n>"u")return this.#e.delete(t);const r=new Set(this.#e.get(t));return r.delete(n),r.size===nLe?this.#e.delete(t):(this.#e.set(t,r),!0)}get(t){return this.#e.get(t)??rLe}}function sLe(){return D.useContext(B7)}const AA=new iLe,oLe=e=>typeof e!="function";function aLe(e,t=t_,n=t_){const r=sLe(),[i,s]=D.useState(null);return D.useLayoutEffect(()=>{if(r===null)return;const o=r.localStorage.getItem(e);if(o===null){s(null);return}const a=t(o);s(a)},[e,t,r]),D.useEffect(()=>(AA.add(e,s),()=>{AA.delete(e,s)}),[e]),D.useEffect(()=>{if(r===null)return;const o=({key:a,newValue:l})=>{if(a!==e)return;if(l===null){s(null);return}const f=t(l);s(f)};return r.addEventListener("storage",o),()=>{r.removeEventListener("storage",o)}},[e,t,r]),D.useMemo(()=>[i,o=>{const a=f=>{if(r!==null)if(f===null)r.localStorage.removeItem(e);else{const d=n(f);r.localStorage.setItem(e,d)}for(const d of AA.get(e))d(f)};if(oLe(o)){a(o);return}const l=o(i);a(l)}],[e,i,n,r])}function zN(){return aLe("color-scheme")}const cLe=0,lLe=()=>{const e=window.document.getElementsByTagName("html").item(cLe);if(e===null)throw new Error("Expected an HTML element.");return e},z5=lLe();function uLe(e){e===null?delete z5.dataset.colorScheme:z5.dataset.colorScheme=e}function fLe(){const[e]=zN();D.useLayoutEffect(()=>{uLe(e)},[e])}function dLe(e){const t={...e.headers};return delete t.Cookie,delete t.cookie,{...e,headers:t}}function hLe(e,t){return typeof e>"u"||e.url===k6?null:t}function pLe({default:e}){return e}const gLe=()=>wl(()=>import("./build.umd-DpX1l8Vy.js").then(e=>e.b),[]).then(pLe),jW={captureException:Ki,captureMessage:Ki,debug:Ki,error:Ki,getSessionURL:Ki,identify:Ki,info:Ki,init:Ki,log:Ki,reduxMiddleware:Ki,sessionURL:null,startNewSession:Ki,track:Ki,version:"0.0.0",warn:Ki};let RA=jW;function VW(){const e=L6();return D.useEffect(()=>{RA===jW&&gLe().then(t=>{RA=t,e()}).catch(Ki)},[e]),RA}const mLe={urlSanitizer(){return null}},_Le={debug:!1,error:!0,info:!0,log:!0,warn:!0},vLe={isEnabled:_Le,shouldAggregateConsoleErrors:!0},yLe={disablePageTitles:!1,disableVisibleElement:!1,disableWebAnimations:!1,hiddenAttributes:[],inputSanitizer:!1,isEnabled:!0,privateAttributeBlocklist:[],privateClassNameBlocklist:[],textSanitizer:!1},H5=new Map,j5={browser:mLe,childDomains:[],console:vLe,disableBusyFramesTracker:!1,dom:yLe,forceCleanStart:!1,mergeIframes:!0,parentDomain:null,shouldAugmentNPS:!0,shouldCaptureIP:!0,shouldDebugLog:!1,shouldDetectExceptions:!0,shouldParseXHRBlob:!0},bLe=(e,t)=>t;function SLe({appId:e,release:t="dev",rootHostname:n,sanitizeRequest:r=t_,sanitizeResponse:i=bLe,user:s}){const o=VW();D.useEffect(()=>{const a={};typeof n<"u"&&(a.rootHostname=n),o.init(e,{...j5,...a,dom:{...j5.dom,baseHref:`${window.location.origin}/`},network:{isEnabled:!0,requestSanitizer(l){return H5.set(l.reqId,l),r(l)},responseSanitizer(l){const f=H5.get(l.reqId);return i(f,l)}},release:t})},[e,o,t,n,r,i]),D.useEffect(()=>{if(typeof s>"u")return;const{id:a,...l}=s;o.identify(a,l)},[o,s])}function ELe(){const{data:e}=jf(),t=QM(),n=D.useMemo(()=>{if(!(typeof e>"u")&&e.id!==null)return{id:e.id.toString()}},[e]);SLe({appId:"zkwhgg/quisido",release:XG,rootHostname:t,sanitizeRequest:dLe,sanitizeResponse:hLe,user:n})}var yE={},Te;if(typeof window>"u"){var V5={hostname:""};Te={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:V5,referrer:""},screen:{width:0,height:0},location:V5,addEventListener:function(){},removeEventListener:function(){}}}else Te=window;function G5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function q5(e,t,n,r,i,s,o){try{var a=e[s](o),l=a.value}catch(f){n(f);return}a.done?t(l):Promise.resolve(l).then(r,i)}function HN(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var s=e.apply(t,n);function o(l){q5(s,r,i,o,a,"next",l)}
vendor: 40,301 bytes, lines 537-554
537function a(l){q5(s,r,i,o,a,"throw",l)}o(void 0)})}}function r0(e,t,n){return GW()?r0=Reflect.construct:r0=function(i,s,o){var a=[null];a.push.apply(a,s);var l=Function.bind.apply(i,a),f=new l;return o&&R_(f,o.prototype),f},r0.apply(null,arguments)}function wLe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ri(e,t,n){return t&&wLe(e.prototype,t),e}function bn(){return bn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(this,arguments)}function dI(e){return dI=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},dI(e)}function Hi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R_(e,t)}function wt(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function TLe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function A_(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function R_(e,t){return R_=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},R_(e,t)}function Wt(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function xLe(e,t){if(e){if(typeof e=="string")return G5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G5(e,t)}}function bE(e){var t=typeof Map=="function"?new Map:void 0;return bE=function(r){if(r===null||!TLe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return r0(r,arguments,dI(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),R_(i,r)},bE(e)}function GW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GW=function(){return!!e})()}function Ye(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=xLe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k_(e,t){var n,r,i,s,o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(f){return function(d){return l([f,d])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=f[0]&2?r.return:f[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,f[1])).done)return i;switch(r=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,r=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){o.label=f[1];break}if(f[0]===6&&o.label<i[1]){o.label=i[1],i=f;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(f);break}i[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(e,o)}catch(d){f=[6,d],r=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function qW(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var CLe=Object.defineProperty,ALe=function(e,t,n){return t in e?CLe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Oe=function(e,t,n){return ALe(e,(typeof t>"u"?"undefined":Wt(t))!=="symbol"?t+"":t,n)},W5,RLe=Object.defineProperty,kLe=function(e,t,n){return t in e?RLe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Y5=function(e,t,n){return kLe(e,(typeof t>"u"?"undefined":Wt(t))!=="symbol"?t+"":t,n)},oi=(function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e})(oi||{}),X5={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},K5={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ub={},ILe=function(){return!!globalThis.Zone};function jN(e){if(Ub[e])return Ub[e];var t=globalThis[e],n=t.prototype,r=e in X5?X5[e]:void 0,i=!!(r&&r.every(function(d){var p,m;return!!((m=(p=Object.getOwnPropertyDescriptor(n,d))==null?void 0:p.get)!=null&&m.toString().includes("[native code]"))})),s=e in K5?K5[e]:void 0,o=!!(s&&s.every(function(d){var p;return typeof n[d]=="function"&&((p=n[d])==null?void 0:p.toString().includes("[native code]"))}));if(i&&o&&!ILe())return Ub[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var l=a.contentWindow;if(!l)return t.prototype;var f=l[e].prototype;return document.body.removeChild(a),f?Ub[e]=f:n}catch{return n}}var kA={};function lu(e,t,n){var r,i=e+"."+String(n);if(kA[i])return kA[i].call(t);var s=jN(e),o=(r=Object.getOwnPropertyDescriptor(s,n))==null?void 0:r.get;return o?(kA[i]=o,o.call(t)):t[n]}var IA={};function WW(e,t,n){var r=e+"."+String(n);if(IA[r])return IA[r].bind(t);var i=jN(e),s=i[n];return typeof s!="function"?t[n]:(IA[r]=s,s.bind(t))}function OLe(e){return lu("Node",e,"childNodes")}function MLe(e){return lu("Node",e,"parentNode")}function NLe(e){return lu("Node",e,"parentElement")}function LLe(e){return lu("Node",e,"textContent")}function DLe(e,t){return WW("Node",e,"contains")(t)}function PLe(e){return WW("Node",e,"getRootNode")()}function $Le(e){return!e||!("host"in e)?null:lu("ShadowRoot",e,"host")}function FLe(e){return e.styleSheets}function ULe(e){return!e||!("shadowRoot"in e)?null:lu("Element",e,"shadowRoot")}function BLe(e,t){return lu("Element",e,"querySelector")(t)}function zLe(e,t){return lu("Element",e,"querySelectorAll")(t)}function HLe(){return jN("MutationObserver").constructor}function jLe(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var Pi={childNodes:OLe,parentNode:MLe,parentElement:NLe,textContent:LLe,contains:DLe,getRootNode:PLe,host:$Le,styleSheets:FLe,shadowRoot:ULe,querySelector:BLe,querySelectorAll:zLe,mutationObserver:HLe,patch:jLe};function YW(e){return e.nodeType===e.ELEMENT_NODE}function Hm(e){var t=e&&"host"in e&&"mode"in e&&Pi.host(e)||null;return!!(t&&"shadowRoot"in t&&Pi.shadowRoot(t)===e)}function jm(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function VLe(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function GLe(e){var t=e.cssText;if(t.split('"').length<3)return t;var n=["@import","url("+JSON.stringify(e.href)+")"];return e.layerName===""?n.push("layer"):e.layerName&&n.push("layer("+e.layerName+")"),e.supportsText&&n.push("supports("+e.supportsText+")"),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function hI(e){try{var t=e.rules||e.cssRules;if(!t)return null;var n=e.href;!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href);var r=Array.from(t,function(i){return XW(i,n)}).join("");return VLe(r)}catch{return null}}function XW(e,t){if(WLe(e)){var n;try{n=hI(e.styleSheet)||GLe(e)}catch{n=e.cssText}return e.styleSheet.href?wE(n,e.styleSheet.href):n}else{var r=e.cssText;return YLe(e)&&e.selectorText.includes(":")&&(r=qLe(r)),t?wE(r,t):r}}function qLe(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function WLe(e){return"styleSheet"in e}function YLe(e){return"selectorText"in e}var KW=(function(){function e(){Y5(this,"idNodeMap",new Map),Y5(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(r){var i;if(!r)return-1;var s=(i=this.getMeta(r))==null?void 0:i.id;return s??-1},t.getNode=function(r){return this.idNodeMap.get(r)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(r){return this.nodeMetaMap.get(r)||null},t.removeNodeFromMap=function(r){var i=this,s=this.getId(r);this.idNodeMap.delete(s),r.childNodes&&r.childNodes.forEach(function(o){return i.removeNodeFromMap(o)})},t.has=function(r){return this.idNodeMap.has(r)},t.hasNode=function(r){return this.nodeMetaMap.has(r)},t.add=function(r,i){var s=i.id;this.idNodeMap.set(s,r),this.nodeMetaMap.set(r,i)},t.replace=function(r,i){var s=this.getNode(r);if(s){var o=this.nodeMetaMap.get(s);o&&this.nodeMetaMap.set(i,o)}this.idNodeMap.set(r,i)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e})();function XLe(){return new KW}function SE(e){var t=e.element,n=e.maskInputOptions,r=e.tagName,i=e.type,s=e.value,o=e.maskInputFn,a=s||"",l=i&&Pf(i);return(n[r.toLowerCase()]||l&&n[l])&&(o?a=o(a,t):a="*".repeat(a.length)),a}function Pf(e){return e.toLowerCase()}var Z5="__rrweb_original__";function KLe(e){var t=e.getContext("2d");if(!t)return!0;for(var n=50,r=0;r<e.width;r+=n)for(var i=0;i<e.height;i+=n){var s=t.getImageData,o=Z5 in s?s[Z5]:s,a=new Uint32Array(o.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer);if(a.some(function(l){return l!==0}))return!1}return!0}function EE(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Pf(t):null}function ZW(e,t){var n;try{n=new URL(e,t??window.location.href)}catch{return null}var r=/\.([0-9a-z]+)(?:$)/i,i=n.pathname.match(r),s;return(s=i?.[1])!=null?s:null}function ZLe(e){var t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var JLe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,QLe=/^(?:[a-z+]+:)?\/\//i,eDe=/^www\..*/i,tDe=/^(data:)([^,]*),(.*)/i;function wE(e,t){return(e||"").replace(JLe,function(n,r,i,s,o,a){var l=i||o||a,f=r||s||"";if(!l)return n;if(QLe.test(l)||eDe.test(l)||tDe.test(l))return"url("+f+l+f+")";if(l[0]==="/")return"url("+f+(ZLe(t)+l)+f+")";var d=t.split("/"),p=l.split("/");d.pop();for(var m=Ye(p),_;!(_=m()).done;){var v=_.value;v!=="."&&(v===".."?d.pop():d.push(v))}return"url("+f+d.join("/")+f+")"})}function Bb(e,t){return t===void 0&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function nDe(e,t,n){n===void 0&&(n=!1);var r=Array.from(t.childNodes),i=[],s=0;if(r.length>1&&e&&typeof e=="string"){for(var o=Bb(e,n),a=o.length/e.length,l=1;l<r.length;l++)if(r[l].textContent&&typeof r[l].textContent=="string"){for(var f=Bb(r[l].textContent,n),d=100,p=3;p<f.length&&(f[p].match(/[a-zA-Z0-9]/)||f.indexOf(f.substring(0,p),1)!==-1);p++);for(;p<f.length;p++){var m=f.substring(0,p),_=o.split(m),v=-1;if(_.length===2)v=_[0].length;else if(_.length>2&&_[0]===""&&r[l-1].textContent!=="")v=o.indexOf(m,1);else if(_.length===1){if(m=m.substring(0,m.length-1),_=o.split(m),_.length<=1)return i.push(e),i;p=d+1}else p===f.length-1&&(v=o.indexOf(m));if(_.length>=2&&p>d){var E=r[l-1].textContent;if(E&&typeof E=="string"){var b=Bb(E).length;v=o.indexOf(m,b)}v===-1&&(v=_[0].length)}if(v!==-1){for(var w=Math.floor(v/a);w>0&&w<e.length;){if(s+=1,s>50*r.length)return i.push(e),i;var T=Bb(e.substring(0,w),n);if(T.length===v){i.push(e.substring(0,w)),e=e.substring(w),o=o.substring(v);break}else T.length<v?w+=Math.max(1,Math.floor((v-T.length)/a)):w-=Math.max(1,Math.floor((T.length-v)*a))}break}}}}return i.push(e),i}function rDe(e,t){return nDe(e,t).join("/* rr_split */")}var iDe=1,sDe=new RegExp("[^a-z0-9-_:]"),I_=-2;function JW(){return iDe++}function oDe(e){if(wt(e,HTMLFormElement))return"form";var t=Pf(e.tagName);return sDe.test(t)?"div":t}var Yd,J5,aDe=/^[^ \t\n\r\u000c]+/,cDe=/^[, \t\n\r\u000c]+/;function lDe(e,t){if(t.trim()==="")return t;var n=0;function r(f){var d,p=f.exec(t.substring(n));return p?(d=p[0],n+=d.length,d):""}for(var i=[];r(cDe),!(n>=t.length);){var s=r(aDe);if(s.slice(-1)===",")s=mh(e,s.substring(0,s.length-1)),i.push(s);else{var o="";s=mh(e,s);for(var a=!1;;){var l=t.charAt(n);if(l===""){i.push((s+o).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){n+=1,i.push((s+o).trim());break}else l==="("&&(a=!0);o+=l,n+=1}}}return i.join(", ")}var Q5=new WeakMap;function mh(e,t){return!t||t.trim()===""?t:VN(e,t)}function uDe(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function VN(e,t){var n=Q5.get(e);if(n||(n=e.createElement("a"),Q5.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function QW(e,t,n,r){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?mh(e,r):n==="srcset"?lDe(e,r):n==="style"?wE(r,VN(e)):t==="object"&&n==="data"?mh(e,r):r)}function eY(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function fDe(e,t,n){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function TE(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?TE(Pi.parentNode(e),t,n):!1;for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}return n?TE(Pi.parentNode(e),t,n):!1}function tY(e,t,n,r){var i;if(YW(e)){if(i=e,!Pi.childNodes(i).length)return!1}else{if(Pi.parentElement(e)===null)return!1;i=Pi.parentElement(e)}try{if(typeof t=="string"){if(r){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(TE(i,t,r))return!0;if(n){if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}}catch{}return!1}function dDe(e,t,n){var r=e.contentWindow;if(r){var i=!1,s;try{s=r.document.readyState}catch{return}if(s!=="complete"){var o=setTimeout(function(){i||(t(),i=!0)},n);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()});return}var a="about:blank";if(r.location.href!==a||e.src===a||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}function hDe(e,t,n){var r=!1,i;try{i=e.sheet}catch{return}if(!i){var s=setTimeout(function(){r||(t(),r=!0)},n);e.addEventListener("load",function(){clearTimeout(s),r=!0,t()})}}function pDe(e,t){var n=t.doc,r=t.mirror,i=t.blockClass,s=t.blockSelector,o=t.needsMask,a=t.inlineStylesheet,l=t.maskInputOptions,f=l===void 0?{}:l,d=t.maskTextFn,p=t.maskInputFn,m=t.dataURLOptions,_=m===void 0?{}:m,v=t.inlineImages,E=t.recordCanvas,b=t.keepIframeSrcFn,w=t.newlyAddedElement,T=w===void 0?!1:w,R=t.cssCaptured,C=R===void 0?!1:R,k=gDe(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:oi.Document,childNodes:[],compatMode:e.compatMode}:{type:oi.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:oi.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return _De(e,{doc:n,blockClass:i,blockSelector:s,inlineStylesheet:a,maskInputOptions:f,maskInputFn:p,dataURLOptions:_,inlineImages:v,recordCanvas:E,keepIframeSrcFn:b,newlyAddedElement:T,rootId:k});case e.TEXT_NODE:return mDe(e,{doc:n,needsMask:o,maskTextFn:d,rootId:k,cssCaptured:C});case e.CDATA_SECTION_NODE:return{type:oi.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:oi.Comment,textContent:Pi.textContent(e)||"",rootId:k};default:return!1}}function gDe(e,t){if(t.hasNode(e)){var n=t.getId(e);return n===1?void 0:n}}function mDe(e,t){var n=t.needsMask,r=t.maskTextFn,i=t.rootId,s=t.cssCaptured,o=Pi.parentNode(e),a=o&&o.tagName,l="",f=a==="STYLE"?!0:void 0,d=a==="SCRIPT"?!0:void 0;return d?l="SCRIPT_PLACEHOLDER":s||(l=Pi.textContent(e),f&&l&&(l=wE(l,VN(t.doc)))),!f&&!d&&l&&n&&(l=r?r(l,Pi.parentElement(e)):l.replace(/[\S]/g,"*")),{type:oi.Text,textContent:l||"",rootId:i}}function _De(e,t){for(var n=t.doc,r=t.blockClass,i=t.blockSelector,s=t.inlineStylesheet,o=t.maskInputOptions,a=o===void 0?{}:o,l=t.maskInputFn,f=t.dataURLOptions,d=f===void 0?{}:f,p=t.inlineImages,m=t.recordCanvas,_=t.keepIframeSrcFn,v=t.newlyAddedElement,E=v===void 0?!1:v,b=t.rootId,w=fDe(e,r,i),T=oDe(e),R={},C=e.attributes.length,k=0;k<C;k++){var M=e.attributes[k];eY(T,M.name,M.value)||(R[M.name]=QW(n,T,Pf(M.name),M.value))}if(T==="link"&&s){var I=Array.from(n.styleSheets).find(function(me){return me.href===e.href}),$=null;I&&($=hI(I)),$&&(delete R.rel,delete R.href,R._cssText=$)}if(T==="style"&&e.sheet){var Q=hI(e.sheet);Q&&(e.childNodes.length>1&&(Q=rDe(Q,e)),R._cssText=Q)}if(T==="input"||T==="textarea"||T==="select"){var V=e.value,N=e.checked;R.type!=="radio"&&R.type!=="checkbox"&&R.type!=="submit"&&R.type!=="button"&&V?R.value=SE({element:e,type:EE(e),tagName:T,value:V,maskInputOptions:a,maskInputFn:l}):N&&(R.checked=N)}if(T==="option"&&(e.selected&&!a.select?R.selected=!0:delete R.selected),T==="dialog"&&e.open&&(R.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),T==="canvas"&&m){if(e.__context==="2d")KLe(e)||(R.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){var U=e.toDataURL(d.type,d.quality),K=n.createElement("canvas");K.width=e.width,K.height=e.height;var j=K.toDataURL(d.type,d.quality);U!==j&&(R.rr_dataURL=U)}}if(T==="img"&&p){Yd||(Yd=n.createElement("canvas"),J5=Yd.getContext("2d"));var fe=e,P=fe.currentSrc||fe.getAttribute("src")||"<unknown-src>",ee=fe.crossOrigin,W=function(){fe.removeEventListener("load",W);try{Yd.width=fe.naturalWidth,Yd.height=fe.naturalHeight,J5.drawImage(fe,0,0),R.rr_dataURL=Yd.toDataURL(d.type,d.quality)}catch(me){if(fe.crossOrigin!=="anonymous"){fe.crossOrigin="anonymous",fe.complete&&fe.naturalWidth!==0?W():fe.addEventListener("load",W);return}else console.warn("Cannot inline img src="+P+"! Error: "+me)}fe.crossOrigin==="anonymous"&&(ee?R.crossOrigin=ee:fe.removeAttribute("crossorigin"))};fe.complete&&fe.naturalWidth!==0?W():fe.addEventListener("load",W)}if(T==="audio"||T==="video"){var de=R;de.rr_mediaState=e.paused?"paused":"played",de.rr_mediaCurrentTime=e.currentTime,de.rr_mediaPlaybackRate=e.playbackRate,de.rr_mediaMuted=e.muted,de.rr_mediaLoop=e.loop,de.rr_mediaVolume=e.volume}if(E||(e.scrollLeft&&(R.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(R.rr_scrollTop=e.scrollTop)),w){var ce=e.getBoundingClientRect(),L=ce.width,J=ce.height;R={class:R.class,rr_width:""+L+"px",rr_height:""+J+"px"}}T==="iframe"&&!_(R.src)&&(e.contentDocument||(R.rr_src=R.src),delete R.src);var re;try{customElements.get(T)&&(re=!0)}catch{}return{type:oi.Element,tagName:T,attributes:R,childNodes:[],isSVG:uDe(e)||void 0,needBlock:w,rootId:b,isCustom:re}}function Jn(e){return e==null?"":e.toLowerCase()}function vDe(e,t){if(t.comment&&e.type===oi.Comment)return!0;if(e.type===oi.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&ZW(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Jn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Jn(e.attributes.name)==="application-name"||Jn(e.attributes.rel)==="icon"||Jn(e.attributes.rel)==="apple-touch-icon"||Jn(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Jn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Jn(e.attributes.property).match(/^(og|twitter|fb):/)||Jn(e.attributes.name).match(/^(og|twitter):/)||Jn(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Jn(e.attributes.name)==="robots"||Jn(e.attributes.name)==="googlebot"||Jn(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Jn(e.attributes.name)==="author"||Jn(e.attributes.name)==="generator"||Jn(e.attributes.name)==="framework"||Jn(e.attributes.name)==="publisher"||Jn(e.attributes.name)==="progid"||Jn(e.attributes.property).match(/^article:/)||Jn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Jn(e.attributes.name)==="google-site-verification"||Jn(e.attributes.name)==="yandex-verification"||Jn(e.attributes.name)==="csrf-token"||Jn(e.attributes.name)==="p:domain_verify"||Jn(e.attributes.name)==="verify-v1"||Jn(e.attributes.name)==="verification"||Jn(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function _h(e,t){var n=t.doc,r=t.mirror,i=t.blockClass,s=t.blockSelector,o=t.maskTextClass,a=t.maskTextSelector,l=t.skipChild,f=l===void 0?!1:l,d=t.inlineStylesheet,p=d===void 0?!0:d,m=t.maskInputOptions,_=m===void 0?{}:m,v=t.maskTextFn,E=t.maskInputFn,b=t.slimDOMOptions,w=t.dataURLOptions,T=w===void 0?{}:w,R=t.inlineImages,C=R===void 0?!1:R,k=t.recordCanvas,M=k===void 0?!1:k,I=t.onSerialize,$=t.onIframeLoad,Q=t.iframeLoadTimeout,V=Q===void 0?5e3:Q,N=t.onStylesheetLoad,U=t.stylesheetLoadTimeout,K=U===void 0?5e3:U,j=t.keepIframeSrcFn,fe=j===void 0?function(){return!1}:j,P=t.newlyAddedElement,ee=P===void 0?!1:P,W=t.cssCaptured,de=W===void 0?!1:W,ce=t.needsMask,L=t.preserveWhiteSpace,J=L===void 0?!0:L;if(!ce){var re=ce===void 0;ce=tY(e,o,a,re)}var me=pDe(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,needsMask:ce,inlineStylesheet:p,maskInputOptions:_,maskTextFn:v,maskInputFn:E,dataURLOptions:T,inlineImages:C,recordCanvas:M,keepIframeSrcFn:fe,newlyAddedElement:ee,cssCaptured:de});if(!me)return console.warn(e,"not serialized"),null;var be;r.hasNode(e)?be=r.getId(e):vDe(me,b)||!J&&me.type===oi.Text&&!me.textContent.replace(/^\s+|\s+$/gm,"").length?be=I_:be=JW();var Ee=Object.assign(me,{id:be});if(r.add(e,Ee),be===I_)return null;I&&I(e);var Fe=!f;if(Ee.type===oi.Element){Fe=Fe&&!Ee.needBlock,delete Ee.needBlock;var Be=Pi.shadowRoot(e);Be&&jm(Be)&&(Ee.isShadowHost=!0)}if((Ee.type===oi.Document||Ee.type===oi.Element)&&Fe){b.headWhitespace&&Ee.type===oi.Element&&Ee.tagName==="head"&&(J=!1);var dt={doc:n,mirror:r,blockClass:i,blockSelector:s,needsMask:ce,maskTextClass:o,maskTextSelector:a,skipChild:f,inlineStylesheet:p,maskInputOptions:_,maskTextFn:v,maskInputFn:E,slimDOMOptions:b,dataURLOptions:T,inlineImages:C,recordCanvas:M,preserveWhiteSpace:J,onSerialize:I,onIframeLoad:$,iframeLoadTimeout:V,onStylesheetLoad:N,stylesheetLoadTimeout:K,keepIframeSrcFn:fe,cssCaptured:!1};if(!(Ee.type===oi.Element&&Ee.tagName==="textarea"&&Ee.attributes.value!==void 0)){Ee.type===oi.Element&&Ee.attributes._cssText!==void 0&&typeof Ee.attributes._cssText=="string"&&(dt.cssCaptured=!0);for(var pt=Ye(Array.from(Pi.childNodes(e))),Hn;!(Hn=pt()).done;){var Lr=Hn.value,jn=_h(Lr,dt);jn&&Ee.childNodes.push(jn)}}var tt=null;if(YW(e)&&(tt=Pi.shadowRoot(e)))for(var mt=Ye(Array.from(Pi.childNodes(tt))),vn;!(vn=mt()).done;){var rn=vn.value,sn=_h(rn,dt);sn&&(jm(tt)&&(sn.isShadow=!0),Ee.childNodes.push(sn))}}var Sn=Pi.parentNode(e);return Sn&&Hm(Sn)&&jm(Sn)&&(Ee.isShadow=!0),Ee.type===oi.Element&&Ee.tagName==="iframe"&&dDe(e,function(){var Ze=e.contentDocument;if(Ze&&$){var kn=_h(Ze,{doc:Ze,mirror:r,blockClass:i,blockSelector:s,needsMask:ce,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:_,maskTextFn:v,maskInputFn:E,slimDOMOptions:b,dataURLOptions:T,inlineImages:C,recordCanvas:M,preserveWhiteSpace:J,onSerialize:I,onIframeLoad:$,iframeLoadTimeout:V,onStylesheetLoad:N,stylesheetLoadTimeout:K,keepIframeSrcFn:fe});kn&&$(e,kn)}},V),Ee.type===oi.Element&&Ee.tagName==="link"&&typeof Ee.attributes.rel=="string"&&(Ee.attributes.rel==="stylesheet"||Ee.attributes.rel==="preload"&&typeof Ee.attributes.href=="string"&&ZW(Ee.attributes.href)==="css")&&hDe(e,function(){if(N){var Ze=_h(e,{doc:n,mirror:r,blockClass:i,blockSelector:s,needsMask:ce,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:p,maskInputOptions:_,maskTextFn:v,maskInputFn:E,slimDOMOptions:b,dataURLOptions:T,inlineImages:C,recordCanvas:M,preserveWhiteSpace:J,onSerialize:I,onIframeLoad:$,iframeLoadTimeout:V,onStylesheetLoad:N,stylesheetLoadTimeout:K,keepIframeSrcFn:fe});Ze&&N(e,Ze)}},K),Ee}function yDe(e,t){var n=t||{},r=n.mirror,i=r===void 0?new KW:r,s=n.blockClass,o=s===void 0?"rr-block":s,a=n.blockSelector,l=a===void 0?null:a,f=n.maskTextClass,d=f===void 0?"rr-mask":f,p=n.maskTextSelector,m=p===void 0?null:p,_=n.inlineStylesheet,v=_===void 0?!0:_,E=n.inlineImages,b=E===void 0?!1:E,w=n.recordCanvas,T=w===void 0?!1:w,R=n.maskAllInputs,C=R===void 0?!1:R,k=n.maskTextFn,M=n.maskInputFn,I=n.slimDOM,$=I===void 0?!1:I,Q=n.dataURLOptions,V=n.preserveWhiteSpace,N=n.onSerialize,U=n.onIframeLoad,K=n.iframeLoadTimeout,j=n.onStylesheetLoad,fe=n.stylesheetLoadTimeout,P=n.keepIframeSrcFn,ee=P===void 0?function(){return!1}:P,W=C===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:C===!1?{password:!0}:C,de=$===!0||$==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:$==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:$===!1?{}:$;return _h(e,{doc:e,mirror:i,blockClass:o,blockSelector:l,maskTextClass:d,maskTextSelector:m,skipChild:!1,inlineStylesheet:v,maskInputOptions:W,maskTextFn:k,maskInputFn:M,slimDOMOptions:de,dataURLOptions:Q,inlineImages:b,recordCanvas:T,preserveWhiteSpace:V,onSerialize:N,onIframeLoad:U,iframeLoadTimeout:K,onStylesheetLoad:j,stylesheetLoadTimeout:fe,keepIframeSrcFn:ee,newlyAddedElement:!1})}function bDe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function SDe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return wt(this,r)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var GN={exports:{}},cr=String,nY=function(){return{isColorSupported:!1,reset:cr,bold:cr,dim:cr,italic:cr,underline:cr,inverse:cr,hidden:cr,strikethrough:cr,black:cr,red:cr,green:cr,yellow:cr,blue:cr,magenta:cr,cyan:cr,white:cr,gray:cr,bgBlack:cr,bgRed:cr,bgGreen:cr,bgYellow:cr,bgBlue:cr,bgMagenta:cr,bgCyan:cr,bgWhite:cr}};GN.exports=nY();GN.exports.createColors=nY;var EDe=GN.exports,wDe={},TDe=Object.freeze(Object.defineProperty({__proto__:null,default:wDe},Symbol.toStringTag,{value:"Module"})),Gr=SDe(TDe),ez=EDe,tz=Gr,pI=(function(e){Hi(t,e);function t(r,i,s,o,a,l){var f;return f=e.call(this,r)||this,f.name="CssSyntaxError",f.reason=r,a&&(f.file=a),o&&(f.source=o),l&&(f.plugin=l),typeof i<"u"&&typeof s<"u"&&(typeof i=="number"?(f.line=i,f.column=s):(f.line=i.line,f.column=i.column,f.endLine=s.line,f.endColumn=s.column)),f.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(f,t),f}var n=t.prototype;return n.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},n.showSourceCode=function(i){var s=this;if(!this.source)return"";var o=this.source;i==null&&(i=ez.isColorSupported),tz&&i&&(o=tz(o));var a=o.split(/\r?\n/),l=Math.max(this.line-3,0),f=Math.min(this.line+2,a.length),d=String(f).length,p,m;if(i){var _=ez.createColors(!0),v=_.bold,E=_.gray,b=_.red;p=function(w){return v(b(w))},m=function(w){return E(w)}}else p=m=function(w){return w};return a.slice(l,f).map(function(w,T){var R=l+1+T,C=" "+(" "+R).slice(-d)+" | ";if(R===s.line){var k=m(C.replace(/\d/g," "))+w.slice(0,s.column-1).replace(/[^\t]/g," ");return p(">")+m(C)+w+`
538 `+k+p("^")}return" "+m(C)+w}).join(`
539`)},n.toString=function(){var i=this.showSourceCode();return i&&(i=`
540
541`+i+`
542`),this.name+": "+this.message+i},t})(bE(Error)),qN=pI;pI.default=pI;var uu={};uu.isClean=Symbol("isClean");uu.my=Symbol("my");var nz={after:`
543`,beforeClose:`
544`,beforeComment:`
545`,beforeDecl:`
546`,beforeOpen:" ",beforeRule:`
547`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function xDe(e){return e[0].toUpperCase()+e.slice(1)}var gI=(function(){function e(n){this.builder=n}var t=e.prototype;return t.atrule=function(r,i){var s="@"+r.name,o=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName<"u"?s+=r.raws.afterName:o&&(s+=" "),r.nodes)this.block(r,s+o);else{var a=(r.raws.between||"")+(i?";":"");this.builder(s+o+a,r)}},t.beforeAfter=function(r,i){var s;r.type==="decl"?s=this.raw(r,null,"beforeDecl"):r.type==="comment"?s=this.raw(r,null,"beforeComment"):i==="before"?s=this.raw(r,null,"beforeRule"):s=this.raw(r,null,"beforeClose");for(var o=r.parent,a=0;o&&o.type!=="root";)a+=1,o=o.parent;if(s.includes(`
548`)){var l=this.raw(r,null,"indent");if(l.length)for(var f=0;f<a;f++)s+=l}return s},t.block=function(r,i){var s=this.raw(r,"between","beforeOpen");this.builder(i+s+"{",r,"start");var o;r.nodes&&r.nodes.length?(this.body(r),o=this.raw(r,"after")):o=this.raw(r,"after","emptyBody"),o&&this.builder(o),this.builder("}",r,"end")},t.body=function(r){for(var i=r.nodes.length-1;i>0&&r.nodes[i].type==="comment";)i-=1;for(var s=this.raw(r,"semicolon"),o=0;o<r.nodes.length;o++){var a=r.nodes[o],l=this.raw(a,"before");l&&this.builder(l),this.stringify(a,i!==o||s)}},t.comment=function(r){var i=this.raw(r,"left","commentLeft"),s=this.raw(r,"right","commentRight");this.builder("/*"+i+r.text+s+"*/",r)},t.decl=function(r,i){var s=this.raw(r,"between","colon"),o=r.prop+s+this.rawValue(r,"value");r.important&&(o+=r.raws.important||" !important"),i&&(o+=";"),this.builder(o,r)},t.document=function(r){this.body(r)},t.raw=function(r,i,s){var o;if(s||(s=i),i&&(o=r.raws[i],typeof o<"u"))return o;var a=r.parent;if(s==="before"&&(!a||a.type==="root"&&a.first===r||a&&a.type==="document"))return"";if(!a)return nz[s];var l=r.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[s]<"u")return l.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(r,s);var f="raw"+xDe(s);return this[f]?o=this[f](l,r):l.walk(function(d){if(o=d.raws[i],typeof o<"u")return!1}),typeof o>"u"&&(o=nz[s]),l.rawCache[s]=o,o},t.rawBeforeClose=function(r){var i;return r.walk(function(s){if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return i=s.raws.after,i.includes(`
549`)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i},t.rawBeforeComment=function(r,i){var s;return r.walkComments(function(o){if(typeof o.raws.before<"u")return s=o.raws.before,s.includes(`
550`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s},t.rawBeforeDecl=function(r,i){var s;return r.walkDecls(function(o){if(typeof o.raws.before<"u")return s=o.raws.before,s.includes(`
551`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s},t.rawBeforeOpen=function(r){var i;return r.walk(function(s){if(s.type!=="decl"&&(i=s.raws.between,typeof i<"u"))return!1}),i},t.rawBeforeRule=function(r){var i;return r.walk(function(s){if(s.nodes&&(s.parent!==r||r.first!==s)&&typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
552`)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i},t.rawColon=function(r){var i;return r.walkDecls(function(s){if(typeof s.raws.between<"u")return i=s.raws.between.replace(/[^\s:]/g,""),!1}),i},t.rawEmptyBody=function(r){var i;return r.walk(function(s){if(s.nodes&&s.nodes.length===0&&(i=s.raws.after,typeof i<"u"))return!1}),i},t.rawIndent=function(r){if(r.raws.indent)return r.raws.indent;var i;return r.walk(function(s){var o=s.parent;if(o&&o!==r&&o.parent&&o.parent===r&&typeof s.raws.before<"u"){var a=s.raws.before.split(`
553`);return i=a[a.length-1],i=i.replace(/\S/g,""),!1}}),i},t.rawSemicolon=function(r){var i;return r.walk(function(s){if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(i=s.raws.semicolon,typeof i<"u"))return!1}),i},t.rawValue=function(r,i){var s=r[i],o=r.raws[i];return o&&o.value===s?o.raw:s},t.root=function(r){this.body(r),r.raws.after&&this.builder(r.raws.after)},t.rule=function(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")},t.stringify=function(r,i){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,i)},e})(),rY=gI;gI.default=gI;var CDe=rY;function mI(e,t){var n=new CDe(t);n.stringify(e)}var dT=mI;mI.default=mI;var zb=uu.isClean,ADe=uu.my,RDe=qN,kDe=rY,IDe=dT;function _I(e,t){var n=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r!=="proxyCache"){var i=e[r],s=typeof i>"u"?"undefined":Wt(i);r==="parent"&&s==="object"?t&&(n[r]=t):r==="source"?n[r]=i:Array.isArray(i)?n[r]=i.map(function(o){return _I(o,n)}):(s==="object"&&i!==null&&(i=_I(i)),n[r]=i)}return n}var vI=(function(){function e(n){n===void 0&&(n={}),this.raws={},this[zb]=!1,this[ADe]=!0;for(var r in n)if(r==="nodes"){this.nodes=[];for(var i=Ye(n[r]),s;!(s=i()).done;){var o=s.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[r]=n[r]}var t=e.prototype;return t.addToError=function(r){if(r.postcssNode=this,r.stack&&this.source&&/\n\s{4}at /.test(r.stack)){var i=this.source;r.stack=r.stack.replace(/\n\s{4}at /,"$&"+i.input.from+":"+i.start.line+":"+i.start.column+"$&")}return r},t.after=function(r){return this.parent.insertAfter(this,r),this},t.assign=function(r){r===void 0&&(r={});for(var i in r)this[i]=r[i];return this},t.before=function(r){return this.parent.insertBefore(this,r),this},t.cleanRaws=function(r){delete this.raws.before,delete this.raws.after,r||delete this.raws.between},t.clone=function(r){r===void 0&&(r={});var i=_I(this);for(var s in r)i[s]=r[s];return i},t.cloneAfter=function(r){r===void 0&&(r={});var i=this.clone(r);return this.parent.insertAfter(this,i),i},t.cloneBefore=function(r){r===void 0&&(r={});var i=this.clone(r);return this.parent.insertBefore(this,i),i},t.error=function(r,i){if(i===void 0&&(i={}),this.source){var s=this.rangeBy(i),o=s.end,a=s.start;return this.source.input.error(r,{column:a.column,line:a.line},{column:o.column,line:o.line},i)}return new RDe(r)},t.getProxyProcessor=function(){return{get:function(i,s){return s==="proxyOf"?i:s==="root"?function(){return i.root().toProxy()}:i[s]},set:function(i,s,o){return i[s]===o||(i[s]=o,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&i.markDirty()),!0}}},t.markDirty=function(){if(this[zb]){this[zb]=!1;for(var r=this;r=r.parent;)r[zb]=!1}},t.next=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r+1]}},t.positionBy=function(r,i){var s=this.source.start;if(r.index)s=this.positionInside(r.index,i);else if(r.word){i=this.toString();var o=i.indexOf(r.word);o!==-1&&(s=this.positionInside(o,i))}return s},t.positionInside=function(r,i){for(var s=i||this.toString(),o=this.source.start.column,a=this.source.start.line,l=0;l<r;l++)s[l]===`
554`?(o=1,a+=1):o+=1;return{column:o,line:a}},t.prev=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r-1]}},t.rangeBy=function(r){var i={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:i.column+1,line:i.line};if(r.word){var o=this.toString(),a=o.indexOf(r.word);a!==-1&&(i=this.positionInside(a,o),s=this.positionInside(a+r.word.length,o))}else r.start?i={column:r.start.column,line:r.start.line}:r.index&&(i=this.positionInside(r.index)),r.end?s={column:r.end.column,line:r.end.line}:typeof r.endIndex=="number"?s=this.positionInside(r.endIndex):r.index&&(s=this.positionInside(r.index+1));return(s.line<i.line||s.line===i.line&&s.column<=i.column)&&(s={column:i.column+1,line:i.line}),{end:s,start:i}},t.raw=function(r,i){var s=new kDe;return s.raw(this,r,i)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];if(this.parent){for(var o=this,a=!1,l=Ye(i),f;!(f=l()).done;){var d=f.value;d===this?a=!0:a?(this.parent.insertAfter(o,d),o=d):this.parent.insertBefore(o,d)}a||this.remove()}return this},t.root=function(){for(var r=this;r.parent&&r.parent.type!=="document";)r=r.parent;return r},t.toJSON=function(r,i){var s={},o=i==null;i=i||new Map;var a=0;for(var l in this)if(Object.prototype.hasOwnProperty.call(this,l)&&!(l==="parent"||l==="proxyCache")){var f=this[l];if(Array.isArray(f))s[l]=f.map(function(p){return(typeof p>"u"?"undefined":Wt(p))==="object"&&p.toJSON?p.toJSON(null,i):p});else if((typeof f>"u"?"undefined":Wt(f))==="object"&&f.toJSON)s[l]=f.toJSON(null,i);else if(l==="source"){var d=i.get(f.input);d==null&&(d=a,i.set(f.input,a),a++),s[l]={end:f.end,inputId:d,start:f.start}}else s[l]=f}return o&&(s.inputs=[].concat(i.keys()).map(function(p){return p.toJSON()})),s},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(r){r===void 0&&(r=IDe),r.stringify&&(r=r.stringify);var i="";return r(this,function(s){i+=s}),i},t.warn=function(r,i,s){var o={node:this};for(var a in s)o[a]=s[a];return r.warn(i,o)},Ri(e,[{key:"proxyOf",get:function(){return this}}]),e})(),hT=vI;vI.default=vI;var ODe=hT,yI=(function(e){Hi(t,e);function t(n){var r;return n&&typeof n.value<"u"&&typeof n.value!="string"&&(n=bn({},n,{value:String(n.value)})),r=e.call(this,n)||this,r.type="decl",r}return Ri(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),t})(ODe),pT=yI;yI.default=yI;var MDe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",NDe=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=MDe[Math.random()*64|0];return t},LDe={nanoid:NDe},rz=Gr.SourceMapConsumer,iz=Gr.SourceMapGenerator,DDe=Gr.existsSync,PDe=Gr.readFileSync,OA=Gr.dirname,$De=Gr.join;function FDe(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var bI=(function(){function e(n,r){if(r.map!==!1){this.loadAnnotation(n),this.inline=this.startWith(this.annotation,"data:");var i=r.map?r.map.prev:void 0,s=this.loadMap(r.from,i);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=OA(this.mapFile)),s&&(this.text=s)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new rz(this.text)),this.consumerCache},t.decodeInline=function(r){var i=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(o.test(r)||a.test(r))return decodeURIComponent(r.substr(RegExp.lastMatch.length));if(i.test(r)||s.test(r))return FDe(r.substr(RegExp.lastMatch.length));var l=r.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)},t.getAnnotationURL=function(r){return r.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(r){return(typeof r>"u"?"undefined":Wt(r))!=="object"?!1:typeof r.mappings=="string"||typeof r._mappings=="string"||Array.isArray(r.sections)},t.loadAnnotation=function(r){var i=r.match(/\/\*\s*# sourceMappingURL=/gm);
vendor: 1,198 bytes, line 554
554if(i){var s=r.lastIndexOf(i.pop()),o=r.indexOf("*/",s);s>-1&&o>-1&&(this.annotation=this.getAnnotationURL(r.substring(s,o)))}},t.loadFile=function(r){if(this.root=OA(r),DDe(r))return this.mapFile=r,PDe(r,"utf-8").toString().trim()},t.loadMap=function(r,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){var s=i(r);if(s){var o=this.loadFile(s);if(!o)throw new Error("Unable to load previous source map: "+s.toString());return o}}else{if(wt(i,rz))return iz.fromSourceMap(i).toString();if(wt(i,iz))return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return r&&(a=$De(OA(r),a)),this.loadFile(a)}}},t.startWith=function(r,i){return r?r.substr(0,i.length)===i:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e})(),iY=bI;bI.default=bI;var UDe=Gr.SourceMapConsumer,BDe=Gr.SourceMapGenerator,sz=Gr.fileURLToPath,Hb=Gr.pathToFileURL,SI=Gr.isAbsolute,EI=Gr.resolve,zDe=LDe.nanoid,MA=Gr,oz=qN,HDe=iY,NA=Symbol("fromOffsetCac
554he"),jDe=!!(UDe&&BDe),az=!!(EI&&SI),xE=(function(){function e(n,r){if(r===void 0&&(r={}),n===null||typeof n>"u"||(typeof n>"u"?"undefined":Wt(n))==="object"&&!n.toString)throw new Error("PostCSS received "+n+" instead of CSS string");if(this.css=n.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!az||/^\w+:\/\//.test(r.from)||SI(r.from)?this.file=r.from:this.file=EI(r.from)),az&&jDe){var i=new HDe(this.css,r);if(i.text){this.map=i;var s=i.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+zDe(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(r,i,s,o){o===void 0&&(o={});var a,l,f;if(i&&(typeof i>"u"?"undefined":Wt(i))==="object"){var d=i,p=s;if(typeof d.offset=="number"){var m=this.fromOffset(d.offset);i=m.line,s=m.col}else i=d.line,s=d.column;if(typeof p.offset=="number"){var _=this.fromOffset(p.offset);l=_.line,f=_.col}else l=p.line,f=p.column}else if(!s){var v=this.fromOffset(i);i=v.line,s=v.col}var E=this.origin(i,s,l,f);return E?a=new oz(r,E.endLine===void 0?E.line:{column:E.column,line:E.line},E.endLine===void 0?E.column:{column:E.endColumn,line:E.endLine},E.source,E.file,o.plugin):a=new oz(r,l===void 0?i:{column:s,line:i},l===void 0?s:{column:f,line:l},this.css,this.file,o.plugin),a.input={column:s,endColumn:f,endLine:l,line:i,source:this.css},this.file&&(Hb&&(a.input.url=Hb(this.file).toString()),a.input.file=this.file),a},t.fromOffset=function(r){var i,s;if(this[NA])s=this[NA];else{var o=this.css.split(`
555`);s=new Array(o.length);for(var a=0,l=0,f=o.length;l<f;l++)s[l]=a,a+=o[l].length+1;this[NA]=s}i=s[s.length-1];var d=0;if(r>=i)d=s.length-1;else for(var p=s.length-2,m;d<p;)if(m=d+(p-d>>1),r<s[m])p=m-1;else if(r>=s[m+1])d=m+1;else{d=m;break}return{col:r-s[d]+1,line:d+1}},t.mapResolve=function(r){return/^\w+:\/\//.test(r)?r:EI(this.map.consumer().sourceRoot||this.map.root||".",r)},t.origin=function(r,i,s,o){if(!this.map)return!1;var a=this.map.consumer(),l=a.originalPositionFor({column:i,line:r});if(!l.source)return!1;var f;typeof s=="number"&&(f=a.originalPositionFor({column:o,line:s}));var d;SI(l.source)?d=Hb(l.source):d=new URL(l.source,this.map.consumer().sourceRoot||Hb(this.map.mapFile));var p={column:l.column,endColumn:f&&f.column,endLine:f&&f.line,line:l.line,url:d.toString()};if(d.protocol==="file:")if(sz)p.file=sz(d);else throw new Error("file: protocol is not available in this PostCSS build");var m=a.sourceContentFor(l.source);return m&&(p.source=m),p},t.toJSON=function(){for(var r={},i=0,s=["hasBOM","css","file","id"];i<s.length;i++){var o=s[i];this[o]!=null&&(r[o]=this[o])}return this.map&&(r.map=bn({},this.map),r.map.consumerCache&&(r.map.consumerCache=void 0)),r},Ri(e,[{key:"from",get:function(){return this.file||this.id}}]),e})(),gT=xE;xE.default=xE;MA&&MA.registerInput&&MA.registerInput(xE);var sY=Gr.SourceMapConsumer,i0=Gr.SourceMapGenerator,s0=Gr.dirname,oY=Gr.relative,aY=Gr.resolve,cY=Gr.sep,cz=Gr.pathToFileURL,VDe=gT,GDe=!!(sY&&i0),qDe=!!(s0&&aY&&oY&&cY),WDe=(function(){function e(n,r,i,s){this.stringify=n,this.mapOpts=i.map||{},this.root=r,this.opts=i,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var r;this.isInline()?r="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?r=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?r=this.mapOpts.annotation(this.opts.to,this.root):r=this.outputFile()+".map";var i=`
556`;this.css.includes(`\r
557`)&&(i=`\r
558`),this.css+=i+"/*# sourceMappingURL="+r+" */"},t.applyPrevMaps=function(){for(var r=Ye(this.previous()),i;!(i=r()).done;){var s=i.value,o=this.toUrl(this.path(s.file)),a=s.root||s0(s.file),l=void 0;this.mapOpts.sourcesContent===!1?(l=new sY(s.text),l.sourcesContent&&(l.sourcesContent=null)):l=s.consumer(),this.map.applySourceMap(l,o,this.toUrl(this.path(a)))}},t.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var r,i=this.root.nodes.length-1;i>=0;i--)r=this.root.nodes[i],r.type==="comment"&&r.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(i);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),qDe&&GDe&&this.isMap())return this.generateMap();var r="";return this.stringify(this.root,function(i){r+=i}),[r]},t.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var r=this.previous()[0].consumer();r.file=this.outputFile(),this.map=i0.fromSourceMap(r,{ignoreInvalidMapping:!0})}else this.map=new i0({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var r=this;this.css="",this.map=new i0({file:this.outputFile(),ignoreInvalidMapping:!0});var i=1,s=1,o="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},l,f;this.stringify(this.root,function(d,p,m){if(r.css+=d,p&&m!=="end"&&(a.generated.line=i,a.generated.column=s-1,p.source&&p.source.start?(a.source=r.sourcePath(p),a.original.line=p.source.start.line,a.original.column=p.source.start.column-1,r.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,r.map.addMapping(a))),l=d.match(/\n/g),l?(i+=l.length,f=d.lastIndexOf(`
559`),s=d.length-f):s+=d.length,p&&m!=="start"){var _=p.parent||{raws:{}}
vendor: 4,434 bytes, line 559
559,v=p.type==="decl"||p.type==="atrule"&&!p.nodes;(!v||p!==_.last||_.raws.semicolon)&&(p.source&&p.source.end?(a.source=r.sourcePath(p),a.original.line=p.source.end.line,a.original.column=p.source.end.column-1,a.generated.line=i,a.generated.column=s-2,r.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=i,a.generated.column=s-1,r.map.addMapping(a)))}})},t.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(r){return r.annotation}):!0},t.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var r=this.mapOpts.annotation;return typeof r<"u"&&r!==!0?!1:this.previous().length?this.previous().some(function(i){return i.inline}):!0},t.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(r){return r.withContent()}):!0},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(r){if(this.mapOpts.absolute||r.charCodeAt(0)===60||/^\w+:\/\//.test(r))return r;var i=this.memoizedPaths.get(r);if(i)return i;var s=this.opts.to?s0(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=s0(aY(s,this.mapOpts.annotation)));var o=oY(s,r);return this.memoizedPaths.set(r,o),o},t.previous=function(){var r=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(s){if(s.source&&s.source.input.map){var o=s.source.input.map;r.previousMaps.includes(o)||r.previousMaps.push(o)}});else{var i=new VDe(this.originalCSS,this.opts);i.map&&this.previousMaps.push(i.map)}return this.previousMaps},t.setSourcesContent=function(){var r=this,i={};if(this.root)this.root.walk(function(o){if(o.source){var a=o.source.input.from;if(a&&!i[a]){i[a]=!0;var l=r.usesFileUrls?r.toFileUrl(a):r.toUrl(r.path(a));r.map.setSourceContent(l,o.source.input.css)}}});else if(this.css){var s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}},t.sourcePath=function(r){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(r.source.input.from):this.toUrl(this.path(r.source.input.from))},t.toBase64=function(r){return Buffer?Buffer.from(r).toString("base64"):window.btoa(unescape(encodeURIComponent(r)))},t.toFileUrl=function(r){var i=this.memoizedFileURLs.get(r);if(i)return i;if(cz){var s=cz(r).toString();return this.memoizedFileURLs.set(r,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(r){var i=this.memoizedURLs.get(r);if(i)return i;cY==="\\"&&(r=r.replace(/\\/g,"/"));var s=encodeURI(r).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(r,s),s},e})(),lY=WDe,YDe=hT,wI=(function(e){Hi(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type="comment",r}return t})(YDe),mT=wI;wI.default=wI;var uY=uu.isClean,fY=uu.my,dY=pT,hY=mT,XDe=hT,pY,WN,YN,gY;function mY(e){return e.map(function(t){return t.nodes&&(t.nodes=mY(t.nodes)),delete t.source,t})}function _Y(e){if(e[uY]=!1,e.proxyOf.nodes)for(var t=Ye(e.proxyOf.nodes),n;!(n=t()).done;){var r=n.value;_Y(r)}}var Ic=(function(e){Hi(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.append=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];for(var a=Ye(s),l;!(l=a()).done;)for(var f=l.value,d=this.normalize(f,this.last),p=Ye(d),m;!(m=p()).done;){var _=m.value;this.proxyOf.nodes.push(_)}return this.markDirty(),this},n.cleanRaws=function(i){if(e.prototype.cleanRaws.call(this,i),this.nodes)for(var s=Ye(this.nodes),o;!(o=s()).done;){var a=o.value;a.cleanRaws(i)}},n.each=function(i){if(this.proxyOf.nodes){for(var s=this.getIterator(),o,a;this.indexes[s]<this.proxyOf.nodes.length&&(o=this.indexes[s],a=i(this.proxyOf.nodes[o],o),a!==!1);)this.indexes[s]+=1;return delete this.indexes[s],a}},n.every=function(i){return this.nodes.every(i)},n.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var i=this.lastEach;return this.indexes[i]=0,i},n.getProxyProcessor=function(){return{get:function(s,o){return o==="proxyOf"?s:s[o]?o==="each"||typeof o=="str
559ing"&&o.startsWith("walk")?function(){for(var a=arguments.length,l=new Array(a),f=0;f<a;f++)l[f]=arguments[f];var d;return(d=s)[o].apply(d,[].concat(l.map(function(p){return typeof p=="function"?function(m,_){return p(m.toProxy(),_)}:p})))}:o==="every"||o==="some"?function(a){return s[o](function(l){for(var f=arguments.length,d=new Array(f>1?f-1:0),p=1;p<f;p++)d[p-1]=arguments[p];return a.apply(void 0,[].concat([l.toProxy()],d))})}:o==="root"?function(){return s.root().toProxy()}:o==="nodes"?s.nodes.map(function(a){return a.toProxy()}):o==="first"||o==="last"?s[o].toProxy():s[o]:s[o]},set:function(s,o,a){return s[o]===a||(s[o]=a,(o==="name"||o==="params"||o==="selector")&&s.markDirty()),!0}}},n.index=function(i){return typeof i=="number"?i:(i.proxyOf&&(i=i.proxyOf),this.proxyOf.nodes.indexOf(i))},n.insertAfter=function(i,s){var o=this.index(i),a=this.normalize(s,this.proxyOf.nodes[o]).reverse();o=this.index(i);for(var l=Ye(a),f;!(f=l()).done;){var d=f.value;this.proxyOf.nodes.splice(o+1,0,d)}var p;for(var m in this.indexes)p=this.indexes[m],o<p&&(this.indexes[m]=p+a.length);return this.markDirty(),this},n.insertBefore=function(i,s){var o=this.index(i),a=o===0?"prepend":!1,l=this.normalize(s,this.proxyOf.nodes[o],a).reverse();o=this.index(i);for(var f=Ye(l),d;!(d=f()).done;){var p=d.value;this.proxyOf.nodes.splice(o,0,p)}var m;for(var _ in this.indexes)m=this.indexes[_],o<=m&&(this.indexes[_]=m+l.length);return this.markDirty(),this},n.normalize=function(i,s){var o=this;if(typeof i=="string")i=mY(pY(i).nodes);else if(typeof i>"u")i=[];else if(Array.isArray(i)){i=i.slice(0);for(var a=Ye(i),l;!(l=a()).done;){var f=l.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(i.type==="root"&&this.type!=="document"){i=i.nodes.slice(0);for(var d=Ye(i),p;!(p=d()).done;){var m=p.value;m.parent&&m.parent.removeChild(m,"ignore")}}else if(i.type)i=[i];else if(i.prop){if(typeof i.value>"u")throw new Error("Value field is missed in node creation");typeof i.value!="string"&&(i.value=String(i.value)),i=[new dY(i)]}else if(i.selector)i=[new WN(i)];else if(i.name)i=[new YN(i)];else if(i.text)i=[new hY(i)];else throw new Error("Unknown node type in node creation");var _=i.map(function(v){return v[fY]||t.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[uY]&&_Y(v),typeof v.raws.before>"u"&&s&&typeof s.raws.before<"u"&&(v.raws.before=s.raws.before.replace(/\S/g,"")),v.parent=o.proxyOf,v});return _},n.prepend=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];s=s.reverse();for(var a=Ye(s),l;!(l=a()).done;){for(var f=l.value,d=this.normalize(f,this.first,"prepend").reverse(),p=Ye(d),m;!(m=p()).done;){var _=m.value;this.proxyOf.nodes.unshift(_)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+d.length}return this.markDirty(),this},n.push=function(i){return i.parent=this,this.proxyOf.nodes.push(i),this},n.removeAll=function(){for(var i=Ye(this.proxyOf.nodes),s;!(s=i()).done;){var o=s.value;o.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},n.removeChild=function(i){i=this.index(i),this.proxyOf.nodes[i].parent=void 0,this.proxyOf.nodes.splice(i,1);var s;for(var o in this.indexes)s=this.indexes[o],s>=i&&(this.indexes[o]=s-1);return this.markDirty(),this},n.replaceValues=function(i,s,o){return o||(o=s,s={}),this.walkDecls(function(a){s.props&&!s.props.includes(a.prop)||s.fast&&!a.value.includes(s.fast)||(a.value=a.value.replace(i,o))}),this.markDirty(),this},n.some=function(i){return this.nodes.some(i)},n.walk=function(i){return this.each(function(s,o){var a;try{a=i(s,o)}catch(l){throw s.addToError(l)}return a!==!1&&s.walk&&(a=s.walk(i)),a})},n.walkAtRules=function(i,s){return s?wt(i,RegExp)?this.walk(function(o,a){if(o.type==="atrule"&&i.test(o.name))return s(o,a)}):this.walk(function(o,a){if(o.type==="atrule"&&o.name===i)return s(o,a)}):(s=i,this.walk(function(o,a){if(o.type==="atrule")return s(o,a)}))},n.walkComments=function(i){return this.walk(function(s,o){if(s.type==="comment")return i(s,o)})},n.walkDecls=function(i,s){return s?wt(i,RegExp)?this.walk(function(o,a){if(o.type==="decl"&&i.test(o.prop))return s(o,a)}):this.walk(function(o,a){if(o.type==="decl"&&o.prop===i)return s(o,a)}):(s=i,this.walk(function(o,a){if(o.type==="decl")return s(o,a)}))},n.walkRules=function(i,s){return s?wt(i,RegExp)?this.walk(function(o,a){if(o.type==="rule"&&i.test(o.selector))return s(o,a)}):this.walk(function(o,a){if(o.type==="rule"&&o.selector===i)return s(o,a)}):(s=i,this.walk(function(o,a){if(o.type==="rule")return s(o,a)}))},Ri(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t})(XDe);Ic.registerParse=function(e){pY=e};Ic.registerRule=function(e){WN=e};Ic.registerAtRule=function(e){YN=e};Ic.registerRoot=function(e){gY=e};var ed=Ic;Ic.default=Ic;Ic.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,YN.prototype):e.type==="rule"?Object.setPrototypeOf(e,WN.prototype):e.type==="decl"?Object.setPrototypeOf(e,dY.prototype):e.type==="comment"?Object.setPrototypeOf(e,hY.prototype):e.type==="root"&&Object.setPrototypeOf(e,gY.prototype),e[fY]=!0,e.nodes&&e.nodes.forEac
vendor: 41,925 bytes, lines 559-579
559h(function(t){Ic.rebuild(t)})};var KDe=ed,vY,yY,O_=(function(e){Hi(t,e);function t(r){var i;return i=e.call(this,bn({type:"document"},r))||this,i.nodes||(i.nodes=[]),i}var n=t.prototype;return n.toResult=function(i){i===void 0&&(i={});var s=new vY(new yY,this,i);return s.stringify()},t})(KDe);O_.registerLazyResult=function(e){vY=e};O_.registerProcessor=function(e){yY=e};var XN=O_;O_.default=O_;var TI=(function(){function e(n,r){if(r===void 0&&(r={}),this.type="warning",this.text=n,r.node&&r.node.source){var i=r.node.rangeBy(r);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(var s in r)this[s]=r[s]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e})(),bY=TI;TI.default=TI;var ZDe=bY,xI=(function(){function e(n,r,i){this.processor=n,this.messages=[],this.root=r,this.opts=i,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(r,i){i===void 0&&(i={}),i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);var s=new ZDe(r,i);return this.messages.push(s),s},t.warnings=function(){return this.messages.filter(function(r){return r.type==="warning"})},Ri(e,[{key:"content",get:function(){return this.css}}]),e})(),KN=xI;xI.default=xI;var LA=39,lz=34,jb=92,uz=47,Vb=10,sm=32,Gb=12,qb=9,Wb=13,JDe=91,QDe=93,ePe=40,tPe=41,nPe=123,rPe=125,iPe=59,sPe=42,oPe=58,aPe=64,Yb=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xb=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,cPe=/.[\r\n"'(/\\]/,fz=/[\da-f]/i,lPe=function(t,n){n===void 0&&(n={});var r=t.css.valueOf(),i=n.ignoreErrors,s,o,a,l,f,d,p,m,_,v,E=r.length,b=0,w=[],T=[];function R(){return b}function C($){throw t.error("Unclosed "+$,b)}function k(){return T.length===0&&b>=E}function M($){if(T.length)return T.pop();if(!(b>=E)){var Q=$?$.ignoreUnclosed:!1;switch(s=r.charCodeAt(b),s){case Vb:case sm:case qb:case Wb:case Gb:{o=b;do o+=1,s=r.charCodeAt(o);while(s===sm||s===Vb||s===qb||s===Wb||s===Gb);v=["space",r.slice(b,o)],b=o-1;break}case JDe:case QDe:case nPe:case rPe:case oPe:case iPe:case tPe:{var V=String.fromCharCode(s);v=[V,V,b];break}case ePe:{if(m=w.length?w.pop()[1]:"",_=r.charCodeAt(b+1),m==="url"&&_!==LA&&_!==lz&&_!==sm&&_!==Vb&&_!==qb&&_!==Gb&&_!==Wb){o=b;do{if(d=!1,o=r.indexOf(")",o+1),o===-1)if(i||Q){o=b;break}else C("bracket");for(p=o;r.charCodeAt(p-1)===jb;)p-=1,d=!d}while(d);v=["brackets",r.slice(b,o+1),b,o],b=o}else o=r.indexOf(")",b+1),l=r.slice(b,o+1),o===-1||cPe.test(l)?v=["(","(",b]:(v=["brackets",l,b,o],b=o);break}case LA:case lz:{a=s===LA?"'":'"',o=b;do{if(d=!1,o=r.indexOf(a,o+1),o===-1)if(i||Q){o=b+1;break}else C("string");for(p=o;r.charCodeAt(p-1)===jb;)p-=1,d=!d}while(d);v=["string",r.slice(b,o+1),b,o],b=o;break}case aPe:{Yb.lastIndex=b+1,Yb.test(r),Yb.lastIndex===0?o=r.length-1:o=Yb.lastIndex-2,v=["at-word",r.slice(b,o+1),b,o],b=o;break}case jb:{for(o=b,f=!0;r.charCodeAt(o+1)===jb;)o+=1,f=!f;if(s=r.charCodeAt(o+1),f&&s!==uz&&s!==sm&&s!==Vb&&s!==qb&&s!==Wb&&s!==Gb&&(o+=1,fz.test(r.charAt(o)))){for(;fz.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===sm&&(o+=1)}v=["word",r.slice(b,o+1),b,o],b=o;break}default:{s===uz&&r.charCodeAt(b+1)===sPe?(o=r.indexOf("*/",b+2)+1,o===0&&(i||Q?o=r.length:C("comment")),v=["comment",r.slice(b,o+1),b,o],b=o):(Xb.lastIndex=b+1,Xb.test(r),Xb.lastIndex===0?o=r.length-1:o=Xb.lastIndex-2,v=["word",r.slice(b,o+1),b,o],w.push(v),b=o);break}}return b++,v}}function I($){T.push($)}return{back:I,endOfFile:k,nextToken:M,position:R}},SY=ed,CE=(function(e){Hi(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type="atrule",i}var n=t.prototype;return n.append=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.append).call.apply(a,[].concat([this],s))},n.prepend=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.prepend).call.apply(a,[].concat([this],s))},t})(SY),ZN=CE;CE.default=CE;SY.registerAtRule(CE);var EY=ed,wY,TY,cp=(function(e){Hi(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type="root",i.nodes||(i.nodes=[]),i}var n=t.prototype;return n.normalize=function(i,s,o){var a=e.prototype.normalize.call(this,i);if(s){if(o==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(var l=Ye(a),f;!(f=l()).done;){var d=f.value;d.raws.before=s.raws.before}}return a},n.removeChild=function(i,s){var o=this.index(i);return!s&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),e.prototype.removeChild.call(this,i)},n.toResult=function(i){i===void 0&&(i={});var s=new wY(new TY,this,i);return s.stringify()},t})(EY);cp.registerLazyResult=function(e){wY=e};cp.registerProcessor=function(e){TY=e};var $v=cp;cp.default=cp;EY.registerRoot(cp);var M_={comma:function(t){return M_.split(t,[","],!0)},space:function(t){var n=[" ",`
560`,"	"];return M_.split(t,n)},split:function(t,n,r){for(var i=[],s="",o=!1,a=0,l=!1,f="",d=!1,p=Ye(t),m;!(m=p()).done;){var _=m.value;d?d=!1:_==="\\"?d=!0:l?_===f&&(l=!1):_==='"'||_==="'"?(l=!0,f=_):_==="("?a+=1:_===")"?a>0&&(a-=1):a===0&&n.includes(_)&&(o=!0),o?(s!==""&&i.push(s.trim()),s="",o=!1):s+=_}return(r||s!=="")&&i.push(s.trim()),i}},xY=M_;M_.default=M_;var CY=ed,uPe=xY,AE=(function(e){Hi(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Ri(t,[{key:"selectors",get:function(){return uPe.comma(this.selector)},set:function(r){var i=this.selector?this.selector.match(/,\s*/):null,s=i?i[0]:","+this.raw("between","beforeOpen");this.selector=r.join(s)}}]),t})(CY),JN=AE;AE.default=AE;CY.registerRule(AE);var fPe=pT,dPe=lPe,hPe=mT,pPe=ZN,gPe=$v,dz=JN,hz={empty:!0,space:!0};function mPe(e){for(var t=e.length-1;t>=0;t--){var n=e[t],r=n[3]||n[2];if(r)return r}}var _Pe=(function(){function e(n){this.input=n,this.root=new gPe,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(r){var i=new pPe;i.name=r[1].slice(1),i.name===""&&this.unnamedAtrule(i,r),this.init(i,r[2]);for(var s,o,a,l=!1,f=!1,d=[],p=[];!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),s=r[0],s==="("||s==="["?p.push(s==="("?")":"]"):s==="{"&&p.length>0?p.push("}"):s===p[p.length-1]&&p.pop(),p.length===0)if(s===";"){i.source.end=this.getPosition(r[2]),i.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){f=!0;break}else if(s==="}"){if(d.length>0){for(a=d.length-1,o=d[a];o&&o[0]==="space";)o=d[--a];o&&(i.source.end=this.getPosition(o[3]||o[2]),i.source.end.offset++)}this.end(r);break}else d.push(r);else d.push(r);if(this.tokenizer.endOfFile()){l=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(d),d.length?(i.raws.afterName=this.spacesAndCommentsFromStart(d),this.raw(i,"params",d),l&&(r=d[d.length-1],i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),f&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(r){var i=this.colon(r);if(i!==!1){for(var s=0,o,a=i-1;a>=0&&(o=r[a],!(o[0]!=="space"&&(s+=1,s===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},t.colon=function(r){for(var i=0,s,o,a,l=Ye(r.entries()),f;!(f=l()).done;){var d=f.value,p=d[0],m=d[1];if(s=m,o=s[0],o==="("&&(i+=1),o===")"&&(i-=1),i===0&&o===":")if(!a)this.doubleColon(s);else{if(a[0]==="word"&&a[1]==="progid")continue;return p}a=s}return!1},t.comment=function(r){var i=new hPe;this.init(i,r[2]),i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++;var s=r[1].slice(2,-2);if(/^\s*$/.test(s))i.text="",i.raws.left=s,i.raws.right="";else{var o=s.match(/^(\s*)([^]*\S)(\s*)$/);i.text=o[2],i.raws.left=o[1],i.raws.right=o[3]}},t.createTokenizer=function(){this.tokenizer=dPe(this.input)},t.decl=function(r,i){var s=new fPe;this.init(s,r[0][2]);var o=r[r.length-1];for(o[0]===";"&&(this.semicolon=!0,r.pop()),s.source.end=this.getPosition(o[3]||o[2]||mPe(r)),s.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),s.raws.before+=r.shift()[1];for(s.source.start=this.getPosition(r[0][2]),s.prop="";r.length;){var a=r[0][0];if(a===":"||a==="space"||a==="comment")break;s.prop+=r.shift()[1]}s.raws.between="";for(var l;r.length;)if(l=r.shift(),l[0]===":"){s.raws.between+=l[1];break}else l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]),s.raws.between+=l[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));for(var f=[],d;r.length&&(d=r[0][0],!(d!=="space"&&d!=="comment"));)f.push(r.shift());this.precheckMissedSemicolon(r);for(var p=r.length-1;p>=0;p--){if(l=r[p],l[1].toLowerCase()==="!important"){s.important=!0;var m=this.stringFrom(r,p);m=this.spacesFromEnd(r)+m,m!==" !important"&&(s.raws.important=m);break}else if(l[1].toLowerCase()==="important"){for(var _=r.slice(0),v="",E=p;E>0;E--){var b=_[E][0];if(v.trim().indexOf("!")===0&&b!=="space")break;v=_.pop()[1]+v}v.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=v,r=_)}if(l[0]!=="space"&&l[0]!=="comment")break}var w=r.some(function(T){return T[0]!=="space"&&T[0]!=="comment"});w&&(s.raws.between+=f.map(function(T){return T[1]}).join(""),f=[]),this.raw(s,"value",f.concat(r),i),s.value.includes(":")&&!i&&this.checkMissedSemicolon(r)},t.doubleColon=function(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})},t.emptyRule=function(r){var i=new dz;this.init(i,r[2]),i.selector="",i.raws.between="",this.current=i},t.end=function(r){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(r){if(this.spaces+=r[1],this.current.nodes){var i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(r){var i=this.input.fromOffset(r);return{column:i.col,line:i.line,offset:r}},t.init=function(r,i){this.current.push(r),r.source={input:this.input,start:this.getPosition(i)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)},t.other=function(r){for(var i=!1,s=null,o=!1,a=null,l=[],f=r[1].startsWith("--"),d=[],p=r;p;){if(s=p[0],d.push(p),s==="("||s==="[")a||(a=p),l.push(s==="("?")":"]");else if(f&&o&&s==="{")a||(a=p),l.push("}");else if(l.length===0)if(s===";")if(o){this.decl(d,f);return}else break;else if(s==="{"){this.rule(d);return}else if(s==="}"){this.tokenizer.back(d.pop()),i=!0;break}else s===":"&&(o=!0);else s===l[l.length-1]&&(l.pop(),l.length===0&&(a=null));p=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),l.length>0&&this.unclosedBracket(a),i&&o){if(!f)for(;d.length&&(p=d[d.length-1][0],!(p!=="space"&&p!=="comment"));)this.tokenizer.back(d.pop());this.decl(d,f)}else this.unknownWord(d)},t.parse=function(){for(var r;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(r,i,s,o){for(var a,l,f=s.length,d="",p=!0,m,_,v=0;v<f;v+=1)a=s[v],l=a[0],l==="space"&&v===f-1&&!o?p=!1:l==="comment"?(_=s[v-1]?s[v-1][0]:"empty",m=s[v+1]?s[v+1][0]:"empty",!hz[_]&&!hz[m]?d.slice(-1)===","?p=!1:d+=a[1]:p=!1):d+=a[1];if(!p){var E=s.reduce(function(b,w){return b+w[1]},"");r.raws[i]={raw:E,value:d}}r[i]=d},t.rule=function(r){r.pop();var i=new dz;this.init(i,r[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(i,"selector",r),this.current=i},t.spacesAndCommentsFromEnd=function(r){for(var i,s="";r.length&&(i=r[r.length-1][0],!(i!=="space"&&i!=="comment"));)s=r.pop()[1]+s;return s},t.spacesAndCommentsFromStart=function(r){for(var i,s="";r.length&&(i=r[0][0],!(i!=="space"&&i!=="comment"));)s+=r.shift()[1];return s},t.spacesFromEnd=function(r){for(var i,s="";r.length&&(i=r[r.length-1][0],i==="space");)s=r.pop()[1]+s;return s},t.stringFrom=function(r,i){for(var s="",o=i;o<r.length;o++)s+=r[o][1];return r.splice(i,r.length-i),s},t.unclosedBlock=function(){var r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)},t.unclosedBracket=function(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})},t.unexpectedClose=function(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})},t.unknownWord=function(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})},t.unnamedAtrule=function(r,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})},e})(),vPe=_Pe,yPe=ed,bPe=vPe,SPe=gT;function RE(e,t){var n=new SPe(e,t),r=new bPe(n);try{r.parse()}catch(i){throw i}return r.root}var QN=RE;RE.default=RE;yPe.registerParse(RE);var ta=uu.isClean,EPe=uu.my,wPe=lY,TPe=dT,xPe=ed,CPe=XN,pz=KN,APe=QN,RPe=$v,kPe={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},IPe={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},OPe={Once:!0,postcssPlugin:!0,prepare:!0},lp=0;function om(e){return(typeof e>"u"?"undefined":Wt(e))==="object"&&typeof e.then=="function"}function AY(e){var t=!1,n=kPe[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,lp,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,lp,n+"Exit"]:[n,n+"Exit"]}function gz(e){var t;return e.type==="document"?t=["Document",lp,"DocumentExit"]:e.type==="root"?t=["Root",lp,"RootExit"]:t=AY(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function CI(e){return e[ta]=!1,e.nodes&&e.nodes.forEach(function(t){return CI(t)}),e}var AI={},up=(function(){function e(n,r,i){var s=this;this.stringified=!1,this.processed=!1;var o;if((typeof r>"u"?"undefined":Wt(r))==="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=CI(r);else if(wt(r,e)||wt(r,pz))o=CI(r.root),r.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{var a=APe;i.syntax&&(a=i.syntax.parse),i.parser&&(a=i.parser),a.parse&&(a=a.parse);try{o=a(r,i)}catch(l){this.processed=!0,this.error=l}o&&!o[EPe]&&xPe.rebuild(o)}this.result=new pz(n,o,i),this.helpers=bn({},AI,{postcss:AI,result:this.result}),this.plugins=this.processor.plugins.map(function(l){return(typeof l>"u"?"undefined":Wt(l))==="object"&&l.prepare?bn({},l,l.prepare(s.result)):l})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(r,i){var s=this.result.lastPlugin;try{if(i&&i.addToError(r),this.error=r,r.name==="CssSyntaxError"&&!r.plugin)r.plugin=s.postcssPlugin,r.setMessage();else if(s.postcssVersion)var o,a,l,f,d}catch(p){console&&console.error&&console.error(p)}return r},t.prepareVisitors=function(){var r=this;this.listeners={};for(var i=function(d,p,m){r.listeners[p]||(r.listeners[p]=[]),r.listeners[p].push([d,m])},s=Ye(this.plugins),o;!(o=s()).done;){var a=o.value;if((typeof a>"u"?"undefined":Wt(a))==="object")for(var l in a){if(!IPe[l]&&/^[A-Z]/.test(l))throw new Error("Unknown event "+l+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!OPe[l])if(Wt(a[l])==="object")for(var f in a[l])f==="*"?i(a,l,a[l][f]):i(a,l+"-"+f.toLowerCase(),a[l][f]);else typeof a[l]=="function"&&i(a,l,a[l])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var r=this;return HN(function(){var i,s,o,a,l,f,d,p,m,_,v,E;return k_(this,function(b){switch(b.label){case 0:r.plugin=0,i=0,b.label=1;case 1:if(!(i<r.plugins.length))return[3,6];if(s=r.plugins[i],o=r.runOnRoot(s),!om(o))return[3,5];b.label=2;case 2:return b.trys.push([2,4,,5]),[4,o];case 3:return b.sent(),[3,5];case 4:throw a=b.sent(),r.handleError(a);case 5:return i++,[3,1];case 6:if(r.prepareVisitors(),!r.hasListener)return[3,18];l=r.result.root,b.label=7;case 7:if(l[ta])return[3,14];l[ta]=!0,f=[gz(l)],b.label=8;case 8:if(!(f.length>0))return[3,13];if(d=r.visitTick(f),!om(d))return[3,12];b.label=9;case 9:return b.trys.push([9,11,,12]),[4,d];case 10:return b.sent(),[3,12];case 11:throw p=b.sent(),m=f[f.length-1].node,r.handleError(p,m);case 12:return[3,8];case 13:return[3,7];case 14:if(!r.listeners.OnceExit)return[3,18];_=function(){var w,T,R,C,k;return k_(this,function(M){switch(M.label){case 0:w=E.value,T=w[0],R=w[1],r.result.lastPlugin=T,M.label=1;case 1:return M.trys.push([1,6,,7]),l.type!=="document"?[3,3]:(C=l.nodes.map(function(I){return R(I,r.helpers)}),[4,Promise.all(C)]);case 2:return M.sent(),[3,5];case 3:return[4,R(l,r.helpers)];case 4:M.sent(),M.label=5;case 5:return[3,7];case 6:throw k=M.sent(),r.handleError(k);case 7:return[2]}})},v=Ye(r.listeners.OnceExit),b.label=15;case 15:return(E=v()).done?[3,18]:[5,qW(_())];case 16:b.sent(),b.label=17;case 17:return[3,15];case 18:return r.processed=!0,[2,r.stringify()]}})})()},t.runOnRoot=function(r){var i=this;this.result.lastPlugin=r;try{if((typeof r>"u"?"undefined":Wt(r))==="object"&&r.Once){if(this.result.root.type==="document"){var s=this.result.root.nodes.map(function(o){return r.Once(o,i.helpers)});return om(s[0])?Promise.all(s):s}return r.Once(this.result.root,this.helpers)}else if(typeof r=="function")return r(this.result.root,this.result)}catch(o){throw this.handleError(o)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var r=this.result.opts,i=TPe;r.syntax&&(i=r.syntax.stringify),r.stringifier&&(i=r.stringifier),i.stringify&&(i=i.stringify);var s=new wPe(i,this.result.root,this.result.opts),o=s.generate();return this.result.css=o[0],this.result.map=o[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var r=Ye(this.plugins),i;!(i=r()).done;){var s=i.value,o=this.runOnRoot(s);if(om(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[ta];)a[ta]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var l=Ye(a.nodes),f;!(f=l()).done;){var d=f.value;this.visitSync(this.listeners.OnceExit,d)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},t.then=function(r,i){return this.async().then(r,i)},t.toString=function(){return this.css},t.visitSync=function(r,i){for(var s=Ye(r),o;!(o=s()).done;){var a=o.value,l=a[0],f=a[1];this.result.lastPlugin=l;var d=void 0;try{d=f(i,this.helpers)}catch(p){throw this.handleError(p,i.proxyOf)}if(i.type!=="root"&&i.type!=="document"&&!i.parent)return!0;if(om(d))throw this.getAsyncError()}},t.visitTick=function(r){var i=r[r.length-1],s=i.node,o=i.visitors;if(s.type!=="root"&&s.type!=="document"&&!s.parent){r.pop();return}if(o.length>0&&i.visitorIndex<o.length){var a=o[i.visitorIndex],l=a[0],f=a[1];i.visitorIndex+=1,i.visitorIndex===o.length&&(i.visitors=[],i.visitorIndex=0),this.result.lastPlugin=l;try{return f(s.toProxy(),this.helpers)}catch(v){throw this.handleError(v,s)}}if(i.iterator!==0){for(var d=i.iterator,p;p=s.nodes[s.indexes[d]];)if(s.indexes[d]+=1,!p[ta]){p[ta]=!0,r.push(gz(p));return}i.iterator=0,delete s.indexes[d]}for(var m=i.events;i.eventIndex<m.length;){var _=m[i.eventIndex];if(i.eventIndex+=1,_===lp){s.nodes&&s.nodes.length&&(s[ta]=!0,i.iterator=s.getIterator());return}else if(this.listeners[_]){i.visitors=this.listeners[_];return}}r.pop()},t.walkSync=function(r){var i=this;r[ta]=!0;for(var s=AY(r),o=Ye(s),a;!(a=o()).done;){var l=a.value;if(l===lp)r.nodes&&r.each(function(d){d[ta]||i.walkSync(d)});else{var f=this.listeners[l];if(f&&this.visitSync(f,r.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ri(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e})();up.registerPostcss=function(e){AI=e};var RY=up;up.default=up;RPe.registerLazyResult(up);CPe.registerLazyResult(up);var MPe=lY,NPe=dT,LPe=QN,DPe=KN,RI=(function(){function e(n,r,i){r=r.toString(),this.stringified=!1,this._processor=n,this._css=r,this._opts=i,this._map=void 0;var s,o=NPe;this.result=new DPe(this._processor,s,this._opts),this.result.css=r;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var l=new MPe(o,s,this._opts,r);if(l.isMap()){var f=l.generate(),d=f[0],p=f[1];d&&(this.result.css=d),p&&(this.result.map=p)}else l.clearAnnotation(),this.result.css=l.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(r,i){return this.async().then(r,i)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ri(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var r,i=LPe;try{r=i(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=r,r}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e})(),PPe=RI;RI.default=RI;var $Pe=PPe,FPe=RY,UPe=XN,BPe=$v,N_=(function(){function e(n){n===void 0&&(n=[]),this.version="8.4.38",this.plugins=this.normalize(n)}var t=e.prototype;return t.normalize=function(r){for(var i=[],s=Ye(r),o;!(o=s()).done;){var a=o.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a>"u"?"undefined":Wt(a))==="object"&&Array.isArray(a.plugins))i=i.concat(a.plugins);else if((typeof a>"u"?"undefined":Wt(a))==="object"&&a.postcssPlugin)i.push(a);else if(typeof a=="function")i.push(a);else if(!((typeof a>"u"?"undefined":Wt(a))==="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin")}return i},t.process=function(r,i){return i===void 0&&(i={}),!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new $Pe(this,r,i):new FPe(this,r,i)},t.use=function(r){return this.plugins=this.plugins.concat(this.normalize([r])),this},e})(),zPe=N_;N_.default=N_;BPe.registerProcessor(N_);UPe.registerProcessor(N_);var HPe=pT,jPe=iY,VPe=mT,GPe=ZN,qPe=gT,WPe=$v,YPe=JN;function L_(e,t){if(Array.isArray(e))return e.map(function(p){return L_(p)});var n=e.inputs,r=A_(e,["inputs"]);if(n){t=[];for(var i=Ye(n),s;!(s=i()).done;){var o=s.value,a=bn({},o,{__proto__:qPe.prototype});a.map&&(a.map=bn({},a.map,{__proto__:jPe.prototype})),t.push(a)}}if(r.nodes&&(r.nodes=e.nodes.map(function(p){return L_(p,t)})),r.source){var l=r.source,f=l.inputId,d=A_(l,["inputId"]);r.source=d,f!=null&&(r.source.input=t[f])}if(r.type==="root")return new WPe(r);if(r.type==="decl")return new HPe(r);if(r.type==="rule")return new YPe(r);if(r.type==="comment")return new VPe(r);if(r.type==="atrule")return new GPe(r);throw new Error("Unknown node type: "+e.type)}var XPe=L_;L_.default=L_;var KPe=qN,kY=pT,ZPe=RY,JPe=ed,eL=zPe,QPe=dT,e$e=XPe,IY=XN,t$e=bY,OY=mT,MY=ZN,n$e=KN,r$e=gT,i$e=QN,s$e=xY,NY=JN,LY=$v,o$e=hT;function Dn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new eL(t)}Dn.plugin=function(t,n){var r=!1;function i(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
561https://evilmartians.com/chronicles/postcss-8-plugin-migration`),yE.LANG&&yE.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
562https://www.w3ctech.com/topic/2226`));var f=n.apply(void 0,[].concat(a));return f.postcssPlugin=t,f.postcssVersion=new eL().version,f}var s;return Object.defineProperty(i,"postcss",{get:function(){return s||(s=i()),s}}),i.process=function(o,a,l){return Dn([i(l)]).process(o,a)},i};Dn.stringify=QPe;Dn.parse=i$e;Dn.fromJSON=e$e;Dn.list=s$e;Dn.comment=function(e){return new OY(e)};Dn.atRule=function(e){return new MY(e)};Dn.decl=function(e){return new kY(e)};Dn.rule=function(e){return new NY(e)};Dn.root=function(e){return new LY(e)};Dn.document=function(e){return new IY(e)};Dn.CssSyntaxError=KPe;Dn.Declaration=kY;Dn.Container=JPe;Dn.Processor=eL;Dn.Document=IY;Dn.Comment=OY;Dn.Warning=t$e;Dn.AtRule=MY;Dn.Result=n$e;Dn.Input=r$e;Dn.Rule=NY;Dn.Root=LY;Dn.Node=o$e;ZPe.registerPostcss(Dn);var a$e=Dn;Dn.default=Dn;var yr=bDe(a$e);yr.stringify;yr.fromJSON;yr.plugin;yr.parse;yr.list;yr.document;yr.comment;yr.atRule;yr.rule;yr.decl;yr.root;yr.CssSyntaxError;yr.Declaration;yr.Container;yr.Processor;yr.Document;yr.Comment;yr.Warning;yr.AtRule;yr.Result;yr.Input;yr.Rule;yr.Root;yr.Node;var c$e=Object.defineProperty,l$e=function(e,t,n){return t in e?c$e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},no=function(e,t,n){return l$e(e,(typeof t>"u"?"undefined":Wt(t))!=="symbol"?t+"":t,n)};function u$e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f$e(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return wt(this,r)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var tL={exports:{}},lr=String,DY=function(){return{isColorSupported:!1,reset:lr,bold:lr,dim:lr,italic:lr,underline:lr,inverse:lr,hidden:lr,strikethrough:lr,black:lr,red:lr,green:lr,yellow:lr,blue:lr,magenta:lr,cyan:lr,white:lr,gray:lr,bgBlack:lr,bgRed:lr,bgGreen:lr,bgYellow:lr,bgBlue:lr,bgMagenta:lr,bgCyan:lr,bgWhite:lr}};tL.exports=DY();tL.exports.createColors=DY;var d$e=tL.exports,h$e={},p$e=Object.freeze(Object.defineProperty({__proto__:null,default:h$e},Symbol.toStringTag,{value:"Module"})),qr=f$e(p$e),mz=d$e,_z=qr,kI=(function(e){Hi(t,e);function t(r,i,s,o,a,l){var f;return f=e.call(this,r)||this,f.name="CssSyntaxError",f.reason=r,a&&(f.file=a),o&&(f.source=o),l&&(f.plugin=l),typeof i<"u"&&typeof s<"u"&&(typeof i=="number"?(f.line=i,f.column=s):(f.line=i.line,f.column=i.column,f.endLine=s.line,f.endColumn=s.column)),f.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(f,t),f}var n=t.prototype;return n.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},n.showSourceCode=function(i){var s=this;if(!this.source)return"";var o=this.source;i==null&&(i=mz.isColorSupported),_z&&i&&(o=_z(o));var a=o.split(/\r?\n/),l=Math.max(this.line-3,0),f=Math.min(this.line+2,a.length),d=String(f).length,p,m;if(i){var _=mz.createColors(!0),v=_.bold,E=_.gray,b=_.red;p=function(w){return v(b(w))},m=function(w){return E(w)}}else p=m=function(w){return w};return a.slice(l,f).map(function(w,T){var R=l+1+T,C=" "+(" "+R).slice(-d)+" | ";if(R===s.line){var k=m(C.replace(/\d/g," "))+w.slice(0,s.column-1).replace(/[^\t]/g," ");return p(">")+m(C)+w+`
563 `+k+p("^")}return" "+m(C)+w}).join(`
564`)},n.toString=function(){var i=this.showSourceCode();return i&&(i=`
565
566`+i+`
567`),this.name+": "+this.message+i},t})(bE(Error)),nL=kI;kI.default=kI;var fu={};fu.isClean=Symbol("isClean");fu.my=Symbol("my");var vz={after:`
568`,beforeClose:`
569`,beforeComment:`
570`,beforeDecl:`
571`,beforeOpen:" ",beforeRule:`
572`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function g$e(e){return e[0].toUpperCase()+e.slice(1)}var II=(function(){function e(n){this.builder=n}var t=e.prototype;return t.atrule=function(r,i){var s="@"+r.name,o=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName<"u"?s+=r.raws.afterName:o&&(s+=" "),r.nodes)this.block(r,s+o);else{var a=(r.raws.between||"")+(i?";":"");this.builder(s+o+a,r)}},t.beforeAfter=function(r,i){var s;r.type==="decl"?s=this.raw(r,null,"beforeDecl"):r.type==="comment"?s=this.raw(r,null,"beforeComment"):i==="before"?s=this.raw(r,null,"beforeRule"):s=this.raw(r,null,"beforeClose");for(var o=r.parent,a=0;o&&o.type!=="root";)a+=1,o=o.parent;if(s.includes(`
573`)){var l=this.raw(r,null,"indent");if(l.length)for(var f=0;f<a;f++)s+=l}return s},t.block=function(r,i){var s=this.raw(r,"between","beforeOpen");this.builder(i+s+"{",r,"start");var o;r.nodes&&r.nodes.length?(this.body(r),o=this.raw(r,"after")):o=this.raw(r,"after","emptyBody"),o&&this.builder(o),this.builder("}",r,"end")},t.body=function(r){for(var i=r.nodes.length-1;i>0&&r.nodes[i].type==="comment";)i-=1;for(var s=this.raw(r,"semicolon"),o=0;o<r.nodes.length;o++){var a=r.nodes[o],l=this.raw(a,"before");l&&this.builder(l),this.stringify(a,i!==o||s)}},t.comment=function(r){var i=this.raw(r,"left","commentLeft"),s=this.raw(r,"right","commentRight");this.builder("/*"+i+r.text+s+"*/",r)},t.decl=function(r,i){var s=this.raw(r,"between","colon"),o=r.prop+s+this.rawValue(r,"value");r.important&&(o+=r.raws.important||" !important"),i&&(o+=";"),this.builder(o,r)},t.document=function(r){this.body(r)},t.raw=function(r,i,s){var o;if(s||(s=i),i&&(o=r.raws[i],typeof o<"u"))return o;var a=r.parent;if(s==="before"&&(!a||a.type==="root"&&a.first===r||a&&a.type==="document"))return"";if(!a)return vz[s];var l=r.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[s]<"u")return l.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(r,s);var f="raw"+g$e(s);return this[f]?o=this[f](l,r):l.walk(function(d){if(o=d.raws[i],typeof o<"u")return!1}),typeof o>"u"&&(o=vz[s]),l.rawCache[s]=o,o},t.rawBeforeClose=function(r){var i;return r.walk(function(s){if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return i=s.raws.after,i.includes(`
574`)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i},t.rawBeforeComment=function(r,i){var s;return r.walkComments(function(o){if(typeof o.raws.before<"u")return s=o.raws.before,s.includes(`
575`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s},t.rawBeforeDecl=function(r,i){var s;return r.walkDecls(function(o){if(typeof o.raws.before<"u")return s=o.raws.before,s.includes(`
576`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(i,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s},t.rawBeforeOpen=function(r){var i;return r.walk(function(s){if(s.type!=="decl"&&(i=s.raws.between,typeof i<"u"))return!1}),i},t.rawBeforeRule=function(r){var i;return r.walk(function(s){if(s.nodes&&(s.parent!==r||r.first!==s)&&typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
577`)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i},t.rawColon=function(r){var i;return r.walkDecls(function(s){if(typeof s.raws.between<"u")return i=s.raws.between.replace(/[^\s:]/g,""),!1}),i},t.rawEmptyBody=function(r){var i;return r.walk(function(s){if(s.nodes&&s.nodes.length===0&&(i=s.raws.after,typeof i<"u"))return!1}),i},t.rawIndent=function(r){if(r.raws.indent)return r.raws.indent;var i;return r.walk(function(s){var o=s.parent;if(o&&o!==r&&o.parent&&o.parent===r&&typeof s.raws.before<"u"){var a=s.raws.before.split(`
578`);return i=a[a.length-1],i=i.replace(/\S/g,""),!1}}),i},t.rawSemicolon=function(r){var i;return r.walk(function(s){if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(i=s.raws.semicolon,typeof i<"u"))return!1}),i},t.rawValue=function(r,i){var s=r[i],o=r.raws[i];return o&&o.value===s?o.raw:s},t.root=function(r){this.body(r),r.raws.after&&this.builder(r.raws.after)},t.rule=function(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")},t.stringify=function(r,i){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,i)},e})(),PY=II;II.default=II;var m$e=PY;function OI(e,t){var n=new m$e(t);n.stringify(e)}var _T=OI;OI.default=OI;var Kb=fu.isClean,_$e=fu.my,v$e=nL,y$e=PY,b$e=_T;function MI(e,t){var n=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r!=="proxyCache"){var i=e[r],s=typeof i>"u"?"undefined":Wt(i);r==="parent"&&s==="object"?t&&(n[r]=t):r==="source"?n[r]=i:Array.isArray(i)?n[r]=i.map(function(o){return MI(o,n)}):(s==="object"&&i!==null&&(i=MI(i)),n[r]=i)}return n}var NI=(function(){function e(n){n===void 0&&(n={}),this.raws={},this[Kb]=!1,this[_$e]=!0;for(var r in n)if(r==="nodes"){this.nodes=[];for(var i=Ye(n[r]),s;!(s=i()).done;){var o=s.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[r]=n[r]}var t=e.prototype;return t.addToError=function(r){if(r.postcssNode=this,r.stack&&this.source&&/\n\s{4}at /.test(r.stack)){var i=this.source;r.stack=r.stack.replace(/\n\s{4}at /,"$&"+i.input.from+":"+i.start.line+":"+i.start.column+"$&")}return r},t.after=function(r){return this.parent.insertAfter(this,r),this},t.assign=function(r){r===void 0&&(r={});for(var i in r)this[i]=r[i];return this},t.before=function(r){return this.parent.insertBefore(this,r),this},t.cleanRaws=function(r){delete this.raws.before,delete this.raws.after,r||delete this.raws.between},t.clone=function(r){r===void 0&&(r={});var i=MI(this);for(var s in r)i[s]=r[s];return i},t.cloneAfter=function(r){r===void 0&&(r={});var i=this.clone(r);return this.parent.insertAfter(this,i),i},t.cloneBefore=function(r){r===void 0&&(r={});var i=this.clone(r);return this.parent.insertBefore(this,i),i},t.error=function(r,i){if(i===void 0&&(i={}),this.source){var s=this.rangeBy(i),o=s.end,a=s.start;return this.source.input.error(r,{column:a.column,line:a.line},{column:o.column,line:o.line},i)}return new v$e(r)},t.getProxyProcessor=function(){return{get:function(i,s){return s==="proxyOf"?i:s==="root"?function(){return i.root().toProxy()}:i[s]},set:function(i,s,o){return i[s]===o||(i[s]=o,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&i.markDirty()),!0}}},t.markDirty=function(){if(this[Kb]){this[Kb]=!1;for(var r=this;r=r.parent;)r[Kb]=!1}},t.next=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r+1]}},t.positionBy=function(r,i){var s=this.source.start;if(r.index)s=this.positionInside(r.index,i);else if(r.word){i=this.toString();var o=i.indexOf(r.word);o!==-1&&(s=this.positionInside(o,i))}return s},t.positionInside=function(r,i){for(var s=i||this.toString(),o=this.source.start.column,a=this.source.start.line,l=0;l<r;l++)s[l]===`
579`?(o=1,a+=1):o+=1;return{column:o,line:a}},t.prev=function(){if(this.parent){var r=this.parent.index(this);return this.parent.nodes[r-1]}},t.rangeBy=function(r){var i={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:i.column+1,line:i.line};if(r.word){var o=this.toString(),a=o.indexOf(r.word);a!==-1&&(i=this.positionInside(a,o),s=this.positionInside(a+r.word.length,o))}else r.start?i={column:r.start.column,line:r.start.line}:r.index&&(i=this.positionInside(r.index)),r.end?s={column:r.end.column,line:r.end.line}:typeof r.endIndex=="number"?s=this.positionInside(r.endIndex):r.index&&(s=this.positionInside(r.index+1));return(s.line<i.line||s.line===i.line&&s.column<=i.column)&&(s={column:i.column+1,line:i.line}),{end:s,start:i}},t.raw=function(r,i){var s=new y$e;return s.raw(this,r,i)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];if(this.parent){for(var o=this,a=!1,l=Ye(i),f;!(f=l()).done;){var d=f.value;d===this?a=!0:a?(this.parent.insertAfter(o,d),o=d):this.parent.insertBefore(o,d)}a||this.remove()}return this},t.root=function(){for(var r=this;r.parent&&r.parent.type!=="document";)r=r.parent;return r},t.toJSON=function(r,i){var s={},o=i==null;i=i||new Map;var a=0;for(var l in this)if(Object.prototype.hasOwnProperty.call(this,l)&&!(l==="parent"||l==="proxyCache")){var f=this[l];if(Array.isArray(f))s[l]=f.map(function(p){return(typeof p>"u"?"undefined":Wt(p))==="object"&&p.toJSON?p.toJSON(null,i):p});else if((typeof f>"u"?"undefined":Wt(f))==="object"&&f.toJSON)s[l]=f.toJSON(null,i);else if(l==="source"){var d=i.get(f.input);d==null&&(d=a,i.set(f.input,a),a++),s[l]={end:f.end,inputId:d,start:f.start}}else s[l]=f}return o&&(s.inputs=[].concat(i.keys()).map(function(p){return p.toJSON()})),s},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(r){r===void 0&&(r=b$e),r.stringify&&(r=r.stringify);var i="";return r(this,function(s){i+=s}),i},t.warn=function(r,i,s){var o={node:this};for(var a in s)o[a]=s[a];return r.warn(i,o)},Ri(e,[{key:"proxyOf",get:function(){return this}}]),e})(),vT=NI;NI.default=NI;var S$e=vT,LI=(function(e){Hi(t,e);function t(n){var r;return n&&typeof n.value<"u"&&typeof n.value!="string"&&(n=bn({},n,{value:String(n.value)})),r=e.call(this,n)||this,r.type="decl",r}return Ri(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),t})(S$e),yT=LI;LI.default=LI;var E$e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",w$e=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=E$e[Math.random()*64|0];return t},T$e={nanoid:w$e},yz=qr.SourceMapConsumer,bz=qr.SourceMapGenerator,x$e=qr.existsSync,C$e=qr.readFileSync,DA=qr.dirname,A$e=qr.join;function R$e(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var DI=(function(){function e(n,r){if(r.map!==!1){this.loadAnnotation(n),this.inline=this.startWith(this.annotation,"data:");var i=r.map?r.map.prev:void 0,s=this.loadMap(r.from,i);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=DA(this.mapFile)),s&&(this.text=s)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new yz(this.text)),this.consumerCache},t.decodeInline=function(r){var i=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(o.test(r)||a.test(r))return decodeURIComponent(r.substr(RegExp.lastMatch.length));if(i.test(r)||s.test(r))return R$e(r.substr(RegExp.lastMatch.length));var l=r.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)},t.getAnnotationURL=function(r){return r.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(r){return(typeof r>"u"?"undefined":Wt(r))!=="object"?!1:typeof r.mappings=="string"||typeof r._mappings=="string"||Array.isArray(r.sections)},t.loadAnnotation=function(r){var i=r.match(/\/\*\s*# sourceMappingURL=/gm);if(i){var s=r.lastIndexOf(i.pop()),o=r.indexOf("*/",s);s>-1&&o>-1&&(this.annotation=this.getAnnotationURL(r.substring(s,o)))}},t.loadFile=function(r){if(this.root=DA(r),x$e(r))return this.mapFile=r,C$e(r,"utf-8").toString().trim()},t.loadMap=function(r,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){var s=i(r);if(s){var o=this.loadFile(s);if(!o)throw new Error("Unable to load previous source map: "+s.toString());return o}}else{if(wt(i,yz))return bz.fromSourceMap(i).toString();if(wt(i,bz))return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return r&&(a=A$e(DA(r),a)),this.loadFile(a)}}},t.startWith=function(r,i){return r?r.substr(0,i.length)===i:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e})(),$Y=DI;DI.default=DI;var k$e=qr.SourceMapConsumer,I$e=qr.SourceMapGenerator,Sz=qr.fileURLToPath,Zb=qr.pathToFileURL,PI=qr.isAbsolute,$I=qr.resolve,O$e=T$e.nanoid,PA=qr,Ez=nL,M$e=$Y,$A=Symbol("fromOffsetCac
579he"),N$e=!!(k$e&&I$e),wz=!!($I&&PI),kE=(function(){function e(n,r){if(r===void 0&&(r={}),n===null||typeof n>"u"||(typeof n>"u"?"undefined":Wt(n))==="object"&&!n.toString)throw new Error("PostCSS received "+n+" instead of CSS string");if(this.css=n.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!wz||/^\w+:\/\//.test(r.from)||PI(r.from)?this.file=r.from:this.file=$I(r.from)),wz&&N$e){var i=new M$e(this.css,r);if(i.text){this.map=i;var s=i.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+O$e(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(r,i,s,o){o===void 0&&(o={});var a,l,f;if(i&&(typeof i>"u"?"undefined":Wt(i))==="object"){var d=i,p=s;if(typeof d.offset=="number"){var m=this.fromOffset(d.offset);i=m.line,s=m.col}else i=d.line,s=d.column;if(typeof p.offset=="number"){var _=this.fromOffset(p.offset);l=_.line,f=_.col}else l=p.line,f=p.column}else if(!s){var v=this.fromOffset(i);i=v.line,s=v.col}var E=this.origin(i,s,l,f);return E?a=new Ez(r,E.endLine===void 0?E.line:{column:E.column,line:E.line},E.endLine===void 0?E.column:{column:E.endColumn,line:E.endLine},E.source,E.file,o.plugin):a=new Ez(r,l===void 0?i:{column:s,line:i},l===void 0?s:{column:f,line:l},this.css,this.file,o.plugin),a.input={column:s,endColumn:f,endLine:l,line:i,source:this.css},this.file&&(Zb&&(a.input.url=Zb(this.file).toString()),a.input.file=this.file),a},t.fromOffset=function(r){var i,s;if(this[$A])s=this[$A];else{var o=this.css.split(`
580`);s=new Array(o.length);for(var a=0,l=0,f=o.length;l<f;l++)s[l]=a,a+=o[l].length+1;this[$A]=s}i=s[s.length-1];var d=0;if(r>=i)d=s.length-1;else for(var p=s.length-2,m;d<p;)if(m=d+(p-d>>1),r<s[m])p=m-1;else if(r>=s[m+1])d=m+1;else{d=m;break}return{col:r-s[d]+1,line:d+1}},t.mapResolve=function(r){return/^\w+:\/\//.test(r)?r:$I(this.map.consumer().sourceRoot||this.map.root||".",r)},t.origin=function(r,i,s,o){if(!this.map)return!1;var a=this.map.consumer(),l=a.originalPositionFor({column:i,line:r});if(!l.source)return!1;var f;typeof s=="number"&&(f=a.originalPositionFor({column:o,line:s}));var d;PI(l.source)?d=Zb(l.source):d=new URL(l.source,this.map.consumer().sourceRoot||Zb(this.map.mapFile));var p={column:l.column,endColumn:f&&f.column,endLine:f&&f.line,line:l.line,url:d.toString()};if(d.protocol==="file:")if(Sz)p.file=Sz(d);else throw new Error("file: protocol is not available in this PostCSS build");var m=a.sourceContentFor(l.source);return m&&(p.source=m),p},t.toJSON=function(){for(var r={},i=0,s=["hasBOM","css","file","id"];i<s.length;i++){var o=s[i];this[o]!=null&&(r[o]=this[o])}return this.map&&(r.map=bn({},this.map),r.map.consumerCache&&(r.map.consumerCache=void 0)),r},Ri(e,[{key:"from",get:function(){return this.file||this.id}}]),e})(),bT=kE;kE.default=kE;PA&&PA.registerInput&&PA.registerInput(kE);var FY=qr.SourceMapConsumer,o0=qr.SourceMapGenerator,a0=qr.dirname,UY=qr.relative,BY=qr.resolve,zY=qr.sep,Tz=qr.pathToFileURL,L$e=bT,D$e=!!(FY&&o0),P$e=!!(a0&&BY&&UY&&zY),$$e=(function(){function e(n,r,i,s){this.stringify=n,this.mapOpts=i.map||{},this.root=r,this.opts=i,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var r;this.isInline()?r="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?r=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?r=this.mapOpts.annotation(this.opts.to,this.root):r=this.outputFile()+".map";var i=`
581`;this.css.includes(`\r
582`)&&(i=`\r
583`),this.css+=i+"/*# sourceMappingURL="+r+" */"},t.applyPrevMaps=function(){for(var r=Ye(this.previous()),i;!(i=r()).done;){var s=i.value,o=this.toUrl(this.path(s.file)),a=s.root||a0(s.file),l=void 0;this.mapOpts.sourcesContent===!1?(l=new FY(s.text),l.sourcesContent&&(l.sourcesContent=null)):l=s.consumer(),this.map.applySourceMap(l,o,this.toUrl(this.path(a)))}},t.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var r,i=this.root.nodes.length-1;i>=0;i--)r=this.root.nodes[i],r.type==="comment"&&r.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(i);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),P$e&&D$e&&this.isMap())return this.generateMap();var r="";return this.stringify(this.root,function(i){r+=i}),[r]},t.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var r=this.previous()[0].consumer();r.file=this.outputFile(),this.map=o0.fromSourceMap(r,{ignoreInvalidMapping:!0})}else this.map=new o0({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var r=this;this.css="",this.map=new o0({file:this.outputFile(),ignoreInvalidMapping:!0});var i=1,s=1,o="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},l,f;this.stringify(this.root,function(d,p,m){if(r.css+=d,p&&m!=="end"&&(a.generated.line=i,a.generated.column=s-1,p.source&&p.source.start?(a.source=r.sourcePath(p),a.original.line=p.source.start.line,a.original.column=p.source.start.column-1,r.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,r.map.addMapping(a))),l=d.match(/\n/g),l?(i+=l.length,f=d.lastIndexOf(`
584`),s=d.length-f):s+=d.length,p&&m!=="start"){var _=p.parent||{raws:{}}
vendor: 4,434 bytes, line 584
584,v=p.type==="decl"||p.type==="atrule"&&!p.nodes;(!v||p!==_.last||_.raws.semicolon)&&(p.source&&p.source.end?(a.source=r.sourcePath(p),a.original.line=p.source.end.line,a.original.column=p.source.end.column-1,a.generated.line=i,a.generated.column=s-2,r.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=i,a.generated.column=s-1,r.map.addMapping(a)))}})},t.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(r){return r.annotation}):!0},t.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var r=this.mapOpts.annotation;return typeof r<"u"&&r!==!0?!1:this.previous().length?this.previous().some(function(i){return i.inline}):!0},t.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(r){return r.withContent()}):!0},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(r){if(this.mapOpts.absolute||r.charCodeAt(0)===60||/^\w+:\/\//.test(r))return r;var i=this.memoizedPaths.get(r);if(i)return i;var s=this.opts.to?a0(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=a0(BY(s,this.mapOpts.annotation)));var o=UY(s,r);return this.memoizedPaths.set(r,o),o},t.previous=function(){var r=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(s){if(s.source&&s.source.input.map){var o=s.source.input.map;r.previousMaps.includes(o)||r.previousMaps.push(o)}});else{var i=new L$e(this.originalCSS,this.opts);i.map&&this.previousMaps.push(i.map)}return this.previousMaps},t.setSourcesContent=function(){var r=this,i={};if(this.root)this.root.walk(function(o){if(o.source){var a=o.source.input.from;if(a&&!i[a]){i[a]=!0;var l=r.usesFileUrls?r.toFileUrl(a):r.toUrl(r.path(a));r.map.setSourceContent(l,o.source.input.css)}}});else if(this.css){var s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}},t.sourcePath=function(r){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(r.source.input.from):this.toUrl(this.path(r.source.input.from))},t.toBase64=function(r){return Buffer?Buffer.from(r).toString("base64"):window.btoa(unescape(encodeURIComponent(r)))},t.toFileUrl=function(r){var i=this.memoizedFileURLs.get(r);if(i)return i;if(Tz){var s=Tz(r).toString();return this.memoizedFileURLs.set(r,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(r){var i=this.memoizedURLs.get(r);if(i)return i;zY==="\\"&&(r=r.replace(/\\/g,"/"));var s=encodeURI(r).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(r,s),s},e})(),HY=$$e,F$e=vT,FI=(function(e){Hi(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type="comment",r}return t})(F$e),ST=FI;FI.default=FI;var jY=fu.isClean,VY=fu.my,GY=yT,qY=ST,U$e=vT,WY,rL,iL,YY;function XY(e){return e.map(function(t){return t.nodes&&(t.nodes=XY(t.nodes)),delete t.source,t})}function KY(e){if(e[jY]=!1,e.proxyOf.nodes)for(var t=Ye(e.proxyOf.nodes),n;!(n=t()).done;){var r=n.value;KY(r)}}var Oc=(function(e){Hi(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.append=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];for(var a=Ye(s),l;!(l=a()).done;)for(var f=l.value,d=this.normalize(f,this.last),p=Ye(d),m;!(m=p()).done;){var _=m.value;this.proxyOf.nodes.push(_)}return this.markDirty(),this},n.cleanRaws=function(i){if(e.prototype.cleanRaws.call(this,i),this.nodes)for(var s=Ye(this.nodes),o;!(o=s()).done;){var a=o.value;a.cleanRaws(i)}},n.each=function(i){if(this.proxyOf.nodes){for(var s=this.getIterator(),o,a;this.indexes[s]<this.proxyOf.nodes.length&&(o=this.indexes[s],a=i(this.proxyOf.nodes[o],o),a!==!1);)this.indexes[s]+=1;return delete this.indexes[s],a}},n.every=function(i){return this.nodes.every(i)},n.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var i=this.lastEach;return this.indexes[i]=0,i},n.getProxyProcessor=function(){return{get:function(s,o){return o==="proxyOf"?s:s[o]?o==="each"||typeof o=="str
584ing"&&o.startsWith("walk")?function(){for(var a=arguments.length,l=new Array(a),f=0;f<a;f++)l[f]=arguments[f];var d;return(d=s)[o].apply(d,[].concat(l.map(function(p){return typeof p=="function"?function(m,_){return p(m.toProxy(),_)}:p})))}:o==="every"||o==="some"?function(a){return s[o](function(l){for(var f=arguments.length,d=new Array(f>1?f-1:0),p=1;p<f;p++)d[p-1]=arguments[p];return a.apply(void 0,[].concat([l.toProxy()],d))})}:o==="root"?function(){return s.root().toProxy()}:o==="nodes"?s.nodes.map(function(a){return a.toProxy()}):o==="first"||o==="last"?s[o].toProxy():s[o]:s[o]},set:function(s,o,a){return s[o]===a||(s[o]=a,(o==="name"||o==="params"||o==="selector")&&s.markDirty()),!0}}},n.index=function(i){return typeof i=="number"?i:(i.proxyOf&&(i=i.proxyOf),this.proxyOf.nodes.indexOf(i))},n.insertAfter=function(i,s){var o=this.index(i),a=this.normalize(s,this.proxyOf.nodes[o]).reverse();o=this.index(i);for(var l=Ye(a),f;!(f=l()).done;){var d=f.value;this.proxyOf.nodes.splice(o+1,0,d)}var p;for(var m in this.indexes)p=this.indexes[m],o<p&&(this.indexes[m]=p+a.length);return this.markDirty(),this},n.insertBefore=function(i,s){var o=this.index(i),a=o===0?"prepend":!1,l=this.normalize(s,this.proxyOf.nodes[o],a).reverse();o=this.index(i);for(var f=Ye(l),d;!(d=f()).done;){var p=d.value;this.proxyOf.nodes.splice(o,0,p)}var m;for(var _ in this.indexes)m=this.indexes[_],o<=m&&(this.indexes[_]=m+l.length);return this.markDirty(),this},n.normalize=function(i,s){var o=this;if(typeof i=="string")i=XY(WY(i).nodes);else if(typeof i>"u")i=[];else if(Array.isArray(i)){i=i.slice(0);for(var a=Ye(i),l;!(l=a()).done;){var f=l.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(i.type==="root"&&this.type!=="document"){i=i.nodes.slice(0);for(var d=Ye(i),p;!(p=d()).done;){var m=p.value;m.parent&&m.parent.removeChild(m,"ignore")}}else if(i.type)i=[i];else if(i.prop){if(typeof i.value>"u")throw new Error("Value field is missed in node creation");typeof i.value!="string"&&(i.value=String(i.value)),i=[new GY(i)]}else if(i.selector)i=[new rL(i)];else if(i.name)i=[new iL(i)];else if(i.text)i=[new qY(i)];else throw new Error("Unknown node type in node creation");var _=i.map(function(v){return v[VY]||t.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[jY]&&KY(v),typeof v.raws.before>"u"&&s&&typeof s.raws.before<"u"&&(v.raws.before=s.raws.before.replace(/\S/g,"")),v.parent=o.proxyOf,v});return _},n.prepend=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];s=s.reverse();for(var a=Ye(s),l;!(l=a()).done;){for(var f=l.value,d=this.normalize(f,this.first,"prepend").reverse(),p=Ye(d),m;!(m=p()).done;){var _=m.value;this.proxyOf.nodes.unshift(_)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+d.length}return this.markDirty(),this},n.push=function(i){return i.parent=this,this.proxyOf.nodes.push(i),this},n.removeAll=function(){for(var i=Ye(this.proxyOf.nodes),s;!(s=i()).done;){var o=s.value;o.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},n.removeChild=function(i){i=this.index(i),this.proxyOf.nodes[i].parent=void 0,this.proxyOf.nodes.splice(i,1);var s;for(var o in this.indexes)s=this.indexes[o],s>=i&&(this.indexes[o]=s-1);return this.markDirty(),this},n.replaceValues=function(i,s,o){return o||(o=s,s={}),this.walkDecls(function(a){s.props&&!s.props.includes(a.prop)||s.fast&&!a.value.includes(s.fast)||(a.value=a.value.replace(i,o))}),this.markDirty(),this},n.some=function(i){return this.nodes.some(i)},n.walk=function(i){return this.each(function(s,o){var a;try{a=i(s,o)}catch(l){throw s.addToError(l)}return a!==!1&&s.walk&&(a=s.walk(i)),a})},n.walkAtRules=function(i,s){return s?wt(i,RegExp)?this.walk(function(o,a){if(o.type==="atrule"&&i.test(o.name))return s(o,a)}):this.walk(function(o,a){if(o.type==="atrule"&&o.name===i)return s(o,a)}):(s=i,this.walk(function(o,a){if(o.type==="atrule")return s(o,a)}))},n.walkComments=function(i){return this.walk(function(s,o){if(s.type==="comment")return i(s,o)})},n.walkDecls=function(i,s){return s?wt(i,RegExp)?this.walk(function(o,a){if(o.type==="decl"&&i.test(o.prop))return s(o,a)}):this.walk(function(o,a){if(o.type==="decl"&&o.prop===i)return s(o,a)}):(s=i,this.walk(function(o,a){if(o.type==="decl")return s(o,a)}))},n.walkRules=function(i,s){return s?wt(i,RegExp)?this.walk(function(o,a){if(o.type==="rule"&&i.test(o.selector))return s(o,a)}):this.walk(function(o,a){if(o.type==="rule"&&o.selector===i)return s(o,a)}):(s=i,this.walk(function(o,a){if(o.type==="rule")return s(o,a)}))},Ri(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t})(U$e);Oc.registerParse=function(e){WY=e};Oc.registerRule=function(e){rL=e};Oc.registerAtRule=function(e){iL=e};Oc.registerRoot=function(e){YY=e};var td=Oc;Oc.default=Oc;Oc.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,iL.prototype):e.type==="rule"?Object.setPrototypeOf(e,rL.prototype):e.type==="decl"?Object.setPrototypeOf(e,GY.prototype):e.type==="comment"?Object.setPrototypeOf(e,qY.prototype):e.type==="root"&&Object.setPrototypeOf(e,YY.prototype),e[VY]=!0,e.nodes&&e.nodes.forEac
vendor: 30,633 bytes, lines 584-587
584h(function(t){Oc.rebuild(t)})};var B$e=td,ZY,JY,D_=(function(e){Hi(t,e);function t(r){var i;return i=e.call(this,bn({type:"document"},r))||this,i.nodes||(i.nodes=[]),i}var n=t.prototype;return n.toResult=function(i){i===void 0&&(i={});var s=new ZY(new JY,this,i);return s.stringify()},t})(B$e);D_.registerLazyResult=function(e){ZY=e};D_.registerProcessor=function(e){JY=e};var sL=D_;D_.default=D_;var UI=(function(){function e(n,r){if(r===void 0&&(r={}),this.type="warning",this.text=n,r.node&&r.node.source){var i=r.node.rangeBy(r);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(var s in r)this[s]=r[s]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e})(),QY=UI;UI.default=UI;var z$e=QY,BI=(function(){function e(n,r,i){this.processor=n,this.messages=[],this.root=r,this.opts=i,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(r,i){i===void 0&&(i={}),i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);var s=new z$e(r,i);return this.messages.push(s),s},t.warnings=function(){return this.messages.filter(function(r){return r.type==="warning"})},Ri(e,[{key:"content",get:function(){return this.css}}]),e})(),oL=BI;BI.default=BI;var FA=39,xz=34,Jb=92,Cz=47,Qb=10,am=32,eS=12,tS=9,nS=13,H$e=91,j$e=93,V$e=40,G$e=41,q$e=123,W$e=125,Y$e=59,X$e=42,K$e=58,Z$e=64,rS=/[\t\n\f\r "#'()/;[\\\]{}]/g,iS=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,J$e=/.[\r\n"'(/\\]/,Az=/[\da-f]/i,Q$e=function(t,n){n===void 0&&(n={});var r=t.css.valueOf(),i=n.ignoreErrors,s,o,a,l,f,d,p,m,_,v,E=r.length,b=0,w=[],T=[];function R(){return b}function C($){throw t.error("Unclosed "+$,b)}function k(){return T.length===0&&b>=E}function M($){if(T.length)return T.pop();if(!(b>=E)){var Q=$?$.ignoreUnclosed:!1;switch(s=r.charCodeAt(b),s){case Qb:case am:case tS:case nS:case eS:{o=b;do o+=1,s=r.charCodeAt(o);while(s===am||s===Qb||s===tS||s===nS||s===eS);v=["space",r.slice(b,o)],b=o-1;break}case H$e:case j$e:case q$e:case W$e:case K$e:case Y$e:case G$e:{var V=String.fromCharCode(s);v=[V,V,b];break}case V$e:{if(m=w.length?w.pop()[1]:"",_=r.charCodeAt(b+1),m==="url"&&_!==FA&&_!==xz&&_!==am&&_!==Qb&&_!==tS&&_!==eS&&_!==nS){o=b;do{if(d=!1,o=r.indexOf(")",o+1),o===-1)if(i||Q){o=b;break}else C("bracket");for(p=o;r.charCodeAt(p-1)===Jb;)p-=1,d=!d}while(d);v=["brackets",r.slice(b,o+1),b,o],b=o}else o=r.indexOf(")",b+1),l=r.slice(b,o+1),o===-1||J$e.test(l)?v=["(","(",b]:(v=["brackets",l,b,o],b=o);break}case FA:case xz:{a=s===FA?"'":'"',o=b;do{if(d=!1,o=r.indexOf(a,o+1),o===-1)if(i||Q){o=b+1;break}else C("string");for(p=o;r.charCodeAt(p-1)===Jb;)p-=1,d=!d}while(d);v=["string",r.slice(b,o+1),b,o],b=o;break}case Z$e:{rS.lastIndex=b+1,rS.test(r),rS.lastIndex===0?o=r.length-1:o=rS.lastIndex-2,v=["at-word",r.slice(b,o+1),b,o],b=o;break}case Jb:{for(o=b,f=!0;r.charCodeAt(o+1)===Jb;)o+=1,f=!f;if(s=r.charCodeAt(o+1),f&&s!==Cz&&s!==am&&s!==Qb&&s!==tS&&s!==nS&&s!==eS&&(o+=1,Az.test(r.charAt(o)))){for(;Az.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===am&&(o+=1)}v=["word",r.slice(b,o+1),b,o],b=o;break}default:{s===Cz&&r.charCodeAt(b+1)===X$e?(o=r.indexOf("*/",b+2)+1,o===0&&(i||Q?o=r.length:C("comment")),v=["comment",r.slice(b,o+1),b,o],b=o):(iS.lastIndex=b+1,iS.test(r),iS.lastIndex===0?o=r.length-1:o=iS.lastIndex-2,v=["word",r.slice(b,o+1),b,o],w.push(v),b=o);break}}return b++,v}}function I($){T.push($)}return{back:I,endOfFile:k,nextToken:M,position:R}},eX=td,IE=(function(e){Hi(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type="atrule",i}var n=t.prototype;return n.append=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.append).call.apply(a,[].concat([this],s))},n.prepend=function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.prepend).call.apply(a,[].concat([this],s))},t})(eX),aL=IE;IE.default=IE;eX.registerAtRule(IE);var tX=td,nX,rX,fp=(function(e){Hi(t,e);function t(r){var i;return i=e.call(this,r)||this,i.type="root",i.nodes||(i.nodes=[]),i}var n=t.prototype;return n.normalize=function(i,s,o){var a=e.prototype.normalize.call(this,i);if(s){if(o==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(var l=Ye(a),f;!(f=l()).done;){var d=f.value;d.raws.before=s.raws.before}}return a},n.removeChild=function(i,s){var o=this.index(i);return!s&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),e.prototype.removeChild.call(this,i)},n.toResult=function(i){i===void 0&&(i={});var s=new nX(new rX,this,i);return s.stringify()},t})(tX);fp.registerLazyResult=function(e){nX=e};fp.registerProcessor=function(e){rX=e};var Fv=fp;fp.default=fp;tX.registerRoot(fp);var P_={comma:function(t){return P_.split(t,[","],!0)},space:function(t){var n=[" ",`
585`,"	"];return P_.split(t,n)},split:function(t,n,r){for(var i=[],s="",o=!1,a=0,l=!1,f="",d=!1,p=Ye(t),m;!(m=p()).done;){var _=m.value;d?d=!1:_==="\\"?d=!0:l?_===f&&(l=!1):_==='"'||_==="'"?(l=!0,f=_):_==="("?a+=1:_===")"?a>0&&(a-=1):a===0&&n.includes(_)&&(o=!0),o?(s!==""&&i.push(s.trim()),s="",o=!1):s+=_}return(r||s!=="")&&i.push(s.trim()),i}},iX=P_;P_.default=P_;var sX=td,eFe=iX,OE=(function(e){Hi(t,e);function t(n){var r;return r=e.call(this,n)||this,r.type="rule",r.nodes||(r.nodes=[]),r}return Ri(t,[{key:"selectors",get:function(){return eFe.comma(this.selector)},set:function(r){var i=this.selector?this.selector.match(/,\s*/):null,s=i?i[0]:","+this.raw("between","beforeOpen");this.selector=r.join(s)}}]),t})(sX),cL=OE;OE.default=OE;sX.registerRule(OE);var tFe=yT,nFe=Q$e,rFe=ST,iFe=aL,sFe=Fv,Rz=cL,kz={empty:!0,space:!0};function oFe(e){for(var t=e.length-1;t>=0;t--){var n=e[t],r=n[3]||n[2];if(r)return r}}var aFe=(function(){function e(n){this.input=n,this.root=new sFe,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(r){var i=new iFe;i.name=r[1].slice(1),i.name===""&&this.unnamedAtrule(i,r),this.init(i,r[2]);for(var s,o,a,l=!1,f=!1,d=[],p=[];!this.tokenizer.endOfFile();){if(r=this.tokenizer.nextToken(),s=r[0],s==="("||s==="["?p.push(s==="("?")":"]"):s==="{"&&p.length>0?p.push("}"):s===p[p.length-1]&&p.pop(),p.length===0)if(s===";"){i.source.end=this.getPosition(r[2]),i.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){f=!0;break}else if(s==="}"){if(d.length>0){for(a=d.length-1,o=d[a];o&&o[0]==="space";)o=d[--a];o&&(i.source.end=this.getPosition(o[3]||o[2]),i.source.end.offset++)}this.end(r);break}else d.push(r);else d.push(r);if(this.tokenizer.endOfFile()){l=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(d),d.length?(i.raws.afterName=this.spacesAndCommentsFromStart(d),this.raw(i,"params",d),l&&(r=d[d.length-1],i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),f&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(r){var i=this.colon(r);if(i!==!1){for(var s=0,o,a=i-1;a>=0&&(o=r[a],!(o[0]!=="space"&&(s+=1,s===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},t.colon=function(r){for(var i=0,s,o,a,l=Ye(r.entries()),f;!(f=l()).done;){var d=f.value,p=d[0],m=d[1];if(s=m,o=s[0],o==="("&&(i+=1),o===")"&&(i-=1),i===0&&o===":")if(!a)this.doubleColon(s);else{if(a[0]==="word"&&a[1]==="progid")continue;return p}a=s}return!1},t.comment=function(r){var i=new rFe;this.init(i,r[2]),i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++;var s=r[1].slice(2,-2);if(/^\s*$/.test(s))i.text="",i.raws.left=s,i.raws.right="";else{var o=s.match(/^(\s*)([^]*\S)(\s*)$/);i.text=o[2],i.raws.left=o[1],i.raws.right=o[3]}},t.createTokenizer=function(){this.tokenizer=nFe(this.input)},t.decl=function(r,i){var s=new tFe;this.init(s,r[0][2]);var o=r[r.length-1];for(o[0]===";"&&(this.semicolon=!0,r.pop()),s.source.end=this.getPosition(o[3]||o[2]||oFe(r)),s.source.end.offset++;r[0][0]!=="word";)r.length===1&&this.unknownWord(r),s.raws.before+=r.shift()[1];for(s.source.start=this.getPosition(r[0][2]),s.prop="";r.length;){var a=r[0][0];if(a===":"||a==="space"||a==="comment")break;s.prop+=r.shift()[1]}s.raws.between="";for(var l;r.length;)if(l=r.shift(),l[0]===":"){s.raws.between+=l[1];break}else l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]),s.raws.between+=l[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));for(var f=[],d;r.length&&(d=r[0][0],!(d!=="space"&&d!=="comment"));)f.push(r.shift());this.precheckMissedSemicolon(r);for(var p=r.length-1;p>=0;p--){if(l=r[p],l[1].toLowerCase()==="!important"){s.important=!0;var m=this.stringFrom(r,p);m=this.spacesFromEnd(r)+m,m!==" !important"&&(s.raws.important=m);break}else if(l[1].toLowerCase()==="important"){for(var _=r.slice(0),v="",E=p;E>0;E--){var b=_[E][0];if(v.trim().indexOf("!")===0&&b!=="space")break;v=_.pop()[1]+v}v.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=v,r=_)}if(l[0]!=="space"&&l[0]!=="comment")break}var w=r.some(function(T){return T[0]!=="space"&&T[0]!=="comment"});w&&(s.raws.between+=f.map(function(T){return T[1]}).join(""),f=[]),this.raw(s,"value",f.concat(r),i),s.value.includes(":")&&!i&&this.checkMissedSemicolon(r)},t.doubleColon=function(r){throw this.input.error("Double colon",{offset:r[2]},{offset:r[2]+r[1].length})},t.emptyRule=function(r){var i=new Rz;this.init(i,r[2]),i.selector="",i.raws.between="",this.current=i},t.end=function(r){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(r[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(r)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(r){if(this.spaces+=r[1],this.current.nodes){var i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(r){var i=this.input.fromOffset(r);return{column:i.col,line:i.line,offset:r}},t.init=function(r,i){this.current.push(r),r.source={input:this.input,start:this.getPosition(i)},r.raws.before=this.spaces,this.spaces="",r.type!=="comment"&&(this.semicolon=!1)},t.other=function(r){for(var i=!1,s=null,o=!1,a=null,l=[],f=r[1].startsWith("--"),d=[],p=r;p;){if(s=p[0],d.push(p),s==="("||s==="[")a||(a=p),l.push(s==="("?")":"]");else if(f&&o&&s==="{")a||(a=p),l.push("}");else if(l.length===0)if(s===";")if(o){this.decl(d,f);return}else break;else if(s==="{"){this.rule(d);return}else if(s==="}"){this.tokenizer.back(d.pop()),i=!0;break}else s===":"&&(o=!0);else s===l[l.length-1]&&(l.pop(),l.length===0&&(a=null));p=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),l.length>0&&this.unclosedBracket(a),i&&o){if(!f)for(;d.length&&(p=d[d.length-1][0],!(p!=="space"&&p!=="comment"));)this.tokenizer.back(d.pop());this.decl(d,f)}else this.unknownWord(d)},t.parse=function(){for(var r;!this.tokenizer.endOfFile();)switch(r=this.tokenizer.nextToken(),r[0]){case"space":this.spaces+=r[1];break;case";":this.freeSemicolon(r);break;case"}":this.end(r);break;case"comment":this.comment(r);break;case"at-word":this.atrule(r);break;case"{":this.emptyRule(r);break;default:this.other(r);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(r,i,s,o){for(var a,l,f=s.length,d="",p=!0,m,_,v=0;v<f;v+=1)a=s[v],l=a[0],l==="space"&&v===f-1&&!o?p=!1:l==="comment"?(_=s[v-1]?s[v-1][0]:"empty",m=s[v+1]?s[v+1][0]:"empty",!kz[_]&&!kz[m]?d.slice(-1)===","?p=!1:d+=a[1]:p=!1):d+=a[1];if(!p){var E=s.reduce(function(b,w){return b+w[1]},"");r.raws[i]={raw:E,value:d}}r[i]=d},t.rule=function(r){r.pop();var i=new Rz;this.init(i,r[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(r),this.raw(i,"selector",r),this.current=i},t.spacesAndCommentsFromEnd=function(r){for(var i,s="";r.length&&(i=r[r.length-1][0],!(i!=="space"&&i!=="comment"));)s=r.pop()[1]+s;return s},t.spacesAndCommentsFromStart=function(r){for(var i,s="";r.length&&(i=r[0][0],!(i!=="space"&&i!=="comment"));)s+=r.shift()[1];return s},t.spacesFromEnd=function(r){for(var i,s="";r.length&&(i=r[r.length-1][0],i==="space");)s=r.pop()[1]+s;return s},t.stringFrom=function(r,i){for(var s="",o=i;o<r.length;o++)s+=r[o][1];return r.splice(i,r.length-i),s},t.unclosedBlock=function(){var r=this.current.source.start;throw this.input.error("Unclosed block",r.line,r.column)},t.unclosedBracket=function(r){throw this.input.error("Unclosed bracket",{offset:r[2]},{offset:r[2]+1})},t.unexpectedClose=function(r){throw this.input.error("Unexpected }",{offset:r[2]},{offset:r[2]+1})},t.unknownWord=function(r){throw this.input.error("Unknown word",{offset:r[0][2]},{offset:r[0][2]+r[0][1].length})},t.unnamedAtrule=function(r,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})},e})(),cFe=aFe,lFe=td,uFe=cFe,fFe=bT;function ME(e,t){var n=new fFe(e,t),r=new uFe(n);try{r.parse()}catch(i){throw i}return r.root}var lL=ME;ME.default=ME;lFe.registerParse(ME);var na=fu.isClean,dFe=fu.my,hFe=HY,pFe=_T,gFe=td,mFe=sL,Iz=oL,_Fe=lL,vFe=Fv,yFe={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},bFe={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},SFe={Once:!0,postcssPlugin:!0,prepare:!0},dp=0;function cm(e){return(typeof e>"u"?"undefined":Wt(e))==="object"&&typeof e.then=="function"}function oX(e){var t=!1,n=yFe[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,dp,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,dp,n+"Exit"]:[n,n+"Exit"]}function Oz(e){var t;return e.type==="document"?t=["Document",dp,"DocumentExit"]:e.type==="root"?t=["Root",dp,"RootExit"]:t=oX(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function zI(e){return e[na]=!1,e.nodes&&e.nodes.forEach(function(t){return zI(t)}),e}var HI={},hp=(function(){function e(n,r,i){var s=this;this.stringified=!1,this.processed=!1;var o;if((typeof r>"u"?"undefined":Wt(r))==="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=zI(r);else if(wt(r,e)||wt(r,Iz))o=zI(r.root),r.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{var a=_Fe;i.syntax&&(a=i.syntax.parse),i.parser&&(a=i.parser),a.parse&&(a=a.parse);try{o=a(r,i)}catch(l){this.processed=!0,this.error=l}o&&!o[dFe]&&gFe.rebuild(o)}this.result=new Iz(n,o,i),this.helpers=bn({},HI,{postcss:HI,result:this.result}),this.plugins=this.processor.plugins.map(function(l){return(typeof l>"u"?"undefined":Wt(l))==="object"&&l.prepare?bn({},l,l.prepare(s.result)):l})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(r,i){var s=this.result.lastPlugin;try{if(i&&i.addToError(r),this.error=r,r.name==="CssSyntaxError"&&!r.plugin)r.plugin=s.postcssPlugin,r.setMessage();else if(s.postcssVersion)var o,a,l,f,d}catch(p){console&&console.error&&console.error(p)}return r},t.prepareVisitors=function(){var r=this;this.listeners={};for(var i=function(d,p,m){r.listeners[p]||(r.listeners[p]=[]),r.listeners[p].push([d,m])},s=Ye(this.plugins),o;!(o=s()).done;){var a=o.value;if((typeof a>"u"?"undefined":Wt(a))==="object")for(var l in a){if(!bFe[l]&&/^[A-Z]/.test(l))throw new Error("Unknown event "+l+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!SFe[l])if(Wt(a[l])==="object")for(var f in a[l])f==="*"?i(a,l,a[l][f]):i(a,l+"-"+f.toLowerCase(),a[l][f]);else typeof a[l]=="function"&&i(a,l,a[l])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var r=this;return HN(function(){var i,s,o,a,l,f,d,p,m,_,v,E;return k_(this,function(b){switch(b.label){case 0:r.plugin=0,i=0,b.label=1;case 1:if(!(i<r.plugins.length))return[3,6];if(s=r.plugins[i],o=r.runOnRoot(s),!cm(o))return[3,5];b.label=2;case 2:return b.trys.push([2,4,,5]),[4,o];case 3:return b.sent(),[3,5];case 4:throw a=b.sent(),r.handleError(a);case 5:return i++,[3,1];case 6:if(r.prepareVisitors(),!r.hasListener)return[3,18];l=r.result.root,b.label=7;case 7:if(l[na])return[3,14];l[na]=!0,f=[Oz(l)],b.label=8;case 8:if(!(f.length>0))return[3,13];if(d=r.visitTick(f),!cm(d))return[3,12];b.label=9;case 9:return b.trys.push([9,11,,12]),[4,d];case 10:return b.sent(),[3,12];case 11:throw p=b.sent(),m=f[f.length-1].node,r.handleError(p,m);case 12:return[3,8];case 13:return[3,7];case 14:if(!r.listeners.OnceExit)return[3,18];_=function(){var w,T,R,C,k;return k_(this,function(M){switch(M.label){case 0:w=E.value,T=w[0],R=w[1],r.result.lastPlugin=T,M.label=1;case 1:return M.trys.push([1,6,,7]),l.type!=="document"?[3,3]:(C=l.nodes.map(function(I){return R(I,r.helpers)}),[4,Promise.all(C)]);case 2:return M.sent(),[3,5];case 3:return[4,R(l,r.helpers)];case 4:M.sent(),M.label=5;case 5:return[3,7];case 6:throw k=M.sent(),r.handleError(k);case 7:return[2]}})},v=Ye(r.listeners.OnceExit),b.label=15;case 15:return(E=v()).done?[3,18]:[5,qW(_())];case 16:b.sent(),b.label=17;case 17:return[3,15];case 18:return r.processed=!0,[2,r.stringify()]}})})()},t.runOnRoot=function(r){var i=this;this.result.lastPlugin=r;try{if((typeof r>"u"?"undefined":Wt(r))==="object"&&r.Once){if(this.result.root.type==="document"){var s=this.result.root.nodes.map(function(o){return r.Once(o,i.helpers)});return cm(s[0])?Promise.all(s):s}return r.Once(this.result.root,this.helpers)}else if(typeof r=="function")return r(this.result.root,this.result)}catch(o){throw this.handleError(o)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var r=this.result.opts,i=pFe;r.syntax&&(i=r.syntax.stringify),r.stringifier&&(i=r.stringifier),i.stringify&&(i=i.stringify);var s=new hFe(i,this.result.root,this.result.opts),o=s.generate();return this.result.css=o[0],this.result.map=o[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var r=Ye(this.plugins),i;!(i=r()).done;){var s=i.value,o=this.runOnRoot(s);if(cm(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[na];)a[na]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var l=Ye(a.nodes),f;!(f=l()).done;){var d=f.value;this.visitSync(this.listeners.OnceExit,d)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},t.then=function(r,i){return this.async().then(r,i)},t.toString=function(){return this.css},t.visitSync=function(r,i){for(var s=Ye(r),o;!(o=s()).done;){var a=o.value,l=a[0],f=a[1];this.result.lastPlugin=l;var d=void 0;try{d=f(i,this.helpers)}catch(p){throw this.handleError(p,i.proxyOf)}if(i.type!=="root"&&i.type!=="document"&&!i.parent)return!0;if(cm(d))throw this.getAsyncError()}},t.visitTick=function(r){var i=r[r.length-1],s=i.node,o=i.visitors;if(s.type!=="root"&&s.type!=="document"&&!s.parent){r.pop();return}if(o.length>0&&i.visitorIndex<o.length){var a=o[i.visitorIndex],l=a[0],f=a[1];i.visitorIndex+=1,i.visitorIndex===o.length&&(i.visitors=[],i.visitorIndex=0),this.result.lastPlugin=l;try{return f(s.toProxy(),this.helpers)}catch(v){throw this.handleError(v,s)}}if(i.iterator!==0){for(var d=i.iterator,p;p=s.nodes[s.indexes[d]];)if(s.indexes[d]+=1,!p[na]){p[na]=!0,r.push(Oz(p));return}i.iterator=0,delete s.indexes[d]}for(var m=i.events;i.eventIndex<m.length;){var _=m[i.eventIndex];if(i.eventIndex+=1,_===dp){s.nodes&&s.nodes.length&&(s[na]=!0,i.iterator=s.getIterator());return}else if(this.listeners[_]){i.visitors=this.listeners[_];return}}r.pop()},t.walkSync=function(r){var i=this;r[na]=!0;for(var s=oX(r),o=Ye(s),a;!(a=o()).done;){var l=a.value;if(l===dp)r.nodes&&r.each(function(d){d[na]||i.walkSync(d)});else{var f=this.listeners[l];if(f&&this.visitSync(f,r.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ri(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e})();hp.registerPostcss=function(e){HI=e};var aX=hp;hp.default=hp;vFe.registerLazyResult(hp);mFe.registerLazyResult(hp);var EFe=HY,wFe=_T,TFe=lL,xFe=oL,jI=(function(){function e(n,r,i){r=r.toString(),this.stringified=!1,this._processor=n,this._css=r,this._opts=i,this._map=void 0;var s,o=wFe;this.result=new xFe(this._processor,s,this._opts),this.result.css=r;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var l=new EFe(o,s,this._opts,r);if(l.isMap()){var f=l.generate(),d=f[0],p=f[1];d&&(this.result.css=d),p&&(this.result.map=p)}else l.clearAnnotation(),this.result.css=l.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(r){return this.async().catch(r)},t.finally=function(r){return this.async().then(r,r)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(r,i){return this.async().then(r,i)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ri(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var r,i=TFe;try{r=i(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=r,r}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e})(),CFe=jI;jI.default=jI;var AFe=CFe,RFe=aX,kFe=sL,IFe=Fv,$_=(function(){function e(n){n===void 0&&(n=[]),this.version="8.4.38",this.plugins=this.normalize(n)}var t=e.prototype;return t.normalize=function(r){for(var i=[],s=Ye(r),o;!(o=s()).done;){var a=o.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a>"u"?"undefined":Wt(a))==="object"&&Array.isArray(a.plugins))i=i.concat(a.plugins);else if((typeof a>"u"?"undefined":Wt(a))==="object"&&a.postcssPlugin)i.push(a);else if(typeof a=="function")i.push(a);else if(!((typeof a>"u"?"undefined":Wt(a))==="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin")}return i},t.process=function(r,i){return i===void 0&&(i={}),!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new AFe(this,r,i):new RFe(this,r,i)},t.use=function(r){return this.plugins=this.plugins.concat(this.normalize([r])),this},e})(),OFe=$_;$_.default=$_;IFe.registerProcessor($_);kFe.registerProcessor($_);var MFe=yT,NFe=$Y,LFe=ST,DFe=aL,PFe=bT,$Fe=Fv,FFe=cL;function F_(e,t){if(Array.isArray(e))return e.map(function(p){return F_(p)});var n=e.inputs,r=A_(e,["inputs"]);if(n){t=[];for(var i=Ye(n),s;!(s=i()).done;){var o=s.value,a=bn({},o,{__proto__:PFe.prototype});a.map&&(a.map=bn({},a.map,{__proto__:NFe.prototype})),t.push(a)}}if(r.nodes&&(r.nodes=e.nodes.map(function(p){return F_(p,t)})),r.source){var l=r.source,f=l.inputId,d=A_(l,["inputId"]);r.source=d,f!=null&&(r.source.input=t[f])}if(r.type==="root")return new $Fe(r);if(r.type==="decl")return new MFe(r);if(r.type==="rule")return new FFe(r);if(r.type==="comment")return new LFe(r);if(r.type==="atrule")return new DFe(r);throw new Error("Unknown node type: "+e.type)}var UFe=F_;F_.default=F_;var BFe=nL,cX=yT,zFe=aX,HFe=td,uL=OFe,jFe=_T,VFe=UFe,lX=sL,GFe=QY,uX=ST,fX=aL,qFe=oL,WFe=bT,YFe=lL,XFe=iX,dX=cL,hX=Fv,KFe=vT;function Pn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new uL(t)}Pn.plugin=function(t,n){var r=!1;function i(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];console&&console.warn&&!r&&(r=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
586https://evilmartians.com/chronicles/postcss-8-plugin-migration`),yE.LANG&&yE.LANG.startsWith("cn")&&console.warn(t+`: 里面 postcss.plugin 被弃用. 迁移指南:
587https://www.w3ctech.com/topic/2226`));var f=n.apply(void 0,[].concat(a));return f.postcssPlugin=t,f.postcssVersion=new uL().version,f}var s;return Object.defineProperty(i,"postcss",{get:function(){return s||(s=i()),s}}),i.process=function(o,a,l){return Pn([i(l)]).process(o,a)},i};Pn.stringify=jFe;Pn.parse=YFe;Pn.fromJSON=VFe;Pn.list=XFe;Pn.comment=function(e){return new uX(e)};Pn.atRule=function(e){return new fX(e)};Pn.decl=function(e){return new cX(e)};Pn.rule=function(e){return new dX(e)};Pn.root=function(e){return new hX(e)};Pn.document=function(e){return new lX(e)};Pn.CssSyntaxError=BFe;Pn.Declaration=cX;Pn.Container=HFe;Pn.Processor=uL;Pn.Document=lX;Pn.Comment=uX;Pn.Warning=GFe;Pn.AtRule=fX;Pn.Result=qFe;Pn.Input=WFe;Pn.Rule=dX;Pn.Root=hX;Pn.Node=KFe;zFe.registerPostcss(Pn);var ZFe=Pn;Pn.default=Pn;var br=u$e(ZFe);br.stringify;br.fromJSON;br.plugin;br.parse;br.list;br.document;br.comment;br.atRule;br.rule;br.decl;br.root;br.CssSyntaxError;br.Declaration;br.Container;br.Processor;br.Document;br.Comment;br.Warning;br.AtRule;br.Result;br.Input;br.Rule;br.Root;br.Node;var JFe=(function(){function e(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];no(this,"parentElement",null),no(this,"parentNode",null),no(this,"ownerDocument"),no(this,"firstChild",null),no(this,"lastChild",null),no(this,"previousSibling",null),no(this,"nextSibling",null),no(this,"ELEMENT_NODE",1),no(this,"TEXT_NODE",3),no(this,"nodeType"),no(this,"nodeName"),no(this,"RRNodeType")}var t=e.prototype;return t.contains=function(r){if(wt(r,e)){if(r.ownerDocument!==this.ownerDocument)return!1;if(r===this)return!0}else return!1;for(;r.parentNode;){if(r.parentNode===this)return!0;r=r.parentNode}return!1},t.appendChild=function(r){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(r,i){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(r){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},Ri(e,[{key:"childNodes",get:function(){for(var r=[],i=this.firstChild;i;)r.push(i),i=i.nextSibling;return r}}]),e})(),Mz={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Nz={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},sS={},QFe=function(){return!!globalThis.Zone};function fL(e){if(sS[e])return sS[e];var t=globalThis[e],n=t.prototype,r=e in Mz?Mz[e]:void 0,i=!!(r&&r.every(function(d){var p,m;return!!((m=(p=Object.getOwnPropertyDescriptor(n,d))==null?void 0:p.get)!=null&&m.toString().includes("[native code]"))})),s=e in Nz?Nz[e]:void 0,o=!!(s&&s.every(function(d){var p;return typeof n[d]=="function"&&((p=n[d])==null?void 0:p.toString().includes("[native code]"))}));if(i&&o&&!QFe())return sS[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var l=a.contentWindow;if(!l)return t.prototype;var f=l[e].prototype;return document.body.removeChild(a),f?sS[e]=f:n}catch{return n}}var UA={};function du(e,t,n){var r,i=e+"."+String(n);if(UA[i])return UA[i].call(t);var s=fL(e),o=(r=Object.getOwnPropertyDescriptor(s,n))==null?void 0:r.get;return o?(UA[i]=o,o.call(t)):t[n]}var BA={};function pX(e,t,n){var r=e+"."+String(n);if(BA[r])return BA[r].bind(t);var i=fL(e),s=i[n];return typeof s!="function"?t[n]:(BA[r]=s,s.bind(t))}function eUe(e){return du("Node",e,"childNodes")}function tUe(e){return du("Node",e,"parentNode")}function nUe(e){return du("Node",e,"parentElement")}function rUe(e){return du("Node",e,"textContent")}function iUe(e,t){return pX("Node",e,"contains")(t)}function sUe(e){return pX("Node",e,"getRootNode")()}function oUe(e){return!e||!("host"in e)?null:du("ShadowRoot",e,"host")}function aUe(e){return e.styleSheets}function cUe(e){return!e||!("shadowRoot"in e)?null:du("Element",e,"shadowRoot")}function lUe(e,t){return du("Element",e,"querySelector")(t)}function uUe(e,t){return du("Element",e,"querySelectorAll")(t)}function gX(){return fL("MutationObserver").constructor}function nd(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var nn={childNodes:eUe,parentNode:tUe,parentElement:nUe,textContent:rUe,contains:iUe,getRootNode:sUe,host:oUe,styleSheets:aUe,shadowRoot:cUe,querySelector:lUe,querySelectorAll:uUe,mutationObserver:gX,patch:nd};function Qi(e,t,n){n===void 0&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}}var rh=`Please stop import mirror directly. Instead of that,\r
588now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
589or you can use record.mirror to access the mirror instance during recording.`,Lz={map:{},getId:function(){return console.error(rh),-1},getNode:function(){return console.error(rh),null},removeNodeFromMap:function(){console.error(rh)},has:function(){return console.error(rh),!1},reset:function(){console.error(rh)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Lz=new Proxy(Lz,{get:function(t,n,r){return n==="map"&&console.error(rh),Reflect.get(t,n,r)}}));function U_(e,t,n){n===void 0&&(n={});var r=null,i=0;return function(){for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];var l=Date.now();!i&&n.leading===!1&&(i=l);var f=t-(l-i),d=this;f<=0||f>t?(r&&(clearTimeout(r),r=null),i=l,e.apply(d,o)):!r&&n.trailing!==!1&&(r=setTimeout(function(){i=n.leading===!1?0:Date.now(),r=null,e.apply(d,o)},f))}}function ET(e,t,n,r,i){i===void 0&&(i=window);var s=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set:function(a){var l=this;setTimeout(function(){n.set.call(l,a)},0),s&&s.set&&s.set.call(this,a)}}),function(){return ET(e,t,s||{},!0)}}var NE=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(NE=function(){return new Date().getTime()});function mX(e){var t,n,r,i,s=e.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:s.documentElement.scrollLeft||s?.body&&((t=nn.parentElement(s.body))==null?void 0:t.scrollLeft)||((n=s?.body)==null?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:s?.documentElement.scrollTop||s?.body&&((r=nn.parentElement(s.body))==null?void 0:r.scrollTop)||((i=s?.body)==null?void 0:i.scrollTop)||0}}function _X(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function vX(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function yX(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:nn.parentElement(e);return t}function es(e,t,n,r){if(!e)return!1;var i=yX(e);if(!i)return!1;try{if(typeof t=="string"){if(i.classList.contains(t)||r&&i.closest("."+t)!==null)return!0}else if(TE(i,t,r))return!0}catch{}return!!(n&&(i.matches(n)||r&&i.closest(n)!==null))}function fUe(e,t){return t.getId(e)!==-1}function zA(e,t,n){return e.tagName==="TITLE"&&n.headTitleMutations?!0:t.getId(e)===I_}function bX(e,t){if(Hm(e))return!1;var n=t.getId(e);if(!t.has(n))return!0;var r=nn.parentNode(e);return r&&r.nodeType===e.DOCUMENT_NODE?!1:r?bX(r,t):!0}function VI(e){return!!e.changedTouches}function dUe(e){e===void 0&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function SX(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function EX(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function GI(e){return e?wt(e,JFe)&&"shadowRoot"in e?!!e.shadowRoot:!!nn.shadowRoot(e):!1}var hUe=(function(){function e(){Oe(this,"id",1),Oe(this,"styleIDMap",new WeakMap),Oe(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(r){var i;return(i=this.styleIDMap.get(r))!=null?i:-1},t.has=function(r){return this.styleIDMap.has(r)},t.add=function(r,i){if(this.has(r))return this.getId(r);var s;return i===void 0?s=this.id++:s=i,this.styleIDMap.set(r,s),this.idStyleMap.set(s,r),s},t.getStyle=function(r){return this.idStyleMap.get(r)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},e})();function wX(e){var t,n=null;return"getRootNode"in e&&((t=nn.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&nn.host(nn.getRootNode(e))&&(n=nn.host(nn.getRootNode(e))),n}function pUe(e){for(var t=e,n;n=wX(t);)t=n;return t}function gUe(e){var t=e.ownerDocument;if(!t)return!1;var n=pUe(e);return nn.contains(t,n)}function TX(e){var t=e.ownerDocument;return t?nn.contains(t,e)||gUe(e):!1}var an=(function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e})(an||{}),At=(function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e})(At||{}),ps=(function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e})(ps||{}),ec=(function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e})(ec||{}),pp=(function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e})(pp||{}),ih=(function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e})(ih||{}),xX=(function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e})(xX||{});function Dz(e){return"__ln"in e}var mUe=(function(){function e(){Oe(this,"length",0),Oe(this,"head",null),Oe(this,"tail",null)}var t=e.prototype;return t.get=function(r){if(r>=this.length)throw new Error("Position outside of list range");for(var i=this.head,s=0;s<r;s++)i=i?.next||null;return i},t.addNode=function(r){var i={value:r,previous:null,next:null};if(r.__ln=i,r.previousSibling&&Dz(r.previousSibling)){var s=r.previousSibling.__ln.next;i.next=s,i.previous=r.previousSibling.__ln,r.previousSibling.__ln.next=i,s&&(s.previous=i)}else if(r.nextSibling&&Dz(r.nextSibling)&&r.nextSibling.__ln.previous){var o=r.nextSibling.__ln.previous;i.previous=o,i.next=r.nextSibling.__ln,r.nextSibling.__ln.previous=i,o&&(o.next=i)}else this.head&&(this.head.previous=i),i.next=this.head,this.head=i;i.next===null&&(this.tail=i),this.length++},t.removeNode=function(r){var i=r.__ln;this.head&&(i.previous?(i.previous.next=i.next,i.next?i.next.previous=i.previous:this.tail=i.previous):(this.head=i.next,this.head?this.head.previous=null:this.tail=null),r.__ln&&delete r.__ln,this.length--)},e})(),Pz=function(e,t){return e+"@"+t},_Ue=(function(){function e(){var n=this;
vendor: 11,341 bytes, line 589
589Oe(this,"frozen",!1),Oe(this,"locked",!1),Oe(this,"texts",[]),Oe(this,"attributes",[]),Oe(this,"attributeMap",new WeakMap),Oe(this,"removes",[]),Oe(this,"mapRemoves",[]),Oe(this,"movedMap",{}),Oe(this,"addedSet",new Set),Oe(this,"movedSet",new Set),Oe(this,"droppedSet",new Set),Oe(this,"removesSubTreeCache",new Set),Oe(this,"mutationCb"),Oe(this,"blockClass"),Oe(this,"blockSelector"),Oe(this,"maskTextClass"),Oe(this,"maskTextSelector"),Oe(this,"inlineStylesheet"),Oe(this,"maskInputOptions"),Oe(this,"maskTextFn"),Oe(this,"maskInputFn"),Oe(this,"keepIframeSrcFn"),Oe(this,"recordCanvas"),Oe(this,"inlineImages"),Oe(this,"slimDOMOptions"),Oe(this,"dataURLOptions"),Oe(this,"doc"),Oe(this,"mirror"),Oe(this,"iframeManager"),Oe(this,"stylesheetManager"),Oe(this,"shadowDomManager"),Oe(this,"canvasManager"),Oe(this,"processedNodeManager"),Oe(this,"unattachedDoc"),Oe(this,"processMutations",function(r){r.forEach(n.processMutation),n.emit()}),Oe(this,"emit",function(){if(!(n.frozen||n.locked)){for(var r=[],i=new Set,s=new mUe,o=function(N){for(var U=N,K=I_;K===I_;)U=U&&U.nextSibling,K=U&&n.mirror.getId(U);return K},a=function(N){var U=nn.parentNode(N);if(!(!U||!TX(N))){var K=!1;if(N.nodeType===Node.TEXT_NODE){var j=U.tagName;if(j==="TEXTAREA")return;j==="STYLE"&&n.addedSet.has(U)&&(K=!0)}var fe=Hm(U)?n.mirror.getId(wX(N)):n.mirror.getId(U),P=o(N);if(fe===-1||P===-1)return s.addNode(N);var ee=_h(N,{doc:n.doc,mirror:n.mirror,blockClass:n.blockClass,blockSelector:n.blockSelector,maskTextClass:n.maskTextClass,maskTextSelector:n.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:n.inlineStylesheet,maskInputOptions:n.maskInputOptions,maskTextFn:n.maskTextFn,maskInputFn:n.maskInputFn,slimDOMOptions:n.slimDOMOptions,dataURLOptions:n.dataURLOptions,recordCanvas:n.recordCanvas,inlineImages:n.inlineImages,onSerialize:function(W){SX(W,n.mirror)&&n.iframeManager.addIframe(W),EX(W,n.mirror)&&n.stylesheetManager.trackLinkElement(W),GI(N)&&n.shadowDomManager.addShadowRoot(nn.shadowRoot(N),n.doc)},onIframeLoad:function(W,de){n.iframeManager.attachIframe(W,de),n.shadowDomManager.observeAttachShadow(W)},onStylesheetLoad:function(W,de){n.stylesheetManager.attachLinkElement(W,de)},cssCaptured:K});ee&&(r.push({parentId:fe,nextId:P,node:ee}),i.add(ee.id))}};n.mapRemoves.length;)n.mirror.removeNodeFromMap(n.mapRemoves.shift());for(var l=Ye(n.movedSet),f;!(f=l()).done;){var d=f.value;$z(n.removesSubTreeCache,d,n.mirror)&&!n.movedSet.has(nn.parentNode(d))||a(d)}for(var p=Ye(n.addedSet),m;!(m=p()).done;){var _=m.value;!Fz(n.droppedSet,_)&&!$z(n.removesSubTreeCache,_,n.mirror)||Fz(n.movedSet,_)?a(_):n.droppedSet.add(_)}for(var v=null;s.length;){var E=null;if(v){var b=n.mirror.getId(nn.parentNode(v.value)),w=o(v.value);b!==-1&&w!==-1&&(E=v)}if(!E)for(var T=s.tail;T;){var R=T;if(T=T.previous,R){var C=n.mirror.getId(nn.parentNode(R.value)),k=o(R.value);if(k===-1)continue;if(C!==-1){E=R;break}else{var M=R.value,I=nn.parentNode(M);if(I&&I.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var $=nn.host(I),Q=n.mirror.getId($);if(Q!==-1){E=R;break}}}}}if(!E){for(;s.head;)s.removeNode(s.head.value);break}v=E.previous,s.removeNode(E.value),a(E.value)}var V={texts:n.texts.map(function(N){var U=N.node,K=nn.parentNode(U);return K&&K.tagName==="TEXTAREA"&&n.genTextAreaValueMutation(K),{id:n.mirror.getId(U),value:N.value}}).filter(function(N){return!i.has(N.id)}).filter(function(N){return n.mirror.has(N.id)}),attributes:n.attributes.map(function(N){var U=N.attributes;if(typeof U.style=="string"){var K=JSON.stringify(N.styleDiff),j=JSON.stringify(N._unchangedStyles);K.length<U.style.length&&(K+j).split("var(").length===U.style.split("var(").length&&(U.style=N.styleDiff)}return{id:n.mirror.getId(N.node),attributes:U}}).filter(function(N){return!i.has(N.id)}).filter(function(N){return n.mirror.has(N.id)}),removes:n.removes,adds:r};!V.texts.length&&!V.attributes.length&&!V.removes.length&&!V.adds.length||(n.texts=[],n.attributes=[],n.attributeMap=new WeakMap,n.removes=[],n.addedSet=new Set,n.movedSet=new Set,n.droppedSet=new Set,n.removesSubTreeCache=new Set,n.movedMap={},n.mutationCb(V))}}),Oe(this,"genTextAreaValueMutation",function(r){var i=n.attributeMap.get(r);i||(i={node:r,attributes:{},styleDiff:{},_unchangedStyles:{}},n.attributes.push(i),n.attributeMap.set(r,i));var s=Array.from(nn.childNodes(r),function(o){return nn.textContent(o)||""}).join("");i.attributes.value=SE({element:r,maskInputOptions:n.maskInputOptions,tagName:r.tagName,type:EE(r),value:s,maskInputFn:n.maskInputFn})}),Oe(this,"processMutation",function(r){if(!zA(r.target,n.mirror,n.slimDOMOptions))switch(r.type){case"characterData":{var i=nn.textContent(r.target);!es(r.target,n.blockClass,n.blockSelector,!1)&&i!==r.oldValue&&n.texts.push({value:tY(r.target,n.maskTextClass,n.maskTextSelector,!0)&&i?n.maskTextFn?n.maskTextFn(i,yX(r.target)):i.replace(/[\S]/g,"*"):i,node:r.target});break}case"attributes":{var s=r.target,o=r.attributeName,a=r.target.getAttribute(o);if(o==="value"){var l=EE(s);a=SE({element:s,maskInputOptions:n.maskInputOptions,tagName:s.tagName,type:l,value:a,maskInputFn:n.maskInputFn})}if(es(r.target,n.blockClass,n.blockSelector,!1)||a===r.oldValue)return;var f=n.attributeMap.get(r.target);if(s.tagName==="IFRAME"&&o==="src"&&!n.keepIframeSrcFn(a))if(!s.contentDocument)o="rr_src";else return;if(f||(f={node:r.target,attributes:{},styleDiff:{},_unchangedStyles:{}},n.attributes.push(f),n.attributeMap.set(r.target,f)),o==="type"&&s.tagName==="INPUT"&&(r.oldValue||"").toLowerCase()==="password"&&s.setAttribute("data-rr-is-password","true"),!eY(s.tagName,o))if(f.attributes[o]=QW(n.doc,Pf(s.tagName),Pf(o),a),o==="style"){if(!n.unattachedDoc)try{n.unattachedDoc=document.implementation.createHTMLDocument()}catch{n.unattachedDoc=n.doc}var d=n.unattachedDoc.createElement("span");r.oldValue&&d.setAttribute("style",r.oldValue);for(var p=Ye(Array.from(s.style)),m;!(m=p()).done;){var _=m.value,v=s.style.getPropertyValue(_),E=s.style.getPropertyPriority(_);v!==d.style.getPropertyValue(_)||E!==d.style.getPropertyPriority(_)?E===""?f.styleDiff[_]=v:f.styleDiff[_]=[v,E]:f._unchangedStyles[_]=[v,E]}for(var b=Ye(Array.from(d.style)),w;!(w=b()).done;){var T=w.value;s.style.getPropertyValue(T)===""&&(f.styleDiff[T]=!1)}}else o==="open"&&s.tagName==="DIALOG"&&(s.matches("dialog:modal")?f.attributes.rr_open_mode="modal":f.attributes.rr_open_mode="non-modal");break}case"childList":{if(es(r.target,n.blockClass,n.blockSelector,!0))return;if(r.target.tagName==="TEXTAREA"){n.genTextAreaValueMutation(r.target);return}r.addedNodes.forEach(function(R){return n.genAdds(R,r.target)}),r.removedNodes.forEach(function(R){var C=n.mirror.getId(R),k=Hm(r.target)?n.mirror.getId(nn.host(r.target)):n.mirror.getId(r.target);es(r.target,n.blockClass,n.blockSelector,!1)||zA(R,n.mirror,n.slimDOMOptions)||!fUe(R,n.mirror)||(n.addedSet.has(R)?(qI(n.addedSet,R),n.droppedSet.add(R)):n.addedSet.has(r.target)&&C===-1||bX(r.target,n.mirror)||(n.movedSet.has(R)&&n.movedMap[Pz(C,k)]?qI(n.movedSet,R):(n.removes.push({parentId:k,id:C,isShadow:Hm(r.target)&&jm(r.target)?!0:void 0}),vUe(R,n.removesSubTreeCache))),n.mapRemoves.push(R))});break}}}),Oe(this,"genAdds",function(r,i){if(!n.processedNodeManager.inOtherBuffer(r,n)&&!(n.addedSet.has(r)||n.movedSet.has(r))){if(n.mirror.hasNode(r)){if(zA(r,n.mirror,n.slimDOMOptions))return;n.movedSet.add(r);var s=null;i&&n.mirror.hasNode(i)&&(s=n.mirror.getId(i)),s&&s!==-1&&(n.movedMap[Pz(n.mirror.getId(r),s)]=!0)}else n.addedSet.add(r),n.droppedSet.delete(r);es(r,n.blockClass,n.blockSelector,!1)||(nn.childNodes(r).forEach(function(o){return n.genAdds(o)}),GI(r)&&nn.childNodes(nn.shadowRoot(r)).forEach(function(o){n.processedNodeManager.add(o,n),n.genAdds(o,r)}))}})}var t=e.prototype;return t.init=function(r){var i=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(s){i[s]=r[s]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e})();function qI(e,t){e.delete(t),nn.childNodes(t).forEach(function(n){return qI(e,n)})}function vUe(e,t){for(var n=[e];n.length;){var r=n.pop();t.has(r)||(t.add(r),nn.childNodes(r).forEach(function(i){return n.push(i)}))}}function $z(e,t,n){return e.size===0?!1:yUe(e,t)}function yUe(e,t,n){var r=nn.parentNode(t);return r?e.has(r):!1}function Fz(e,t){return e.size===0?!1:CX(e,t)}function CX(e,t){var n=nn.parentNode(t);return n?e.has(n)?!0:CX(e,n):!1}var Vm;function bUe(e){Vm=e}function SUe(){Vm=void 0}var pn=function(e){if(!Vm)return e;var t=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];try{return e.apply(void 0,[].concat(r))}catch(s){if(Vm&&Vm(s)===!0)return;throw s}};return t},mf=[];function Uv(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function AX(e,t){var n=new _Ue;mf.push(n),n.init(e);var r=new(gX())(pn(n.processMutations.bind(n)));return r.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function EUe(e){var t=e.mousemoveCb,n=e.sampling,r=e.doc,i=e.mirror;if(n.mousemove===!1)return function(){};var s=typeof n.mousemove=="number"?n.mousemove:50,o=typeof n.mousemoveCallback=="number"?n.mousemoveCallback:500,a=[],l,f=U_(pn(function(m){var _=Date.now()-l;t(a.map(function(v){return v.timeOffset-=_,v}),m),a=[],l=null}),o),d=pn(U_(pn(function(m){var _=Uv(m),v=VI(m)?m.changedTouches[0]:m,E=v.clientX,b=v.clientY;l||(l=NE()),a.push({x:E,y:b,id:i.getId(_),timeOffset:NE()-l}),f(typeof DragEvent<"u"&&wt(m,DragEvent)?At.Drag:wt(m,MouseEvent)?At.MouseMove:At.TouchMove)}),s,{trailing:!1})),p=[Qi("mousemove",d,r),Qi("touchmove",d,r),Qi("drag",d,r)];return pn(function(){p.forEach(function(m){return m()})})}function wUe(e){var t=e.mouseInteractionCb,n=e.doc,r=e.mirror,i=e.blockClass,s=e.blockSelector,o=e.sampling;if(o.mouseInteraction===!1)return function(){};var a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,l=[],f=null,d=function(p){return function(m){var _=Uv(m);if(!es(_,i,s,!0)){var v=null,E=p;if("pointerType"in m){switch(m.pointerType){case"mouse":v=ec.Mouse;break;case"touch":v=ec.Touch;break;case"pen":v=ec.Pen;break}v===ec.Touch?ps[p]===ps.MouseDown?E="TouchStart":ps[p]===ps.MouseUp&&(E="TouchEnd"):ec.Pen}else VI(m)&&(v=ec.Touch);v!==null?(f=v,(E.startsWith("Touch")&&v===ec.Touch||E.startsWith("Mouse")&&v===ec.Mouse)&&(v=null)):ps[p]===ps.Click&&(v=f,f=null);var b=VI(m)?m.changedTouches[0]:m;if(b){var w=r.getId(_),T=b.clientX,R=b.clientY;pn(t)(bn({type:ps[E],id:w,x:T,y:R},v!==null&&{pointerType:v}))}}}};return Object.keys(ps).filter(function(p){return Number.isNaN(Number(p))&&!p.endsWith("_Departed")&&a[p]!==!1}
vendor: 4,888 bytes, line 589
589).forEach(function(p){var m=Pf(p),_=d(p);if(window.PointerEvent)switch(ps[p]){case ps.MouseDown:case ps.MouseUp:m=m.replace("mouse","pointer");break;case ps.TouchStart:case ps.TouchEnd:return}l.push(Qi(m,_,n))}),pn(function(){l.forEach(function(p){return p()})})}function RX(e){var t=e.scrollCb,n=e.doc,r=e.mirror,i=e.blockClass,s=e.blockSelector,o=e.sampling,a=pn(U_(pn(function(l){var f=Uv(l);if(!(!f||es(f,i,s,!0))){var d=r.getId(f);if(f===n&&n.defaultView){var p=mX(n.defaultView);t({id:d,x:p.left,y:p.top})}else t({id:d,x:f.scrollLeft,y:f.scrollTop})}}),o.scroll||100));return Qi("scroll",a,n)}function TUe(e,t){var n=e.viewportResizeCb,r=t.win,i=-1,s=-1,o=pn(U_(pn(function(){var a=_X(),l=vX();(i!==a||s!==l)&&(n({width:Number(l),height:Number(a)}),i=a,s=l)}),200));return Qi("resize",o,r)}var xUe=["INPUT","TEXTAREA","SELECT"],Uz=new WeakMap;function CUe(e){var t=e.inputCb,n=e.doc,r=e.mirror,i=e.blockClass,s=e.blockSelector,o=e.ignoreClass,a=e.ignoreSelector,l=e.maskInputOptions,f=e.maskInputFn,d=e.sampling,p=e.userTriggeredOnInput;function m(C){var k=Uv(C),M=C.isTrusted,I=k&&k.tagName;if(k&&I==="OPTION"&&(k=nn.parentElement(k)),!(!k||!I||xUe.indexOf(I)<0||es(k,i,s,!0))&&!(k.classList.contains(o)||a&&k.matches(a))){var $=k.value,Q=!1,V=EE(k)||"";V==="radio"||V==="checkbox"?Q=k.checked:(l[I.toLowerCase()]||l[V])&&($=SE({element:k,maskInputOptions:l,tagName:I,type:V,value:$,maskInputFn:f})),_(k,p?{text:$,isChecked:Q,userTriggered:M}:{text:$,isChecked:Q});var N=k.name;V==="radio"&&N&&Q&&n.querySelectorAll('input[type="radio"][name="'+N+'"]').forEach(function(U){if(U!==k){var K=U.value;_(U,p?{text:K,isChecked:!Q,userTriggered:!1}:{text:K,isChecked:!Q})}})}}function _(C,k){var M=Uz.get(C);if(!M||M.text!==k.text||M.isChecked!==k.isChecked){Uz.set(C,k);var I=r.getId(C);pn(t)(bn({},k,{id:I}))}}var v=d.input==="last"?["change"]:["input","change"],E=v.map(function(C){return Qi(C,pn(m),n)}),b=n.defaultView;if(!b)return function(){E.forEach(function(C){return C()})};var w=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),T=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];if(w&&w.set){var R;(R=E).push.apply(R,[].concat(T.map(function(C){return ET(C[0],C[1],{set:function(){pn(m)({target:this,isTrusted:!1})}},!1,b)})))}return pn(function(){E.forEach(function(C){return C()})})}function LE(e){var t=[];function n(r,i){if(oS("CSSGroupingRule")&&wt(r.parentRule,CSSGroupingRule)||oS("CSSMediaRule")&&wt(r.parentRule,CSSMediaRule)||oS("CSSSupportsRule")&&wt(r.parentRule,CSSSupportsRule)||oS("CSSConditionRule")&&wt(r.parentRule,CSSConditionRule)){var s=Array.from(r.parentRule.cssRules),o=s.indexOf(r);i.unshift(o)}else if(r.parentStyleSheet){var a=Array.from(r.parentStyleSheet.cssRules),l=a.indexOf(r);i.unshift(l)}return i}return n(e,t)}function Sl(e,t,n){var r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function AUe(e,t){var n=e.styleSheetRuleCb,r=e.mirror,i=e.stylesheetManager,s=t.win;if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return function(){};var o=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:pn(function(m,_,v){var E=v[0],b=v[1],w=Sl(_,r,i.styleMirror),T=w.id,R=w.styleId;return(T&&T!==-1||R&&R!==-1)&&n({id:T,styleId:R,adds:[{rule:E,index:b}]}),m.apply(_,v)})}),s.CSSStyleSheet.prototype.addRule=function(m,_,v){v===void 0&&(v=this.cssRules.length);var E=m+" { "+_+" }";return s.CSSStyleSheet.prototype.insertRule.apply(this,[E,v])};var a=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:pn(function(m,_,v){var E=v[0],b=Sl(_,r,i.styleMirror),w=b.id,T=b.styleId;return(w&&w!==-1||T&&T!==-1)&&n({id:w,styleId:T,removes:[{index:E}]}),m.apply(_,v)})}),s.CSSStyleSheet.prototype.removeRule=function(m){return s.CSSStyleSheet.prototype.deleteRule.apply(this,[m])};var l;s.CSSStyleSheet.prototype.replace&&(l=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(l,{apply:pn(function(m,_,v){var E=v[0],b=Sl(_,r,i.styleMirror),w=b.id,T=b.styleId;return(w&&w!==-1||T&&T!==-1)&&n({id:w,styleId:T,replace:E}),m.apply(_,v)})}));var f;s.CSSStyleSheet.prototype.replaceSync&&(f=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(f,{apply:pn(function(m,_,v){var E=v[0],b=Sl(_,r,i.styleMirror),w=b.id,T=b.styleId;return(w&&w!==-1||T&&T!==-1)&&n({id:w,styleId:T,replaceSync:E}),m.apply(_,v)})}));var d={};aS("CSSGroupingRule")?d.CSSGroupingRule=s.CSSGroupingRule:(aS("CSSMediaRule")&&(d.CSSMediaRule=s.CSSMediaRule),aS("CSSConditionRule")&&(d.CSSConditionRule=s.CSSConditionRule),aS("CSSSupportsRule")&&(d.CSSSupportsRule=s.CSSSupportsRule));var p={};
vendor: 9,310 bytes, line 589
589return Object.entries(d).forEach(function(m){var _=m[0],v=m[1];p[_]={insertRule:v.prototype.insertRule,deleteRule:v.prototype.deleteRule},v.prototype.insertRule=new Proxy(p[_].insertRule,{apply:pn(function(E,b,w){var T=w[0],R=w[1],C=Sl(b.parentStyleSheet,r,i.styleMirror),k=C.id,M=C.styleId;return(k&&k!==-1||M&&M!==-1)&&n({id:k,styleId:M,adds:[{rule:T,index:[].concat(LE(b),[R||0])}]}),E.apply(b,w)})}),v.prototype.deleteRule=new Proxy(p[_].deleteRule,{apply:pn(function(E,b,w){var T=w[0],R=Sl(b.parentStyleSheet,r,i.styleMirror),C=R.id,k=R.styleId;return(C&&C!==-1||k&&k!==-1)&&n({id:C,styleId:k,removes:[{index:[].concat(LE(b),[T])}]}),E.apply(b,w)})})}),pn(function(){s.CSSStyleSheet.prototype.insertRule=o,s.CSSStyleSheet.prototype.deleteRule=a,l&&(s.CSSStyleSheet.prototype.replace=l),f&&(s.CSSStyleSheet.prototype.replaceSync=f),Object.entries(d).forEach(function(m){var _=m[0],v=m[1];v.prototype.insertRule=p[_].insertRule,v.prototype.deleteRule=p[_].deleteRule})})}function kX(e,t){var n=e.mirror,r=e.stylesheetManager,i,s,o,a=null;t.nodeName==="#document"?a=n.getId(t):a=n.getId(nn.host(t));var l=t.nodeName==="#document"?(i=t.defaultView)==null?void 0:i.Document:(o=(s=t.ownerDocument)==null?void 0:s.defaultView)==null?void 0:o.ShadowRoot,f=l?.prototype?Object.getOwnPropertyDescriptor(l?.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!l||!f?function(){}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:f.configurable,enumerable:f.enumerable,get:function(){var p;return(p=f.get)==null?void 0:p.call(this)},set:function(p){var m,_=(m=f.set)==null?void 0:m.call(this,p);if(a!==null&&a!==-1)try{r.adoptStyleSheets(p,a)}catch{}return _}}),pn(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:f.configurable,enumerable:f.enumerable,get:f.get,set:f.set})}))}function RUe(e,t){var n=e.styleDeclarationCb,r=e.mirror,i=e.ignoreCSSAttributes,s=e.stylesheetManager,o=t.win,a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:pn(function(f,d,p){var m,_=p[0],v=p[1],E=p[2];if(i.has(_))return a.apply(d,[_,v,E]);var b=Sl((m=d.parentRule)==null?void 0:m.parentStyleSheet,r,s.styleMirror),w=b.id,T=b.styleId;return(w&&w!==-1||T&&T!==-1)&&n({id:w,styleId:T,set:{property:_,value:v,priority:E},index:LE(d.parentRule)}),f.apply(d,p)})});var l=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:pn(function(f,d,p){var m,_=p[0];if(i.has(_))return l.apply(d,[_]);var v=Sl((m=d.parentRule)==null?void 0:m.parentStyleSheet,r,s.styleMirror),E=v.id,b=v.styleId;return(E&&E!==-1||b&&b!==-1)&&n({id:E,styleId:b,remove:{property:_},index:LE(d.parentRule)}),f.apply(d,p)})}),pn(function(){o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=l})}function kUe(e){var t=e.mediaInteractionCb,n=e.blockClass,r=e.blockSelector,i=e.mirror,s=e.sampling,o=e.doc,a=pn(function(f){return U_(pn(function(d){var p=Uv(d);if(!(!p||es(p,n,r,!0))){var m=p.currentTime,_=p.volume,v=p.muted,E=p.playbackRate,b=p.loop;t({type:f,id:i.getId(p),currentTime:m,volume:_,muted:v,playbackRate:E,loop:b})}}),s.media||500)}),l=[Qi("play",a(ih.Play),o),Qi("pause",a(ih.Pause),o),Qi("seeked",a(ih.Seeked),o),Qi("volumechange",a(ih.VolumeChange),o),Qi("ratechange",a(ih.RateChange),o)];return pn(function(){l.forEach(function(f){return f()})})}function IUe(e){var t=e.fontCb,n=e.doc,r=n.defaultView;if(!r)return function(){};var i=[],s=new WeakMap,o=r.FontFace;r.FontFace=function(f,d,p){var m=new o(f,d,p);return s.set(m,{family:f,buffer:typeof d!="string",descriptors:p,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),m};var a=nd(n.fonts,"add",function(l){return function(f){return setTimeout(pn(function(){var d=s.get(f);d&&(t(d),s.delete(f))}),0),l.apply(this,[f])}});return i.push(function(){r.FontFace=o}),i.push(a),pn(function(){i.forEach(function(l){return l()})})}function OUe(e){var t=e.doc,n=e.mirror,r=e.blockClass,i=e.blockSelector,s=e.selectionCb,o=!0,a=pn(function(){var l=t.getSelection();if(!(!l||o&&l?.isCollapsed)){o=l.isCollapsed||!1;for(var f=[],d=l.rangeCount||0,p=0;p<d;p++){var m=l.getRangeAt(p),_=m.startContainer,v=m.startOffset,E=m.endContainer,b=m.endOffset,w=es(_,r,i,!0)||es(E,r,i,!0);w||f.push({start:n.getId(_),startOffset:v,end:n.getId(E),endOffset:b})}s({ranges:f})}});return a(),Qi("selectionchange",a)}function MUe(e){var t=e.doc,n=e.customElementCb,r=t.defaultView;if(!r||!r.customElements)return function(){};var i=nd(r.customElements,"define",function(s){return function(o,a,l){try{n({define:{name:o}})}catch{console.warn("Custom element callback failed for "+o)}return s.apply(this,[o,a,l])}});return i}function NUe(e,t){var n=e.mutationCb,r=e.mousemoveCb,i=e.mouseInteractionCb,s=e.scrollCb,o=e.viewportResizeCb,a=e.inputCb,l=e.mediaInteractionCb,f=e.styleSheetRuleCb,d=e.styleDeclarationCb,p=e.canvasMutationCb,m=e.fontCb,_=e.selectionCb,v=e.customElementCb;e.mutationCb=function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];if(t.mutation){var T;(T=t).mutation.apply(T,[].concat(b))}n.apply(void 0,[].concat(b))},e.mousemoveCb=function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];if(t.mousemove){var T;(T=t).mousemove.apply(T,[].concat(b))}r.apply(void 0,[].concat(b))},e.mouseInteractionCb=function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];if(t.mouseInteraction){var T;(T=t).mouseInteraction.apply(T,[].concat(b))}i.apply(void 0,[].concat(b))},e.scrollCb=function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];if(t.scroll){var T;(T=t).scroll.apply(T,[].concat(b))}s.apply(void 0,[].concat(b))},e.viewportResizeCb=function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];if(t.viewportResize){var T;(T=t).viewportResize.apply(T,[].concat(b))}o.apply(void 0,[].concat(b))},e.inputCb=function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];if(t.input){var T;(T=t).input.apply(T,[].concat(b))}a.apply(void 0,[].concat(b))},e.mediaInteractionCb=function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];if(t.mediaInteaction){var T;(T=t).mediaInteaction.apply(T,[].concat(b))}l.apply(void 0,[].concat(b))},e.styleSheetRuleCb=function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];if(t.styleSheetRule){var T;(T=t).styleSheetRule.apply(T,[].concat(b))}f.apply(void 0,[].concat(b))},e.styleDeclarationCb=function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];if(t.styleDeclaration){var T;(T=t).styleDeclaration.apply(T,[].concat(b))}d.apply(void 0,[].concat(b))},e.canvasMutationCb=function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];if(t.canvasMutation){var T;(T=t).canvasMutation.apply(T,[].concat(b))}p.apply(void 0,[].concat(b))},e.fontCb=function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];if(t.font){var T;(T=t).font.apply(T,[].concat(b))}m.apply(void 0,[].concat(b))},e.selectionCb=function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];if(t.selection){var T;(T=t).selection.apply(T,[].concat(b))}_.apply(void 0,[].concat(b))},e.customElementCb=function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];if(t.customElement){var T;(T=t).customElement.apply(T,[].concat(b))}v.apply(void 0,[].concat(b))}}function LUe(e,t){t===void 0&&(t={});var n=e.doc.defaultView;if(!n)return function(){};NUe(e,t);var r;e.recordDOM&&(r=AX(e,e.doc));var i=EUe(e),s=wUe(e),o=RX(e),a=TUe(e,{win:n}),l=CUe(e),f=kUe(e),d=function(){},p=function(){},m=function(){},_=function(){};e.recordDOM&&(d=AUe(e,{win:n}),p=kX(e,e.doc),m=RUe(e,{win:n}),e.collectFonts&&(_=IUe(e)));for(var v=OUe(e),E=MUe(e),b=[],w=Ye(e.plugins),T;!(T=w()).done;){var R=T.value;b.push(R.observer(R.callback,n,R.options))}return pn(function(){mf.forEach(function(C){return C.reset()}),r?.disconnect(),i(),s(),o(),a(),l(),f(),d(),p(),m(),_(),v(),E(),b.forEach(function(C){return C()})})}function oS(e){return typeof window[e]<"u"}function aS(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Bz=(function(){function e(n){Oe(this,"iframeIdToRemoteIdMap",new WeakMap),Oe(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=n}var t=e.prototype;return t.getId=function(r,i,s,o){var a=s||this.getIdToRemoteIdMap(r),l=o||this.getRemoteIdToIdMap(r),f=a.get(i);return f||(f=this.generateIdFn(),a.set(i,f),l.set(f,i)),f},t.getIds=function(r,i){var s=this,o=this.getIdToRemoteIdMap(r),a=this.getRemoteIdToIdMap(r);return i.map(function(l){return s.getId(r,l,o,a)})},t.getRemoteId=function(r,i,s){var o=s||this.getRemoteIdToIdMap(r);if(typeof i!="number")return i;var a=o.get(i);return a||-1},t.getRemoteIds=function(r,i){var s=this,o=this.getRemoteIdToIdMap(r);return i.map(function(a){return s.getRemoteId(r,a,o)})},t.reset=function(r){if(!r){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(r),this.iframeRemoteIdToIdMap.delete(r)},t.getIdToRemoteIdMap=function(r){var i=this.iframeIdToRemoteIdMap.get(r);
vendor: 4,414 bytes, line 589
589return i||(i=new Map,this.iframeIdToRemoteIdMap.set(r,i)),i},t.getRemoteIdToIdMap=function(r){var i=this.iframeRemoteIdToIdMap.get(r);return i||(i=new Map,this.iframeRemoteIdToIdMap.set(r,i)),i},e})(),DUe=(function(){function e(n){Oe(this,"iframes",new WeakMap),Oe(this,"crossOriginIframeMap",new WeakMap),Oe(this,"crossOriginIframeMirror",new Bz(JW)),Oe(this,"crossOriginIframeStyleMirror"),Oe(this,"crossOriginIframeRootIdMap",new WeakMap),Oe(this,"mirror"),Oe(this,"mutationCb"),Oe(this,"wrappedEmit"),Oe(this,"loadListener"),Oe(this,"stylesheetManager"),Oe(this,"recordCrossOriginIframes"),this.mutationCb=n.mutationCb,this.wrappedEmit=n.wrappedEmit,this.stylesheetManager=n.stylesheetManager,this.recordCrossOriginIframes=n.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Bz(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=n.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(r){this.iframes.set(r,!0),r.contentWindow&&this.crossOriginIframeMap.set(r.contentWindow,r)},t.addLoadListener=function(r){this.loadListener=r},t.attachIframe=function(r,i){var s,o;this.mutationCb({adds:[{parentId:this.mirror.getId(r),nextId:null,node:i}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((s=r.contentWindow)==null||s.addEventListener("message",this.handleMessage.bind(this))),(o=this.loadListener)==null||o.call(this,r),r.contentDocument&&r.contentDocument.adoptedStyleSheets&&r.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.contentDocument.adoptedStyleSheets,this.mirror.getId(r.contentDocument))},t.handleMessage=function(r){var i=r;if(!(i.data.type!=="rrweb"||i.origin!==i.data.origin)){var s=r.source;if(s){var o=this.crossOriginIframeMap.get(r.source);if(o){var a=this.transformCrossOriginEvent(o,i.data.event);a&&this.wrappedEmit(a,i.data.isCheckout)}}}},t.transformCrossOriginEvent=function(r,i){var s=this,o;switch(i.type){case an.FullSnapshot:{this.crossOriginIframeMirror.reset(r),this.crossOriginIframeStyleMirror.reset(r),this.replaceIdOnNode(i.data.node,r);var a=i.data.node.id;return this.crossOriginIframeRootIdMap.set(r,a),this.patchRootIdOnNode(i.data.node,a),{timestamp:i.timestamp,type:an.IncrementalSnapshot,data:{source:At.Mutation,adds:[{parentId:this.mirror.getId(r),nextId:null,node:i.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case an.Meta:case an.Load:case an.DomContentLoaded:return!1;case an.Plugin:return i;case an.Custom:return this.replaceIds(i.data.payload,r,["id","parentId","previousId","nextId"]),i;case an.IncrementalSnapshot:switch(i.data.source){case At.Mutation:return i.data.adds.forEach(function(l){s.replaceIds(l,r,["parentId","nextId","previousId"]),s.replaceIdOnNode(l.node,r);var f=s.crossOriginIframeRootIdMap.get(r);f&&s.patchRootIdOnNode(l.node,f)}),i.data.removes.forEach(function(l){s.replaceIds(l,r,["parentId","id"])}),i.data.attributes.forEach(function(l){s.replaceIds(l,r,["id"])}),i.data.texts.forEach(function(l){s.replaceIds(l,r,["id"])}),i;case At.Drag:case At.TouchMove:case At.MouseMove:return i.data.positions.forEach(function(l){s.replaceIds(l,r,["id"])}),i;case At.ViewportResize:return!1;case At.MediaInteraction:case At.MouseInteraction:case At.Scroll:case At.CanvasMutation:case At.Input:return this.replaceIds(i.data,r,["id"]),i;case At.StyleSheetRule:case At.StyleDeclaration:return this.replaceIds(i.data,r,["id"]),this.replaceStyleIds(i.data,r,["styleId"]),i;case At.Font:return i;case At.Selection:return i.data.ranges.forEach(function(l){s.replaceIds(l,r,["start","end"])}),i;case At.AdoptedStyleSheet:return this.replaceIds(i.data,r,["id"]),this.replaceStyleIds(i.data,r,["styleIds"]),(o=i.data.styles)==null||o.forEach(function(l){s.replaceStyleIds(l,r,["styleId"])}),i}}return!1},t.replace=function(r,i,s,o){for(var a=Ye(o),l;!(l=a()).done;){var f=l.value;!Array.isArray(i[f])&&typeof i[f]!="number"||(Array.isArray(i[f])?i[f]=r.getIds(s,i[f]):i[f]=r.getId(s,i[f]))}return i},t.replaceIds=function(r,i,s){return this.replace(this.crossOriginIframeMirror,r,i,s)},t.replaceStyleIds=function(r,i,s){return this.replace(this.crossOriginIframeStyleMirror,r,i,s)},t.replaceIdOnNode=function(r,i){var s=this;this.replaceIds(r,i,["id","rootId"]),"childNodes"in r&&r.childNodes.forEac
vendor: 7,668 bytes, line 589
589h(function(o){s.replaceIdOnNode(o,i)})},t.patchRootIdOnNode=function(r,i){var s=this;r.type!==xX.Document&&!r.rootId&&(r.rootId=i),"childNodes"in r&&r.childNodes.forEach(function(o){s.patchRootIdOnNode(o,i)})},e})(),PUe=(function(){function e(n){Oe(this,"shadowDoms",new WeakSet),Oe(this,"mutationCb"),Oe(this,"scrollCb"),Oe(this,"bypassOptions"),Oe(this,"mirror"),Oe(this,"restoreHandlers",[]),this.mutationCb=n.mutationCb,this.scrollCb=n.scrollCb,this.bypassOptions=n.bypassOptions,this.mirror=n.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(r,i){var s=this;if(jm(r)&&!this.shadowDoms.has(r)){this.shadowDoms.add(r);var o=AX(bn({},this.bypassOptions,{doc:i,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),r);this.restoreHandlers.push(function(){return o.disconnect()}),this.restoreHandlers.push(RX(bn({},this.bypassOptions,{scrollCb:this.scrollCb,doc:r,mirror:this.mirror}))),setTimeout(function(){r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&s.bypassOptions.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,s.mirror.getId(nn.host(r))),s.restoreHandlers.push(kX({mirror:s.mirror,stylesheetManager:s.bypassOptions.stylesheetManager},r))},0)}},t.observeAttachShadow=function(r){!r.contentWindow||!r.contentDocument||this.patchAttachShadow(r.contentWindow.Element,r.contentDocument)},t.patchAttachShadow=function(r,i){var s=this;this.restoreHandlers.push(nd(r.prototype,"attachShadow",function(o){return function(a){var l=o.call(this,a),f=nn.shadowRoot(this);return f&&TX(this)&&s.addShadowRoot(f,i),l}}))},t.reset=function(){this.restoreHandlers.forEach(function(r){try{r()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e})(),vh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$Ue=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var cS=0;cS<vh.length;cS++)$Ue[vh.charCodeAt(cS)]=cS;var FUe=function(t){var n=new Uint8Array(t),r,i=n.length,s="";for(r=0;r<i;r+=3)s+=vh[n[r]>>2],s+=vh[(n[r]&3)<<4|n[r+1]>>4],s+=vh[(n[r+1]&15)<<2|n[r+2]>>6],s+=vh[n[r+2]&63];return i%3===2?s=s.substring(0,s.length-1)+"=":i%3===1&&(s=s.substring(0,s.length-2)+"=="),s},zz=new Map;function UUe(e,t){var n=zz.get(e);return n||(n=new Map,zz.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var IX=function(e,t,n){if(!(!e||!(MX(e,t)||(typeof e>"u"?"undefined":Wt(e))==="object"))){var r=e.constructor.name,i=UUe(n,r),s=i.indexOf(e);return s===-1&&(s=i.length,i.push(e)),s}};function c0(e,t,n){if(wt(e,Array))return e.map(function(v){return c0(v,t,n)});if(e===null)return e;if(wt(e,Float32Array)||wt(e,Float64Array)||wt(e,Int32Array)||wt(e,Uint32Array)||wt(e,Uint8Array)||wt(e,Uint16Array)||wt(e,Int16Array)||wt(e,Int8Array)||wt(e,Uint8ClampedArray)){var r=e.constructor.name;return{rr_type:r,args:[Object.values(e)]}}else if(wt(e,ArrayBuffer)){var i=e.constructor.name,s=FUe(e);return{rr_type:i,base64:s}}else if(wt(e,DataView)){var o=e.constructor.name;return{rr_type:o,args:[c0(e.buffer,t,n),e.byteOffset,e.byteLength]}}else if(wt(e,HTMLImageElement)){var a=e.constructor.name,l=e.src;return{rr_type:a,src:l}}else if(wt(e,HTMLCanvasElement)){var f="HTMLImageElement",d=e.toDataURL();return{rr_type:f,src:d}}else if(wt(e,ImageData)){var p=e.constructor.name;return{rr_type:p,args:[c0(e.data,t,n),e.width,e.height]}}else if(MX(e,t)||(typeof e>"u"?"undefined":Wt(e))==="object"){var m=e.constructor.name,_=IX(e,t,n);return{rr_type:m,index:_}}return e}var OX=function(e,t,n){return e.map(function(r){return c0(r,t,n)})},MX=function(e,t){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],r=n.filter(function(i){return typeof t[i]=="function"});return!!r.find(function(i){return wt(e,t[i])})};function BUe(e,t,n,r){for(var i=function(){var f=l.value;try{if(typeof t.CanvasRenderingContext2D.prototype[f]!="function")return"continue";var d=nd(t.CanvasRenderingContext2D.prototype,f,function(m){return function(){for(var _=this,v=arguments.length,E=new Array(v),b=0;b<v;b++)E[b]=arguments[b];return es(this.canvas,n,r,!0)||setTimeout(function(){var w=OX(E,t,_);e(_.canvas,{type:pp["2D"],property:f,args:w})},0),m.apply(this,E)}});s.push(d)}catch{var p=ET(t.CanvasRenderingContext2D.prototype,f,{set:function(v){e(this.canvas,{type:pp["2D"],property:f,args:[v],setter:!0})}});s.push(p)}},s=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=Ye(o),l;!(l=a()).done;)i();return function(){s.forEach(function(f){return f()})}}function zUe(e){return e==="experimental-webgl"?"webgl":e}function Hz(e,t,n,r){var i=[];try{var s=nd(e.HTMLCanvasElement.prototype,"getContext",function(o){return function(a){for(var l=arguments.length,f=new Array(l>1?l-1:0),d=1;d<l;d++)f[d-1]=arguments[d];if(!es(this,t,n,!0)){var p=zUe(a);if("__context"in this||(this.__context=p),r&&["webgl","webgl2"].includes(p))if(f[0]&&Wt(f[0])==="object"){var m=f[0];m.preserveDrawingBuffer||(m.preserveDrawingBuffer=!0)}else f.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[].concat([a],f))}});i.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(o){return o()})}}function jz(e,t,n,r,i,s){for(var o=function(){var p=d.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(p))return"continue";try{if(typeof e[p]!="function")return"continue";var m=nd(e,p,function(v){return function(){for(var E=arguments.length,b=new Array(E),w=0;w<E;w++)b[w]=arguments[w];var T=v.apply(this,b);if(IX(T,s,this),"tagName"in this.canvas&&!es(this.canvas,r,i,!0)){var R=OX(b,s,this),C={type:t,property:p,args:R};n(this.canvas,C)}return T}});a.push(m)}catch{var _=ET(e,p,{set:function(b){n(this.canvas,{type:t,property:p,args:[b],setter:!0})}});a.push(_)}},a=[],l=Object.getOwnPropertyNames(e),f=Ye(l),d;!(d=f()).done;)o();return a}function HUe(e,t,n,r){var i,s=[];if((i=s).push.apply(i,[].concat(jz(t.WebGLRenderingContext.prototype,pp.WebGL,e,n,r,t))),typeof t.WebGL2RenderingContext<"u"){var o;(o=s).push.apply(o,[].concat(jz(t.WebGL2RenderingContext.prototype,pp.WebGL2,e,n,r,t)))}return function(){s.forEach(function(a){return a()})}}var NX="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3B
589hcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",jUe=function(e){return Uint8Array.from(atob(e),function(t){return t.charCodeAt(0)})},Vz=typeof window<"u"&&window.Blob&&new Blob([jUe(NX)],{type:"text/javascript;charset=utf-8"});function VUe(e){var t;try{if(t=Vz&&(window.URL||window.webkitURL).createObjectURL(Vz),!t)throw"";var n=new Worker(t,{name:e?.name});return n.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker("data:text/javascript;base64,"+NX,{name:e?.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var GUe=(function(){function e(n){var r=this;Oe(this,"pendingCanvasMutations",new Map),Oe(this,"rafStamps",{latestId:0,invokeId:null}),Oe(this,"mirror"),Oe(this,"mutationCb"),Oe(this,"resetObservers"),Oe(this,"frozen",!1),Oe(this,"locked",!1),Oe
vendor: 5,787 bytes, line 589
589(this,"processMutation",function(p,m){var _=r.rafStamps.invokeId&&r.rafStamps.latestId!==r.rafStamps.invokeId;(_||!r.rafStamps.invokeId)&&(r.rafStamps.invokeId=r.rafStamps.latestId),r.pendingCanvasMutations.has(p)||r.pendingCanvasMutations.set(p,[]),r.pendingCanvasMutations.get(p).push(m)});var i=n.sampling,s=i===void 0?"all":i,o=n.win,a=n.blockClass,l=n.blockSelector,f=n.recordCanvas,d=n.dataURLOptions;this.mutationCb=n.mutationCb,this.mirror=n.mirror,f&&s==="all"&&this.initCanvasMutationObserver(o,a,l),f&&typeof s=="number"&&this.initCanvasFPSObserver(s,o,a,l,{dataURLOptions:d})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(r,i,s,o,a){var l=this,f=Hz(i,s,o,!0),d=new Map,p=new VUe;p.onmessage=function(w){var T=w.data.id;if(d.set(T,!1),"base64"in w.data){var R=w.data,C=R.base64,k=R.type,M=R.width,I=R.height;l.mutationCb({id:T,type:pp["2D"],commands:[{property:"clearRect",args:[0,0,M,I]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:C}],type:k}]},0,0]}]})}};var m=1e3/r,_=0,v,E=function(){var w=[];return i.document.querySelectorAll("canvas").forEach(function(T){es(T,s,o,!0)||w.push(T)}),w},b=function(w){if(_&&w-_<m){v=requestAnimationFrame(b);return}_=w;var T=l;E().forEach(HN(function(R){var C,k,M,I;return k_(this,function($){switch($.label){case 0:return k=T.mirror.getId(R),d.get(k)?[2]:R.width===0||R.height===0?[2]:(d.set(k,!0),["webgl","webgl2"].includes(R.__context)&&(M=R.getContext(R.__context),((C=M?.getContextAttributes())==null?void 0:C.preserveDrawingBuffer)===!1&&M.clear(M.COLOR_BUFFER_BIT)),[4,createImageBitmap(R)]);case 1:return I=$.sent(),p.postMessage({id:k,bitmap:I,width:R.width,height:R.height,dataURLOptions:a.dataURLOptions},[I]),[2]}})})),v=requestAnimationFrame(b)};v=requestAnimationFrame(b),this.resetObservers=function(){f(),cancelAnimationFrame(v)}},t.initCanvasMutationObserver=function(r,i,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var o=Hz(r,i,s,!1),a=BUe(this.processMutation.bind(this),r,i,s),l=HUe(this.processMutation.bind(this),r,i,s);this.resetObservers=function(){o(),a(),l()}},t.startPendingCanvasMutationFlusher=function(){var r=this;requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var r=this,i=function(s){r.rafStamps.latestId=s,requestAnimationFrame(i)};requestAnimationFrame(i)},t.flushPendingCanvasMutations=function(){var r=this;this.pendingCanvasMutations.forEach(function(i,s){var o=r.mirror.getId(s);r.flushPendingCanvasMutationFor(s,o)}),requestAnimationFrame(function(){return r.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(r,i){if(!(this.frozen||this.locked)){var s=this.pendingCanvasMutations.get(r);if(!(!s||i===-1)){var o=s.map(function(l){l.type;var f=A_(l,["type"]);return f}),a=s[0].type;this.mutationCb({id:i,type:a,commands:o}),this.pendingCanvasMutations.delete(r)}}},e})(),qUe=(function(){function e(n){Oe(this,"trackedLinkElements",new WeakSet),Oe(this,"mutationCb"),Oe(this,"adoptedStyleSheetCb"),Oe(this,"styleMirror",new hUe),this.mutationCb=n.mutationCb,this.adoptedStyleSheetCb=n.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(r,i){"_cssText"in i.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:i.id,attributes:i.attributes}]}),this.trackLinkElement(r)},t.trackLinkElement=function(r){this.trackedLinkElements.has(r)||(this.trackedLinkElements.add(r),this.trackStylesheetInLinkElement(r))},t.adoptStyleSheets=function(r,i){var s,o=function(){var p=d.value,m=void 0;s.styleMirror.has(p)?m=s.styleMirror.getId(p):(m=s.styleMirror.add(p),l.push({styleId:m,rules:Array.from(p.rules||CSSRule,function(_,v){return{rule:XW(_,p.href),index:v}})})),a.styleIds.push(m)};if(r.length!==0){for(var a={id:i,styleIds:[]},l=[],f=Ye(r),d;!(d=f()).done;)s=this,o();l.length>0&&(a.styles=l),this.adoptedStyleSheetCb(a)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(r){},e})(),WUe=(function(){function e(){Oe(this,"nodeMap",new WeakMap),Oe(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(r,i){var s=this.nodeMap.get(r);return s&&Array.from(s).some(function(o){return o!==i})},t.add=function(r,i){var s=this;this.active||(this.active=!0,requestAnimationFrame(function(){s.nodeMap=new WeakMap,s.active=!1})),this.nodeMap.set(r,(this.nodeMap.get(r)||new Set).add(i))},t.destroy=function(){},e})(),Mr,l0,HA,DE=!1;try{if(Array.from([1],function(e){return e*2})[0]!==2){var jA=document.createElement("iframe");document.body.appendChild(jA),Array.from=((W5=jA.contentWindow)==null?void 0:W5.Array.from)||Array.from,document.body.removeChild(jA)}}catch(e){console.debug("Unable to override Array.from",e)}var Io=XLe();function hu(e){e===void 0&&(e={});var t=e.emit,n=e.checkoutEveryNms,r=e.checkoutEveryNth,i=e.blockClass,s=i===void 0?"rr-block":i,o=e.blockSelector,a=o===void 0?null:o,l=e.ignoreClass,f=l===void 0?"rr-ignore":l,d=e.ignoreSelector,p=d===void 0?null:d,m=e.maskTextClass,_=m===void 0?"rr-mask":m,v=e.maskTextSelector,E=v===void 0?null:v,b=e.inlineStylesheet,w=b===void 0?!0:b,T=e.maskAllInputs,R=e.maskInputOptions,C=e.slimDOMOptions,k=e.maskInputFn,M=e.maskTextFn,I=e.hooks,$=e.packFn,Q=e.sampling,V=Q===void 0?{}:Q,N=e.dataURLOptions,U=N===void 0?{}:N,K=e.mousemoveWait,j=e.recordDOM,fe=j===void 0?!0:j,P=e.recordCanvas,ee=P===void 0?!1:P,W=e.recordCrossOriginIframes,de=W===void 0?!1:W,ce=e.recordAfter,L=ce===void 0?e.re
vendor: 12,423 bytes, lines 589-598
589cordAfter==="DOMContentLoaded"?e.recordAfter:"load":ce,J=e.userTriggeredOnInput,re=J===void 0?!1:J,me=e.collectFonts,be=me===void 0?!1:me,Ee=e.inlineImages,Fe=Ee===void 0?!1:Ee,Be=e.plugins,dt=e.keepIframeSrcFn,pt=dt===void 0?function(){return!1}:dt,Hn=e.ignoreCSSAttributes,Lr=Hn===void 0?new Set([]):Hn,jn=e.errorHandler;bUe(jn);var tt=de?window.parent===window:!0,mt=!1;if(!tt)try{window.parent.document&&(mt=!1)}catch{mt=!0}if(tt&&!t)throw new Error("emit function is required");if(!tt&&!mt)return function(){};K!==void 0&&V.mousemove===void 0&&(V.mousemove=K),Io.reset();var vn=T===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:R!==void 0?R:{password:!0},rn=C===!0||C==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:C==="all",headMetaDescKeywords:C==="all",headTitleMutations:C==="all"}:C||{};dUe();var sn,Sn=0,Ze=function(H){for(var Z=Ye(Be||[]),se;!(se=Z()).done;){var G=se.value;G.eventProcessor&&(H=G.eventProcessor(H))}return $&&!mt&&(H=$(H)),H};Mr=function(H,Z){var se,G=H;if(G.timestamp=NE(),(se=mf[0])!=null&&se.isFrozen()&&G.type!==an.FullSnapshot&&!(G.type===an.IncrementalSnapshot&&G.data.source===At.Mutation)&&mf.forEach(function(Ge){return Ge.unfreeze()}),tt)t?.(Ze(G),Z);else if(mt){var _e={type:"rrweb",event:Ze(G),origin:window.location.origin,isCheckout:Z};window.parent.postMessage(_e,"*")}if(G.type===an.FullSnapshot)sn=G,Sn=0;else if(G.type===an.IncrementalSnapshot){if(G.data.source===At.Mutation&&G.data.isAttachIframe)return;Sn++;var we=r&&Sn>=r,ze=n&&G.timestamp-sn.timestamp>n;(we||ze)&&l0(!0)}};for(var kn=function(H){Mr({type:an.IncrementalSnapshot,data:bn({source:At.Mutation},H)})},Tt=function(H){return Mr({type:an.IncrementalSnapshot,data:bn({source:At.Scroll},H)})},Kn=function(H){return Mr({type:an.IncrementalSnapshot,data:bn({source:At.CanvasMutation},H)})},it=function(H){return Mr({type:an.IncrementalSnapshot,data:bn({source:At.AdoptedStyleSheet},H)})},gr=new qUe({mutationCb:kn,adoptedStyleSheetCb:it}),Dr=new DUe({mirror:Io,mutationCb:kn,stylesheetManager:gr,recordCrossOriginIframes:de,wrappedEmit:Mr}),xs=Ye(Be||[]),Hs;!(Hs=xs()).done;){var ka=Hs.value;ka.getMirror&&ka.getMirror({nodeMirror:Io,crossOriginIframeMirror:Dr.crossOriginIframeMirror,crossOriginIframeStyleMirror:Dr.crossOriginIframeStyleMirror})}var wo=new WUe;HA=new GUe({recordCanvas:ee,mutationCb:Kn,win:window,blockClass:s,blockSelector:a,mirror:Io,sampling:V.canvas,dataURLOptions:U});var js=new PUe({mutationCb:kn,scrollCb:Tt,bypassOptions:{blockClass:s,blockSelector:a,maskTextClass:_,maskTextSelector:E,inlineStylesheet:w,maskInputOptions:vn,dataURLOptions:U,maskTextFn:M,maskInputFn:k,recordCanvas:ee,inlineImages:Fe,sampling:V,slimDOMOptions:rn,iframeManager:Dr,stylesheetManager:gr,canvasManager:HA,keepIframeSrcFn:pt,processedNodeManager:wo},mirror:Io});l0=function(H){if(H===void 0&&(H=!1),!!fe){Mr({type:an.Meta,data:{href:window.location.href,width:vX(),height:_X()}},H),gr.reset(),js.init(),mf.forEach(function(se){return se.lock()});var Z=yDe(document,{mirror:Io,blockClass:s,blockSelector:a,maskTextClass:_,maskTextSelector:E,inlineStylesheet:w,maskAllInputs:vn,maskTextFn:M,maskInputFn:k,slimDOM:rn,dataURLOptions:U,recordCanvas:ee,inlineImages:Fe,onSerialize:function(se){SX(se,Io)&&Dr.addIframe(se),EX(se,Io)&&gr.trackLinkElement(se),GI(se)&&js.addShadowRoot(nn.shadowRoot(se),document)},onIframeLoad:function(se,G){Dr.attachIframe(se,G),js.observeAttachShadow(se)},onStylesheetLoad:function(se,G){gr.attachLinkElement(se,G)},keepIframeSrcFn:pt});if(!Z)return console.warn("Failed to snapshot the document");Mr({type:an.FullSnapshot,data:{node:Z,initialOffset:mX(window)}},H),mf.forEach(function(se){return se.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&gr.adoptStyleSheets(document.adoptedStyleSheets,Io.getId(document))}};try{var Vs=[],ji=function(H){var Z;return pn(LUe)({mutationCb:kn,mousemoveCb:function(se,G){return Mr({type:an.IncrementalSnapshot,data:{source:G,positions:se}})},mouseInteractionCb:function(se){return Mr({type:an.IncrementalSnapshot,data:bn({source:At.MouseInteraction},se)})},scrollCb:Tt,viewportResizeCb:function(se){return Mr({type:an.IncrementalSnapshot,data:bn({source:At.ViewportResize},se)})},inputCb:function(se){return Mr({type:an.IncrementalSnapshot,data:bn({source:At.Input},se)})},mediaInteractionCb:function(se){return Mr({type:an.IncrementalSnapshot,data:bn({source:At.MediaInteraction},se)})},styleSheetRuleCb:function(se){return Mr({type:an.IncrementalSnapshot,data:bn({source:At.StyleSheetRule},se)})},styleDeclarationCb:function(se){return Mr({type:an.IncrementalSnapshot,data:bn({source:At.StyleDeclaration},se)})},canvasMutationCb:Kn,fontCb:function(se){return Mr({type:an.IncrementalSnapshot,data:bn({source:At.Font},se)})},selectionCb:function(se){Mr({type:an.IncrementalSnapshot,data:bn({source:At.Selection},se)})},customElementCb:function(se){Mr({type:an.IncrementalSnapshot,data:bn({source:At.CustomElement},se)})},blockClass:s,ignoreClass:f,ignoreSelector:p,maskTextClass:_,maskTextSelector:E,maskInputOptions:vn,inlineStylesheet:w,sampling:V,recordDOM:fe,recordCanvas:ee,inlineImages:Fe,userTriggeredOnInput:re,collectFonts:be,doc:H,maskInputFn:k,maskTextFn:M,keepIframeSrcFn:pt,blockSelector:a,slimDOMOptions:rn,dataURLOptions:U,mirror:Io,iframeManager:Dr,stylesheetManager:gr,shadowDomManager:js,processedNodeManager:wo,canvasManager:HA,ignoreCSSAttributes:Lr,plugins:((Z=Be?.filter(function(se){return se.observer}))==null?void 0:Z.map(function(se){return{observer:se.observer,options:se.options,callback:function(G){return Mr({type:an.Plugin,data:{plugin:se.name,payload:G}})}}}))||[]},I)};Dr.addLoadListener(function(H){try{Vs.push(ji(H.contentDocument))}catch(Z){console.warn(Z)}});var sr=function(){l0(),Vs.push(ji(document)),DE=!0};return document.readyState==="interactive"||document.readyState==="complete"?sr():(Vs.push(Qi("DOMContentLoaded",function(){Mr({type:an.DomContentLoaded,data:{}}),L==="DOMContentLoaded"&&sr()})),Vs.push(Qi("load",function(){Mr({type:an.Load,data:{}}),L==="load"&&sr()},window))),function(){Vs.forEach(function(H){try{H()}catch(se){var Z=String(se).toLowerCase();Z.includes("cross-origin")||console.warn(se)}}),wo.destroy(),DE=!1,SUe()}}catch(H){console.warn(H)}}hu.addCustomEvent=function(e,t){if(!DE)throw new Error("please add custom event after start recording");Mr({type:an.Custom,data:{tag:e,payload:t}})};hu.freezePage=function(){mf.forEach(function(e){return e.freeze()})};hu.takeFullSnapshot=function(e){if(!DE)throw new Error("please take full snapshot after start recording");l0(e)};hu.mirror=Io;var Gz;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Gz||(Gz={}));hu.addCustomEvent;hu.freezePage;hu.takeFullSnapshot;var YUe=Object.defineProperty,XUe=function(e,t,n){return t in e?YUe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},lS=function(e,t,n){return XUe(e,(typeof t>"u"?"undefined":Wt(t))!=="symbol"?t+"":t,n)};function KUe(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var Xd=(function(){function e(n){lS(this,"fileName"),lS(this,"functionName"),lS(this,"lineNumber"),lS(this,"columnNumber"),this.fileName=n.fileName||"",this.functionName=n.functionName||"",this.lineNumber=n.lineNumber,this.columnNumber=n.columnNumber}var t=e.prototype;return t.toString=function(){var r=this.lineNumber||"",i=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+r+":"+i+")":this.fileName+":"+r+":"+i},e})(),ZUe=/(^|@)\S+:\d+/,qz=/^\s*at .*(\S+:\d+|\(native\))/m,JUe=/^(eval@)?(\[native code])?$/,VA={parse:function(t){return t?typeof t.stacktrace<"u"||typeof t["opera#sourceloc"]<"u"?this.parseOpera(t):t.stack&&t.stack.match(qz)?this.parseV8OrIE(t):t.stack?this.parseFFOrSafari(t):(console.warn("[console-record-plugin]: Failed to parse error object:",t),[]):[]},extractLocation:function(t){if(t.indexOf(":")===-1)return[t];var n=/(.+?)(?::(\d+))?(?::(\d+))?$/,r=n.exec(t.replace(/[()]/g,""));if(!r)throw new Error("Cannot parse given url: "+t);return[r[1],r[2]||void 0,r[3]||void 0]},parseV8OrIE:function(t){var n=t.stack.split(`
590`).filter(function(r){return!!r.match(qz)},this);return n.map(function(r){r.indexOf("(eval ")>-1&&(r=r.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var i=r.replace(/^\s+/,"").replace(/\(eval code/g,"("),s=i.match(/ (\((.+):(\d+):(\d+)\)$)/);i=s?i.replace(s[0],""):i;var o=i.split(/\s+/).slice(1),a=this.extractLocation(s?s[1]:o.pop()),l=o.join(" ")||void 0,f=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new Xd({functionName:l,fileName:f,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(t){var n=t.stack.split(`
591`).filter(function(r){return!r.match(JUe)},this);return n.map(function(r){if(r.indexOf(" > eval")>-1&&(r=r.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),r.indexOf("@")===-1&&r.indexOf(":")===-1)return new Xd({functionName:r});var i=/((.*".+"[^@]*)?[^@]*)(?:@)/,s=r.match(i),o=s&&s[1]?s[1]:void 0,a=this.extractLocation(r.replace(i,""));return new Xd({functionName:o,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf(`
592`)>-1&&t.message.split(`
593`).length>t.stacktrace.split(`
594`).length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split(`
595`),i=[],s=2,o=r.length;s<o;s+=2){var a=n.exec(r[s]);a&&i.push(new Xd({fileName:a[2],lineNumber:parseFloat(a[1])}))}return i},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split(`
596`),i=[],s=0,o=r.length;s<o;s+=2){var a=n.exec(r[s]);a&&i.push(new Xd({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return i},parseOpera11:function(t){var n=t.stack.split(`
597`).filter(function(r){return!!r.match(ZUe)&&!r.match(/^Error created at/)},this);return n.map(function(r){var i=r.split("@"),s=this.extractLocation(i.pop()),o=i.shift()||"",a=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Xd({functionName:a,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})},this)}};function QUe(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var n=e.localName;if(!n)break;n=n.toLowerCase();var r=e.parentElement,i=[];if(r.children&&r.children.length>0)for(var s=0;s<r.children.length;s++){var o=r.children[s];o.localName&&o.localName.toLowerCase&&o.localName.toLowerCase()===n&&i.push(o)}i.length>1&&(n+=":eq("+i.indexOf(e)+")"),t=n+(t?">"+t:""),e=r}return t}function WI(e){return Object.prototype.toString.call(e)==="[object Object]"}function LX(e,t){if(t===0)return!0;for(var n=Object.keys(e),r=Ye(n),i;!(i=r()).done;){var s=i.value;if(WI(e[s])&&LX(e[s],t-1))return!0}return!1}function Kd(e,t){var n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);var r=[],i=[];return JSON.stringify(e,function(a,l){if(r.length>0){var f=r.indexOf(this);~f?r.splice(f+1):r.push(this),~f?i.splice(f,1/0,a):i.push(a),~r.indexOf(l)&&(r[0]===l?l="[Circular ~]":l="[Circular ~."+i.slice(0,r.indexOf(l)).join(".")+"]")}else r.push(l);if(l===null)return l;if(l===void 0)return"undefined";if(s(l))return o(l);if((typeof l>"u"?"undefined":Wt(l))==="bigint")return l.toString()+"n";if(wt(l,Event)){var d={};for(var p in l){var m=l[p];Array.isArray(m)?d[p]=QUe(m.length?m[0]:null):d[p]=m}return d}else{if(wt(l,Node))return wt(l,HTMLElement)?l?l.outerHTML:"":l.nodeName;if(wt(l,Error))return l.stack?l.stack+`
598End of stack for Error object`:l.name+": "+l.message}return l});function s(a){return!!(WI(a)&&Object.keys(a).length>n.numOfKeysLimit||typeof a=="function"||WI(a)&&LX(a,n.depthOfLimit))}function o(a){var l=a.toString();return n.stringLengthLimit&&l.length>n.stringLengthLimit&&(l=""+l.slice(0,n.stringLengthLimit)+"..."),l}}var Wz={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","t
598ime","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function e3e(e,t,n){var r=n?Object.assign({},Wz,n):Wz,i=r.logger;if(!i)return function(){};var s;typeof i=="string"?s=t[i]:s=i;var o=0,a=!1,l=[];if(r.level.includes("error")){var f=function(E){var b=E.message,w=E.error,T=VA.parse(w).map(function(C){return C.toString()}),R=[Kd(b,r.stringifyOptions)];e({level:"error",trace:T,payload:R})};t.addEventListener("error",f),l.push(function(){t.removeEventListener("error",f)});var d=function(E){var b,w;wt(E.reason,Error)?(b=E.reason,w=[Kd("Uncaught (in promise) "+b.name+": "+b.message,r.stringifyOptions)]):(b=new Error,w=[Kd("Uncaught (in promise)",r.stringifyOptions),Kd(E.reason,r.stringifyOptions)]);var T=VA.parse(b).map(function(R){return R.toString()});e({level:"error",trace:T,payload:w})};t.addEventListener("unhandledrejection",d),l.push(function(){t.removeEventListener("unhandledrejection",d)})}for(var p=Ye(r.level),m;!(m=p()).done;){var _=m.value;l.push(v(s,_))}return function(){l.forEach(function(E){return E()})};function v(E,b){var w=this;return E[b]?KUe(E,b,function(T){var R=w;return function(){for(var C=arguments.length,k=new Array(C),M=0;M<C;M++)k[M]=arguments[M];if(T.apply(R,k),!(b==="assert"&&k[0])&&!a){a=!0;try{var I=VA.parse(new Error).map(function(V){return V.toString()}).splice(1),$=b==="assert"?k.slice(1):k,Q=$.map(function(V){return Kd(V,r.stringifyOptions)});o++,o<r.lengthThreshold?e({level:b,trace:I,payload:Q}):o===r.lengthThreshold&&e({level:"warn",trace:[],payload:[Kd("The number of log records reached the threshold.")]})}catch(V){T.apply(void 0,[].concat(["rrweb logger error:",V],k))}finally{a=!1}
vendor: 46,371 bytes, lines 598-604
598}}}):function(){}}}var t3e="rrweb/console@1",n3e=function(e){return{name:t3e,observer:e3e,options:e}},Yz=Te.setImmediate,Zl,YI,XI,DX=Object.prototype.toString,r3e=typeof Yz<"u"?function(t){return Yz(t)}:setTimeout;try{Object.defineProperty({},"x",{}),Zl=function(t,n,r,i){return Object.defineProperty(t,n,{value:r,writable:!0,configurable:i!==!1})}}catch{Zl=function(n,r,i){return n[r]=i,n}}XI=(function(){var t,n,r;function i(s,o){this.fn=s,this.self=o,this.next=void 0}return{add:function(o,a){r=new i(o,a),n?n.next=r:t=r,n=r,r=void 0},drain:function(){var o=t;for(t=n=YI=void 0;o;)o.fn.call(o.self),o=o.next}}})();function PE(e,t){XI.add(e,t),YI||(YI=r3e(XI.drain))}function PX(e){var t,n=typeof e;return e!==null&&(n==="object"||n==="function")&&(t=e.then),typeof t=="function"?t:!1}function dL(){for(var e=0;e<this.chain.length;e++)i3e(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function i3e(e,t,n){var r,i;try{t===!1?n.reject(e.msg):(t===!0?r=e.msg:r=t.call(void 0,e.msg),r===n.promise?n.reject(TypeError("Promise-chain cycle")):(i=PX(r))?i.call(r,n.resolve,n.reject):n.resolve(r))}catch(s){n.reject(s)}}function $X(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=PX(e))?PE(function(){var r=new Xz(n);try{t.call(e,function(){$X.apply(r,arguments)},function(){Gm.apply(r,arguments)})}catch(i){Gm.call(r,i)}}):(n.msg=e,n.state=1,n.chain.length>0&&PE(dL,n))}catch(r){Gm.call(new Xz(n),r)}}}function Gm(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&PE(dL,t))}function FX(e,t,n,r){for(var i=0;i<t.length;i++)(function(o){e.resolve(t[o]).then(function(l){n(o,l)},r)})(i)}function Xz(e){this.def=e,this.triggered=!1}function s3e(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function pu(e){if(typeof e!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var t=new s3e(this);this.then=function(r,i){var s={success:typeof r=="function"?r:!0,failure:typeof i=="function"?i:!1};return s.promise=new this.constructor(function(a,l){if(typeof a!="function"||typeof l!="function")throw TypeError("Not a function");s.resolve=a,s.reject=l}),t.chain.push(s),t.state!==0&&PE(dL,t),s.promise},this.catch=function(r){return this.then(void 0,r)};try{e.call(void 0,function(r){$X.call(t,r)},function(r){Gm.call(t,r)})}catch(n){Gm.call(t,n)}}var UX=Zl({},"constructor",pu,!1);pu.prototype=UX;Zl(UX,"__NPO__",0,!1);Zl(pu,"resolve",function(t){var n=this;return t&&typeof t=="object"&&t.__NPO__===1?t:new n(function(i,s){if(typeof i!="function"||typeof s!="function")throw TypeError("Not a function");i(t)})});Zl(pu,"reject",function(t){return new this(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");i(t)})});Zl(pu,"all",function(t){var n=this;return DX.call(t)!=="[object Array]"?n.reject(TypeError("Not an array")):t.length===0?n.resolve([]):new n(function(i,s){if(typeof i!="function"||typeof s!="function")throw TypeError("Not a function");var o=t.length,a=Array(o),l=0;FX(n,t,function(d,p){a[d]=p,++l===o&&i(a)},s)})});Zl(pu,"race",function(t){var n=this;return DX.call(t)!=="[object Array]"?n.reject(TypeError("Not an array")):new n(function(i,s){if(typeof i!="function"||typeof s!="function")throw TypeError("Not a function");FX(n,t,function(a,l){i(l)},s)})});var cn;typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?cn=Promise:cn=pu;var mo={DEBUG:!1,LIB_VERSION:"2.72.0"},qm=1440*60*1e3,GA=8*1e3,wT=Array.prototype,o3e=Function.prototype,BX=Object.prototype,Al=wT.slice,Bv=BX.toString,TT=BX.hasOwnProperty,ei=Te.console,dc=Te.navigator,Rt=Te.document,wm=Te.opera,Kz=Te.screen,ca=dc.userAgent,qA=o3e.bind,Zz=wT.forEach,Jz=wT.indexOf,Qz=wT.map,a3e=Array.isArray,KI={},A={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},_n={log:function(){if(mo.DEBUG&&!A.isUndefined(ei)&&ei)try{ei.log.apply(ei,arguments)}catch{A.each(arguments,function(t){ei.log(t)})}},warn:function(){if(mo.DEBUG&&!A.isUndefined(ei)&&ei){var e=["Mixpanel warning:"].concat(A.toArray(arguments));try{ei.warn.apply(ei,e)}catch{A.each(e,function(n){ei.warn(n)})}}},error:function(){if(mo.DEBUG&&!A.isUndefined(ei)&&ei){var e=["Mixpanel error:"].concat(A.toArray(arguments));try{ei.error.apply(ei,e)}catch{A.each(e,function(n){ei.error(n)})}}},critical:function(){if(!A.isUndefined(ei)&&ei){var e=["Mixpanel error:"].concat(A.toArray(arguments));try{ei.error.apply(ei,e)}catch{A.each(e,function(n){ei.error(n)})}}}},WA=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(_n,arguments)}},rd=function(e){return{log:WA(_n.log,e),error:WA(_n.error,e),critical:WA(_n.critical,e)}},B_=function(e){return function(){try{return e.apply(this,arguments)}catch(t){_n.critical("Implementation error. Please turn on debug and contact [email protected]."),mo.DEBUG&&_n.critical(t)}}},zX=function(e){var t=e.prototype;for(var n in t)typeof t[n]=="function"&&(t[n]=B_(t[n]))};A.bind=function(e,t){var n,r;if(qA&&e.bind===qA)return qA.apply(e,Al.call(arguments,1));if(!A.isFunction(e))throw new TypeError;return n=Al.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(Al.call(arguments)));var i={};i.prototype=e.prototype;var s=new i;i.prototype=null;var o=e.apply(s,n.concat(Al.call(arguments)));return Object(o)===o?o:s},r};A.each=function(e,t,n){if(e!=null){if(Zz&&e.forEach===Zz)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r,e)===KI)return}else for(var s in e)if(TT.call(e,s)&&t.call(n,e[s],s,e)===KI)return}};A.extend=function(e){return A.each(Al.call(arguments,1),function(t){for(var n in t)t[n]!==void 0&&(e[n]=t[n])}),e};A.isArray=a3e||function(e){return Bv.call(e)==="[object Array]"};A.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch{return!1}};A.isArguments=function(e){return!!(e&&TT.call(e,"callee"))};A.toArray=function(e){return e?e.toArray?e.toArray():A.isArray(e)||A.isArguments(e)?Al.call(e):A.values(e):[]};A.map=function(e,t,n){if(Qz&&e.map===Qz)return e.map(t,n);var r=[];return A.each(e,function(i){r.push(t.call(n,i))}),r};A.keys=function(e){var t=[];return e===null||A.each(e,function(n,r){t[t.length]=r}),t};A.values=function(e){var t=[];return e===null||A.each(e,function(n){t[t.length]=n}),t};A.include=function(e,t){var n=!1;return e===null?n:Jz&&e.indexOf===Jz?e.indexOf(t)!=-1:(A.each(e,function(r){if(n||(n=r===t))return KI}),n)};A.includes=function(e,t){return e.indexOf(t)!==-1};A.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e};A.isObject=function(e){return e===Object(e)&&!A.isArray(e)};A.isEmptyObject=function(e){if(A.isObject(e)){for(var t in e)if(TT.call(e,t))return!1;return!0}return!1};A.isUndefined=function(e){return e===void 0};A.isString=function(e){return Bv.call(e)=="[object String]"};A.isDate=function(e){return Bv.call(e)=="[object Date]"};A.isNumber=function(e){return Bv.call(e)=="[object Number]"};A.isElement=function(e){return!!(e&&e.nodeType===1)};A.encodeDates=function(e){return A.each(e,function(t,n){A.isDate(t)?e[n]=A.formatDate(t):A.isObject(t)&&(e[n]=A.encodeDates(t))}),e};A.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};A.formatDate=function(e){function t(n){return n<10?"0"+n:n}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())};A.strip_empty_properties=function(e){var t={};return A.each(e,function(n,r){A.isString(n)&&n.length>0&&(t[r]=n)}),t};A.truncate=function(e,t){var n;return typeof e=="string"?n=e.slice(0,t):A.isArray(e)?(n=[],A.each(e,function(r){n.push(A.truncate(r,t))})):A.isObject(e)?(n={},A.each(e,function(r,i){n[i]=A.truncate(r,t)})):n=e,n};A.JSONEncode=(function(){return function(e){var t=e,n=function(i){var s=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return s.lastIndex=0,s.test(i)?'"'+i.replace(s,function(a){var l=o[a];return typeof l=="string"?l:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'},r=function(i,s){var o="",a="    ",l=0,f="",d="",p=0,m=o,_=[],v=s[i];switch(v&&typeof v=="object"&&typeof v.toJSON=="function"&&(v=v.toJSON(i)),typeof v){case"string":return n(v);case"number":return isFinite(v)?String(v):"null";case"boolean":case"null":return String(v);case"object":if(!v)return"null";if(o+=a,_=[],Bv.apply(v)==="[object Array]"){for(p=v.length,l=0;l<p;l+=1)_[l]=r(l,v)||"null";return d=_.length===0?"[]":o?`[
599`+o+_.join(`,
600`+o)+`
601`+m+"]":"["+_.join(",")+"]",o=m,d}for(f in v)TT.call(v,f)&&(d=r(f,v),d&&_.push(n(f)+(o?": ":":")+d));return d=_.length===0?"{}":o?"{"+_.join(",")+m+"}":"{"+_.join(",")+"}",o=m,d}};return r("",{"":t})}})();A.JSONDecode=(function(){var e,t,n={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
602`,r:"\r",t:"	"},r,i=function(_){var v=new SyntaxError(_);throw v.at=e,v.text=r,v},s=function(_){return _&&_!==t&&i("Expected '"+_+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},o=function(){var _,v="";for(t==="-"&&(v="-",s("-"));t>="0"&&t<="9";)v+=t,s();if(t===".")for(v+=".";s()&&t>="0"&&t<="9";)v+=t;if(t==="e"||t==="E")for(v+=t,s(),(t==="-"||t==="+")&&(v+=t,s());t>="0"&&t<="9";)v+=t,s();if(_=+v,!isFinite(_))i("Bad number");else return _},a=function(){var _,v,E="",b;if(t==='"')for(;s();){if(t==='"')return s(),E;if(t==="\\")if(s(),t==="u"){for(b=0,v=0;v<4&&(_=parseInt(s(),16),!!isFinite(_));v+=1)b=b*16+_;E+=String.fromCharCode(b)}else if(typeof n[t]=="string")E+=n[t];else break;else E+=t}i("Bad string")},l=function(){for(;t&&t<=" ";)s()},f=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}i('Unexpected "'+t+'"')},d,p=function(){var _=[];if(t==="["){if(s("["),l(),t==="]")return s("]"),_;for(;t;){if(_.push(d()),l(),t==="]")return s("]"),_;s(","),l()}}i("Bad array")},m=function(){var _,v={};if(t==="{"){if(s("{"),l(),t==="}")return s("}"),v;for(;t;){if(_=a(),l(),s(":"),Object.hasOwnProperty.call(v,_)&&i('Duplicate key "'+_+'"'),v[_]=d(),l(),t==="}")return s("}"),v;s(","),l()}}i("Bad object")};return d=function(){switch(l(),t){case"{":return m();case"[":return p();case'"':return a();case"-":return o();default:return t>="0"&&t<="9"?o():f()}},function(_){var v;return r=_,e=0,t=" ",v=d(),l(),t&&i("Syntax error"),v}})();A.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n,r,i,s,o,a,l,f,d=0,p=0,m="",_=[];if(!e)return e;e=A.utf8Encode(e);do n=e.charCodeAt(d++),r=e.charCodeAt(d++),i=e.charCodeAt(d++),f=n<<16|r<<8|i,s=f>>18&63,o=f>>12&63,a=f>>6&63,l=f&63,_[p++]=t.charAt(s)+t.charAt(o)+t.charAt(a)+t.charAt(l);while(d<e.length);switch(m=_.join(""),e.length%3){case 1:m=m.slice(0,-2)+"==";break;case 2:m=m.slice(0,-1)+"=";break}return m};A.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,`
603`).replace(/\r/g,`
604`);var t="",n,r,i=0,s;for(n=r=0,i=e.length,s=0;s<i;s++){var o=e.charCodeAt(s),a=null;o<128?r++:o>127&&o<2048?a=String.fromCharCode(o>>6|192,o&63|128):a=String.fromCharCode(o>>12|224,o>>6&63|128,o&63|128),a!==null&&(r>n&&(t+=e.substring(n,r)),t+=a,n=r=s+1)}return r>n&&(t+=e.substring(n,e.length)),t};A.UUID=function(){try{return Te.crypto.randomUUID()}catch{for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",A.map(e,function(r){return r.toString(16)}).join("")}};var eH=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];A.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<eH.length;t++)if(e.indexOf(eH[t])!==-1)return!0;return!1};A.HTTPBuildQuery=function(e,t){var n,r,i=[];return A.isUndefined(t)&&(t="&"),A.each(e,function(s,o){n=encodeURIComponent(s.toString()),r=encodeURIComponent(o),i[i.length]=r+"="+n}),i.join(t)};A.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var n="[\\?&]"+t+"=([^&#]*)",r=new RegExp(n),i=r.exec(e);if(i===null||i&&typeof i[1]!="string"&&i[1].length)return"";var s=i[1];try{s=decodeURIComponent(s)}catch{_n.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")};A.cookie={get:function(e){for(var t=e+"=",n=Rt.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=A.JSONDecode(A.cookie.get(e))||{}}catch{}return t},set_seconds:function(e,t,n,r,i,s,o){var a="",l="",f="";if(o)a="; domain="+o;else if(r){var d=tH(Rt.location.hostname);a=d?"; domain=."+d:""}if(n){var p=new Date;p.setTime(p.getTime()+n*1e3),l="; expires="+p.toGMTString()}s&&(i=!0,f="; SameSite=None"),i&&(f+="; secure"),Rt.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+a+f},set:function(e,t,n,r,i,s,o){var a="",l="",f="";if(o)a="; domain="+o;else if(r){var d=tH(Rt.location.hostname);a=d?"; domain=."+d:""}if(n){var p=new Date;p.setTime(p.getTime()+n*24*60*60*1e3),l="; expires="+p.toGMTString()}s&&(i=!0,f="; SameSite=None"),i&&(f+="; secure");var m=e+"="+encodeURIComponent(t)+l+"; path=/"+a+f;return Rt.cookie=m,m},remove:function(e,t,n){A.cookie.set(e,"",-1,t,!1,!1,n)}};var HX=function(e){var t=!0;try{var n="__mplss_"+hL(8),r="xyz";e.setItem(n,r),e.getItem(n)!==r&&(t=!1),e.removeItem(n)}catch{t=!1}return t},YA=null,z_=function(e,t){return YA!==null&&!t?YA:YA=HX(e||Te.localStorage)},XA=null,c3e=function(e,t){return XA!==null&&!t?XA:XA=HX(e||Te.sessionStorage)};function jX(e,t,n){var r=function(i){_n.error(t+" error: "+i)};return{is_supported:function(i){var s=n(e,i);return s||_n.error(t+" unsupported"),s},error:r,get:function(i){try{return e.getItem(i)}catch(s){r(s)}return null},parse:function(i){try{return A.JSONDecode(e.getItem(i))||{}}catch{}return null},set:function(i,s){try{e.setItem(i,s)}catch(o){r(o)}},remove:function(i){try{e.removeItem(i)}catch(s){r(s)}}}}A.localStorage=jX(Te.localStorage,"localStorage",z_);A.sessionStorage=jX(Te.sessionStorage,"sessionStorage",c3e);A.register_event=(function(){var e=function(r,i,s,o,a){if(!r){_n.error("No valid element provided to register_event");return}if(r.addEventListener&&!o)r.addEventListener(i,s,!!a);else{var l="on"+i,f=r[l];r[l]=t(r,s,f)}};function t(r,i,s){var o=function(a){if(a=a||n(Te.event),!!a){var l=!0,f,d;return A.isFunction(s)&&(f=s(a)),d=i.call(r,a),(f===!1||d===!1)&&(l=!1),l}};return o}function n(r){return r&&(r.preventDefault=n.preventDefault,r.stopPropagation=n.stopPropagation),r}return n.preventDefault=function(){this.returnValue=!1},n.stopPropagation=function(){this.cancelBubble=!0},e})();var l3e=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');A.dom_query=(function(){function e(i){return i.all?i.all:i.getElementsByTagName("*")}var t=/[\t\r\n]/g;function n(i,s){var o=" "+s+" ";return(" "+i.className+" ").replace(t," ").indexOf(o)>=0}function r(i){if(!Rt.getElementsByTagName)return[];var s=i.split(" "),o,a,l,f,d,p,m,_,v,E,b=[Rt];for(p=0;p<s.length;p++){if(o=s[p].replace(/^\s+/,"").replace(/\s+$/,""),o.indexOf("#")>-1){a=o.split("#"),l=a[0];var w=a[1],T=Rt.getElementById(w);if(!T||l&&T.nodeName.toLowerCase()!=l)return[];b=[T];continue}if(o.indexOf(".")>-1){a=o.split("."),l=a[0];var R=a[1];for(l||(l="*"),f=[],d=0,m=0;m<b.length;m++)for(l=="*"?v=e(b[m]):v=b[m].getElementsByTagName(l),_=0;_<v.length;_++)f[d++]=v[_];for(b=[],E=0,m=0;m<f.length;m++)f[m].className&&A.isString(f[m].className)&&n(f[m],R)&&(b[E++]=f[m]);continue}var C=o.match(l3e);if(C){l=C[1];var k=C[2],M=C[3],I=C[4];for(l||(l="*"),f=[],d=0,m=0;m<b.length;m++)for(l=="*"?v=e(b[m]):v=b[m].getElementsByTagName(l),_=0;_<v.length;_++)f[d++]=v[_];b=[],E=0;var $;switch(M){case"=":$=function(Q){return Q.getAttribute(k)==I};break;case"~":$=function(Q){return Q.getAttribute(k).match(new RegExp("\\b"+I+"\\b"))};break;case"|":$=function(Q){return Q.getAttribute(k).match(new RegExp("^"+I+"-?"))};break;case"^":$=function(Q){return Q.getAttribute(k).indexOf(I)===0};break;case"$":$=function(Q){return Q.getAttribute(k).lastIndexOf(I)==Q.getAttribute(k).length-I.length};break;case"*":$=function(Q){return Q.getAttribute(k).indexOf(I)>-1};break;default:$=function(Q){return Q.getAttribute(k)}}for(b=[],E=0,m=0;m<f.length;m++)$(f[m])&&(b[E++]=f[m]);continue}for(l=o,f=[],d=0,m=0;m<b.length;m++)for(v=b[m].getElementsByTagName(l),_=0;_<v.length;_++)f[d++]=v[_];b=f}return b}return function(i){return A.isElement(i)?[i]:A.isObject(i)&&!A.isUndefined(i.length)?i:r.call(this,i)}})();var u3e=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],f3e=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];A.info={campaignParams:function(e){var t="",n={};return A.each(u3e,function(r){t=A.getQueryParam(Rt.URL,r),t.length?n[r]=t:e!==void 0&&(n[r]=e)}),n},clickParams:function(){var e="",t={};return A.each(f3e,function(n){e=A.getQueryParam(Rt.URL,n),e.length&&(t[n]=e)}),t},marketingParams:function(){return A.extend(A.info.campaignParams(),A.info.clickParams())},searchEngine:function(e){return e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(e){var t=A.info.searchEngine(e),n=t!="yahoo"?"q":"p",r={};if(t!==null){r.$search_engine=t;var i=A.getQueryParam(e,n);i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,n){return t=t||"",n||A.includes(e," OPR/")?A.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":A.includes(e,"IEMobile")||A.includes(e,"WPDesktop")?"Internet Explorer Mobile":A.includes(e,"SamsungBrowser/")?"Samsung Internet":A.includes(e,"Edge")||A.includes(e,"Edg/")?"Microsoft Edge":A.includes(e,"FBIOS")?"Facebook Mobile":A.includes(e,"Whale/")?"Whale Browser":A.includes(e,"Chrome")?"Chrome":A.includes(e,"CriOS")?"Chrome iOS":A.includes(e,"UCWEB")||A.includes(e,"UCBrowser")?"UC Browser":A.includes(e,"FxiOS")?"Firefox iOS":A.includes(t,"Apple")?A.includes(e,"Mobile")?"Mobile Safari":"Safari":A.includes(e,"Android")?"Android Mobile":A.includes(e,"Konqueror")?"Konqueror":A.includes(e,"Firefox")?"Firefox":A.includes(e,"MSIE")||A.includes(e,"Trident/")?"Internet Explorer":A.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r=A.info.browser(e,t,n),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},s=i[r];if(s===void 0)return null;var o=e.match(s);return o?parseFloat(o[o.length-2]):null},os:function(){var e=ca;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return Te.location.href},properties:function(e){return typeof e!="object"&&(e={}),A.extend(A.strip_empty_properties({$os:A.info.os(),$browser:A.info.browser(ca,dc.vendor,wm),$referrer:Rt.referrer,$referring_domain:A.info.referringDomain(Rt.referrer),$device:A.info.device(ca)}),{$current_url:A.info.currentUrl(),$browser_version:A.info.browserVersion(ca,dc.vendor,wm),$screen_height:Kz.height,$screen_width:Kz.width,mp_lib:"web",$lib_version:mo.LIB_VERSION,$insert_id:hL(),time:A.timestamp()/1e3},A.strip_empty_properties(e))},people_properties:function(){return A.extend(A.strip_empty_properties({$os:A.info.os(),$browser:A.info.browser(ca,dc.vendor,wm)}),{$browser_version:A.info.browserVersion(ca,dc.vendor,wm)})},mpPageViewProperties:function(){return A.strip_empty_properties({current_page_title:Rt.title,current_domain:Te.location.hostname,current_url_path:Te.location.pathname,current_url_protocol:Te.location.protocol,current_url_search:Te.location.search})}};var d3e=function(e,t){var n=null,r=[];return function(i){var s=this;return r.push(i),n||(n=new cn(function(o){setTimeout(function(){var a=e.apply(s,[r]);n=null,r=[],o(a)},t)})),n}},hL=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},h3e=function(){var e=A.UUID().replace(/-/g,""),t=A.UUID().replace(/-/g,"").substring(0,16),n="01";return"00-"+e+"-"+t+"-"+n},p3e=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,g3e=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,tH=function(e){var t=g3e,n=e.split("."),r=n[n.length-1];(r.length>4||r==="com"||r==="org")&&(t=p3e);var i=e.match(t);return i?i[0]:""},m3e=function(){var e=Te.navigator.onLine;return A.isUndefined(e)||e},Bl=function(){},gp=null,$E=null;typeof JSON<"u"&&(gp=JSON.stringify,$E=JSON.parse);gp=gp||A.JSONEncode;$E=$E||A.JSONDecode;var _3e=function(e,t,n){if(!Te.CompressionStream)return!1;var r=A.info.browser(e,t,n),i=A.info.browserVersion(e,t,n);return!((r==="Safari"||r==="Mobile Safari")&&i>=16.4&&i<16.6)};A.info=A.info;A.info.browser=A.info.browser;A.info.browserVersion=A.info.browserVersion;A.info.device=A.info.device;A.info.properties=A.info.properties;A.isBlockedUA=A.isBlockedUA;A.isEmptyObject=A.isEmptyObject;A.isObject=A.isObject;A.JSONDecode=A.JSONDecode;A.JSONEncode=A.JSONEncode;A.toArray=A.toArray;A.NPO=pu;var v3e="mixpanelBrowserDb",VX="mixpanelRecordingEvents",pL="mixpanelRecordingRegistry",y3e=1,b3e=[VX,pL],Vo=function(e){this.dbPromise=null,this.storeName=e};Vo.prototype._openDb=function(){return new cn(function(e,t){var n=Te.indexedDB.open(v3e,y3e);n.onerror=function(){t(n.error)},n.onsuccess=function(){e(n.result)},n.onupgradeneeded=function(r){var i=r.target.result;b3e.forEach(function(s){i.createObjectStore(s)})}})};Vo.prototype.init=function(){return Te.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof Te.IDBDatabase?cn.resolve():cn.reject(e)})):cn.reject("indexedDB is not supported in this browser")};Vo.prototype.isInitialized=function(){return!!this.dbPromise};Vo.prototype.makeTransaction=function(e,t){var n=this.storeName,r=function(i){return new cn(function(s,o){var a=i.transaction(n,e);a.oncomplete=function(){s(a)},a.onabort=a.onerror=function(){o(a.error)},t(a.objectStore(n))})};return this.dbPromise.then(r).catch((function(i){return i&&i.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(r)):cn.reject(i)}).bind(this))};Vo.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(n){n.put(t,e)})};Vo.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(n){t=n.get(e)}).then(function(){return t.result})};Vo.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})};Vo.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var S3e="__mp_opt_in_out_";function E3e(e,t){WX(!0,e,t)}function w3e(e,t){WX(!1,e,t)}function T3e(e,t){return qX(e,t)==="1"}function GX(e,t){if(C3e(t))return _n.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var n=qX(e,t)==="0";return n&&_n.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function gu(e){return _L(e,function(t){return this.get_config(t)})}function mu(e){return _L(e,function(t){return this._get_config(t)})}function jp(e){return _L(e,function(t){return this._get_config(t)})}function x3e(e,t){t=t||{},gL(t).remove(mL(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function gL(e){return e=e||{},e.persistenceType==="localStorage"?A.localStorage:A.cookie}function mL(e,t){return t=t||{},(t.persistencePrefix||S3e)+e}function qX(e,t){return gL(t).get(mL(e,t))}function C3e(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||Te,n=t.navigator||{},r=!1;return A.each([n.doNotTrack,n.msDoNotTrack,t.doNotTrack],function(i){A.includes([!0,1,"1","yes"],i)&&(r=!0)}),r}function WX(e,t,n){if(!A.isString(t)||!t.length){_n.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}n=n||{},gL(n).set(mL(t,n),e?1:0,A.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&e&&n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0})}function _L(e,t){return function(){var n=!1;try{var r=t.call(this,"token"),i=t.call(this,"ignore_dnt"),s=t.call(this,"opt_out_tracking_persistence_type"),o=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");r&&(n=GX(r,{ignoreDnt:i,persistenceType:s,persistencePrefix:o,window:a}))}catch(f){_n.error("Unexpected error when checking tracking opt-out status: "+f)}if(!n)return e.apply(this,arguments);var l=arguments[arguments.length-1];typeof l=="function"&&l(0)}}var A3e=rd("lock"),YX=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||Te.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||cn};YX.prototype.withLock=function(e,t){var n=this.promiseImpl;return new n(A.bind(function(r,i){var s=t||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),a=this.storageKey,l=this.pollIntervalMS,f=this.timeoutMS,d=this.storage,p=a+":X",m=a+":Y",_=a+":Z",v=function(R){if(new Date().getTime()-o>f){A3e.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+s+"]"),d.removeItem(_),d.removeItem(m),w();return}setTimeout(function(){try{R()}catch(C){i(C)}},l*(Math.random()+.1))},E=function(R,C){R()?C():v(function(){E(R,C)})},b=function(){var R=d.getItem(m);return R&&R!==s?!1:(d.setItem(m,s),d.getItem(m)===s?!0:(z_(d,!0)||i(new Error("localStorage support dropped while acquiring lock")),!1))},w=function(){d.setItem(p,s),E(b,function(){if(d.getItem(p)===s){T();return}v(function(){if(d.getItem(m)!==s){w();return}E(function(){return!d.getItem(_)},T)})})},T=function(){d.setItem(_,"1");var R=function(){d.removeItem(_),d.getItem(m)===s&&d.removeItem(m),d.getItem(p)===s&&d.removeItem(p)};e().then(function(C){R(),r(C)}).catch(function(C){R(),i(C)})};try{if(z_(d,!0))w();else throw new Error("localStorage support check failed")}catch(R){i(R)}},this))};var Vp=function(e){this.storage=e||Te.localStorage};Vp.prototype.init=function(){return cn.resolve()};Vp.prototype.isInitialized=function(){return!0};Vp.prototype.setItem=function(e,t){return new cn(A.bind(function(n,r){try{this.storage.setItem(e,gp(t))}catch(i){r(i)}n()},this))};Vp.prototype.getItem=function(e){return new cn(A.bind(function(t,n){var r;try{r=$E(this.storage.getItem(e))}catch(i){n(i)}t(r)},this))};Vp.prototype.removeItem=function(e){return new cn(A.bind(function(t,n){try{this.storage.removeItem(e)}catch(r){n(r)}t()},this))};var nH=rd("batch"),Ca=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new Vp,this.lock=new YX(e,{storage:t.sharedLockStorage||Te.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||A.bind(nH.error,nH),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=d3e(A.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=A.bind(function(n){return this._enqueuePersisted([n])},this)};Ca.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?cn.resolve():this.queueStorage.init().then(A.bind(function(){this.initialized=!0},this)).catch(A.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))};Ca.prototype.enqueue=function(e,t){var n={id:hL(),flushAfter:new Date().getTime()+t*2,payload:e};return this.usePersistence?this.enqueuePersisted(n):(this.memQueue.push(n),cn.resolve(!0))};Ca.prototype._enqueuePersisted=function(e){var t=A.bind(function(){return this.ensureInit().then(A.bind(function(){return this.readFromStorage()},this)).then(A.bind(function(n){return this.saveToStorage(n.concat(e))},this)).then(A.bind(function(n){return n&&(this.memQueue=this.memQueue.concat(e)),n},this)).catch(A.bind(function(n){return this.reportError("Error enqueueing items",n,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(A.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this))};Ca.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(A.bind(function(){return this.readFromStorage()},this)).then(A.bind(function(n){if(n.length){var r={};A.each(t,function(o){r[o.id]=!0});for(var i=0;i<n.length;i++){var s=n[i];if(new Date().getTime()>s.flushAfter&&!r[s.id]&&(s.orphaned=!0,t.push(s),t.length>=e))break}}return t},this)):cn.resolve(t)};var rH=function(e,t){var n=[];return A.each(e,function(r){r.id&&!t[r.id]&&n.push(r)}),n};Ca.prototype.removeItemsByID=function(e){var t={};if(A.each(e,function(r){t[r]=!0}),this.memQueue=rH(this.memQueue,t),this.usePersistence){var n=A.bind(function(){return this.ensureInit().then(A.bind(function(){return this.readFromStorage()},this)).then(A.bind(function(r){return r=rH(r,t),this.saveToStorage(r)},this)).then(A.bind(function(){return this.readFromStorage()},this)).then(A.bind(function(r){for(var i=0;i<r.length;i++){var s=r[i];if(s.id&&t[s.id])throw new Error("Item not removed from storage")}return!0},this)).catch(A.bind(function(r){return this.reportError("Error removing items",r,e),!1},this))},this);return this.lock.withLock(n,this.pid).catch(A.bind(function(r){return this.reportError("Error acquiring storage lock",r),z_(this.lock.storage,!0)?!1:n().then(A.bind(function(i){return i||this.queueStorage.removeItem(this.storageKey).then(function(){return i})},this)).catch(A.bind(function(i){return this.reportError("Error clearing queue",i),!1},this))},this))}else return cn.resolve(!0)};var iH=function(e,t){var n=[];return A.each(e,function(r){var i=r.id;if(i in t){var s=t[i];s!==null&&(r.payload=s,n.push(r))}else n.push(r)}),n};Ca.prototype.updatePayloads=function(e){return this.memQueue=iH(this.memQueue,e),this.usePersistence?this.lock.withLock(A.bind(function(){return this.ensureInit().then(A.bind(function(){return this.readFromStorage()},this)).then(A.bind(function(n){return n=iH(n,e),this.saveToStorage(n)},this)).catch(A.bind(function(n){return this.reportError("Error updating items",e,n),!1},this))},this),this.pid).catch(A.bind(function(t){return this.reportError("Error acquiring storage lock",t),!1},this)):cn.resolve(!0)};Ca.prototype.readFromStorage=function(){return this.ensureInit().then(A.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(A.bind(function(e){return e&&(A.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(A.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))};Ca.prototype.saveToStorage=function(e){return this.ensureInit().then(A.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(A.bind(function(t){return this.reportError("Error saving queue",t),!1},this))};Ca.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(A.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):cn.resolve()};var R3e=600*1e3,Wm=rd("batch"),Eo=function(e,t){this.errorReporter=t.errorReporter,this.queue=new Ca(e,{errorReporter:A.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};Eo.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)};Eo.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};Eo.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};Eo.prototype.clear=function(){return this.queue.clear()};Eo.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};Eo.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};Eo.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(A.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))};Eo.prototype.sendRequestPromise=function(e,t){return new cn(A.bind(function(n){this.sendRequest(e,t,n)},this))};Eo.prototype.flush=function(e){if(this.requestInProgress)return Wm.log("Flush: Request already in progress"),cn.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,n=new Date().getTime(),r=this.batchSize;return this.queue.fillBatch(r).then(A.bind(function(i){var s=i.length===r,o=[],a={};if(A.each(i,function(p){var m=p.payload;if(this.beforeSendHook&&!p.orphaned&&(m=this.beforeSendHook(m)),m){m.event&&m.properties&&(m.properties=A.extend({},m.properties,{mp_sent_by_lib_version:mo.LIB_VERSION}));var _=!0,v=p.id;v?(this.itemIdsSentSuccessfully[v]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:p,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[v]}),_=!1):this.reportError("[dupe] found item with no ID",{item:p}),_&&o.push(m)}a[p.id]=m},this),o.length<1)return this.requestInProgress=!1,this.resetFlush(),cn.resolve();var l=A.bind(function(){return this.queue.removeItemsByID(A.map(i,function(p){return p.id})).then(A.bind(function(p){return A.each(i,A.bind(function(m){var _=m.id;_?(this.itemIdsSentSuccessfully[_]=this.itemIdsSentSuccessfully[_]||0,this.itemIdsSentSuccessfully[_]++,this.itemIdsSentSuccessfully[_]>5&&this.reportError("[dupe] item ID sent too many times",{item:m,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[_]})):this.reportError("[dupe] found item with no ID while removing",{item:m})},this)),p?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s?(this.resetFlush(),cn.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),cn.resolve())},this))},this),f=A.bind(function(p){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(A.isObject(p)&&p.error==="timeout"&&new Date().getTime()-n>=t)return this.reportError("Network timeout; retrying"),this.flush();if(A.isObject(p)&&(p.httpStatusCode>=500||p.httpStatusCode===429||p.httpStatusCode<=0&&!m3e()||p.error==="timeout")){var m=this.flushInterval*2;return p.retryAfter&&(m=parseInt(p.retryAfter,10)*1e3||m),m=Math.min(R3e,m),this.reportError("Error; retry in "+m+" ms"),this.scheduleFlush(m),cn.resolve()}else if(A.isObject(p)&&p.httpStatusCode===413)if(i.length>1){var _=Math.max(1,Math.floor(r/2));return this.batchSize=Math.min(this.batchSize,_,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),cn.resolve()}else return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),l();else return l()}catch(v){this.reportError("Error handling API response",v),this.resetFlush()}},this),d={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(d.transport="sendBeacon"),Wm.log("MIXPANEL REQUEST:",o),this.sendRequestPromise(o,d).then(f)},this)).catch(A.bind(function(i){this.reportError("Error flushing request queue",i),this.resetFlush()},this))};Eo.prototype.reportError=function(e,t){if(Wm.error.apply(Wm.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(n){Wm.error(n)}};var vL=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},k3e=250,Oh=rd("recorder"),I3e=Te.CompressionStream,O3e={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},M3e=new Set([At.MouseMove,At.MouseInteraction,At.Scroll,At.ViewportResize,At.Input,At.TouchMove,At.MediaInteraction,At.Drag,At.Selection]);function N3e(e){return e.type===an.IncrementalSnapshot&&M3e.has(e.data.source)}var ui=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Bl,this._onMaxLengthReached=e.onMaxLengthReached||Bl,this._onBatchSent=e.onBatchSent||Bl,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=qm,this.recordMinMs=0;var t=z_(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Vo(VX),this.batcher=new Eo(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:O3e,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:k3e,sharedLockTimeoutMS:10*1e3})};ui.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var n=this._mixpanel.get_property("$user_id");return n&&(e.$user_id=n),e};ui.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch((function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}).bind(this)).then((function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))}).bind(this))};ui.prototype.getConfig=function(e){return this._mixpanel.get_config(e)};ui.prototype.get_config=function(e){return this.getConfig(e)};ui.prototype.startRecording=function(e){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Oh.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>qm&&(this.recordMaxMs=qm,Oh.critical("record_max_ms cannot be greater than "+qm+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=A.info.currentUrl(),this.replayStartUrl=A.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var i=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,i),this.idleExpires=new Date().getTime()+i}).bind(this);t();var n=this.getConfig("record_block_selector");(n===""||n===null)&&(n=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(i){if(this.idleExpires&&this.idleExpires<i.timestamp){this._onIdleTimeout();return}N3e(i)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(i),(this.lastEventTimestamp===null||i.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=i.timestamp)}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:n,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[n3e({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}})]:[]})}catch(i){this.reportError("Unexpected error when starting rrweb recording.",i)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var r=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),r)};ui.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(n){this.reportError("Error with rrweb stopRecording",n)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t};ui.prototype.isRrwebStopped=function(){return this._stopRecording===null};ui.prototype.flushEventsWithOptOut=function(e,t,n){var r=(function(i){i===0&&(this.stopRecording(),n({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,n,r)};ui.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}};ui.deserialize=function(e,t){var n=new ui(A.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}));return n};ui.prototype._sendRequest=function(e,t,n,r){var i=(function(o,a){o.status===200&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=A.info.currentUrl()),this._onBatchSent(),r({status:0,httpStatusCode:o.status,responseBody:a,retryAfter:o.headers.get("Retry-After")})}).bind(this),s=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");Te.fetch(s+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:n}).then(function(o){o.json().then(function(a){i(o,a)}).catch(function(a){r({error:a})})}).catch(function(o){r({error:o,httpStatusCode:0})})};ui.prototype._flushEvents=gu(function(e,t,n){var r=e.length;if(r>0){for(var i=this.replayId,s=1/0,o=-1/0,a=!1,l=0;l<r;l++)s=Math.min(s,e[l].timestamp),o=Math.max(o,e[l].timestamp),e[l].type===an.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){n({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=s}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=s);var f=o-this.replayStartTime,d={$current_url:this.batchStartUrl,$lib_version:mo.LIB_VERSION,batch_start_time:s/1e3,mp_lib:"web",replay_id:i,replay_length_ms:f,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},p=JSON.stringify(e);if(Object.assign(d,this.getUserIdInfo()),_3e(ca,dc.vendor,wm)){var m=new Blob([p],{type:"application/json"}).stream(),_=m.pipeThrough(new I3e("gzip"));new Response(_).blob().then((function(v){d.format="gzip",this._sendRequest(i,d,v,n)}).bind(this))}else d.format="body",this._sendRequest(i,d,p,n)}});ui.prototype.reportError=function(e,t){Oh.error.apply(Oh.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(n){Oh.error(n)}};ui.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime};ui.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>GA?(Oh.critical("record_min_ms cannot be greater than "+GA+"ms. Capping value."),GA):e};
604var $c=function(e){this.idb=new Vo(pL),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};$c.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")};$c.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)};$c.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return cn.resolve();var t=e.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),cn.resolve())};$c.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return vL(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):cn.resolve(null)};$c.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()};$c.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))};$c.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):cn.resolve()};$c.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(n){return vL(n)}).map((function(n){var r=ui.deserialize(n,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return r.unloadPersistedData().then((function(){return this.idb.removeItem(n.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return cn.all(t)}).bind(this)).catch(this.handleError.bind(this)):cn.resolve([])};var Ym=rd("recorder"),Fc=function(e,t,n){this.mixpanelInstance=e,this.rrwebRecord=t||hu,this.sharedLockStorage=n,this.recordingRegistry=new $c({mixpanelInstance:this.mixpanelInstance,errorReporter:Ym.error,sharedLockStorage:n}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Fc.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Ym.log("Recording already in progress, skipping startRecording.");return}var t=(function(){Ym.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),n=(function(){Ym.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),r=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:r,onIdleTimeout:t,onMaxLengthReached:n,replayId:A.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=ui.deserialize(e.activeSerializedRecording,i):this.activeRecording=new ui(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())};Fc.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then((function(){return this.recordingRegistry.clearActiveRecording()}).bind(this)).then((function(){this.stopRecordingInProgress=!1}).bind(this))};Fc.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)};Fc.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var n=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),n}return cn.resolve()};Fc.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),cn.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Ym.log("No resumable recording found."),null)}).bind(this))};Fc.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})};Fc.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null};Object.defineProperty(Fc.prototype,"replayId",{get:function(){return this.getActiveReplayId()}});Te.__mp_recorder=Fc;var H_="change",Mc="click",ZI="hashchange",L3e="input",sH="load",Rl="mp_locationchange",oH="popstate",xT="scrollend",yL="scroll",D3e="select",FE="submit",P3e="toggle",aH="visibilitychange",$3e=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],cH=["mp-include"],JI=["mp-no-track"],lH=JI.concat(["mp-sensitive"]),F3e=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],U3e={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0}
vendor: 1,288 bytes, line 604
604,B3e={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},z3e={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},uH=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],H3e=5,rr=rd("autocapture");function QI(e){for(var t={},n=XX(e).split(" "),r=0;r<n.length;r++){var i=n[r];i&&(t[i]=!0)}return t}function XX(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function j3e(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!KX(e));return e}function fH(e,t,n,r,i,s){var o={$classes:XX(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(o.$id=a),bL(e,t,i,s)&&A.each(F3e.concat(r),function(p){if(e.hasAttribute(p)&&!n[p]){var m=e.getAttribute(p);UE(m)&&(o["$attr-"+p]=m)}});for(var l=1,f=1,d=e;d=j3e(d);)l++,d.tagName===e.tagName&&f++;return o.$nth_child=l,o.$nth_of_type=f,o}function V3e(e,t){var n=t.allowElementCallback,r=t.allowSelectors||[],i=t.blockAttrs||[],s=t.blockElementCallback,o=t.blockSelectors||[],a=t.captureTextContent||!1,l=t.captureExtraAttrs||[],f=t.captured
vendor: 12,418 bytes, line 604
604ForHeatMap||!1,d={};A.each(i,function(k){d[k]=!0});var p=null,m=typeof e.target>"u"?e.srcElement:e.target;if(ZX(m)&&(m=m.parentNode),Y3e(m,e)&&eO(m,e,n,r)&&!KA(m,e,s,o)){for(var _=[m],v=m;v.parentNode&&!ha(v,"body");)_.push(v.parentNode),v=v.parentNode;var E=[],b,w=!1;if(A.each(_,function(k){var M=bL(k,e,n,r);!d.href&&k.tagName.toLowerCase()==="a"&&(b=k.getAttribute("href"),b=M&&UE(b)&&b),KA(k,e,s,o)&&(w=!0),E.push(fH(k,e,d,l,n,r))},this),!w){var T=Rt.documentElement;if(p={$event_type:e.type,$host:Te.location.host,$pathname:Te.location.pathname,$elements:E,$el_attr__href:b,$viewportHeight:Math.max(T.clientHeight,Te.innerHeight||0),$viewportWidth:Math.max(T.clientWidth,Te.innerWidth||0),$pageHeight:Rt.body.offsetHeight||0,$pageWidth:Rt.body.offsetWidth||0},A.each(l,function(k){if(!d[k]&&m.hasAttribute(k)){var M=m.getAttribute(k);UE(M)&&(p["$el_attr__"+k]=M)}}),a&&(R=dH(m,e,n,r),R&&R.length&&(p.$el_text=R)),e.type===Mc&&(A.each($3e,function(k){k in e&&(p["$"+k]=e[k])}),f&&(p.$captured_for_heatmap=!0),m=G3e(e)),a){var R=dH(m,e,n,r);R&&R.length&&(p.$el_text=R)}if(m){if(!eO(m,e,n,r)||KA(m,e,s,o))return null;var C=fH(m,e,d,l,n,r);p.$target=C,p.$el_classes=C.$classes,A.extend(p,A.strip_empty_properties({$el_id:C.$id,$el_tag_name:C.$tag_name}))}}}return p}function dH(e,t,n,r){var i="";return bL(e,t,n,r)&&e.childNodes&&e.childNodes.length&&A.each(e.childNodes,function(s){ZX(s)&&s.textContent&&(i+=A.trim(s.textContent).split(/(\s+)/).filter(UE).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),A.trim(i)}function G3e(e){for(var t=e.target,n=e.composedPath(),r=0;r<n.length;r++){var i=n[r];if(ha(i,"a")||ha(i,"button")||ha(i,"input")||ha(i,"select")||i.getAttribute&&i.getAttribute("role")==="button"){t=i;break}if(i===t)break}return t}function eO(e,t,n,r){if(n)try{if(!n(e,t))return!1}catch(o){return rr.critical("Error while checking element in allowElementCallback",o),!1}if(!r.length)return!0;for(var i=0;i<r.length;i++){var s=r[i];try{if(e.matches(s))return!0}catch(o){rr.critical("Error while checking selector: "+s,o)}}return!1}function KA(e,t,n,r){var i;if(n)try{if(n(e,t))return!0}catch(a){return rr.critical("Error while checking element in blockElementCallback",a),!0}if(r&&r.length)for(i=0;i<r.length;i++){var s=r[i];try{if(e.matches(s))return!0}catch(a){rr.critical("Error while checking selector: "+s,a)}}var o=QI(e);for(i=0;i<JI.length;i++)if(o[JI[i]])return!0;return!1}function KX(e){return e&&e.nodeType===1}function ha(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function ZX(e){return e&&e.nodeType===3}function q3e(){try{var e=Rt.createElement("div");return!!e.matches}catch{return!1}}function W3e(){return typeof WeakSet<"u"}function Y3e(e,t){if(!e||ha(e,"html")||!KX(e))return!1;var n=e.tagName.toLowerCase();switch(n){case"form":return t.type===FE;case"input":return["button","submit"].indexOf(e.getAttribute("type"))===-1?t.type===H_:t.type===Mc;case"select":case"textarea":return t.type===H_;default:return t.type===Mc}}function bL(e,t,n,r){var i;if(!eO(e,t,n,r))return!1;for(var s=e;s.parentNode&&!ha(s,"body");s=s.parentNode){var o=QI(s);for(i=0;i<lH.length;i++)if(o[lH[i]])return!1}var a=QI(e);for(i=0;i<cH.length;i++)if(a[cH[i]])return!0;if(ha(e,"input")||ha(e,"select")||ha(e,"textarea")||e.getAttribute("contenteditable")==="true")return!1;var l=e.type||"";if(typeof l=="string")switch(l.toLowerCase()){case"hidden":return!1;case"password":return!1}var f=e.name||e.id||"";if(typeof f=="string"){var d=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(d.test(f.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function UE(e){if(e===null||A.isUndefined(e))return!1;if(typeof e=="string"){e=A.trim(e);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var n=/(^\d{3}-?\d{2}-?\d{4}$)/;if(n.test(e))return!1}return!0}function JX(e){var t="onscrollend"in Te,n=B_(e),r=xT;if(!t){var i=null,s=100;n=B_(function(){clearTimeout(i),i=setTimeout(e,s)}),r=yL}return{listener:n,eventType:r}}function X3e(e){for(var t=0;t<uH.length;t++)if(e.hasAttribute(uH[t]))return!0;return!1}function K3e(e){var t=e.getAttribute("role");if(!t)return!1;var n=t.trim().split(/\s+/)[0].toLowerCase();return U3e[n]}function ZA(e){var t=e.tagName.toLowerCase();return!!(t==="button"||t==="input"||t==="select"||t==="textarea"||t==="details"||t==="dialog"||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||X3e(e)||K3e(e)||t==="a"&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function QX(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(B3e[t])return!0;if(ZA(e))return!1;for(var n=e.parentElement,r=0;n&&r<H3e;){if(ZA(n))return!1;if(n.getRootNode&&n.getRootNode()!==Rt){var i=n.getRootNode();if(i.host&&ZA(i.host))return!1}n=n.parentElement,r++}return!!z3e[t]}function eK(e){return"composedPath"in e?e.composedPath():[]}function tK(e){var t=eK(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var Z3e=30,J3e=1e3,Q3e=4,eBe=!1;function nK(){this.clicks=[]}nK.prototype.isRageClick=function(e,t){t=t||{};var n=t.threshold_px||Z3e,r=t.timeout_ms||J3e,i=t.click_count||Q3e,s=t.interactive_elements_only||eBe;if(s){var o=tK(e);if(!o||QX(o))return!1}var a=Date.now(),l=e.pageX,f=e.pageY,d=this.clicks[this.clicks.length-1];if(d&&a-d.timestamp<r&&Math.sqrt(Math.pow(l-d.x,2)+Math.pow(f-d.y,2))<n){if(this.clicks.push({x:l,y:f,timestamp:a}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:l,y:f,timestamp:a}];return!1};function Gp(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}Gp.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return tK(e)};Gp.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=eK(e),n=0;n<t.length;n++){var r=t[n];r&&r.shadowRoot&&this.observeShadowRoot(r.shadowRoot)}};Gp.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var n=new window.MutationObserver(function(){t.changeCallback()});n.observe(e,this.observerConfig),this.shadowObservers.push(n)}catch(r){rr.critical("Error while observing shadow root",r)}}};Gp.prototype.start=function(){if(!this.observedShadowRoots){if(!W3e()){rr.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}};Gp.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(t){rr.critical("Error while disconnecting shadow DOM observer",t)}this.shadowObservers=[],this.observedShadowRoots=null}};var tBe=500,nBe=[H_,L3e,FE,D3e,P3e],rBe=[xT],iBe=[ZI],hH={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Aa(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}Aa.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!t||QX(t)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)};Aa.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var n=this.addClick(e);return n&&this.triggerProcessing(t),n};Aa.prototype.getDeadClicks=function(e){if(this.pendingClicks.length===0)return[];var t=e.timeout_ms,n=Date.now(),r=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],s=0;s<r.length;s++){var o=r[s];n-o.timestamp>=t?this.hasChangesAfter(o.timestamp)||i.push(o):this.pendingClicks.push(o)}return i};Aa.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100};Aa.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()};Aa.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))};Aa.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e.timeout_ms,n=this;this.processingTimeout=setTimeout(function(){if(n.processingActive){for(var r=n.getDeadClicks(e),i=0;i<r.length;i++)n.onDeadClickCallback(r[i].event);n.pendingClicks.length>0?n.processRecursively(e):n.processingActive=!1}},t)};Aa.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;nBe.forEach(function(n){var r=function(){e.recordChangeEvent()};document.addEventListener(n,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:n,handler:r,options:{capture:!0,passive:!0}})}),iBe.forEach(function(n){var r=function(){e.recordChangeEvent()};window.addEventListener(n,r),e.eventListeners.push({target:window,event:n,handler:r})}),rBe.forEach(function(n){var r=function(){e.recordChangeEvent()};window.addEventListener(n,r,{passive:!0}),e.eventListeners.push({target:window,event:n,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,hH)}catch(n){rr.critical("Error while setting up mutation observer",n)}if(window.customElements)try{this.shadowDOMObserver=new Gp(function(){e.recordChangeEvent()},hH),this.shadowDOMObserver.start()}catch(n){rr.critical("Error while setting up shadow DOM observer",n),this.shadowDOMObserver=null}}};Aa.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(n){rr.critical("Error while removing event listener",n)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(n){rr.critical("Error while disconnecting mutation observer",n)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(n){rr.critical("Error while stopping shadow DOM observer",n)}this.shadowDOMObserver=null}}};var rK="autocapture",sBe="track_pageview",iK="full-url",oBe="url-with-path-and-query-string",aBe="url-with-path",cBe="allow_element_callback",sK="allow_selectors",oK="allow_url_regexes",aK="block_attrs",cK="block_element_callback",lK="block_selectors",uK="block_url_regexes",fK="capture_extra_attrs",dK="capture_text_content",hK="scroll_capture_all",pK="scroll_depth_percent_checkpoints",BE="click",zE="dead_click",tO="input",gK="pageview",HE="rage_click",nO="scroll",CT="page_leave",rO="submit",ri={};ri[sK]=[];ri[oK]=[];ri[aK]=[];ri[cK]=null;ri[lK]=[];ri[uK]=[];ri[fK]=[];ri[dK]=!1;ri[hK]=!1;ri[pK]=[25,50,75,100];ri[BE]=!0;ri[zE]=!0;ri[tO]=!0;ri[gK]=iK;ri[HE]=!0;ri[nO]=!0;ri[CT]=!1;ri[rO]=!0;var j_={$mp_autocapture:!0},mK="$mp_click",_K="$mp_dead_click",lBe="$mp_input_change",vK="$mp_rage_click",uBe="$mp_scroll",fBe="$mp_submit",dBe="$mp_page_leave",Wr=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};Wr.prototype.init=function(){if(!q3e()){rr.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()};Wr.prototype.getFullConfig=function(){var e=this.mp.get_config(rK);return e?A.isObject(e)?A.extend({},ri,e):ri:{}};Wr.prototype.getConfig=function(e){return this.getFullConfig()[e]};Wr.prototype.currentUrlBlocked=function(){var e,t=A.info.currentUrl(),n=this.getConfig(oK)||[];
604if(n.length){var r=!1;for(e=0;e<n.length;e++){var i=n[e];try{if(t.match(i)){r=!0;break}}catch(o){return rr.critical("Error while checking block URL regex: "+i,o),!0}}if(!r)return!0}var s=this.getConfig(uK)||[];if(!s||!s.length)return!1;for(e=0;e<s.length;e++)try{if(t.match(s[e]))return!0}catch(o){return rr.critical("Error while checking block URL regex: "+s[e],o),!0}return!1};Wr.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(rK)?this.getConfig(gK):this.mp.get_config(sBe)};Wr.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var n=this.mp.is_recording_heatmap_data()&&(t===mK&&!this.getConfig(BE)||t===vK&&!this._getClickTrackingConfig(HE)||t===_K&&!this._getClickTrackingConfig(zE)),r=V3e(e,{allowElementCallback:this.getConfig(cBe),allowSelectors:this.getConfig(sK),blockAttrs:this.getConfig(aK),blockElementCallback:this.getConfig(cK),blockSelectors:this.getConfig(lK),captureExtraAttrs:this.getConfig(fK),captureTextContent:this.getConfig(dK),capturedForHeatMap:n});r&&(A.extend(r,j_),this.mp.track(t,r))}};Wr.prototype.initPageListeners=function(){if(Te.removeEventListener(oH,this.listenerPopstate),Te.removeEventListener(ZI,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(CT)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){Te.dispatchEvent(new Event(Rl))},this.listenerHashchange=function(){Te.dispatchEvent(new Event(Rl))},Te.addEventListener(oH,this.listenerPopstate),Te.addEventListener(ZI,this.listenerHashchange);var e=Te.history.pushState;typeof e=="function"&&(Te.history.pushState=function(n,r,i){e.call(Te.history,n,r,i),Te.dispatchEvent(new Event(Rl))});var t=Te.history.replaceState;typeof t=="function"&&(Te.history.replaceState=function(n,r,i){t.call(Te.history,n,r,i),Te.dispatchEvent(new Event(Rl))})}};Wr.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?t===!0?{}:typeof t=="object"?t:{}:null};Wr.prototype._trackPageLeave=function(e,t,n){if(!this.hasTrackedScrollSession&&!(!this.getConfig(CT)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;
604var r=Math.max(Rt.documentElement.clientHeight,Te.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-r,0)/(n-r)*100),s=Math.round(r/n*100);n<=r&&(i=100,s=100);var o=A.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:s,$scroll_height:n,$event_type:e.type,$current_url:t||A.info.currentUrl(),$viewportHeight:r,$viewportWidth:Math.max(Rt.documentElement.clientWidth,Te.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},j_);this.mp.track(dBe,o,{transport:"sendBeacon"})}};Wr.prototype._initScrollDepthTracking=function(){if(Te.removeEventListener(yL,this.listenerScrollDepth),Te.removeEventListener(xT,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){rr.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(Rt.documentElement.clientHeight,Te.innerHeight||0);var e=(function(){if(!this.currentUrlBlocked()){var n=Math.max(Rt.documentElement.clientHeight,Te.innerHeight||0)+Te.scrollY;n>this.maxScrollViewDepth&&(this.maxScrollViewDepth=n),this.previousScrollHeight=Rt.body.scrollHeight}}).bind(this),t=JX(e);this.listenerScrollDepth=t.listener,Te.addEventListener(t.eventType,this.listenerScrollDepth)}};Wr.prototype.initClickTracking=function(){Te.removeEventListener(Mc,this.listenerClick),!(!this.getConfig(BE)&&!this.mp.get_config("record_heatmap_data"))&&(rr.log("Initializing click tracking"),this.listenerClick=(function(e){!this.getConfig(BE)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(e,mK)}).bind(this),Te.addEventListener(Mc,this.listenerClick))};Wr.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(zE);if(!e&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}rr.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Aa((function(t){this.trackDomEvent(t,_K)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(t){var n=this._getClickTrackingConfig(zE);if(!(!n&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=n||{};r.timeout_ms||(r.timeout_ms=tBe),this._deadClickTracker.trackClick(t,r)}}).bind(this),Te.addEventListener(Mc,this.listenerDeadClick))};Wr.prototype.initInputTracking=function(){Te.removeEventListener(H_,this.listenerChange),this.getConfig(tO)&&(rr.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig(tO)&&this.trackDomEvent(e,lBe)}).bind(this),Te.addEventListener(H_,this.listenerChange))};Wr.prototype.initPageviewTracking=function(){if(Te.removeEventListener(Rl,this.listenerLocationchange),!!this.pageviewTrackingConfig()){rr.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(j_)),t&&(e=A.info.currentUrl()),this.listenerLocationchange=B_((function(){if(!this.currentUrlBlocked()){var n=A.info.currentUrl(),r=!1,i=n.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],s=this.pageviewTrackingConfig();if(s===iK?r=n!==e:s===oBe?r=n.split("#")[0]!==e.split("#")[0]:s===aBe&&(r=i),r){var o=this.mp.track_pageview(j_);o&&(e=n),i&&(this.lastScrollCheckpoint=0,rr.log("Path change: re-initializing scroll depth checkpoints"))}}}).bind(this)),Te.addEventListener(Rl,this.listenerLocationchange)}};Wr.prototype.initRageClickTracking=function(){Te.removeEventListener(Mc,this.listenerRageClick);var e=this._getClickTrackingConfig(HE);!e&&!this.mp.get_config("record_heatmap_data")||(rr.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new nK),this.listenerRageClick=(function(t){var n=this._getClickTrackingConfig(HE);!n&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(t,n)&&this.trackDomEvent(t,vK)}).bind(this),Te.addEventListener(Mc,this.listenerRageClick))};Wr.prototype.initScrollTracking=function(){if(Te.removeEventListener(xT,this.listenerScroll),Te.removeEventListener(yL,this.listenerScroll),!!this.getConfig(nO)){rr.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(nO)&&!this.currentUrlBlocked()){var n=this.getConfig(hK),r=(this.getConfig(pK)||[]).slice().sort(function(d,p){return d-p}
604),i=Te.scrollY,s=A.extend({$scroll_top:i},j_);try{var o=Rt.body.scrollHeight,a=Math.round(i/(o-Te.innerHeight)*100);if(s.$scroll_height=o,s.$scroll_percentage=a,a>this.lastScrollCheckpoint)for(var l=0;l<r.length;l++){var f=r[l];a>=f&&this.lastScrollCheckpoint<f&&(s.$scroll_checkpoint=f,this.lastScrollCheckpoint=f,n=!0)}}catch(d){rr.critical("Error while calculating scroll percentage",d)}n&&this.mp.track(uBe,s)}}).bind(this),t=JX(e);this.listenerScroll=t.listener,Te.addEventListener(t.eventType,this.listenerScroll)}};Wr.prototype.initSubmitTracking=function(){Te.removeEventListener(FE,this.listenerSubmit),this.getConfig(rO)&&(rr.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(rO)&&this.trackDomEvent(e,fBe)}).bind(this),Te.addEventListener(FE,this.listenerSubmit))};Wr.prototype.initPageLeaveTracking=function(){if(Rt.removeEventListener(aH,this.listenerPageLeaveVisibilitychange),Te.removeEventListener(Rl,this.listenerPageLeaveLocationchange),Te.removeEventListener(sH,this.listenerPageLoad),!(!this.getConfig(CT)&&!this.mp.get_config("record_heatmap_data"))){rr.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=A.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=Rt.body.scrollHeight}).bind(this),Te.addEventListener(sH,this.listenerPageLoad),this.listenerPageLeaveLocationchange=B_((function(t){if(!this.currentUrlBlocked()){var n=A.info.currentUrl(),r=n!==e;r&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=n,this.maxScrollViewDepth=Math.max(Rt.documentElement.clientHeight,Te.innerHe
604ight||0),this.previousScrollHeight=Rt.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),Te.addEventListener(Rl,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){Rt.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),Rt.addEventListener(aH,this.listenerPageLeaveVisibilitychange)}};Wr.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(Te.removeEventListener(Mc,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)};zX(Wr);var ns=rd("flags"),jE="flags",VE="context",iO={};iO[VE]={};var Qt=function(e){this.fetch=Te.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};Qt.prototype.init=function(){if(!this.minApisSupported()){ns.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set};Qt.prototype.getFullConfig=function(){var e=this.getMpConfig(jE);return e?A.isObject(e)?A.extend({},iO,e):iO:{}};Qt.prototype.getConfig=function(e){return this.getFullConfig()[e]};Qt.prototype.isSystemEnabled=function(){return!!this.getMpConfig(jE)};Qt.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return ns.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var n=this.getMpConfig(jE);A.isObject(n)||(n={});var r=t&&t.replace?{}:this.getConfig(VE);return n[VE]=A.extend({},r,e),this.setMpConfig(jE,n),this.fetchFlags()};Qt.prototype.areFlagsReady=function(){return this.isSystemEnabled()||ns.error("Feature Flags not enabled"),!!this.flags};Qt.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),n=h3e();ns.log("Fetching flags for distinct ID: "+e);var r=A.extend({distinct_id:e,device_id:t},this.getConfig(VE)),i=new URLSearchParams;i.set("context",JSON.stringify(r)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",mo.LIB_VERSION);var s=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(Te,s,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:n}}).then((function(o){return this.markFetchComplete(),o.json().then((function(a){var l=a.flags;if(!l)throw new Error("No flags in API response");var f=new Map;A.each(l,function(d,p){f.set(p,{key:d.variant_key,value:d.variant_value,experiment_id:d.experiment_id,is_experiment_active:d.is_experiment_active,is_qa_tester:d.is_qa_tester})}),this.flags=f,this._traceparent=n}).bind(this)).catch((function(a){this.markFetchComplete(),ns.error(a)}).bind(this))}).bind(this)).catch((function(o){this.markFetchComplete(),ns.error(o)}).bind(this)),this.fetchPromise};Qt.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){ns.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null};Qt.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(e,t)}).bind(this)).catch(function(n){return ns.error(n),t}):new Promise(function(n){ns.critical("Feature Flags not initialized"),n(t)})};Qt.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return ns.log("Flags not loaded yet"),t;var n=this.flags.get(e);return n?(this.trackFeatureCheck(e,n),n):(ns.log('No flag found: "'+e+'"'),t)};Qt.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(n){return n.value}).catch(function(n){return ns.error(n),t})};Qt.prototype.getFeatureData=function(e,t){return ns.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value(
604) instead."),this.getVariantValue(e,t)};Qt.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value};Qt.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(n){return ns.error(n),t})};Qt.prototype.isEnabledSync=function(e,t){t=t||!1;var n=this.getVariantValueSync(e,t);return n!==!0&&n!==!1&&(ns.error('Feature flag "'+e+'" value: '+n+" is not a boolean; returning fallback value: "+t),n=t),n};Qt.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var n={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};t.experiment_id!=="undefined"&&(n.$experiment_id=t.experiment_id),t.is_experiment_active!=="undefined"&&(n.$is_experiment_active=t.is_experiment_active),t.is_qa_tester!=="undefined"&&(n.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",n)}};Qt.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise<"u"&&typeof Map<"u"&&typeof Set<"u"};zX(Qt);Qt.prototype.are_flags_ready=Qt.prototype.areFlagsReady;Qt.prototype.get_variant=Qt.prototype.getVariant;Qt.prototype.get_variant_sync=Qt.prototype.getVariantSync;Qt.prototype.get_variant_value=Qt.prototype.getVariantValue;Qt.prototype.get_variant_value_sync=Qt.prototype.getVariantValueSync;Qt.prototype.is_enabled=Qt.prototype.isEnabled;Qt.prototype.is_enabled_sync=Qt.prototype.isEnabledSync;Qt.prototype.update_context=Qt.prototype.updateContext;Qt.prototype.get_feature_data=Qt.prototype.getFeatureData;var Uc=function(){};Uc.prototype.create_properties=function(){};Uc.prototype.event_handler=function(){};Uc.prototype.after_track_handler=function(){};Uc.prototype.init=function(e){return this.mp=e,this};Uc.prototype.track=function(e,t,n,r){var i=this,s=A.dom_query(e);if(s.length===0){_n.error("The DOM query ("+e+") returned 0 elements");return}return A.each(s,function(o){A.register_event(o,this.override_event,function(a){var l={},f=i.create_properties(n,this),d=i.mp.get_config("track_links_timeout");i.event_handler(a,this,l),window.setTimeout(i.track_callback(r,f,l,!0),d),i.mp.track(t,f,i.track_callback(r,f,l))})},this),!0};Uc.prototype.track_callback=function(e,t,n,r){r=r||!1;var i=this;return function(){n.callback_fired||(n.callback_fired=!0,!(e&&e(r,t)===!1)&&i.after_track_handler(t,n,r))}};Uc.prototype.create_properties=function(e,t){var n;return typeof e=="function"?n=e(t):n=A.extend({},e),n};var mp=function(){this.override_event="click"};A.inherit(mp,Uc);mp.prototype.create_properties=function(e,t){var n=mp.superclass.create_properties.apply(this,arguments);return t.href&&(n.url=t.href),n};mp.prototype.event_handler=function(e,t,n){n.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",n.href=t.href,n.new_tab||e.preventDefault()};mp.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var AT=function(){this.override_event="submit"};A.inherit(AT,Uc);AT.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()};AT.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Jl="$set",_p="$set_once",No="$unset",$f="$add",va="$append",Ff="$union",vc="$remove",hBe="$delete",yK={set_action:function(e,t){var n={},r={};return A.isObject(e)?A.each(e,function(i,s){this._is_reserved_property(s)||(r[s]=i)},this):r[e]=t,n[Jl]=r,n},unset_action:function(e){var t={},n=[];return A.isArray(e)||(e=[e]),A.each(e,function(r){this._is_reserved_property(r)||n.push(r)},this),t[No]=n,t},set_once_action:function(e,t){var n={},r={};return A.isObject(e)?A.each(e,function(i,s){this._is_reserved_property(s)||(r[s]=i)},this):r[e]=t,n[_p]=r,n},union_action:function(e,t){var n={},r={};return A.isObject(e)?A.each(e,function(i,s){this._is_reserved_property(s)||(r[s]=A.isArray(i)?i:[i])},this):r[e]=A.isArray(t)?t:[t],n[Ff]=r,n},append_action:function(e,t){var n={},r={};return A.isObject(e)?A.each(e,function(i,s){this._is_reserved_property(s)||(r[s]=i)},this):r[e]=t,n[va]=r,n},remove_action:function(e,t){var n={},r={};return A.isObject(e)?A.each(e,function(i,s){this._is_reserved_property(s)||(r[s]=i)},this):r[e]=t,n[vc]=r,n},delete_action:function(){var e={};return e[hBe]="",e}},pr=function(){};A.extend(pr.prototype,yK);pr.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n};pr.prototype.set=jp(function(e,t,n){var r=this.set_action(e,t);
vendor: 13,203 bytes, line 604
604return A.isObject(e)&&(n=t),this._send_request(r,n)});pr.prototype.set_once=jp(function(e,t,n){var r=this.set_once_action(e,t);return A.isObject(e)&&(n=t),this._send_request(r,n)});pr.prototype.unset=jp(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)});pr.prototype.union=jp(function(e,t,n){A.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)});pr.prototype.delete=jp(function(e){var t=this.delete_action();return this._send_request(t,e)});pr.prototype.remove=jp(function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)});pr.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var n=A.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:n,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)};pr.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"};pr.prototype._get_config=function(e){return this._mixpanel.get_config(e)};pr.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};pr.prototype.remove=pr.prototype.remove;pr.prototype.set=pr.prototype.set;pr.prototype.set_once=pr.prototype.set_once;pr.prototype.union=pr.prototype.union;pr.prototype.unset=pr.prototype.unset;pr.prototype.toString=pr.prototype.toString;var Nt=function(){};A.extend(Nt.prototype,yK);Nt.prototype._init=function(e){this._mixpanel=e};Nt.prototype.set=mu(function(e,t,n){var r=this.set_action(e,t);return A.isObject(e)&&(n=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[Jl]=A.extend({},A.info.people_properties(),r[Jl]),this._send_request(r,n)});Nt.prototype.set_once=mu(function(e,t,n){var r=this.set_once_action(e,t);return A.isObject(e)&&(n=t),this._send_request(r,n)});Nt.prototype.unset=mu(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)});Nt.prototype.increment=mu(function(e,t,n){var r={},i={};return A.isObject(e)?(A.each(e,function(s,o){if(!this._is_reserved_property(o))if(isNaN(parseFloat(s))){_n.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else i[o]=s},this),n=t):(A.isUndefined(t)&&(t=1),i[e]=t),r[$f]=i,this._send_request(r,n)});Nt.prototype.append=mu(function(e,t,n){A.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)});Nt.prototype.remove=mu(function(e,t,n){A.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)});Nt.prototype.union=mu(function(e,t,n){A.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)});Nt.prototype.track_charge=mu(function(){_n.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")});Nt.prototype.clear_charges=function(e){return this.set("$transactions",[],e)};Nt.prototype.delete_user=function(){if(!this._identify_called()){_n.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)};Nt.prototype.toString=function(){return this._mixpanel.toString()+".people"};Nt.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");n&&(e.$device_id=n),r&&(e.$user_id=r),i&&(e.$had_persisted_distinct_id=i);var s=A.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:s,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),A.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),A.truncate(s,255))};Nt.prototype._get_config=function(e){return this._mixpanel.get_config(e)};Nt.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};Nt.prototype._enqueue=function(e){Jl in e?this._mixpanel.persistence._add_to_people_queue(Jl,e):_p in e?this._mixpanel.persistence._add_to_people_queue(_p,e):No in e?this._mixpanel.persistence._add_to_people_queue(No,e):$f in e?this._mixpanel.persistence._add_to_people_queue($f,e):va in e?this._mixpanel.persistence._add_to_people_queue(va,e):vc in e?this._mixpanel.persistence._add_to_people_queue(vc,e):Ff in e?this._mixpanel.persistence._add_to_people_queue(Ff,e):_n.error("Invalid call to _enqueue():",e)};Nt.prototype._flush_one_queue=function(e,t,n,r){var i=this,s=A.extend({},this._mixpanel.persistence.load_queue(e)),o=s;!A.isUndefined(s)&&A.isObject(s)&&!A.isEmptyObject(s)&&(i._mixpanel.persistence._pop_from_people_queue(e,s),i._mixpanel.persistence.save(),r&&(o=r(s)),t.call(i,o,function(a,l){a===0&&i._mixpanel.persistence._add_to_people_queue(e,s),A.isUndefined(n)||n(a,l)}))};Nt.prototype._flush=function(e,t,n,r,i,s,o){var a=this;this._flush_one_queue(Jl,this.set,e),this._flush_one_queue(_p,this.set_once,r),this._flush_one_queue(No,this.unset,s,function(b){return A.keys(b)}),this._flush_one_queue($f,this.increment,t),this._flush_one_queue(Ff,this.union,i);var l=this._mixpanel.persistence.load_queue(va);if(!A.isUndefined(l)&&A.isArray(l)&&l.length)for(var f,d=function(b,w){b===0&&a._mixpanel.persistence._add_to_people_queue(va,f),A.isUndefined(n)||n(b,w)},p=l.length-1;p>=0;p--)l=this._mixpanel.persistence.load_queue(va),f=l.pop(),a._mixpanel.persistence.save(),A.isEmptyObject(f)||a.append(f,d);var m=this._mixpanel.persistence.load_queue(vc);if(!A.isUndefined(m)&&A.isArray(m)&&m.length)for(var _,v=function(b,w){b===0&&a._mixpanel.persistence._add_to_people_queue(vc,_),A.isUndefined(o)||o(b,w)},E=m.length-1;E>=0;E--)m=this._mixpanel.persistence.load_queue(vc),_=m.pop(),a._mixpanel.persistence.save(),A.isEmptyObject(_)||a.remove(_,v)};Nt.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"};Nt.prototype.set=Nt.prototype.set;Nt.prototype.set_once=Nt.prototype.set_once;Nt.prototype.unset=Nt.prototype.unset;Nt.prototype.increment=Nt.prototype.increment;Nt.prototype.append=Nt.prototype.append;Nt.prototype.remove=Nt.prototype.remove;Nt.prototype.union=Nt.prototype.union;Nt.prototype.track_charge=Nt.prototype.track_charge;Nt.prototype.clear_charges=Nt.prototype.clear_charges;Nt.prototype.delete_user=Nt.prototype.delete_user;Nt.prototype.toString=Nt.prototype.toString;var SL="__mps",EL="__mpso",wL="__mpus",TL="__mpa",xL="__mpap",CL="__mpr",AL="__mpu",bK="$people_distinct_id",GE="__alias",V_="__timers",pBe=[SL,EL,wL,TL,xL,CL,AL,bK,GE,V_],Yt=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;t!=="cookie"&&t!=="localStorage"&&(_n.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),t==="localStorage"&&A.localStorage.is_supported()?this.storage=A.localStorage:this.storage=A.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Yt.prototype.properties=function(){var e={};return this.load(),A.each(this.props,function(t,n){A.include(pBe,n)||(e[n]=t)}),e};Yt.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=A.extend({},e))}};Yt.prototype.upgrade=function(){var e,t;this.storage===A.localStorage?(e=A.cookie.parse(this.name),A.cookie.remove(this.name),A.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===A.cookie&&(t=A.localStorage.parse(this.name),A.localStorage.remove(this.name),t&&this.register_once(t))};Yt.prototype.save=function(){this.disabled||this.storage.set(this.name,gp(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};Yt.prototype.load_prop=function(e){return this.load(),this.props[e]};Yt.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};Yt.prototype.clear=function(){this.remove(),this.props={}};Yt.prototype.register_once=function(e,t,n){return A.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof n>"u"?this.default_expiry:n,this.load(),A.each(e,function(r,i){(!this.props.hasOwnProperty(i)||this.props[i]===t)&&(this.props[i]=r)},this),this.save(),!0):!1};Yt.prototype.register=function(e,t){return A.isObject(e)?(this.expire_days=typeof t>"u"?this.default_expiry:t,this.load(),A.extend(this.props,e),this.save(),!0):!1};Yt.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())};Yt.prototype.update_search_keyword=function(e){this.register(A.info.searchInfo(e))};Yt.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:A.info.referringDomain(e)||"$direct"},"")};Yt.prototype.get_referrer_info=function(){return A.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};Yt.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)};Yt.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()};Yt.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())};Yt.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())};Yt.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())};Yt.prototype.get_cross_subdomain=function(){return this.cross_subdomain};Yt.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())};Yt.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],i=this._get_or_create_queue(Jl),s=this._get_or_create_queue(_p),o=this._get_or_create_queue(No),a=this._get_or_create_queue($f),l=this._get_or_create_queue(Ff),f=this._get_or_create_queue(vc,[]),d=this._get_or_create_queue(va,[]);n===SL?(A.extend(i,r),this._pop_from_people_queue($f,r),this._pop_from_people_queue(Ff,r),this._pop_from_people_queue(No,r)):n===EL?(A.each(r,function(p,m){m in s||(s[m]=p)}),this._pop_from_people_queue(No,r)):n===wL?A.each(r,function(p){A.each([i,s,a,l],function(m){p in m&&delete m[p]}),A.each(d,function(m){p in m&&delete m[p]}),o[p]=!0}):n===TL?(A.each(r,function(p,m){m in i?i[m]+=p:(m in a||(a[m]=0),a[m]+=p)},this),this._pop_from_people_queue(No,r)):n===AL?(A.each(r,function(p,m){A.isArray(p)&&(m in l||(l[m]=[]),A.each(p,function(_){A.include(l[m],_)||l[m].push(_)}))}),this._pop_from_people_queue(No,r)):n===CL?(f.push(r),this._pop_from_people_queue(va,r)):n===xL&&(d.push(r),this._pop_from_people_queue(No,r)),_n.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),_n.log(t),this.save()};Yt.prototype._pop_from_people_queue=function(e,t){var n=this.props[this._get_queue_key(e)];A.isUndefined(n)||A.each(t,function(r,i){e===va||e===vc?A.each(n,function(s){s[i]===r&&delete s[i]}):delete n[i]},this)};Yt.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))};Yt.prototype._get_queue_key=function(e){if(e===Jl)return SL;if(e===_p)return EL;if(e===No)return wL;if(e===$f)return TL;if(e===va)return xL;if(e===vc)return CL;if(e===Ff)return AL;_n.error("Invalid queue:",e)};Yt.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=A.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)};Yt.prototype.set_event_timer=function(e,t){var n=this.load_prop(V_)||{};n[e]=t,this.props[V_]=n,this.save()};Yt.prototype.remove_event_timer=function(e){var t=this.load_prop(V_)||{},n=t[e];return A.isUndefined(n)||(delete this.props[V_][e],this.save()),n};var RL,SK=function(e,t){throw new Error(e+" not available in this build.")},Li,EK=0,gBe=1,mBe=function(e){return e},ao="mixpanel",wK="base64",_Be="json",kL="$device:",Mh=Te.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,TK=!Mh&&ca.indexOf("MSIE")===-1&&ca.indexOf("Mozilla")===-1,qE=null;dc.sendBeacon&&(qE=function(){return dc.sendBeacon.apply(dc,arguments)});var xK={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},pH={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:xK,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:wK,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Bl,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Bl,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose
604:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:1800*1e3,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:qm,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},CK=!1,ue=function(){},sO=function(e,t,n){var r,i=n===ao?Li:Li[n];if(i&&RL===EK)r=i;else{if(i&&!A.isArray(i)){_n.error("You have already initialized "+n);return}r=new ue}if(r._cached_groups={},r._init(e,t,n),r.people=new Nt,r.people._init(r),!r.get_config("skip_first_touch_marketing")){var s=A.info.campaignParams(null),o={},a=!1;A.each(s,function(l,f){o["initial_"+f]=l,l&&(a=!0)}),a&&r.people.set_once(o)}return mo.DEBUG=mo.DEBUG||r.get_config("debug"),!A.isUndefined(i)&&A.isArray(i)&&(r._execute_array.call(r.people,i.people),r._execute_array(i)),r};ue.prototype.init=function(e,t,n){if(A.isUndefined(n)){this.report_error("You must name your new library: init(token, config, name)");return}if(n===ao){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var r=sO(e,t,n);return Li[n]=r,r._loaded(),r};ue.prototype._init=function(e,t,n){t=t||{},this.__loaded=!0,this.config={};var r={};if(!("api_payload_format"in t)){var i=t.api_host||pH.api_host;
604i.match(/\.mixpanel\.com/)&&(r.api_payload_format=_Be)}if(this.set_config(A.extend({},pH,r,t,{name:n,token:e,callback_fn:(n===ao?n:ao+"."+n)+"._jsc"})),this._jsc=Bl,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!A.localStorage.is_supported(!0)||!Mh)this._batch_requests=!1,_n.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),A.each(this.get_batcher_configs(),function(a){_n.log("Clearing batch queue "+a.queue_key),A.localStorage.remove(a.queue_key)});else if(this.init_batchers(),qE&&Te.addEventListener){var s=A.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);Te.addEventListener("pagehide",function(a){a.persisted&&s()}),Te.addEventListener("visibilitychange",function(){Rt.visibilityState==="hidden"&&s()})}}this.persistence=this.cookie=new Yt(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=A.UUID();this.get_distinct_id()||this.register_once({distinct_id:kL+o,$device_id:o},""),this.flags=new Qt({getFullApiRoute:A.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:A.bind(this.get_config,this),setConfigFunc:A.bind(this.set_config,this),getPropertyFunc:A.bind(this.get_property,this),trackingFunc:A.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new Wr(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()};ue.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))_n.log("Tab ID initialization skipped due to disable_persistence config");else if(A.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,n="mp_gen_new_tab_id_"+e;(A.sessionStorage.get(n)||!A.sessionStorage.get(t))&&A.sessionStorage.set(t,"$tab-"+A.UUID()),A.sessionStorage.set(n,"1"),this.tab_id=A.sessionStorage.get(t),Te.addEventListener("beforeunload",function(){A.sessionStorage.remove(n)})}catch(r){this.report_error("Error initializing tab id",r)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")};ue.prototype.get_tab_id=function(){return this.tab_id||null};ue.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return _n.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new Vo(pL),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(n){for(var r=0;r<n.length;r++)if(vL(n[r])||n[r].tabId===t)return!0;return!1}).catch(A.bind(function(n){this.report_error("Error checking recording registry",n)},this))};ue.prototype._check_and_start_session_recording=gu(function(e){if(!Te.MutationObserver){_n.critical("Browser does not support MutationObserver; skipping session recording");return}var t=A.bind(function(r){var i=A.bind(function(){this._recorder=this._recorder||new Te.__mp_recorder(this),this._recorder.resumeRecording(r)},this);A.isUndefined(Te.__mp_recorder)?SK(this.get_config("recorder_src"),i):i()},this),n=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");e||n?t(!0):this._should_load_recorder().then(function(r){r&&t(!1)})});ue.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)};ue.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()};ue.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()};ue.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()};ue.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")};ue.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e};ue.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();if(t){var n=A.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")});e="https://mixpanel.com/projects/replay-redirect?"+n}return e};ue.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null};ue.prototype.__get_recorder=function(){return this._recorder};ue.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=A.info.campaignParams(null);A.each(e,(function(t,n){this.unregister(n)}).bind(this))}};ue.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Rt.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(A.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Rt.referrer)};ue.prototype._dom_loaded=function(){A.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||A.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue};ue.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!CK)return this.__dom_loaded_queue.push([e,t]),!1;var n=new e().init(this);return n.track.apply(n,t)};ue.prototype._prepare_callback=function(e,t){if(A.isUndefined(e))return null;if(Mh){var n=function(o){e(o,t)};return n}else{var r=this._jsc,i=""+Math.floor(Math.random()*1e8),s=this.get_config("callback_fn")+"["+i+"]";return r[i]=function(o){delete r[i],e(o,t)},s}};ue.prototype._send_request=function(e,t,n,r){var i=!0;if(TK)return this.__request_queue.push(arguments),i;var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
vendor: 17,968 bytes, line 604
604:this.get_config("verbose")},o=null;!r&&(A.isFunction(n)||typeof n=="string")&&(r=n,n=null),n=A.extend(s,n||{}),Mh||(n.method="GET");var a=n.method==="POST",l=qE&&a&&n.transport.toLowerCase()==="sendbeacon",f=n.verbose;t.verbose&&(f=!0),this.get_config("test")&&(t.test=1),f&&(t.verbose=1),this.get_config("img")&&(t.img=1),Mh||(r?t.callback=r:(f||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),a&&(o="data="+encodeURIComponent(t.data),delete t.data),A.extend(t,this.get_config("api_extra_query_params")),e+="?"+A.HTTPBuildQuery(t);var d=this;if("img"in t){var p=Rt.createElement("img");p.src=e,Rt.body.appendChild(p)}else if(l){try{i=qE(e,o)}catch(w){d.report_error(w),i=!1}try{r&&r(i?1:0)}catch(w){d.report_error(w)}}else if(Mh)try{var m=new XMLHttpRequest;m.open(n.method,e,!0);var _=this.get_config("xhr_headers");if(a&&(_["Content-Type"]="application/x-www-form-urlencoded"),A.each(_,function(w,T){m.setRequestHeader(T,w)}),n.timeout_ms&&typeof m.timeout<"u"){m.timeout=n.timeout_ms;var v=new Date().getTime()}m.withCredentials=!0,m.onreadystatechange=function(){if(m.readyState===4)if(m.status===200){if(r)if(f){var w;try{w=A.JSONDecode(m.responseText)}catch(C){if(d.report_error(C),n.ignore_json_errors)w=m.responseText;else return}r(w)}else r(Number(m.responseText))}else{var T;if(m.timeout&&!m.status&&new Date().getTime()-v>=m.timeout?T="timeout":T="Bad HTTP status: "+m.status+" "+m.statusText,d.report_error(T),r)if(f){var R=m.responseHeaders||{};r({status:0,httpStatusCode:m.status,error:T,retryAfter:R["Retry-After"]})}else r(0)}},m.send(o)}catch(w){d.report_error(w),i=!1}else{var E=Rt.createElement("script");E.type="text/javascript",E.async=!0,E.defer=!0,E.src=e;var b=Rt.getElementsByTagName("script")[0];b.parentNode.insertBefore(E,b)}return i};ue.prototype._execute_array=function(e){var t,n=[],r=[],i=[];A.each(e,function(o){o&&(t=o[0],A.isArray(t)?i.push(o):typeof o=="function"?o.call(this):A.isArray(o)&&t==="alias"?n.push(o):A.isArray(o)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?i.push(o):r.push(o))},this);var s=function(o,a){A.each(o,function(l){if(A.isArray(l[0])){var f=a;A.each(l,function(d){f=f[d[0]].apply(f,d.slice(1))})}else this[l[0]].apply(this,l.slice(1))},a)};s(n,this),s(r,this),s(i,this)};ue.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};ue.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs};ue.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=A.bind(function(n){return new Eo(n.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:A.bind(function(r,i,s){var o=this.get_config("api_routes");this._send_request(this.get_api_host(n.api_name)+"/"+o[n.api_name],this._encode_data_for_request(r),i,this._prepare_callback(s,r))},this),beforeSendHook:A.bind(function(r){return this._run_hook("before_send_"+n.type,r)},this),stopAllBatchingFunc:A.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()};ue.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,A.each(this.request_batchers,function(e){e.start()}))};ue.prototype.stop_batch_senders=function(){this._batch_requests=!1,A.each(this.request_batchers,function(e){e.stop(),e.clear()})};ue.prototype.push=function(e){this._execute_array([e])};ue.prototype.disable=function(e){typeof e>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)};ue.prototype._encode_data_for_request=function(e){var t=gp(e);return this.get_config("api_payload_format")===wK&&(t=A.base64Encode(t)),{data:t}};ue.prototype._track_or_batch=function(e,t){var n=A.truncate(e.data,255),r=e.endpoint,i=e.batcher,s=e.should_send_immediately,o=e.send_request_options||{};t=t||Bl;var a=!0,l=A.bind(function(){return o.skip_hooks||(n=this._run_hook("before_send_"+e.type,n)),n?(_n.log("MIXPANEL REQUEST:"),_n.log(n),this._send_request(r,this._encode_data_for_request(n),o,this._prepare_callback(t,n))):null},this);return this._batch_requests&&!s?i.enqueue(n).then(function(f){f?t(1,n):l()}):a=l(),a&&n};ue.prototype.track=gu(function(e,t,n,r){!r&&typeof n=="function"&&(r=n,n=null),n=n||{};var i=n.transport;i&&(n.transport=i);var s=n.send_immediately;if(typeof r!="function"&&(r=Bl),A.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){r(0);return}t=A.extend({},t),t.token=this.get_config("token");var o=this.persistence.remove_event_timer(e);if(!A.isUndefined(o)){var a=new Date().getTime()-o;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?A.info.marketingParams():{};t=A.extend({},A.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var f=this.get_config("property_blacklist");A.isArray(f)?A.each(f,function(m){delete t[m]}):this.report_error("Invalid value for property_blacklist config: "+f);var d={event:e,properties:t},p=this._track_or_batch({type:"events",data:d,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:n},r);return p});ue.prototype.set_group=gu(function(e,t,n){A.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)});ue.prototype.add_group=gu(function(e,t,n){var r=this.get_property(e),i={};return r===void 0?(i[e]=[t],this.register(i)):r.indexOf(t)===-1&&(r.push(t),i[e]=r,this.register(i)),this.people.union(e,t,n)});ue.prototype.remove_group=gu(function(e,t,n){var r=this.get_property(e);if(r!==void 0){var i=r.indexOf(t);i>-1&&(r.splice(i,1),this.register({group_key:r})),r.length===0&&this.unregister(e)}return this.people.remove(e,t,n)});ue.prototype.track_with_groups=gu(function(e,t,n,r){var i=A.extend({},t||{});return A.each(n,function(s,o){s!=null&&(i[o]=s)}),this.track(e,i,r)});ue.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)};ue.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]};ue.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];return(r===void 0||r._group_key!==e||r._group_id!==t)&&(r=new pr,r._init(this,e,t),this._cached_groups[n]=r),r};ue.prototype.track_pageview=gu(function(e,t){typeof e!="object"&&(e={}),t=t||{};var n=t.event_name||"$mp_web_page_view",r=A.extend(A.info.mpPageViewProperties(),A.info.campaignParams(),A.info.clickParams()),i=A.extend({},r,e);return this.track(n,i)});ue.prototype.track_links=function(){return this._track_dom.call(this,mp,arguments)};ue.prototype.track_forms=function(){return this._track_dom.call(this,AT,arguments)};ue.prototype.time_event=function(e){if(A.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var vBe={persistent:!0},IL=function(e){var t;return A.isObject(e)?t=e:A.isUndefined(e)?t={}:t={days:e},A.extend({},vBe,t)};ue.prototype.register=function(e,t){var n=IL(t);n.persistent?this.persistence.register(e,n.days):A.extend(this.unpersisted_superprops,e)};ue.prototype.register_once=function(e,t,n){var r=IL(n);r.persistent?this.persistence.register_once(e,t,r.days):(typeof t>"u"&&(t="None"),A.each(e,function(i,s){(!this.unpersisted_superprops.hasOwnProperty(s)||this.unpersisted_superprops[s]===t)&&(this.unpersisted_superprops[s]=i)},this))};ue.prototype.unregister=function(e,t){t=IL(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]};ue.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)};ue.prototype.identify=function(e,t,n,r,i,s,o,a){var l=this.get_distinct_id();if(e&&l!==e){if(typeof e=="string"&&e.indexOf(kL)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var f=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:f},"")}e!==l&&e!==this.get_property(GE)&&(this.unregister(GE),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,n,r,i,s,o,a),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0}),e!==l&&this.flags.fetchFlags()};ue.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=A.UUID();this.register_once({distinct_id:kL+e,$device_id:e},""),this._check_and_start_session_recording()};ue.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};ue.prototype.alias=function(e,t){if(e===this.get_property(bK))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=this;return A.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(GE,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){n.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)};ue.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)};ue.prototype.set_config=function(e){if(A.isObject(e)){A.extend(this.config,e);var t=e.batch_size;t&&A.each(this.request_batchers,function(n){n.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),mo.DEBUG=mo.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init()}};ue.prototype.get_config=function(e){return this.config[e]};ue.prototype._run_hook=function(e){var t=(this.config.hooks[e]||mBe).apply(this,Al.call(arguments,1));return typeof t>"u"&&(this.report_error(e+" hook did not return a value"),t=null),t};ue.prototype.get_property=function(e){return this.persistence.load_prop([e])};ue.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")};ue.prototype.toString=function(){var e=this.get_config("name");return e!==ao&&(e=ao+"."+e),e};ue.prototype._event_is_disabled=function(e){return A.isBlockedUA(ca)||this._flags.disable_all_events||A.include(this.__disabled_events,e)};ue.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&A.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||A.cookie.get("mp_optout"))&&(A.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};ue.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()};ue.prototype._gdpr_call_func=function(e,t){return t=A.extend({track:A.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),A.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};ue.prototype.opt_in_tracking=function(e){e=A.extend({enable_persistence:!0},e),this._gdpr_call_func(E3e,e),this._gdpr_update_persistence(e)};ue.prototype.opt_out_tracking=function(e){e=A.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(w3e,e),this._gdpr_update_persistence(e)};ue.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(T3e,e)};ue.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(GX,e)};ue.prototype.clear_opt_in_out_tracking=function(e){e=A.extend({enable_persistence:!0},e),this._gdpr_call_func(x3e,e),this._gdpr_update_persistence(e)};ue.prototype.report_error=function(e,t){_n.error.apply(_n.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(n){_n.error(n)}};ue.prototype.init=ue.prototype.init;ue.prototype.reset=ue.prototype.reset;ue.prototype.disable=ue.prototype.disable;ue.prototype.time_event=ue.prototype.time_event;ue.prototype.track=ue.prototype.track;ue.prototype.track_links=ue.prototype.track_links;ue.prototype.track_forms=ue.prototype.track_forms;ue.prototype.track_pageview=ue.prototype.track_pageview;ue.prototype.register=ue.prototype.register;ue.prototype.register_once=ue.prototype.register_once;ue.prototype.unregister=ue.prototype.unregister;ue.prototype.identify=ue.prototype.identify;ue.prototype.alias=ue.prototype.alias;ue.prototype.name_tag=ue.prototype.name_tag;ue.prototype.set_config=ue.prototype.set_config;ue.prototype.get_config=ue.prototype.get_config;ue.prototype.get_api_host=ue.prototype.get_api_host;ue.prototype.get_property=ue.prototype.get_property;ue.prototype.get_distinct_id=ue.prototype.get_distinct_id;ue.prototype.toString=ue.prototype.toString;ue.prototype.opt_out_tracking=ue.prototype.opt_out_tracking;ue.prototype.opt_in_tracking=ue.prototype.opt_in_tracking;ue.prototype.has_opted_out_tracking=ue.prototype.has_opted_out_tracking;ue.prototype.has_opted_in_tracking=ue.prototype.has_opted_in_tracking;ue.prototype.clear_opt_in_out_tracking=ue.prototype.clear_opt_in_out_tracking;ue.prototype.get_group=ue.prototype.get_group;ue.prototype.set_group=ue.prototype.set_group;ue.prototype.add_group=ue.prototype.add_group;ue.prototype.remove_group=ue.prototype.remove_group;ue.prototype.track_with_groups=ue.prototype.track_with_groups;ue.prototype.start_batch_senders=ue.prototype.start_batch_senders;ue.prototype.stop_batch_senders=ue.prototype.stop_batch_senders;ue.prototype.start_session_recording=ue.prototype.start_session_recording;ue.prototype.stop_session_recording=ue.prototype.stop_session_recording;ue.prototype.pause_session_recording=ue.prototype.pause_session_recording;ue.prototype.resume_session_recording=ue.prototype.resume_session_recording;ue.prototype.get_session_recording_properties=ue.prototype.get_session_recording_properties;ue.prototype.get_session_replay_url=ue.prototype.get_session_replay_url;ue.prototype.get_tab_id=ue.prototype.get_tab_id;ue.prototype.DEFAULT_API_ROUTES=xK;ue.prototype.__get_recorder=ue.prototype.__get_recorder;Yt.prototype.properties=Yt.prototype.properties;Yt.prototype.update_search_keyword=Yt.prototype.update_search_keyword;Yt.prototype.update_referrer_info=Yt.prototype.update_referrer_info;Yt.prototype.get_cross_subdomain=Yt.prototype.get_cross_subdomain;Yt.prototype.clear=Yt.prototype.clear;var yh={},yBe=function(){A.each(yh,function(e,t){t!==ao&&(Li[t]=e)}),Li._=A},bBe=function(){Li.init=function(e,t,n){if(n)return Li[n]||(Li[n]=yh[n]=sO(e,t,n),Li[n]._loaded()),Li[n];var r=Li;yh[ao]?r=yh[ao]:e&&(r=sO(e,t,ao),r._loaded(),yh[ao]=r),Li=r,RL===gBe&&(Te[ao]=Li),yBe()}},SBe=function(){function e(){e.done||(e.done=!0,CK=!0,TK=!1,A.each(yh,function(r){r._dom_loaded()}))}function t(){try{Rt.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(Rt.addEventListener)Rt.readyState==="complete"?e():Rt.addEventListener("DOMContentLoaded",e,!1);else if(Rt.attachEvent){Rt.attachEvent("onreadystatechange",e);var n=!1;try{n=Te.frameElement===null}catch{}Rt.documentElement.doScroll&&n&&t()}A.register_event(Te,"load",e,!0)};function EBe(e){return SK=e,RL=EK,Li=new ue,bBe(),Li.init(),SBe(),Li}function wBe(e,t){t()}var oO=EBe(wBe);function TBe({token:e,...t}){const n=iv(t);D.useEffect(()=>(oO.init(e,n),()=>{oO.reset()}),[n,e])}function xBe(e){TBe({autotrack:!0,batch_requests:!1,cookie_expiration:365,cross_site_cookie:!1,cross_subdomain_cookie:!1,debug:!1,disable_cookie:!1,disable_persistence:!1,ignore_dnt:!0,img:!0,ip:!0,opt_out_persistence_by_default:!1,opt_out_tracking_by_default:!1,opt_out_tracking_persistence_type:"localStorage",persistence:"localStorage",save_referrer:!0,secure_cookie:!0,store_google:!0,token:e,track_pageview:!0,upgrade:!0,verbose
604:!0})}const CBe=ct("2066f9605c25614b4297e8ae53d8dc23");function ABe(){return qNe(),tLe(),fLe(),ELe(),xBe(CBe),null}const RBe="_footer_h2jec_1",kBe={footer:RBe};function AK(){return q.jsx(q.Fragment,{children:"..."})}const RK=D.createContext(AK);function IBe(e){return e}const kK=D.createContext(IBe);function zv(){return D.useContext(kK)}function OBe(e){return Array.isArray(e)?e.join(""):e.toString()}function Ra({children:e,...t}){const n=D.useContext(RK),i=zv()(OBe(e),t);return typeof i>"u"?q.jsx(n,{}):q.jsx(q.Fragment,{children:i})}const MBe=0,NBe=1;function LBe(e){if(!n6(e))return!1;const t=Object.keys(e);return t.length===NBe&&t[MBe]==="default"}function DBe(e){const[t,n]=e;return typeof t=="string"&&typeof n=="string"}function WE(e){return!n6(e)||e instanceof Promise?!1:Object.entries(e).every(DBe)}function u0(e){return LBe(e)&&WE(e.default)}const PBe=Object.freeze({});function $Be(e){let t=PBe;const n=Object.entries(e);for(const[r,i]of n)u0(i)&&(t={...t,[r]:i.default}),WE(i)&&(t={...t,[r]:i});return t}class FBe{#e=new Map;emit(t,...n){const r=this.#e.get(t);if(!(typeof r>"u"))for(const i of r)i(...n)}on(t,n){const r=this.#e.get(t);typeof r>"u"?this.#e.set(t,[n]):r.push(n)}}function UBe(e){return typeof e=="boolean"||typeof e=="number"||typeof e=="string"}function BBe(e,t){return q.jsx(D.Fragment,{children:e},t)}const zBe=1,HBe=1,jBe=2,gH=0,VBe="$";function GBe(e,t,n){const r=e.split(`${VBe}${t}`);for(let i=gH;i<r.length-HBe;i+=jBe)r.splice(i+zBe,gH,n);return r}const qBe=1,WBe="$";function mH(e,t){if(typeof t>"u")return e;const n=[e],r=2;for(const[i,s]of Object.entries(t))for(let o=0;o<n.length;o+=r){const a=n[o],l=GBe(a,i,s);n.splice(o,WBe.length,...l),o+=l.length-qBe}return n.every(UBe)?n.join(""):q.jsx(q.Fragment,{children:n.map(BBe)})}class YBe extends FBe{#e;#t;constructor({fallbackTranslations:t,translations:n}){super(),this.#e=t,this.#t=n,this.run=this.run.bind(this)}run(t,n){if(typeof this.#t>"u"){this.emit("loadTranslations",t);return}const r=this.#t[t];if(typeof r<"u")return mH(r,n);if(typeof this.#e>"u"){this.emit("loadFallbackTranslations",t);return}const i=this.#e[t];if(typeof i<"u")return mH(i,n);this.emit("notFound",t)}}function XBe(e){throw new Error(`Fallback translation not found: ${e}`)}const KBe=Object.freeze({});function ZBe({onLoad:e,onLoadError:t,translationsRecord:n}){const r=D.useRef(KBe);return D.useCallback(i=>{if(r.current[i]===!0)return null;r.current={...r.current,[i]:!0};const s=n[i];if(typeof s>"u")throw new Error(`Locale not found: ${String(i)}`);if(WE(s))return e(i,s),null;if(u0(s))return e(i,s.default),null;const o=s();return WE(o)?(e(i,o),null):u0(o)?(e(i,o.default),null):o.then(a=>{if(u0(a)){e(i,a.default);return}e(i,a)}).catch(a=>{if(typeof t>"u")throw a;t(i,a)})},[e,t,n])}function JBe({fallbackLocale:e,locale:t,onLoadError:n,translationsRecord:r}){if(typeof r[t]>"u")throw new Error(`Translations do not exist for locale: ${String(t)}`);if(typeof e=="string"&&typeof r[e]>"u")throw new Error(`Translations do not exist for fallback locale: ${e}`);const i=D.useRef(null),s=D.useRef(null),[o,a]=D.useState(()=>$Be(r)),l=ZBe({onLoad:D.useCallback((m,_)=>{a(v=>({...v,[m]:_}))},[]),onLoadError:n,translationsRecord:r}),d=(()=>{if(!(typeof e>"u"))return o[e]})(),p=o[t];return{asyncLoadFallbackTranslationsEffect:i,asyncLoadTranslationsEffect:s,translate:D.useMemo(()=>{const m=new YBe({fallbackTranslations:d,translations:p});return m.on("loadFallbackTranslations",_=>{if(typeof e>"u")throw new Error(`Translation not found: ${_}`);i.current=l(e)}),m.on("loadTranslations",()=>{s.current=l(t)}),m.on("notFound",XBe),m.run.bind(m)},[e,l,d,p,t])}}function QBe({children:e,fallbackLocale:t,LoadingComponent:n,locale:r,onLoadError:i,translations:s}){const{translate:o}=JBe({fallbackLocale:t,locale:r,onLoadError:i,translationsRecord:s});return q.jsx(RK.Provider,{value:n??AK,children:q.jsx(kK.Provider,{value:o,children:e})})}const e2e="_emoji_1gv44_1",t2e={emoji:e2e},n2e=ct(t2e.emoji),r2e=e=>{const t=[n2e];return typeof e=="string"&&t.push(e),t.join(" ")};function Ql({children:e,className:t}){const n=r2e(t);
604return q.jsx("span",{"aria-hidden":!0,className:n,role:"img",children:e})}const i2e="_dark_124w2_1",s2e="_light_124w2_5",IK={dark:i2e,light:s2e},o2e="_button_871jd_1",a2e={button:o2e},c2e=ct(a2e.button);function YE({children:e,className:t,label:n,onClick:r}){const i=[c2e];typeof t<"u"&&i.push(t);const s=i.join(" ");return q.jsx("button",{"aria-label":n,className:s,onClick:r,title:n,type:"button",children:e})}const l2e=ct(IK.dark),u2e=ct(IK.light);function f2e(){const[,e]=zN(),t=zv();return q.jsxs(q.Fragment,{children:[q.jsx(YE,{className:l2e,label:t("Use light color scheme")??"Use light color scheme",onClick:()=>{e("light")},children:q.jsx(Ql,{children:"🌘"})}),q.jsx(YE,{className:u2e,label:t("Use dark color scheme")??"Use dark color scheme",onClick:()=>{e("dark")},children:q.jsx(Ql,{children:"🌖"})})]})}function d2e(){const[e,t]=zN(),n=zv();return e===null?q.jsx(f2e,{}):e==="dark"?q.jsx(YE,{label:n("Use light color scheme")??"Use light color scheme",onClick:()=>{t("light")},children:q.jsx(Ql,{children:"🌘"})}):q.jsx(YE,{label:n("Use dark color scheme")??"Use dark color scheme",onClick:()=>{t("dark")},children:q.jsx(Ql,{children:"🌖"})})}const h2e="_toggle_1vqjr_1",p2e={toggle:h2e},_H=ct(p2e.toggle);function g2e(){const{dev:e,lines:t,toggleLines:n}=Iq(),r=zv();if(!e)return null;if(t){const s=r("Remove lines")??"Remove lines";return q.jsx("button",{"aria-label":s,className:_H,onClick:n,title:s,type:"button",children:q.jsx(Ql,{children:"🦓"})})}const i=r("Add lines")??"Add lines";return q.jsx("button",{"aria-label":i,className:_H,onClick:n,title:i,type:"button",children:q.jsx(Ql,{children:"🐎"})})}const m2e="_status_193w6_1",_2e={status:m2e},v2e=ct(_2e.status);function y2e(){return q.jsxs("div",{className:v2e,children:[q.jsx(d2e,{}),q.jsx(g2e,{})]})}const b2e=ct(kBe.footer);function S2e(){return q.jsx("footer",{className:b2e,children:q.jsx(y2e,{})})}const E2e="/assets/loading-icon-EQ4MJtCa.gif",w2e={clipPath:"ellipse(33% 20%)",height:"233%",width:"133%"},T2e={alignItems:"center",display:"inline-flex",height:"1em",justifyContent:"center",overflow:"hidden",width:"1.33em"};function x2e(){return q.jsx("span",{style:T2e,children:q.jsx("img",{alt:"Loading",src:E2e,style:w2e})})}const C2e=ct("J_6jrNJZNibHylSF83UVl9I4OHZYf67RAsU0s7_LnH1N5BKF-vgOyweF3KQLOKm1"),A2e=ct("https://a.quisi.do/patreon/");function RT(){return window.location.pathname}function R2e(){const{search:e}=window.location;return e===""?"":`?${e}`}var JA,vH;function k2e(){if(vH)return JA;vH=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,JA=n,JA}var I2e=k2e();const O2e=a6(I2e);function M2e(){return Math.floor(performance.now())}const N2e=typeof window<"u"&&!!window.document;typeof WorkerGlobalScope<"u"&&(typeof self<"u"&&self instanceof WorkerGlobalScope&&self.navigator instanceof WorkerNavigator||typeof globalThis<"u"&&globalThis instanceof WorkerGlobalScope&&globalThis.navigator instanceof WorkerNavigator);const _r=N2e?window:typeof WorkerGlobalScope<"u"&&(typeof self<"u"&&self instanceof WorkerGlobalScope&&self||typeof globalThis<"u"&&globalThis instanceof WorkerGlobalScope&&globalThis);_r?.document?.readyState;_r?.document?.visibilityState;/iPad|iPhone|iPod/.test(_r.navigator?.userAgent);(()=>{const e=_r.navigator?.userAgent?.match(/Firefox[/\s](\d+\.\d+)/);return Array.isArray(e)&&e.length>=2?+e[1]:0})();Date.now()-M2e();const L2e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";function yH(e,t){return e?e[t]&15:Math.random()*16|0}function D2e(){const e=_r?.crypto||_r?.msCrypto;let t,n=0;return e&&e.getRandomValues&&(t=e.getRandomValues(new Uint8Array(30))),L2e.split("").map(r=>r==="x"?yH(t,n++).toString(16):r==="y"?(yH()&3|8).toString(16):r).join("")}const P2e="newrelic";function $2e(e={}){try{_r.dispatchEvent(new CustomEvent(P2e,{detail:e}))}catch{}}function F2e(e,t){typeof console.debug=="function"&&(console.debug(`New Relic Warning: https://github.com/newrelic/newrelic-browser-agent/blob/main/docs/warning-codes.md#${e}`,t),$2e({agentIdentifier:null,drained:null,type:"data",name:"warn",feature:"warn",data:{code:e,secondary:t}}))}const QA=new Map;function U2e(...e){return e.every(t=>{if(QA.has(t))return QA.get(t);const n=typeof t=="function"&&t.toString().includes("[native code]");return n||F2e(64,t?.name||t?.toString()),QA.set(t,n),n})}
604function OK(){return _r.NREUM||(_r.NREUM={}),typeof _r.newrelic>"u"&&(_r.newrelic=_r.NREUM),_r.NREUM}function OL(){let e=OK();return e.o||(e.o={ST:_r.setTimeout,SI:_r.setImmediate||_r.setInterval,CT:_r.clearTimeout,XHR:_r.XMLHttpRequest,REQ:_r.Request,EV:_r.Event,PR:_r.Promise,MO:_r.MutationObserver,FETCH:_r.fetch,WS:_r.WebSocket},U2e(...Object.values(e.o))),e}var B2e=Object.prototype.hasOwnProperty;function z2e(e,t,n){if(B2e.call(e,t))return e[t];var r=n();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!1}),r}catch{}return e[t]=r,r}let eR=class{constructor(t){this.contextId=t}};const H2e=D2e(),tR=`nr@context:${H2e}`,ML=MK(void 0,"globalEE"),aO=OK();aO.ee||(aO.ee=ML);function MK(e,t){var n={},r={},i={},s=!1;try{s=t.length!==16?!1:aO.initializedAgents?.[t]?.runtime.isolatedBacklog}catch{}var o={on:d,addEventListener:d,removeEventListener:p,emit:f,get:_,listeners:m,context:l,buffer:v,abort:a,isBuffering:E,debugId:t,backlog:s?{}:e&&typeof e.backlog=="object"?e.backlog:{},isolatedBacklog:s};function a(){o._aborted=!0,Object.keys(o.backlog).forEach(w=>{delete o.backlog[w]})}return Object.defineProperty(o,"aborted",{get:()=>{let w=o._aborted||!1;return w||(e&&(w=e.aborted),w)}}),o;function l(w){return w&&w instanceof eR?w:w?z2e(w,tR,()=>new eR(tR)):new eR(tR)}function f(w,T,R,C,k){if(k!==!1&&(k=!0),!(ML.aborted&&!C)){e&&k&&e.emit(w,T,R);var M=l(R),I=m(w);I.forEach(Q=>{Q.apply(M,T)});var $=b()[r[w]];return $&&$.push([o,w,T,M]),M}}function d(w,T){n[w]=m(w).concat(T)}function p(w,T){var R=n[w];if(R)for(var C=0;C<R.length;C++)R[C]===T&&R.splice(C,1)}function m(w){return n[w]||[]}function _(w){return i[w]=i[w]||MK(o,w)}function v(w,T){const R=b();T=T||"feature",!o.aborted&&Object.entries(w||{}).forEach(([C,k])=>{r[k]=T,T in R||(R[T]=[])})}function E(w){var T=b()[r[w]];return!!T}function b(){return o.backlog}}ML.get("handle");OL().o.REQ;OL().o.XHR;OL().o.ST;const j2e=D.createContext(null);function V2e(){return Math.floor(performance.now())}const G2e=typeof window<"u"&&!!window.document;typeof WorkerGlobalScope<"u"&&(typeof self<"u"&&self instanceof WorkerGlobalScope&&self.navigator instanceof WorkerNavigator||typeof globalThis<"u"&&globalThis instanceof WorkerGlobalScope&&globalThis.navigator instanceof WorkerNavigator);const vr=G2e?window:typeof WorkerGlobalScope<"u"&&(typeof self<"u"&&self instanceof WorkerGlobalScope&&self||typeof globalThis<"u"&&globalThis instanceof WorkerGlobalScope&&globalThis);vr?.document?.readyState;vr?.document?.visibilityState;/iPad|iPhone|iPod/.test(vr.navigator?.userAgent);(()=>{const e=vr.navigator?.userAgent?.match(/Firefox[/\s](\d+\.\d+)/);return Array.isArray(e)&&e.length>=2?+e[1]:0})();Date.now()-V2e();const q2e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";function bH(e,t){return e?e[t]&15:Math.random()*16|0}function W2e(){const e=vr?.crypto||vr?.msCrypto;let t,n=0;return e&&e.getRandomValues&&(t=e.getRandomValues(new Uint8Array(30))),q2e.split("").map(r=>r==="x"?bH(t,n++).toString(16):r==="y"?(bH()&3|8).toString(16):r).join("")}const Y2e="newrelic";function X2e(e={}){try{vr.dispatchEvent(new CustomEvent(Y2e,{detail:e}))}catch{}}function K2e(e,t){typeof console.debug=="function"&&(console.debug("New Relic Warning: https://github.com/newrelic/newrelic-browser-agent/blob/main/docs/warning-codes.md#".concat(e),t),X2e({agentIdentifier:null,drained:null,type:"data",name:"warn",feature:"warn",data:{code:e,secondary:t}}))}const nR=new Map;function Z2e(...e){return e.every(t=>{if(nR.has(t))return nR.get(t);const n=typeof t=="function"&&t.toString().includes("[native code]");return n||K2e(64,t?.name||t?.toString()),nR.set(t,n),n})}function NK(){return vr.NREUM||(vr.NREUM={}),typeof vr.newrelic>"u"&&(vr.newrelic=vr.NREUM),vr.NREUM}function NL(){let e=NK();return e.o||(e.o={ST:vr.setTimeout,SI:vr.setImmediate||vr.setInterval,CT:vr.clearTimeout,XHR:vr.XMLHttpRequest,REQ:vr.Request,EV:vr.Event,PR:vr.Promise,MO:vr.MutationObserver,FETCH:vr.fetch,WS:vr.WebSocket},Z2e(...Object.values(e.o))),e}var J2e=Object.prototype.hasOwnProperty;function Q2e(e,t,n){if(J2e.call(e,t))return e[t];var r=n();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!1}),r}catch{}return e[t]=r,r}class rR{constructor(t){this.contextId=t}}const e5e=W2e(),iR="nr@context:".concat(e5e),LL=LK(void 0,"globalEE"),cO=NK();cO.ee||(cO.ee=LL);function LK(e,t){var n={},r={},i={},s=!1;
604try{s=t.length!==16?!1:cO.initializedAgents?.[t]?.runtime.isolatedBacklog}catch{}var o={on:d,addEventListener:d,removeEventListener:p,emit:f,get:_,listeners:m,context:l,buffer:v,abort:a,isBuffering:E,debugId:t,backlog:s?{}:e&&typeof e.backlog=="object"?e.backlog:{},isolatedBacklog:s};function a(){o._aborted=!0,Object.keys(o.backlog).forEach(w=>{delete o.backlog[w]})}return Object.defineProperty(o,"aborted",{get:()=>{let w=o._aborted||!1;return w||(e&&(w=e.aborted),w)}}),o;function l(w){return w&&w instanceof rR?w:w?Q2e(w,iR,()=>new rR(iR)):new rR(iR)}function f(w,T,R,C,k){if(k!==!1&&(k=!0),!(LL.aborted&&!C)){e&&k&&e.emit(w,T,R);var M=l(R),I=m(w);I.forEach(Q=>{Q.apply(M,T)});var $=b()[r[w]];return $&&$.push([o,w,T,M]),M}}function d(w,T){n[w]=m(w).concat(T)}function p(w,T){var R=n[w];if(R)for(var C=0;C<R.length;C++)R[C]===T&&R.splice(C,1)}function m(w){return n[w]||[]}function _(w){return i[w]=i[w]||LK(o,w)}function v(w,T){const R=b();T=T||"feature",!o.aborted&&Object.entries(w||{}).forEach(([C,k])=>{r[k]=T,T in R||(R[T]=[])})}function E(w){var T=b()[r[w]];return!!T}function b(){return o.backlog}}LL.get("handle");NL().o.REQ;NL().o.XHR;NL().o.ST;const t5e=()=>D.useContext(j2e),n5e=e=>"zaraz"in e;function r5e(e,t){n5e(window)&&window.zaraz.track(e,t)}const i5e="10.27.0",s5e={version:i5e},o5e="10.27.0",a5e={version:o5e},c5e="10.27.0",l5e={version:c5e},u5e="7.120.4",f5e={version:u5e},d5e="10.27.0",h5e={version:d5e},p5e="19.2.0",g5e={version:p5e},m5e="19.2.0",_5e={version:m5e};function v5e(){return"gamma"}const sR=v5e(),y5e=new Date().toUTCString(),oR=ct("production"),b5e=Date.now(),aR={contexts:{app:{app_build:sR,app_identifier:"quisi.do",app_name:"quisi.do",app_start_time:y5e,app_version:sR,build_type:oR},culture:{},device:{},os:{}},dist:oR,environment:oR,level:"log",logger:"useEvent",modules:{"@sentry/browser":s5e.version,"@sentry/core":a5e.version,"@sentry/react":l5e.version,"@sentry/tracing":f5e.version,"@sentry/types":h5e.version,react:_5e.version,"react-dom":g5e.version},platform:"javascript",release:`quisi.do@${sR}`,start_timestamp:b5e,transaction_info:{source:"route"},type:"transaction"};function S5e(e){const t=[],n=r6(e);n.sort(i6);for(const[r,i]of n)t.push(r),t.push(Dh(i));return t}const E5e=16,w5e=32;function T5e(e){const t=e.toString(E5e),n=w5e-t.length;return`${"0".repeat(n)}${t}`}function x5e({dimensions:e,hostname:t,name:n,pathname:r}){const i=Date.now();return{...aR,contexts:{...aR.contexts,device:{...aR.contexts?.device,name:window.navigator.userAgent}},event_id:T5e(i),extra:e,fingerprint:[n,...S5e(e)],message:n,server_name:t,timestamp:i,transaction:r}}const C5e=(e,t,{captureEvent:n,hostname:r,pathname:i})=>{const s=x5e({dimensions:t,hostname:r,name:e,pathname:i});n(s,{mechanism:{type:"generic"}})},A5e=e=>{const t={};for(const[n,r]of r6(e)){if(r===null){t[n]=void 0;continue}t[n]=r}return t},R5e=(e,t)=>{try{oO.track(e,t)}catch{}};function k5e(){const{addAction:e}=fT(),t=Wne(),n=QM(),r=VW(),i=t5e(),s=RT(),o=ixe(),{captureEvent:a}=YG();return D.useCallback((l,f=fI)=>{e(l,f),t("trackEvent",{name:l,properties:f}),r.track(l,A5e(f)),R5e(l,f),i?.recordCustomEvent(l,f),o.capture(l,f,{skip_client_rate_limiting:!0}),C5e(l,f,{captureEvent:a,hostname:n,pathname:s}),r5e(l,f)},[r,e,a,t,n,i,s,o])}function Hv({children:e,className:t,feature:n,follow:r=!0,href:i,label:s,onClick:o,title:a}){const l=()=>{if(!r)return"_blank"},f=k5e(),d=OO(),{primaryHex:p}
604=au(),[m,_]=D.useState(l),v=w=>{m!=="_blank"&&w.preventDefault(),f("click",{feature:n,label:O2e(e),url:i}),!(typeof o=="function"&&o()===!0)&&m!=="_blank"&&typeof i=="string"&&d(i)};D.useEffect(()=>{if(!(typeof i>"u"))try{const{host:w}=new URL(i),{host:T}=window.location;w!==T&&_("_blank")}catch{}},[i]);const b=(()=>{const w=["noopener"];return r||w.push("nofollow"),w.join(" ")})();return typeof i>"u"?q.jsx("a",{"aria-label":s,className:t,onClick:v,rel:b,target:m,title:a,style:{color:p,textDecoration:"none"},children:e}):q.jsx(IO,{"aria-label":s,className:t,onClick:v,rel:b,target:m,title:a,to:i,style:{color:p,textDecoration:"none"},children:e})}const I5e="_link_dptz2_306",O5e={link:I5e},M5e=ct(O5e.link),N5e=["identity","identity[email]"];function L5e(){const e=RT(),t=R2e(),n=qye(),r=zv();return{href:D.useMemo(()=>`https://www.patreon.com/oauth2/authorize?${new URLSearchParams({client_id:C2e,redirect_uri:A2e,response_type:"code",scope:N5e.join(" "),state:JSON.stringify({returnPath:`${e}${t}`,sessionId:n})}).toString()}`,[e,t,n]),title:r("Authenticate")??"Authenticate"}}function D5e(){const{href:e,title:t}=L5e();return q.jsx(Hv,{className:M5e,feature:"header/authenticate-link",href:e,title:t,children:q.jsx(Ra,{children:"Authenticate"})})}const P5e=0,SH=e=>{if(typeof e>"u")return P5e;switch(e){case"large":return"2rem";case"medium":return"1rem";case"small":return"0.5rem"}};function Di({alignItems:e,children:t,className:n,display:r,element:i,flexDirection:s,flexWrap:o,float:a,gap:l,justifyContent:f,marginBottom:d,marginTop:p,textAlign:m}){const _=i??"div";return q.jsx(_,{style:{alignItems:e,display:r,flexDirection:s,flexWrap:o,float:a,fontSize:"1em",gap:l,justifyContent:f,lineHeight:"1rem",marginBottom:SH(d),marginTop:SH(p),padding:0,textAlign:m},className:n,children:t})}function $5e(){const{set:e}=jf();return{handleUnauthenticateClick(){return KG("Authentication-ID","",{expiresMs:1,partitioned:!0,path:"/",subdomains:!0}),e({id:null}),!1}}}function F5e({children:e}){const{handleUnauthenticateClick:t}=$5e();return q.jsxs(Di,{children:[q.jsxs(Di,{marginBottom:"small",children:["User #",e]}),q.jsx(Hv,{feature:"header-authentication",href:"/",onClick:t,title:"",children:"Unauthenticate"})]})}const U5e=200;function B5e(){const{data:e,error:t,initiated:n,loading:r}=jf(),[i,s]=D.useState(!1);D.useEffect(()=>{if(!r)return;const a=window.setTimeout(()=>{s(!0)},U5e);return()=>{window.clearTimeout(a)}},[r]);const o=()=>!(!n||r&&!i);return{id:e?.id??null,show:o(),showLoading:r&&i}}function z5e(){const{id:e,show:t,showLoading:n}=B5e();return t?n?q.jsx(x2e,{}):e===null?q.jsx(D5e,{}):q.jsx(F5e,{children:e}):null}const H5e="_text_rbifs_1",j5e={text:H5e},V5e=ct(j5e.text);function G5e(){return RT()==="/"?"quisi.do":q.jsx(Hv,{feature:"header-heading-text",href:"/",title:"quisi.do",children:q.jsx("span",{className:V5e,children:"quisi.do"})})}const q5e="_heading_2pajo_1",W5e={heading:q5e},Y5e=ct(W5e.heading);function X5e(){const{displayFontFamily:e,displayFontWeight:t}=au();return{fontFamily:`"Cairo Play", ${e}`,fontWeight:t}}function K5e(){const{fontFamily:e,fontWeight:t}=X5e();return q.jsx("h1",{className:Y5e,style:{fontFamily:e,fontWeight:t},children:q.jsx(G5e,{})})}const Z5e="_header_udw4g_1",DK={header:Z5e,"tag-line":"_tag-line_udw4g_17"},J5e=ct(DK.header),Q5e=ct(DK["tag-line"]);function eze(){const{backgroundHex:e}=au();return{backgroundColor:e}}function tze(){const{backgroundColor:e}=eze(),{displayFontFamily:t}=au();return q.jsxs("header",{className:J5e,style:{backgroundColor:e},children:[q.jsxs("div",{children:[q.jsx(K5e,{}),q.jsx("span",{className:Q5e,style:{fontFamily:`"Cairo Play", ${t}`},children:q.jsx(Ra,{children:"front end platform service"})})]}),q.jsx(z5e,{})]})}const nze="Audit",rze="Authenticate",ize="Charities",sze="Dashboard",oze="Problems",aze="Support",cze="Warnings",lze={"$n problems":"$n problems","$n warnings":"$n warnings","1 problem":"1 problem","1 warning":"1 warning","Add lines":"Add lines","An unknown error occurred.":"An unknown error occurred.",Audit:nze,Authenticate:rze,Charities:ize,"Cookie policy":"Cookie policy",Dashboard:sze,"Data Retention & Disposal Policy":"Data Retention & Disposal Policy","Not Found":"Not Found","Our Patreon client is misconfigured.":"Our Patreon client is misconfigured.","Privacy policy":"Privacy policy",Problems:oze,"Remove lines":"Remove lines",Support:aze,"Terms of service":"Terms of service","Use dark color scheme":"Use dark color scheme","Use light color scheme":"Use light color scheme",Warnings:cze,"front end platform service":"front end platform service"},uze={[Lo.English]:lze,[Lo.Arabic]:async()=>wl(()=>import("./index--ar-EG-BIHI7g3E.js"),[]),[Lo.Filipino]:async()=>wl(()=>import("./index--fil-PH-B9WucXep.js"),[]),[Lo.Japanese]:async()=>wl(()=>import("./index--ja-JP-H5ss6JSa.js"),[]),[Lo.Spanish]:async()=>wl(()=>import("./index--es-ES-BIHI7g3E.js"),[])},{ContextProvider:fze,useContextValue:dze}=rv(),hze=fze,pze=dze;function gze(e){const t=OO(),n=RT(),r=D.useCallback(i=>{if(e===Lo.English){t(`/${i}/${n}`);return}const s=n.substring(`/${e}`.length);if(i===Lo.English){t(s);return}t(`/${i}/${s}`)},[e,t,n]);return{locale:e,localeContextValue:D.useMemo(()=>[e,r],[e,r])}}function mze({children:e,locale:t}){const{localeContextValue:n}=gze(t);return q.jsx(hze,{value:n,children:q.jsx(QBe,{fallbackLocale:Lo.English,locale:t,translations:uze,children:e})})}function _ze(){const e=D.useRef(!0);return D.useEffect(()=>()=>{e.current=!1},[]),e}const DL=typeof document<"u"?la.useLayoutEffect:()=>{};var cR;const vze=(cR=la.useInsertionEffect)!==null&&cR!==void 0?cR:DL;function ml(e){const t=D.useRef(null);return vze(()=>{t.current=e},[e]),D.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}let lO=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{lO.delete(e)});function yze(e,t){if(e===t)return e;let n=lO.get(e);
604if(n)return n.forEach(i=>i.current=t),t;let r=lO.get(t);return r?(r.forEach(i=>i.current=e),e):t}function PK(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const co=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Uf=e=>e&&"window"in e&&e.window===e?e:co(e).defaultView||window;function bze(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Sze(e){return bze(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let Eze=!1;function PL(){return Eze}function Ko(e,t){if(!PL())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Sze(n)?n=n.host:n=n.parentNode}return!1}const XE=(e=document)=>{var t;if(!PL())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function gs(e){return PL()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function $K(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=$K(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wze(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=$K(e))&&(r&&(r+=" "),r+=t);return r}function vp(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let s=t[i],o=r[i];typeof s=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=PK(s,o):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof o=="string"?t[i]=wze(s,o):i==="id"&&s&&o?t.id=yze(s,o):t[i]=o!==void 0?o:s}}return t}const Tze=new Set(["id"]),xze=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Cze=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Aze=new Set(["dir","lang","hidden","inert","translate"]),EH=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Rze=/^(data-.*)$/;function kze(e,t={}){let{labelable:n,isLink:r,global:i,events:s=i,propNames:o}=t,a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(Tze.has(l)||n&&xze.has(l)||r&&Cze.has(l)||i&&Aze.has(l)||s&&EH.has(l)||l.endsWith("Capture")&&EH.has(l.slice(0,-7))||o?.has(l)||Rze.test(l))&&(a[l]=e[l]);return a}function yp(e){if(Ize())e.focus({preventScroll:!0});else{let t=Oze(e);e.focus(),Mze(t)}}let uS=null;function Ize(){if(uS==null){uS=!1;try{document.createElement("div").focus({get preventScroll(){return uS=!0,!0}})}catch{}}return uS}function Oze(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Mze(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function kT(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function $L(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function _u(e){let t=null;return()=>(t==null&&(t=e()),t)}const G_=_u(function(){return $L(/^Mac/i)}),Nze=_u(function(){return $L(/^iPhone/i)}),FK=_u(function(){return $L(/^iPad/i)||G_()&&navigator.maxTouchPoints>1}),UK=_u(function(){return Nze()||FK()}
604),Lze=_u(function(){return kT(/AppleWebKit/i)&&!Dze()}),Dze=_u(function(){return kT(/Chrome/i)}),BK=_u(function(){return kT(/Android/i)}),Pze=_u(function(){return kT(/Firefox/i)});function q_(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}=t;Pze()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(G_()?s=!0:o=!0);let f=Lze()&&G_()&&!FK()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});q_.isOpening=n,yp(e),e.dispatchEvent(f),q_.isOpening=!1}q_.isOpening=!1;let El=new Map,uO=new Set;function wH(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=El.get(r.target);i||(i=new Set,El.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=El.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),El.delete(r.target)),El.size===0)){for(let s of uO)s();uO.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?wH():document.addEventListener("DOMContentLoaded",wH));function $ze(){for(const[e]of El)"isConnected"in e&&!e.isConnected&&El.delete(e)}function zK(e){requestAnimationFrame(()=>{$ze(),El.size===0?e():uO.add(e)})}function Fze(){let e=D.useRef(new Map),t=D.useCallback((i,s,o,a)=>{let l=a?.once?(...f)=>{e.current.delete(o),o(...f)}:o;e.current.set(o,{type:s,eventTarget:i,fn:l,options:a}),i.addEventListener(s,l,a)},[]),n=D.useCallback((i,s,o,a)=>{var l;let f=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(s,f,a),e.current.delete(o)},[]),r=D.useCallback(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return D.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function HK(e,t){DL(()=>
604{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function jK(e){return e.pointerType===""&&e.isTrusted?!0:BK()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Uze(e){return!BK()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}c6();const Bze=typeof Element<"u"&&"checkVisibility"in Element.prototype;function zze(e){const t=Uf(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:o,visibility:a}=s(e);i=o!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function Hze(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function VK(e,t){return Bze?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&zze(e)&&Hze(e,t)&&(!e.parentElement||VK(e.parentElement,e))}const GK=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],jze=GK.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";GK.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function Vze(e){return e.matches(jze)&&VK(e)&&!Gze(e)}function Gze(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function qK(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function qze(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Wze(e){let t=D.useRef({isFocused:!1,observer:null});DL(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=ml(r=>{e?.(r)});return D.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,s=o=>{if(t.current.isFocused=!1,i.disabled){let a=qK(o);n(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let KE=!1;function Yze(e){for(;e&&!Vze(e);)e=e.parentElement;let t=Uf(e),n=t.document.activeElement;if(!n||n===e)return;KE=!0;let r=!1,i=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},s=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),!e&&!r&&(r=!0,yp(n),l()))},o=d=>{(d.target===e||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===e||r)&&(d.stopImmediatePropagation(),r||(r=!0,yp(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",o,!0);let l=()=>{cancelAnimationFrame(f),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",o,!0),KE=!1,r=!1},f=requestAnimationFrame(l);return l}let bh="default",fO="",f0=new WeakMap;function Xze(e){if(UK()){if(bh==="default"){const t=co(e);fO=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}bh="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";f0.set(e,e.style[t]),e.style[t]="none"}}function TH(e){if(UK()){if(bh!=="disabled")return;bh="restoring",setTimeout(()=>{zK(()=>
604{if(bh==="restoring"){const t=co(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=fO||""),fO="",bh="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&f0.has(e)){let t=f0.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),f0.delete(e)}}const WK=la.createContext({register:()=>{}});WK.displayName="PressResponderContext";function Kze(e,t){return t.get?t.get.call(e):t.value}function YK(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Zze(e,t){var n=YK(e,t,"get");return Kze(e,n)}function Jze(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Qze(e,t,n){Jze(e,t),t.set(e,n)}function eHe(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function xH(e,t,n){var r=YK(e,t,"set");return eHe(e,r,n),n}function tHe(e){let t=D.useContext(WK);if(t){let{register:n,...r}=t;e=vp(r,e),n()}return HK(t,e.ref),e}var fS=new WeakMap;class dS{continuePropagation(){xH(this,fS,!1)}get shouldStopPropagation(){return Zze(this,fS)}constructor(t,n,r,i){Qze(this,fS,{writable:!0,value:void 0}),xH(this,fS,!0);var s;let o=(s=i?.target)!==null&&s!==void 0?s:r.currentTarget;const a=o?.getBoundingClientRect();let l,f=0,d,p=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,p=r.clientY),a&&(d!=null&&p!=null?(l=d-a.left,f=p-a.top):(l=a.width/2,f=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=f}}const CH=Symbol("linkClicked"),AH="react-aria-pressable-style",RH="data-react-aria-pressable";function nHe(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:s,onClick:o,isDisabled:a,isPressed:l,preventFocusOnPress:f,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:p,ref:m,..._}=tHe(e),[v,E]=D.useState(!1),b=D.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:w,removeAllGlobalListeners:T}=Fze(),R=ml((N,U)=>{let K=b.current;if(a||K.didFirePressStart)return!1;let j=!0;if(K.isTriggeringEvent=!0,r){let fe=new dS("pressstart",U,N);r(fe),j=fe.shouldStopPropagation}return n&&n(!0),K.isTriggeringEvent=!1,K.didFirePressStart=!0,E(!0),j}),C=ml((N,U,K=!0)=>{let j=b.current;if(!j.didFirePressStart)return!1;j.didFirePressStart=!1,j.isTriggeringEvent=!0;let fe=!0;if(i){let P=new dS("pressend",U,N);i(P),fe=P.shouldStopPropagation}if(n&&n(!1),E(!1),t&&K&&!a){let P=new dS("press",U,N);t(P),fe&&(fe=P.shouldStopPropagation)}return j.isTriggeringEvent=!1,fe}),k=ml((N,U)=>{let K=b.current;if(a)return!1;if(s){K.isTriggeringEvent=!0;let j=new dS("pressup",U,N);return s(j),K.isTriggeringEvent=!1,j.shouldStopPropagation}return!0}),M=ml(N=>{let U=b.current;if(U.isPressed&&U.target){U.didFirePressStart&&U.pointerType!=null&&C(Gu(U.target,N),U.pointerType,!1),U.isPressed=!1,U.isOverTarget=!1,U.activePointerId=null,U.pointerType=null,T(),p||TH(U.target);for(let K of U.disposables)K();U.disposables=[]}}),I=ml(N=>{d&&M(N)}),$=ml(N=>{a||o?.(N)}),Q=ml((N,U)=>{if(!a&&o){let K=new MouseEvent("click",N);qze(K,U),o(qK(K))}}),V=D.useMemo(()=>{let N=b.current,U={onKeyDown(j){if(lR(j.nativeEvent,j.currentTarget)&&Ko(j.currentTarget,gs(j.nativeEvent))){var fe;kH(gs(j.nativeEvent),j.key)&&j.preventDefault();let P=!0;if(!N.isPressed&&!j.repeat){N.target=j.currentTarget,N.isPressed=!0,N.pointerType="keyboard",P=R(j,"keyboard");let ee=j.currentTarget,W=de=>{lR(de,ee)&&!de.repeat&&Ko(ee,gs(de))&&N.target&&k(Gu(N.target,de),"keyboard")};w(co(j.currentTarget),"keyup",PK(W,K),!0)}P&&j.stopPropagation(),j.metaKey&&G_()&&((fe=N.metaKeyEvents)===null||fe===void 0||fe.set(j.key,j.nativeEvent))}else j.key==="Meta"&&(N.metaKeyEvents=new Map)},onClick(j){if(!(j&&!Ko(j.currentTarget,gs(j.nativeEvent)))&&j&&j.button===0&&!N.isTriggeringEvent&&!q_.isOpening){let fe=!0;if(a&&j.preventDefault(),!N.ignoreEmulatedMouseEvents&&!N.isPressed&&(N.pointerType==="virtual"||jK(j.nativeEvent))){let P=R(j,"virtual"),ee=k(j,"virtual"),W=C(j,"virtual");$(j),fe=P&&ee&&W}else if(N.isPressed&&N.pointerType!=="keyboard"){let P=N.pointerType||j.nativeEvent.pointerType||"virtual",ee=k(Gu(j.currentTarget,j),P),W=C(Gu(j.currentTarget,j),P,!0);fe=ee&&W,N.isOverTarget=!1,$(j),M(j)}N.ignoreEmulatedMouseEvents=!1,fe&&j.stopPropagation()}}},K=j=>{var fe;if(N.isPressed&&N.target&&lR(j,N.target)){var P;kH(gs(j),j.key)&&j.preventDefault();let W=gs(j),de=Ko(N.target,gs(j));C(Gu(N.target,j),"keyboard",de),de&&Q(j,N.target),T(),j.key!=="Enter"&&FL(N.target)&&Ko(N.target,W)&&!j[CH]&&(j[CH]=!0,q_(N.target,j,!1)),N.isPressed=!1,(P=N.metaKeyEvents)===null||P===void 0||P.delete(j.key)}else if(j.key==="Meta"&&(!((fe=N.metaKeyEvents)===null||fe===void 0)&&fe.size)){var ee;let W=N.metaKeyEvents;N.metaKeyEvents=void 0;for(let de of W.values())(ee=N.target)===null||ee===void 0||ee.dispatchEvent(new KeyboardEvent("keyup",de))}};if(typeof PointerEvent<"u"){U.onPointerDown=P=>{if(P.button!==0||!Ko(P.currentTarget,gs(P.nativeEvent)))return;if(Uze(P.nativeEvent)){N.pointerType="virtual";return}N.pointerType=P.pointerType;let ee=!0;if(!N.isPressed){N.isPressed=!0,N.isOverTarget=!0,N.activePointerId=P.pointerId,N.target=P.currentTarget,p||Xze(N.target),ee=R(P,N.pointerType);let W=gs(P.nativeEvent);"releasePointerCapture"in W&&W.releasePointerCapture(P.pointerId),w(co(P.currentTarget),"pointerup",j,!1),w(co(P.currentTarget),"pointercancel",fe,!1)}ee&&P.stopPropagation()},U.onMouseDown=P=>{if(Ko(P.currentTarget,gs(P.nativeEvent))&&P.button===0){if(f){let ee=Yze(P.target);ee&&N.disposables.push(ee)}P.stopPropagation()}},U.onPointerUp=P=>{!Ko(P.currentTarget,gs(P.nativeEvent))||N.pointerType==="virtual"||P.button===0&&!N.isPressed&&k(P,N.pointerType||P.pointerType)},U.onPointerEnter=P=>{P.pointerId===N.activePointerId&&N.target&&!N.isOverTarget&&N.pointerType!=null&&(N.isOverTarget=!0,R(Gu(N.target,P),N.pointerType))},U.onPointerLeave=P=>{P.pointerId===N.activePointerId&&N.target&&N.isOverTarget&&N.pointerType!=null&&(N.isOverTarget=!1,C(Gu(N.target,P),N.pointerType,!1),I(P))};let j=P=>{if(P.pointerId===N.activePointerId&&N.isPressed&&P.button===0&&N.target){if(Ko(N.target,gs(P))&&N.pointerType!=null){let ee=!1,W=setTimeout(()=>{N.isPressed&&N.target instanceof HTMLElement&&(ee?M(P):(yp(N.target),N.target.click()))},80);w(P.currentTarget,"click",()=>ee=!0,!0),N.disposables.push(()=>clearTimeout(W))}else M(P);N.isOverTarget=!1}},fe=P=>{M(P)};U.onDragStart=P=>{Ko(P.currentTarget,gs(P.nativeEvent))&&M(P)}}return U},[w,a,f,T,p,M,I,C,R,k,$,Q]);return D.useEffect(()=>{if(!m)return;const N=co(m.current);if(!N||!N.head||N.getElementById(AH))return;const U=N.createElement("style");U.id=AH,U.textContent=`
605@layer {
606  [${RH}] {
607    touch-action: pan-x pan-y pinch-zoom;
608  }
609}
610    `.trim(),N.head.prepend(U)},[m]),D.useEffect(()=>{let N=b.current;return()=>{var U;p||TH((U=N.target)!==null&&U!==void 0?U:void 0);for(let K of N.disposables)K();N.disposables=[]}},[p]),{isPressed:l||v,pressProps:vp(_,V,{[RH]:!0})}}function FL(e){return e.tagName==="A"&&e.hasAttribute("href")}function lR(e,t){const{key:n,code:r}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Uf(i).HTMLInputElement&&!XK(i,n)||i instanceof Uf(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&FL(i))&&n!=="Enter")}function Gu(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function rHe(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset"
610:!FL(e)}function kH(e,t){return e instanceof HTMLInputElement?!XK(e,t):rHe(e)}const iHe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function XK(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":iHe.has(e.type)}let jv=null,sHe=new Set,Xm=new Map,Bf=!1,dO=!1;function UL(e,t){for(let n of sHe)n(e,t)}function oHe(e){return!(e.metaKey||!G_()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ZE(e){Bf=!0,oHe(e)&&(jv="keyboard",UL("keyboard",e))}function Nh(e){jv="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Bf=!0,UL("pointer",e))}function KK(e){jK(e)&&(Bf=!0,jv="virtual")}function ZK(e){e.target===window||e.target===document||KE||!e.isTrusted||(!Bf&&!dO&&(jv="virtual",UL("virtual",e)),Bf=!1,dO=!1)}function JK(){KE||(Bf=!1,dO=!0)}function IH(e){if(typeof window>"u"||typeof document>"u"||Xm.get(Uf(e)))return;const t=Uf(e),n=co(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Bf=!0,r.apply(this,arguments)},n.addEventListener("keydown",ZE,!0),n.addEventListener("keyup",ZE,!0),n.addEventListener("click",KK,!0),t.addEventListener("focus",ZK,!0),t.addEventListener("blur",JK,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Nh,!0),n.addEventListener("pointermove",Nh,!0),n.addEventListener("pointerup",Nh,!0)),t.addEventListener("beforeunload",()=>{QK(e)},{once:!0}),Xm.set(t,{focus:r})}const QK=(e,t)=>{const n=Uf(e),r=co(e);t&&r.removeEventListener("DOMContentLoaded",t),Xm.has(n)&&(n.HTMLElement.prototype.focus=Xm.get(n).focus,r.removeEventListener("keydown",ZE,!0),r.removeEventListener("keyup",ZE,!0),r.removeEventListener("click",KK,!0),n.removeEventListener("focus",ZK,!0),n.removeEventListener("blur",JK,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",Nh,!0),r.removeEventListener("pointermove",Nh,!0),r.removeEventListener("pointerup",Nh,!0)),Xm.delete(n))};function aHe(e){const t=co(e);let n;return t.readyState!=="loading"?IH(e):(n=()=>{IH(e)},t.addEventListener("DOMContentLoaded",n)),()=>QK(e,n)}typeof document<"u"&&aHe();function cHe(){return jv}function lHe(e){const t=co(e),n=XE(t);if(cHe()==="virtual"){let r=n;zK(()=>{XE(t)===r&&e.isConnected&&yp(e)})}else yp(e)}function uHe(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=D.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=Wze(s),a=D.useCallback(l=>{const f=co(l.target),d=f?XE(f):XE();l.target===l.currentTarget&&d===gs(l.nativeEvent)&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?s:void 0}}}function OH(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function fHe(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:OH(e.onKeyDown),onKeyUp:OH(e.onKeyUp)}}}let dHe=la.createContext(null);function hHe(e){let t=D.useContext(dHe)||{};HK(t,e);let{ref:n,...r}=t;return r}function pHe(e,t){let{focusProps:n}=uHe(e),{keyboardProps:r}=fHe(e),i=vp(n,r),s=hHe(t),o=e.isDisabled?{}:s,a=D.useRef(e.autoFocus);D.useEffect(()=>{a.current&&t.current&&lHe(t.current),a.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:vp({...i,tabIndex:l},o)}}function gHe(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:o,onPressUp:a,onPressChange:l,preventFocusOnPress:f,allowFocusWhenDisabled:d,onClick:p,href:m,target:_,rel:v,type:E="button"}=e,b;n==="button"?b={type:E,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:b={role:"button",href:n==="a"&&!r?m:void 0,target:n==="a"?_:void 0,type:n==="input"?E:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:w,isPressed:T}=nHe({onPressStart:s,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:a,onClick:p,isDisabled:r,preventFocusOnPress:f,ref:t}),{focusableProps:R}=pHe(e,t);d&&(R.tabIndex=r?-1:R.tabIndex);let C=vp(R,w,kze(e,{labelable:!0}));return{isPressed:T,buttonProps:vp(b,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function mHe(e,t){const n={};return typeof t<"u"&&(n[e]=t),n}const _He="_banner_1pgkv_1",vHe="_button_1pgkv_14",eZ={banner:_He,button:vHe},yHe=ct(eZ.button),bHe=ct(eZ.banner);function SHe({children:e,icon:t,onDismiss:n}){const{secondaryHex:r}=au(),{buttonProps:i}=gHe({...mHe("onPress",n)},D.useRef(null));return q.jsxs("aside",{className:bHe,style:{backgroundColor:r,borderColor:r},children:[typeof t=="string"&&q.jsxs(q.Fragment,{children:[q.jsx(Ql,{children:t})," "]}),q.jsx("div",{style:{flexGrow:1},children:e}),q.jsx("button",{className:yHe,type:"button",...i,children:q.jsx(Ql,{children:"❌"})})]})}function tZ({Header:e,icon:t,Message:n,onDismiss:r,type:i}){return q.jsxs(SHe,{icon:t,onDismiss:r,type:i,children:[typeof e<"u"&&q.jsx(e,{}),q.jsx("span",{style:{fontSize:"0.8em"},children:q.jsx(n,{})})]})}const EHe={icon:"⏳",Message(){return q.jsx(Ra,{children:"Loading"})},type:"info"};function wHe({children:e}){const t=_ze(),[n,r]=D.useState(EHe);return D.useEffect(()=>{e.then(r).catch(i=>{t.current&&r(P6(i))})},[e,t]),q.jsx(tZ,{...n})}function THe(e){return e instanceof Promise?q.jsx(wHe,{children:e}):q.jsx(tZ,{...e})}const xHe="_notifications_1fzwu_1",CHe={notifications:xHe}
610,AHe=ct(CHe.notifications);function RHe(){const[e]=tre();return q.jsx("div",{className:AHe,children:e.map(THe)})}function kHe(e,t){return function(){return Math.floor(Math.random()*(t-e))+e}}const IHe="_heading_1vr5o_1",OHe={heading:IHe},MHe=2,NHe=ct(OHe.heading);function LHe({actions:e,children:t,level:n=MHe}){const r=`h${n}`;return q.jsxs("header",{children:[q.jsx(r,{className:NHe,children:t}),typeof e<"u"&&q.jsx("div",{children:e})]})}const DHe=1,PHe=6;function $He(e){return Math.min(e+DHe,PHe)}const FHe=2,MH=D.createContext(FHe),UHe="_footer_16sl2_1",BHe="_section_16sl2_6",nZ={footer:UHe,section:BHe},zHe=ct(nZ.footer),HHe=0,jHe=2,VHe=-2,GHe=-1,qHe=ct(nZ.section),WHe=kHe(VHe,jHe);function vu({actions:e,children:t,header:n}){const{foregroundHex:r}=au(),i=D.use(MH),[s,o]=D.useState(HHe);D.useLayoutEffect(()=>{o(WHe)},[]);const a=(GHe*s).toString(),l=s.toString();return q.jsx("section",{className:qHe,style:{color:r,transform:`rotate(${l}deg)`},children:q.jsx("div",{style:{transform:`rotate(${a}deg)`},children:q.jsxs(MH.Provider,{value:$He(i),children:[typeof n<"u"&&q.jsx(LHe,{level:i,children:n}),q.jsx("div",{children:t}),typeof e<"u"&&q.jsx("footer",{className:zHe,children:e})]})})})}function YHe(){return q.jsx(vu,{header:q.jsx(Ra,{children:"Cookie policy"}),children:q.jsx(Di,{element:"p",children:"quisi.do's cookie policy will be documented after its services are finalized."})})}function XHe(){return q.jsx(vu,{header:q.jsx(Ra,{children:"Data Retention & Disposal Policy"}),children:q.jsx(Di,{element:"p",marginBottom:"medium",children:"quisi.do retains user data only as long as necessary to provide its services. When user data is no longer needed, quisi.do securely disposes of it in accordance with industry best practices."})})}const KHe="_p_hakco_1",ZHe={p:KHe},JHe=ct(ZHe.p);function Tm({children:e}){return q.jsx("p",{className:JHe,children:e})}const QHe="_gauge_1qzko_1",e4e={gauge:QHe},BL=100,t4e=.5,n4e=.333,hO=.1,JE=BL/(Math.PI/hO),zl=BL*t4e;function hl(e){return function(){return e}}const NH=Math.abs,Oi=Math.atan2,qu=Math.cos,r4e=Math.max,uR=Math.min,Zo=Math.sin,Sh=Math.sqrt,ms=1e-12,W_=Math.PI,QE=W_/2,i4e=2*W_;function s4e(e){return e>1?0:e<-1?W_:Math.acos(e)}function LH(e){return e>=1?QE:e<=-1?-QE:Math.asin(e)}const pO=Math.PI,gO=2*pO,Zu=1e-6,o4e=gO-Zu;function rZ(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function a4e(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return rZ;const n=10**t;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class c4e{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?rZ:a4e(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,s,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+s},${this._y1=+o}`}arcTo(t,n,r,i,s){if(t=+t,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,a=this._y1,l=r-t,f=i-n,d=o-t,p=a-n,m=d*d+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>Zu)if(!(Math.abs(p*l-f*d)>Zu)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let _=r-o,v=i-a,E=l*l+f*f,b=_*_+v*v,w=Math.sqrt(E),T=Math.sqrt(m),R=s*Math.tan((pO-Math.acos((E+m-b)/(2*w*T)))/2),C=R/T,k=R/w;Math.abs(C-1)>Zu&&this._append`L${t+C*d},${n+C*p}`,this._append`A${s},${s},0,0,${+(p*_>d*v)},${this._x1=t+k*l},${this._y1=n+k*f}`}}arc(t,n,r,i,s,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),f=t+a,d=n+l,p=1^o,m=o?i-s:s-i;this._x1===null?this._append`M${f},${d}`:(Math.abs(this._x1-f)>Zu||Math.abs(this._y1-d)>Zu)&&this._append`L${f},${d}`,r&&(m<0&&(m=m%gO+gO),m>o4e?this._append`A${r},${r},0,1,${p},${t-a},${n-l}A${r},${r},0,1,${p},${this._x1=f},${this._y1=d}`:m>Zu&&this._append`A${r},${r},0,${+(m>=pO)},${p},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function l4e(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new c4e(t)}function u4e(e){return e.innerRadius}function f4e(e){return e.outerRadius}function d4e(e){return e.startAngle}function h4e(e){return e.endAngle}function p4e(e){return e&&e.padAngle}function g4e(e,t,n,r,i,s,o,a){var l=n-e,f=r-t,d=o-i,p=a-s,m=p*l-d*f;if(!(m*m<ms))return m=(d*(t-s)-p*(e-i))/m,[e+m*l,t+m*f]}function hS(e,t,n,r,i,s,o){var a=e-n,l=t-r,f=(o?s:-s)/Sh(a*a+l*l),d=f*l,p=-f*a,m=e+d,_=t+p,v=n+d,E=r+p,b=(m+v)/2,w=(_+E)/2,T=v-m,R=E-_,C=T*T+R*R,k=i-s,M=m*E-v*_,I=(R<0?-1:1)*Sh(r4e(0,k*k*C-M*M
610)),$=(M*R-T*I)/C,Q=(-M*T-R*I)/C,V=(M*R+T*I)/C,N=(-M*T+R*I)/C,U=$-b,K=Q-w,j=V-b,fe=N-w;return U*U+K*K>j*j+fe*fe&&($=V,Q=N),{cx:$,cy:Q,x01:-d,y01:-p,x11:$*(i/k-1),y11:Q*(i/k-1)}}function zL(){var e=u4e,t=f4e,n=hl(0),r=null,i=d4e,s=h4e,o=p4e,a=null,l=l4e(f);function f(){var d,p,m=+e.apply(this,arguments),_=+t.apply(this,arguments),v=i.apply(this,arguments)-QE,E=s.apply(this,arguments)-QE,b=NH(E-v),w=E>v;if(a||(a=d=l()),_<m&&(p=_,_=m,m=p),!(_>ms))a.moveTo(0,0);else if(b>i4e-ms)a.moveTo(_*qu(v),_*Zo(v)),a.arc(0,0,_,v,E,!w),m>ms&&(a.moveTo(m*qu(E),m*Zo(E)),a.arc(0,0,m,E,v,w));else{var T=v,R=E,C=v,k=E,M=b,I=b,$=o.apply(this,arguments)/2,Q=$>ms&&(r?+r.apply(this,arguments):Sh(m*m+_*_)),V=uR(NH(_-m)/2,+n.apply(this,arguments)),N=V,U=V,K,j;if(Q>ms){var fe=LH(Q/m*Zo($)),P=LH(Q/_*Zo($));(M-=fe*2)>ms?(fe*=w?1:-1,C+=fe,k-=fe):(M=0,C=k=(v+E)/2),(I-=P*2)>ms?(P*=w?1:-1,T+=P,R-=P):(I=0,T=R=(v+E)/2)}var ee=_*qu(T),W=_*Zo(T),de=m*qu(k),ce=m*Zo(k);if(V>ms){var L=_*qu(R),J=_*Zo(R),re=m*qu(C),me=m*Zo(C),be;if(b<W_)if(be=g4e(ee,W,re,me,L,J,de,ce)){var Ee=ee-be[0],Fe=W-be[1],Be=L-be[0],dt=J-be[1],pt=1/Zo(s4e((Ee*Be+Fe*dt)/(Sh(Ee*Ee+Fe*Fe)*Sh(Be*Be+dt*dt)))/2),Hn=Sh(be[0]*be[0]+be[1]*be[1]);N=uR(V,(m-Hn)/(pt-1)),U=uR(V,(_-Hn)/(pt+1))}else N=U=0}I>ms?U>ms?(K=hS(re,me,ee,W,_,U,w),j=hS(L,J,de,ce,_,U,w),a.moveTo(K.cx+K.x01,K.cy+K.y01),U<V?a.arc(K.cx,K.cy,U,Oi(K.y01,K.x01),Oi(j.y01,j.x01),!w):(a.arc(K.cx,K.cy,U,Oi(K.y01,K.x01),Oi(K.y11,K.x11),!w),a.arc(0,0,_,Oi(K.cy+K.y11,K.cx+K.x11),Oi(j.cy+j.y11,j.cx+j.x11),!w),a.arc(j.cx,j.cy,U,Oi(j.y11,j.x11),Oi(j.y01,j.x01),!w))):(a.moveTo(ee,W),a.arc(0,0,_,T,R,!w)):a.moveTo(ee,W),!(m>ms)||!(M>ms)?a.lineTo(de,ce):N>ms?(K=hS(de,ce,L,J,m,-N,w),j=hS(ee,W,re,me,m,-N,w),a.lineTo(K.cx+K.x01,K.cy+K.y01),N<V?a.arc(K.cx,K.cy,N,Oi(K.y01,K.x01),Oi(j.y01,j.x01),!w):(a.arc(K.cx,K.cy,N,Oi(K.y01,K.x01),Oi(K.y11,K.x11),!w),a.arc(0,0,m,Oi(K.cy+K.y11,K.cx+K.x11),Oi(j.cy+j.y11,j.cx+j.x11),w),a.arc(j.cx,j.cy,N,Oi(j.y11,j.x11),Oi(j.y01,j.x01),!w))):a.arc(0,0,m,k,C,w)}if(a.closePath(),d)return a=null,d+""||null}return f.centroid=function(){var d=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,p=(+i.apply(this,arguments)+ +s.apply(this,arguments))/2-W_/2;return[qu(p)*d,Zo(p)*d]},f.innerRadius=function(d){return arguments.length?(e=typeof d=="function"?d:hl(+d),f):e},f.outerRadius=function(d){return arguments.length?(t=typeof d=="function"?d:hl(+d),f):t},f.cornerRadius=function(d){return arguments.length?(n=typeof d=="function"?d:hl(+d),f):n},f.padRadius=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:hl(+d),f):r},f.startAngle=function(d){return arguments.length?(i=typeof d=="function"?d:hl(+d),f):i},f.endAngle=function(d){return arguments.length?(s=typeof d=="function"?d:hl(+d),f):s},f.padAngle=function(d){return arguments.length?(o=typeof d=="function"?d:hl(+d),f):o},f.context=function(d){return arguments.length?(a=d??null,f):a},f}const m4e=2,_4e=m4e*Math.PI;function v4e(){return q.jsx("path",{d:zL()({endAngle:_4e,innerRadius:0,outerRadius:JE*n4e,startAngle:0})??"",fill:"#c0c0c0",transform:`translate(${zl}, ${zl})`})}const y4e="_needle_1r7rk_1",b4e={needle:y4e},S4e=ct(b4e.needle),fR=.5;function E4e({className:e,max:t,min:n,value:r}){const[i,s]=D.useState(n);D.useEffect(()=>{s(r)},[r]);const o=(i-n)/(t-n),a=Math.PI*o-Math.PI*fR,l=zL();l.cornerRadius(zl);const f=l({endAngle:Math.PI+hO*fR,innerRadius:1,outerRadius:zl+JE,startAngle:Math.PI-hO*fR}),d=[S4e];return typeof e=="string"&&d.push(e),q.jsxs(q.Fragment,{children:[q.jsx("path",{className:d.join(" "),d:f??"",fill:"inherit",style:{transform:`rotate(${a}rad) translate(50%, 0)`,transformOrigin:`50% calc(100% - ${JE}px)`}}),q.jsx(v4e,{})]})}const w4e=.5,T4e=-Math.PI*w4e;function DH({className:e,from:t,max:n,min:r,to:i}){const s=(t-r)/(n-r),o=(i-r)/(n-r),a=Math.PI*(o-s),l=T4e+Math.PI*s,f=zL()({endAngle:l+a,innerRadius:0,outerRadius:zl,startAngle:l});return q.jsx("path",{className:e,d:f??"",fill:"red",transform:`translate(${zl}, ${zl})`})}const x4e=2;function C4e(e){for(let t=0;;t++){const n=x4e**t;if(!(n<e))return n}}const A4e=ct(e4e.gauge),R4e=-1,k4e=0,I4e=1,dR=0,O4e=e=>typeof e=="number"||typeof e.to=="number";function M4e({className:e,max:t,min:n=k4e,needleClassName:r,thresholds:i=[],value:s}){const o=()=>{const p=i.findLast(O4e);if(typeof p>"u")return dR;if(typeof p=="number")return p;const{to:m}=p;return typeof m=="number"?m:dR},l=(()=>
610{if(typeof t=="number")return t;const p=o(),m=Math.max(s,p);return C4e(m)})(),f=(p,m)=>{const v=(()=>{const k=i[m+R4e];if(typeof k>"u")return dR;if(typeof k=="number")return k;const{to:M}=k;if(typeof M=="number")return M;const I=i[m+I4e];return typeof I>"u"?l:typeof I=="number"?I:I.from??l})();if(typeof p=="number")return q.jsx(DH,{from:v,max:l,min:n,to:p},p);const{activeClassName:E,className:b,from:w=v,inactiveClassName:T,to:R=l}=p,C=()=>{const k=[];return typeof b<"u"&&k.push(b),s>=w&&s<=R?typeof E<"u"&&k.push(E):typeof T<"u"&&k.push(T),k.join(" ")};return q.jsx(DH,{className:C(),from:w,max:l,min:n,to:R},`${w}-${R}`)},d=[A4e];return typeof e<"u"&&d.push(e),q.jsxs("svg",{className:d.join(" "),viewBox:`0 0 ${BL} ${zl+JE}`,xmlns:"http://www.w3.org/2000/svg",children:[i.map(f),q.jsx(E4e,{className:r,max:l,min:n,value:s})]})}const N4e="_gauge_1apqh_1",L4e="_needle_1apqh_6",D4e="_negativeActive_1apqh_13",P4e="_negativeInactive_1apqh_17",$4e="_neutralActive_1apqh_21",F4e="_neutralInactive_1apqh_25",U4e="_positiveActive_1apqh_29",B4e="_positiveInactive_1apqh_33",yu={gauge:N4e,needle:L4e,negativeActive:D4e,negativeInactive:P4e,neutralActive:$4e,neutralInactive:F4e,positiveActive:U4e,positiveInactive:B4e},z4e=ct(yu.gauge),H4e=ct(yu.needle),j4e=ct(yu.negativeActive),V4e=ct(yu.negativeInactive),G4e=ct(yu.neutralActive),q4e=ct(yu.neutralInactive),W4e=ct(yu.positiveActive),Y4e=ct(yu.positiveInactive);function X4e({max:e,min:t,severe:n,value:r,warning:i}){return q.jsx(M4e,{className:z4e,needleClassName:H4e,max:e,min:t,thresholds:[{activeClassName:W4e,inactiveClassName:Y4e,to:i},{activeClassName:G4e,inactiveClassName:q4e,to:n},{activeClassName:j4e,inactiveClassName:V4e}],value:r})}const K4e=e=>typeof e=="string"?Number.parseFloat(e):e;function Z4e({children:e,locale:t,...n}){const r=new Intl.NumberFormat(t,n);return q.jsx(q.Fragment,{children:r.format(K4e(e))})}function J4e(){const[e]=pze();return{locale:e}}function hR({children:e}){const{locale:t}=J4e();return q.jsx(Z4e,{locale:t,children:e})}function Vv(e){return e+.5|0}const kl=(e,t,n)=>Math.max(Math.min(e,n),t);function xm(e){return kl(Vv(e*2.55),0,255)}function Hl(e){return kl(Vv(e*255),0,255)}function oc(e){return kl(Vv(e/2.55)/100,0,1)}function PH(e){return kl(Vv(e*100),0,100)}const ro={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},mO=[..."0123456789ABCDEF"],Q4e=e=>mO[e&15],e6e=e=>mO[(e&240)>>4]+mO[e&15],pS=e=>(e&240)>>4===(e&15),t6e=e=>pS(e.r)&&pS(e.g)&&pS(e.b)&&pS(e.a);function n6e(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&ro[e[1]]*17,g:255&ro[e[2]]*17,b:255&ro[e[3]]*17,a:t===5?ro[e[4]]*17:255}:(t===7||t===9)&&(n={r:ro[e[1]]<<4|ro[e[2]],g:ro[e[3]]<<4|ro[e[4]],b:ro[e[5]]<<4|ro[e[6]],a:t===9?ro[e[7]]<<4|ro[e[8]]:255})),n}const r6e=(e,t)=>e<255?t(e):"";function i6e(e){var t=t6e(e)?Q4e:e6e;return e?"#"+t(e.r)+t(e.g)+t(e.b)+r6e(e.a,t):void 0}const s6e=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function iZ(e,t,n){const r=t*Math.min(n,1-n),i=(s,o=(s+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function o6e(e,t,n){const r=(i,s=(i+e/60)%6)=>n-n*t*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function a6e(e,t,n){const r=iZ(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function c6e(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function HL(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=Math.max(n,r,i),o=Math.min(n,r,i),a=(s+o)/2;let l,f,d;return s!==o&&(d=s-o,f=a>.5?d/(2-s-o):d/(s+o),l=c6e(n,r,i,d,s),l=l*60+.5),[l|0,f||0,a]}function jL(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Hl)}function VL(e,t,n){return jL(iZ,e,t,n)}function l6e(e,t,n){return jL(a6e,e,t,n)}function u6e(e,t,n){return jL(o6e,e,t,n)}function sZ(e){return(e%360+360)%360}function f6e(e){const t=s6e.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?xm(+t[5]):Hl(+t[5]));const i=sZ(+t[2]),s=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=l6e(i,s,o):t[1]==="hsv"?r=u6e(i,s,o):r=VL(i,s,o),{r:r[0],g:r[1],b:r[2],a:n}}function d6e(e,t){var n=HL(e);n[0]=sZ(n[0]+t),n=VL(n),e.r=n[0],e.g=n[1],e.b=n[2]}function h6e(e){if(!e)return;const t=HL(e),n=t[0],r=PH(t[1]),i=PH(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${oc(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const $H={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},FH={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",K
vendor: 5,082 bytes, line 610
610ocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function p6e(){const e={},t=Object.keys(FH),n=Object.keys($H);let r,i,s,o,a;for(r=0;r<t.length;r++){for(o=a=t[r],i=0;i<n.length;i++)s=n[i],a=a.replace(s,$H[s]);s=parseInt(FH[o],16),e[a]=[s>>16&255,s>>8&255,s&255]}return e}let gS;function g6e(e){gS||(gS=p6e(),gS.transparent=[0,0,0,0]);const t=gS[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const m6e=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function _6e(e){const t=m6e.exec(e);let n=255,r,i,s;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?xm(o):kl(o*255,0,255)}return r=+t[1],i=+t[3],s=+t[5],r=255&(t[2]?xm(r):kl(r,0,255)),i=255&(t[4]?xm(i):kl(i,0,255)),s=255&(t[6]?xm(s):kl(s,0,255)),{r,g:i,b:s,a:n}}}function v6e(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${oc(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const pR=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Zd=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function y6e(e,t,n){const r=Zd(oc(e.r)),i=Zd(oc(e.g)),s=Zd(oc(e.b));return{r:Hl(pR(r+n*(Zd(oc(t.r))-r))),g:Hl(pR(i+n*(Zd(oc(t.g))-i))),b:Hl(pR(s+n*(Zd(oc(t.b))-s))),a:e.a+n*(t.a-e.a)}}function mS(e,t,n){if(e){let r=HL(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=VL(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function oZ(e,t){return e&&Object.assign(t||{},e)}function UH(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Hl(e[3]))):(t=oZ(e,{r:0,g:0,b:0,a:1}),t.a=Hl(t.a)),t}function b6e(e){return e.charAt(0)==="r"?_6e(e):f6e(e)}class Y_{constructor(t){if(t instanceof Y_)return t;const n=typeof t;let r;n==="object"?r=UH(t):n==="string"&&(r=n6e(t)||g6e(t)||b6e(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=oZ(this._rgb);return t&&(t.a=oc(t.a)),t}set rgb(t){this._rgb=UH(t)}rgbString(){return this._valid?v6e(this._rgb):void 0}hexString(){return this._valid?i6e(this._rgb):void 0}hslString(){return this._valid?h6e(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let s;const o=n===s?.5:n,a=2*o-1,l=r.a-i.a,f=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;s=1-f,r.r=255&f*r.r+s*i.r+.5,r.g=255&f*r.g+s*i.g+.5,r.b=255&f*r.b+s*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=y6e(this._rgb,t._rgb,n)),this}clone(){return new Y_(this.rgb)}alpha(t){return this._rgb.a=Hl(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Vv(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return mS(this._rgb,2,t),this}darken(t){return mS(this._rgb,2,-t),this}saturate(t){return mS(this._rgb,1,t),this}desaturate(t){return mS(this._rgb,1,-t),this}rotate(t){return d6e(this._rgb,t),this}}function Za(){}const S6e=(()=>{let e=0;return()=>e++})();function nr(e){return e==null}function mi(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);
vendor: 4,428 bytes, line 610
610return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Rn(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function vo(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Jo(e,t){return vo(e)?e:t}function gn(e,t){return typeof e>"u"?t:e}const E6e=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function fr(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Nn(e,t,n,r){let i,s,o;if(mi(e))for(s=e.length,i=0;i<s;i++)t.call(n,e[i],i);else if(Rn(e))for(o=Object.keys(e),s=o.length,i=0;i<s;i++)t.call(n,e[o[i]],o[i])}function ew(e,t){let n,r,i,s;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],s=t[n],i.datasetIndex!==s.datasetIndex||i.index!==s.index)return!1;return!0}function tw(e){if(mi(e))return e.map(tw);if(Rn(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=tw(e[n[i]]);return t}return e}function aZ(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function w6e(e,t,n,r){if(!aZ(e))return;const i=t[e],s=n[e];Rn(i)&&Rn(s)?X_(i,s,r):t[e]=tw(s)}function X_(e,t,n){const r=mi(t)?t:[t],i=r.length;if(!Rn(e))return e;n=n||{};const s=n.merger||w6e;let o;for(let a=0;a<i;++a){if(o=r[a],!Rn(o))continue;const l=Object.keys(o);for(let f=0,d=l.length;f<d;++f)s(l[f],e,o,n)}return e}function Km(e,t){return X_(e,t,{merger:T6e})}function T6e(e,t,n){if(!aZ(e))return;const r=t[e],i=n[e];Rn(r)&&Rn(i)?Km(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=tw(i))}const BH={"":e=>e,x:e=>e.x,y:e=>e.y};function x6e(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function C6e(e){const t=x6e(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function nw(e,t){return(BH[t]||(BH[t]=C6e(t)))(e)}function GL(e){return e.charAt(0).toUpperCase()+e.slice(1)}const rw=e=>typeof e<"u",eu=e=>typeof e=="function",zH=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function A6e(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const _i=Math.PI,ya=2*_i,R6e=ya+_i,iw=Number.POSITIVE_INFINITY,k6e=_i/180,Po=_i/2,Wu=_i/4,HH=_i*2/3,cZ=Math.log10,bp=Math.sign;function Zm(e,t,n){return Math.abs(e-t)<n}function jH(e){const t=Math.round(e);e=Zm(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(cZ(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function I6e(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,s)=>i-s).pop(),t}function O6e(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function K_(e){return!O6e(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function M6e(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function N6e(e,t,n){let r,i,s;for(r=0,i=e.length;r<i;r++)s=e[r][n],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function _f(e){return e*(_i/180)}function L6e(e){return e*(180/_i)}function VH(e){if(!vo(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function D6e(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let s=Math.atan2(r,n);return s<-.5*_i&&(s+=ya),{angle:s,distance:i}}function _O(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function P6e(e,t){return(e-t+R6e)%ya-_i}function _l(e){return(e%ya+ya)%ya}function lZ(e,t,n,r){const i=_l(e),s=_l(t),o=_l(n),a=_l(s-i),l=_l(o-i),f=_l(i-s),d=_l(i-o);return i===s||i===o||r&&s===o||a>l&&f<d}function lo(e,t,n){return Math.max(t,Math.min(n,e))}function $6e(e){return lo(e,-32768,32767)}function Cm(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function qL(e,t,n){n=n||(o=>e[o]<t);let r=e.length-1,i=0,s;for(;r-i>1;)s=i+r>>1,n(s)?i=s:r=s;return{lo:i,hi:r}}const vf=(e,t,n,r)=>qL(e,n,r?i=>{const s=e[i][t];return s<n||s===n&&e[i+1][t]===n}:i=>e[i][t]<n),F6e=(e,t,n)=>qL(e,n,r=>e[r][t]>=n);function U6e(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const uZ=["push","pop","shift","splice","unshift"];function B6e(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),uZ.forEach(n=>{const r="_onData"+GL(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...s){const o=i.apply(this,s);
vendor: 7,181 bytes, line 610
610return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...s)}),o}})})}function GH(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(uZ.forEach(s=>{delete e[s]}),delete e._chartjs)}function z6e(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const fZ=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function dZ(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,fZ.call(window,()=>{r=!1,e.apply(t,n)}))}}function H6e(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const WL=e=>e==="start"?"left":e==="end"?"right":"center",Ni=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,j6e=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function V6e(e,t,n){const r=t.length;let i=0,s=r;if(e._sorted){const{iScale:o,vScale:a,_parsed:l}=e,f=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,d=o.axis,{min:p,max:m,minDefined:_,maxDefined:v}=o.getUserBounds();if(_){if(i=Math.min(vf(l,d,p).lo,n?r:vf(t,d,o.getPixelForValue(p)).lo),f){const E=l.slice(0,i+1).reverse().findIndex(b=>!nr(b[a.axis]));i-=Math.max(0,E)}i=lo(i,0,r-1)}if(v){let E=Math.max(vf(l,o.axis,m,!0).hi+1,n?0:vf(t,d,o.getPixelForValue(m),!0).hi+1);if(f){const b=l.slice(E-1).findIndex(w=>!nr(w[a.axis]));E+=Math.max(0,b)}s=lo(E,i,r)-i}else s=r-i}return{start:i,count:s}}function G6e(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const s=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),s}const _S=e=>e===0||e===1,qH=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ya/n)),WH=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ya/n)+1,Jm={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Po)+1,easeOutSine:e=>Math.sin(e*Po),easeInOutSine:e=>-.5*(Math.cos(_i*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>_S(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>_S(e)?e:qH(e,.075,.3),easeOutElastic:e=>_S(e)?e:WH(e,.075,.3),easeInOutElastic(e){return _S(e)?e:e<.5?.5*qH(e*2,.1125,.45):.5+.5*WH(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Jm.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Jm.easeInBounce(e*2)*.5:Jm.easeOutBounce(e*2-1)*.5+.5};function YL(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function YH(e){return YL(e)?e:new Y_(e)}function gR(e){return YL(e)?e:new Y_(e).saturate(.5).darken(.1).hexString()}const q6e=["x","y","borderWidth","radius","tension"],W6e=["color","borderColor","backgroundColor"];function Y6e(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:W6e},numbers:{type:"number",properties:q6e}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function X6e(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const XH=new Map;function K6e(e,t){t=t||{};const n=e+JSON.stringify(t);let r=XH.get(n);return r||(r=new Intl.NumberFormat(e,t),XH.set(n,r)),r}function hZ(e,t,n){return K6e(t,n).format(e)}const Z6e={values(e){return mi(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,s=e;if(n.length>1){const f=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(f<1e-4||f>1e15)&&(i="scientific"),s=J6e(e,n)}const o=cZ(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),hZ(e,r,l)}};function J6e(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var pZ={formatters:Z6e};function Q6e(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:pZ.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const zf=Object.create(null),vO=Object.create(null);function Qm(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const s=n[r];e=e[s]||(e[s]=Object.create(null))}return e}function mR(e,t,n){return typeof t=="string"?X_(Qm(e,t),n):X_(Qm(e,""),t)}class eje{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={}
vendor: 37,119 bytes, line 610
610,this.hoverBackgroundColor=(r,i)=>gR(i.backgroundColor),this.hoverBorderColor=(r,i)=>gR(i.borderColor),this.hoverColor=(r,i)=>gR(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return mR(this,t,n)}get(t){return Qm(this,t)}describe(t,n){return mR(vO,t,n)}override(t,n){return mR(zf,t,n)}route(t,n,r,i){const s=Qm(this,t),o=Qm(this,r),a="_"+n;Object.defineProperties(s,{[a]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],f=o[i];return Rn(l)?Object.assign({},f,l):gn(l,f)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var zr=new eje({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Y6e,X6e,Q6e]);function tje(e){return!e||nr(e.size)||nr(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function KH(e,t,n,r,i){let s=t[i];return s||(s=t[i]=e.measureText(i).width,n.push(i)),s>r&&(r=s),r}function Yu(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function ZH(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function yO(e,t,n,r){gZ(e,t,n,r,null)}function gZ(e,t,n,r,i){let s,o,a,l,f,d,p,m;const _=t.pointStyle,v=t.rotation,E=t.radius;let b=(v||0)*k6e;if(_&&typeof _=="object"&&(s=_.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(_,-_.width/2,-_.height/2,_.width,_.height),e.restore();return}if(!(isNaN(E)||E<=0)){switch(e.beginPath(),_){default:i?e.ellipse(n,r,i/2,E,0,0,ya):e.arc(n,r,E,0,ya),e.closePath();break;case"triangle":d=i?i/2:E,e.moveTo(n+Math.sin(b)*d,r-Math.cos(b)*E),b+=HH,e.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*E),b+=HH,e.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*E),e.closePath();break;case"rectRounded":f=E*.516,l=E-f,o=Math.cos(b+Wu)*l,p=Math.cos(b+Wu)*(i?i/2-f:l),a=Math.sin(b+Wu)*l,m=Math.sin(b+Wu)*(i?i/2-f:l),e.arc(n-p,r-a,f,b-_i,b-Po),e.arc(n+m,r-o,f,b-Po,b),e.arc(n+p,r+a,f,b,b+Po),e.arc(n-m,r+o,f,b+Po,b+_i),e.closePath();break;case"rect":if(!v){l=Math.SQRT1_2*E,d=i?i/2:l,e.rect(n-d,r-l,2*d,2*l);break}b+=Wu;case"rectRot":p=Math.cos(b)*(i?i/2:E),o=Math.cos(b)*E,a=Math.sin(b)*E,m=Math.sin(b)*(i?i/2:E),e.moveTo(n-p,r-a),e.lineTo(n+m,r-o),e.lineTo(n+p,r+a),e.lineTo(n-m,r+o),e.closePath();break;case"crossRot":b+=Wu;case"cross":p=Math.cos(b)*(i?i/2:E),o=Math.cos(b)*E,a=Math.sin(b)*E,m=Math.sin(b)*(i?i/2:E),e.moveTo(n-p,r-a),e.lineTo(n+p,r+a),e.moveTo(n+m,r-o),e.lineTo(n-m,r+o);break;case"star":p=Math.cos(b)*(i?i/2:E),o=Math.cos(b)*E,a=Math.sin(b)*E,m=Math.sin(b)*(i?i/2:E),e.moveTo(n-p,r-a),e.lineTo(n+p,r+a),e.moveTo(n+m,r-o),e.lineTo(n-m,r+o),b+=Wu,p=Math.cos(b)*(i?i/2:E),o=Math.cos(b)*E,a=Math.sin(b)*E,m=Math.sin(b)*(i?i/2:E),e.moveTo(n-p,r-a),e.lineTo(n+p,r+a),e.moveTo(n+m,r-o),e.lineTo(n-m,r+o);break;case"line":o=i?i/2:Math.cos(b)*E,a=Math.sin(b)*E,e.moveTo(n-o,r-a),e.lineTo(n+o,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:E),r+Math.sin(b)*E);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Z_(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function XL(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function KL(e){e.restore()}function nje(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const s=(t.x+n.x)/2;e.lineTo(s,t.y),e.lineTo(s,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function rje(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function ije(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),nr(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function sje(e,t,n,r,i){if(i.strikethrough||i.underline){const s=e.measureText(r),o=t-s.actualBoundingBoxLeft,a=t+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,f=n+s.actualBoundingBoxDescent,d=i.strikethrough?(l+f)/2:f;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,d),e.lineTo(a,d),e.stroke()}}function oje(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function J_(e,t,n,r,i,s={}){const o=mi(t)?t:[t],a=s.strokeWidth>0&&s.strokeColor!=="";let l,f;for(e.save(),e.font=i.string,ije(e,s),l=0;l<o.length;++l)f=o[l],s.backdrop&&oje(e,s.backdrop),a&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),nr(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(f,n,r,s.maxWidth)),e.fillText(f,n,r,s.maxWidth),sje(e,n,r,f,s),r+=Number(i.lineHeight);e.restore()}function bO(e,t){const{x:n,y:r,w:i,h:s,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*_i,_i,!0),e.lineTo(n,r+s-o.bottomLeft),e.arc(n+o.bottomLeft,r+s-o.bottomLeft,o.bottomLeft,_i,Po,!0),e.lineTo(n+i-o.bottomRight,r+s),e.arc(n+i-o.bottomRight,r+s-o.bottomRight,o.bottomRight,Po,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-Po,!0),e.lineTo(n+o.topLeft,r)}const aje=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,cje=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function lje(e,t){const n=(""+e).match(aje);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const uje=e=>+e||0;function mZ(e,t){const n={},r=Rn(t),i=r?Object.keys(t):t,s=Rn(e)?r?o=>gn(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=uje(s(o));return n}function fje(e){return mZ(e,{top:"y",right:"x",bottom:"y",left:"x"})}function e_(e){return mZ(e,["topLeft","topRight","bottomLeft","bottomRight"])}function yo(e){const t=fje(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function $i(e,t){e=e||{},t=t||zr.font;let n=gn(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=gn(e.style,t.style);r&&!(""+r).match(cje)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:gn(e.family,t.family),lineHeight:lje(gn(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:gn(e.weight,t.weight),string:""};return i.string=tje(i),i}function vS(e,t,n,r){let i,s,o;for(i=0,s=e.length;i<s;++i)if(o=e[i],o!==void 0&&o!==void 0)return o}function dje(e,t,n){const{min:r,max:i}=e,s=E6e(t,(i-r)/2),o=(a,l)=>n&&a===0?0:a+l;return{min:o(r,-Math.abs(s)),max:o(i,s)}}function id(e,t){return Object.assign(Object.create(e),t)}function ZL(e,t=[""],n,r,i=()=>e[0]){const s=n||e;typeof r>"u"&&(r=bZ("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:r,_getTarget:i,override:a=>ZL([a,...e],t,s,r)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return vZ(a,l,()=>bje(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return QH(a).includes(l)},ownKeys(a){return QH(a)},set(a,l,f){const d=a._storage||(a._storage=i());return a[l]=d[l]=f,delete a._keys,!0}})}function Sp(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:_Z(e,r),setContext:s=>Sp(e,s,n,r),override:s=>Sp(e.override(s),t,n,r)};return new Proxy(i,{deleteProperty(s,o){return delete s[o],delete e[o],!0},get(s,o,a){return vZ(s,o,()=>pje(s,o,a))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(s,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(s,o,a){return e[o]=a,delete s[o],!0}})}function _Z(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:eu(n)?n:()=>n,isIndexable:eu(r)?r:()=>r}}const hje=(e,t)=>e?e+GL(t):t,JL=(e,t)=>Rn(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function vZ(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function pje(e,t,n){const{_proxy:r,_context:i,_subProxy:s,_descriptors:o}=e;let a=r[t];return eu(a)&&o.isScriptable(t)&&(a=gje(t,a,e,n)),mi(a)&&a.length&&(a=mje(t,a,e,o.isIndexable)),JL(t,a)&&(a=Sp(a,i,s&&s[t],o)),a}function gje(e,t,n,r){const{_proxy:i,_context:s,_subProxy:o,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(s,o||r);return a.delete(e),JL(e,l)&&(l=QL(i._scopes,i,e,l)),l}function mje(e,t,n,r){const{_proxy:i,_context:s,_subProxy:o,_descriptors:a}=n;if(typeof s.index<"u"&&r(e))return t[s.index%t.length];if(Rn(t[0])){const l=t,f=i._scopes.filter(d=>d!==l);t=[];for(const d of l){const p=QL(f,i,e,d);t.push(Sp(p,s,o&&o[e],a))}}return t}function yZ(e,t,n){return eu(e)?e(t,n):e}const _je=(e,t)=>e===!0?t:typeof e=="string"?nw(t,e):void 0;function vje(e,t,n,r,i){for(const s of t){const o=_je(n,s);if(o){e.add(o);const a=yZ(o._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==r)return a}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function QL(e,t,n,r){const i=t._rootScopes,s=yZ(t._fallback,n,r),o=[...e,...i],a=new Set;a.add(r);let l=JH(a,o,n,s||n,r);return l===null||typeof s<"u"&&s!==n&&(l=JH(a,o,s,l,r),l===null)?!1:ZL(Array.from(a),[""],i,s,()=>yje(t,n,r))}function JH(e,t,n,r,i){for(;n;)n=vje(e,t,n,r,i);return n}function yje(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return mi(i)&&Rn(n)?n:i||{}}function bje(e,t,n,r){let i;for(const s of t)if(i=bZ(hje(s,e),n),typeof i<"u")return JL(e,i)?QL(n,r,e,i):i}function bZ(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function QH(e){let t=e._keys;return t||(t=e._keys=Sje(e._scopes)),t}function Sje(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const Eje=Number.EPSILON||1e-14,Ep=(e,t)=>t<e.length&&!e[t].skip&&e[t],SZ=e=>e==="x"?"y":"x";function wje(e,t,n,r){const i=e.skip?t:e,s=t,o=n.skip?t:n,a=_O(s,i),l=_O(o,s);let f=a/(a+l),d=l/(a+l);f=isNaN(f)?0:f,d=isNaN(d)?0:d;const p=r*f,m=r*d;return{previous:{x:s.x-p*(o.x-i.x),y:s.y-p*(o.y-i.y)},next:{x:s.x+m*(o.x-i.x),y:s.y+m*(o.y-i.y)}}}function Tje(e,t,n){const r=e.length;let i,s,o,a,l,f=Ep(e,0);for(let d=0;d<r-1;++d)if(l=f,f=Ep(e,d+1),!(!l||!f)){if(Zm(t[d],0,Eje)){n[d]=n[d+1]=0;continue}i=n[d]/t[d],s=n[d+1]/t[d],a=Math.pow(i,2)+Math.pow(s,2),!(a<=9)&&(o=3/Math.sqrt(a),n[d]=i*o*t[d],n[d+1]=s*o*t[d])}}function xje(e,t,n="x"){const r=SZ(n),i=e.length;let s,o,a,l=Ep(e,0);for(let f=0;f<i;++f){if(o=a,a=l,l=Ep(e,f+1),!a)continue;const d=a[n],p=a[r];o&&(s=(d-o[n])/3,a[`cp1${n}`]=d-s,a[`cp1${r}`]=p-s*t[f]),l&&(s=(l[n]-d)/3,a[`cp2${n}`]=d+s,a[`cp2${r}`]=p+s*t[f])}}function Cje(e,t="x"){const n=SZ(t),r=e.length,i=Array(r).fill(0),s=Array(r);let o,a,l,f=Ep(e,0);for(o=0;o<r;++o)if(a=l,l=f,f=Ep(e,o+1),!!l){if(f){const d=f[t]-l[t];i[o]=d!==0?(f[n]-l[n])/d:0}s[o]=a?f?bp(i[o-1])!==bp(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}Tje(e,i,s),xje(e,s,t)}function yS(e,t,n){return Math.max(Math.min(e,n),t)}function Aje(e,t){let n,r,i,s,o,a=Z_(e[0],t);for(n=0,r=e.length;n<r;++n)o=s,s=a,a=n<r-1&&Z_(e[n+1],t),s&&(i=e[n],o&&(i.cp1x=yS(i.cp1x,t.left,t.right),i.cp1y=yS(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=yS(i.cp2x,t.left,t.right),i.cp2y=yS(i.cp2y,t.top,t.bottom)))}function Rje(e,t,n,r,i){let s,o,a,l;if(t.spanGaps&&(e=e.filter(f=>!f.skip)),t.cubicInterpolationMode==="monotone")Cje(e,i);else{let f=r?e[e.length-1]:e[0];for(s=0,o=e.length;s<o;++s)a=e[s],l=wje(f,a,e[Math.min(s+1,o-(r?0:1))%o],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,f=a}t.capBezierPoints&&Aje(e,n)}function eD(){return typeof window<"u"&&typeof document<"u"}function tD(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function sw(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const IT=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function kje(e,t){return IT(e).getPropertyValue(t)}const Ije=["top","right","bottom","left"];function Af(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const s=Ije[i];r[s]=parseFloat(e[t+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Oje=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Mje(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:s}=r;let o=!1,a,l;if(Oje(i,s,e.target))a=i,l=s;else{const f=t.getBoundingClientRect();a=r.clientX-f.left,l=r.clientY-f.top,o=!0}return{x:a,y:l,box:o}}function Ju(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=IT(n),s=i.boxSizing==="border-box",o=Af(i,"padding"),a=Af(i,"border","width"),{x:l,y:f,box:d}=Mje(e,n),p=o.left+(d&&a.left),m=o.top+(d&&a.top);let{width:_,height:v}=t;return s&&(_-=o.width+a.width,v-=o.height+a.height),{x:Math.round((l-p)/_*n.width/r),y:Math.round((f-m)/v*n.height/r)}}function Nje(e,t,n){let r,i;if(t===void 0||n===void 0){const s=e&&tD(e);if(!s)t=e.clientWidth,n=e.clientHeight;else{const o=s.getBoundingClientRect(),a=IT(s),l=Af(a,"border","width"),f=Af(a,"padding");t=o.width-f.width-l.width,n=o.height-f.height-l.height,r=sw(a.maxWidth,s,"clientWidth"),i=sw(a.maxHeight,s,"clientHeight")}}return{width:t,height:n,maxWidth:r||iw,maxHeight:i||iw}}const Il=e=>Math.round(e*10)/10;function Lje(e,t,n,r){const i=IT(e),s=Af(i,"margin"),o=sw(i.maxWidth,e,"clientWidth")||iw,a=sw(i.maxHeight,e,"clientHeight")||iw,l=Nje(e,t,n);let{width:f,height:d}=l;if(i.boxSizing==="content-box"){const m=Af(i,"border","width"),_=Af(i,"padding");f-=_.width+m.width,d-=_.height+m.height}return f=Math.max(0,f-s.width),d=Math.max(0,r?f/r:d-s.height),f=Il(Math.min(f,o,l.maxWidth)),d=Il(Math.min(d,a,l.maxHeight)),f&&!d&&(d=Il(f/2)),(t!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,f=Il(Math.floor(d*r))),{width:f,height:d}}function e4(e,t,n){const r=t||1,i=Il(e.height*r),s=Il(e.width*r);e.height=Il(e.height),e.width=Il(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==s?(e.currentDevicePixelRatio=r,o.height=i,o.width=s,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Dje=(function(){let e=!1;try{const t={get passive(){return e=!0,!1}};eD()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e})();function t4(e,t){const n=kje(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Qu(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Pje(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function $je(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},s={x:t.cp1x,y:t.cp1y},o=Qu(e,i,n),a=Qu(i,s,n),l=Qu(s,t,n),f=Qu(o,a,n),d=Qu(a,l,n);return Qu(f,d,n)}const Fje=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},Uje=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Lh(e,t,n){return e?Fje(t,n):Uje()}function EZ(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function wZ(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function TZ(e){return e==="angle"?{between:lZ,compare:P6e,normalize:_l}:{between:Cm,compare:(t,n)=>t-n,normalize:t=>t}}function n4({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function Bje(e,t,n){const{property:r,start:i,end:s}=n,{between:o,normalize:a}=TZ(r),l=t.length;let{start:f,end:d,loop:p}=e,m,_;if(p){for(f+=l,d+=l,m=0,_=l;m<_&&o(a(t[f%l][r]),i,s);++m)f--,d--;f%=l,d%=l}return d<f&&(d+=l),{start:f,end:d,loop:p,style:e.style}}function zje(e,t,n){if(!n)return[e];const{property:r,start:i,end:s}=n,o=t.length,{compare:a,between:l,normalize:f}=TZ(r),{start:d,end:p,loop:m,style:_}=Bje(e,t,n),v=[];let E=!1,b=null,w,T,R;const C=()=>l(i,R,w)&&a(i,R)!==0,k=()=>a(s,w)===0||l(s,R,w),M=()=>E||C(),I=()=>!E||k();for(let $=d,Q=d;$<=p;++$)T=t[$%o],!T.skip&&(w=f(T[r]),w!==R&&(E=l(w,i,s),b===null&&M()&&(b=a(w,i)===0?$:Q),b!==null&&I()&&(v.push(n4({start:b,end:$,loop:m,count:o,style:_})),b=null),Q=$,R=w));return b!==null&&v.push(n4({start:b,end:p,loop:m,count:o,style:_})),v}function Hje(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const s=zje(r[i],e.points,t);s.length&&n.push(...s)}return n}function jje(e,t,n,r){let i=0,s=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(s+=i);s>i&&e[s%t].skip;)s--;return s%=t,{start:i,end:s}}function Vje(e,t,n,r){const i=e.length,s=[];let o=t,a=e[t],l;for(l=t+1;l<=n;++l){const f=e[l%i];f.skip||f.stop?a.skip||(r=!1,s.push({start:t%i,end:(l-1)%i,loop:r}),t=o=f.stop?l:null):(o=l,a.skip&&(t=l)),a=f}return o!==null&&s.push({start:t%i,end:o%i,loop:r}),s}function Gje(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const s=!!e._loop,{start:o,end:a}=jje(n,i,s,r);if(r===!0)return r4(e,[{start:o,end:a,loop:s}],n,t);const l=a<o?a+i:a,f=!!e._fullLoop&&o===0&&a===i-1;return r4(e,Vje(n,o,l,f),n,t)}function r4(e,t,n,r){return!r||!r.setContext||!n?t:qje(e,t,n,r)}function qje(e,t,n,r){const i=e._chart.getContext(),s=i4(e.options),{_datasetIndex:o,options:{spanGaps:a}}=e,l=n.length,f=[];let d=s,p=t[0].start,m=p;function _(v,E,b,w){const T=a?-1:1;if(v!==E){for(v+=l;n[v%l].skip;)v-=T;for(;n[E%l].skip;)E+=T;v%l!==E%l&&(f.push({start:v%l,end:E%l,loop:b,style:w}),d=w,p=E%l)}}for(const v of t){p=a?p:v.start;let E=n[p%l],b;for(m=p+1;m<=v.end;m++){const w=n[m%l];b=i4(r.setContext(id(i,{type:"segment",p0:E,p1:w,p0DataIndex:(m-1)%l,p1DataIndex:m%l,datasetIndex:o}))),Wje(b,d)&&_(p,m-1,v.loop,d),E=w,d=b}p<m-1&&_(p,m-1,v.loop,d)}return f}function i4(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Wje(e,t){if(!t)return!1;const n=[],r=function(i,s){return YL(s)?(n.includes(s)||n.push(s),n.indexOf(s)):s};return JSON.stringify(e,r)!==JSON.stringify(t,r)}function bS(e,t,n){return e.options.clip?e[n]:t[n]}function Yje(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:bS(n,t,"left"),right:bS(n,t,"right"),top:bS(r,t,"top"),bottom:bS(r,t,"bottom")}:t}function Xje(e,t){const n=t._clip;if(n.disabled)return!1;const r=Yje(t,e.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}class Kje{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const s=n.listeners[i],o=n.duration;s.forEach(a=>a({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=fZ.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const s=r.items;let o=s.length-1,a=!1,l;for(;o>=0;--o)l=s[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(s[o]=s[s.length-1],s.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),s.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=s.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var tc=new Kje;const s4="transparent",Zje={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=YH(e||s4),i=r.valid&&YH(t||s4);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Jje{constructor(t,n,r,i){const s=n[r];i=vS([t.to,i,s,t.from]);const o=vS([t.from,s,i]);this._active=!0,this._fn=t.fn||Zje[t.type||typeof o],this._easing=Jm[t.easing]||Jm.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],s=r-this._start,o=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=vS([t.to,n,i,t.from]),this._from=vS([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,s=this._from,o=this._loop,a=this._to;let l;if(this._active=s!==a&&(o||n<r),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=s;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(s,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class xZ{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Rn(t))return;const n=Object.keys(zr.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const s=t[i];if(!Rn(s))return;const o={};for(const a of n)o[a]=s[a];(mi(s.properties)&&s.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,o)})})}_animateOptions(t,n){const r=n.options,i=e8e(t,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&Qje(t.options.$animations,r).then(()=>{t.options=r},()=>{}),s}_createAnimations(t,n){const r=this._properties,i=[],s=t.$animations||(t.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const f=o[l];if(f.charAt(0)==="$")continue;if(f==="options"){i.push(...this._animateOptions(t,n));continue}const d=n[f];let p=s[f];const m=r.get(f);if(p)if(m&&p.active()){p.update(m,d,a);continue}else p.cancel();if(!m||!m.duration){t[f]=d;continue}s[f]=p=new Jje(m,t,f,d),i.push(p)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return tc.add(this._chart,r),!0}}function Qje(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const s=e[r[i]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function e8e(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function o4(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,s=n.max===void 0?t:0;return{start:r?s:i,end:r?i:s}}function t8e(e,t,n){if(n===!1)return!1;const r=o4(e,n),i=o4(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function n8e(e){let t,n,r,i;return Rn(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function CZ(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,s;for(i=0,s=r.length;i<s;++i)n.push(r[i].index);return n}function a4(e,t,n,r={}){const i=e.keys,s=r.mode==="single";let o,a,l,f;if(t===null)return;let d=!1;for(o=0,a=i.length;o<a;++o){if(l=+i[o],l===n){if(d=!0,r.all)continue;break}f=e.values[l],vo(f)&&(s||t===0||bp(t)===bp(f))&&(t+=f)}return!d&&!r.all?0:t}function r8e(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",s=r.axis==="x"?"x":"y",o=Object.keys(e),a=new Array(o.length);let l,f,d;for(l=0,f=o.length;l<f;++l)d=o[l],a[l]={[i]:d,[s]:e[d]};return a}function _R(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function i8e(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function s8e(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function o8e(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function c4(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const s=e[i.index];if(n&&s>0||!n&&s<0)return i.index}return null}function l4(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=r,l=s.axis,f=o.axis,d=i8e(s,o,r),p=t.length;let m;for(let _=0;_<p;++_){const v=t[_],{[l]:E,[f]:b}=v,w=v._stacks||(v._stacks={});m=w[f]=o8e(i,d,E),m[a]=b,m._top=c4(m,o,!0,r.type),m._bottom=c4(m,o,!1,r.type);const T=m._visualValues||(m._visualValues={});T[a]=b}}function vR(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function a8e(e,t){return id(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function c8e(e,t,n){return id(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function lm(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const s=i._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const yR=e=>e==="reset"||e==="none",u4=(e,t)=>t?e:Object.assign({},e),l8e=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:CZ(n,!0),values:null};class AZ{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=_R(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&lm(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(p,m,_,v)=>p==="x"?m:p==="r"?v:_,s=n.xAxisID=gn(r.xAxisID,vR(t,"x")),o=n.yAxisID=gn(r.yAxisID,vR(t,"y")),a=n.rAxisID=gn(r.rAxisID,vR(t,"r")),l=n.indexAxis,f=n.iAxisID=i(l,s,o,a),d=n.vAxisID=i(l,o,s,a);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(f),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&GH(this._data,this),t._stacked&&lm(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Rn(n)){const i=this._cachedMeta;this._data=r8e(n,i)}else if(r!==n){if(r){GH(r,this);const i=this._cachedMeta;lm(i),i._parsed=[]}n&&Object.isExtensible(n)&&B6e(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const s=n._stacked;n._stacked=_R(n.vScale,n),n.stack!==r.stack&&(i=!0,lm(n),n.stack=r.stack),this._resyncElements(t),(i||s!==n._stacked)&&(l4(this,n._parsed),n._stacked=_R(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:s,_stacked:o}=r,a=s.axis;let l=t===0&&n===i.length?!0:r._sorted,f=t>0&&r._parsed[t-1],d,p,m;if(this._parsing===!1)r._parsed=i,r._sorted=!0,m=i;else{mi(i[t])?m=this.parseArrayData(r,i,t,n):Rn(i[t])?m=this.parseObjectData(r,i,t,n):m=this.parsePrimitiveData(r,i,t,n);const _=()=>p[a]===null||f&&p[a]<f[a];for(d=0;d<n;++d)r._parsed[d+t]=p=m[d],l&&(_()&&(l=!1),f=p);r._sorted=l}o&&l4(this,m)}parsePrimitiveData(t,n,r,i){const{iScale:s,vScale:o}=t,a=s.axis,l=o.axis,f=s.getLabels(),d=s===o,p=new Array(i);let m,_,v;for(m=0,_=i;m<_;++m)v=m+r,p[m]={[a]:d||s.parse(f[v],v),[l]:o.parse(n[v],v)};return p}parseArrayData(t,n,r,i){const{xScale:s,yScale:o}=t,a=new Array(i);let l,f,d,p;for(l=0,f=i;l<f;++l)d=l+r,p=n[d],a[l]={x:s.parse(p[0],d),y:o.parse(p[1],d)};return a}parseObjectData(t,n,r,i){const{xScale:s,yScale:o}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,f=new Array(i);let d,p,m,_;for(d=0,p=i;d<p;++d)m=d+r,_=n[m],f[d]={x:s.parse(nw(_,a),m),y:o.parse(nw(_,l),m)};return f}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,s=this._cachedMeta,o=n[t.axis],a={keys:CZ(i,!0),values:n._stacks[t.axis]._visualValues};return a4(a,o,s.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const s=r[n.axis];let o=s===null?NaN:s;const a=i&&r._stacks[n.axis];i&&a&&(i.values=a,o=a4(i,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,s=r._sorted&&t===r.iScale,o=i.length,a=this._getOtherScale(t),l=l8e(n,r,this.chart),f={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:p}=s8e(a);let m,_;function v(){_=i[m];const E=_[a.axis];return!vo(_[t.axis])||d>E||p<E}for(m=0;m<o&&!(!v()&&(this.updateRangeFromParsed(f,t,_,l),s));++m);if(s){for(m=o-1;m>=0;--m)if(!v()){this.updateRangeFromParsed(f,t,_,l);break}}return f}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,s,o;for(i=0,s=n.length;i<s;++i)o=n[i][t.axis],vo(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,s=this.getParsed(t);return{label:r?""+r.getLabelForValue(s[r.axis]):"",value:i?""+i.getLabelForValue(s[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=n8e(gn(this.options.clip,t8e(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],s=n.chartArea,o=[],a=this._drawStart||0,l=this._drawCount||i.length-a,f=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(t,s,a,l),d=a;d<a+l;++d){const p=i[d];p.hidden||(p.active&&f?o.push(p):p.draw(t,s))}for(d=0;d<o.length;++d)o[d].draw(t,s)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];s=o.$context||(o.$context=c8e(this.getContext(),t,o)),s.parsed=this.getParsed(t),s.raw=i.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=a8e(this.chart.getContext(),this.index)),s.dataset=i,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=r,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",s=this._cachedDataOpts,o=t+"-"+n,a=s[o],l=this.enableOptionSharing&&rw(r);if(a)return u4(a,l);const f=this.chart.config,d=f.datasetElementScopeKeys(this._type,t),p=i?[`${t}Hover`,"hover",t,""]:[t,""],m=f.getOptionScopes(this.getDataset(),d),_=Object.keys(zr.elements[t]),v=()=>this.getContext(r,i,n),E=f.resolveNamedOptions(m,_,v,p);return E.$shared&&(E.$shared=l,s[o]=Object.freeze(u4(E,l))),E}_resolveAnimations(t,n,r){const i=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,a=s[o];if(a)return a;let l;if(i.options.animation!==!1){const d=this.chart.config,p=d.datasetAnimationScopeKeys(this._type,n),m=d.getOptionScopes(this.getDataset(),p);l=d.createResolver(m,this.getContext(t,r,n))}const f=new xZ(i,l&&l.animations);return l&&l._cacheable&&(s[o]=Object.freeze(f)),f}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||yR(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,s=this.getSharedOptions(r),o=this.includeOptions(n,s)||s!==i;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:o}}updateElement(t,n,r,i){yR(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!yR(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const s=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,l,f]of this._syncList)this[a](l,f);this._syncList=[];const i=r.length,s=n.length,o=Math.min(s,i);o&&this.parse(0,o),s>i?this._insertElements(i,s-i,t):s<i&&this._removeElements(s,i-s)}_insertElements(t,n,r=!0){const i=this._cachedMeta,s=i.data,o=t+n;let a;const l=f=>{for(f.length+=n,a=f.length-1;a>=o;a--)f[a]=f[a-n]};for(l(s),a=t;a<o;++a)s[a]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(s,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&lm(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}class u8e extends AZ{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:s}=n,o=this.chart._animationsDisabled;let{start:a,count:l}=V6e(n,i,o);this._drawStart=a,this._drawCount=l,G6e(n)&&(a=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=i;const f=this.resolveDatasetElementOptions(t);this.options.showLine||(f.borderWidth=0),f.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:f},t),this.updateElements(i,a,l,t)}updateElements(t,n,r,i){const s=i==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:f}=this._cachedMeta,{sharedOptions:d,includeOptions:p}=this._getSharedOptions(n,i),m=o.axis,_=a.axis,{spanGaps:v,segment:E}=this.options,b=K_(v)?v:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||s||i==="none",T=n+r,R=t.length;let C=n>0&&this.getParsed(n-1);for(let k=0;k<R;++k){const M=t[k],I=w?M:{};if(k<n||k>=T){I.skip=!0;continue}const $=this.getParsed(k),Q=nr($[_]),V=I[m]=o.getPixelForValue($[m],k),N=I[_]=s||Q?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,$,l):$[_],k
610);I.skip=isNaN(V)||isNaN(N)||Q,I.stop=k>0&&Math.abs($[m]-C[m])>b,E&&(I.parsed=$,I.raw=f.data[k]),p&&(I.options=d||this.resolveDataElementOptions(k,M.active?"active":i)),w||this.updateElement(M,k,I,i),C=$}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const s=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function Xu(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class nD{static override(t){Object.assign(nD.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return Xu()}parse(){return Xu()}format(){return Xu()}add(){return Xu()}diff(){return Xu()}startOf(){return Xu()}endOf(){return Xu()}}var f8e={_date:nD};function d8e(e,t,n,r){const{controller:i,data:s,_sorted:o}=e,a=i._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(a&&t===a.axis&&t!=="r"&&o&&s.length){const f=a._reversePixels?F6e:vf;if(r){if(i._sharedOptions){const d=s[0],p=typeof d.getRange=="function"&&d.getRange(t);if(p){const m=f(s,t,n-p),_=f(s,t,n+p);return{lo:m.lo,hi:_.hi}}}}else{const d=f(s,t,n);if(l){const{vScale:p}=i._cachedMeta,{_parsed:m}=e,_=m.slice(0,d.lo+1).reverse().findIndex(E=>!nr(E[p.axis]));d.lo-=Math.max(0,_);const v=m.slice(d.hi).findIndex(E=>!nr(E[p.axis]));d.hi+=Math.max(0,v)}return d}}return{lo:0,hi:s.length-1}}function OT(e,t,n,r,i){const s=e.getSortedVisibleDatasetMetas(),o=n[t];for(let a=0,l=s.length;a<l;++a){const{index:f,data:d}=s[a],{lo:p,hi:m}=d8e(s[a],t,o,i);for(let _=p;_<=m;++_){const v=d[_];v.skip||r(v,f,_)}}}
vendor: 4,443 bytes, line 610
610function h8e(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const s=t?Math.abs(r.x-i.x):0,o=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}function bR(e,t,n,r,i){const s=[];return!i&&!e.isPointInArea(t)||OT(e,n,t,function(a,l,f){!i&&!Z_(a,e.chartArea,0)||a.inRange(t.x,t.y,r)&&s.push({element:a,datasetIndex:l,index:f})},!0),s}function p8e(e,t,n,r){let i=[];function s(o,a,l){const{startAngle:f,endAngle:d}=o.getProps(["startAngle","endAngle"],r),{angle:p}=D6e(o,{x:t.x,y:t.y});lZ(p,f,d)&&i.push({element:o,datasetIndex:a,index:l})}return OT(e,n,t,s),i}function g8e(e,t,n,r,i,s){let o=[];const a=h8e(n);let l=Number.POSITIVE_INFINITY;function f(d,p,m){const _=d.inRange(t.x,t.y,i);if(r&&!_)return;const v=d.getCenterPoint(i);if(!(!!s||e.isPointInArea(v))&&!_)return;const b=a(t,v);b<l?(o=[{element:d,datasetIndex:p,index:m}],l=b):b===l&&o.push({element:d,datasetIndex:p,index:m})}return OT(e,n,t,f),o}function SR(e,t,n,r,i,s){return!s&&!e.isPointInArea(t)?[]:n==="r"&&!r?p8e(e,t,n,i):g8e(e,t,n,r,i,s)}function f4(e,t,n,r,i){const s=[],o=n==="x"?"inXRange":"inYRange";let a=!1;return OT(e,n,t,(l,f,d)=>{l[o]&&l[o](t[n],i)&&(s.push({element:l,datasetIndex:f,index:d}),a=a||l.inRange(t.x,t.y,i))}),r&&!a?[]:s}var m8e={modes:{index(e,t,n,r){const i=Ju(t,e),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?bR(e,i,s,r,o):SR(e,i,s,!1,r,o),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(f=>{const d=a[0].index,p=f.data[d];p&&!p.skip&&l.push({element:p,datasetIndex:f.index,index:d})}),l):[]},dataset(e,t,n,r){const i=Ju(t,e),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?bR(e,i,s,r,o):SR(e,i,s,!1,r,o);if(a.length>0){const l=a[0].datasetIndex,f=e.getDatasetMeta(l).data;a=[];for(let d=0;d<f.length;++d)a.push({element:f[d],datasetIndex:l,index:d})}return a},point(e,t,n,r){const i=Ju(t,e),s=n.axis||"xy",o=n.includeInvisible||!1;return bR(e,i,s,r,o)},nearest(e,t,n,r){const i=Ju(t,e),s=n.axis||"xy",o=n.includeInvisible||!1;return SR(e,i,s,n.intersect,r,o)},x(e,t,n,r){const i=Ju(t,e);return f4(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Ju(t,e);return f4(e,i,"y",n.intersect,r)}}};const RZ=["left","top","right","bottom"];function um(e,t){return e.filter(n=>n.pos===t)}function d4(e,t){return e.filter(n=>RZ.indexOf(n.pos)===-1&&n.box.axis===t)}function fm(e,t){return e.sort((n,r)=>{const i=t?r:n,s=t?n:r;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function _8e(e){const t=[];let n,r,i,s,o,a;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:s,options:{stack:o,stackWeight:a=1}}=i,t.push({index:n,box:i,pos:s,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&s+o,stackWeight:a});return t}function v8e(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:s}=n;if(!r||!RZ.includes(i))continue;const o=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return t}function y8e(e,t){const n=v8e(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let s,o,a;for(s=0,o=e.length;s<o;++s){a=e[s];const{fullSize:l}=a.box,f=n[a.stack],d=f&&a.stackWeight/f.weight;a.horizontal?(a.width=d?d*r:l&&t.availableWidth,a.height=i):(a.width=r,a.height=d?d*i:l&&t.availableHeight)}return n}function b8e(e){const t=_8e(e),n=fm(t.filter(f=>f.box.fullSize),!0),r=fm(um(t,"left"),!0),i=fm(um(t,"right")),s=fm(um(t,"top"),!0),o=fm(um(t,"bottom")),a=d4(t,"x"),l=d4(t,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:i.concat(l).concat(o).concat(a),chartArea:um(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:s.concat(o).concat(a)}}function h4(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function kZ(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function S8e(e,t,n,r){const{pos:i,box:s}=n,o=e.maxPadding;if(!Rn(i)){n.size&&(e[i]-=n.size);const p=r[n.stack]||{size:0,count:1};p.size=Math.max(p.size,n.horizontal?s.height:s.width),n.size=p.size/p.count,e[i]+=n.size}s.getPadding&&kZ(o,s.getPadding());const a=Math.max(0,t.outerWidth-h4(o,e,"left","right")),l=Math.max(0,t.outerHeight-h4(o,e,"top","bottom")),f=a!==e.w,d=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:f,other:d}:{same:d,other:f}}function E8e(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function w8e(e,t){const n=t.maxPadding;function r(i){const s={left:0,top:0,right:0,bottom:0};
vendor: 5,129 bytes, line 610
610return i.forEach(o=>{s[o]=Math.max(t[o],n[o])}),s}return r(e?["left","right"]:["top","bottom"])}function Am(e,t,n,r){const i=[];let s,o,a,l,f,d;for(s=0,o=e.length,f=0;s<o;++s){a=e[s],l=a.box,l.update(a.width||t.w,a.height||t.h,w8e(a.horizontal,t));const{same:p,other:m}=S8e(t,n,a,r);f|=p&&i.length,d=d||m,l.fullSize||i.push(a)}return f&&Am(i,t,n,r)||d}function SS(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function p4(e,t,n,r){const i=n.padding;let{x:s,y:o}=t;for(const a of e){const l=a.box,f=r[a.stack]||{placed:0,weight:1},d=a.stackWeight/f.weight||1;if(a.horizontal){const p=t.w*d,m=f.size||l.height;rw(f.start)&&(o=f.start),l.fullSize?SS(l,i.left,o,n.outerWidth-i.right-i.left,m):SS(l,t.left+f.placed,o,p,m),f.start=o,f.placed+=p,o=l.bottom}else{const p=t.h*d,m=f.size||l.width;rw(f.start)&&(s=f.start),l.fullSize?SS(l,s,i.top,m,n.outerHeight-i.bottom-i.top):SS(l,s,t.top+f.placed,m,p),f.start=s,f.placed+=p,s=l.right}}t.x=s,t.y=o}var uo={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=yo(e.options.layout.padding),s=Math.max(t-i.width,0),o=Math.max(n-i.height,0),a=b8e(e.boxes),l=a.vertical,f=a.horizontal;Nn(e.boxes,E=>{typeof E.beforeLayout=="function"&&E.beforeLayout()});const d=l.reduce((E,b)=>b.box.options&&b.box.options.display===!1?E:E+1,0)||1,p=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/d,hBoxMaxHeight:o/2}),m=Object.assign({},i);kZ(m,yo(r));const _=Object.assign({maxPadding:m,w:s,h:o,x:i.left,y:i.top},i),v=y8e(l.concat(f),p);Am(a.fullSize,_,p,v),Am(l,_,p,v),Am(f,_,p,v)&&Am(l,_,p,v),E8e(_),p4(a.leftAndTop,_,p,v),_.x+=_.w,_.y+=_.h,p4(a.rightAndBottom,_,p,v),e.chartArea={left:_.left,top:_.top,right:_.left+_.w,bottom:_.top+_.h,height:_.h,width:_.w},Nn(a.chartArea,E=>{const b=E.box;Object.assign(b,e.chartArea),b.update(_.w,_.h,{left:0,top:0,right:0,bottom:0})})}};class IZ{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class T8e extends IZ{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const d0="$chartjs",x8e={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},g4=e=>e===null||e==="";function C8e(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[d0]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",g4(i)){const s=t4(e,"width");s!==void 0&&(e.width=s)}if(g4(r))if(e.style.height==="")e.height=e.width/(t||2);else{const s=t4(e,"height");s!==void 0&&(e.height=s)}return e}const OZ=Dje?{passive:!0}:!1;function A8e(e,t,n){e&&e.addEventListener(t,n,OZ)}function R8e(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,OZ)}function k8e(e,t){const n=x8e[e.type]||e.type,{x:r,y:i}=Ju(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function ow(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function I8e(e,t,n){const r=e.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||ow(a.addedNodes,r),o=o&&!ow(a.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function O8e(e,t,n){const r=e.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||ow(a.removedNodes,r),o=o&&!ow(a.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Q_=new Map;let m4=0;function MZ(){const e=window.devicePixelRatio;e!==m4&&(m4=e,Q_.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function M8e(e,t){Q_.size||window.addEventListener("resize",MZ),Q_.set(e,t)}function N8e(e){Q_.delete(e),Q_.size||window.removeEventListener("resize",MZ)}function L8e(e,t,n){const r=e.canvas,i=r&&tD(r);if(!i)return;const s=dZ((a,l)=>{const f=i.clientWidth;n(a,l),f<i.clientWidth&&n()},window),o=new ResizeObserver(a=>{const l=a[0],f=l.contentRect.width,d=l.contentRect.height;f===0&&d===0||s(f,d)});return o.observe(i),M8e(e,s),o}function ER(e,t,n){n&&n.disconnect(),t==="resize"&&N8e(e)}function D8e(e,t,n){const r=e.canvas,i=dZ(s=>{e.ctx!==null&&n(k8e(s,e))},e);return A8e(r,t,i),i}class P8e extends IZ{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(C8e(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[d0])return!1;const r=n[d0].initial;["height","width"].forEach(s=>{const o=r[s];nr(o)?n.removeAttribute(s):n.setAttribute(s,o)});const i=r.style||{};
vendor: 3,358 bytes, line 610
610return Object.keys(i).forEach(s=>{n.style[s]=i[s]}),n.width=n.width,delete n[d0],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:I8e,detach:O8e,resize:L8e}[n]||D8e;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:ER,detach:ER,resize:ER}[n]||R8e)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return Lje(t,n,r,i)}isAttached(t){const n=t&&tD(t);return!!(n&&n.isConnected)}}function $8e(e){return!eD()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?T8e:P8e}let sd=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return K_(this.x)&&K_(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(s=>{i[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),i}};function F8e(e,t){const n=e.options.ticks,r=U8e(e),i=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?z8e(t):[],o=s.length,a=s[0],l=s[o-1],f=[];if(o>i)return H8e(t,f,s,o/i),f;const d=B8e(s,t,i);if(o>0){let p,m;const _=o>1?Math.round((l-a)/(o-1)):null;for(ES(t,f,d,nr(_)?0:a-_,a),p=0,m=o-1;p<m;p++)ES(t,f,d,s[p],s[p+1]);return ES(t,f,d,l,nr(_)?t.length:l+_),f}return ES(t,f,d),f}function U8e(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function B8e(e,t,n){const r=j8e(e),i=t.length/n;if(!r)return Math.max(i,1);const s=I6e(r);for(let o=0,a=s.length-1;o<a;o++){const l=s[o];if(l>i)return l}return Math.max(i,1)}function z8e(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function H8e(e,t,n,r){let i=0,s=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===s&&(t.push(e[o]),i++,s=n[i*r])}function ES(e,t,n,r,i){const s=gn(r,0),o=Math.min(gn(i,e.length),e.length);let a=0,l,f,d;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),d=s;d<0;)a++,d=Math.round(s+a*n);for(f=Math.max(s,0);f<o;f++)f===d&&(t.push(e[f]),a++,d=Math.round(s+a*n))}function j8e(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const V8e=e=>e==="left"?"right":e==="right"?"left":e,_4=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,v4=(e,t)=>Math.min(t||e,e);function y4(e,t){const n=[],r=e.length/t,i=e.length;let s=0;for(;s<i;s+=r)n.push(e[Math.floor(s)]);return n}function G8e(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),s=e._startPixel,o=e._endPixel,a=1e-6;let l=e.getPixelForTick(i),f;if(!(n&&(r===1?f=Math.max(l-s,o-l):t===0?f=(e.getPixelForTick(1)-l)/2:f=(l-e.getPixelForTick(i-1))/2,l+=i<t?f:-f,l<s-a||l>o+a)))return l}function q8e(e,t){Nn(e,n=>{const r=n.gc,i=r.length/2;let s;if(i>t){for(s=0;s<i;++s)delete n.data[r[s]];r.splice(0,i)}})}function dm(e){return e.drawTicks?e.tickLength:0}function b4(e,t){if(!e.display)return 0;const n=$i(e.font,t),r=yo(e.padding);return(mi(e.text)?e.text.length:1)*n.lineHeight+r.height}function W8e(e,t){return id(e,{scale:t,type:"scale"})}function Y8e(e,t,n){return id(e,{tick:n,index:t,type:"tick"})}function X8e(e,t,n){let r=WL(e);return(n&&t!=="right"||!n&&t==="right")&&(r=V8e(r)),r}function K8e(e,t,n,r){const{top:i,left:s,bottom:o,right:a,chart:l}=e,{chartArea:f,scales:d}=l;let p=0,m,_,v;const E=o-i,b=a-s;
vendor: 83,785 bytes, lines 610-612
610if(e.isHorizontal()){if(_=Ni(r,s,a),Rn(n)){const w=Object.keys(n)[0],T=n[w];v=d[w].getPixelForValue(T)+E-t}else n==="center"?v=(f.bottom+f.top)/2+E-t:v=_4(e,n,t);m=a-s}else{if(Rn(n)){const w=Object.keys(n)[0],T=n[w];_=d[w].getPixelForValue(T)-b+t}else n==="center"?_=(f.left+f.right)/2-b+t:_=_4(e,n,t);v=Ni(r,o,i),p=n==="left"?-Po:Po}return{titleX:_,titleY:v,maxWidth:m,rotation:p}}class qp extends sd{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Jo(t,Number.POSITIVE_INFINITY),n=Jo(n,Number.NEGATIVE_INFINITY),r=Jo(r,Number.POSITIVE_INFINITY),i=Jo(i,Number.NEGATIVE_INFINITY),{min:Jo(t,r),max:Jo(n,i),minDefined:vo(t),maxDefined:vo(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:s}=this.getUserBounds(),o;if(i&&s)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,f=a.length;l<f;++l)o=a[l].controller.getMinMax(this,t),i||(n=Math.min(n,o.min)),s||(r=Math.max(r,o.max));return n=s&&n>r?r:n,r=i&&n>r?n:r,{min:Jo(n,Jo(r,n)),max:Jo(r,Jo(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){fr(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=dje(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?y4(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=F8e(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){fr(this.options.afterUpdate,[this])}beforeSetDimensions(){fr(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){fr(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),fr(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){fr(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,s;for(r=0,i=t.length;r<i;r++)s=t[r],s.label=fr(n.callback,[s.value,r,t],this)}afterTickToLabelConversion(){fr(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){fr(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=v4(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,s=n.maxRotation;let o=i,a,l,f;if(!this._isVisible()||!n.display||i>=s||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),p=d.widest.width,m=d.highest.height,_=lo(this.chart.width-p,0,this.maxWidth);a=t.offset?this.maxWidth/r:_/(r-1),p+6>a&&(a=_/(r-(t.offset?.5:1)),l=this.maxHeight-dm(t.grid)-n.padding-b4(t.title,this.chart.options.font),f=Math.sqrt(p*p+m*m),o=L6e(Math.min(Math.asin(lo((d.highest.height+6)/a,-1,1)),Math.asin(lo(l/f,-1,1))-Math.asin(lo(m/f,-1,1)))),o=Math.max(i,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){fr(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){fr(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=b4(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=dm(s)+l):(t.height=this.maxHeight,t.width=dm(s)+l),r.display&&this.ticks.length){const{first:f,last:d,widest:p,highest:m}=this._getLabelSizes(),_=r.padding*2,v=_f(this.labelRotation),E=Math.cos(v),b=Math.sin(v);if(a){const w=r.mirror?0:b*p.width+E*m.height;t.height=Math.min(this.maxHeight,t.height+w+_)}else{const w=r.mirror?0:E*p.width+b*m.height;t.width=Math.min(this.maxWidth,t.width+w+_)}this._calculatePadding(f,d,b,E)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:s,padding:o},position:a}=this.options,l=this.labelRotation!==0,f=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let m=0,_=0;l?f?(m=i*t.width,_=r*n.height):(m=r*t.height,_=i*n.width):s==="start"?_=n.width:s==="end"?m=t.width:s!=="inner"&&(m=t.width/2,_=n.width/2),this.paddingLeft=Math.max((m-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((_-p+o)*this.width/(this.width-p),0)}else{let d=n.height/2,p=t.height/2;s==="start"?(d=0,p=t.height):s==="end"&&(d=n.height,p=0),this.paddingTop=d+o,this.paddingBottom=p+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){fr(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)nr(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=y4(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:s}=this,o=[],a=[],l=Math.floor(n/v4(n,r));let f=0,d=0,p,m,_,v,E,b,w,T,R,C,k;for(p=0;p<n;p+=l){if(v=t[p].label,E=this._resolveTickFontOptions(p),i.font=b=E.string,w=s[b]=s[b]||{data:{},gc:[]},T=E.lineHeight,R=C=0,!nr(v)&&!mi(v))R=KH(i,w.data,w.gc,R,v),C=T;else if(mi(v))for(m=0,_=v.length;m<_;++m)k=v[m],!nr(k)&&!mi(k)&&(R=KH(i,w.data,w.gc,R,k),C+=T);o.push(R),a.push(C),f=Math.max(R,f),d=Math.max(C,d)}q8e(s,n);const M=o.indexOf(f),I=a.indexOf(d),$=Q=>({width:o[Q]||0,height:a[Q]||0});return{first:$(0),last:$(n-1),widest:$(M),highest:$(I),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return $6e(this._alignToPixels?Yu(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=Y8e(this.getContext(),t,r))}return this.$context||(this.$context=W8e(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=_f(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,a=s?s.widest.width+o:0,l=s?s.highest.height+o:0;return this.isHorizontal()?l*r>a*i?a/r:l/i:l*i<a*r?l/r:a/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:s,position:o,border:a}=i,l=s.offset,f=this.isHorizontal(),p=this.ticks.length+(l?1:0),m=dm(s),_=[],v=a.setContext(this.getContext()),E=v.display?v.width:0,b=E/2,w=function(P){return Yu(r,P,E)};let T,R,C,k,M,I,$,Q,V,N,U,K;if(o==="top")T=w(this.bottom),I=this.bottom-m,Q=T-b,N=w(t.top)+b,K=t.bottom;else if(o==="bottom")T=w(this.top),N=t.top,K=w(t.bottom)-b,I=T+b,Q=this.top+m;else if(o==="left")T=w(this.right),M=this.right-m,$=T-b,V=w(t.left)+b,U=t.right;else if(o==="right")T=w(this.left),V=t.left,U=w(t.right)-b,M=T+b,$=this.left+m;else if(n==="x"){if(o==="center")T=w((t.top+t.bottom)/2+.5);else if(Rn(o)){const P=Object.keys(o)[0],ee=o[P];T=w(this.chart.scales[P].getPixelForValue(ee))}N=t.top,K=t.bottom,I=T+b,Q=I+m}else if(n==="y"){if(o==="center")T=w((t.left+t.right)/2);else if(Rn(o)){const P=Object.keys(o)[0],ee=o[P];T=w(this.chart.scales[P].getPixelForValue(ee))}M=T-b,$=M-m,V=t.left,U=t.right}const j=gn(i.ticks.maxTicksLimit,p),fe=Math.max(1,Math.ceil(p/j));for(R=0;R<p;R+=fe){const P=this.getContext(R),ee=s.setContext(P),W=a.setContext(P),de=ee.lineWidth,ce=ee.color,L=W.dash||[],J=W.dashOffset,re=ee.tickWidth,me=ee.tickColor,be=ee.tickBorderDash||[],Ee=ee.tickBorderDashOffset;C=G8e(this,R,l),C!==void 0&&(k=Yu(r,C,de),f?M=$=V=U=k:I=Q=N=K=k,_.push({tx1:M,ty1:I,tx2:$,ty2:Q,x1:V,y1:N,x2:U,y2:K,width:de,color:ce,borderDash:L,borderDashOffset:J,tickWidth:re,tickColor:me,tickBorderDash:be,tickBorderDashOffset:Ee}))}return this._ticksLength=p,this._borderValue=T,_}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:s}=r,o=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:f,padding:d,mirror:p}=s,m=dm(r.grid),_=m+d,v=p?-d:_,E=-_f(this.labelRotation),b=[];let w,T,R,C,k,M,I,$,Q,V,N,U,K="middle";if(i==="top")M=this.bottom-v,I=this._getXAxisLabelAlignment();else if(i==="bottom")M=this.top+v,I=this._getXAxisLabelAlignment();else if(i==="left"){const fe=this._getYAxisLabelAlignment(m);I=fe.textAlign,k=fe.x}else if(i==="right"){const fe=this._getYAxisLabelAlignment(m);I=fe.textAlign,k=fe.x}else if(n==="x"){if(i==="center")M=(t.top+t.bottom)/2+_;else if(Rn(i)){const fe=Object.keys(i)[0],P=i[fe];M=this.chart.scales[fe].getPixelForValue(P)+_}I=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")k=(t.left+t.right)/2-_;else if(Rn(i)){const fe=Object.keys(i)[0],P=i[fe];k=this.chart.scales[fe].getPixelForValue(P)}I=this._getYAxisLabelAlignment(m).textAlign}n==="y"&&(l==="start"?K="top":l==="end"&&(K="bottom"));const j=this._getLabelSizes();for(w=0,T=a.length;w<T;++w){R=a[w],C=R.label;const fe=s.setContext(this.getContext(w));$=this.getPixelForTick(w)+s.labelOffset,Q=this._resolveTickFontOptions(w),V=Q.lineHeight,N=mi(C)?C.length:1;const P=N/2,ee=fe.color,W=fe.textStrokeColor,de=fe.textStrokeWidth;let ce=I;o?(k=$,I==="inner"&&(w===T-1?ce=this.options.reverse?"left":"right":w===0?ce=this.options.reverse?"right":"left":ce="center"),i==="top"?f==="near"||E!==0?U=-N*V+V/2:f==="center"?U=-j.highest.height/2-P*V+V:U=-j.highest.height+V/2:f==="near"||E!==0?U=V/2:f==="center"?U=j.highest.height/2-P*V:U=j.highest.height-N*V,p&&(U*=-1),E!==0&&!fe.showLabelBackdrop&&(k+=V/2*Math.sin(E))):(M=$,U=(1-N)*V/2);let L;if(fe.showLabelBackdrop){const J=yo(fe.backdropPadding),re=j.heights[w],me=j.widths[w];let be=U-J.top,Ee=0-J.left;switch(K){case"middle":be-=re/2;break;case"bottom":be-=re;break}switch(I){case"center":Ee-=me/2;break;case"right":Ee-=me;break;case"inner":w===T-1?Ee-=me:w>0&&(Ee-=me/2);break}L={left:Ee,top:be,width:me+J.width,height:re+J.height,color:fe.backdropColor}}b.push({label:C,font:Q,textOffset:U,options:{rotation:E,color:ee,strokeColor:W,strokeWidth:de,textAlign:ce,textBaseline:K,translation:[k,M],backdrop:L}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-_f(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:s}}=this.options,o=this._getLabelSizes(),a=t+s,l=o.widest.width;let f,d;return n==="left"?i?(d=this.right+s,r==="near"?f="left":r==="center"?(f="center",d+=l/2):(f="right",d+=l)):(d=this.right-a,r==="near"?f="right":r==="center"?(f="center",d-=l/2):(f="left",d=this.left)):n==="right"?i?(d=this.left+s,r==="near"?f="right":r==="center"?(f="center",d-=l/2):(f="left",d-=l)):(d=this.left+a,r==="near"?f="left":r==="center"?(f="center",d+=l/2):(f="right",d=this.right)):f="right",{textAlign:f,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:s,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,s,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(s=>s.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const a=(l,f,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(f.x,f.y),r.stroke(),r.restore())};if(n.display)for(s=0,o=i.length;s<o;++s){const l=i[s];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,s=r.setContext(this.getContext()),o=r.display?s.width:0;if(!o)return;const a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let f,d,p,m;this.isHorizontal()?(f=Yu(t,this.left,o)-o/2,d=Yu(t,this.right,a)+a/2,p=m=l):(p=Yu(t,this.top,o)-o/2,m=Yu(t,this.bottom,a)+a/2,f=d=l),n.save(),n.lineWidth=s.width,n.strokeStyle=s.color,n.beginPath(),n.moveTo(f,p),n.lineTo(d,m),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&XL(r,i);const s=this.getLabelItems(t);for(const o of s){const a=o.options,l=o.font,f=o.label,d=o.textOffset;J_(r,f,0,d,l,a)}i&&KL(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const s=$i(r.font),o=yo(r.padding),a=r.align;let l=s.lineHeight/2;n==="bottom"||n==="center"||Rn(n)?(l+=o.bottom,mi(r.text)&&(l+=s.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:f,titleY:d,maxWidth:p,rotation:m}=K8e(this,l,n,a);J_(t,r.text,0,0,s,{color:r.color,maxWidth:p,rotation:m,textAlign:X8e(a,n,i),textBaseline:"middle",translation:[f,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=gn(t.grid&&t.grid.z,-1),i=gn(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==qp.prototype.draw?[{z:n,draw:s=>{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let s,o;for(s=0,o=n.length;s<o;++s){const a=n[s];a[r]===this.id&&(!t||a.type===t)&&i.push(a)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return $i(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class wS{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;Q8e(n)&&(r=this.register(n));const i=this.items,s=t.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in i||(i[s]=t,Z8e(t,o,r),this.override&&zr.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in zr[i]&&(delete zr[i][r],this.override&&delete zf[r])}}function Z8e(e,t,n){const r=X_(Object.create(null),[n?zr.get(n):{},zr.get(t),e.defaults]);zr.set(t,r),e.defaultRoutes&&J8e(t,e.defaultRoutes),e.descriptors&&zr.describe(t,e.descriptors)}function J8e(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),s=[e].concat(r).join("."),o=t[n].split("."),a=o.pop(),l=o.join(".");zr.route(s,i,l,a)})}function Q8e(e){return"id"in e&&"defaults"in e}class eVe{constructor(){this.controllers=new wS(AZ,"datasets",!0),this.elements=new wS(sd,"elements"),this.plugins=new wS(Object,"plugins"),this.scales=new wS(qp,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const s=r||this._getRegistryForType(i);r||s.isForType(i)||s===this.plugins&&i.id?this._exec(t,s,i):Nn(i,o=>{const a=r||this._getRegistryForType(o);this._exec(t,a,o)})})}_exec(t,n,r){const i=GL(t);fr(r["before"+i],[],r),n[t](r),fr(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var sa=new eVe;class tVe{constructor(){this._init=void 0}notify(t,n,r,i){if(n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const s=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(s,t,n,r);return n==="afterDestroy"&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),o}_notify(t,n,r,i){i=i||{};for(const s of t){const o=s.plugin,a=o[r],l=[n,i,s.options];if(fr(a,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){nr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=gn(r.options&&r.options.plugins,{}),s=nVe(r);return i===!1&&!n?[]:iVe(t,s,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(s,o)=>s.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function nVe(e){const t={},n=[],r=Object.keys(sa.plugins.items);for(let s=0;s<r.length;s++)n.push(sa.getPlugin(r[s]));const i=e.plugins||[];for(let s=0;s<i.length;s++){const o=i[s];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function rVe(e,t){return!t&&e===!1?null:e===!0?{}:e}function iVe(e,{plugins:t,localIds:n},r,i){const s=[],o=e.getContext();for(const a of t){const l=a.id,f=rVe(r[l],i);f!==null&&s.push({plugin:a,options:sVe(e.config,{plugin:a,local:n[l]},f,o)})}return s}function sVe(e,{plugin:t,local:n},r,i){const s=e.pluginScopeKeys(t),o=e.getOptionScopes(r,s);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function SO(e,t){const n=zr.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function oVe(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function aVe(e,t){return e===t?"_index_":"_value_"}function S4(e){if(e==="x"||e==="y"||e==="r")return e}function cVe(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function EO(e,...t){if(S4(e))return e;for(const n of t){const r=n.axis||cVe(n.position)||e.length>1&&S4(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function E4(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function lVe(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return E4(e,"x",n[0])||E4(e,"y",n[0])}return{}}function uVe(e,t){const n=zf[e.type]||{scales:{}},r=t.scales||{},i=SO(e.type,t),s=Object.create(null);return Object.keys(r).forEach(o=>{const a=r[o];if(!Rn(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=EO(o,a,lVe(o,e),zr.scales[a.type]),f=aVe(l,i),d=n.scales||{};s[o]=Km(Object.create(null),[{axis:l},a,d[l],d[f]])}),e.data.datasets.forEach(o=>{const a=o.type||e.type,l=o.indexAxis||SO(a,t),d=(zf[a]||{}).scales||{};Object.keys(d).forEach(p=>{const m=oVe(p,l),_=o[m+"AxisID"]||m;s[_]=s[_]||Object.create(null),Km(s[_],[{axis:m},r[_],d[p]])})}),Object.keys(s).forEach(o=>{const a=s[o];Km(a,[zr.scales[a.type],zr.scale])}),s}function NZ(e){const t=e.options||(e.options={});t.plugins=gn(t.plugins,{}),t.scales=uVe(e,t)}function LZ(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function fVe(e){return e=e||{},e.data=LZ(e.data),NZ(e),e}const w4=new Map,DZ=new Set;function TS(e,t){let n=w4.get(e);return n||(n=t(),w4.set(e,n),DZ.add(n)),n}const hm=(e,t,n)=>{const r=nw(t,n);r!==void 0&&e.add(r)};class dVe{constructor(t){this._config=fVe(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=LZ(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),NZ(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return TS(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return TS(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return TS(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return TS(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:s}=this,o=this._cachedScopes(t,r),a=o.get(n);if(a)return a;const l=new Set;n.forEach(d=>{t&&(l.add(t),d.forEach(p=>hm(l,t,p))),d.forEach(p=>hm(l,i,p)),d.forEach(p=>hm(l,zf[s]||{},p)),d.forEach(p=>hm(l,zr,p)),d.forEach(p=>hm(l,vO,p))});const f=Array.from(l);return f.length===0&&f.push(Object.create(null)),DZ.has(n)&&o.set(n,f),f}chartOptionScopes(){const{options:t,type:n}=this;return[t,zf[n]||{},zr.datasets[n]||{},{type:n},zr,vO]}resolveNamedOptions(t,n,r,i=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=T4(this._resolverCache,t,i);let l=o;if(pVe(o,n)){s.$shared=!1,r=eu(r)?r():r;const f=this.createResolver(t,r,a);l=Sp(o,r,f)}for(const f of n)s[f]=l[f];return s}createResolver(t,n,r=[""],i){const{resolver:s}=T4(this._resolverCache,t,r);return Rn(n)?Sp(s,n,void 0,i):s}}function T4(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let s=r.get(i);return s||(s={resolver:ZL(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,s)),s}const hVe=e=>Rn(e)&&Object.getOwnPropertyNames(e).some(t=>eu(e[t]));function pVe(e,t){const{isScriptable:n,isIndexable:r}=_Z(e);for(const i of t){const s=n(i),o=r(i),a=(o||s)&&e[i];if(s&&(eu(a)||hVe(a))||o&&mi(a))return!0}return!1}var gVe="4.5.1";const mVe=["top","bottom","left","right","chartArea"];function x4(e,t){return e==="top"||e==="bottom"||mVe.indexOf(e)===-1&&t==="x"}function C4(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function A4(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),fr(n&&n.onComplete,[e],t)}function _Ve(e){const t=e.chart,n=t.options.animation;fr(n&&n.onProgress,[e],t)}function PZ(e){return eD()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const h0={},R4=e=>{const t=PZ(e);return Object.values(h0).filter(n=>n.canvas===t).pop()};function vVe(e,t,n){const r=Object.keys(e);for(const i of r){const s=+i;if(s>=t){const o=e[i];delete e[i],(n>0||s>t)&&(e[s+n]=o)}}}function yVe(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}let MT=class{static defaults=zr;static instances=h0;static overrides=zf;static registry=sa;static version=gVe;static getChart=R4;static register(...t){sa.add(...t),k4()}static unregister(...t){sa.remove(...t),k4()}constructor(t,n){const r=this.config=new dVe(n),i=PZ(t),s=R4(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||$8e(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,o.aspectRatio),l=a&&a.canvas,f=l&&l.height,d=l&&l.width;if(this.id=S6e(),this.ctx=a,this.canvas=l,this.width=d,this.height=f,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new tVe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=H6e(p=>this.update(p),o.resizeDelay||0),this._dataChanges=[],h0[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}tc.listen(this,"complete",A4),tc.listen(this,"progress",_Ve),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:s}=this;return nr(t)?n&&s?s:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return sa}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():e4(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ZH(this.canvas,this.ctx),this}stop(){return tc.stop(this),this}resize(t,n){tc.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,s),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,e4(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),fr(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Nn(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,a)=>(o[a]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const a=n[o],l=EO(o,a),f=l==="r",d=l==="x";return{options:a,dposition:f?"chartArea":d?"bottom":"left",dtype:f?"radialLinear":d?"category":"linear"}}))),Nn(s,o=>{const a=o.options,l=a.id,f=EO(l,a),d=gn(a.type,o.dtype);(a.position===void 0||x4(a.position,f)!==x4(o.dposition))&&(a.position=o.dposition),i[l]=!0;let p=null;if(l in r&&r[l].type===d)p=r[l];else{const m=sa.getScale(d);p=new m({id:l,type:d,ctx:this.ctx,chart:this}),r[p.id]=p}p.init(a,t)}),Nn(i,(o,a)=>{o||delete r[a]}),Nn(r,o=>{uo.configure(this,o,o.options),uo.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,s)=>i.index-s.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(C4("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const s=n[r];let o=this.getDatasetMeta(r);const a=s.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=a,o.indexAxis=s.indexAxis||SO(a,this.options),o.order=s.order||0,o.index=r,o.label=""+s.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=sa.getController(a),{datasetElementType:f,dataElementType:d}=zr.datasets[a];Object.assign(l,{dataElementType:sa.getElement(d),datasetElementType:f&&sa.getElement(f)}),o.controller=new l(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Nn(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let f=0,d=this.data.datasets.length;f<d;f++){const{controller:p}=this.getDatasetMeta(f),m=!i&&s.indexOf(p)===-1;p.buildOrUpdateElements(m),o=Math.max(+p.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),i||Nn(s,f=>{f.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(C4("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Nn(this.scales,t=>{uo.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!zH(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:s}of n){const o=r==="_removeElements"?-s:s;vVe(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(t.filter(o=>o[0]===s).map((o,a)=>a+","+o.splice(1).join(","))),i=r(0);for(let s=1;s<n;s++)if(!zH(i,r(s)))return;return Array.from(i).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;uo.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Nn(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,s)=>{i._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,eu(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(tc.has(this)?this.attached&&!tc.running(this)&&tc.start(this):(this.draw(),A4({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,s;for(i=0,s=n.length;i<s;++i){const o=n[i];(!t||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r={meta:t,index:t.index,cancelable:!0},i=Xje(this,t);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&XL(n,i),t.controller.draw(),i&&KL(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Z_(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const s=m8e.modes[n];return typeof s=="function"?s(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(s=>s&&s._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=id(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,i);rw(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(s,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),tc.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),ZH(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete h0[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(s,o)=>{n.addEventListener(this,s,o),t[s]=o},i=(s,o,a)=>{s.offsetX=o,s.offsetY=a,this._eventHandler(s)};Nn(this.options.events,s=>r(s,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,f)=>{n.addEventListener(this,l,f),t[l]=f},i=(l,f)=>{t[l]&&(n.removeEventListener(this,l,f),delete t[l])},s=(l,f)=>{this.canvas&&this.resize(l,f)};let o;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",s),r("detach",o)};o=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){Nn(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Nn(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let s,o,a,l;for(n==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){o=t[a];const f=o&&this.getDatasetMeta(o.datasetIndex).controller;f&&f[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:s,index:o})=>{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[o],index:o}});!ew(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,s=(l,f)=>l.filter(d=>!f.some(p=>d.datasetIndex===p.datasetIndex&&d.index===p.index)),o=s(n,t),a=r?t:s(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const s=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(s||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:s}=this,o=n,a=this._getActiveElements(t,i,r,o),l=A6e(t),f=yVe(t,this._lastEvent,r,l);r&&(this._lastEvent=null,fr(s.onHover,[t,a,this],this),l&&fr(s.onClick,[t,a,this],this));const d=!ew(a,i);return(d||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=f,d}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,i)}};function k4(){return Nn(MT.instances,e=>e._plugins.invalidate())}function $Z(e,t,n=t){e.lineCap=gn(n.borderCapStyle,t.borderCapStyle),e.setLineDash(gn(n.borderDash,t.borderDash)),e.lineDashOffset=gn(n.borderDashOffset,t.borderDashOffset),e.lineJoin=gn(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=gn(n.borderWidth,t.borderWidth),e.strokeStyle=gn(n.borderColor,t.borderColor)}function bVe(e,t,n){e.lineTo(n.x,n.y)}function SVe(e){return e.stepped?nje:e.tension||e.cubicInterpolationMode==="monotone"?rje:bVe}function FZ(e,t,n={}){const r=e.length,{start:i=0,end:s=r-1}=n,{start:o,end:a}=t,l=Math.max(i,o),f=Math.min(s,a),d=i<o&&s<o||i>a&&s>a;return{count:r,start:l,loop:t.loop,ilen:f<l&&!d?r+f-l:f-l}}function EVe(e,t,n,r){const{points:i,options:s}=t,{count:o,start:a,loop:l,ilen:f}=FZ(i,n,r),d=SVe(s);let{move:p=!0,reverse:m}=r||{},_,v,E;for(_=0;_<=f;++_)v=i[(a+(m?f-_:_))%o],!v.skip&&(p?(e.moveTo(v.x,v.y),p=!1):d(e,E,v,m,s.stepped),E=v);return l&&(v=i[(a+(m?f:0))%o],d(e,E,v,m,s.stepped)),!!l}function wVe(e,t,n,r){const i=t.points,{count:s,start:o,ilen:a}=FZ(i,n,r),{move:l=!0,reverse:f}=r||{};let d=0,p=0,m,_,v,E,b,w;const T=C=>(o+(f?a-C:C))%s,R=()=>{E!==b&&(e.lineTo(d,b),e.lineTo(d,E),e.lineTo(d,w))};for(l&&(_=i[T(0)],e.moveTo(_.x,_.y)),m=0;m<=a;++m){if(_=i[T(m)],_.skip)continue;const C=_.x,k=_.y,M=C|0;M===v?(k<E?E=k:k>b&&(b=k),d=(p*d+C)/++p):(R(),e.lineTo(C,k),v=M,p=0,E=b=k),w=k}R()}function wO(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?wVe:EVe}function TVe(e){return e.stepped?Pje:e.tension||e.cubicInterpolationMode==="monotone"?$je:Qu}function xVe(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),$Z(e,t.options),e.stroke(i)}function CVe(e,t,n,r){const{segments:i,options:s}=t,o=wO(t);for(const a of i)$Z(e,s,a.style),e.beginPath(),o(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const AVe=typeof Path2D=="function";function RVe(e,t,n,r){AVe&&!t.options.segment?xVe(e,t,n,r):CVe(e,t,n,r)}class kVe extends sd{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;Rje(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Gje(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],s=this.points,o=Hje(this,{property:n,start:i,end:i});if(!o.length)return;const a=[],l=TVe(r);let f,d;for(f=0,d=o.length;f<d;++f){const{start:p,end:m}=o[f],_=s[p],v=s[m];if(_===v){a.push(_);continue}const E=Math.abs((i-_[n])/(v[n]-_[n])),b=l(_,v,E,r.stepped);b[n]=t[n],a.push(b)}return a.length===1?a[0]:a}pathSegment(t,n,r){return wO(this)(t,this,n,r)}path(t,n,r){const i=this.segments,s=wO(this);let o=this._loop;n=n||0,r=r||this.points.length-n;for(const a of i)o&=s(t,this,a,{start:n,end:n+r-1});return!!o}draw(t,n,r,i){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),RVe(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function I4(e,t,n,r){const i=e.options,{[n]:s}=e.getProps([n],r);return Math.abs(t-s)<i.radius+i.hitRadius}class IVe extends sd{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:s,y:o}=this.getProps(["x","y"],r);return Math.pow(t-s,2)+Math.pow(n-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return I4(this,t,"x",n)}inYRange(t,n){return I4(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!Z_(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,yO(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}const O4=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},OVe=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class M4 extends sd{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=fr(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=$i(r.font),s=i.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=O4(r,s);let f,d;n.font=i.string,this.isHorizontal()?(f=this.maxWidth,d=this._fitRows(o,s,a,l)+10):(d=this.maxHeight,f=this._fitCols(o,i,a,l)+10),this.width=Math.min(f,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],f=this.lineWidths=[0],d=i+a;let p=t;s.textAlign="left",s.textBaseline="middle";let m=-1,_=-d;return this.legendItems.forEach((v,E)=>{const b=r+n/2+s.measureText(v.text).width;(E===0||f[f.length-1]+b+2*a>o)&&(p+=d,f[f.length-(E>0?0:1)]=0,_+=d,m++),l[E]={left:0,top:_,row:m,width:b,height:i},f[f.length-1]+=b+a}),p}_fitCols(t,n,r,i){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],f=this.columnSizes=[],d=o-t;let p=a,m=0,_=0,v=0,E=0;return this.legendItems.forEach((b,w)=>{const{itemWidth:T,itemHeight:R}=MVe(r,n,s,b,i);w>0&&_+R+2*a>d&&(p+=m+a,f.push({width:m,height:_}),v+=m+a,E++,m=_=0),l[w]={left:v,top:_,col:E,width:T,height:R},m=Math.max(m,T),_+=R+a}),p+=m,f.push({width:m,height:_}),p}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:s}}=this,o=Lh(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=Ni(r,this.left+i,this.right-this.lineWidths[a]);for(const f of n)a!==f.row&&(a=f.row,l=Ni(r,this.left+i,this.right-this.lineWidths[a])),f.top+=this.top+t+i,f.left=o.leftForLtr(o.x(l),f.width),l+=f.width+i}else{let a=0,l=Ni(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const f of n)f.col!==a&&(a=f.col,l=Ni(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),f.top=l,f.left+=this.left+i,f.left=o.leftForLtr(o.x(f.left),f.width),l+=f.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;XL(t,this),this._draw(),KL(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:s,labels:o}=t,a=zr.color,l=Lh(t.rtl,this.left,this.width),f=$i(o.font),{padding:d}=o,p=f.size,m=p/2;let _;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=f.string;const{boxWidth:v,boxHeight:E,itemHeight:b}=O4(o,p),w=function(M,I,$){if(isNaN(v)||v<=0||isNaN(E)||E<0)return;i.save();const Q=gn($.lineWidth,1);if(i.fillStyle=gn($.fillStyle,a),i.lineCap=gn($.lineCap,"butt"),i.lineDashOffset=gn($.lineDashOffset,0),i.lineJoin=gn($.lineJoin,"miter"),i.lineWidth=Q,i.strokeStyle=gn($.strokeStyle,a),i.setLineDash(gn($.lineDash,[])),o.usePointStyle){const V={radius:E*Math.SQRT2/2,pointStyle:$.pointStyle,rotation:$.rotation,borderWidth:Q},N=l.xPlus(M,v/2),U=I+m;gZ(i,V,N,U,o.pointStyleWidth&&v)}else{const V=I+Math.max((p-E)/2,0),N=l.leftForLtr(M,v),U=e_($.borderRadius);i.beginPath(),Object.values(U).some(K=>K!==0)?bO(i,{x:N,y:V,w:v,h:E,radius:U}):i.rect(N,V,v,E),i.fill(),Q!==0&&i.stroke()}i.restore()},T=function(M,I,$){J_(i,$.text,M,I+b/2,f,{strikethrough:$.hidden,textAlign:l.textAlign($.textAlign)})},R=this.isHorizontal(),C=this._computeTitleHeight();R?_={x:Ni(s,this.left+d,this.right-r[0]),y:this.top+d+C,line:0}:_={x:this.left+d,y:Ni(s,this.top+C+d,this.bottom-n[0].height),line:0},EZ(this.ctx,t.textDirection);const k=b+d;this.legendItems.forEach((M,I)=>{i.strokeStyle=M.fontColor,i.fillStyle=M.fontColor;const $=i.measureText(M.text).width,Q=l.textAlign(M.textAlign||(M.textAlign=o.textAlign)),V=v+m+$;let N=_.x,U=_.y;l.setWidth(this.width),R?I>0&&N+V+d>this.right&&(U=_.y+=k,_.line++,N=_.x=Ni(s,this.left+d,this.right-r[_.line])):I>0&&U+k>this.bottom&&(N=_.x=N+n[_.line].width+d,_.line++,U=_.y=Ni(s,this.top+C+d,this.bottom-n[_.line].height));const K=l.x(N);if(w(K,U,M),N=j6e(Q,N+v+m,R?N+V:this.right,t.rtl),T(l.x(N),U,M),R)_.x+=V+d;else if(typeof M.text!="string"){const j=f.lineHeight;_.y+=UZ(M,j)+d}else _.y+=k}),wZ(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=$i(n.font),i=yo(n.padding);if(!n.display)return;const s=Lh(t.rtl,this.left,this.width),o=this.ctx,a=n.position,l=r.size/2,f=i.top+l;let d,p=this.left,m=this.width;if(this.isHorizontal())m=Math.max(...this.lineWidths),d=this.top+f,p=Ni(t.align,p,this.right-m);else{const v=this.columnSizes.reduce((E,b)=>Math.max(E,b.height),0);d=f+Ni(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const _=Ni(a,p,p+m);o.textAlign=s.textAlign(WL(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,J_(o,n.text,_,d,r)}_computeTitleHeight(){const t=this.options.title,n=$i(t.font),r=yo(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,s;if(Cm(t,this.left,this.right)&&Cm(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(i=s[r],Cm(t,i.left,i.left+i.width)&&Cm(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!DVe(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,s=OVe(i,r);i&&!s&&fr(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!s&&fr(n.onHover,[t,r,this],this)}else r&&fr(n.onClick,[t,r,this],this)}}function MVe(e,t,n,r,i){const s=NVe(r,e,t,n),o=LVe(i,r,t.lineHeight);return{itemWidth:s,itemHeight:o}}function NVe(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((s,o)=>s.length>o.length?s:o)),t+n.size/2+r.measureText(i).width}function LVe(e,t,n){let r=e;return typeof t.text!="string"&&(r=UZ(t,n)),r}function UZ(e,t){const n=e.text?e.text.length:0;return t*n}function DVe(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var PVe={id:"legend",_element:M4,start(e,t,n){const r=e.legend=new M4({ctx:e.ctx,options:n,chart:e});uo.configure(e,r,n),uo.addBox(e,r)},stop(e){uo.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;uo.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:s,useBorderRadius:o,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const f=l.controller.getStyle(n?0:void 0),d=yo(f.borderWidth);return{text:t[l.index].label,fillStyle:f.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:f.borderCapStyle,lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:f.borderColor,pointStyle:r||f.pointStyle,rotation:f.rotation,textAlign:i||f.textAlign,borderRadius:o&&(a||f.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class BZ extends sd{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=mi(r.text)?r.text.length:1;this._padding=yo(r.padding);const s=i*$i(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:s,options:o}=this,a=o.align;let l=0,f,d,p;return this.isHorizontal()?(d=Ni(a,r,s),p=n+t,f=s-r):(o.position==="left"?(d=r+t,p=Ni(a,i,n),l=_i*-.5):(d=s-t,p=Ni(a,n,i),l=_i*.5),f=i-n),{titleX:d,titleY:p,maxWidth:f,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=$i(n.font),s=r.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:f}=this._drawArgs(s);J_(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:f,textAlign:WL(n.align),textBaseline:"middle",translation:[o,a]})}}function $Ve(e,t){const n=new BZ({ctx:e.ctx,options:t,chart:e});uo.configure(e,n,t),uo.addBox(e,n),e.titleBlock=n}var FVe={id:"title",_element:BZ,start(e,t,n){$Ve(e,n)},stop(e){const t=e.titleBlock;uo.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;uo.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Rm={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,s=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();r.add(l.x),i+=l.y,++s}}return s===0||r.size===0?!1:{x:[...r].reduce((a,l)=>a+l)/r.size,y:i/s}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,s,o,a;for(s=0,o=e.length;s<o;++s){const l=e[s].element;if(l&&l.hasValue()){const f=l.getCenterPoint(),d=_O(t,f);d<i&&(i=d,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function ra(e,t){return t&&(mi(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function nc(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
611`)>-1?e.split(`
612`):e}function UVe(e,t){const{element:n,datasetIndex:r,index:i}=t,s=e.getDatasetMeta(r).controller,{label:o,value:a}=s.getLabelAndValue(i);return{chart:e,label:o,parsed:s.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:s.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function N4(e,t){const n=e.chart.ctx,{body:r,footer:i,title:s}=e,{boxWidth:o,boxHeight:a}=t,l=$i(t.bodyFont),f=$i(t.titleFont),d=$i(t.footerFont),p=s.length,m=i.length,_=r.length,v=yo(t.padding);let E=v.height,b=0,w=r.reduce((C,k)=>C+k.before.length+k.lines.length+k.after.length,0);if(w+=e.beforeBody.length+e.afterBody.length,p&&(E+=p*f.lineHeight+(p-1)*t.titleSpacing+t.titleMarginBottom),w){const C=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;E+=_*C+(w-_)*l.lineHeight+(w-1)*t.bodySpacing}m&&(E+=t.footerMarginTop+m*d.lineHeight+(m-1)*t.footerSpacing);let T=0;const R=function(C){b=Math.max(b,n.measureText(C).width+T)};return n.save(),n.font=f.string,Nn(e.title,R),n.font=l.string,Nn(e.beforeBody.concat(e.afterBody),R),T=t.displayColors?o+2+t.boxPadding:0,Nn(r,C=>{Nn(C.before,R),Nn(C.lines,R),Nn(C.after,R)}),T=0,n.font=d.string,Nn(e.footer,R),n.restore(),b+=v.width,{width:b,height:E}}function BVe(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function zVe(e,t,n,r){const{x:i,width:s}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+s+o>t.width||e==="right"&&i-s-o<0)return!0}function HVe(e,t,n,r){const{x:i,width:s}=n,{width:o,chartArea:{left:a,right:l}}=e;let f="center";return r==="center"?f=i<=(a+l)/2?"left":"right":i<=s/2?f="left":i>=o-s/2&&(f="right"),zVe(f,e,t,n)&&(f="center"),f}function L4(e,t,n){const r=n.yAlign||t.yAlign||BVe(e,n);return{xAlign:n.xAlign||t.xAlign||HVe(e,t,n,r),yAlign:r}}function jVe(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function VVe(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function D4(e,t,n,r){const{caretSize:i,caretPadding:s,cornerRadius:o}=e,{xAlign:a,yAlign:l}=n,f=i+s,{topLeft:d,topRight:p,bottomLeft:m,bottomRight:_}=e_(o);let v=jVe(t,a);const E=VVe(t,l,f);return l==="center"?a==="left"?v+=f:a==="right"&&(v-=f):a==="left"?v-=Math.max(d,m)+i:a==="right"&&(v+=Math.max(p,_)+i),{x:lo(v,0,r.width-t.width),y:lo(E,0,r.height-t.height)}}function xS(e,t,n){const r=yo(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function P4(e){return ra([],nc(e))}function GVe(e,t,n){return id(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function $4(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const zZ={beforeTitle:Za,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Za,beforeBody:Za,beforeLabel:Za,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return nr(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Za,afterBody:Za,beforeFooter:Za,footer:Za,afterFooter:Za};function hs(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?zZ[t].call(n,r):i}class F4 extends sd{static positioners=Rm;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,s=new xZ(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=GVe(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=hs(r,"beforeTitle",this,t),s=hs(r,"title",this,t),o=hs(r,"afterTitle",this,t);let a=[];return a=ra(a,nc(i)),a=ra(a,nc(s)),a=ra(a,nc(o)),a}getBeforeBody(t,n){return P4(hs(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Nn(t,s=>{const o={before:[],lines:[],after:[]},a=$4(r,s);ra(o.before,nc(hs(a,"beforeLabel",this,s))),ra(o.lines,hs(a,"label",this,s)),ra(o.after,nc(hs(a,"afterLabel",this,s))),i.push(o)}),i}getAfterBody(t,n){return P4(hs(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=hs(r,"beforeFooter",this,t),s=hs(r,"footer",this,t),o=hs(r,"afterFooter",this,t);let a=[];return a=ra(a,nc(i)),a=ra(a,nc(s)),a=ra(a,nc(o)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],s=[],o=[];let a=[],l,f;for(l=0,f=n.length;l<f;++l)a.push(UVe(this.chart,n[l]));return t.filter&&(a=a.filter((d,p,m)=>t.filter(d,p,m,r))),t.itemSort&&(a=a.sort((d,p)=>t.itemSort(d,p,r))),Nn(a,d=>{const p=$4(t.callbacks,d);i.push(hs(p,"labelColor",this,d)),s.push(hs(p,"labelPointStyle",this,d)),o.push(hs(p,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let s,o=[];if(!i.length)this.opacity!==0&&(s={opacity:0});else{const a=Rm[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=N4(this,r),f=Object.assign({},a,l),d=L4(this.chart,r,f),p=D4(r,f,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,s={opacity:1,x:p.x,y:p.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const s=this.getCaretPosition(t,r,i);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:s}=this,{caretSize:o,cornerRadius:a}=r,{topLeft:l,topRight:f,bottomLeft:d,bottomRight:p}=e_(a),{x:m,y:_}=t,{width:v,height:E}=n;let b,w,T,R,C,k;return s==="center"?(C=_+E/2,i==="left"?(b=m,w=b-o,R=C+o,k=C-o):(b=m+v,w=b+o,R=C-o,k=C+o),T=b):(i==="left"?w=m+Math.max(l,d)+o:i==="right"?w=m+v-Math.max(f,p)-o:w=this.caretX,s==="top"?(R=_,C=R-o,b=w-o,T=w+o):(R=_+E,C=R+o,b=w+o,T=w-o),k=R),{x1:b,x2:w,x3:T,y1:R,y2:C,y3:k}}drawTitle(t,n,r){const i=this.title,s=i.length;let o,a,l;if(s){const f=Lh(r.rtl,this.x,this.width);for(t.x=xS(this,r.titleAlign,r),n.textAlign=f.textAlign(r.titleAlign),n.textBaseline="middle",o=$i(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<s;++l)n.fillText(i[l],f.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,l+1===s&&(t.y+=r.titleMarginBottom-a)}}_drawColorBox(t,n,r,i,s){const o=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:f}=s,d=$i(s.bodyFont),p=xS(this,"left",s),m=i.x(p),_=l<d.lineHeight?(d.lineHeight-l)/2:0,v=n.y+_;if(s.usePointStyle){const E={radius:Math.min(f,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},b=i.leftForLtr(m,f)+f/2,w=v+l/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,yO(t,E,b,w),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,yO(t,E,b,w)}else{t.lineWidth=Rn(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const E=i.leftForLtr(m,f),b=i.leftForLtr(i.xPlus(m,1),f-2),w=e_(o.borderRadius);Object.values(w).some(T=>T!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,bO(t,{x:E,y:v,w:f,h:l,radius:w}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),bO(t,{x:b,y:v+1,w:f-2,h:l-2,radius:w}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(E,v,f,l),t.strokeRect(E,v,f,l),t.fillStyle=o.backgroundColor,t.fillRect(b,v+1,f-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:f,boxPadding:d}=r,p=$i(r.bodyFont);let m=p.lineHeight,_=0;const v=Lh(r.rtl,this.x,this.width),E=function($){n.fillText($,v.x(t.x+_),t.y+m/2),t.y+=m+s},b=v.textAlign(o);let w,T,R,C,k,M,I;for(n.textAlign=o,n.textBaseline="middle",n.font=p.string,t.x=xS(this,b,r),n.fillStyle=r.bodyColor,Nn(this.beforeBody,E),_=a&&b!=="right"?o==="center"?f/2+d:f+2+d:0,C=0,M=i.length;C<M;++C){for(w=i[C],T=this.labelTextColors[C],n.fillStyle=T,Nn(w.before,E),R=w.lines,a&&R.length&&(this._drawColorBox(n,t,C,v,r),m=Math.max(p.lineHeight,l)),k=0,I=R.length;k<I;++k)E(R[k]),m=p.lineHeight;Nn(w.after,E)}_=0,m=p.lineHeight,Nn(this.afterBody,E),t.y-=s}drawFooter(t,n,r){const i=this.footer,s=i.length;let o,a;if(s){const l=Lh(r.rtl,this.x,this.width);for(t.x=xS(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=$i(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,a=0;a<s;++a)n.fillText(i[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:s,yAlign:o}=this,{x:a,y:l}=t,{width:f,height:d}=r,{topLeft:p,topRight:m,bottomLeft:_,bottomRight:v}=e_(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+p,l),o==="top"&&this.drawCaret(t,n,r,i),n.lineTo(a+f-m,l),n.quadraticCurveTo(a+f,l,a+f,l+m),o==="center"&&s==="right"&&this.drawCaret(t,n,r,i),n.lineTo(a+f,l+d-v),n.quadraticCurveTo(a+f,l+d,a+f-v,l+d),o==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(a+_,l+d),n.quadraticCurveTo(a,l+d,a,l+d-_),o==="center"&&s==="left"&&this.drawCaret(t,n,r,i),n.lineTo(a,l+p),n.quadraticCurveTo(a,l,a+p,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,s=r&&r.y;if(i||s){const o=Rm[t.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=N4(this,t),l=Object.assign({},o,this._size),f=L4(n,t,l),d=D4(t,l,f,n);(i._to!==d.x||s._to!==d.y)&&(this.xAlign=f.xAlign,this.yAlign=f.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=yo(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(s,t,i,n),EZ(t,n.textDirection),s.y+=o.top,this.drawTitle(s,t,n),this.drawBody(s,t,n),this.drawFooter(s,t,n),wZ(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:l})=>{const f=this.chart.getDatasetMeta(a);if(!f)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:f.data[l],index:l}}),s=!ew(r,i),o=this._positionChanged(i,n);(s||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],o=this._getActiveElements(t,s,n,r),a=this._positionChanged(o,t),l=n||!ew(o,s)||a;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const s=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,s.mode,s,r);return s.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:s}=this,o=Rm[s.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}}var qVe={id:"tooltip",_element:F4,positioners:Rm,afterInit(e,t,n){n&&(e.tooltip=new F4({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:zZ},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const WVe=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function YVe(e,t,n,r){const i=e.indexOf(t);if(i===-1)return WVe(e,t,n,r);const s=e.lastIndexOf(t);return i!==s?n:i}const XVe=(e,t)=>e===null?null:lo(Math.round(e),0,t);function U4(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class KVe extends qp{static id="category";static defaults={ticks:{callback:U4}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:s}of n)r[i]===s&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(nr(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:YVe(r,t,gn(n,t),this._addedLabels),XVe(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let s=this.getLabels();s=t===0&&n===s.length-1?s:s.slice(t,n+1),this._valueRange=Math.max(s.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let o=t;o<=n;o++)i.push({value:o});return i}getLabelForValue(t){return U4.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function ZVe(e,t){const n=[],{bounds:i,step:s,min:o,max:a,precision:l,count:f,maxTicks:d,maxDigits:p,includeBounds:m}=e,_=s||1,v=d-1,{min:E,max:b}=t,w=!nr(o),T=!nr(a),R=!nr(f),C=(b-E)/(p+1);let k=jH((b-E)/v/_)*_,M,I,$,Q;if(k<1e-14&&!w&&!T)return[{value:E},{value:b}];Q=Math.ceil(b/k)-Math.floor(E/k),Q>v&&(k=jH(Q*k/v/_)*_),nr(l)||(M=Math.pow(10,l),k=Math.ceil(k*M)/M),i==="ticks"?(I=Math.floor(E/k)*k,$=Math.ceil(b/k)*k):(I=E,$=b),w&&T&&s&&M6e((a-o)/s,k/1e3)?(Q=Math.round(Math.min((a-o)/k,d)),k=(a-o)/Q,I=o,$=a):R?(I=w?o:I,$=T?a:$,Q=f-1,k=($-I)/Q):(Q=($-I)/k,Zm(Q,Math.round(Q),k/1e3)?Q=Math.round(Q):Q=Math.ceil(Q));const V=Math.max(VH(k),VH(I));M=Math.pow(10,nr(l)?V:l),I=Math.round(I*M)/M,$=Math.round($*M)/M;let N=0;for(w&&(m&&I!==o?(n.push({value:o}),I<o&&N++,Zm(Math.round((I+N*k)*M)/M,o,B4(o,C,e))&&N++):I<o&&N++);N<Q;++N){const U=Math.round((I+N*k)*M)/M;if(T&&U>a)break;n.push({value:U})}return T&&m&&$!==a?n.length&&Zm(n[n.length-1].value,a,B4(a,C,e))?n[n.length-1].value=a:n.push({value:a}):(!T||$===a)&&n.push({value:$}),n}function B4(e,t,{horizontal:n,minRotation:r}){const i=_f(r),s=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/s,o)}class JVe extends qp{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return nr(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this;const o=l=>i=n?i:l,a=l=>s=r?s:l;if(t){const l=bp(i),f=bp(s);l<0&&f<0?a(0):l>0&&f>0&&o(0)}if(i===s){let l=s===0?1:Math.abs(s*.05);a(s+l),t||o(i-l)}this.min=i,this.max=s}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,o=ZVe(i,s);return t.bounds==="ticks"&&N6e(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return hZ(t,this.chart.options.locale,this.options.ticks.format)}}class QVe extends JVe{static id="linear";static defaults={ticks:{callback:pZ.formatters.numeric}};determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=vo(t)?t:0,this.max=vo(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=_f(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const NT={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},bs=Object.keys(NT);function z4(e,t){return e-t}function H4(e,t){if(nr(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:s}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),vo(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(K_(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,i)),+o)}function j4(e,t,n,r){const i=bs.length;for(let s=bs.indexOf(e);s<i-1;++s){const o=NT[bs[s]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(a*o.size))<=r)return bs[s]}return bs[i-1]}function eGe(e,t,n,r,i){for(let s=bs.length-1;s>=bs.indexOf(n);s--){const o=bs[s];if(NT[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return bs[n?bs.indexOf(n):0]}function tGe(e){for(let t=bs.indexOf(e)+1,n=bs.length;t<n;++t)if(NT[bs[t]].common)return bs[t]}function V4(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=qL(n,t),s=n[r]>=t?n[r]:n[i];e[s]=!0}}function nGe(e,t,n,r){const i=e._adapter,s=+i.startOf(t[0].value,r),o=t[t.length-1].value;let a,l;for(a=s;a<=o;a=+i.add(a,1,r))l=n[a],l>=0&&(t[l].major=!0);return t}function G4(e,t,n){const r=[],i={},s=t.length;let o,a;for(o=0;o<s;++o)a=t[o],i[a]=o,r.push({value:a,major:!1});return s===0||!n?r:nGe(e,r,i,n)}class q4 extends qp{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new f8e._date(t.adapters.date);i.init(n),Km(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:H4(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:s,minDefined:o,maxDefined:a}=this.getUserBounds();function l(f){!o&&!isNaN(f.min)&&(i=Math.min(i,f.min)),!a&&!isNaN(f.max)&&(s=Math.max(s,f.max))}(!o||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=vo(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),s=vo(s)&&!isNaN(s)?s:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,s-1),this.max=Math.max(i+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const s=this.min,o=this.max,a=U6e(i,s,o);return this._unit=n.unit||(r.autoSkip?j4(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):eGe(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:tGe(this._unit),this.initOffsets(i),t.reverse&&a.reverse(),G4(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,s;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?r=s:r=(s-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=lo(n,0,o),r=lo(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,s=i.time,o=s.unit||j4(s.minUnit,n,r,this._getLabelCapacity(n)),a=gn(i.ticks.stepSize,1),l=o==="week"?s.isoWeekday:!1,f=K_(l)||l===!0,d={};let p=n,m,_;if(f&&(p=+t.startOf(p,"isoWeek",l)),p=+t.startOf(p,f?"day":o),t.diff(r,n,o)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+o);const v=i.ticks.source==="data"&&this.getDataTimestamps();for(m=p,_=0;m<r;m=+t.add(m,a,o),_++)V4(d,m,v);return(m===r||i.bounds==="ticks"||_===1)&&V4(d,m,v),Object.keys(d).sort(z4).map(E=>+E)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,s=this._unit,o=n||i[s];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const s=this.options,o=s.ticks.callback;if(o)return fr(o,[t,n,r],this);const a=s.time.displayFormats,l=this._unit,f=this._majorUnit,d=l&&a[l],p=f&&a[f],m=r[n],_=f&&p&&m&&m.major;return this._adapter.format(t,i||(_?p:d))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=_f(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(i),o=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:r*s+a*o,h:r*o+a*s}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,s=this._tickFormatFunction(t,0,G4(this,[t],this._majorUnit),i),o=this._getLabelSize(s),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(H4(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return z6e(t.sort(z4))}}function CS(e,t,n){let r=0,i=e.length-1,s,o,a,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=vf(e,"pos",t)),{pos:s,time:a}=e[r],{pos:o,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}
612=vf(e,"time",t)),{time:s,pos:a}=e[r],{time:o,pos:l}=e[i]);const f=o-s;return f?a+(l-a)*(t-s)/f:a}class dqe extends q4{static id="timeseries";static defaults=q4.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=CS(n,this.min),this._tableRange=CS(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],s=[];let o,a,l,f,d;for(o=0,a=t.length;o<a;++o)f=t[o],f>=n&&f<=r&&i.push(f);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,a=i.length;o<a;++o)d=i[o+1],l=i[o-1],f=i[o],Math.round((d+l)/2)!==f&&s.push({time:f,pos:o/(a-1)});return s}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,s)=>i-s)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(CS(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return CS(this._table,r*this._tableRange+this._minPos,!0)}}const HZ="label";function W4(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function rGe(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function jZ(e,t){e.labels=t}function VZ(e,t,n=HZ){const r=[];e.datasets=t.map(i=>{const s=e.datasets.find(o=>o[n]===i[n]);return!s||!i.data||r.includes(s)?{...i}:(r.push(s),Object.assign(s,i),s)})}function iGe(e,t=HZ){const n={labels:[],datasets:[]};return jZ(n,e.labels),VZ(n,e.datasets,t),n}function sGe(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:s,type:o,data:a,options:l,plugins:f=[],fallbackContent:d,updateMode:p,...m}=e,_=D.useRef(null),v=D.useRef(null),E=()=>{_.current&&(v.current=new MT(_.current,{type:o,data:iGe(a,s),options:l&&{...l},plugins:f}),W4(t,v.current))},b=()=>{W4(t,null),v.current&&(v.current.destroy(),v.current=null)};return D.useEffect(()=>{!i&&v.current&&l&&rGe(v.current,l)},[i,l]),D.useEffect(()=>{!i&&v.current&&jZ(v.current.config.data,a.labels)},[i,a.labels]),D.useEffect(()=>{!i&&v.current&&a.datasets&&VZ(v.current.config.data,a.datasets,s)},[i,a.datasets]),D.useEffect(()=>{v.current&&(i?(b(),setTimeout(E)):v.current.update(p))},[i,l,a.labels,a.datasets,p]),D.useEffect(()=>{v.current&&(b(),setTimeout(E))},[o]),D.useEffect(()=>(E(),()=>b()),[]),q.jsx("canvas",{ref:_,role:"img",height:n,width:r,...m,children:d})}const oGe=D.forwardRef(sGe);function aGe(e,t){return MT.register(t),D.forwardRef((n,r)=>q.jsx(oGe,{...n,ref:r,type:e}))}const cGe=aGe("line",u8e),lGe=16;function uGe(e){const n=getComputedStyle(e).getPropertyValue("font-size"),r=parseFloat(n);return isNaN(r)?lGe:r}function fGe({documentElement:e}){return uGe(e)}function dGe({document:e}){return fGe(e)}const hGe="_chart_13rlc_1",pGe={chart:hGe},gGe=ct(pGe.chart),mGe=360,_Ge=0,vGe=e=>{const t=[];for(let n=0;n<e;n++)t.push(`hsl(${n/e*mGe}, 100%, 50%)`);return t},yGe=e=>{const t=Object.entries(e),n=vGe(t.length),r=([i,s],o)=>({backgroundColor:n[o],data:[...s],fill:!1,label:i,tension:.5});return t.map(r)},bGe=(e,t)=>{e.resize(e.width,t)};function SGe({data:e,title:t,xLabels:n}){const r=sv(),i=D.useMemo(()=>yGe(e),[e]),s=D.useRef(null);return D.useLayoutEffect(()=>{MT.register(KVe,kVe,PVe,QVe,IVe,FVe,qVe)},[]),D.useLayoutEffect(()=>{const{current:o}=s;if(o===null||r===null)return;const a=()=>{const f=dGe(r),{height:d}=o,p=d%f;if(p===_Ge)return;const m=f-p;bGe(o,d+m)};a();const l=new MutationObserver(a);return l.observe(o.canvas,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>{l.disconnect()}},[r]),q.jsx(cGe,{"aria-label":t,className:gGe,data:{datasets:[...i],labels:[...n]},options:{maintainAspectRatio:!1,normalized:!0,plugins:{legend:{labels:{borderRadius:1,boxHeight:3,boxWidth:3,padding:20,useBorderRadius:!0},position:"top"},title:{display:!0,padding:{bottom:-10,top:5},text:t},tooltip:{displayColors:!0,intersect:!1,position:"nearest",xAlign:"center",yAlign:"center"}},responsive:!0},ref:s})}const EGe=2,wGe=4,GZ=e=>Array.isArray(e)&&e.every(kR),Qo=e=>GZ(e)&&e.length===EGe,wR=e=>GZ(e)&&e.length===wGe;function TGe(e){return p0(e)?"cls"in e&&Qo(e.cls)&&"dcl"in e&&Qo(e.dcl)&&"domComplete"in e&&Qo(e.domComplete)&&"errorCounts"in e&&p0(e.errorCounts)&&"P50"in e.errorCounts&&wR(e.errorCounts.P50)&&"P75"in e.errorCounts&&wR(e.errorCounts.P75)&&"P90"in e.errorCounts&&wR(e.errorCounts.P90)&&"fcp"in e&&Qo(e.fcp)&&"fip"in e&&Qo(e.fip)&&"inp"in e&&Qo(e.inp)&&"lcp"in e&&Qo(e.lcp)&&"loadEvent"in e&&Qo(e.loadEvent)&&"loadingTime"in e&&Qo(e.loadingTime)&&"sessionTimeSpent"in e&&kR(e.sessionTimeSpent)&&"ttfb"in e&&Qo(e.ttfb)&&"viewTimeSpent"in e&&kR(e.viewTimeSpent):!1}const xGe="_list_cdkkh_1",CGe={list:xGe},Eh=0,ea=[Eh,Eh],AGe=ct(CGe.list),RGe=100,Y4=ct("https://dashboard.quisi.do/"),TR=[Eh,Eh,Eh,Eh],kGe={cls:ea,dcl:ea,domComplete:ea,errorCounts:{P50:TR,P75:TR,P90:TR},fcp:ea,fip:ea,inp:ea,lcp:ea,loadEvent:ea,loadingTime:ea,sessionTimeSpent:0,ttfb:ea,viewTimeSpent:0},X4=1,K4=-1,IGe=({name:e,severe:t,value:n,warning:r},{name:i,severe:s,value:o,warning:a})=>n>t?o>s?jx(e,i):K4:o>s?X4:n>r?o>a?jx(e,i):K4:o>a?X4:jx(e,i);function xR({children:e}){return q.jsx(vu,{header:q.jsx(Ra,{children:"Dashboard"}),children:e})}function OGe(){const e=sv(),{data:t=kGe,error:n,request:r}=I6();if(D.useEffect(()=>{r(async()=>{const R=await(await window.fetch(Y4)).json();if(!TGe(R))throw new Error("Unknown response");return R})},[r]),typeof n<"u")return e!==null&&e.location.host==="localhost:3000"&&n.startsWith("Failed to fetch")?q.jsxs(xR,{children:["To view the dashboard in development,"," ",q.jsx(Hv,{feature:"content-security-policy",href:Y4,title:"",children:"trust the security certificate."})]}):q.jsx(xR,{children:q.jsxs(Tm,{children:[q.jsx("strong",{children:"An error occurred:"})," ",n]})});const{cls:[,i],dcl:[s],domComplete:[o],errorCounts:a,fcp:[,l],fip:[,f],inp:[,d],lcp:[,p],loadEvent:[m],loadingTime:[_],sessionTimeSpent:v,ttfb:[,E],viewTimeSpent:b}=t,w=[{max:1,name:"Cumulative layout shift p75",severe:25,units:"%",value:i*RGe,warning:10},{name:"DOM complete median",severe:5e3,units:"ms",value:o,warning:2600},{name:"DOM content loaded median",severe:5e3,units:"ms",value:s,warning:2600}
612,{name:"First contentful paint p75",severe:3e3,units:"ms",value:l,warning:1800},{name:"First input delay p75",severe:300,units:"ms",value:f,warning:100},{name:"Interaction to next paint p75",severe:500,units:"ms",value:d,warning:200},{name:"Largest contentful paint p75",severe:4e3,units:"ms",value:p,warning:2500},{name:"Load event median",severe:8200,units:"ms",value:m,warning:5e3},{name:"Loading time p75",severe:8200,units:"ms",value:_,warning:5e3},{name:"Time to first byte p75",severe:1800,units:"ms",value:E,warning:800}];return q.jsx(xR,{children:q.jsxs("ul",{className:AGe,children:[q.jsx("li",{style:{gridColumnEnd:"span 2"},children:q.jsx(SGe,{title:"Error counts",xLabels:["3 weeks ago","2 weeks ago","Last week","This week"],data:{Median:a.P50,P75:a.P75,P90:a.P90}})}),w.toSorted(IGe).map(({max:T,name:R,severe:C,units:k,value:M,warning:I})=>q.jsxs("li",{children:[q.jsxs(Tm,{children:[R,":"]}),q.jsx(X4e,{max:T,severe:C,value:M,warning:I}),q.jsxs(Tm,{children:[q.jsx(hR,{children:M}),k]})]},R)),q.jsx("li",{style:{gridColumnEnd:"span 2"},children:q.jsxs(Tm,{children:[q.jsx("abbr",{title:"Median",children:"x̃"})," time spent:"," ",q.jsx(hR,{children:Math.round(v/W0)}),q.jsx("abbr",{title:"seconds",children:"s"})," per session,"," ",q.jsx(hR,{children:Math.round(b/W0)}),"s per view"]})})]})})}function MGe(){return q.jsxs(q.Fragment,{children:[q.jsx(vu,{children:q.jsx(Tm,{children:"quisi.do is an invite-only, software-as-a-service provider for front end platforms."})}),q.jsx(OGe,{})]})}function NGe(){return q.jsx(vu,{header:q.jsx(Ra,{children:"Not Found"}),children:q.jsx(Di,{element:"p",marginBottom:"medium",children:"HTTP status code 404"})})}function LGe(){return q.jsxs(vu,{header:q.jsx(Ra,{children:"Privacy policy"}),children:[q.jsx(Di,{element:"p",marginBottom:"medium",children:"quisi.do is a completely open source software-as-a-service provider. As such, it offers full transparency into its collection and use of your personal data."}),q.jsx(Di,{element:"p",marginBottom:"medium",children:"quisi.do does not sell your personal data and does not use your personal data for advertising or marketing purposes."}),q.jsxs(Di,{element:"p",marginBottom:"medium",children:["For website traffic, quisi.do uses third-party monitoring services, such as Cloudflare Insights, Datadog RUM, Fullstory, and Google Analytics. This data is aggregated and dashboarded to transparently monitor the website's performance. These services use cookies, and cookie functionality will be documented in quisi.do's"," ",q.jsx(Hv,{feature:"privacy",href:"/cookies/",title:"quisi.do cookie policy.",children:"cookie policy"}),"."]}),q.jsxs(Di,{element:"p",marginBottom:"medium",children:["In order to support you, your services, and quisi.do's services,"," ","quisi.do may send your personal data to third parties, such as Cloudflare, Datadog, or Sentry."]})]})}function DGe(){return q.jsx(vu,{header:q.jsx(Ra,{children:"Support"}),children:q.jsxs(Di,{children:["If you have any questions or concerns, please feel free to text us at 1-920-786-8379 or email us at",q.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),". We are here to help you with any issues you may have."]})})}const PGe=new Date("2024-03-21");function $Ge(){return q.jsxs(vu,{header:q.jsx(Ra,{children:"Terms of service"}),children:[q.jsxs(Di,{marginBottom:"medium",children:["Last updated ",PGe.toLocaleDateString()]}),q.jsx(Di,{element:"p",marginBottom:"medium",children:"These terms of service may change at any time."}),q.jsx(Di,{element:"p",marginBottom:"medium",children:"By using this website, you agree to be bound by these terms of service. If you do not agree to be bound by these terms of service, you should not use this website."}),q.jsx(Di,{element:"p",marginBottom:"medium",children:"You agree to use this website in accordance with all applicable laws and regulations. You agree not to use this website for any illegal or unauthorized purpose. You agree not to use this website to engage in any activity that is harmful to others. You agree not to use this website to violate any intellectual property rights of others. You agree not to use this website to violate any privacy rights of others. You agree not to use this website to violate any other law or regulation."}),q.jsx(Di,{element:"p",marginBottom:"medium",children:"You agree not to use this website to collect or store personal information about others without their consent. You agree not to use this website to send or receive any spam or other unsolicited commercial email."}),q.jsx(Di,{element:"p",marginBottom:"medium",children:"If any provision of these terms of service is held to be invalid or unenforceable, such provision 
612will be struck from these terms of service and the remaining provisions will remain in full force and effect."})]})}function FGe(){return q.jsxs(Bte,{children:[q.jsx(pl,{path:"/data/",element:q.jsx(XHe,{})}),q.jsx(pl,{path:"/cookies/",element:q.jsx(YHe,{})}),q.jsx(pl,{path:"/privacy/",element:q.jsx(LGe,{})}),q.jsx(pl,{path:"/support/",element:q.jsx(DGe,{})}),q.jsx(pl,{path:"/tos/",element:q.jsx($Ge,{})}),q.jsx(pl,{path:"/*",element:q.jsx(NGe,{})}),q.jsx(pl,{index:!0,element:q.jsx(MGe,{})})]})}Hee.render(q.jsx(D.StrictMode,{children:q.jsx(mze,{locale:Lo.English,children:q.jsxs(dxe,{children:[q.jsx(ABe,{}),q.jsx(RHe,{}),q.jsx(tze,{}),q.jsx("main",{children:q.jsx(FGe,{})}),q.jsx(S2e,{})]})})}));export{zi as $,PN as A,QGe as B,SA as C,iIe as D,NR as E,eqe as F,jr as G,JGe as H,Ra as I,mRe as J,Ake as K,Hv as L,Ht as M,qt as N,sIe as O,tqe as P,UN as Q,zt as R,T9 as S,aqe as T,sqe as U,oqe as V,cqe as W,RAe as X,oo as Y,Fi as Z,wl as _,Lo as a,iT as a0,Lv as a1,N9 as a2,ap as a3,Dv as a4,a6 as a5,Nv as a6,AN as a7,w9 as a8,bxe as a9,Qf as aa,Tn as ab,vi as ac,So as ad,Wl as ae,Ft as af,Y7 as ag,Zw as ah,QBe as b,fW as c,Jw as d,Xl as e,GOe as f,lT as g,iqe as h,UGe as i,q as j,Tr as k,qOe as l,_a as m,Ln as n,Qw as o,wIe as p,nqe as q,jke as r,vW as s,Ai as t,pze as u,ZGe as v,rqe as w,SIe as x,EIe as y,_W as z};
613//# sourceMappingURL=index-CuqHnTnh.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.