1(()=>{var M=Object.defineProperty;var D=(i,t,n)=>t in i?M(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n;var s=(i,t,n)=>(D(i,typeof t!="symbol"?t+"":t,n),n);function y(i,t){var n,e,r,o;if(!i)return"unknown";try{if(i.id)return`#${i.id}`;let c=(n=i.tagName)==null?void 0:n.toLowerCase();if(i.classList&&i.classList.length){let u=Array.from(i.classList).sort();u.length&&(c+=`.${u.join(".")}`)}try{if(document.querySelectorAll(c.replace(/([[\]:])/gi,"\\$1")).length===1)return c}catch{}let a=c;if(i.parentElement){let u=Array.from(i.parentElement.children).filter(g=>g.tagName===i.tagName);if(u.length>1){let g=u.indexOf(i)+1;a+=`:nth-of-type(${g})`;try{if(document.querySelectorAll(a.replace(/([[\]:])/gi,"\\$1")).length===1)return a}catch{}}}let l=[],d=i,f=0,b=3;for(;d&&f<b&&((e=d.tagName)==null?void 0:e.toLowerCase())!=="body";){let u=(r=d.tagName)==null?void 0:r.toLowerCase();if(d.classList&&d.classList.length){let m=Array.from(d.classList).sort();m.length&&(u+=`.${m.join(".")}`)}if(d.parentElement){let m=Array.from(d.parentElement.children).filter(C=>C.tagName===d.tagName);if(m.length>1){let C=m.indexOf(d)+1;u+=`:nth-of-type(${C})`}}l.unshift(u);let g=l.join(" > ");try{if(document.querySelectorAll(g.replace(/([[\]:])/gi,"\\$1")).length===1)return g}catch{}d=d.parentElement,f+=1}return l.join(" > ")}catch(c){return t("Error generating selector for element",c),`${((o=i.tagName)==null?void 0:o.toLowerCase())||"unknown"}.selector-error`}}function w(i){let t=atob(i);if(typeof TextDecoder!="undefined"){let n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);let e=new TextDecoder("utf-8").decode(n);return JSON.parse(e)}return JSON.parse(decodeURIComponent(escape(t)))}var I="np-";function S(){let i=typeof crypto!="undefined"?crypto:void 0;if(i!=null&&i.randomUUID)try{return I+i.randomUUID()}catch{}if(i!=null&&i.getRandomValues)try{let n=i.getRandomValues(new Uint8Array(16)),e="";for(let r=0;r<n.length;r++)e+=n[r].toString(16).padStart(2,"0");return I+e}catch{}let t="";for(;t.length<32;)t+=Math.random().toString(16).slice(2);return I+t.slice(0,32)}var A="conversion";function v(i){if(typeof i!="string")return null;let t=i.trim();return t.length===0?null:t.slice(0,100)}function P(i){return!Array.isArray(i)||i[0]!==A?null:v(i[1])}function R(i){var n;let t;try{t=typeof i=="string"?i:(n=JSON.stringify(i))!=null?n:String(i)}catch{t=typeof i}return t.slice(0,100)}function L(i){return`Unrecognized event '${R(i)}'. Render Better has not tracked this event.`}function x(i,t,n=()=>{}){try{let e=i.renderBetterQueue,r=Array.isArray(e)?e:[],o=a=>{try{if(Array.isArray(a)&&a[0]!==A){console.error(L(a[0]));return}let l=P(a);if(l===null){n('Ignoring renderBetterQueue entry, expected ["conversion", "<name>"]',a);return}t(l)}catch(l){n("Failed to handle renderBetterQueue entry",a,l)}},c=r.splice(0,r.length);return r.push=(...a)=>(a.forEach(o),r.length),i.renderBetterQueue=r,c.length&&n(`Draining ${c.length} buffered renderBetterQueue entries`),c.forEach(o),r}catch(e){n("Failed to install renderBetterQueue",e);return}}var $="rb-timing",V=["originHeadersMs","originFirstChunkMs","originEndMs","workerHeadersMs","workerDocumentEndMs","workerRuleMatches"];var E;function O(){if(E)return E;let i={};try{let t=document.getElementById($),n=t==null?void 0:t.textContent;if(!n)return i;let e=JSON.parse(n);if(!e||typeof e!="object")return E=i,i;for(let r of V){let o=e[r];typeof o!="number"||!Number.isFinite(o)||o<0||o>3e5||(i[r]=Math.round(o))}typeof e.v=="number"&&(i.originTimingVersion=e.v)}catch{}return E=i,i}function T({mode:i,consentCookie:t,isGpcEnabled:n,isVetoed:e}){return n||e?"essential":t==="true"?"full":t==="false"?"essential":i==="opt-in"?"undecided":"full"}var z=["_y","_s"],F=/^(\d{1,2}[.AaMmPpSs]{5})_([A-Z]{2}[A-Z0-9]{0,3})_([tf])_([tf])(?:_|$)/;function B(i){if(typeof i!="string")return;let t=F.exec(i);if(!t)return;let[,n,e,r,o]=t;if(n.slice(-5).toUpperCase().split("").sort().join("")===".AMPS")return`${n}_${e}_${r}_${o}`}function k(i){var n;if(!Array.isArray(i))return i;let t=[];for(let e of i){if(!e||typeof e!="object")continue;let r=e.name;if(typeof r=="string"&&z.includes(r))continue;let o={name:r,duration:e.duration,description:e.description};r==="_cmp"&&(o.description=(n=B(e.description))!=null?n:""),t.pu
1sh(o)}return t}var h=class{constructor(){s(this,"queue",[]);s(this,"chatWidgetEngagements",[]);s(this,"analyticsProperties",{});s(this,"rbSessionId");s(this,"rbAnonymousId");s(this,"isInitialized",!1);s(this,"isConsoleErrorCaptureEnabled",!1);s(this,"analyticsControls",{});s(this,"consentTier","undecided");s(this,"optedOutAtMs");s(this,"optOutEndedAtMs");s(this,"consentGrantedAtMs");s(this,"consentTierChangedAtMs",0);s(this,"hasResolvedConsentTier",!1);s(this,"consentSignals",{gpcNavigator:!1,gpcHeader:!1,choice:null,vetoes:[]});s(this,"consentChoiceThisPage");s(this,"consentVetoes",{});s(this,"isGpcHeader",!1);s(this,"log");s(this,"dbg");s(this,"isConsentRequired");s(this,"rbApiDomain","api.renderbetter.app");s(this,"sharedDomain");s(this,"setCookieOverride");s(this,"getCookieOverride");s(this,"onInitializedEvents",[]);s(this,"delayedCall",t=>{window.self===window.top?requestAnimationFrame(()=>{setTimeout(()=>{t()},0)}):setTimeout(()=>{t()},0)});s(this,"getLogger",t=>(...n)=>{this.dbg&&console.log(`%c[${t}]`,"color: white; font-weight: bold;",...n)});s(this,"readOriginTiming",()=>O());s(this,"redactServerTiming",t=>k(t));s(this,"collect",t=>{this.log("Queueing analytics metric",t),this.queue.push(t),this.triggerAnalyticsCollectedEvent()});s(this,"collectConversion",t=>{let n=v(t);return n===null?(this.log("Dropping conversion, expected a non-empty string name",t),!1):(this.collect({type:"custom_conversion",attribution:{name:n}}),!0)});s(this,"triggerAnalyticsCollectedEvent",()=>{setTimeout(()=>{document.dispatchEvent(new CustomEvent("rb-analytics-collected"))},0)});s(this,"getCookie",async t=>{var n;return this.getCookieOverride?await this.getCookieOverride(t):(n=document.cookie.split(";").find(e=>e.trim().startsWith(t)))==null?void 0:n.split("=")[1]});s(this,"setCookie",async t=>{let n=this.setCookieOverride?async e=>await this.setCookieOverride(e):async e=>Promise.resolve(document.cookie=e);this.sharedDomain?(await n(`${t}; Max-Age=0;`),await n(`${t}; Domain=${this.sharedDomain};`)):await n(t)});s(this,"getOrSetAnonymousIdAndSessionId",async()=>{let t=await this.getCookie(h.SESSION_ID_COOKIE_NAME);if(!t){if(!await this.canCollectAnalytics())return;let{anonymousId:l,sessionId:d}=await this.getNewSessionId();return this.setSessionId(l,1),{anonymousId:l,sessionId:d}}let[n,e,r]=t.split(".");if(n&&!e)return this.setSessionId(n,1),{anonymousId:n,sessionId:`${n}.${e||1}`};if((n==null?void 0:n.length)!==36||!n&&!e&&!r){let{anonymousId:a,sessionId:l}=await this.getNewSessionId();return this.setSessionId(a,1),{anonymousId:a,sessionId:l}}let o=parseInt(e),c=parseInt(r);return(Date.now()-c>60*30*1e3||new Date(c).toDateString()!==new Date().toDateString())&&
1(o=o+1),this.setSessionId(n,o),{anonymousId:n,sessionId:`${n}.${o}`}});s(this,"getNewSessionId",async()=>{let t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{let e=Math.random()*16|0;return(n=="x"?e:e&3|8).toString(16)});return{anonymousId:t,sessionId:t+".1"}});s(this,"setSessionId",async(t,n)=>{this.rbAnonymousId=t,this.rbSessionId=`${t}.${n}`;let e=`${t}.${n}.${Date.now()}`;await this.setCookie(`${h.SESSION_ID_COOKIE_NAME}=${e}; ${this.defaultCookieArgs}`)});s(this,"codeLeaks",{scan:()=>({undefinedContexts:[],liquidErrors:[],stopWordMatches:[],codeLeakMatches:[]})});s(this,"resizeListenerInstalled",!1);s(this,"resizeDebounceTimer");s(this,"setIdentifierProperties",async()=>{if(!this.rbAnonymousId||!this.rbSessionId||!this.analyticsProperties.experimentId||!this.analyticsProperties.variantId){let{experimentId:t,variantId:n,anonymousId:e,sessionId:r}=await this.getIdentifiersFromCookie()||{};this.rbAnonymousId=this.rbAnonymousId||e,this.rbSessionId=this.rbSessionId||r,this.analyticsProperties.experimentId=this.analyticsProperties.experimentId||t,this.analyticsProperties.variantId=this.analyticsProperties.variantId||n}});s(this,"getIdentifiersFromCookie",async()=>{let t=await this.getOrSetAnonymousIdAndSessionId(),n=await this.getExperimentViewedCookie(),e=await this.getCookie(h.VARIANT_ID_COOKIE_NAME);return{experimentId:n==null?void 0:n.experimentId,variantId:e||(n==null?void 0:n.variantId),anonymousId:(t==null?void 0:t.anonymousId)||(n==null?void 0:n.sessionId.split(".")[0]),sessionId:(t==null?void 0:t.sessionId)||(n==null?void 0:n.sessionId)}});s(this,"getExperimentViewedCookie",async()=>{let t=await this.getCookie(h.EXPERIMENT_VIEWED_COOKIE_NAME);if(!t){await this.canCollectAnalytics()&&this.analyticsProperties.pageOptimized&&this.reportError("Missing experiment viewed cookie");return}let[n,e,r]=t.split(":");if(!n||!e||!r){this.reportError("Invalid experiment viewed cookie",{cookie:t});return}return{experimentId:n,variantId:e,sessionId:r}});var o,c,a,l,d,f,b,u;this.log=this.getLogger("RB Analytics"),this.dbg=this.shouldLogDebug();let t=(o=document.currentScript)==null?void 0:o.getAttribute("data-analytics"),n=null;try{n=JSON.parse("{\"analyticsControls\":\"{\\\"wrapConsoleError\\\":true}\",\"captureConsoleErrors\":\"true\"}")}catch{n=null}let e=n?{...n}:{};if(t)try{Object.assign(e,w(t))}catch{}if(this.isConsentRequired=this.getConfigSetting(e,"gdpr","data-gdpr",!1)==="true",this.sharedDomain=this.getConfigSetting(e,"sharedDomain","data-shared-domain",!1),this.isGpcHeader=(e==null?void 0:e.gpc)==="true",this.rbSessionId=this.getConfigSetting(e,"sessionId","data-session-id",!1),this.rbAnonymousId=this.getConfigSetting(e,"anonymousId","data-anonymous-id",!1),this.rbApiDomain=(e==null?void 0:e.apiDomainOverride)||this.rbApiDomain,this.isConsoleErrorCaptureEnabled=(e==null?void 0:e.captureConsoleErrors)==="true",e!=null&&e.analyticsControls)try{this.analyticsControls=JSON.parse(e.analyticsControls)||{}}catch{this.analyticsControls={}}this.analyticsProperties={pageOptimized:e==null?void 0:e.pageOptimized,optimizationCount:e==null?void 0:e.optimizationCount,botScore:e==null?void 0:e.botScore,experimentId:e==null?void 0:e.experimentId,variantId:e==null?void 0:e.variantId,traceId:(e==null?void 0:e.traceId)||S(),isFirstVisit:e==null?void 0:e.isFirstVisit,isOriginCached:e==null?void 0:e.isOriginCached,rbCache:e==null?void 0:e.rbCache,rbFullPageCache:e==null?void 0:e.rbFullPageCache,isLoggedIn:e==null?void 0:e.isLoggedIn,cartState:e==null?void 0:e.cartState,rbExperiments:e==null?void 0:e.rbExperiments,colo:e==null?void 0:e.colo,city:e==null?void 0:e.city,country:e==null?void 0:e.country,customerAbVariant:e==null?void 0:e.customerAbVariant,theme:(c=window.Shopify)!=null&&c.theme?`${(a=window.Shopify)==null?void 0:a.theme.id} (${(l=window.Shopify)==null?void 0:l.theme.name})`:void 0,template:(e==null?void 0:e.template)||document.head.getAttribute("data-rb-template")||void 0},(d=document.currentScript)!=null&&d.getCookie&&(this.getCookieOverride=document.currentScript.getCookie),(f=document.currentScript)!=null&&f.setCookie&&(this.setCookieOverride=document.currentScript.setCookie),(u=(b=document.currentScript)==null?void 0:b.textContent)!=null&&u.trim()&&(console.error("Detected a problem with how the Render Better analytics script was added to the page. Be sure to add the script tag as `<script><\/script>` and not `<script ... />`. It is critical to have the closing `<\/script>` tag."),this.reportError("rb-analytics script tag has inner content \u2014 likely added as self-closing tag",{innerContentLength:document.currentScript.textContent.length,innerContentPreview:document.currentScript.textContent.substring(0,500)})),this.addInitializedListener(()=>x(window,this.collectConversion,this.getLogger("RB Conversions")));let r=()=>this.delayedCall(()=>this.initialize());document.prerendering?document.addEventListener("prerenderingchange",r,{once:!0}):r()}async grantCookieConsent(t){if(this.consentChoiceThisPage=t,await this.setCookie(`${h.CONSENT_COOKIE_NAME}=${t}; ${this.defaultCookieArgs}`),await this.refreshConsentTier(),t===!0){this.log("Enabling analytics collection");let n=await this.getOrSetAnonymousIdAndSessionId();n&&(this.log("Dispatching rb-session-id event",n),document.dispatchEvent(new CustomEvent("rb-session-id",{detail:n}))),this.triggerAnalyticsCollectedEvent()}else this.log("Disabling analytics collection")}async setConsentVeto(t,n){var c;if(this.consentVetoes[t]===n)return;this.consentVetoes[t]=n;let e=Object.keys(this.consentVetoes).some(a=>this.consentVetoes[a]),r=(c=this.readContextCookieData())!=null?c:{};e?r.consentVeto=Math.floor(Date.now()/1e3)+h.CONSENT_VETO_TTL_S:delete r.consentVeto,await this.writeContextCookieData(r);let o=await this.refreshConsentTier();this.log(`Consent veto from ${t}: ${n}, consent state is now '${o}'`)}async refreshConsentTier(){let t=window.navigator,n=this.consentTier,e=await this.getCookie(h.CONSENT_COOKIE_NAME),r=this.consentChoiceThisPage===!1||e==="false"?"false":this.consentChoiceThisPage===!0?"true":e,o=Object.keys(this.consentVetoes),c=o.length?o.some(d=>this.consentVetoes[d]):this.hasUnexpiredContextVeto();this.consentTier=T({mode:this.isConsentRequired?"opt-in":"opt-out",consentCookie:r,isGpcEnabled:t.globalPrivacyControl
1===!0||this.isGpcHeader,isVetoed:c}),this.consentSignals={gpcNavigator:t.globalPrivacyControl===!0,gpcHeader:this.isGpcHeader,choice:r!=null?r:null,vetoes:o.length?o.filter(d=>this.consentVetoes[d]):c?["cookie"]:[]};let a=this.hasResolvedConsentTier?performance.now():0;this.consentTier==="essential"?(this.optedOutAtMs===void 0&&(this.optedOutAtMs=a),this.optOutEndedAtMs=void 0):n==="essential"&&this.optedOutAtMs!==void 0&&(this.optOutEndedAtMs=a),this.consentTier==="full"&&n==="undecided"&&this.hasResolvedConsentTier&&this.consentGrantedAtMs===void 0&&(this.consentGrantedAtMs=a);let l=!this.hasResolvedConsentTier;return this.hasResolvedConsentTier=!0,(this.consentTier!==n||l)&&(this.consentTierChangedAtMs=a,document.dispatchEvent(new CustomEvent("rb-consent-tier-changed"))),this.consentTier}get isConsentTierResolved(){return this.hasResolvedConsentTier}async canCollectAnalytics(){return this.isConsentRequired?await this.getCookie(h.CONSENT_COOKIE_NAME)==="true":!0}async reportError(t,n){var e;try{await fetch(`https://${this.rbApiDomain}/rb-analytics/client-side-error`,{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json","x-rb-trace-id":((e=this.analyticsProperties)==null?void 0:e.traceId)||"","x-rb-referer":window.location.href},body:JSON.stringify({message:t,currentUrl:window.location.href,...n,type:"client-side-error"})})}catch(r){console.warn("Failed to send error to Render Better",r)}}addInitializedListener(t){this.isInitialized?t():this.onInitializedEvents.push(t)}getElementSelector(t){return y(t,this.getLogger("RB Analytics Element Selector"))}getThirdPartyExperiments(){return[]}readContextCookieData(){try{let t=document.cookie.split(";").map(e=>e.trim()).find(e=>e.startsWith(`${h.CONTEXT_COOKIE_NAME}=`));if(!t)return null;let n=JSON.parse(atob(t.split("=")[1]));return n&&typeof n=="object"?n:null}catch{return null}}async writeContextCookieData(t){let n=btoa(JSON.stringify(t));await this.setCookie(`${h.CONTEXT_COOKIE_NAME}=${n}; path=/; max-age=${h.CONTEXT_COOKIE_MAX_AGE_S};`)}hasUnexpiredContextVeto(){var n;let t=(n=this.readContextCookieData())==null?void 0:n.consentVeto;return typeof t=="number"&&t>Date.now()/1e3}async setContextCookie(){var l;let t=window.innerWidth,n=window.innerHeight,e=Math.floor(window.devicePixelRatio),r=(l=window.Shopify)==null?void 0:l.theme.id,o=this.readContextCookieData(),c=o==null?void 0:o.themeId,a={width:t,height:n,density:e,themeId:r!=null?r:c};typeof(o==null?void 0:o.consentVeto)=="number"&&(a.consentVeto=o.consentVeto),await this.writeContextCookieData(a),this.log("Setting context cookie")}installContextCookieResizeListener(){this.resizeListenerInstalled||typeof window=="undefined"||typeof window.addEventListener!="function"||(this.resizeListenerInstalled=!0,window.addEventListener("resize",()=>{clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=setTimeout(()=>{this.setContextCookie().catch(()=>{})},200)},{passive:!0}))}async initialize(){if(window.self===window.top&&this.collect({name:"page_viewed",type:"metric"}),await this.setContextCookie(),this.installContextCookieResizeListener(),await this.refreshConsentTier(),this.isConsentRequired===!1||await this.canCollectAnalytics())this.log("Tracking consent is satisfied, initializing analytics.");else{this.log("Analytics collection disabled for compliance, preventing analytics collection."),this.fireInitializedEvent();return}await this.setIdentifierProperties(),this.log("Initialized analytics",{sharedDomain:this.sharedDomain,analyticsProperties:this.analyticsProperties,rbAnonymousId:this.rbAnonymousId,rbSessionId:this.rbSessionId}),this.fireInitializedEvent()}fireInitializedEvent(){this.isInitialized=!0,document.dispatchEvent(new CustomEvent("rb-analytics-initialized")),this.onInitializedEvents.forEach(t=>t())}getConfigSetting(t,n,e,r=!0){var c;let o=t[n]||((c=document.currentScript)==null?void 0:c.getAttribute(e));if(!o&&r)throw new Error(`[RB Analytics] Missing '${n}' or '${e}' config setting. Render Better Analytics may not work as expected.`);return o}get defaultCookieArgs(){return this.sharedDomain?`path=/; max-age=${63072e6}; domain=${this.sharedDomain};`:`path=/; max-age=${63072e6};`}shouldLogDebug(){let d=[14,-2],f=[0,1],b=[-2,17,3],g=[...d,...f,...b].reduce((N,_)=>N+String.fromCharCode(100+_),""),m=window.location.href,C=document.cookie;return m.indexOf(g)>-1||C.indexOf(g)>-1}},p=h;s(p,"CONSENT_COOKIE_NAME","rb-analytics-consent"),s(p,"EXPERIMENT_VIEWED_COOKIE_NAME","rb-exp"),s(p,"SESSION_ID_COOKIE_NAME","rb-session-id"),s(p,"VARIANT_ID_COOKIE_NAME","rb-ab"),s(p,"CONTEXT_COOKIE_NAME","rb-ctx"),s(p,"CONTEXT_COOKIE_MAX_AGE_S",365*24*60*60),s(p,"CONSENT_VETO_TTL_S",24*60*60);window.renderbetter=new p;})();(()=>{var Ve=Object.defineProperty;var qe=(t,e,s)=>e in t?Ve(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var M=(t,e,s)=>(qe(t,typeof e!="symbol"?e+"":e,s),s);var Q=class{constructor(){M(this,"t");M(this,"o",0);M(this,"i",[])}l(e){var n;if(e.hadRecentInput)return;let s=this.i[0],i=this.i.at(-1);this.o&&s&&i&&e.startTime-i.startTime<1e3&&e.startTime-s.startTime<5e3?(this.o+=e.value,this.i.push(e)):(this.o=e.value,this.i=[e]),(n=this.t)==null||n.call(this,e)}},B=()=>{let t=performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},V=t=>{if(document.readyState==="loading")return"loading";let e=B();if(e){if(t<e.domInteractive)return"loading";if(e.domContentLoadedEventStart===0||t<e.domContentLoadedEventStart)return"dom-interactive";if(e.domComplete===0||t<e.domComplete)return"dom-content-loaded"}return"complete"},ze=t=>{let e=t.nodeName;return t.nodeType===1?e.toLowerCase():e.toUpperCase().replace(/^#/,"")},he=t=>{var s;let e="";try{for(;(t==null?void 0:t.nodeType)!==9;){let i=t,n=i.id?"#"+i.id:[ze(i),...Array.from((s=i.classList)!=null?s:[]).sort()].join(".");if(e.length+n.length>99)return e||n;if(e=e?n+">"+e:n,i.id)break;t=i.parentNode}}catch{}return e},Ie=new WeakMap;function O(t,e){let s=Ie.get(e);return s||(s=new WeakMap,Ie.set(e,s)),s.get(t)||s.set(t,new e),s.get(t)}var Oe=-1,N=()=>Oe,H=t=>{addEventListener("pageshow",e=>{e.persisted&&(Oe=e.timeStamp,t(e))},!0)},E=(t,e,s,i)=>{let n,o;return r=>{e.value>
1=0&&(r||i)&&(o=e.value-(n!=null?n:0),(o||n===void 0)&&(n=e.value,e.delta=o,e.rating=((a,c)=>a>c[1]?"poor":a>c[0]?"needs-improvement":"good")(e.value,s),t(e)))}},ve=t=>{requestAnimationFrame(()=>requestAnimationFrame(()=>t()))},z=()=>{var t,e;return(e=(t=B())==null?void 0:t.activationStart)!=null?e:0},R=-1,Re=new Set,Le=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,ge=t=>{if(document.visibilityState==="hidden"){if(t.type==="visibilitychange")for(let e of Re)e();isFinite(R)||(R=t.type==="visibilitychange"?t.timeStamp:0,removeEventListener("prerenderingchange",ge,!0))}},q=(t=!1)=>{var e;if(t&&(R=1/0),R<0){let s=z(),i=document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").find(n=>n.name==="hidden"&&n.startTime>=s))==null?void 0:e.startTime;R=i!=null?i:Le(),addEventListener("visibilitychange",ge,!0),addEventListener("prerenderingchange",ge,!0),H(()=>{setTimeout(()=>{R=Le()})})}return{get firstHiddenTime(){return R},onHidden(s){Re.add(s)}}},I=(t,e=-1,s,i=0,n,o,r)=>{let a=B(),c=(a==null?void 0:a.navigationId)||0,u="navigate";return s?u=s:N()>=0?u="back-forward-cache":a&&(document.prerendering||z()>0?u="prerender":document.wasDiscarded?u="restore":a.type&&(u=a.type.replace(/_/g,"-"))),{name:t,value:e,rating:"good",delta:0,entries:[],id:`v6-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:u,navigationId:i||c,navigationInteractionId:n,navigationURL:o||(a==null?void 0:a.name),navigationStartTime:r||0}},F=(t,e,s={})=>{try{let i=t.filter(n=>PerformanceObserver.supportedEntryTypes.includes(n));if(i.length>0){let n=new PerformanceObserver(o=>{queueMicrotask(()=>{let r=o.getEntries();i.length>1&&r.sort((a,c)=>a.startTime+a.duration-(c.startTime+c.duration)),e(r)})});for(let o of i)n.observe({type:o,buffered:!0,...s});return n}}catch{}},D=t=>{var e,s,i,n;return((s=(e=globalThis.PerformanceObserver)==null?void 0:e.supportedEntryTypes)==null?void 0:s.includes("soft-navigation"))&&typeof((n=(i=globalThis.PerformanceSoftNavigation)==null?void 0:i.prototype)==null?void 0:n.getLargestInteractionContentfulPaint)=="function"&&t&&t.reportSoftNavs},De=(t,e)=>{if(t.set(e.navigationId,e),t.size>2){let s=t.keys().next().value;s!==void 0&&t.delete(s)}},Ne=t=>{let e=!1;return()=>{e||(t(),e=!0)}},X=class{constructor(){M(this,"u")}},ee=t=>{document.prerendering?addEventListener("prerenderingchange",t,!0):t()},ce=[1800,3e3],xe=(t,e={})=>{let s=D(e);ee(()=>{let i=O(e,X),n=q(),o,r=I("FCP"),a=F(["paint"],c=>{for(let u of c)u.name==="first-contentful-paint"&&(a.disconnect(),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-z(),0),r.entries.push(u),r.navigationId=u.navigationId||r.navigationId,o(!0)))});a&&(o=E(t,r,ce,e.reportAllChanges),H(c=>{r=I("FCP",-1,"back-forward-cache",r.navigationId,r.navigationInteractionId,r.navigationURL,N()),o=E(t,r,ce,e.reportAllChanges),ve(()=>{r.value=performance.now()-c.timeStamp,o(!0)})})),s&&F(["soft-navigation"],c=>{c.forEach(u=>{i.u&&u.navigationId&&De(i.u,u);let l=Math.max((u.presentationTime||u.paintTime||0)-u.startTime,0);r=I("FCP",l,"soft-navigation",u.navigationId,u.interactionId,u.name,u.startTime),o=E(t,r,ce,e.reportAllChanges),o(!0)})},e)})},Ae=[.1,.25],ke=t=>t.find(e=>{var s;return((s=e.node)==null?void 0:s.nodeType)===1})||t[0],te=(t,e={})=>{let s=O(e=Object.assign({},e),Q),i=new WeakMap;s.t=n=>{var o,r,a;
1if((o=n==null?void 0:n.sources)!=null&&o.length){let c=ke(n.sources),u=c==null?void 0:c.node;if(u){let l=(a=(r=e.generateTarget)==null?void 0:r.call(e,u))!=null?a:he(u);i.set(c,l)}}},((n,o={})=>{let r=q();xe(Ne(()=>{let a,c=I("CLS",0),u=O(o,Q),l=(f,g,y,m,S)=>{c=I("CLS",0,f,g,y,m,S),u.o=0,a=E(n,c,Ae,o.reportAllChanges)},v=(f=!1)=>{u.o>c.value&&(c.value=u.o,c.entries=u.i),a(f)},T=f=>{v(!0),l("soft-navigation",f.navigationId,f.interactionId,f.name,f.startTime)},d=f=>{for(let g of f)g.entryType!=="soft-navigation"?u.l(g):T(g);v()},p=["layout-shift"];D(o)&&p.push("soft-navigation");let h=F(p,d);h&&(a=E(n,c,Ae,o.reportAllChanges),r.onHidden(()=>{d(h.takeRecords()),a(!0)}),H(()=>{l("back-forward-cache",c.navigationId,c.navigationInteractionId,c.navigationURL,N()),ve(a)}),setTimeout(a))}))})(n=>{t((o=>{var a;let r={};if(o.entries.length){let c=o.entries.reduce((u,l)=>u.value>l.value?u:l);if((a=c==null?void 0:c.sources)!=null&&a.length){let u=ke(c.sources);u&&(r={largestShiftTarget:i.get(u),largestShiftTime:c.startTime,largestShiftValue:c.value,largestShiftSource:u,largestShiftEntry:c,loadState:V(c.startTime)})}}return Object.assign(o,{attribution:r})})(n))},e)},ye=(t,e={})=>{let s=O(e=Object.assign({},e),X);D(e)&&(s.u=new Map),xe(i=>{t((n=>{var r;let o={timeToFirstByte:0,firstByteToFCP:n.value,loadState:V(N())};if(n.navigationType!=="soft-navigation"){if(n.entries.length){let a=B(),c=n.entries.at(-1);if(a){let u=a.responseStart,l=a.activationStart||0,v=Math.max(0,u-l);o={timeToFirstByte:v,firstByteToFCP:n.value-v,loadState:V(n.entries[0].startTime),navigationEntry:a,fcpEntry:c}}}}else{let a=(r=s.u)==null?void 0:r.get(n.navigationId);a&&(o={timeToFirstByte:0,firstByteToFCP:n.value,loadState:"complete",navigationEntry:a})}return Object.assign(n,{attribution:o})})(i))},e)},We=0,ue=1/0,G=0,Ke=t=>{for(let e of t)e.interactionId&&(ue=Math.min(ue,e.interactionId),G=Math.max(G,e.interactionId),We=G?(G-ue)/7+1:0)},fe,Pe=()=>{var t;return fe?We:(t=performance.interactionCount)!=null?t:0},Je=()=>{"interactionCount"in performance||fe||(fe=F(["event"],Ke,{durationThreshold:0}))},Y=class{constructor(){M(this,"h",0);M(this,"v",[]);M(this,"p",new Map);M(this,"m");M(this,"M")}T(){return Pe()-this.h}D(){this.h=Pe(),this.v.length=0,this.p.clear()}S(e){let s=this.T(),i=Math.min(this.v.length-1,Math.floor(s/50));return!s||i!==-1||e!=="soft-navigation"&&e!=="back-forward-cache"?this.v[i]:{k:8,id:-1,entries:[]}}l(e){var n,o;if((n=this.m)==null||n.call(this,e),!e.interactionId)return;let s=this.v.at(-1),i=this.p.get(e.interactionId);if(i||this.v.length<10||e.duration>s.k){if(i?e.duration>i.k?(i.entries=[e],i.k=e.duration):e.duration===i.k&&e.startTime===i.entries[0].startTime&&i.entries.push(e):(i={id:e.interactionId,entries:[e],k:e.duration},this.p.set(i.id,i),this.v.push(i)),this.v.sort((r,a)=>a.k-r.k),this.v.length>10){let r=this.v.splice(10);for(let a of r)this.p.delete(a.id)}(o=this.M)==null||o.call(this,i)}}},me=t=>{let e="requestIdleCallback"in globalThis?1e3:0,s=globalThis.requestIdleCallback||setTimeout,i=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")t();else{let n=Ne(t),o=-1,r=()=>{i(o),n()};addEventListener("visibilitychange",r,{once:!0,capture:!0}),o=s(()=>{removeEventListener("visibilitychange",r,{capture:!0}),n()},{timeout:e})}},Fe=[200,500],Te=(t,e={})=>{let s=O(e=Object.assign({},e),Y),i=[],n=[],o=0,r=new WeakMap,a=new WeakMap,c=!1,u=()=>{c||(me(l),c=!0)},l=()=>{let d=new Set(s.v.map(f=>r.get(f.entries[0]))),p=n.length-10;n=n.filter((f,g)=>g>=p||d.has(f));let h=new Set;for(let f of n){let g=v(f.startTime,f.processingEnd);for(let y of g)h.add(y)}i=i.filter(f=>f.startTime>o||h.has(f)),c=!1};s.m=d=>{let p=d.startTime+d.duration,h;o=Math.max(o,d.processingEnd);for(let f=n.length-1;f>=0;f--){let g=n[f];if(Math.abs(p-g.renderTime)<=8){h=g,h.startTime=Math.min(d.startTime,h.startTime),h.processingStart=Math.min(d.processingStart,h.processingStart),h.processingEnd=Math.max(d.processingEnd,h.processingEnd),e.includeProcessedEventEntries&&h.entries.push(d);break}}h||(h={startTime:d.startTime,processingStart:d.processingStart,processingEnd:d.processingEnd,renderTime:p,entries:e.includeProcessedEventEntries?[d]:[]},n.push(h)),d.interactionId&&r.set(d,h),u()},s.M=d=>{var p,h,f,g;if(!a.get(d)){let y=(p=d.entries.find(m=>m.target))==null?void 0:p.target;if(y){let m=(f=(h=e.generateTarget)==null?void 0:h.call(e,y))!=null?f:he(y);a.set(d,m)}else{let m=(g=d.entries.find(S=>S.targetSelector))==null?void 0:g.targetSelector;m&&a.set(d,m)}}};let v=(d,p)=>{let h=[];for(let f of i)if(!(f.startTime+f.duration<d)){if(f.startTime>p)break;h.push(f)}return h},T=d=>
vendor: 1,864 bytes, line 1
1{if(d.entries.length===0){let b=d.navigationStartTime||0,w={processedEventEntries:[],longAnimationFrameEntries:[],inputDelay:0,processingDuration:0,presentationDelay:d.value,loadState:V(b)};return Object.assign(d,{attribution:w})}let p=d.entries[0],h=r.get(p),f=Math.max(h.processingStart,p.startTime),g=Math.max(p.startTime+p.duration,f),y=Math.min(h.processingEnd,g),m=h.entries.sort((b,w)=>b.processingStart-w.processingStart),S=v(p.startTime,y),L=s.p.get(p.interactionId),A={interactionTarget:a.get(L),interactionType:p.name.startsWith("key")?"keyboard":"pointer",interactionTime:p.startTime,nextPaintTime:g,processedEventEntries:m,longAnimationFrameEntries:S,inputDelay:f-p.startTime,processingDuration:y-f,presentationDelay:g-y,loadState:V(p.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(b=>{var we;let w=b.interactionTime,x=b.nextPaintTime;if(!((we=b.longAnimationFrameEntries)!=null&&we.length)||!w||!x)return;let C=b.inputDelay,W=b.processingDuration,k,j,_=0,U=0,oe=0,ae=0;for(let K of b.longAnimationFrameEntries){U=U+K.startTime+K.duration-K.styleAndLayoutStart;for(let P of K.scripts){let Ee=P.startTime+P.duration;if(Ee<w)continue;let J=Ee-Math.max(w,P.startTime),Me=P.duration?J/P.duration*P.forcedStyleAndLayoutDuration:0;_+=J-Me,U+=Me,J>ae&&(j=P.startTime<w+C?"input-delay":P.startTime>=w+C+W?"presentation-delay":"processing-duration",k=P,ae=J)}}let se=b.longAnimationFrameEntries.at(-1),Ce=se?se.startTime+se.duration:0;Ce>=w+C+W&&(oe=x-Ce),k&&j&&(b.longestScript={entry:k,subpart:j,intersectingDuration:ae}),b.totalScriptDuration=_,b.totalStyleAndLayoutDuration=U,b.totalPaintDuration=oe,b.totalUnattributedDuration=x-w-_-U-oe})(A),Object.assign(d,{attribution:A})};F(["long-animation-frame"],d=>{i=i.concat(d),u()},e),((d,p={})=>
1{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;let h=q();ee(()=>{var x;Je();let f,g=I("INP"),y=O(p,Y),m=(C,W,k,j,_)=>{y.D(),g=I("INP",-1,C,W,k,j,_),f=E(d,g,Fe,p.reportAllChanges)},S=()=>{let C=y.S(g.navigationType);C&&C.k!==g.value&&(g.value=C.k,g.entries=C.entries,f())},L=C=>{S(),f(!0),m("soft-navigation",C.navigationId,C.interactionId,C.name,C.startTime)},A=(C,W=!1)=>{me(()=>{for(let k of C)k.entryType!=="soft-navigation"?y.l(k):L(k);S(),W&&f(!0)})},b=["event","first-input"];D(p)&&b.push("soft-navigation");let w=F(b,A,{...p,durationThreshold:(x=p.durationThreshold)!=null?x:40});f=E(d,g,Fe,p.reportAllChanges),w&&(h.onHidden(()=>{A(w.takeRecords(),!0)}),H(()=>{m("back-forward-cache",g.navigationId,g.navigationInteractionId,g.navigationURL,N())}))})})(d=>{t(T(d))},e)},Z=class{constructor(){M(this,"m");M(this,"u")}l(e){var s;(s=this.m)==null||s.call(this,e)}},le=[2500,4e3],Be=50,$=[];F(["resource"],t=>{for(let e of t)$.push(e),$.length>Be&&$.shift()});var be=(t,e={})=>{(e=Object.assign({},e)).resourceBufferSize!=null&&(Be=e.resourceBufferSize);let s=O(e,Z),i=new WeakMap;D(e)&&(s.u=new Map),s.m=n=>{var r,a;let o=n.element;if(o){let c=(a=(r=e.generateTarget)==null?void 0:r.call(e,o))!=null?a:he(o);i.set(n,c)}else n.id&&i.set(n,`#${n.id}`)},((n,o={})=>{let r=!1,a=D(o);ee(()=>{let c,u=q(),l=I("LCP"),v=O(o,Z),T=(g,y,m,S,L)=>{l=I("LCP",-1,g,y,m,S,L),c=E(n,l,le,o.reportAllChanges),r=!1,g==="soft-navigation"&&(u=q(!0))},d=g=>{var m;v.u&&g.navigationId&&De(v.u,g),r||c(!0),T("soft-navigation",g.navigationId,g.interactionId,g.name,g.startTime);let y=(m=g.getLargestInteractionContentfulPaint)==null?void 0:m.call(g);y&&p([y])},p=g=>{var y;o.reportAllChanges||a||(g=g.slice(-1));for(let m of g){if(!m)continue;if(m.entryType==="soft-navigation"){d(m);continue}let S=0,L=[],A=m.startTime;if(m.entryType==="largest-contentful-paint")S=Math.max(m.startTime-z(),0),v.l(m),L=[m];else if(m.entryType==="interaction-contentful-paint"){let b=m;if(!l.navigationId||"interactionId"in b&&b.interactionId!=l.navigationInteractionId)continue;A=((y=b.largestContentfulPaint)==null?void 0:y.renderTime)||0,S=Math.max(A-m.startTime,0),b.largestContentfulPaint&&(v.l(b.largestContentfulPaint),L=[b.largestContentfulPaint])}A<u.firstHiddenTime&&(l.value=S,l.entries=L,c())}},h=["largest-contentful-paint"];a&&h.push("interaction-contentful-paint","soft-navigation");let f=F(h,p);if(f){c=E(n,l,le,o.reportAllChanges);let g=["keydown","click","visibilitychange"],y=m=>{if(m.isTrusted&&!r){let S=l.id;me(()=>{if(!r){if(!a){f.disconnect();for(let L of g)removeEventListener(L,y,{capture:!0})}S===l.id&&(r=!0,c(!0))}})}};for(let m of g)addEventListener(m,y,{capture:!0});H(m=>{T("back-forward-cache",l.navigationId,l.navigationInteractionId,l.navigationURL,N()),c=E(n,l,le,o.reportAllChanges),ve(()=>{l.value=performance.now()-m.timeStamp,r=!0,c(!0)})})}})})(n=>{t((o=>{var a,c,u;let r={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:o.value};
1if(o.entries.length){let l=o.entries.at(-1),v=l.url&&($.findLast(h=>h.name===l.url)||performance.getEntriesByType("resource").findLast(h=>h.name===l.url)),T;r.target=i.get(l),r.lcpEntry=l,l.url&&(r.url=l.url),v&&(r.lcpResourceEntry=v);let d=0,p=0;if(o.navigationType!=="soft-navigation"?(T=B(),d=(a=T==null?void 0:T.activationStart)!=null?a:0,p=(c=T==null?void 0:T.responseStart)!=null?c:0):(d=o.navigationStartTime||0,T=(u=s.u)==null?void 0:u.get(o.navigationId)),T){let h=Math.max(0,p-d),f=Math.max(h,v?(v.requestStart||v.startTime)-d:0),g=Math.min(o.value,Math.max(f,v?v.responseEnd-d:0));r={...r,timeToFirstByte:h,resourceLoadDelay:f-h,resourceLoadDuration:g-f,elementRenderDelay:o.value-g,navigationEntry:T}}}return Object.assign(o,{attribution:r})})(n))},e)},de=[800,1800],pe=t=>{document.prerendering?ee(()=>pe(t)):document.readyState!=="complete"?addEventListener("load",()=>pe(t),!0):setTimeout(t)},Se=(t,e={})=>{((s,i={})=>{let n=D(i),o=I("TTFB"),r=E(s,o,de,i.reportAllChanges);pe(()=>{let a=B();if(a){let c=a.responseStart;o.value=Math.max(c-z(),0),o.entries=[a],r(!0),H(()=>{o=I("TTFB",0,"back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,N()),r=E(s,o,de,i.reportAllChanges),r(!0)}),n&&F(["soft-navigation"],u=>{u.forEach(l=>{l.navigationId&&(o=I("TTFB",0,"soft-navigation",l.navigationId,l.interactionId,l.name,l.startTime),o.entries=[l],r=E(s,o,de,i.reportAllChanges),r(!0))})},i)}})})(s=>{t((i=>{let n=i.entries[0],o={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0,navigationEntry:n};if(i.entries.length&&n instanceof PerformanceNavigationTiming){let r=n.activationStart||0,a=Math.max((n.workerStart||n.fetchStart||0)-r,0),c=Math.max(n.domainLookupStart-r,0),u=Math.max(n.connectStart-r,0),l=Math.max(n.connectEnd-r,0);o={waitingDuration:a,cacheDuration:c-a,dnsDuration:u-c,connectionDuration:l-u,requestDuration:i.value-l,navigationEntry:n}}return Object.assign(i,{attribution:o})})(s))},e)};var Ge=15;function $e(t,e,s,i){let n=t.get(e);if(n)return n.totalValue+=s,n.eventCount+=1,n.lastSeen=Math.max(n.lastSeen,i),n;let o={element:e,totalValue:s,eventCount:1,firstSeen:i,lastSeen:i};return t.set(e,o),o}function Qe(t,e){return Array.from(t.values()).map(s=>({...s,percentageOfTotal:e>0?s.totalValue/e*100:0})).sort((s,i)=>i.totalValue-s.totalValue).slice(0,Ge)}var Xe=1e3,Ye=5e3;function He(t){return`${t.startTime}:${t.value}`}function Ze(){let t=new Map,e=[];function s(){let i=e[e.length-1],n=e[e.length-2],o=e.reduce((a,c)=>c.value>a.value?c:a),r=e.filter(a=>a===i||a===n||a===o);for(let a of e)if(!r.includes(a))for(let c of a.shiftKeys)t.delete(c);e=r}return{record(i,n){let o=He(i),r=n.filter((c,u)=>n.findIndex(l=>l.selector===c.selector)===u);t.set(o,r);let a=e[e.length-1];if(a&&i.startTime-a.lastStartTime<Xe&&i.startTime-a.firstStartTime<Ye){a.lastStartTime=i.startTime,a.value+=i.value,a.shiftKeys.push(o);return}e.push({firstStartTime:i.startTime,lastStartTime:i.startTime,value:i.value,shiftKeys:[o]}),s()},reset(){t=new Map,e=[]},contributionsFor(i){var o;let n=new Map;for(let r of i)for(let a of(o=t.get(He(r)))!=null?o:[]){let c=$e(n,a.selector,r.value,r.startTime);a.image&&Object.assign(c,a.image)}return n}}}function je(){let t=window.renderbetter.getLogger("RB Analytics CLS");t("Initializing CLS tracking with synchronous layout-shift attribution");let e=Ze(),s=typeof WeakMap!="undefined"?new WeakMap:null;function i(r){let a=s==null?void 0:s.get(r);if(a)return a;let c=window.renderbetter.getElementSelector(r);return s==null||s.set(r,c),c}function n(r){var a;for(let c of r){if(c.hadRecentInput)continue;let u=[];for(let l of(a=c.sources)!=null?a:[]){let v=l.node instanceof Element?l.node:null,T={selector:v?i(v):"unknown"};if(v instanceof HTMLImageElement){let d={naturalWidth:v.naturalWidth,naturalHeight:v.naturalHeight,renderedWidth:Math.round(l.currentRect.width),renderedHeight:Math.round(l.currentRect.height),previousHeight:Math.round(l.previousRect.height)},p=v.getAttribute("data-rb-img-id");p&&(d.imgId=p),v.currentSrc&&(d.currentSrc=v.currentSrc.slice(0,300)),T.image=d}u.push(T)}e.record(c,u)}}let o=null;try{o=new PerformanceObserver(r=>{n(r.getEntries())}),o.observe({type:"layout-shift",buffered:!0})}catch(r){t("layout-shift PerformanceObserver unavailable",r)}window.addEventListener("pageshow",r=>{r.persisted&&e.reset()}),te(r=>{try{o&&n(o.takeRecords());let a=e.contributionsFor(r.entries),c=Qe(a,r.value),u={...r.attribution,elementContributions:c,totalEvents:r.entries.length,totalElements:a.size};t("Queueing aggregated CLS metric","CLS",r.value,u),window.renderbetter.collect({type:"metric",name:"cls",value:r.value,navigationType:r.navigationType,attribution:JSON.stringify(u)})}catch(a){t("Error in CLS tracking",a),window.renderbetter.collect({type:"metric",name:"cls",value:r.value,navigationType:r.navigationType,attribution:JSON.stringify({...r.attribution,error:"Enhanced tracking failed"})})}})}function _e(t){if(!Array.isArray(t))return"unknown";let e=!1,s=!1,i=null;for(let n of t)if(!(!n||typeof n.name!="string")){if(n.name==="processing")e=!0;else if(n.name==="streaming")s=!0;else if(n.name==="render"){let o=typeof n.duration=="number"?n.duration:Number(n.duration);i=Number.isFinite(o)?o:null}}return e?s?"streaming":i!==null&&i>0?"rendered":"cached":"unknown"}function Ue(t){let e={};if(!t||typeof t!="object")return e;let s=ne(t.requestStart);if(s===null||s<=0)return e;let i=ne(t.firstInterimResponseStart),n=ne(t.finalResponseHeadersStart),o=ne(t.responseEnd),r=(a,c)=>{c>=0&&c<=3e4&&(e[a]=Math.round(c))};if(i!==null){let a=i>0&&i>=s;e.earlyHintsPresent=a,a&&r("interimResponseMs",i-s)}return n!==null&&n>=s&&(r("finalHeadersMs",n-s),o!==null&&o>0&&r("bodyTransferMs",o-n)),o!==null&&o>0&&r("responseEndMs",o-s),e}function ne(t){return typeof t=="number"&&Number.isFinite(t)?t:null}(function(){let t=window.renderbetter.getLogger("RB Analytics CWV");window.renderbetter.onTTFB=Se,window.renderbetter.onFCP=ye,window.renderbetter.onLCP=be,window.renderbetter.onINP=Te,window.renderbetter.onCLS=te,je(),Se(e=>{t("Queueing CWV metric","TTFB",e.value),window.renderbetter.collect({type:"metric",name:"ttfb",value:e.value,navigationType:e.navigationType,attribution:JSON.stringify(ie(e.attribution))})}),ye(e=>{t("Queueing CWV metric","FCP",e.value),window.renderbetter.collect({type:"metric",name:"fcp",value:e.value,navigationType:e.navigationType,attribution:JSON.stringify(ie(e.attribution))})}),be(e=>{var r,a,c,u,l,v,T,d;t("Queueing CWV metric","LCP",e.value);let s=performance==null?void 0:performance.getEntriesByType("resource").filter(p=>p.initiatorType==="link"&&p.name.match(/jpe?g|png|webp/)).map(p=>p.name).join(","),i=(a=(r=e.attribution)==null?void 0:r.lcpEntry)==null?void 0:a.element,n=(i==null?void 0:i.tagName)==="VIDEO"?(u=(c=i.getAttribute)==null?void 0:c.call(i,"data-rb-vid-id"))!=null?u:void 0:(v=(l=i==null?void 0:i.getAttribute)==null?void 0:l.call(i,"data-rb-img-id"))!=null?v:void 0,o=(d=(T=i==null?void 0:i.getAttribute)==null?void 0:T.call(i,"data-rb-section-img-id"))!=null?d:void 0;window.renderbetter.collect({type:"metric",name:"lcp",value:e.value,navigationType:e.navigationType,attribution:JSON.stringify({...ie(e.attribution),preloadedImages:s,lcpElementId:n,lcpSectionElementId:o})})}),Te(e=>{t("Queueing CWV metric","INP",e.value),window.renderbetter.collect({type:"metric",name:"inp",value:e.value,navigationType:e.navigationType,attribution:JSON.stringify(ie(e.attribution))})})})();function ie(t){var h,f,g,y;if(!t||typeof t!="object")return t;let e=t.navigationEntry,s=et(e),i=Ue(e),n=(g=(f=(h=window.renderbetter).readOriginTiming)==null?void 0:f.call(h))!=null?g:{};if(!e||typeof e!="object")return{...t,...s,...i,...n};let o=typeof e.toJSON=="function"?e.toJSON():{...e},r=m=>Array.isArray(m)?m.find(S=>S&&S.name==="_cmp"):void 0,a=r(o.serverTiming),c=window.renderbetter.redactServerTiming(o.serverTiming),u=(y=r(c))==null?void 0:y.description;o.serverTiming=c;let l=a&&u?{shopifyCmp:u}:{};if(!o.notRestoredReasons)return{...t,...s,...i,...n,...l,navigationEntry:o};let v=[],T=[],d=m=>{if(!(!m||typeof m!="object")){if(Array.isArray(m.reasons))for(let S of m.reasons)S&&typeof S.reason=="str
1ing"&&v.push(S.reason);typeof m.src=="string"&&T.push(m.src),typeof m.url=="string"&&T.push(m.url),Array.isArray(m.children)&&m.children.forEach(d)}};d(o.notRestoredReasons);let p={...o};return delete p.notRestoredReasons,p.bfcacheBlockReasons=Array.from(new Set(v)),p.bfcacheBlockingUrls=Array.from(new Set(T)).slice(0,20),{...t,...s,...i,...n,...l,navigationEntry:p}}function et(t){let e={};if(!t||typeof t!="object")return e;let s=re(t.requestStart),i=re(t.responseStart),n=re(t.finalResponseHeadersStart),o=a=>a!==null&&a>=0&&a<=3e4;n!==null&&s!==null&&o(n-s)?e.realTtfb=Math.round(n-s):i!==null&&s!==null&&o(i-s)&&(e.realTtfb=Math.round(i-s)),n!==null&&i!==null&&o(n-i)&&(e.hiddenRenderGapMs=Math.round(n-i));let r=Array.isArray(t.serverTiming)?t.serverTiming:null;if(r){let a=u=>{let l=r.find(v=>v&&v.name===u);return l?re(l.duration):null},c=a("processing");if(r.length>0&&(e.shopifyOriginClass=_e(r)),c!==null){let u=a("render"),l=a("db");e.originProcessingMs=Math.round(c),e.originRenderMs=u!==null?Math.round(u):0,l!==null&&(e.originDbMs=Math.round(l)),e.shopifyOriginCached=!(u!==null&&u>0)}r.some(u=>u&&u.name==="knownbot")&&(e.shopifyKnownBot=!0)}return e}function re(t){return typeof t=="number"&&Number.isFinite(t)?t:null}})(); 2(()=>{function k(e,i){return e.length>i?e.slice(0,i):e}function v(e){var i,u,r,t,a,d;return{sourceURL:k(String((i=e.sourceURL)!=null?i:""),300),invoker:k(String((u=e.invoker)!=null?u:""),120),invokerType:String((r=e.invokerType)!=null?r:""),duration:Math.round((t=e.duration)!=null?t:0),forcedStyleAndLayoutDuration:Math.round((a=e.forcedStyleAndLayoutDuration)!=null?a:0),startTime:Math.round((d=e.startTime)!=null?d:0)}}function h(e,i,u={}){var f,p,n,b,o,l,S,L,y,g,s,m,R;let r=Array.from((f=e.scripts)!=null?f:[]),t=null,a=0;for(let _ of r)a+=(p=_.forcedStyleAndLayoutDuration)!=null?p:0,((n=_.duration)!=null?n:0)>((b=t==null?void 0:t.duration)!=null?b:0)&&(t=_);let d=r.filter(_=>{var T,A;return((T=_.forcedStyleAndLayoutDuration)!=null?T:0)>0||((A=_.duration)!=null?A:0)>=5}).sort((_,T)=>{var A,E;return((A=T.duration)!=null?A:0)-((E=_.duration)!=null?E:0)}).slice(0,10).map(v),c={phase:i,loaf_blocking_duration:Math.round((o=e.blockingDuration)!=null?o:0),longest_script:t?v(t):null,total_thrashing_duration:Math.round(a),render_time:Math.round(((l=e.startTime)!=null?l:0)+((S=e.duration)!=null?S:0)-((L=e.renderStart)!=null?L:0)),loaf:{startTime:Math.round((y=e.startTime)!=null?y:0),duration:Math.round((g=e.duration)!=null?g:0),blockingDuration:Math.round((s=e.blockingDuration)!=null?s:0),renderStart:Math.round((m=e.renderStart)!=null?m:0),scripts:d}};return u.event&&(c.event_duration=Math.round((R=u.event.duration)!=null?R:0),c.event=u.event),c}function O(e,i,u,r,t=50){var d;if(r<=0)return[];let a=[];for(let c of e)i.has(c)||u.has(c)||((d=c.blockingDuration)!=null?d:0)<t||a.push(c);return a.sort((c,f)=>{var p,n;return((p=f.blockingDuration)!=null?p:0)-((n=c.blockingDuration)!=null?n:0)}),a.slice(0,r)}function P(e,i,u){let r=e.slice(),t=0,a=0;if(u(r)<=i)return{rows:r,droppedFrames:0,droppedStandalone:0,droppedInteraction:0};let d=o=>{var l;return(l=o.loaf_blocking_duration)!=null?l:0},c=r.filter(o=>o.phase==="load").sort((o,l)=>d(o)-d(l)),f=r.filter(o=>o.phase==="interaction").sort((o,l)=>d(o)-d(l)),p=c.concat(f),n=0;for(;u(r)>i&&n<p.length;){let o=p[n++],l=r.indexOf(o);l!==-1&&(r.splice(l,1),o.phase==="load"?t++:a++)}let b=t+a;return b>0&&r.push({phase:"meta",v:2,droppedFrames:b,droppedStandalone:t,droppedInteraction:a}),{rows:r,droppedFrames:b,droppedStandalone:t,droppedInteraction:a}}(function(){let e=window.renderbetter.getLogger("RB Analytics LoAF");if(!window.PerformanceObserver){e("PerformanceObserver API not supported.");return}let i=[],u=[],r=null,t=new Map,a=new WeakSet,d=0;new PerformanceObserver(n=>{i=[...i,...n.getEntries()]}).observe({type:"long-animation-frame",buffered:!0}),new PerformanceObserver(n=>{let b=Object.values(Object.fromEntries(n.getEntries().map(o=>[JSON.stringify(o),o])));u=[...u,...b],p()}).observe({type:"event",buffered:!0,durationThreshold:150}),document.addEventListener("visibilitychange",f),window.addEventListener("pagehide",f,{passive:!0});function c(n){try{return new TextEncoder().encode(JSON.stringify(n)).byteLength}catch{return 0}}function f(){var y,g;for(let s of u)for(let m of i)if(m.blockingDuration&&!(m.startTime+m.duration<s.startTime)){if(m.startTime>s.startTime+s.duration)break;s.duration>((g=(y=t.get(m))==null?void 0:y.duration)!=null?g:0)&&t.set(m,s)}let n=[],b=[...t.entries()].sort(([s],[m])=>m.duration-s.duration);for(let[s,m]of b)a.has(s)||(n.push(h(s,"interaction",{event:m})),a.add(s));let o=20-d,l=O(i,t,a,o,50);for(let s of l)n.push(h(s,"load",{})),a.add(s),d++;if(n.length===0){e("No long animation frames detected."),i=[],u=[],t.clear();return}let S=P(n,2e4,c),L=JSON.stringify(S.rows);e(`Long animation frames detected (${n.length}; ${S.droppedFrames} dropped for budget).`,S.rows,L),window.renderbetter.collect({type:"metric",name:"loaf",attribution:L}),i=[],u=[],t.clear()}function p(){r&&clearTimeout(r),r=setTimeout(()=>{r=null,f()},1e3)}})();})(); 3(()=>
3{(function(){let r=window.renderbetter.getLogger("RB Analytics Load");if(!window.PerformanceObserver){r("PerformanceObserver API not supported.");return}new PerformanceObserver(i=>{i.getEntries().forEach(s=>{var c,f,d,m,g;let e=s;if(e.domComplete===0)return;let o=e.domContentLoadedEventEnd-e.domContentLoadedEventStart,l=e.loadEventEnd-e.loadEventStart,a=h(JSON.parse(JSON.stringify(s)));a&&"serverTiming"in a&&(a.serverTiming=window.renderbetter.redactServerTiming(a.serverTiming));let v=e.finalResponseHeadersStart,b=e.serverTiming.filter(n=>n.name.startsWith("rb-")).reduce((n,u)=>({...n,[y(u.name)]:u.duration}),{}),p={shopifyProcessing:(c=e.serverTiming.find(n=>n.name==="processing"))==null?void 0:c.duration,shopifyCfRequestDuration:(f=e.serverTiming.find(n=>n.name==="cfRequestDuration"))==null?void 0:f.duration,shopifyDb:(d=e.serverTiming.find(n=>n.name==="db"))==null?void 0:d.duration,shopifyDbAsync:(m=e.serverTiming.find(n=>n.name==="db_async"))==null?void 0:m.duration,shopifyRender:(g=e.serverTiming.find(n=>n.name==="render"))==null?void 0:g.duration};window.renderbetter.collect({type:"metric",name:"load",value:e.loadEventStart,attribution:JSON.stringify({...a,...b,...p,domContentLoadedDuration:o,loadDuration:l,finalResponseHeadersStart:v})})})}).observe({type:"navigation",buffered:!0})})();function y(r){return r.replace(/-([a-z])/g,t=>t[1].toUpperCase())}function h(r){if(!r||typeof r!="object"||!r.notRestoredReasons)return r;let t=[],i=[],s=e=>{if(!(!e||typeof e!="object")){if(Array.isArray(e.reasons))for(let o of e.reasons)o&&typeof o.reason=="string"&&t.push(o.reason);typeof e.src=="string"&&i.push(e.src),typeof e.url=="string"&&i.push(e.url),Array.isArray(e.children)&&e.children.forEach(s)}};return s(r.notRestoredReasons),r.bfcacheBlockReasons=Array.from(new Set(t)),r.bfcacheBlockingUrls=Array.from(new Set(i)).slice(0,20),delete r.notRestoredReasons,r}})(); 4(()=>{function b(t){if(!t)return!1;let o=t.toLowerCase().split(/\s+/);for(let i=0;i<o.length;i++)if(o[i]==="render")return!0;return!1}function y(t,o,i){let s=[];for(let c=0;c<t.length;c++){let n=t[c];if(!(n.requestStart<o))continue;n.renderBlockingStatus==="blocking"?s.push({entry:n,explicitBlocking:!1}):i.has(n.name)&&s.push({entry:n,explicitBlocking:!0})}return s}var S=null,k=null;function M(){var o;let t=performance.getEntriesByType("navigation")[0];return(o=t==null?void 0:t.activationStart)!=null?o:0}function d(t){return Math.max(0,t-M())}(function(){var i,s,c,n;let t=window.renderbetter.getLogger("RB Analytics Render Blocking Resources");if(!window.PerformanceObserver){t("PerformanceObserver API not supported.");return}(s=(i=window.renderbetter).onFCP)==null||s.call(i,r=>{S=r.value}),(n=(c=window.renderbetter).onLCP)==null||n.call(c,r=>{var g,l;k={startTime:r.value,loadTime:0,duration:0,renderTime:0,url:((l=(g=r.attribution)==null?void 0:g.lcpEntry)==null?void 0:l.url)||""}}),new PerformanceObserver(async r=>{r.getEntries().forEach(async g=>{let l=g;if(l.domComplete===0)return;let f=l.loadEventStart,e=v(f);if(!e){t("No render-blocking resources found.");return}let u=S,m=k,p=d(l.domContentLoadedEventStart),a=d(l.domComplete),E=d(l.domInteractive),T=d(l.loadEventStart),B=d(l.finalResponseHeadersStart||l.responseStart),R=d(l.responseEnd);window.renderbetter.collect({type:"metric",name:"render_blocking_resources",value:e.resourceCount,attribution:JSON.stringify({...e,fcp:u,lcp:m,domContentLoaded:p,domComplete:a,domInteractive:E,load:T,responseStart:B,responseEnd:R})})})}).observe({type:"navigation",buffered:!0})})();var h={crossorigin:null,module:!1,integrity:null,defer:!1,async:!1,blocking:null};function w(t){try{let o=new URL(t,window.location.href).href,i=n=>{let r="src"in n?n.src:n.href;return r===t||r===o},s=document.querySelectorAll("script[src]");for(let n=0;n<s.length;n++){let r=s[n];if(i(r))return{crossorigin:r.crossOrigin===""?"anonymous":r.crossOrigin,module:r.type==="module",integrity:r.integrity||null,defer:r.defer===!0,async:r.async===!0,blocking:r.getAttribute("blocking")}}let c=document.querySelectorAll("link[href]");for(let n=0;n<c.length;n++){let r=c[n];if(i(r))return{crossorigin:r.crossOrigin===""?"anonymous":r.crossOrigin,module:!1,integrity:r.integrity||null,defer:!1,async:!1,blocking:r.getAttribute("blocking")}}return h}catch{return h}}function D(){return typeof HTMLScriptElement!="undefined"&&"blocking"in HTMLScriptElement.prototype}function L(){let t=new Set;try{if(!D()||!document.head)return t;let o=document.head.querySelectorAll("script[blocking],link[blocking]");for(let i=0;i<o.length;i++){let s=o[i];if(!b(s.getAttribute("blocking")))continue;let c="src"in s?s.src:s.href;c&&t.add(c)}}catch{return t}return t}function v(t){var o,i;try{let s=performance.getEntriesByType("resource"),c=y(s,t,L()),n=c.map(e=>e.entry);if(n.length===0)return null;let r=n.reduce((e,u)=>e+(u.transferSize||u.encodedBodySize||0),0),g=n.reduce((e,u)=>e+u.duration,0),l=n.length,f=new URL(window.location.href).origin;return{resourceCount:l,totalSize:r,totalDuration:Math.round(g),maxEndTime:Math.round(n.reduce((e,u)=>Math.max(e,d(u.responseEnd)),0)),maxDuration:Math.round(n.reduce((e,u)=>Math.max(e,u.duration),0)),resources:c.map(({entry:e,explicitBlocking:u})=>{let m=w(e.name),p=e.transferSize>0||e.decodedBodySize>0,a={url:e.name.startsWith(f)?e.name.substring(f.length):e.name,initiatorType:e.initiatorType,duration:Math.round(e.duration),fetchStart:Math.round(d(e.fetchStart)),endTime:Math.round(d(e.responseEnd)),fetchDuration:Math.round(e.responseEnd-e.fetchStart),hasTimingAccess:p,crossorigin:m.crossorigin,module:m.module,integrity:m.integrity,defer:m.defer,async:m.async,blocking:m.blocking};return u&&(a.explicitBlocking=!0),p&&(a.requestStart=Math.round(d(e.requestStart)),a.connectDuration=Math.round(e.connectEnd-e.connectStart),a.domainLookupDuration=Math.round(e.domainLookupEnd-e.domainLookupStart),a.redirectDuration=Math.round(e.redirectEnd-e.redirectStart),e.requestStart>0&&e.responseStart>0&&(a.requestDuration=Math.round(e.responseStart-e.requestStart)),e.responseStart>0&&(a.downloadDuration=Math.round(e.responseEnd-e.responseStart)),e.secureConnectionStart>0&&e.requestStart>0&&(a.tlsNegotiationDuration=Math.round(e.requestStart-e.secureConnectionStart)),e.workerStart>0&&(a.serviceWorkerDuration=Math.round(e.fetchStart-e.workerStart)),a.isCompressed=e.decodedBodySize!==e.encodedBodySize,a.isCached=e.transferSize===0,a.transferSize=e.transferSize,a.decodedBodySize=e.decodedBodySize,a.encodedBodySize=e.encodedBodySize),a}),perfReport:((i=(o=window.renderbetter)==null?void 0:o.perfReport)==null?void 0:i.filter(e=>e.name.startsWith("rb:")&&e.duration>50).map(e=>{var u;return{name:(u=e.detail.name)!=null?u:e.name.replace("rb:","").replace("rb-",""),startTime:Math.round(e.startTime)+"ms",duration:Math.round(e.duration)+"ms"}}))||[]}}catch{return null}}})(); 5(()=>{var l=/\.(woff2?|ttf|otf|eot)([?#]|$)/i;function m(r,s){return l.test(r)?!0:s==="css"&&r.indexOf("/fonts/")!==-1}function f(r,s,o){let a=s.filter(e=>m(e.name,e.initiatorType)).slice(0,20).map(e=>{var t,c,i;return{url:e.name,initiatorType:e.initiatorType,startTime:Math.round(e.startTime),duration:Math.round(e.duration),transferSize:(t=e.transferSize)!=null?t:0,hasTimingAccess:((c=e.transferSize)!=null?c:0)>0||((i=e.requestStart)!=null?i:0)>0}});return{faces:r.slice(0,20),fontResources:a,totalFaces:o}}(function(){let s=+"0.1";if(!(Math.random()<s))return;let o=window.renderbetter.getLogger("RB Analytics Fonts Used"),a=!1;function e(){if(!(a||!document.fonts)){a=!0;try{let t=[];
5document.fonts.forEach(n=>{var u;if(n.status!=="loaded")return;let d="";try{d=(u=n.src)!=null?u:""}catch{}t.push({family:n.family,weight:n.weight,style:n.style,stretch:n.stretch,src:d})});let c=performance.getEntriesByType("resource"),i=f(t,c,document.fonts.size);o("Fonts used collected",i),window.renderbetter.collect({type:"metric",name:"fonts_used",value:t.length,attribution:JSON.stringify(i)})}catch(t){o("Error collecting fonts used",t)}}}document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()}),window.addEventListener("pagehide",e)})();})(); 6(()=>{function f(d,i,r,n,t){return{inViewport:d.slice(0,60),stampedCount:i,innerWidth:r,innerHeight:n,scrolledBeforeSettle:t}}(function(){let i=+"0.1";if(!(Math.random()<i))return;let r=window.renderbetter.getLogger("RB Analytics Viewport Images"),n="data-rb-img-id",t=new Set,o=0,s=!1,c=!1,l=new IntersectionObserver(function(a){if(!s)for(let w of a){if(!w.isIntersecting)continue;let b=w.target.getAttribute(n);b&&t.add(b)}},{threshold:.1});function u(){s=!0,l.disconnect()}function m(){let e=document.querySelectorAll(`img[${n}]`);o=e.length,e.forEach(a=>l.observe(a)),window.addEventListener("scroll",u,{once:!0,passive:!0}),setTimeout(u,3e3)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",m):m();function g(){if(c||o===0)return;c=!0;let e=f(Array.from(t),o,window.innerWidth,window.innerHeight,s&&window.scrollY>0);r("Viewport images collected",e),window.renderbetter.collect({type:"metric",name:"viewport_images",value:t.size,attribution:JSON.stringify(e)})}document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&g()}),window.addEventListener("pagehide",g)})();})(); 7(()=>{(function(){let o=window.renderbetter.getLogger("RB Analytics Sampled Network Resources"),s=10,i=!1;function u(t){try{let n=new URL(t,document.baseURI).href;return n.startsWith(origin)?n.substring(origin.length):n}catch{return t}}let c="priority"in PerformanceResourceTiming.prototype;function m(t){return c?t.priority==="low":t.initiatorType==="beacon"||t.initiatorType==="prefetch"}function S(t){return t.transferSize>0||t.decodedBodySize>0}function l(t){let n=S(t),e={url:u(t.name),initiatorType:t.initiatorType,startTime:Math.round(t.startTime),endTime:Math.round(t.responseEnd),duration:Math.round(t.duration),fetchStart:Math.round(t.fetchStart),responseEnd:Math.round(t.responseEnd),fetchDuration:Math.round(t.responseEnd-t.fetchStart),renderBlockingStatus:t.renderBlockingStatus||"",responseStatus:t.responseStatus||0,hasTimingAccess:n};return n&&(e.requestStart=Math.round(t.requestStart),e.responseStart=Math.round(t.responseStart),e.connectStart=Math.round(t.connectStart),e.connectEnd=Math.round(t.connectEnd),e.domainLookupStart=Math.round(t.domainLookupStart),e.domainLookupEnd=Math.round(t.domainLookupEnd),e.redirectStart=Math.round(t.redirectStart),e.redirectEnd=Math.round(t.redirectEnd),e.secureConnectionStart=Math.round(t.secureConnectionStart),e.workerStart=Math.round(t.workerStart),e.connectDuration=Math.round(t.connectEnd-t.connectStart),e.domainLookupDuration=Math.round(t.domainLookupEnd-t.domainLookupStart),e.redirectDuration=Math.round(t.redirectEnd-t.redirectStart),t.requestStart>0&&t.responseStart>0&&(e.requestDuration=Math.round(t.responseStart-t.requestStart)),t.responseStart>0&&(e.downloadDuration=Math.round(t.responseEnd-t.responseStart)),t.secureConnectionStart>0&&t.requestStart>0&&(e.tlsNegotiationDuration=Math.round(t.requestStart-t.secureConnectionStart)),t.workerStart>0&&(e.serviceWorkerDuration=Math.round(t.fetchStart-t.workerStart)),e.transferSize=t.transferSize,e.encodedBodySize=t.encodedBodySize,e.decodedBodySize=t.decodedBodySize,e.isCached=t.transferSize===0,e.isCompressed=t.decodedBodySize!==t.encodedBodySize),e}function p(t){let n=t.slice();for(let e=n.length-1;e>0;e--){let r=Math.floor(Math.random()*(e+1)),d=n[e];n[e]=n[r],n[r]=d}return n.slice(0,Math.min(s,n.length))}function a(){if(i){o("Sampled network resources already sent, skipping");return}let n=performance.getEntriesByType("resource").filter(function(h){return!m(h)}),e=p(n).map(l);if(e.length===0){i=!0,o("No network resources found, skipping");return}let r={sampleSize:e.length,totalResourceCount:n.length,resources:e};o("Sampled network resources collected",r),window.renderbetter.collect({type:"metric",name:"network_resources",value:e.length,attribution:JSON.stringify(r)}),i=!0}document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a()}),window.addEventListener("pagehide",a)})();})(); 8(()=>{function ht(t){let r=t.match(/at\s+(.+?)\s+\((.+?):(\d+):(\d+)\)/);if(r)return{functionName:r[1],file:r[2],line:+r[3],column:+r[4]};let o=t.match(/at\s+(https?:\/\/.+?):(\d+):(\d+)/);if(o)return{file:o[1],line:+o[2],column:+o[3]};let i=t.match(/(.+?)@(.+?):(\d+):(\d+)/);return i?{functionName:i[1]||void 0,file:i[2],line:+i[3],column:+i[4]}:null}function Et(t){if(!t)return[];let r=t.split(` 9`),o=[];for(let i=0;i<r.length&&o.length<5;i++){let l=ht(r[i]);l&&o.push(l)}return o}function bt(t){let r=new Set,o=[];for(let i of t)i.file&&!r.has(i.file)&&(r.add(i.file),o.push(i.file));return o}function Ct(t){if(!t)return;let r=t.split(` 10`);return r.length<=5+1?t:r.slice(0,5+1).join(` 11`)}function yt(t){return t.length<=500?t:`${t.slice(0,500)}\u2026`}function ye(t){let r=Et(t.stack),o=r[0]||void 0,i=t.url,l=t.line,c=t.column;if(o&&o.file){let d=i&&!i.includes(".js");(!i||d)&&(i=o.file,l=o.line,c=o.column)}else o&&(!l&&o.line&&(l=o.line),!c&&o.column&&(c=o.column));let f=bt(r);return{type:t.type,message:yt(t.message),stack:Ct(t.stack),url:i,line:l,column:c,topFrame:o,stackFiles:f.length>0?f:void 0}}var _t=[{reason:"cors_script_error",pattern:/^Script error\.?$/},{reason:"cors_script_error",pattern:/^Javascript error: Script error\.? on line 0$/},{reason:"resize_observer_loop",pattern:/^ResizeObserver loop completed with undelivered notifications\.$/},{reason:"resize_observer_loop",pattern:/^ResizeObserver loop limit exceeded$/},{reason:"gtm_adblock_googletag",pattern:/^Cannot redefine property: googletag$/},{reason:"google_search_app_gmo",pattern:/^Can't find variable: gmo$/},{reason:"unactionable_a_property",pattern:/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/},{reason:"solana_wallet_extension",pattern:/can't redefine non-configurable property "solana"/},{reason:"gtm_getrestrictions",pattern:/vv\(\)\.getRestrictions is not a function/},{reason:"instagram_webview_autofill",pattern:/Can't find variable: _AutofillCallbackHandler/},{reason:"cefsharp_simulate_event",pattern:/Object Not Found Matching Id:\d+, MethodName:simulateEvent/},{reason:"fb_android_webview_java",pattern:/^Java exception was raised during method invocation$/}];function _e(t,r){if(!r)return null;let o=t?`${t}: ${r}`:r;for(let i of _t)if(i.pattern.test(r)||i.pattern.test(o))return i.reason;return null}function ke(t){if(t.stack||t.url)return!1;let r=t.type||"";if(r&&r!=="Error")return!1;let o=(t.message||"").trim();return o===""||o==="Unknown error"||o==="Error"}var kt=Math.round(2750),ne=1e3,Te=1e3,St=1e3;function we(t,r,o){let i=o.lastMutation>=t?o.lastMutation-t:void 0,l=o.lastScroll>=t?o.lastScroll-t:void 0,c=o.lastSelection>=t?o.lastSelection-t:void 0,f=o.lastNetwork>=t?o.lastNetwork-t:void 0,d=o.lastVisibilityChange?Math.abs(t-o.lastVisibilityChange):void 0,m={mutationDelayMs:i,scrollDelayMs:l,selectionDelayMs:c,networkDelayMs:f},g=i!==void 0&&i<2500,p=l!==void 0&&l<100,w=c!==void 0&&c<100,v=d!==void 0&&d<100,R=f!==void 0&&f<2500;return p||w||v?{verdict:"active",delays:m}:g?{verdict:i>=St?"slow":"active",delays:m}:R?{verdict:"active",delays:m}:r-t>=kt?{verdict:"dead",delays:m}:{verdict:"pending",delays:m}}function ve(t){for(let r of t){if(r==="body")break;
11if(r==="a")return!0}return!1}var Tt=["checkbox","radio","button","submit","reset","range"];function Re(t){if(t.isContentEditable)return!0;let r=t.tag.toLowerCase();if(r==="textarea"||r==="select"||r==="canvas")return!0;if(r==="input"){let o=(t.inputType||"").toLowerCase();return Tt.indexOf(o)===-1}return!1}var wt=["renderbetter.net","renderbetter.app",".lr-ingest.io",".ingest.sentry.io",".clarity.ms","google-analytics.com","analytics.google.com","nr-data.net",".datadoghq.com",".datadoghq.eu",".ddog-gov.com","segment.io","rudderstack.com","amplitude.com","mixpanel.com","hotjar.com","hotjar.io","fullstory.com","facebook.com/tr","googletagmanager.com","doubleclick.net","klaviyo.com/onsite","stats.g.doubleclick.net"];function Se(t,r){return r.charAt(0)==="."?t.length>r.length&&t.endsWith(r):t===r||t.endsWith("."+r)}function Le(t){let r=t.indexOf("//"),o=r===-1?0:r+2,i=t.indexOf("/",o),l=i===-1?t.slice(o):t.slice(o,i),c=(i===-1?"/":t.slice(i)).toLowerCase(),f=l.lastIndexOf("@");f!==-1&&(l=l.slice(f+1));let d=l.indexOf(":"),m=(d===-1?l:l.slice(0,d)).toLowerCase();if(!m)return!1;for(let g of wt){let p=g.indexOf("/");if(p===-1){if(Se(m,g))return!0}else if(Se(m,g.slice(0,p))&&c.indexOf(g.slice(p))===0)return!0}return!1}var P=class{constructor(){this.clicks=[]}recordClick(r,o,i){let l=this.clicks[this.clicks.length-1];if(l&&Math.abs(r-l.x)+Math.abs(o-l.y)<30&&i-l.timestamp<1e3){if(this.clicks.push({x:r,y:o,timestamp:i}),this.clicks.length===3)return this.clicks.length}else this.clicks=[{x:r,y:o,timestamp:i}];return 0}reset(){this.clicks=[]}},vt=["next","previous","prev",">","<","+","-","\u2212","\u2013"];function Rt(t,r){return/[a-z0-9]/i.test(r)?t.indexOf(r)!==-1:t===r}function re(t){if(!t)return!1;for(let r of vt)if(Rt(t,r))return!0;return!1}var Lt=["","text","search","email","password","url","tel","number"];function De(t){return Lt.indexOf(t)!==-1}var F=class{constructor(){this.velocity=0;this.direction=0;this.directionChangeCount=0;this.distance=0;this.inThrash=!1}recordMove(r,o){this.distance+=Math.abs(r)+Math.abs(o);let i=r>0?1:r<0?-1:0;i!==0&&i!==this.direction&&(this.direction=i,this.directionChangeCount++)}tick(){let r=this.distance/225,o=this.directionChangeCount;if(this.distance=0,this.directionChangeCount=0,!this.velocity)return this.velocity=r,this.inThrash=!1,!1;let i=(r-this.velocity)/225,l=o>4&&i>.008;this.velocity=r;let c=l&&!this.inThrash;return this.inThrash=l,c}reset(){this.velocity=0,this.direction=0,this.directionChangeCount=0,this.distance=0,this.inThrash=!1}};function T(t){return t.isTrusted===!1}var Dt=1e3;function Ae(t,r){return r===0?!0:t-r>Dt}function Me(t,r){return t==null?!1:t===r}function At(t){return typeof t=="number"&&Number.isFinite(t)&&t>0?Math.floor(t):0}function xe(t,r){var l;if(typeof t!="function"&&(typeof t!="object"||t===null))return;let o=t,i={present:!0,loaded:!1,pixelCount:0,eventCount:0,pixels:[],queued:0};try{i.loaded=o.loaded===!0,typeof o.version=="string"&&(i.version=o.version.slice(0,16)),Array.isArray(o.queue)&&(i.queued=o.queue.length)}catch{}try{let c=typeof o.getState=="function"?o.getState():void 0,f=Array.isArray(c==null?void 0:c.pixels)?c.pixels:[];i.pixelCount=f.length;for(let d of f){let m=At(d==null?void 0:d.eventCount);i.eventCount+=m,i.pixels.length<5&&i.pixels.push({id:String((l=d==null?void 0:d.id)!=null?l:"").slice(0,24),eventCount:m})}}catch{}try{let c=r();c&&(i.scriptStart=Math.round(c.startTime),i.scriptEnd=Math.round(c.responseEnd))}catch{}return i}function Ie(t){return/^https:\/\/connect\.facebook\.net\/[^/]+\/fbevents(\.[^/]*)?\.js(\?|$)/.test(t)}(function(){let t=window.renderbetter.getLogger("RB Analytics Engagement"),r=0,o=0,i=0,l=0,c=0,f=0,d=0,m=0,g=0,p=0,w=0,v=0,R=0,U=0,h=!0,K=Date.now();function Oe(){try{let e=performance.getEntriesByType("navigation");if(e.length>0&&e[0].type)return e[0].type}catch{}return"unknown"}let B=Oe(),oe=B==="reload",ie=B==="back_forward",G=0;function Ne(){let e="rb_reload_"+location.pathname;try{let n=Number(sessionStorage.getItem(e))||0;if(oe){let s=n+1;return sessionStorage.setItem(e,String(s)),s}return ie||sessionStorage.setItem(e,"0"),n}catch{return 0}}let He=Ne(),se=new P,Pe=15,j=[],V=[],W=[],q=[],X=[],z=[],$=[],Fe=typeof window.requestIdleCallback=="function"?e=>window.requestIdleCallback(e,{timeout:2e3}):e=>setTimeout(e,0);function C(e,n){e.length>=Pe||(e.push(n),Fe(()=>{n.element===void 0&&(n.element=he(n.target))}))}let ae=1e3,Ue=5,Ke=3,E=[],b=[],Be=1e3,S=0,A=null,L=0,M=null,x=null;function Ge(e){M=e,x!==null&&clearTimeout(x),x=setTimeout(()=>{M=null,x=null},0)}function le(e){try{let n=e&&typeof e.closest=="function"?e.closest("label"):null;return n?n.control:null}catch{return null}}let je=20,Ve=200;function We(){var e,n;try{let s=(n=(e=window.renderbetter.analyticsControls)==null?void 0:e.frustration)==null?void 0:n.ignoreSelectors;return Array.isArray(s)?s.filter(a=>
11typeof a=="string"&&a.length>0&&a.length<=Ve).slice(0,je):[]}catch{return[]}}let ce=We();function qe(e){if(!e||ce.length===0||typeof e.closest!="function")return!1;for(let n of ce)try{if(e.closest(n))return!0}catch{}return!1}function Xe(e){if(!e||!e.tagName)return!1;let n=e.tagName.toLowerCase();if(n==="textarea")return!0;if(n==="input")return De((e.getAttribute("type")||"").toLowerCase());let s=e.getAttribute&&e.getAttribute("contenteditable");return e.isContentEditable===!0||s==="true"||s===""}let ze=10,Y=30;function $e(e){let n="",s=e.childNodes;for(let a=0;s&&a<s.length&&n.length<=Y;a++){let u=s[a];u.nodeType===3&&u.textContent&&(n+=u.textContent)}return n.slice(0,Y).trim().toLowerCase()}function Ye(e){let n=e;for(let s=0;n&&n!==document.body&&s<ze;s++){try{let a=n.getAttribute&&n.getAttribute("aria-label")||"";if(a&&re(a.slice(0,Y).trim().toLowerCase())||re($e(n)))return!0}catch{return!1}n=n.parentElement}return!1}function Je(e){let n=Z(e);if(Xe(n)||Ye(n))return;let s=Date.now(),a=se.recordClick(e.clientX,e.clientY,s);a!==0&&(I&&s-I<1e3||(i++,C(j,{target:n,time:s,count:a})))}let ue=0,de=0,I=0,fe=0,J=0,y=[],_=null;try{new MutationObserver(()=>{ue=Date.now()}).observe(document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0})}catch{}window.addEventListener("scroll",()=>{de=Date.now()},{capture:!0,passive:!0}),document.addEventListener("selectionchange",()=>{I=Date.now()},{passive:!0}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&(fe=Date.now())});try{new PerformanceObserver(function(n){let s=n.getEntries();for(let a of s){if(Le(a.name))continue;let u=Date.now()-Math.max(0,performance.now()-a.startTime);u>J&&(J=u)}}).observe({type:"resource",buffered:!1})}catch{}function Ze(e){return e.ctrlKey||e.metaKey||e.altKey||e.shiftKey}function Z(e){let n=e.target;return n&&n.shadowRoot?e.composedPath()[0]||null:n}function Qe(e){let n=typeof e.composedPath=="function"?e.composedPath():[],s=[];for(let a of n){let u=a.tagName;if(u&&s.push(u.toLowerCase()),a===document.body)break}return s}function et(e){return le(e)||e}function tt(e){let n=Z(e);if(!n||n===document.documentElement||n===document.body||Ze(e)||ve(Qe(e)))return;n=et(n);let s=!1;try{s=typeof n.closest=="function"&&n.closest("[contenteditable]")!==null}catch{}if(Re({tag:n.tagName||"",inputType:n.getAttribute&&n.getAttribute("type")||null,isContentEditable:s}))return;let a=Date.now();y.some(u=>u.target===n&&a-u.time<Te)||(y.push({target:n,time:a}),_===null&&(_=setTimeout(me,ne)))}function me(){_=null;let e=Date.now(),n={lastMutation:ue,lastScroll:de,lastSelection:I,lastVisibilityChange:fe,lastNetwork:J};for(let s=y.length-1;s>=0;s--){let a=y[s],{verdict:u,delays:H}=we(a.time,e,n);u!=="pending"&&(u==="dead"?(l++,C(V,{target:a.target,time:a.time,detail:{...H}})):u==="slow"&&(c++,C(W,{target:a.target,time:a.time,detail:{responseDelayMs:H.mutationDelayMs}})),y.splice(s,1))}y.length>0&&(_=setTimeout(me,ne))}function nt(){y.length=0,_!==null&&(clearTimeout(_),_=null)}let Q=!1,ge=0,rt=200;function ot(){Q=!1;let e=Date.now();if(e-ge<rt)return;ge=e;let n=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),s=window.scrollY,a=window.innerHeight,u=Math.round((s+a)/n*100);u>r&&(r=u)}window.addEventListener("scroll",()=>{Q||(Q=!0,window.requestAnimationFrame(ot))},{passive:!0}),window.addEventListener("click",e=>{if(T(e)){m++,Ae(Date.now(),L)&&g++;return}let n=Z(e);if(Me(M,n)){M=null;return}let s=le(n);s&&s!==n&&Ge(s),S=Date.now(),L=S,A=n,o++,!qe(n)&&(Je(e),tt(e))},{passive:!0,capture:!0}),window.addEventListener("touchend",e=>{T(e)||e.changedTouches.length>0&&(S=Date.now(),L=S,A=e.target)},{passive:!0,capture:!0}),window.addEventListener("pointerdown",e=>{T(e)||(L=Date.now())},{passive:!0,capture:!0});let O=new F,D=null;function it(e){T(e)||O.recordMove(e.movementX,e.movementY)}function st(){O.tick()&&(f++,C(q,{target:null,time:Date.now()}))}function ee(){D===null&&(D=setInterval(st,225))}function pe(){D!==null&&(clearInterval(D),D=null,O.reset())}window.addEventListener("mousemove",it,{passive:!0}),document.visibilityState==="visible"&&ee(),window.addEventListener("error",e=>{if(!S||Date.now()-S>Be||!e.error)return;let n=e.error,s=ye({type:n.name||"Error",message:n.message||"Unknown error",stack:n.stack,url:e.filename,line:e.lineno,column:e.colno});_e(s.type,s.message)!==null||ke(s)||(d++,C(X,{target:A,time:Date.now(),error:s}))},{passive:!0,capture:!0});function at(e){if(T(e)||(L=Date.now(),e.isComposing)||typeof e.key!="string"||e.key.length!==1&&e.key!=="Backspace"&&e.key!=="Enter")return;v++;let n=Date.now();if(e.key==="Backspace"){for(R++,E.push(n);E.length>0&&n-E[0]>ae;)E.shift();E.length>=Ue&&(p++,C(z,{target:document.activeElement,time:n,count:E.length}),E.length=0)}else if(e.key==="Enter"){for(U++,b.push(n);b.length>0&&n-b[0]>ae;)b.shift();b.length>=Ke&&(w++,C($,{target:document.activeElement,time:n,count:b.length}),b.length=0)}}window.addEventListener("keydown",at,{passive:!0,capture:!0});function he(e){if(!e)return null;try{let n=e.tagName?e.tagName.toLowerCase():"unknown",s=e.id||void 0,a=e.getAttribute&&e.getAttribute("class"),u=a?a.trim().split(/\s+/).slice(0,3).join(" "):void 0,H=e.getAttribute&&e.getAttribute("role")||void 0,ft=e.getAttribute&&e.getAttribute("name")||void 0,mt=e.getAttribute&&e.getAttribute("type")||void 0,te=e.href,gt=typeof te=="string"&&te?Ee(te,120):void 0,Ce=(e.textContent||"").trim().replace(/\s+/g," "),pt=Ce?Ee(Ce,80):void 0;return{tag:n,id:s,classes:u,role:H,name:ft,type:mt,href:gt,text:pt,selector:window.renderbetter.getElementSelector(e)}}catch{return null}}function Ee(e,n){return Array.from(e).slice(0,n).join("")}function k(e){return e.map(n=>({time:n.time,count:n.count,element:n.element!==void 0?n.element:he(n.target),error:n.error,detail
11:n.detail}))}let N;function lt(){if(N)return N;let e=document.querySelector('script[src*="connect.facebook.net"][src*="fbevents"]');if(!(!e||!Ie(e.src)))return N=performance.getEntriesByName(e.src,"resource")[0],N}function ct(){try{return xe(window.fbq,lt)}catch{return}}function ut(){let e=Date.now()-K,n=e<3e3,s=window.renderbetter.chatWidgetEngagements.splice(0),a=ct(),u={timeOnPage:e,maxScrollDepthPercent:r,interactions:o,rageClicks:i,deadClicks:l,slowClicks:c,mouseThrashing:f,errorClicks:d,untrustedClicks:m,orphanUntrustedClicks:g,totalKeyPresses:v,backspaceCount:R,enterCount:U,rageBackspaces:p,rageEnters:w,navigationType:B,isReload:oe,isBackForward:ie,reloadCount:He,quickExit:n,...G>0?{bfcacheRestoreCount:G}:{},rageClickEvents:k(j),deadClickEvents:k(V),slowClickEvents:k(W),mouseThrashingEvents:k(q),errorClickEvents:k(X),rageBackspaceEvents:k(z),rageEnterEvents:k($),chatWidgetEngagedEvents:s,...a?{fbPixel:a}:{}};t("Sending engagement metrics",u),window.renderbetter.collect({type:"metric",name:"engagement",attribution:JSON.stringify(u)})}function be(){ut(),K=Date.now(),r=0,o=0,i=0,l=0,c=0,f=0,d=0,m=0,g=0,v=0,R=0,U=0,p=0,w=0,se.reset(),O.reset(),E.length=0,b.length=0,j.length=0,V.length=0,W.length=0,q.length=0,nt(),X.length=0,z.length=0,$.length=0,A=null}function dt(){t("Visibility changed",document.visibilityState);let e=h;h=document.visibilityState==="visible",e&&!h&&be(),h?ee():pe()}document.addEventListener("visibilitychange",dt,{passive:!0}),window.addEventListener("pagehide",()=>{h&&(t("Sending engagement metrics on pagehide"),h=!1,pe(),be())},{passive:!0}),window.addEventListener("pageshow",e=>{e.persisted&&(t("Restored from bfcache, resetting the engagement window"),G++,K=Date.now(),h=document.visibilityState==="visible",h&&ee())})})();})(); 12(()=>{(function(){var y;function f(t){try{let e=document.cookie.split("; ");for(let r of e){let[i,...n]=r.split("=");if(i===t)return n.join("=")}return null}catch{return null}}function g(t){try{let e=[],r=document.cookie.split("; ");for(let i of r){let[n,...o]=i.split("=");n.startsWith(t)&&e.push({name:n,value:o.join("=")})}return e}catch{return[]}}function x(){var t;try{let e=(t=window.intelligems)==null?void 0:t.experiments;if(!e)return[];let r=[];for(let i of Object.keys(e))try{let n=e[i],o=(n==null?void 0:n.variantId)||(n==null?void 0:n.variant);o&&r.push({platform:"intelligems",experimentId:i,variantId:String(o)})}catch{}return r}catch{return[]}}function v(){var t,e,r,i;try{let n=(e=(t=window.optimizely)==null?void 0:t.get)==null?void 0:e.call(t,"state");if(!n)return[];let o=[];try{let c=(r=n.getVariationMap)==null?void 0:r.call(n);if(c){for(let a of Object.keys(c))try{let s=c[a];s!=null&&s.id&&o.push({platform:"optimizely",experimentId:a,variantId:String(s.id)})}catch{}if(o.length>0)return o}}catch{}try{let c=((i=n.getActiveExperimentIds)==null?void 0:i.call(n))||[];for(let a of c)o.push({platform:"optimizely",experimentId:a,variantId:"unknown"})}catch{}return o}catch{return[]}}function I(){try{let t=g("_vis_opt_exp_"),e=[];for(let r of t)try{if(!r.name.endsWith("_combi"))continue;let i=r.name.slice(13,-6);i&&r.value&&e.push({platform:"vwo",experimentId:i,variantId:r.value})}catch{}return e}catch{return[]}}function E(){var t,e,r;try{let i=(e=(t=window.ABTasty)==null?void 0:t.getTestsOnPage)==null?void 0:e.call(t);if(!i)return[];let n=[];for(let o of Object.keys(i))try{let c=(r=i[o])==null?void 0:r.variationID;c!=null&&n.push({platform:"abtasty",experimentId:o,variantId:String(c)})}catch{}return n}catch{return[]}}function T(){try{let t=f("_gaexp");if(!t)return[];let e=[],i=t.replace(/^GAX[\d.]+\./,"").split("!");for(let n of i)try{let o=n.split(".");o.length>=3&&e.push({platform:"google_optimize",experimentId:o[0],variantId:o[o.length-1]})}catch{}return e}catch{return[]}}function w(){var t,e;try{let r=(e=(t=window.growthbook)==null?void 0:t.getAllResults)==null?void 0:e.call(t);if(!r||typeof r.forEach!="function")return[];let i=[];return r.forEach(function(o,c){try{(o==null?void 0:o.variationId)!=null&&i.push({platform:"growthbook",experimentId:String(c),variantId:String(o.variationId)})}catch{}}),i}catch{return[]}}function p(){let t=[];try{t.push(...x())}catch{}try{t.push(...v())}catch{}try{t.push(...I())}catch{}try{t.push(...E())}catch{}try{t.push(...T())}catch{}try{t.push(...w())}catch{}return t}window.renderbetter.getThirdPartyExperiments=p;let m=(y=window.renderbetter.analyticsControls)==null?void 0:y.thirdPartyExperiments;if(m&&m.enabled===!1)return;let h=window.renderbetter.getLogger("RB Analytics Third-Party Experiments"),u=new Set;function k(){let t;try{t=p()}catch{return}let e=[];for(let r of t){let i=`${r.platform}::${r.experimentId}::${r.variantId}`;u.has(i)||(u.add(i),e.push(r))}if(e.length!==0)try{window.renderbetter.collect({type:"metric",name:"third_party_experiments_detected",value:e.length,attribution:JSON.stringify({experiments:e})}),h("Emitted third_party_experiments_detected",e)}catch(r){h("Failed to emit third_party_experiments_detected",r)}}let d=0,P=8;function l(){d++,k(),d<P&&setTimeout(l,500*Math.min(d,6))}setTimeout(l,0)})();})(); 13(()=>{(function(){var A;let s=window.renderbetter.getLogger("RB Analytics Chat Widget Engagement"),d=(A=window.renderbetter.analyticsControls)==null?void 0:A.chatWidgetEngagement;if(d&&d.enabled===!1){s("Chat widget engagement disabled via anal
13ytics-controls config");return}let L=["live chat","livechat","chat with","chat now","chat","messenger","message us","send us a message","talk to us","talk to an","help","support","ask us","ask a question","contact us"],f=[{token:"intercom",platform:"intercom"},{token:"zendesk",platform:"zendesk"},{token:"zopim",platform:"zendesk"},{token:"gorgias",platform:"gorgias"},{token:"tidio",platform:"tidio"},{token:"tawk",platform:"tawk"},{token:"drift",platform:"drift"},{token:"hubspot",platform:"hubspot"},{token:"kustomer",platform:"kustomer"},{token:"crisp",platform:"crisp"},{token:"olark",platform:"olark"},{token:"livechat",platform:"livechat"},{token:"freshchat",platform:"freshchat"},{token:"freshworks",platform:"freshchat"}];function m(...t){let e=t.filter(Boolean).join(" ").toLowerCase();if(!e)return"generic";for(let n of f)if(e.includes(n.token))return n.platform;return"generic"}function C(t){let e=t.getAttribute("aria-label")||"",n=t.getAttribute("title")||"",r=t.getAttribute("alt")||"",i=t.textContent||"";return`${e} ${n} ${r} ${i}`.trim().toLowerCase()}function N(t){if(!t)return!1;for(let e of L)if(t.includes(e))return!0;return!1}function v(t){let e=t.tagName.toLowerCase();if(e==="button"||e==="a")return!0;let n=t.getAttribute("role");return n==="button"||n==="link"?!0:t.hasAttribute("tabindex")}function T(t){try{let e=window.getComputedStyle(t);return e.position!=="fixed"&&e.position!=="sticky"?!1:t.getBoundingClientRect().top>window.innerHeight*.4}catch{return!1}}function F(t){try{let e=t.getBoundingClientRect();if(e.width<=0||e.height<=0)return!1;let n=window.getComputedStyle(t);return n.visibility!=="hidden"&&n.display!=="none"&&n.opacity!=="0"}catch{return!1}}let g=new Set;function I(t){if(!t)return null;try{return window.renderbetter.getElementSelector(t)}catch{return null}}function h(t,e,n){let r=`${t}::${e}`;if(g.has(r))return;g.add(r);let i=I(n),o=Date.now();try{window.renderbetter.chatWidgetEngagements.push({platform:t,action:e,selector:i,timestamp:o}),s("Recorded chat_widget_engaged",{platform:t,action:e,selector:i,timestamp:o})}catch(a){s("Failed to record chat_widget_engaged",a)}}let c=new WeakSet,l=new WeakSet;function M(t){if(c.has(t))return;c.add(t);let e=m(t.id,t.className&&typeof t.className=="string"?t.className:null,t.getAttribute("data-testid"),t.getAttribute("aria-label"));t.addEventListener("click",function(){h(e,"opened",t)},{capture:!0,passive:!0}),s("Wired chat launcher",{platform:e,el:t})}let b='button, a[role="button"], a[href], [role="button"], [tabindex]';function k(t){c.has(t)||v(t)&&T(t)&&F(t)&&N(C(t))&&M(t)}function p(t){t instanceof Element&&t.matches(b)&&k(t);let e=t.querySelectorAll(b);for(let n=0;n<e.length;n++)k(e[n])}function w(t){let e=t.getAttribute("src")||"",n=t.id||"",r=t.getAttribute("title")||"",i=(typeof t.className=="string"?t.className:"")||"",o=`${e} ${n} ${r} ${i}`.toLowerCase();if(!o.trim())return!1;for(let a of f)if(o.includes(a.token))return!0;return o.includes("chat")||o.includes("messenger")||o.includes("support")}function E(t){l.has(t)||w(t)&&(l.add(t),s("Tracking chat iframe",{src:t.getAttribute("src"),id:t.id}))}function y(t){let e=t.querySelectorAll("iframe");for(let n=0;n<e.length;n++)E(e[n])}window.addEventListener("blur",function(){setTimeout(function(){let n=document.activeElement;if(!n||n.tagName!=="IFRAME")return;let r=n;if(!l.has(r)&&!w(r))return;let i=m(r.getAttribute("src"),r.id,typeof r.className=="string"?r.className:null,r.getAttribute("title"));h(i,"opened",r)},0)});function u(){try{p(document),y(document)}catch(t){s("Chat scan failed",t)}}setTimeout(u,0),setTimeout(u,1500),setTimeout(u,5e3);try{new MutationObserver(function(n){for(let r=0;r<n.length;r++){let i=n[r];for(let o=0;o<i.addedNodes.length;o++){let a=i.addedNodes[o];a instanceof Element&&(a.tagName==="IFRAME"?E(a):y(a),p(a))}}}).observe(document.documentElement||document.body,{childList:!0,subtree:!0})}catch(t){s("Failed to install chat MutationObserver",t)}})();})(); 14(()=>{(function(){var d;if(!((d=window.renderbetter.analyticsControls)!=null&&d.addSessionToCartAttributes))return;let e=window.renderbetter.getLogger("RB Analytics Cart Attributes"),t=window.Shopify;if(!(!!t&&typeof t=="object"&&typeof t.shop=="string"&&t.shop.length>0&&(typeof t.routes=="object"||typeof t.currency!="undefined"))){e("window.Shopify storefront markers absent \u2014 skipping cart attribute write");return}let o=t.routes&&t.routes.root||"/",i=o.endsWith("/")?o:`${o}/`,u=`${i}cart/update.js`;if(window.location.pathname===`${i}cart`||window.location.pathname===`${i}cart/`){e("On /cart page \u2014 skipping cart attribute write to avoid racing user edits");return}let f="render_better_session_id",p="render_better_ab";function w(r,c){let s={[f]:r};c&&(s[p]=c);try{fetch(u,{method:"POST",credentials:"same-origin",keepalive:!0,headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({attributes:s})}).then(function(n){if(!n.ok){e("Cart attribute write returned non-OK",n.status);return}e("Wrote cart attributes",s)}).catch(function(n){e("Cart attribute write failed",n)})}catch(a){e("Cart attribute write threw synchronously",a)}}function b(){var r;return(r=window.renderbetter.analyticsProperties)==null?void 0:r.variantId}function l(){let r=window.renderbetter.rbSessionId;if(!r){e("No rbSessionId after init \u2014 analytics likely disabled for compliance");return}w(r,b())}window.renderbetter.addInitializedListener(l)})();})(); 15(()=>{function Ce(n,o=8){return typeof n!="number"||!Number.isFinite(n)?!1:n<o}function Ie(n,o=4){return typeof n!="number"||!Number.isFinite(n)?!1:n>=o}function Ae(n,o){return!Number.isFinite(n)||!Number.isFinite(o)?0:Math.max(0,n-o)}function q(n,o,a=2){return!Number.isFinite(o)||o<=0?!1:Ae(n,o)>a}function Ct(n,o){let a=typeof n=="string"?n:"visible";
15return a!=="visible"?a:typeof o=="string"?o:"visible"}function K(n,o){let a=Ct(n,o);return a!=="hidden"&&a!=="clip"}function Z(n,o){return!Number.isFinite(n)||!Number.isFinite(o)?Number.POSITIVE_INFINITY:Math.abs(n-o)}function Pe(n,o){return n.slice().sort(function(f,b){return Z(f.documentRight,o)-Z(b.documentRight,o)})}function Be(n,o){let f=!(n==="absolute"),b=!1,O=n==="fixed",T=0;for(let u of o)if(T++,u.isContainingBlock&&(f=!0),f&&u.overflowX&&u.overflowX!=="visible"&&(b=!0),u.position==="fixed"&&(O=!0),b||O)break;return{isClipped:b,isFixed:O,depth:T}}function It(n,o,a=2){return n.isClipped||n.isFixed||!(n.width>0)||!(n.height>0)||!Number.isFinite(n.documentRight)?!1:n.documentRight-o>a}function At(n,o=160){return typeof n!="string"?"":n.length<=o?n:`\u2026${n.slice(n.length-o+1)}`}function Pt(n,o,a,f=5,b=2){let T=n.filter(function(c){return It(c,o,b)}).map(function(c,p){return{candidate:c,index:p,overflow:c.documentRight-o,distance:Z(c.documentRight,a)}}).sort(function(c,p){return c.distance!==p.distance?c.distance-p.distance:p.candidate.depth!==c.candidate.depth?p.candidate.depth-c.candidate.depth:c.index-p.index}),u=new Set,M=[];for(let g of T){if(M.length>=f)break;let c=At(g.candidate.selector);u.has(c)||(u.add(c),M.push({sel:c,tag:g.candidate.tagName,over:Math.round(g.overflow),dist:Number.isFinite(g.distance)?Math.round(g.distance):-1,w:Math.round(g.candidate.width),depth:g.candidate.depth}))}return M}function De(n,o,a,f=2){return!q(n.scrollWidth,n.clientWidth,f)||!K(n.htmlOverflowX,n.bodyOverflowX)?null:{overflowBy:Math.round(Ae(n.scrollWidth,n.clientWidth)),scrollWidth:Math.round(n.scrollWidth),clientWidth:Math.round(n.clientWidth),innerWidth:Math.round(n.innerWidth),innerHeight:Math.round(n.innerHeight),candidates:Pt(o,n.clientWidth,n.scrollWidth,5,f),elementsScanned:a.elementsScanned,scanTruncated:a.scanTruncated,detections:1}}function _e(n,o){return o?n?{...o.overflowBy>n.overflowBy?o:n,detections:n.detections+o.detections}:o:n}(function(){var fe,ge,be,pe;let o=window.renderbetter.getLogger("RB Analytics Page Weight"),a=null,f=null,b=null,O=null,T=null,u=!1,M=+"0.1",g=Math.random()<M,c=null,p=!1,$=!1;function L(){return{nodes:document.querySelectorAll("*").length,images:document.querySelectorAll("img").length,videos:document.querySelectorAll("video").length,scripts:document.querySelectorAll("script").length,styles:document.querySelectorAll('style, link[rel="stylesheet"]').length,iframes:document.querySelectorAll("iframe").length}}let C=null,j=0,Y=-1,J=-1;function Me(e){let t=Math.min(e.cursor+400,e.scanLimit);for(let r=e.cursor;r<t;r++){let i=e.elements[r],s=i.getBoundingClientRect();if(!(s.width>0)||!(s.height>0))continue;let l=s.right+e.scrollX;l-e.clientWidth<=2||e.measured.push({element:i,documentRight:l,width:s.width,height:s.height})}return e.cursor=t,e.cursor>=e.scanLimit}function Ne(e){var P,B,D;let{element:t}=e,r=window.getComputedStyle(t),i=r.position==="absolute"?t.offsetParent:null,s=[],l=t.parentElement;for(;l&&l!==document.body&&l!==document.documentElement;){let _=window.getComputedStyle(l);if(s.push({overflowX:_.overflowX,position:_.position,isContainingBlock:i!==null&&l===i}),s.length>=40)break;l=l.parentElement}let{isClipped:d,isFixed:R,depth:h}=Be(r.position,s),E=We(t),A=E.element.getBoundingClientRect();return{selector:(D=(B=(P=window.renderbetter).getElementSelector)==null?void 0:B.call(P,E.element))!=null?D:"",tagName:E.element.tagName.toLowerCase(),documentRight:e.documentRight,width:A.width,height:A.height,depth:Math.max(0,h-E.hops),isFixed:R,isClipped:d}}function We(e){let t=e,r=0,i=e.parentElement,s=0,l=e.getBoundingClientRect().right;for(;i&&i!==document.body&&i!==document.documentElement&&s++<40;){let d=i.getBoundingClientRect().right;if(Math.abs(d-l)>1)break;t=i,r=s,i=i.parentElement}return{element:t,hops:r}}function Q(){(window.requestIdleCallback||function(r){return setTimeout(r,200)})(ze)}function ze(e){let t=C;if(!t||u){C=null;return}try{let r=function(){return e?e.timeRemaining():null},i=performance.now(),s=!0;for(;s||Ie(r())&&Ce(performance.now()-i);){if(s=!1,t.phase==="measuring"){Me(t)&&(t.toResolve=Pe(t.measured,t.scrollWidth).slice(0,25),t.phase="resolving");continue}let l=t.toResolve.splice(0,5);for(let d of l)t.resolved.push(Ne(d));if(t.toResolve.length===0){xe(t);return}}Q()}catch(r){C=null,o("Horizontal overflow scan failed",r)}}function xe(e){C=null,j++;let t=document.documentElement.clientWidth,r=document.documentElement.scrollWidth;if(r!==e.scrollWidth||t!==e.clientWidth){o("Horizontal overflow geometry changed mid-scan; discarding this pass",{gate:{scrollWidth:e.scrollWidth,clientWidth:e.clientWidth},now:{scrollWidth:r,clientWidth:t}});return}Y=e.scrollWidth,J=e.clientWidth;let i=De({scrollWidth:e.scrollWidth,clientWidth:e.clientWidth,innerWidth:window.innerWidth,innerHeight:window.innerHeight,htmlOverflowX:e.htmlOverflowX,bodyOverflowX:e.bodyOverflowX}
15,e.resolved,{elementsScanned:e.cursor,scanTruncated:e.elements.length>e.scanLimit});c=_e(c,i),o("Horizontal overflow detected",i)}function Fe(){if(!(!g||u||C)&&!(j>=4))try{let e=document.documentElement;if(!e||!document.body)return;let t=e.clientWidth,r=e.scrollWidth;if(p=!0,!q(r,t))return;let i=window.getComputedStyle(e).overflowX,s=window.getComputedStyle(document.body).overflowX;if(!K(i,s)){$=!0;return}if(r===Y&&t===J)return;let l=document.body.querySelectorAll("*");C={phase:"measuring",elements:l,cursor:0,scanLimit:Math.min(l.length,2e4),clientWidth:t,scrollWidth:r,htmlOverflowX:i,bodyOverflowX:s,scrollX:window.scrollX||0,measured:[],toResolve:[],resolved:[]},Q()}catch(e){C=null,o("Horizontal overflow scan failed",e)}}function S(e,t){return e+(t.transferSize||0)}function y(e,t){return e+(t.encodedBodySize||0)}function w(e,t){return e+(t.decodedBodySize||0)}function I(e){return{count:e.length,transferSize:e.reduce(S,0),encodedBodySize:e.reduce(y,0),decodedBodySize:e.reduce(w,0)}}function ee(e){let t=e.name.toLowerCase();return t.endsWith(".gif")||t.includes(".gif?")}function te(e){return e.initiatorType==="img"&&ee(e)}function ne(e){return e.initiatorType==="img"&&!ee(e)}function V(e){return e.initiatorType==="video"||e.initiatorType==="media"}function oe(e){return e.initiatorType==="script"}function W(e){return e.initiatorType==="link"}function He(e){return e.initiatorType==="iframe"}function re(e){return e.initiatorType==="css"}let Xe=/\.(avif|webp|png|jpe?g|gif|svg|ico|bmp)$/i,ke=/\.(woff2?|ttf|otf|eot)$/i,Ve=/\.m?js$/i,Ue=/\.css$/i;function Ge(e){try{return new URL(e,document.baseURI).pathname}catch{return e}}function Ze(e){let t=Ge(e);return Xe.test(t)?"image":ke.test(t)?"font":Ue.test(t)?"style":Ve.test(t)?"script":"unknown"}function U(e){try{return new URL(e,document.baseURI).href}catch{return e}}function qe(e){if((e.getAttribute("rel")||"").toLowerCase().indexOf("modulepreload")!==-1)return"script";switch((e.getAttribute("as")||"").toLowerCase()){case"image":return"image";case"font":return"font";case"script":return"script";case"style":return"style";default:return"unknown"}}let Ke='link[rel~="preload"],link[rel~="modulepreload"],link[rel~="prefetch"]';function $e(){let e=new Map,t=document.querySelectorAll(Ke);for(let r=0;r<t.length;r++){let i=t[r],s=qe(i);if(s==="unknown")continue;let l=i.getAttribute("href");l&&e.set(U(l),s);let d=i.getAttribute("imagesrcset");if(d)for(let R of d.split(",")){let h=R.trim().split(/\s+/)[0];h&&e.set(U(h),s)}}return e}let ie=new Map;function je(){ie=$e()}let se=new Map;function le(e){var i;let t=se.get(e.name);if(t!==void 0)return t;let r=(i=ie.get(U(e.name)))!=null?i:Ze(e.name);return se.set(e.name,r),r}function G(e){return function(r){return le(r)===e}}let z=G("image"),ae=G("font"),Ye=G("script");function Je(e){return W(e)&&z(e)}function Qe(e){return e.initiatorType==="img"||z(e)}function N(e,t){je();let r=t.length,i=t.reduce(S,0),s=t.reduce(y,0),l=t.reduce(w,0),d=t.filter(te),R=t.filter(ne),h=t.filter(V),E=t.filter(oe),A=t.filter(W),P=t.filter(Je),B=t.filter(re),D=I(R),_=I(d),x=I(h),F=I(E),H=I(A),X=I(P),k=I(B);return{timestamp:performance.now(),dom:e,images:D,gifs:_,videos:x,scripts:F,css:H,preloadImages:X,cssInitiated:k,totalResources:r,totalTransferSize:i,totalEncodedSize:s,totalDecodedSize:l}}function ce(){u||(T=L(),Fe())}function ue(){if(u){o("Page weight metrics already sent, skipping");return}o("Collecting page weight metrics");let e=performance.getEntriesByType("resource"),t=T||L(),r=N(t,e),i=e.filter(te),s=e.filter(ne),l=e.filter(V),d=e.filter(oe),R=e.filter(W),h=e.filter(He),E=0,A=0,P=0,B=0,D=0,_=0,x=0,F=0,H=0,X=0,k=0,he=0,Se=0,ye=0,we=0,Re=0,Ee=0,ve=0,Oe=0;for(let m of e){m.transferSize===0&&m.decodedBodySize===0&&E++;let v=m.transferSize||0;if(Qe(m)&&(ve++,Oe+=v),W(m)){z(m)?(A++,P+=v):ae(m)?(B++,D+=v):Ye(m)?(_++,x+=v):le(m)==="unknown"&&(F++,H+=v);continue}if(re(m)){X++,k+=v,z(m)?(he++,Se+=v):ae(m)&&(ye++,we+=v);continue}m.initiatorType!=="img"&&m.initiatorType!=="script"&&m.initiatorType!=="iframe"&&!V(m)&&(Re++,Ee+=v)}let rt=e.reduce(S,0),it=e.reduce(y,0),st=e.reduce(w,0),lt=s.reduce(S,
150),at=s.reduce(w,0),ct=s.reduce(y,0),ut=i.reduce(S,0),dt=i.reduce(w,0),mt=i.reduce(y,0),ft=l.reduce(S,0),gt=l.reduce(w,0),bt=l.reduce(y,0),pt=d.reduce(S,0),ht=d.reduce(w,0),St=d.reduce(y,0),yt=R.reduce(S,0),wt=R.reduce(w,0),Rt=R.reduce(y,0),Et=h.reduce(S,0),vt=h.reduce(w,0),Ot=h.reduce(y,0),Tt={totalDomNodes:r.dom.nodes,totalEncodedSize:it,totalDecodedSize:st,totalTransferSize:rt,totalResources:e.length,totalIframes:r.dom.iframes,totalIframeBytes:Et,totalDecodedIframeBytes:vt,totalEncodedIframeBytes:Ot,totalImages:r.dom.images,totalTransferImageBytes:lt,totalDecodedImageBytes:at,totalEncodedImageBytes:ct,totalGifs:i.length,totalTransferGifBytes:ut,totalDecodedGifBytes:dt,totalEncodedGifBytes:mt,totalVideos:r.dom.videos,totalTransferVideoBytes:ft,totalDecodedVideoBytes:gt,totalEncodedVideoBytes:bt,totalScripts:r.dom.scripts,totalScriptBytes:pt,totalDecodedScriptBytes:ht,totalEncodedScriptBytes:St,totalStyles:r.dom.styles,totalStyleBytes:yt,totalDecodedStyleBytes:wt,totalEncodedStyleBytes:Rt,totalPreloadImages:A,totalPreloadImageBytes:P,totalPreloadFonts:B,totalPreloadFontBytes:D,totalPreloadScripts:_,totalPreloadScriptBytes:x,totalPreloadUnknown:F,totalPreloadUnknownBytes:H,totalCssInitiated:X,totalCssInitiatedBytes:k,totalCssInitiatedImages:he,totalCssInitiatedImageBytes:Se,totalCssInitiatedFonts:ye,totalCssInitiatedFontBytes:we,totalUnattributed:Re,totalUnattributedBytes:Ee,totalImageResources:ve,totalImageDestinationBytes:Oe,resourcesWithoutTimingAccess:E},Te={horizontalOverflow:c,horizontalOverflowScanned:p,horizontalOverflowSuppressed:$,domContentLoadedStats:a,loadEventStats:f,postLoadEventStats:r,fcpStats:b,lcpStats:O,summary:Tt};o("Page weight metrics collected",Te),window.renderbetter.collect({type:"metric",name:"page_weight",value:r.dom.nodes,attribution:JSON.stringify(Te)}),u=!0}function de(e){return function(r){return r.responseEnd<=e}}function et(){let e=L(),t=performance.getEntriesByType("resource");a=N(e,t),o("DOM stats captured on DOMContentLoaded",a)}document.addEventListener("DOMContentLoaded",et);function tt(e){let t=L(),i=performance.getEntriesByType("resource").filter(de(e.value));b=N(t,i),o("FCP stats captured",b)}(ge=(fe=window.renderbetter).onFCP)==null||ge.call(fe,tt);function nt(e){let t=L(),i=performance.getEntriesByType("resource").filter(de(e.value));O=N(t,i),o("LCP stats captured",O)}(pe=(be=window.renderbetter).onLCP)==null||pe.call(be,nt);function ot(){let e=L(),t=performance.getEntriesByType("resource");f=N(e,t),o("DOM stats captured on load event",f)}window.addEventListener("load",ot);function me(){let e=window.requestIdleCallback||function(d){return setTimeout(d,200)};e(ce);let t=null;function r(){u||(t!==null&&clearTimeout(t),t=setTimeout(function(){t=null,e(ce)},3e3))}window.addEventListener("load",r,{capture:!0,passive:!0}),window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r,{passive:!0});function i(){u||(o("Page hiding (navigation), collecting metrics"),ue())}function s(){document.visibilityState==="hidden"&&!u&&(o("Page hidden, collecting metrics"),ue())}window.addEventListener("pagehide",i),document.addEventListener("visibilitychange",s)}document.readyState==="complete"?me():window.addEventListener("load",me)})();})(); 16(()=>{var E="data-rb-dynamic-sized",w="data-rb-modified",U=["class","decoding","fetchpriority","height","loading","sizes","src","srcset","style","width"];function j(h,l,c,d,f){if(h!=="fill"||!(l>0)||!(c>0)||!(d>0)||!(f>0))return!1;let g=l/c,b=d/f;return Math.abs(g-b)/b>.15}function G(h,l,c){return h||l||c}function J(h,l){let c=[];for(let d of[h,l])if(d)for(let f of d.split(",")){let g=f.trim().toLowerCase();g&&U.indexOf(g)!==-1&&c.indexOf(g)===-1&&c.push(g)}return c.sort()}(function(){if(typeof window=="undefined"||typeof document=="undefined")return;let l=window.renderbetter.getLogger("RB Analytics Image Weight"),c=!1,d=null;function f(e){try{return new URL(e,document.baseURI).href}catch{return e}}function g(e){try{let t=new URL(e,document.baseURI).href;return t.startsWith(origin)?t.substring(origin.length):t}catch{return e}}function b(e){let i=Math.max(e.width||0,e.clientWidth||0),t=Math.max(e.height||0,e.clientHeight||0),r=e.naturalWi
16dth||0,a=e.naturalHeight||0,o=Math.max(i,t,r,a)>100;return e.complete&&(r>0||a>0)&&o}function D(){return Array.from(document.querySelectorAll("img")).filter(b)}function A(e){let i=Math.max(e.width||0,e.clientWidth||0,e.naturalWidth||0),t=Math.max(e.height||0,e.clientHeight||0,e.naturalHeight||0);return i*t}function L(e,i){return i.area-e.area}function R(e){return{img:e,area:A(e)}}function B(e){return e.img}function H(e){return e.map(R).sort(L).map(B)}function T(e,i){let t=e.slice();for(let r=t.length-1;r>0;r--){let a=Math.floor(Math.random()*(r+1)),o=t[r];t[r]=t[a],t[a]=o}return t.slice(0,Math.max(0,Math.min(i,t.length)))}function z(e){return e.hasAttribute("rb-img")}function W(e){return!e.hasAttribute("rb-img")}function v(){let e=D();if(e.length===0)return[];let i=H(e),t=i.filter(z),r=i.filter(W),a=t.slice(0,10),o=T(a,5);if(o.length>=5)return o;let u=5-o.length,n=r.slice(0,10),m=T(n,u),s=o.concat(m);if(s.length>0)return s;let N=i.slice(0,10);return T(N,5)}function k(e){let i=Math.max(e.width||0,e.clientWidth||0),t=Math.max(e.height||0,e.clientHeight||0),r=e.naturalWidth||0,a=e.naturalHeight||0,o=(typeof window.getComputedStyle=="function"?window.getComputedStyle(e).objectFit:"")||"fill",u={url:g(e.currentSrc||e.src||""),isRbImage:e.hasAttribute("rb-img"),renderedWidth:i,renderedHeight:t,naturalWidth:r,naturalHeight:a,area:Math.max(i,r)*Math.max(t,a),stretched:j(o,i,t,r,a),rbTouched:G(e.hasAttribute("rb-img"),e.hasAttribute(w),e.hasAttribute(E))},n=J(e.getAttribute(w),e.getAttribute(E));return n.length>0&&(u.modifiedFields=n),u}function C(e){return e.initiatorType==="img"}function P(e){return e.transferSize>0||e.decodedBodySize>0}function q(e){let i=performance.getEntriesByType("resource").filter(C);if(i.length===0)return[];let t=new Map;for(let a of i){let o=f(a.name),u=t.get(o);u?u.push(a):t.set(o,[a])}let r=[];for(let a of e){let o=f(a),u=t.get(o)||[],n=u.length?u[u.length-1]:void 0;if(!n)continue;let m=P(n),s={url:g(n.name.startsWith(o)?n.name:o),initiatorType:n.initiatorType,duration:Math.round(n.duration),fetchStart:Math.round(n.fetchStart),endTime:Math.round(n.responseEnd),fetchDuration:Math.round(n.responseEnd-n.fetchStart),hasTimingAccess:m};m&&(s.requestStart=Math.round(n.requestStart),s.connectDuration=Math.round(n.connectEnd-n.connectStart),s.domainLookupDuration=Math.round(n.domainLookupEnd-n.domainLookupStart),s.redirectDuration=Math.round(n.redirectEnd-n.redirectStart),s.requestDuration=Math.round(n.responseStart-n.requestStart),s.tlsNegotiationDuration=Math.round(n.requestStart-n.secureConnectionStart),s.serviceWorkerDuration=Math.round(n.fetchStart-n.workerStart),s.isCompressed=n.decodedBodySize!==n.encodedBodySize,s.isCached=n.transferSize===0,s.transferSize=n.transferSize,s.decodedBodySize=n.decodedBodySize,s.encodedBodySize=n.encodedBodySize),r.push(s)}return r}function O(e){return{url:e,initiatorType:"img",duration:0,fetchStart:0,endTime:0,fetchDuration:0,hasTimingAccess:!1}}function x(e){return f(e.currentSrc||e.src||"")}function F(e,i){let t=i.get(e.url)||O(e.url),r={...e,initiatorType:t.initiatorType,duration:t.duration,fetchStart:t.fetchStart,endTime:t.endTime,fetchDuration:t.fetchDuration,hasTimingAccess:t.hasTimingAccess};return t.hasTimingAccess&&(r.requestStart=t.requestStart,r.connectDuration=t.connectDuration,r.domainLookupDuration=t.domainLookupDuration,r.redirectDuration=t.redirectDuration,r.requestDuration=t.requestDuration,r.tlsNegotiationDuration=t.tlsNegotiationDuration,r.serviceWorkerDuration=t.serviceWorkerDuration,r.isCompressed=t.isCompressed,r.isCached=t.isCached,r.transferSize=t.transferSize,r.decodedBodySize=t.decodedBodySize,r.encodedBodySize=t.encodedBodySize),r}function S(){if(c)return;let e=v(),i=e.map(k),t=e.map(x),r=q(t),a=new Map;for(let m of r)a.set(m.url,m);let o=i.map(function(s){return F(s,a)}),u=0,n=0;for(let m of o)u+=m.decodedBodySize||0,n+=m.transferSize||0;
16d={images:o,totalDecodedBytesOfSample:u,totalTransferBytesOfSample:n}}function I(){if(c){l("Image weight metrics already sent, skipping");return}d||S(),d&&(l("Image weight metrics collected",d),window.renderbetter.collect({type:"metric",name:"image_weight",value:d.totalDecodedBytesOfSample,attribution:JSON.stringify(d)}),c=!0)}function _(){document.visibilityState==="hidden"&&I()}let M=window.requestIdleCallback||function(i){return setTimeout(i,200)};M(S);let p=null;function y(){c||(p!==null&&clearTimeout(p),p=setTimeout(function(){p=null,M(S)},3e3))}window.addEventListener("load",y,{capture:!0,passive:!0}),window.addEventListener("scroll",y,{passive:!0}),window.addEventListener("resize",y,{passive:!0}),document.addEventListener("visibilitychange",_),window.addEventListener("pagehide",I)})();})(); 17(()=>{(function(){let f=window.renderbetter.getLogger("RB Analytics Video Weight"),m=!1,c=null;function g(e){try{return new URL(e,document.baseURI).href}catch{return e}}function S(e){try{let t=new URL(e,document.baseURI).href;return t.startsWith(origin)?t.substring(origin.length):t}catch{return e}}function E(e){let i=Math.max(e.width||0,e.clientWidth||0),t=Math.max(e.height||0,e.clientHeight||0),r=e.videoWidth||0,a=e.videoHeight||0,s=Math.max(i,t,r,a)>100;return e.readyState>=1&&s}function H(){return Array.from(document.querySelectorAll("video")).filter(E)}function L(e){let i=Math.max(e.width||0,e.clientWidth||0,e.videoWidth||0),t=Math.max(e.height||0,e.clientHeight||0,e.videoHeight||0);return i*t}function w(e,i){return i.area-e.area}function B(e){return{video:e,area:L(e)}}function W(e){return e.video}function z(e){return e.map(B).sort(w).map(W)}function v(e,i){let t=e.slice();for(let r=t.length-1;r>0;r--){let a=Math.floor(Math.random()*(r+1)),s=t[r];t[r]=t[a],t[a]=s}return t.slice(0,Math.max(0,Math.min(i,t.length)))}function A(){let e=H();if(e.length===0)return[];let t=z(e).slice(0,10);return v(t,5)}function y(e){try{let i=getComputedStyle(e);return i.display==="none"||i.visibility==="hidden"||i.opacity==="0"}catch{return!1}}function T(e){try{let i=e.getBoundingClientRect();return i.right<=0||i.bottom<=0||i.left>=document.documentElement.clientWidth||i.top>=document.documentElement.clientHeight}catch{return!1}}function k(e){return!y(e)&&!T(e)}function R(e){let i=Math.max(e.width||0,e.clientWidth||0),t=Math.max(e.height||0,e.clientHeight||0),r=e.videoWidth||0,a=e.videoHeight||0;return{url:S(e.currentSrc||e.src||""),isRbVideo:e.hasAttribute("rb-img"),renderedWidth:i,renderedHeight:t,videoWidth:r,videoHeight:a,area:Math.max(i,r)*Math.max(t,a),isHidden:y(e),isOffscreen:T(e)}}function q(e){return e==="video"||e==="media"}function C(e){return q(e.initiatorType)}function O(e){return e.transferSize>0||e.decodedBodySize>0}function P(e){let i=performance.getEntriesByType("resource").filter(C);if(i.length===0)return[];let t=new Map;for(let a of i){let s=g(a.name),d=t.get(s);d?d.push(a):t.set(s,[a])}let r=[];for(let a of e){let s=g(a),d=t.get(s)||[],n=d.length?d[d.length-1]:void 0;if(!n)continue;let l=O(n),o={url:S(n.name.startsWith(s)?n.name:s),initiatorType:n.initiatorType,duration:Math.round(n.duration),fetchStart:Math.round(n.fetchStart),endTime:Math.round(n.responseEnd),fetchDuration:Math.round(n.responseEnd-n.fetchStart),hasTimingAccess:l};l&&(o.requestStart=Math.round(n.requestStart),o.connectDuration=Math.round(n.connectEnd-n.connectStart),o.domainLookupDuration=Math.round(n.domainLookupEnd-n.domainLookupStart),o.redirectDuration=Math.round(n.redirectEnd-n.redirectStart),n.requestStart>0&&n.responseStart>0&&(o.requestDuration=Math.round(n.responseStart-n.requestStart)),n.secureConnectionStart>0&&n.requestStart>0&&(o.tlsNegotiationDuration=Math.round(n.requestStart-n.secureConnectionStart)),n.workerStart>0&&(o.serviceWorkerDuration=Math.round(n.fetchStart-n.workerStart)),o.isCompressed=n.decodedBodySize!==n.encodedBodySize,o.isCached=n.transferSize===0,o.transferSize=n.transferSize,o.decodedBodySize=n.decodedBodySize,o.encodedBodySize=n.encodedBodySize),r.push(o)}return r}function x(e){return{url:e,initiatorType:"video",duration:0,fetchStart:0,endTime:0,fetchDuration:0,hasTimingAccess:!1}}function U(e){return g(e.currentSrc||e.src||"")}function N(e,i){let t=i.get(e.url)||x(e.url),r={...e,initiatorType:t.initiatorType,duration:t.duration,fetchStart:t.fetchStart,endTime:t.endTime,fetchDuration:t.fetchDuration,hasTimingAccess:t.hasTimingAccess};return t.hasTimingAccess&&(r.requestStart=t.requestStart,r.connectDuration=t.connectDuration,r.domainLookupDuration=t.domainLookupDuration,r.redirectDuration=t.redirectDuration,r.requestDuration=t.requestDuration,r.tlsNegotiationDuration=t.tlsNegotiationDuration,r.serviceWorkerDuration=t.serviceWorkerDuration,r.isCompressed=t.isCompressed,r.isCached=t.isCached,r.transferSize=t.transferSize,r.decodedBodySize=t.decodedBodySize,r.encodedBodySize=t.encodedBodySize),r}function b(){if(m)return;let e=A();if(e.length===0)return;let i=Array.from(document.querySelectorAll("video")),t=i.length,r=0;for(let u of i)k(u)&&r++;let a=e.map(R),s=e.map(U),d=P(s),n=new Map;for(let u of d)n.set(u.url,u);let l=a.map(function(F){return N(F,n)}),o=0,M=0;for(let u of l)o+=u.decodedBodySize||0,M+=u.transferSize||0;
17c={videos:l,totalDecodedBytesOfSample:o,totalTransferBytesOfSample:M,totalVideoElements:t,visibleVideoElements:r}}function V(){if(m){f("Video weight metrics already sent, skipping");return}if(c||b(),!c){f("No sampled videos found, skipping");return}f("Video weight metrics collected",c),window.renderbetter.collect({type:"metric",name:"video_weight",value:c.totalDecodedBytesOfSample,attribution:JSON.stringify(c)}),m=!0}function I(){document.visibilityState==="hidden"&&V()}let D=window.requestIdleCallback||function(i){return setTimeout(i,200)};D(b);let h=null;function p(){m||(h!==null&&clearTimeout(h),h=setTimeout(function(){h=null,D(b)},3e3))}window.addEventListener("load",p,{capture:!0,passive:!0}),window.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",p,{passive:!0}),document.addEventListener("visibilitychange",I),window.addEventListener("pagehide",V)})();})(); 18(()=>{(function(){let M=window.renderbetter.getLogger("RB Analytics Video Playback"),h=10,U=500,P=[100,200,500,1e3,2e3,4e3],O=["0-100ms","100-200ms","200-500ms","500ms-1s","1-2s","2-4s","4s+"],p=!1,R=0,S=null,l=[],c=null;function W(){R=performance.now()}document.addEventListener("click",W,{passive:!0}),document.addEventListener("touchend",W,{passive:!0});function D(e){for(let n of e){let t=l.find(function(r){return r.video===n.target});t&&(t.isInViewport=n.isIntersecting)}}let _=new IntersectionObserver(D,{threshold:0});function x(e){try{let n=getComputedStyle(e);return n.display==="none"||n.visibility==="hidden"||n.opacity==="0"}catch{return!1}}function z(e){try{let n=e.getBoundingClientRect();return n.right<=0||n.bottom<=0||n.left>=document.documentElement.clientWidth||n.top>=document.documentElement.clientHeight}catch{return!1}}function C(e){try{let t=new URL(e,document.baseURI).href;return t.startsWith(origin)?t.substring(origin.length):t}catch{return e}}function Q(e){return e.src||e.currentSrc?!0:e.querySelectorAll("source").length>0}function K(e){let n=(e.currentSrc||e.src||"").toLowerCase();return n.includes(".m3u8")?"hls":n.includes(".mpd")?"dash":n.includes(".mp4")?"mp4":n.includes(".webm")?"webm":n.includes(".ogg")||n.includes(".ogv")?"ogg":"other"}function o(e,n){e.events.push({name:n,time:performance.now()})}function j(e){for(let n=0;n<P.length;n++)if(e<P[n])return n;return P.length}function G(){return[]}function J(e,n){return{bucket:O[n],events:e}}function X(e){return e.events.length>0}function Y(e){if(e.events.length===0)return[];let n=e.events[0].time,t=O.map(G);for(let i of e.events){let r=i.time-n,d=j(r);t[d].includes(i.name)||t[d].push(i.name)}return t.map(J).filter(X)}function Z(e){return{video:e,preload:e.preload||"auto",loadStartTime:null,canPlayTime:null,playRequestTime:null,firstPlayingTime:null,hasPlayed:!1,hasEnded:!1,hasError:!1,errorCode:null,ttffOrigin:null,bufferingEvents:0,totalBufferingMs:0,bufferStartTime:null,stallEvents:0,totalWatchedMs:0,watchStartTime:null,seekCount:0,totalSeekMs:0,seekStartTime:null,isInViewport:!1,events:[],cachedRenderedWidth:0,cachedRenderedHeight:0,cachedIsHidden:!1,cachedIsOffscreen:!1}}function I(e){e.bufferStartTime!==null&&(e.totalBufferingMs+=performance.now()-e.bufferStartTime,e.bufferStartTime=null)}function b(e){e.watchStartTime!==null&&(e.totalWatchedMs+=performance.now()-e.watchStartTime,e.watchStartTime=null)}function $(e,n){return n.autoplay?"autoplay":e.playRequestTime!==null&&e.playRequestTime-R<U?"user":e.playRequestTime!==null?"programmatic":null}function k(e){let n=e.video;function t(){e.loadStartTime=performance.now(),o(e,"loadstart")}function i(){o(e,"loadedmetadata")}function r(){e.canPlayTime===null&&(e.canPlayTime=performance.now()),o(e,"canplay")}function d(){o(e,"play"),e.hasPlayed||(e.playRequestTime=performance.now(),e.ttffOrigin=$(e,n))}function a(){let u=performance.now();o(e,"playing"),e.hasPlayed||(e.firstPlayingTime=u,e.hasPlayed=!0),e.hasError&&(e.hasError=!1,e.errorCode=null),I(e),e.watchStartTime=u}function f(){o(e,"waiting"),b(e),e.hasPlayed&&(e.bufferingEvents++,e.bufferStartTime=performance.now())}function m(){o(e,"stalled"),e.stallEvents++}function g(){o(e,"seeking"),e.seekStartTime=performance.now()}function T(){o(e,"seeked"),e.seekStartTime!==null&&(e.totalSeekMs+=performance.now()-e.seekStartTime,e.seekStartTime=null,e.seekCount++)}function v(){o(e,"pause"),b(e)}function E(){o(e,"ended"),b(e),e.hasEnded=!0}function s(){var u,w;o(e,"error"),e.hasError=!0,e.errorCode=(w=(u=n.error)==null?void 0:u.code)!=null?w:null}n.addEventListener("loadstart",t,{passive:!0}),n.addEventListener("loadedmetadata",i,{passive:!0}),n.addEventListener("canplay",r,{passive:!0}),n.addEventListener("play",d,{passive:!0}),n.addEventListener("playing",a,{passive:!0}),n.addEventListener("waiting",f,{passive:!0}),n.addEventListener("stalled",m,{passive:!0}),n.addEventListener("seeking",g,{passive:!0}),n.addEventListener("seeked",T,{passive:!0}),n.addEventListener("pause",v,{passive:!0}),n.addEventListener("ended",E,{passive:!0}),n.addEventListener("error",s,{passive:!0})}function V(e){if(l.length>=h||l.some(function(i){return i.video===e})||!Q(e))return;let n=Z(e);if(l.push(n),_.observe(e),k(n),e.paused||(n.hasPlayed=!0,n.firstPlayingTime=null,n.ttffOrigin=e.autoplay?"autoplay":null,n.watchStartTime=performance.now(),o(n,"already-playing")),e.ended&&(n.hasPlayed=!0,n.hasEnded=!0,o(n,"already-ended"),e.played&&e.played.length>0)){let t=0;for(let i=0;i<e.played.length;i++)t+=e.played.end(i)-e.played.start(i);n.totalWatchedMs=t*1e3}l.length>=h&&c&&(c.disconnect(),c=null),M("Monitoring video",C(e.currentSrc||e.src||""))}function ee(e){let n=Math.max(e.clientWidth||0,e.videoWidth||0),t=Math.max(e.clientHeight||0,e.videoHeight||0);return n*t}function ne(e,n){return n.area-e.area}function te(e){return{video:e,area:ee(e)}}function ie(){let n=Array.from(document.querySelectorAll("video")).map(te).sort(ne);for(let t of n)V(t.video)}function oe(e){if(typeof e.getVideoPlaybackQuality=="function"){let n=e.getVideoPlaybackQuality();return{dropped:n.droppedVideoFrames,total:n.totalVideoFrames}}return{dropped:null,total:null}}function re(e){var F,N;let n=e.video;I(e),b(e);let t=e.loadStartTime!==null?Math.round(e.loadStartTime):null,i=e.canPlayTime!==null?Math.round(e.canPlayTime):null,r=e.firstPlayingTime!==null?Math.round(e.firstPlayingTime):null,d=null;e.firstPlayingTime!==null&&e.playRequestTime!==null&&(d=Math.max(0,Math.round(e.firstPlayingTime-e.playRequestTime)));let a=n.duration&&isFinite(n.duration)?n.duration:null,f=Math.round(e.totalWatchedMs),m=Math.round(e.totalBufferingMs),g=null,T=0;
18if(a!==null&&a>0&&f>0){let ue=f/(a*1e3)*100;g=Math.min(100,Math.round(ue)),T=Math.floor(f/(a*1e3))}let v=null,E=m+f;E>0&&(v=Math.round(m/E*1e3)/1e3);let s=oe(n),u=null;s.total!==null&&s.total>0&&s.dropped!==null&&(u=Math.round(s.dropped/s.total*1e4)/1e4);let w=n.isConnected!==void 0?n.isConnected:document.contains(n),q=e.hasError&&n.error!==null,se=q?(N=(F=n.error)==null?void 0:F.code)!=null?N:e.errorCode:null;return{url:C(n.currentSrc||n.src||""),selector:window.renderbetter.getElementSelector(n),videoWidth:n.videoWidth||0,videoHeight:n.videoHeight||0,renderedWidth:e.cachedRenderedWidth,renderedHeight:e.cachedRenderedHeight,loadStartTs:t,canPlayTs:i,playingTs:r,videoStartupTime:d,ttffOrigin:e.ttffOrigin,bufferingEvents:e.bufferingEvents,totalBufferingMs:m,bufferingRatio:v,stallEvents:e.stallEvents,totalWatchedMs:f,duration:a,watchedPercent:g,loopCount:T,seekCount:e.seekCount,totalSeekMs:Math.round(e.totalSeekMs),droppedFrames:s.dropped,totalFrames:s.total,droppedFrameRatio:u,preload:e.preload,sourceType:K(n),isAutoplay:n.autoplay,isMuted:n.muted,isLooped:n.loop,isInViewport:w?e.isInViewport:!1,isHidden:e.cachedIsHidden,isOffscreen:e.cachedIsOffscreen,hasPlayed:e.hasPlayed,hasEnded:e.hasEnded,hasError:q,errorCode:se,eventTimeline:Y(e)}}function L(){if(!p){S=document.querySelectorAll("video").length;for(let e of l)e.cachedRenderedWidth=e.video.clientWidth||0,e.cachedRenderedHeight=e.video.clientHeight||0,e.cachedIsHidden=x(e.video),e.cachedIsOffscreen=z(e.video)}}function le(e,n){return e.hasPlayed!==n.hasPlayed?e.hasPlayed?-1:1:e.hasPlayed&&n.hasPlayed?n.totalWatchedMs-e.totalWatchedMs:n.renderedWidth*n.renderedHeight-e.renderedWidth*e.renderedHeight}function ae(e){return e.hasPlayed}function B(){if(p)return;if(l.length===0){M("No monitored videos, skipping");return}S===null&&L();let e=l.map(re);e.sort(le);let n=e.slice(0,5),t=n.filter(ae).length,i={videos:n,totalVideosOnPage:S||0,monitoredCount:l.length,viewportWidth:document.documentElement.clientWidth||0,viewportHeight:document.documentElement.clientHeight||0};M("Video playback metrics collected",i),window.renderbetter.collect({type:"metric",name:"video_playback",value:t,attribution:JSON.stringify(i)}),p=!0}function de(){document.visibilityState==="hidden"&&B()}if(ie(),l.length<h){let e=function(n){for(let t of n)for(let i=0;i<t.addedNodes.length;i++){let r=t.addedNodes[i];if(r instanceof HTMLVideoElement)V(r);else if(r instanceof HTMLElement){let d=r.querySelectorAll("video");for(let a=0;a<d.length;a++)V(d[a])}if(l.length>=h)return}};var fe=e;c=new MutationObserver(e),document.body?c.observe(document.body,{childList:!0,subtree:!0}):document.addEventListener("DOMContentLoaded",function(){c&&document.body&&c.observe(document.body,{childList:!0,subtree:!0})})}let A=window.requestIdleCallback||function(n){return setTimeout(n,200)};A(L);let y=null;function H(){p||(y!==null&&clearTimeout(y),y=setTimeout(function(){y=null,A(L)},3e3))}window.addEventListener("load",H,{capture:!0,passive:!0}),window.addEventListener("scroll",H,{passive:!0}),window.addEventListener("resize",H,{passive:!0}),document.addEventListener("visibilitychange",de),window.addEventListener("pagehide",B)})();})(); 19(()=>{var Bo=Object.defineProperty,Wo=(s,e,t)=>e in s?Bo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,w=(s,e,t)=>Wo(s,typeof e!="symbol"?e+"":e,t),Ys,zo=Object.defineProperty,Vo=(s,e,t)=>e in s?zo(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Hs=(s,e,t)=>Vo(s,typeof e!="symbol"?e+"":e,t),Y=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(Y||{}),Zs={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Xs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ht={},Go=()=>!!globalThis.Zone;function bs(s){if(ht[s])return ht[s];let e=globalThis[s],t=e.prototype,r=s in Zs?Zs[s]:void 0,i=!!(r&&r.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),n=s in Xs?Xs[s]:void 0,o=!!(n&&n.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!Go())return ht[s]=e.prototype,e.prototype;
vendor: 8,651 bytes, line 19
19try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let u=a[s].prototype;return document.body.removeChild(l),u?ht[s]=u:t}catch{return t}}var yr={};function pe(s,e,t){var r;let i=`${s}.${String(t)}`;if(yr[i])return yr[i].call(e);let n=bs(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(yr[i]=o,o.call(e)):e[t]}var wr={};function Gi(s,e,t){let r=`${s}.${String(t)}`;if(wr[r])return wr[r].bind(e);let n=bs(s)[t];return typeof n!="function"?e[t]:(wr[r]=n,n.bind(e))}function jo(s){return pe("Node",s,"ownerDocument")}function Yo(s){return pe("Node",s,"childNodes")}function Ho(s){return pe("Node",s,"parentNode")}function Zo(s){return pe("Node",s,"parentElement")}function Xo(s){return pe("Node",s,"textContent")}function Jo(s,e){return Gi("Node",s,"contains")(e)}function Ko(s){return Gi("Node",s,"getRootNode")()}function Qo(s){return!s||!("host"in s)?null:pe("ShadowRoot",s,"host")}function qo(s){return s.styleSheets}function ea(s){return!s||!("shadowRoot"in s)?null:pe("Element",s,"shadowRoot")}function ta(s,e){return pe("Element",s,"querySelector")(e)}function ra(s,e){return pe("Element",s,"querySelectorAll")(e)}function sa(){return bs("MutationObserver").constructor}function ia(s,e,t){try{if(!(e in s))return()=>{};let r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch{return()=>{}}}var Z={ownerDocument:jo,childNodes:Yo,parentNode:Ho,parentElement:Zo,textContent:Xo,contains:Jo,getRootNode:Ko,host:Qo,styleSheets:qo,shadowRoot:ea,querySelector:ta,querySelectorAll:ra,mutationObserver:sa,patch:ia};function ji(s){return s.nodeType===s.ELEMENT_NODE}function Ge(s){let e=s&&"host"in s&&"mode"in s&&Z.host(s)||null;return!!(e&&"shadowRoot"in e&&Z.shadowRoot(e)===s)}function je(s){return Object.prototype.toString.call(s)==="[object ShadowRoot]"}function na(s){return s.includes(" background-clip: text;")&&!s.includes(" -webkit-background-clip: text;")&&(s=s.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),s}function oa(s){let{cssText:e}=s;if(e.split('"').length<3)return e;let t=["@import",`url(${JSON.stringify(s.href)})`];return s.layerName===""?t.push("layer"):s.layerName&&t.push(`layer(${s.layerName})`),s.supportsText&&t.push(`supports(${s.supportsText})`),s.media.length&&t.push(s.media.mediaText),t.join(" ")+";"}function Dr(s){try{let e=s.rules||s.cssRules;if(!e)return null;let t=s.href;!t&&s.ownerNode&&(t=s.ownerNode.baseURI);let r=Array.from(e,i=>Yi(i,t)).join("");return na(r)}catch{return null}}function Yi(s,e){if(la(s)){let t;try{t=Dr(s.styleSheet)||oa(s)}catch{t=s.cssText}return s.styleSheet.href?Vt(t,s.styleSheet.href):t}else{let t=s.cssText;return ua(s)&&s.selectorText.includes(":")&&(t=aa(t)),e?Vt(t,e):t}}function aa(s){let e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return s.replace(e,"$1\\$2")}function la(s){return"styleSheet"in s}function ua(s){return"selectorText"in s}var Bt=class{constructor(){Hs(this,"idNodeMap",new Map),Hs(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;let r=(t=this.getMeta(e))==null?void 0:t.id;return r!=null?r:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(t,i)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function ca(){return new Bt}function Wt({element:s,maskInputOptions:e,tagName:t,type:r,value:i,maskInputFn:n}){let o=i||"",l=r&&Ce(r);return(e[t.toLowerCase()]||l&&e[l])&&(n?o=n(o,s):o="*".repeat(o.length)),o}function Ce(s){return s.toLowerCase()}var Js="__rrweb_original__";function ha(s){let e=s.getContext("2d");if(!e)return!0;let t=50;for(let r=0;r<s.width;r+=t)for(let i=0;i<s.height;i+=t){let n=e.getImageData,o=Js in n?n[Js]:n;if(new Uint32Array(o.call(e,r,i,Math.min(t,s.width-r),Math.min(t,s.height-i)).data.buffer).some(a=>a!==0))return!1}return!0}function zt(s){let e=s.type;return s.hasAttribute("data-rr-is-password")?"password":e?Ce(e):null}function Hi(s,e){var n;let t;try{t=new URL(s,e!=null?e:window.location.href)}catch{return null}let r=/\.([0-9a-z]+)(?:$)/i,i=t.pathname.match(r);return(n=i==null?void 0:i[1])!=null?n:null}function fa(s){let e="";return s.indexOf("//")>-1?e=s.split("/").slice(0,3).join("/"):e=s.split("/")[0],e=e.split("?")[0],e}var da=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pa=/^(?:[a-z+]+:)?\/\//i,ma=/^www\..*/i,ga=/^(data:)([^,]*),(.*)/i;function Vt(s,e){return(s||"").replace(da,(t,r,i,n,o,l)=>{let a=i||o||l,u=r||n||"";if(!a)return t;if(pa.test(a)||ma.test(a))return`url(${u}${a}${u})`;if(ga.test(a))return`url(${u}${a}${u})`;if(a[0]==="/")return`url(${u}${fa(e)+a}${u})`;let c=e.split("/"),h=a.split("/");c.pop();for(let p of h)p!=="."&&(p===".."?c.pop():c.push(p));return`url(${u}${c.join("/")}${u})`})}function ft(s,e=!1){return e?s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):s.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ya(s,e,t=!1){let r=Array.from(e.childNodes),i=[],n=0;if(r.length>1&&s&&typeof s=="string"){let o=ft(s,t),l=o.length/s.length;for(let a=1;a<r.length;a++)if(r[a].textContent&&typeof r[a].textContent=="string"){let u=ft(r[a].textContent,t),c=100,h=3;for(;h<u.length&&(u[h].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,h),1)!==-1);h++);for(;h<u.length;h++){let p=u.substring(0,h),g=o.split(p),m=-1;if(g.length===2)m=g[0].length;else if(g.length>2&&g[0]===""&&r[a-1].textContent!=="")m=o.indexOf(p,1);else if(g.length===1){if(p=p.substring(0,p.length-1),g=o.split(p),g.length<=1)return i.push(s),i;h=c+1}else h===u.length-1&&(m=o.indexOf(p));if(g.length>=2&&h>c){let d=r[a-1].textContent;if(d&&typeof d=="string"){let f=ft(d).length;m=o.indexOf(p,f)}m===-1&&(m=g[0].length)}if(m!==-1){let d=Math.floor(m/l);for(;d>0&&d<s.length;){if(n+=1,n>50*r.length)return i.push(s),i;let f=ft(s.substring(0,d),t);if(f.length===m){i.push(s.substring(0,d)),s=s.substring(d),o=o.substring(m);break}else f.length<m?d+=Math.max(1,Math.floor((m-f.length)/l)):d-=Math.max(1,Math.floor((f.length-m)*l))}break}}}}return i.push(s),i}function wa(s,e){return ya(s,e).join("/* rr_split */")}var ba=1,Sa=new RegExp("[^a-z0-9-_:]"),He=-2;function Zi(){return ba++}function va(s){if(s instanceof HTMLFormElement)return"form";let e=Ce(s.tagName);return Sa.test(e)?"div":e}var Me,Ks,Ca=/^[^ \t\n\r\u000c]+/,Ia=/^[, \t\n\r\u000c]+/;function Ea(s,e){if(e.trim()==="")return e;let t=0;function r(n){let o,l=n.exec(e.substring(t));return l?(o=l[0],t+=o.length,o):""}let i=[];for(;r(Ia),!(t>=e.length);){let n=r(Ca);if(n.slice(-1)===",")n=Ae(s,n.substring(0,n.length-1)),i.push(n);else{let o="";n=Ae(s,n);let l=!1;for(;;){let a=e.charAt(t);if(a===""){i.push((n+o).trim());break}else if(l)a===")"&&(l=!1);else if(a===","){t+=1,i.push((n+o).trim());break}else a==="("&&(l=!0);o+=a,t+=1}}}return i.join(", ")}var Qs=new WeakMap;function Ae(s,e){return!e||e.trim()===""?e:Ss(s,e)}function xa(s){return!!(s.tagName==="svg"||s.ownerSVGElement)}function Ss(s,e){let t=Qs.get(s);if(t||(t=s.createElement("a"),Qs.set(s,t)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return t.setAttribute("href",e),t.href}function Xi(s,e,t,r){return r&&(t==="src"||t==="href"&&!(e==="use"&&r[0]==="#")||t==="xlink:href"&&r[0]!=="#"||t==="background"&&["table","td","th"].includes(e)?Ae(s,r):t==="srcset"?Ea(s,r):t==="style"?Vt(r,Ss(s)):e==="object"&&t==="data"?Ae(s,r):r)}function Ji(s,e,t){return["video","audio"].includes(s)&&e==="autoplay"}function Ma(s,e,t){try{if(typeof e=="string"){if(s.classList.contains(e))return!0}else for(let r=s.classList.length;r--;){let i=s.classList[r];if(e.test(i))return!0}if(t)return s.matches(t)}catch{}return!1}function Gt(s,e,t){if(!s)return!1;if(s.nodeType!==s.ELEMENT_NODE)return t?Gt(Z.parentNode(s),e,t):!1;for(let r=s.classList.length;r--;){let i=s.classList[r];if(e.test(i))return!0}return t?Gt(Z.parentNode(s),e,t):!1}function Ki(s,e,t,r){let i;if(ji(s)){if(i=s,!Z.childNodes(i).length)return!1}else{if(Z.parentElement(s)===null)return!1;i=Z.parentElement(s)}try{if(typeof e=="string"){if(r){if(i.closest(`.${e}`))return!0}else if(i.classList.contains(e))return!0}else if(Gt(i,e,r))return!0;
vendor: 9,180 bytes, line 19
19if(t){if(r){if(i.closest(t))return!0}else if(i.matches(t))return!0}}catch{}return!1}function Na(s,e,t){let r=s.contentWindow;if(!r)return;let i=!1,n;try{n=r.document.readyState}catch{return}if(n!=="complete"){let l=setTimeout(()=>{i||(e(),i=!0)},t);s.addEventListener("load",()=>{clearTimeout(l),i=!0,e()});return}let o="about:blank";if(r.location.href!==o||s.src===o||s.src==="")return setTimeout(e,0),s.addEventListener("load",e);s.addEventListener("load",e)}function Ra(s,e,t){let r=!1,i;try{i=s.sheet}catch{return}if(i)return;let n=setTimeout(()=>{r||(e(),r=!0)},t);s.addEventListener("load",()=>{clearTimeout(n),r=!0,e()})}function Aa(s,e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:o,inlineStylesheet:l,maskInputOptions:a={},maskTextFn:u,maskInputFn:c,dataURLOptions:h={},inlineImages:p,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:d=!1,cssCaptured:f=!1}=e,C=Oa(t,r);switch(s.nodeType){case s.DOCUMENT_NODE:return s.compatMode!=="CSS1Compat"?{type:Y.Document,childNodes:[],compatMode:s.compatMode}:{type:Y.Document,childNodes:[]};case s.DOCUMENT_TYPE_NODE:return{type:Y.DocumentType,name:s.name,publicId:s.publicId,systemId:s.systemId,rootId:C};case s.ELEMENT_NODE:return Ta(s,{doc:t,blockClass:i,blockSelector:n,inlineStylesheet:l,maskInputOptions:a,maskInputFn:c,dataURLOptions:h,inlineImages:p,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:d,rootId:C});case s.TEXT_NODE:return Da(s,{doc:t,needsMask:o,maskTextFn:u,rootId:C,cssCaptured:f});case s.CDATA_SECTION_NODE:return{type:Y.CDATA,textContent:"",rootId:C};case s.COMMENT_NODE:return{type:Y.Comment,textContent:Z.textContent(s)||"",rootId:C};default:return!1}}function Oa(s,e){if(!e.hasNode(s))return;let t=e.getId(s);return t===1?void 0:t}function Da(s,e){let{needsMask:t,maskTextFn:r,rootId:i,cssCaptured:n}=e,o=Z.parentNode(s),l=o&&o.tagName,a="",u=l==="STYLE"?!0:void 0,c=l==="SCRIPT"?!0:void 0;return c?a="SCRIPT_PLACEHOLDER":n||(a=Z.textContent(s),u&&a&&(a=Vt(a,Ss(e.doc)))),!u&&!c&&a&&t&&(a=r?r(a,Z.parentElement(s)):a.replace(/[\S]/g,"*")),{type:Y.Text,textContent:a||"",rootId:i}}function Ta(s,e){let{doc:t,blockClass:r,blockSelector:i,inlineStylesheet:n,maskInputOptions:o={},maskInputFn:l,dataURLOptions:a={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:g}=e,m=Ma(s,r,i),d=va(s),f={},C=s.attributes.length;for(let y=0;y<C;y++){let E=s.attributes[y];Ji(d,E.name,E.value)||(f[E.name]=Xi(t,d,Ce(E.name),E.value))}if(d==="link"&&n){let y=Array.from(t.styleSheets).find(A=>A.href===s.href),E=null;y&&(E=Dr(y)),E&&(delete f.rel,delete f.href,f._cssText=E)}if(d==="style"&&s.sheet){let y=Dr(s.sheet);y&&(s.childNodes.length>1&&(y=wa(y,s)),f._cssText=y)}if(["input","textarea","select"].includes(d)){let y=s.value,E=s.checked;f.type!=="radio"&&f.type!=="checkbox"&&f.type!=="submit"&&f.type!=="button"&&y?f.value=Wt({element:s,type:zt(s),tagName:d,value:y,maskInputOptions:o,maskInputFn:l}):E&&(f.checked=E)}if(d==="option"&&(s.selected&&!o.select?f.selected=!0:delete f.selected),d==="dialog"&&s.open&&(f.rr_open_mode=s.matches("dialog:modal")?"modal":"non-modal"),d==="canvas"&&c){if(s.__context==="2d")ha(s)||(f.rr_dataURL=s.toDataURL(a.type,a.quality));else if(!("__context"in s)){let y=s.toDataURL(a.type,a.quality),E=t.createElement("canvas");E.width=s.width,E.height=s.height;let A=E.toDataURL(a.type,a.quality);y!==A&&(f.rr_dataURL=y)}}if(d==="img"&&u){Me||(Me=t.createElement("canvas"),Ks=Me.getContext("2d"));let y=s,E=y.currentSrc||y.getAttribute("src")||"<unknown-src>",A=y.crossOrigin,k=()=>{y.removeEventListener("load",k);try{Me.width=y.naturalWidth,Me.height=y.naturalHeight,Ks.drawImage(y,0,0),f.rr_dataURL=Me.toDataURL(a.type,a.quality)}catch(G){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?k():y.addEventListener("load",k);return}else console.warn(`Cannot inline img src=${E}! Error: ${G}`)}y.crossOrigin==="anonymous"&&(A?f.crossOrigin=A:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?k():y.addEventListener("load",k)}if(["audio","video"].includes(d)){let y=f;y.rr_mediaState=s.paused?"paused":"played",y.rr_mediaCurrentTime=s.currentTime,y.rr_mediaPlaybackRate=s.playbackRate,y.rr_mediaMuted=s.muted,y.rr_mediaLoop=s.loop,y.rr_mediaVolume=s.volume}if(p||(s.scrollLeft&&(f.rr_scrollLeft=s.scrollLeft),s.scrollTop&&(f.rr_scrollTop=s.scrollTop)),m){let{width:y,height:E}=s.getBoundingClientRect();f={class:f.class,rr_width:`${y}px`,rr_height:`${E}px`}}d==="iframe"&&!h(f.src)&&(s.contentDocument||(f.rr_src=f.src),delete f.src);let I;try{customElements.get(d)&&(I=!0)}catch{}return{type:Y.Element,tagName:d,attributes:f,childNodes:[],isSVG:xa(s)||void 0,needBlock:m,rootId:g,isCustom:I}}function P(s){return s==null?"":s.toLowerCase()}function Qi(s){return s===!0||s==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:s==="all",headMetaDescKeywords:s==="all",headTitleMutations:s==="all"}:s||{}}function _a(s,e){if(e.comment&&s.type===Y.Comment)return!0;if(s.type===Y.Element){if(e.script&&(s.tagName==="script"||s.tagName==="link"&&(s.attributes.rel==="preload"&&s.attributes.as==="script"||s.attributes.rel==="modulepreload")||s.tagName==="link"&&s.attributes.rel==="prefetch"&&typeof s.attributes.href=="string"&&Hi(s.attributes.href)==="js"))return!0;if(e.headFavicon&&(s.tagName==="link"&&s.attributes.rel==="shortcut icon"||s.tagName==="meta"&&(P(s.attributes.name).match(/^msapplication-tile(image|color)$/)||P(s.attributes.name)==="application-name"||P(s.attributes.rel)==="icon"||P(s.attributes.rel)==="apple-touch-icon"||P(s.attributes.rel)==="shortcut icon")))return!0;if(s.tagName==="meta"){if(e.headMetaDescKeywords&&P(s.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(P(s.attributes.property).match(/^(og|twitter|fb):/)||P(s.attributes.name).match(/^(og|twitter):/)||P(s.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(P(s.attributes.name)==="robots"||P(s.attributes.name)==="googlebot"||P(s.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&s.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(P(s.attributes.name)==="author"||P(s.attributes.name)==="generator"||P(s.attributes.name)==="framework"||P(s.attributes.name)==="publisher"||P(s.attributes.name)==="progid"||P(s.attributes.property).match(/^article:/)||P(s.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(P(s.attributes.name)==="google-site-verification"||P(s.attributes.name)==="yandex-verification"||P(s.attributes.name)==="csrf-token"||P(s.attributes.name)==="p:domain_verify"||P(s.attributes.name)==="verify-v1"||P(s.attributes.name)==="verification"||P(s.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Oe(s,e){let{doc:t,mirror:r,blockClass:i,blockSelector:n,maskTextClass:o,maskTextSelector:l,skipChild:a=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:h,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m={},inlineImages:d=!1,recordCanvas:f=!1,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:y=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:A=5e3,keepIframeSrcFn:k=()=>!1,newlyAddedElement:G=!1,cssCaptured:b=!1}=e,{needsMask:S}=e,{preserveWhiteSpace:O=!0}=e;S||(S=Ki(s,o,l,S===void 0));let H=Aa(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:S,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,dataURLOptions:m,inlineImages:d,recordCanvas:f,keepIframeSrcFn:k,newlyAddedElement:G,cssCaptured:b});if(!H)return console.warn(s,"not serialized"),null;let Q;r.hasNode(s)?Q=r.getId(s):_a(H,g)||!O&&H.type===Y.Text&&!H.textContent.replace(/^\s+|\s+$/gm,"").length?Q=He:Q=Zi();let M=Object.assign(H,{id:Q});if(r.add(s,M),Q===He)return null;C&&C(s);let oe=!a;if(M.type===Y.Element){oe=oe&&!M.needBlock,delete M.needBlock;let j=Z.shadowRoot(s);j&&je(j)&&(M.isShadowHost=!0)}if((M.type===Y.Document||M.type===Y.Element)&&oe){g.headWhitespace&&M.type===Y.Element&&M.tagName==="head"&&(O=!1);let j={doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:S,maskTextClass:o,maskTextSelector:l,skipChild:a,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:d,recordCanvas:f,preserveWhiteSpace:O,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:y,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:k,cssCaptured:!1};if(!(M.type===Y.Element&&M.tagName==="textarea"&&M.attributes.value!==void 0)){M.type===Y.Element&&M.attributes._cssText!==void 0&&typeof M.attributes._cssText=="string"&&(j.cssCaptured=!0);for(let we of Array.from(Z.childNodes(s))){let ae=Oe(we,j);ae&&M.childNodes.push(ae)}}let ee=null;if(ji(s)&&(ee=Z.shadowRoot(s)))for(let we of Array.from(Z.childNodes(ee))){let ae=Oe(we,j);ae&&(je(ee)&&(ae.isShadow=!0),M.childNodes.push(ae))}}let ge=Z.parentNode(s);return ge&&Ge(ge)&&je(ge)&&(M.isShadow=!0),M.type===Y.Element&&M.tagName==="iframe"&&Na(s,()=>{let j=s.contentDocument;if(j&&I){let ee=Oe(j,{doc:j,mirror:r,blockClass:i,blockSelector:n,needsMask:S,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:
19h,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:d,recordCanvas:f,preserveWhiteSpace:O,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:y,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:k});ee&&I(s,ee)}},y),M.type===Y.Element&&M.tagName==="link"&&typeof M.attributes.rel=="string"&&(M.attributes.rel==="stylesheet"||M.attributes.rel==="preload"&&typeof M.attributes.href=="string"&&Hi(M.attributes.href)==="css")&&Ra(s,()=>{if(E){let j=Oe(s,{doc:t,mirror:r,blockClass:i,blockSelector:n,needsMask:S,maskTextClass:o,maskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:h,maskInputFn:p,slimDOMOptions:g,dataURLOptions:m,inlineImages:d,recordCanvas:f,preserveWhiteSpace:O,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:y,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:k});j&&E(s,j)}},A),M}function ka(s,e){let{mirror:t=new Bt,blockClass:r="rr-block",blockSelector:i=null,maskTextClass:n="rr-mask",maskTextSelector:o=null,inlineStylesheet:l=!0,inlineImages:a=!1,recordCanvas:u=!1,maskAllInputs:c=!1,maskTextFn:h,maskInputFn:p,slimDOM:g=!1,dataURLOptions:m,preserveWhiteSpace:d,onSerialize:f,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:y,stylesheetLoadTimeout:E,keepIframeSrcFn:A=()=>!1}=e||{},k=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}:c===!1?{password:!0}:c,G=Qi(g);return Oe(s,{doc:s,mirror:t,blockClass:r,blockSelector:i,maskTextClass:n,maskTextSelector:o,skipChild:!1,inlineStylesheet:l,maskInputOptions:k,maskTextFn:h,maskInputFn:p,slimDOMOptions:G,dataURLOptions:m,inlineImages:a,recordCanvas:u,preserveWhiteSpace:d,onSerialize:f,onIframeLoad:C,iframeLoadTimeout:I,onStylesheetLoad:y,stylesheetLoadTimeout:E,keepIframeSrcFn:A,newlyAddedElement:!1})}var $a=/(max|min)-device-(width|height)/,of=new RegExp($a.source,"g");function Pa(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function La(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var vs={exports:{}},L=String,qi=function(){return{isColorSupported:!1,reset:L,bold:L,dim:L,italic:L,underline:L,inverse:L,hidden:L,strikethrough:L,black:L,red:L,green:L,yellow:L,blue:L,magenta:L,cyan:L,white:L,gray:L,bgBlack:L,bgRed:L,bgGreen:L,bgYellow:L,bgBlue:L,bgMagenta:L,bgCyan:L,bgWhite:L}};vs.exports=qi();vs.exports.createColors=qi;var Fa=vs.exports,Ua={},Ba=Object.freeze(Object.defineProperty({__proto__:null,default:Ua},Symbol.toStringTag,{value:"Module"})),ie=La(Ba),qs=Fa,ei=ie,Tr=class en extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,en)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=qs.isColorSupported),ei&&e&&(t=ei(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),o=String(n).length,l,a;if(e){let{bold:u,gray:c,red:h}=qs.createColors(!0);l=p=>u(h(p)),a=p=>c(p)}else l=a=u=>u;return r.slice(i,n).map((u,c)=>{let h=i+1+c,p=" "+(" "+h).slice(-o)+" | ";if(h===this.line){let g=a(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+u+` 20 `+g+l("^")}return" "+a(p)+u}).join(` 21`)}toString(){let e=this.showSourceCode();return e&&(e=` 22 23`+e+` 24`),this.name+": "+this.message+e}},Cs=Tr;Tr.default=Tr;var it={};it.isClean=Symbol("isClean");
vendor: 10,260 bytes, lines 24-36
24it.my=Symbol("my");var ti={after:` 25`,beforeClose:` 26`,beforeComment:` 27`,beforeDecl:` 28`,beforeOpen:" ",beforeRule:` 29`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Wa(s){return s[0].toUpperCase()+s.slice(1)}var _r=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&i.type!=="root";)n+=1,i=i.parent;if(r.includes(` 30`)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<n;l++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return ti[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]!="undefined")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+Wa(r);this[l]?i=this[l](o,e):o.walk(a=>{if(i=a.raws[t],typeof i!="undefined")return!1})}return typeof i=="undefined"&&(i=ti[r]),o.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(` 31`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(` 32`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(` 33`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before!="undefined")return t=r.raws.before,t.includes(` 34`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between!="undefined")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before!="undefined"){let n=r.raws.before.split(` 35`);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}},tn=_r;_r.default=_r;var za=tn;function kr(s,e){new za(e).stringify(s)}var sr=kr;kr.default=kr;var{isClean:dt,my:Va}=it,Ga=Cs,ja=tn,Ya=sr;function $r(s,e){let t=new s.constructor;for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r)||r==="proxyCache")continue;let i=s[r],n=typeof i;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(o=>$r(o,t)):(n==="object"&&i!==null&&(i=$r(i)),t[r]=i)}return t}var Pr=class{constructor(e={}){this.raws={},this[dt]=!1,this[Va]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=$r(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Ga(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[dt]){this[dt]=!1;let e=this;for(;e=e.parent;)e[dt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(r=this.positionInside(i,t))}return r}positionInside(e,t){let r=t||this.toString(),i=this.source.start.column,n=this.source.start.line;for(let o=0;o<e;o++)r[o]===` 36`?(i=1,n+=1):i+=1;return{column:i,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),n=i.indexOf(e.word);n!==-1&&(t=this.positionInside(n,i),r=this.positionInside(n+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new ja().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))r[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)r[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);a==null&&(a=n,t.set(l.input,n),n++),r[o]={end:l.end,inputId:a,start:l.start}}else r[o]=l}return i&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Ya){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}get proxyOf(){return this}},ir=Pr;Pr.default=Pr;var Ha=ir,Lr=class extends Ha{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},nr=Lr;Lr.default=Lr;var Za="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Xa=(s,e=21)=>(t=e)=>{let r="",i=t;for(;i--;)r+=s[Math.random()*s.length|0];return r},Ja=(s=21)=>{let e="",t=s;for(;t--;)e+=Za[Math.random()*64|0];return e},Ka={nanoid:Ja,customAlphabet:Xa},{SourceMapConsumer:ri,SourceMapGenerator:si}=ie,{existsSync:Qa,readFileSync:qa}=ie,{dirname:br,join:el}=ie;function tl(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}var Fr=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=br(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new ri(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(i.test(e)||n.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return tl(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);
36if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=br(e),Qa(e))return this.mapFile=e,qa(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof ri)return si.fromSourceMap(t).toString();if(t instanceof si)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=el(br(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},rn=Fr;Fr.default=Fr;var{SourceMapConsumer:rl,SourceMapGenerator:sl}=ie,{fileURLToPath:ii,pathToFileURL:pt}=ie,{isAbsolute:Ur,resolve:Br}=ie,{nanoid:il}
vendor: 2,936 bytes, lines 36-37
36=Ka,Sr=ie,ni=Cs,nl=rn,vr=Symbol("fromOffsetCache"),ol=!!(rl&&sl),oi=!!(Br&&Ur),jt=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!oi||/^\w+:\/\//.test(t.from)||Ur(t.from)?this.file=t.from:this.file=Br(t.from)),oi&&ol){let r=new nl(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+il(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,o,l;if(t&&typeof t=="object"){let u=t,c=r;if(typeof u.offset=="number"){let h=this.fromOffset(u.offset);t=h.line,r=h.col}else t=u.line,r=u.column;if(typeof c.offset=="number"){let h=this.fromOffset(c.offset);o=h.line,l=h.col}else o=c.line,l=c.column}else if(!r){let u=this.fromOffset(t);t=u.line,r=u.col}let a=this.origin(t,r,o,l);return a?n=new ni(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):n=new ni(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:l,line:o},this.css,this.file,i.plugin),n.input={column:r,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(pt&&(n.input.url=pt(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[vr])r=this[vr];else{let n=this.css.split(` 37`);r=new Array(n.length);let o=0;for(let l=0,a=n.length;l<a;l++)r[l]=o,o+=n[l].length+1;this[vr]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let n=r.length-2,o;for(;i<n;)if(o=i+(n-i>>1),e<r[o])n=o-1;else if(e>=r[o+1])i=o+1;else{i=o;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Br(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof r=="number"&&(l=n.originalPositionFor({column:i,line:r}));let a;Ur(o.source)?a=pt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||pt(this.map.mapFile));let u={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(ii)u.file=ii(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(o.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}},or=jt;jt.default=jt;Sr&&Sr.registerInput&&Sr.registerInput(jt);var{SourceMapConsumer:sn,SourceMapGenerator:kt}=ie,{dirname:$t,relative:nn,resolve:on,sep:an}=ie,{pathToFileURL:ai}=ie,al=or,ll=!!(sn&&kt),ul=!!($t&&on&&nn&&an),cl=class{constructor(e,t,r,i
vendor: 5,649 bytes, lines 37-41
37){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=` 38`;this.css.includes(`\r 39`)&&(t=`\r 40`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||$t(e.file),i;this.mapOpts.sourcesContent===!1?(i=new sn(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ul&&ll&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=kt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new kt({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]}generateString(){this.css="",this.map=new kt({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(i.generated.line=e,i.generated.column=t-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),n=l.match(/\n/g),n?(e+=n.length,o=l.lastIndexOf(` 41`),t=l.length-o):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?$t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=$t(on(r,this.mapOpts.annotation)));let i=nn(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new al(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(ai){let r=ai(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;an==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},ln=cl,hl=ir,Wr=class extends hl{constructor(e){super(e),this.type="comment"}},ar=Wr;Wr.default=Wr;var{isClean:un,my:cn}=it,hn=nr,fn=ar,fl=ir,dn,Is,Es,pn;function mn(s){return s.map(e=>(e.nodes&&(e.nodes=mn(e.nodes)),delete e.source,e))}
vendor: 4,276 bytes, line 41
41function gn(s){if(s[un]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)gn(e)}var fe=class yn extends fl{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,o)=>i(n.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],r<n&&(this.indexes[o]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let l of n)this.proxyOf.nodes.splice(r,0,l);let o;for(let l in this.indexes)o=this.indexes[l],r<=o&&(this.indexes[l]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=mn(dn(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new hn(e)]}else if(e.selector)e=[new Is(e)];else if(e.name)e=[new Es(e)];else if(e.text)e=[new fn(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[cn]||yn.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[un]&&gn(i),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}
vendor: 5,328 bytes, lines 41-42
41))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};fe.registerParse=s=>{dn=s};fe.registerRule=s=>{Is=s};fe.registerAtRule=s=>{Es=s};fe.registerRoot=s=>{pn=s};var Ie=fe;fe.default=fe;fe.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Es.prototype):s.type==="rule"?Object.setPrototypeOf(s,Is.prototype):s.type==="decl"?Object.setPrototypeOf(s,hn.prototype):s.type==="comment"?Object.setPrototypeOf(s,fn.prototype):s.type==="root"&&Object.setPrototypeOf(s,pn.prototype),s[cn]=!0,s.nodes&&s.nodes.forEach(e=>{fe.rebuild(e)})};var dl=Ie,wn,bn,Ze=class extends dl{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new wn(new bn,this,e).stringify()}};Ze.registerLazyResult=s=>{wn=s};Ze.registerProcessor=s=>{bn=s};var xs=Ze;Ze.default=Ze;var zr=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){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}},Sn=zr;zr.default=zr;var pl=Sn,Vr=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new pl(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},Ms=Vr;Vr.default=Vr;var Cr="'".charCodeAt(0),li='"'.charCodeAt(0),mt="\\".charCodeAt(0),ui="/".charCodeAt(0),gt=` 42`.charCodeAt(0),Ue=" ".charCodeAt(0),yt="\f".charCodeAt(0),wt=" ".charCodeAt(0),bt="\r".charCodeAt(0),ml="[".charCodeAt(0),gl="]".charCodeAt(0),yl="(".charCodeAt(0),wl=")".charCodeAt(0),bl="{".charCodeAt(0),Sl="}".charCodeAt(0),vl=";".charCodeAt(0),Cl="*".charCodeAt(0),Il=":".charCodeAt(0),El="@".charCodeAt(0),St=/[\t\n\f\r "#'()/;[\\\]{}]/g,vt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,xl=/.[\r\n"'(/\\]/,ci=/[\da-f]/i,Ml=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,l,a,u,c,h,p,g,m,d=r.length,f=0,C=[],I=[];function y(){return f}function E(b){throw e.error("Unclosed "+b,f)}function A(){return I.length===0&&f>=d}function k(b){if(I.length)return I.pop();if(f>=d)return;let S=b?b.ignoreUnclosed:!1;switch(n=r.charCodeAt(f),n){case gt:case Ue:case wt:case bt:case yt:{o=f;do o+=1,n=r.charCodeAt(o);while(n===Ue||n===gt||n===wt||n===bt||n===yt);m=["space",r.slice(f,o)],f=o-1;break}case ml:case gl:case bl:case Sl:case Il:case vl:case wl:{let O=String.fromCharCode(n);m=[O,O,f];break}case yl:{if(p=C.length?C.pop()[1]:"",g=r.charCodeAt(f+1),p==="url"&&g!==Cr&&g!==li&&g!==Ue&&g!==gt&&g!==wt&&g!==yt&&g!==bt){o=f;do{if(c=!1,o=r.indexOf(")",o+1),o===-1)if(i||S){o=f;break}else E("bracket");for(h=o;r.charCodeAt(h-1)===mt;)h-=1,c=!c}while(c);m=["brackets",r.slice(f,o+1),f,o],f=o}else o=r.indexOf(")",f+1),a=r.slice(f,o+1),o===-1||xl.test(a)?m=["(","(",f]:(m=["brackets",a,f,o],f=o);break}case Cr:case li:{l=n===Cr?"'":'"',o=f;do{if(c=!1,o=r.indexOf(l,o+1),o===-1)if(i||S){o=f+1;break}else E("string");for(h=o;r.charCodeAt(h-1)===mt;)h-=1,c=!c}while(c);m=["string",r.slice(f,o+1),f,o],f=o;break}case El:{St.lastIndex=f+1,St.test(r),St.lastIndex===0?o=r.length-1:o=St.lastIndex-2,m=["at-word",r.slice(f,o+1),f,o],f=o;break}case mt:{for(o=f,u=!0;r.charCodeAt(o+1)===mt;)o+=1,u=!u;if(n=r.charCodeAt(o+1),u&&n!==ui&&n!==Ue&&n!==gt&&n!==wt&&n!==bt&&n!==yt&&(o+=1,ci.test(r.charAt(o)))){for(;ci.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===Ue&&(o+=1)}m=["word",r.slice(f,o+1),f,o],f=o;break}default:{n===ui&&r.charCodeAt(f+1)===Cl?(o=r.indexOf("*/",f+2)+1,o===0&&(i||S?o=r.length:E("comment")),m=["comment",r.slice(f,o+1),f,o],f=o):(vt.lastIndex=f+1,vt.test(r),vt.lastIndex===0?o=r.length-1:o=vt.lastIndex-2,m=["word",r.slice(f,o+1),f,o],C.push(m),f=o);break}}return f++,m}function G(b){I.push(b)}return{back:G,endOfFile:A,nextToken:k,position:y}},vn=Ie,Yt=class extends vn{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}},Ns=Yt;Yt.default=Yt;vn.registerAtRule(Yt);var Cn=Ie,In,En,Te=class extends Cn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new In(new En,this,e).stringify()}};Te.registerLazyResult=s=>{In=s};Te.registerProcessor=s=>{En=s};var nt=Te;Te.default=Te;
vendor: 6,015 bytes, lines 42-43
42Cn.registerRoot(Te);var Xe={comma(s){return Xe.split(s,[","],!0)},space(s){let e=[" ",` 43`," "];return Xe.split(s,e)},split(s,e,t){let r=[],i="",n=!1,o=0,l=!1,a="",u=!1;for(let c of s)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=c;return(t||i!=="")&&r.push(i.trim()),r}},xn=Xe;Xe.default=Xe;var Mn=Ie,Nl=xn,Ht=class extends Mn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Nl.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}},Rs=Ht;Ht.default=Ht;Mn.registerRule(Ht);var Rl=nr,Al=Ml,Ol=ar,Dl=Ns,Tl=nt,hi=Rs,fi={empty:!0,space:!0};function _l(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}var kl=class{constructor(e){this.input=e,this.root=new Tl,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Dl;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,o=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(n=a.length-1,i=a[n];i&&i[0]==="space";)i=a[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[o,l]of e.entries()){if(r=l,i=r[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!n)this.doubleColon(r);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=r}return!1}comment(e){let t=new Ol;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Al(this.input)}decl(e,t){let r=new Rl;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||_l(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(n=e[u],n[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(n[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let p=u;p>0;p--){let g=c[p][0];if(h.trim().indexOf("!")===0&&g!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=h,e=c)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=o.map(u=>u[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new hi;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){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())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,o=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(r=u[0],a.push(u),r==="("||r==="[")n||(n=u),o.push(r==="("?")":"]");else if(l&&i&&r==="{")n||(n=u),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));u=this.tokenizer.nextToken()}
vendor: 4,658 bytes, line 43
43if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&i){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,o,l=r.length,a="",u=!0,c,h;for(let p=0;p<l;p+=1)n=r[p],o=n[0],o==="space"&&p===l-1&&!i?u=!1:o==="comment"?(h=r[p-1]?r[p-1][0]:"empty",c=r[p+1]?r[p+1][0]:"empty",!fi[h]&&!fi[c]?a.slice(-1)===","?u=!1:a+=n[1]:u=!1):a+=n[1];if(!u){let p=r.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:p,value:a}}e[t]=a}rule(e){e.pop();let t=new hi;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},$l=kl,Pl=Ie,Ll=$l,Fl=or;function Zt(s,e){let t=new Fl(s,e),r=new Ll(t);try{r.parse()}catch(i){throw i}return r.root}var As=Zt;Zt.default=Zt;Pl.registerParse(Zt);var{isClean:le,my:Ul}=it,Bl=ln,Wl=sr,zl=Ie,Vl=xs;var di=Ms,Gl=As,jl=nt,Yl={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Hl={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},Zl={Once:!0,postcssPlugin:!0,prepare:!0},_e=0;function Be(s){return typeof s=="object"&&typeof s.then=="function"}function Nn(s){let e=!1,t=Yl[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,_e,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,_e,t+"Exit"]:[t,t+"Exit"]}function pi(s){let e;return s.type==="document"?e=["Document",_e,"DocumentExit"]:s.type==="root"?e=["Root",_e,"RootExit"]:e=Nn(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function Gr(s){return s[le]=!1,s.nodes&&s.nodes.forEach(e=>Gr(e)),s}var jr={},ke=class Rn{constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Gr(t);else if(t instanceof Rn||t instanceof di)i=Gr(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=Gl;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(o){this.processed=!0,this.error=o}i&&!i[Ul]&&zl.rebuild(i)}this.result=new di(e,i,r),this.helpers={...jr,postcss:jr,result:this.result},this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?{...n,...n.prepare(this.result)}:n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Hl[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}
43. Try to update PostCSS (${this.processor.version} now).`);if(!Zl[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(Be(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[le];){e[le]=!0;let t=[pi(e)];for(;t.length>0;){let r=this.visitTick(t);if(Be(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return Be(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Wl;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Bl(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(Be(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[le];)e[le]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(Be(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!l[le]){l[le]=!0,e.push(pi(l));return}t.iterator=0,delete r.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===_e){r.nodes&&r.nodes.length&&(r[le]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[le]=!0;let t=Nn(e);for(let r of t)if(r===_e)e.nodes&&e.each(i=>{i[le]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};ke.registerPostcss=s=>{jr=s};var An=ke;ke.default=ke;jl.registerLazyResult(ke);Vl.registerLazyResult(ke);var Xl=ln,Jl=sr;var Kl=As,Ql=Ms,Yr=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=Jl;this.result=new Ql(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Xl(n,i,this._opts,t);
vendor: 4,155 bytes, lines 43-45
43if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Kl;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}},ql=Yr;Yr.default=Yr;var eu=ql,tu=An,ru=xs,su=nt,Je=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new eu(this,e,t):new tu(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},iu=Je;Je.default=Je;su.registerProcessor(Je);ru.registerProcessor(Je);var nu=nr,ou=rn,au=ar,lu=Ns,uu=or,cu=nt,hu=Rs;function Ke(s,e){if(Array.isArray(s))return s.map(i=>Ke(i));let{inputs:t,...r}=s;if(t){e=[];for(let i of t){let n={...i,__proto__:uu.prototype};n.map&&(n.map={...n.map,__proto__:ou.prototype}),e.push(n)}}if(r.nodes&&(r.nodes=s.nodes.map(i=>Ke(i,e))),r.source){let{inputId:i,...n}=r.source;r.source=n,i!=null&&(r.source.input=e[i])}if(r.type==="root")return new cu(r);if(r.type==="decl")return new nu(r);if(r.type==="rule")return new hu(r);if(r.type==="comment")return new au(r);if(r.type==="atrule")return new lu(r);throw new Error("Unknown node type: "+s.type)}var fu=Ke;Ke.default=Ke;var du=Cs,On=nr,pu=An,mu=Ie,Os=iu,gu=sr,yu=fu,Dn=xs,wu=Sn,Tn=ar,_n=Ns,bu=Ms,Su=or,vu=As,Cu=xn,kn=Rs,$n=nt,Iu=ir;function T(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Os(s)}T.plugin=function(e,t){let r=!1;function i(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: 44https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357: 45https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Os().version,l}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(o,l,a){return T([i(a)]).process(o,l)},i};T.stringify=gu;T.parse=vu;T.fromJSON=yu;T.list=Cu;T.comment=s=>new Tn(s);T.atRule=s=>new _n(s);T.decl=s=>new On(s);T.rule=s=>new kn(s);T.root=s=>new $n(s);T.document=s=>new Dn(s);T.CssSyntaxError=du;T.Declaration=On;T.Container=mu;T.Processor=Os;T.Document=Dn;T.Comment=Tn;T.Warning=wu;T.AtRule=_n;T.Result=bu;T.Input=Su;T.Rule=kn;T.Root=$n;T.Node=Iu;pu.registerPostcss(T);var Eu=T;T.default=T;var U=Pa(Eu);U.stringify;U.fromJSON;U.plugin;U.parse;U.list;U.document;U.comment;U.atRule;U.rule;U.decl;U.root;U.CssSyntaxError;U.Declaration;U.Container;U.Processor;U.Document;U.Comment;U.Warning;U.AtRule;U.Result;U.Input;U.Rule;U.Root;U.Node;var xu=Object.defineProperty,Mu=(s,e,t)=>e in s?xu(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,te=(s,e,t)=>Mu(s,typeof e!="symbol"?e+"":e,t);function Nu(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Ru(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};
vendor: 12,286 bytes, lines 45-62
45return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}var Ds={exports:{}},F=String,Pn=function(){return{isColorSupported:!1,reset:F,bold:F,dim:F,italic:F,underline:F,inverse:F,hidden:F,strikethrough:F,black:F,red:F,green:F,yellow:F,blue:F,magenta:F,cyan:F,white:F,gray:F,bgBlack:F,bgRed:F,bgGreen:F,bgYellow:F,bgBlue:F,bgMagenta:F,bgCyan:F,bgWhite:F}};Ds.exports=Pn();Ds.exports.createColors=Pn;var Au=Ds.exports,Ou={},Du=Object.freeze(Object.defineProperty({__proto__:null,default:Ou},Symbol.toStringTag,{value:"Module"})),ne=Ru(Du),mi=Au,gi=ne,Hr=class Ln extends Error{constructor(e,t,r,i,n,o){super(e),this.name="CssSyntaxError",this.reason=e,n&&(this.file=n),i&&(this.source=i),o&&(this.plugin=o),typeof t!="undefined"&&typeof r!="undefined"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ln)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=mi.isColorSupported),gi&&e&&(t=gi(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),n=Math.min(this.line+2,r.length),o=String(n).length,l,a;if(e){let{bold:u,gray:c,red:h}=mi.createColors(!0);l=p=>u(h(p)),a=p=>c(p)}else l=a=u=>u;return r.slice(i,n).map((u,c)=>{let h=i+1+c,p=" "+(" "+h).slice(-o)+" | ";if(h===this.line){let g=a(p.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+u+` 46 `+g+l("^")}return" "+a(p)+u}).join(` 47`)}toString(){let e=this.showSourceCode();return e&&(e=` 48 49`+e+` 50`),this.name+": "+this.message+e}},Ts=Hr;Hr.default=Hr;var ot={};ot.isClean=Symbol("isClean");ot.my=Symbol("my");var yi={after:` 51`,beforeClose:` 52`,beforeComment:` 53`,beforeDecl:` 54`,beforeOpen:" ",beforeRule:` 55`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Tu(s){return s[0].toUpperCase()+s.slice(1)}var Zr=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,n=0;for(;i&&i.type!=="root";)n+=1,i=i.parent;if(r.includes(` 56`)){let o=this.raw(e,null,"indent");if(o.length)for(let l=0;l<n;l++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let n=e.nodes[i],o=this.raw(n,"before");o&&this.builder(o),this.stringify(n,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i!="undefined"))return i;let n=e.parent;if(r==="before"&&(!n||n.type==="root"&&n.first===e||n&&n.type==="document"))return"";if(!n)return yi[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]!="undefined")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let l="raw"+Tu(r);this[l]?i=this[l](o,e):o.walk(a=>{if(i=a.raws[t],typeof i!="undefined")return!1})}return typeof i=="undefined"&&(i=yi[r]),o.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after!="undefined")return t=r.raws.after,t.includes(` 57`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(` 58`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(i=>{if(typeof i.raws.before!="undefined")return r=i.raws.before,r.includes(` 59`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r=="undefined"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t!="undefined"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before!="undefined")return t=r.raws.before,t.includes(` 60`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between!="undefined")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t!="undefined"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before!="undefined"){let n=r.raws.before.split(` 61`);return t=n[n.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t!="undefined"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}},Fn=Zr;Zr.default=Zr;var _u=Fn;function Xr(s,e){new _u(e).stringify(s)}var lr=Xr;Xr.default=Xr;var{isClean:Ct,my:ku}=ot,$u=Ts,Pu=Fn,Lu=lr;function Jr(s,e){let t=new s.constructor;for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r)||r==="proxyCache")continue;let i=s[r],n=typeof i;r==="parent"&&n==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(o=>Jr(o,t)):(n==="object"&&i!==null&&(i=Jr(i)),t[r]=i)}return t}var Kr=class{constructor(e={}){this.raws={},this[Ct]=!1,this[ku]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Jr(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new $u(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Ct]){this[Ct]=!1;let e=this;for(;e=e.parent;)e[Ct]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(r=this.positionInside(i,t))}return r}positionInside(e,t){let r=t||this.toString(),i=this.source.start.column,n=this.source.start.line;for(let o=0;o<e;o++)r[o]===` 62`?(i=1,n+=1):i+=1;return{column:i,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),n=i.indexOf(e.word);n!==-1&&(t=this.positionInside(n,i),r=this.positionInside(n+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new Pu().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let n=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let l=this[o];if(Array.isArray(l))r[o]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)r[o]=l.toJSON(null,t);else if(o==="source"){let a=t.get(l.input);a==null&&(a=n,t.set(l.input,n),n++),r[o]={end:l.end,inputId:a,start:l.start}}else r[o]=l}return i&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Lu){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}get proxyOf(){return this}},ur=Kr;Kr.default=Kr;var Fu=ur,Qr=class extends Fu{constructor(e){e&&typeof e.value!="undefined"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}},cr=Qr;Qr.default=Qr;var Uu="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Bu=(s,e=21)=>(t=e)=>{let r="",i=t;for(;i--;)r+=s[Math.random()*s.length|0];return r},Wu=(s=21)=>{let e="",t=s;for(;t--;)e+=Uu[Math.random()*64|0];return e},zu={nanoid:Wu,customAlphabet:Bu},{SourceMapConsumer:wi,SourceMapGenerator:bi}=ne,{existsSync:Vu,readFileSync:Gu}=ne,{dirname:Ir,join:ju}=ne;function Yu(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}var qr=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ir(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new wi(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(i.test(e)||n.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return Yu(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);
62if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=Ir(e),Vu(e))return this.mapFile=e,Gu(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof wi)return bi.fromSourceMap(t).toString();if(t instanceof bi)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=ju(Ir(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}},Un=qr;qr.default=qr;var{SourceMapConsumer:Hu,SourceMapGenerator:Zu}=ne,{fileURLToPath:Si,pathToFileURL:It}=ne,{isAbsolute:es,resolve:ts}=ne,{nanoid:Xu}
vendor: 2,936 bytes, lines 62-63
62=zu,Er=ne,vi=Ts,Ju=Un,xr=Symbol("fromOffsetCache"),Ku=!!(Hu&&Zu),Ci=!!(ts&&es),Xt=class{constructor(e,t={}){if(e===null||typeof e=="undefined"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Ci||/^\w+:\/\//.test(t.from)||es(t.from)?this.file=t.from:this.file=ts(t.from)),Ci&&Ku){let r=new Ju(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Xu(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let n,o,l;if(t&&typeof t=="object"){let u=t,c=r;if(typeof u.offset=="number"){let h=this.fromOffset(u.offset);t=h.line,r=h.col}else t=u.line,r=u.column;if(typeof c.offset=="number"){let h=this.fromOffset(c.offset);o=h.line,l=h.col}else o=c.line,l=c.column}else if(!r){let u=this.fromOffset(t);t=u.line,r=u.col}let a=this.origin(t,r,o,l);return a?n=new vi(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):n=new vi(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:l,line:o},this.css,this.file,i.plugin),n.input={column:r,endColumn:l,endLine:o,line:t,source:this.css},this.file&&(It&&(n.input.url=It(this.file).toString()),n.input.file=this.file),n}fromOffset(e){let t,r;if(this[xr])r=this[xr];else{let n=this.css.split(` 63`);r=new Array(n.length);let o=0;for(let l=0,a=n.length;l<a;l++)r[l]=o,o+=n[l].length+1;this[xr]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let n=r.length-2,o;for(;i<n;)if(o=i+(n-i>>1),e<r[o])n=o-1;else if(e>=r[o+1])i=o+1;else{i=o;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ts(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let n=this.map.consumer(),o=n.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof r=="number"&&(l=n.originalPositionFor({column:i,line:r}));let a;es(o.source)?a=It(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||It(this.map.mapFile));let u={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Si)u.file=Si(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=n.sourceContentFor(o.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}},hr=Xt;Xt.default=Xt;Er&&Er.registerInput&&Er.registerInput(Xt);var{SourceMapConsumer:Bn,SourceMapGenerator:Pt}=ne,{dirname:Lt,relative:Wn,resolve:zn,sep:Vn}=ne,{pathToFileURL:Ii}=ne,Qu=hr,qu=!!(Bn&&Pt),ec=!!(Lt&&zn&&Wn&&Vn),tc=class{constructor(e,t,r,i
vendor: 9,925 bytes, lines 63-67
63){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=` 64`;this.css.includes(`\r 65`)&&(t=`\r 66`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Lt(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Bn(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ec&&qu&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Pt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Pt({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]}generateString(){this.css="",this.map=new Pt({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},n,o;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(i.generated.line=e,i.generated.column=t-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),n=l.match(/\n/g),n?(e+=n.length,o=l.lastIndexOf(` 67`),t=l.length-o):t+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Lt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Lt(zn(r,this.mapOpts.annotation)));let i=Wn(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Qu(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Ii){let r=Ii(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Vn==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}},Gn=tc,rc=ur,rs=class extends rc{constructor(e){super(e),this.type="comment"}},fr=rs;rs.default=rs;var{isClean:jn,my:Yn}=ot,Hn=cr,Zn=fr,sc=ur,Xn,_s,ks,Jn;function Kn(s){return s.map(e=>(e.nodes&&(e.nodes=Kn(e.nodes)),delete e.source,e))}function Qn(s){if(s[jn]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)Qn(e)}var de=class qn extends sc{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(n,o)=>i(n.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...n)=>r(i.toProxy(),...n)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let n;for(let o in this.indexes)n=this.indexes[o],r<n&&(this.indexes[o]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let l of n)this.proxyOf.nodes.splice(r,0,l);let o;for(let l in this.indexes)o=this.indexes[l],r<=o&&(this.indexes[l]=o+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Kn(Xn(e).nodes);else if(typeof e=="undefined")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value=="undefined")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Hn(e)]}else if(e.selector)e=[new _s(e)];else if(e.name)e=[new ks(e)];else if(e.text)e=[new Zn(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Yn]||qn.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[jn]&&Qn(i),typeof i.raws.before=="undefined"&&t&&typeof t.raws.before!="undefined"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}
vendor: 5,416 bytes, lines 67-68
67))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};de.registerParse=s=>{Xn=s};de.registerRule=s=>{_s=s};de.registerAtRule=s=>{ks=s};de.registerRoot=s=>{Jn=s};var Ee=de;de.default=de;de.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,ks.prototype):s.type==="rule"?Object.setPrototypeOf(s,_s.prototype):s.type==="decl"?Object.setPrototypeOf(s,Hn.prototype):s.type==="comment"?Object.setPrototypeOf(s,Zn.prototype):s.type==="root"&&Object.setPrototypeOf(s,Jn.prototype),s[Yn]=!0,s.nodes&&s.nodes.forEach(e=>{de.rebuild(e)})};var ic=Ee,eo,to,Qe=class extends ic{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new eo(new to,this,e).stringify()}};Qe.registerLazyResult=s=>{eo=s};Qe.registerProcessor=s=>{to=s};var $s=Qe;Qe.default=Qe;var ss=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){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}},ro=ss;ss.default=ss;var nc=ro,is=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new nc(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}},Ps=is;is.default=is;var Mr="'".charCodeAt(0),Ei='"'.charCodeAt(0),Et="\\".charCodeAt(0),xi="/".charCodeAt(0),xt=` 68`.charCodeAt(0),We=" ".charCodeAt(0),Mt="\f".charCodeAt(0),Nt=" ".charCodeAt(0),Rt="\r".charCodeAt(0),oc="[".charCodeAt(0),ac="]".charCodeAt(0),lc="(".charCodeAt(0),uc=")".charCodeAt(0),cc="{".charCodeAt(0),hc="}".charCodeAt(0),fc=";".charCodeAt(0),dc="*".charCodeAt(0),pc=":".charCodeAt(0),mc="@".charCodeAt(0),At=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ot=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,gc=/.[\r\n"'(/\\]/,Mi=/[\da-f]/i,yc=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,n,o,l,a,u,c,h,p,g,m,d=r.length,f=0,C=[],I=[];function y(){return f}function E(b){throw e.error("Unclosed "+b,f)}function A(){return I.length===0&&f>=d}function k(b){if(I.length)return I.pop();if(f>=d)return;let S=b?b.ignoreUnclosed:!1;switch(n=r.charCodeAt(f),n){case xt:case We:case Nt:case Rt:case Mt:{o=f;do o+=1,n=r.charCodeAt(o);while(n===We||n===xt||n===Nt||n===Rt||n===Mt);m=["space",r.slice(f,o)],f=o-1;break}case oc:case ac:case cc:case hc:case pc:case fc:case uc:{let O=String.fromCharCode(n);m=[O,O,f];break}case lc:{if(p=C.length?C.pop()[1]:"",g=r.charCodeAt(f+1),p==="url"&&g!==Mr&&g!==Ei&&g!==We&&g!==xt&&g!==Nt&&g!==Mt&&g!==Rt){o=f;do{if(c=!1,o=r.indexOf(")",o+1),o===-1)if(i||S){o=f;break}else E("bracket");for(h=o;r.charCodeAt(h-1)===Et;)h-=1,c=!c}while(c);m=["brackets",r.slice(f,o+1),f,o],f=o}else o=r.indexOf(")",f+1),a=r.slice(f,o+1),o===-1||gc.test(a)?m=["(","(",f]:(m=["brackets",a,f,o],f=o);break}case Mr:case Ei:{l=n===Mr?"'":'"',o=f;do{if(c=!1,o=r.indexOf(l,o+1),o===-1)if(i||S){o=f+1;break}else E("string");for(h=o;r.charCodeAt(h-1)===Et;)h-=1,c=!c}while(c);m=["string",r.slice(f,o+1),f,o],f=o;break}case mc:{At.lastIndex=f+1,At.test(r),At.lastIndex===0?o=r.length-1:o=At.lastIndex-2,m=["at-word",r.slice(f,o+1),f,o],f=o;break}case Et:{for(o=f,u=!0;r.charCodeAt(o+1)===Et;)o+=1,u=!u;if(n=r.charCodeAt(o+1),u&&n!==xi&&n!==We&&n!==xt&&n!==Nt&&n!==Rt&&n!==Mt&&(o+=1,Mi.test(r.charAt(o)))){for(;Mi.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===We&&(o+=1)}m=["word",r.slice(f,o+1),f,o],f=o;break}default:{n===xi&&r.charCodeAt(f+1)===dc?(o=r.indexOf("*/",f+2)+1,o===0&&(i||S?o=r.length:E("comment")),m=["comment",r.slice(f,o+1),f,o],f=o):(Ot.lastIndex=f+1,Ot.test(r),Ot.lastIndex===0?o=r.length-1:o=Ot.lastIndex-2,m=["word",r.slice(f,o+1),f,o],C.push(m),f=o);break}}return f++,m}function G(b){I.push(b)}return{back:G,endOfFile:A,nextToken:k,position:y}},so=Ee,Jt=class extends so{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}},Ls=Jt;Jt.default=Jt;so.registerAtRule(Jt);var io=Ee,no,oo,$e=class extends io{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let n of i)n.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new no(new oo,this,e).stringify()}};$e.registerLazyResult=s=>{no=s};$e.registerProcessor=s=>{oo=s};var at=$e;$e.default=$e;io.registerRoot($e);var qe={comma(s){return qe.split(s,[","],!0)},space(s){let e=[" ",`
69`," "];return qe.split(s,e)},split(s,e,t){let r=[],i="",n=!1,o=0,l=!1,a="",u=!1;for(let c of s)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(n=!0),n?(i!==""&&r.push(i.trim()),i="",n=!1):i+=c;return(t||i!=="")&&r.push(i.trim()),r}},ao=qe;qe.default=qe;var lo=Ee,wc=ao,Kt=class extends lo{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return wc.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}},Fs=Kt;Kt.default=Kt;lo.registerRule(Kt);var bc=cr,Sc=yc,vc=fr,Cc=Ls,Ic=at,Ni=Fs,Ri={empty:!0,space:!0};function Ec(s){for(let e=s.length-1;e>=0;e--){let t=s[e],r=t[3]||t[2];if(r)return r}}var xc=class{constructor(e){this.input=e,this.root=new Ic,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Cc;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,n,o=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){l=!0;break}else if(r==="}"){if(a.length>0){for(n=a.length-1,i=a[n];i&&i[0]==="space";)i=a[--n];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let n=t-1;n>=0&&(i=e[n],!(i[0]!=="space"&&(r+=1,r===2)));n--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,n;for(let[o,l]of e.entries()){if(r=l,i=r[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!n)this.doubleColon(r);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=r}return!1}comment(e){let t=new vc;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Sc(this.input)}decl(e,t){let r=new bc;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Ec(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let n;for(;e.length;)if(n=e.shift(),n[0]===":"){r.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(n=e[u],n[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(n[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let p=u;p>0;p--){let g=c[p][0];if(h.trim().indexOf("!")===0&&g!=="space")break;h=c.pop()[1]+h}h.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=h,e=c)}if(n[0]!=="space"&&n[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=o.map(u=>u[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Ni;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){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())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,n=null,o=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(r=u[0],a.push(u),r==="("||r==="[")n||(n=u),o.push(r==="("?")":"]");else if(l&&i&&r==="{")n||(n=u),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(a,l);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(n=null));u=this.tokenizer.nextToken()}
vendor: 4,658 bytes, line 69
69if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&i){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,o,l=r.length,a="",u=!0,c,h;for(let p=0;p<l;p+=1)n=r[p],o=n[0],o==="space"&&p===l-1&&!i?u=!1:o==="comment"?(h=r[p-1]?r[p-1][0]:"empty",c=r[p+1]?r[p+1][0]:"empty",!Ri[h]&&!Ri[c]?a.slice(-1)===","?u=!1:a+=n[1]:u=!1):a+=n[1];if(!u){let p=r.reduce((g,m)=>g+m[1],"");e.raws[t]={raw:p,value:a}}e[t]=a}rule(e){e.pop();let t=new Ni;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Mc=xc,Nc=Ee,Rc=Mc,Ac=hr;function Qt(s,e){let t=new Ac(s,e),r=new Rc(t);try{r.parse()}catch(i){throw i}return r.root}var Us=Qt;Qt.default=Qt;Nc.registerParse(Qt);var{isClean:ue,my:Oc}=ot,Dc=Gn,Tc=lr,_c=Ee,kc=$s;var Ai=Ps,$c=Us,Pc=at,Lc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Fc={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},Uc={Once:!0,postcssPlugin:!0,prepare:!0},Pe=0;function ze(s){return typeof s=="object"&&typeof s.then=="function"}function uo(s){let e=!1,t=Lc[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,Pe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,Pe,t+"Exit"]:[t,t+"Exit"]}function Oi(s){let e;return s.type==="document"?e=["Document",Pe,"DocumentExit"]:s.type==="root"?e=["Root",Pe,"RootExit"]:e=uo(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function ns(s){return s[ue]=!1,s.nodes&&s.nodes.forEach(e=>ns(e)),s}var os={},Le=class co{constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=ns(t);else if(t instanceof co||t instanceof Ai)i=ns(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let n=$c;r.syntax&&(n=r.syntax.parse),r.parser&&(n=r.parser),n.parse&&(n=n.parse);try{i=n(t,r)}catch(o){this.processed=!0,this.error=o}i&&!i[Oc]&&_c.rebuild(i)}this.result=new Ai(e,i,r),this.helpers={...os,postcss:os,result:this.result},this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?{...n,...n.prepare(this.result)}:n)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Fc[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}
69. Try to update PostCSS (${this.processor.version} now).`);if(!Uc[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(ze(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ue];){e[ue]=!0;let t=[Oi(e)];for(;t.length>0;){let r=this.visitTick(t);if(ze(r))try{await r}catch(i){let n=t[t.length-1].node;throw this.handleError(i,n)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(n=>r(n,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return ze(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Tc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Dc(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(ze(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ue];)e[ue]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let n;try{n=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ze(n))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,l]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return l(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let o=t.iterator,l;for(;l=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!l[ue]){l[ue]=!0,e.push(Oi(l));return}t.iterator=0,delete r.indexes[o]}let n=t.events;for(;t.eventIndex<n.length;){let o=n[t.eventIndex];if(t.eventIndex+=1,o===Pe){r.nodes&&r.nodes.length&&(r[ue]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[ue]=!0;let t=uo(e);for(let r of t)if(r===Pe)e.nodes&&e.each(i=>{i[ue]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Le.registerPostcss=s=>{os=s};var ho=Le;Le.default=Le;Pc.registerLazyResult(Le);kc.registerLazyResult(Le);var Bc=Gn,Wc=lr;var zc=Us,Vc=Ps,as=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,n=Wc;this.result=new Vc(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Bc(n,i,this._opts,t);
69if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=zc;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}},Gc=as;as.default=as;var jc=Gc,Yc=ho,Hc=$s,Zc=at,et=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new jc(this,e,t):new Yc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}},Xc=et;et.default=et;Zc.registerProcessor(et);Hc.registerProcessor(et);var Jc=cr,Kc=Un,Qc=fr,qc=Ls,eh=hr,th=at,rh=Fs;function tt(s,e){if(Array.isArray(s))return s.map(i=>tt(i));let{inputs:t,...r}=s;if(t){e=[];for(let i of t){let n={...i,__proto__:eh.prototype};n.map&&(n.map={...n.map,__proto__:Kc.prototype}),e.push(n)}}if(r.nodes&&(r.nodes=s.nodes.map(i=>tt(i,e))),r.source){let{inputId:i,...n}=r.source;r.source=n,i!=null&&(r.source.input=e[i])}if(r.type==="root")return new th(r);if(r.type==="decl")return new Jc(r);if(r.type==="rule")return new rh(r);if(r.type==="comment")return new Qc(r);if(r.type==="atrule")return new qc(r);throw new Error("Unknown node type: "+s.type)}var sh=tt;tt.default=tt;var ih=Ts,fo=cr,nh=ho,oh=Ee,Bs=Xc,ah=lr,lh=sh,po=$s,uh=ro,mo=fr,go=Ls,ch=Ps,hh=hr,fh=Us,dh=ao,yo=Fs,wo=at,ph=ur;function _(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Bs(s)}_.plugin=function(e,t){let r=!1;function i(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: 70https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357: 71https://www.w3ctech.com/topic/2226`));let l=t(...o);return l.postcssPlugin=e,l.postcssVersion=new Bs().version,l}let n;return Object.defineProperty(i,"postcss",{get(){return n||(n=i()),n}}),i.process=function(o,l,a){return _([i(a)]).process(o,l)},i};_.stringify=ah;_.parse=fh;_.fromJSON=lh;_.list=dh;_.comment=s=>new mo(s);_.atRule=s=>new go(s);_.decl=s=>new fo(s);_.rule=s=>new yo(s);_.root=s=>new wo(s);_.document=s=>new po(s);_.CssSyntaxError=ih;_.Declaration=fo;_.Container=oh;_.Processor=Bs;_.Document=po;_.Comment=mo;_.Warning=uh;_.AtRule=go;_.Result=ch;_.Input=hh;_.Rule=yo;_.Root=wo;_.Node=ph;nh.registerPostcss(_);var mh=_;_.default=_;var B=Nu(mh);B.stringify;B.fromJSON;B.plugin;B.parse;B.list;B.document;B.comment;B.atRule;B.rule;B.decl;B.root;B.CssSyntaxError;B.Declaration;B.Container;B.Processor;B.Document;B.Comment;B.Warning;B.AtRule;B.Result;B.Input;B.Rule;B.Root;B.Node;var rt=class{constructor(...e){te(this,"parentElement",null),te(this,"parentNode",null),te(this,"ownerDocument"),te(this,"firstChild",null),te(this,"lastChild",null),te(this,"previousSibling",null),te(this,"nextSibling",null),te(this,"ELEMENT_NODE",1),te(this,"TEXT_NODE",3),te(this,"nodeType"),te(this,"nodeName"),te(this,"RRNodeType")}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof rt){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}};var Di={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ti={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Dt={},gh=()=>!!globalThis.Zone;
vendor: 21,661 bytes, lines 71-73
71function Ws(s){if(Dt[s])return Dt[s];let e=globalThis[s],t=e.prototype,r=s in Di?Di[s]:void 0,i=!!(r&&r.every(l=>{var a,u;return!!((u=(a=Object.getOwnPropertyDescriptor(t,l))==null?void 0:a.get)!=null&&u.toString().includes("[native code]"))})),n=s in Ti?Ti[s]:void 0,o=!!(n&&n.every(l=>{var a;return typeof t[l]=="function"&&((a=t[l])==null?void 0:a.toString().includes("[native code]"))}));if(i&&o&&!gh())return Dt[s]=e.prototype,e.prototype;try{let l=document.createElement("iframe");document.body.appendChild(l);let a=l.contentWindow;if(!a)return e.prototype;let u=a[s].prototype;return document.body.removeChild(l),u?Dt[s]=u:t}catch{return t}}var Nr={};function me(s,e,t){var r;let i=`${s}.${String(t)}`;if(Nr[i])return Nr[i].call(e);let n=Ws(s),o=(r=Object.getOwnPropertyDescriptor(n,t))==null?void 0:r.get;return o?(Nr[i]=o,o.call(e)):e[t]}var Rr={};function bo(s,e,t){let r=`${s}.${String(t)}`;if(Rr[r])return Rr[r].bind(e);let n=Ws(s)[t];return typeof n!="function"?e[t]:(Rr[r]=n,n.bind(e))}function yh(s){return me("Node",s,"ownerDocument")}function wh(s){return me("Node",s,"childNodes")}function bh(s){return me("Node",s,"parentNode")}function Sh(s){return me("Node",s,"parentElement")}function vh(s){return me("Node",s,"textContent")}function Ch(s,e){return bo("Node",s,"contains")(e)}function Ih(s){return bo("Node",s,"getRootNode")()}function Eh(s){return!s||!("host"in s)?null:me("ShadowRoot",s,"host")}function xh(s){return s.styleSheets}function Mh(s){return!s||!("shadowRoot"in s)?null:me("Element",s,"shadowRoot")}function Nh(s,e){return me("Element",s,"querySelector")(e)}function Rh(s,e){return me("Element",s,"querySelectorAll")(e)}function So(){return Ws("MutationObserver").constructor}function xe(s,e,t){try{if(!(e in s))return()=>{};let r=s[e],i=t(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),s[e]=i,()=>{s[e]=r}}catch{return()=>{}}}var x={ownerDocument:yh,childNodes:wh,parentNode:bh,parentElement:Sh,textContent:vh,contains:Ch,getRootNode:Ih,host:Eh,styleSheets:xh,shadowRoot:Mh,querySelector:Nh,querySelectorAll:Rh,mutationObserver:So,patch:xe};function X(s,e,t=document){let r={capture:!0,passive:!0};return t.addEventListener(s,e,r),()=>t.removeEventListener(s,e,r)}var Ne=`Please stop import mirror directly. Instead of that,\r 72now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 73or you can use record.mirror to access the mirror instance during recording.`,_i={map:{},getId(){return console.error(Ne),-1},getNode(){return console.error(Ne),null},removeNodeFromMap(){console.error(Ne)},has(){return console.error(Ne),!1},reset(){console.error(Ne)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(_i=new Proxy(_i,{get(s,e,t){return e==="map"&&console.error(Ne),Reflect.get(s,e,t)}}));function st(s,e,t={}){let r=null,i=0;return function(...n){let o=Date.now();!i&&t.leading===!1&&(i=o);let l=e-(o-i),a=this;l<=0||l>e?(r&&(clearTimeout(r),r=null),i=o,s.apply(a,n)):!r&&t.trailing!==!1&&(r=setTimeout(()=>{i=t.leading===!1?0:Date.now(),r=null,s.apply(a,n)},l))}}function dr(s,e,t,r,i=window){let n=i.Object.getOwnPropertyDescriptor(s,e);return i.Object.defineProperty(s,e,r?t:{set(o){setTimeout(()=>{t.set.call(this,o)},0),n&&n.set&&n.set.call(this,o)}}),()=>dr(s,e,n||{},!0)}var qt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(qt=()=>new Date().getTime());function vo(s){var e,t,r,i;let n=s.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:s.pageXOffset!==void 0?s.pageXOffset:n.documentElement.scrollLeft||(n==null?void 0:n.body)&&((e=x.parentElement(n.body))==null?void 0:e.scrollLeft)||((t=n==null?void 0:n.body)==null?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:s.pageYOffset!==void 0?s.pageYOffset:(n==null?void 0:n.documentElement.scrollTop)||(n==null?void 0:n.body)&&((r=x.parentElement(n.body))==null?void 0:r.scrollTop)||((i=n==null?void 0:n.body)==null?void 0:i.scrollTop)||0}}function Co(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Io(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Eo(s){return s?s.nodeType===s.ELEMENT_NODE?s:x.parentElement(s):null}function J(s,e,t,r){if(!s)return!1;let i=Eo(s);if(!i)return!1;try{if(typeof e=="string"){if(i.classList.contains(e)||r&&i.closest("."+e)!==null)return!0}else if(Gt(i,e,r))return!0}catch{}return!!(t&&(i.matches(t)||r&&i.closest(t)!==null))}function Ah(s,e){return e.getId(s)!==-1}function Ar(s,e,t){return s.tagName==="TITLE"&&t.headTitleMutations?!0:e.getId(s)===He}function xo(s,e){if(Ge(s))return!1;let t=e.getId(s);if(!e.has(t))return!0;let r=x.parentNode(s);return r&&r.nodeType===s.DOCUMENT_NODE?!1:r?xo(r,e):!0}function ls(s){return!!s.changedTouches}function Oh(s=window){"NodeList"in s&&!s.NodeList.prototype.forEach&&(s.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in s&&!s.DOMTokenList.prototype.forEach&&(s.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Mo(s,e){return!!(s.nodeName==="IFRAME"&&e.getMeta(s))}function No(s,e){return!!(s.nodeName==="LINK"&&s.nodeType===s.ELEMENT_NODE&&s.getAttribute&&s.getAttribute("rel")==="stylesheet"&&e.getMeta(s))}function us(s){return s?s instanceof rt&&"shadowRoot"in s?!!s.shadowRoot:!!x.shadowRoot(s):!1}var cs=class{constructor(){w(this,"id",1),w(this,"styleIDMap",new WeakMap),w(this,"idStyleMap",new Map)}getId(e){var t;return(t=this.styleIDMap.get(e))!=null?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return t===void 0?r=this.id++:r=t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function Ro(s){var e;let t=null;return"getRootNode"in s&&((e=x.getRootNode(s))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&x.host(x.getRootNode(s))&&(t=x.host(x.getRootNode(s))),t}function Dh(s){let e=s,t;for(;t=Ro(e);)e=t;return e}function Th(s){let e=x.ownerDocument(s);if(!e)return!1;let t=Dh(s);return x.contains(e,t)}function Ao(s){let e=x.ownerDocument(s);return e?x.contains(e,s)||Th(s):!1}var N=(s=>(s[s.DomContentLoaded=0]="DomContentLoaded",s[s.Load=1]="Load",s[s.FullSnapshot=2]="FullSnapshot",s[s.IncrementalSnapshot=3]="IncrementalSnapshot",s[s.Meta=4]="Meta",s[s.Custom=5]="Custom",s[s.Plugin=6]="Plugin",s))(N||{}),v=(s=>(s[s.Mutation=0]="Mutation",s[s.MouseMove=1]="MouseMove",s[s.MouseInteraction=2]="MouseInteraction",s[s.Scroll=3]="Scroll",s[s.ViewportResize=4]="ViewportResize",s[s.Input=5]="Input",s[s.TouchMove=6]="TouchMove",s[s.MediaInteraction=7]="MediaInteraction",s[s.StyleSheetRule=8]="StyleSheetRule",s[s.CanvasMutation=9]="CanvasMutation",s[s.Font=10]="Font",s[s.Log=11]="Log",s[s.Drag=12]="Drag",s[s.StyleDeclaration=13]="StyleDeclaration",s[s.Selection=14]="Selection",s[s.AdoptedStyleSheet=15]="AdoptedStyleSheet",s[s.CustomElement=16]="CustomElement",s))(v||{}),K=(s=>(s[s.MouseUp=0]="MouseUp",s[s.MouseDown=1]="MouseDown",s[s.Click=2]="Click",s[s.ContextMenu=3]="ContextMenu",s[s.DblClick=4]="DblClick",s[s.Focus=5]="Focus",s[s.Blur=6]="Blur",s[s.TouchStart=7]="TouchStart",s[s.TouchMove_Departed=8]="TouchMove_Departed",s[s.TouchEnd=9]="TouchEnd",s[s.TouchCancel=10]="TouchCancel",s))(K||{}),he=(s=>(s[s.Mouse=0]="Mouse",s[s.Pen=1]="Pen",s[s.Touch=2]="Touch",s))(he||{}),Fe=(s=>(s[s["2D"]=0]="2D",s[s.WebGL=1]="WebGL",s[s.WebGL2=2]="WebGL2",s))(Fe||{}),Re=(s=>(s[s.Play=0]="Play",s[s.Pause=1]="Pause",s[s.Seeked=2]="Seeked",s[s.VolumeChange=3]="VolumeChange",s[s.RateChange=4]="RateChange",s))(Re||{});var Oo=(s=>(s[s.Document=0]="Document",s[s.DocumentType=1]="DocumentType",s[s.Element=2]="Element",s[s.Text=3]="Text",s[s.CDATA=4]="CDATA",s[s.Comment=5]="Comment",s))(Oo||{});function ki(s){return"__ln"in s}var hs=class{constructor(){w(this,"length",0),w(this,"head",null),w(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=(t==null?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&ki(e.previousSibling)){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&ki(e.nextSibling)&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},$i=(s,e)=>`${s}@${e}`,fs=class{constructor(){w(this,"frozen",!1),w(this,"locked",!1),w(this,"texts",[]),w(this,"attributes",[]),w(this,"attributeMap",new WeakMap),w(this,"removes",[]),w(this,"mapRemoves",[]),w(this,"movedMap",{}),w(this,"addedSet",new Set),w(this,"movedSet",new Set),w(this,"droppedSet",new Set),w(this,"removesSubTreeCache",new Set),w(this,"mutationCb"),w(this,"blockClass"),w(this,"blockSelector"),w(this,"maskTextClass"),w(this,"maskTextSelector"),w(this,"inlineStylesheet"),w(this,"maskInputOptions"),w(this,"maskTextFn"),w(this,"maskInputFn"),w(this,"keepIframeSrcFn"),w(this,"recordCanvas"),w(this,"inlineImages"),w(this,"slimDOMOptions"),w(this,"dataURLOptions"),w(this,"doc"),w(this,"mirror"),w(this,"iframeManager"),w(this,"stylesheetManager"),w(this,"shadowDomManager"),w(this,"canvasManager"),w(this,"processedNodeManager"),w(this,"unattachedDoc"),w(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),w(this,"emit",()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new hs,i=a=>{let u=a,c=He;for(;c===He;)u=u&&u.nextSibling,c=u&&this.mirror.getId(u);return c},n=a=>{let u=x.parentNode(a);if(!u||!Ao(a))return;let c=!1;if(a.nodeType===Node.TEXT_NODE){let m=u.tagName;if(m==="TEXTAREA")return;m==="STYLE"&&this.addedSet.has(u)&&(c=!0)}let h=Ge(u)?this.mirror.getId(Ro(a)):this.mirror.getId(u),p=i(a);if(h===-1||p===-1)return r.addNode(a);let g=Oe(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:m=>{Mo(m,this.mirror)&&this.iframeManager.addIframe(m),No(m,this.mirror)&&this.stylesheetManager.trackLinkElement(m),us(a)&&this.shadowDomManager.addShadowRoot(x.shadowRoot(a),this.doc)},onIframeLoad:(m,d)=>{this.iframeManager.attachIframe(m,d),this.shadowDomManager.observeAttachShadow(m)},onStylesheetLoad:(m,d)=>{this.stylesheetManager.attachLinkElement(m,d)},cssCaptured:c});g&&(e.push({parentId:h,nextId:p,node:g}),t.add(g.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of this.movedSet)Pi(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(x.parentNode(a))||n(a);for(let a of this.addedSet)!Li(this.droppedSet,a)&&!Pi(this.removesSubTreeCache,a,this.mirror)||Li(this.movedSet,a)?n(a):this.droppedSet.add(a);let o=null;for(;r.length;){let a=null;if(o){let u=this.mirror.getId(x.parentNode(o.value)),c=i(o.value);u!==-1&&c!==-1&&(a=o)}if(!a){let u=r.tail;for(;u;){let c=u;if(u=u.previous,c){let h=this.mirror.getId(x.parentNode(c.value));if(i(c.value)===-1)continue;if(h!==-1){a=c;break}else{let g=c.value,m=x.parentNode(g);if(m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let d=x.host(m);if(this.mirror.getId(d)!==-1){a=c;break}}}}}}if(!a){for(;r.head;)r.removeNode(r.head.value);break}o=a.previous,r.removeNode(a.value),n(a.value)}let l={texts:this.texts.map(a=>{let u=a.node,c=x.parentNode(u);return c&&c.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(c),{id:this.mirror.getId(u),value:a.value}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{let{attributes:u}=a;if(typeof u.style=="string"){let c=JSON.stringify(a.styleDiff),h=JSON.stringify(a._unchangedStyles);c.length<u.style.length&&(c+h).split("var(").length===u.style.split("var(").length&&(u.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:u}}).filter(a=>!t.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:e};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.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.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(l))}),w(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));let r=Array.from(x.childNodes(e),i=>x.textContent(i)||"").join("");t.attributes.value=Wt({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:zt(e),value:r,maskInputFn:this.maskInputFn})}),w(this,"processMutation",e=>{if(!Ar(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{let t=x.textContent(e.target);!J(e.target,this.blockClass,this.blockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:Ki(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,Eo(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,i=e.target.getAttribute(r);if(r==="value"){let o=zt(t);i=Wt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:o,value:i,maskInputFn:this.maskInputFn})}if(J(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let n=this.attributeMap.get(e.target);if(t.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!t.contentDocument)r="rr_src";else return;if(n||(n={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e.target,n)),r==="type"&&t.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&t.setAttribute("data-rr-is-password","true"),!Ji(t.tagName,r))if(n.attributes[r]=Xi(this.doc,Ce(t.tagName),Ce(r),i),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let o=this.unattachedDoc.createElement("span");e.oldValue&&o.setAttribute("style",e.oldValue);for(let l of Array.from(t.style)){let a=t.style.getPropertyValue(l),u=t.style.getPropertyPriority(l);a!==o.style.getPropertyValue(l)||u!==o.style.getPropertyPriority(l)?u===""?n.styleDiff[l]=a:n.styleDiff[l]=[a,u]:n._unchangedStyles[l]=[a,u]}for(let l of Array.from(o.style))t.style.getPropertyValue(l)===""&&(n.styleDiff[l]=!1)}else r==="open"&&t.tagName==="DIALOG"&&(t.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":{if(J(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),i=Ge(e.target)?this.mirror.getId(x.host(e.target)):this.mirror.getId(e.target);J(e.target,this.blockClass,this.blockSelector,!1)||Ar(t,this.mirror,this.slimDOMOptions)||!Ah(t,this.mirror)||(this.addedSet.has(t)?(ds(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&r===-1||xo(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[$i(r,i)]?ds(this.movedSet,t):(this.removes.push({parentId:i,id:r,isShadow:Ge(e.target)&&je(e.target)?!0:void 0}),_h(t,this.removesSubTreeCache))),this.mapRemoves.push(t))});break}}}),w(this,"genAdds",(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(Ar(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&r!==-1&&(this.movedMap[$i(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);J(e,this.blockClass,this.blockSelector,!1)||(x.childNodes(e).forEach(r=>this.genAdds(r)),us(e)&&x.childNodes(x.shadowRoot(e)).forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function ds(s,e){s.delete(e),x.childNodes(e).forEach(t=>ds(s,t))}function _h(s,e){let t=[s];for(;t.length;){let r=t.pop();e.has(r)||(e.add(r),x.childNodes(r).forEach(i=>t.push(i)))}}function Pi(s,e,t){return s.size===0?!1:kh(s,e)}function kh(s,e,t){let r=x.parentNode(e);return r?s.has(r):!1}function Li(s,e){return s.size===0?!1:Do(s,e)}function Do(s,e){let t=x.parentNode(e);return t?s.has(t)?!0:Do(s,t):!1}var Ye;function $h(s){Ye=s}function Ph(){Ye=void 0}var R=s=>Ye?(...t)=>{try{return s(...t)}catch(r){if(Ye&&Ye(r)===!0)return;throw r}}:s,ve=[];function lt(s){try{if("composedPath"in s){let e=s.composedPath();if(e.length)return e[0]}else if("path"in s&&s.path.length)return s.path[0]}catch{}return s&&s.target}function To(s,e){let t=new fs;ve.push(t),t.init(s);let r=new(So())(R(t.processMutations.bind(t)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function Lh({mousemoveCb:s,sampling:e,doc:t,mirror:r}){if(e.mousemove===!1)return()=>{};let i=typeof e.mousemove=="number"?e.mousemove:50,n=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500,o=[],l,a=st(R(h=>{let p=Date.now()-l;s(o.map(g=>(g.timeOffset-=p,g)),h),o=[],l=null}),n),u=R(st(R(h=>{let p=lt(h),{clientX:g,clientY:m}=ls(h)?h.changedTouches[0]:h;l||(l=qt()),o.push({x:g,y:m,id:r.getId(p),timeOffset:qt()-l}),a(typeof DragEvent!="undefined"&&h instanceof DragEvent?v.Drag:h instanceof MouseEvent?v.MouseMove:v.TouchMove)}),i,{trailing:!1})),c=[X("mousemove",u,t),X("touchmove",u,t),X("drag",u,t)];return R(()=>{c.forEach(h=>h())})}function Fh({mouseInteractionCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){if(n.mouseInteraction===!1)return()=>{};let o=n.mouseInteraction===!0||n.mouseInteraction===void 0?{}:n.mouseInteraction,l=[],a=null,u=c=>h=>{let p=lt(h);if(J(p,r,i,!0))return;let g=null,m=c;if("pointerType"in h){switch(h.pointerType){case"mouse":g=he.Mouse;break;case"touch":g=he.Touch;break;case"pen":g=he.Pen;break}g===he.Touch?K[c]===K.MouseDown?m="TouchStart":K[c]===K.MouseUp&&(m="TouchEnd"):he.Pen}else ls(h)&&(g=he.Touch);g!==null?(a=g,(m.startsWith("Touch")&&g===he.Touch||m.startsWith("Mouse")&&g===he.Mouse)&&(g=null)):K[c]===K.Click&&(g=a,a=null);let d=ls(h)?h.changedTouches[0]:h;if(!d)return;let f=t.getId(p),{clientX:C,clientY:I}=d;R(s)({type:K[m],id:f,x:C,y:I,...g!==null&&{pointerType:g}})};return Object.keys(K).filter(c=>Number.isNaN(Number(c))&&!c.endsWith("_Departed")&&o[c]!==!1).forEach(c=>{let h=Ce(c),p=u(c);if(window.PointerEvent)switch(K[c]){case K.MouseDown:case K.MouseUp:h=h.replace("mouse","pointer");break;case K.TouchStart:case K.TouchEnd:return}l.push(X(h,p,e))}),R(()=>{l.forEach(c=>c())})}function _o({scrollCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,sampling:n}){let o=R(st(R(l=>{let a=lt(l);if(!a||J(a,r,i,!0))return;let u=t.getId(a);if(a===e&&e.defaultView){let c=vo(e.defaultView);s({id:u,x:c.left,y:c.top})}else s({id:u,x:a.scrollLeft,y:a.scrollTop})}),n.scroll||100));return X("scroll",o,e)}function Uh({viewportResizeCb:s},{win:e}){let t=-1,r=-1,i=R(st(R(()=>{let n=Co(),o=Io();(t!==n||r!==o)&&(s({width:Number(o),height:Number(n)}),t=n,r=o)}),200));return X("resize",i,e)}var Bh=["INPUT","TEXTAREA","SELECT"],Fi=new WeakMap;function Wh({inputCb:s,doc:e,mirror:t,blockClass:r,blockSelector:i,ignoreClass:n,ignoreSelector:o,maskInputOptions:l,maskInputFn:a,sampling:u,userTriggeredOnInput:c}){function h(I){let y=lt(I),E=I.isTrusted,A=y&&y.tagName;if(y&&A==="OPTION"&&(y=x.parentElement(y)),!y||!A||Bh.indexOf(A)<0||J(y,r,i,!0)||y.classList.contains(n)||o&&y.matches(o))return;let k=y.value,G=!1,b=zt(y)||"";b==="radio"||b==="checkbox"?G=y.checked:(l[A.toLowerCase()]||l[b])&&(k=Wt({element:y,maskInputOptions:l,tagName:A,type:b,value:k,maskInputFn:a})),p(y,c?{text:k,isChecked:G,userTriggered:E}:{text:k,isChecked:G});let S=y.name;b==="radio"&&S&&G&&e.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach(O=>{if(O!==y){let H=O.value;p(O,c?{text:H,isChecked:!G,userTriggered:!1}:{text:H,isChecked:!G})}})}function p(I,y){let E=Fi.get(I);if(!E||E.text!==y.text||E.isChecked!==y.isChecked){Fi.set(I,y);let A=t.getId(I);R(s)({...y,id:A})}}
vendor: 10,751 bytes, line 73
73let m=(u.input==="last"?["change"]:["input","change"]).map(I=>X(I,R(h),e)),d=e.defaultView;if(!d)return()=>{m.forEach(I=>I())};let f=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),C=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];return f&&f.set&&m.push(...C.map(I=>dr(I[0],I[1],{set(){R(h)({target:this,isTrusted:!1})}},!1,d))),R(()=>{m.forEach(I=>I())})}function er(s){let e=[];function t(r,i){if(Tt("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Tt("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Tt("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Tt("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){let o=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(o)}else if(r.parentStyleSheet){let o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(o)}return i}return t(s,e)}function ye(s,e,t){let r,i;return s?(s.ownerNode?r=e.getId(s.ownerNode):i=t.getId(s),{styleId:i,id:r}):{}}function zh({styleSheetRuleCb:s,mirror:e,stylesheetManager:t},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:R((c,h,p)=>{let[g,m]=p,{id:d,styleId:f}=ye(h,e,t.styleMirror);return(d&&d!==-1||f&&f!==-1)&&s({id:d,styleId:f,adds:[{rule:g,index:m}]}),c.apply(h,p)})}),r.CSSStyleSheet.prototype.addRule=function(c,h,p=this.cssRules.length){let g=`${c} { ${h} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[g,p])};let n=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(n,{apply:R((c,h,p)=>{let[g]=p,{id:m,styleId:d}=ye(h,e,t.styleMirror);return(m&&m!==-1||d&&d!==-1)&&s({id:m,styleId:d,removes:[{index:g}]}),c.apply(h,p)})}),r.CSSStyleSheet.prototype.removeRule=function(c){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[c])};let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:R((c,h,p)=>{let[g]=p,{id:m,styleId:d}=ye(h,e,t.styleMirror);return(m&&m!==-1||d&&d!==-1)&&s({id:m,styleId:d,replace:g}),c.apply(h,p)})}));let l;r.CSSStyleSheet.prototype.replaceSync&&(l=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:R((c,h,p)=>{let[g]=p,{id:m,styleId:d}=ye(h,e,t.styleMirror);return(m&&m!==-1||d&&d!==-1)&&s({id:m,styleId:d,replaceSync:g}),c.apply(h,p)})}));let a={};_t("CSSGroupingRule")?a.CSSGroupingRule=r.CSSGroupingRule:(_t("CSSMediaRule")&&(a.CSSMediaRule=r.CSSMediaRule),_t("CSSConditionRule")&&(a.CSSConditionRule=r.CSSConditionRule),_t("CSSSupportsRule")&&(a.CSSSupportsRule=r.CSSSupportsRule));let u={};return Object.entries(a).forEach(([c,h])=>{u[c]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(u[c].insertRule,{apply:R((p,g,m)=>{let[d,f]=m,{id:C,styleId:I}=ye(g.parentStyleSheet,e,t.styleMirror);return(C&&C!==-1||I&&I!==-1)&&s({id:C,styleId:I,adds:[{rule:d,index:[...er(g),f||0]}]}),p.apply(g,m)})}),h.prototype.deleteRule=new Proxy(u[c].deleteRule,{apply:R((p,g,m)=>{let[d]=m,{id:f,styleId:C}=ye(g.parentStyleSheet,e,t.styleMirror);return(f&&f!==-1||C&&C!==-1)&&s({id:f,styleId:C,removes:[{index:[...er(g),d]}]}),p.apply(g,m)})})}),R(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=n,o&&(r.CSSStyleSheet.prototype.replace=o),l&&(r.CSSStyleSheet.prototype.replaceSync=l),Object.entries(a).forEach(([c,h])=>{h.prototype.insertRule=u[c].insertRule,h.prototype.deleteRule=u[c].deleteRule})})}function ko({mirror:s,stylesheetManager:e},t){var r,i,n;let o=null;t.nodeName==="#document"?o=s.getId(t):o=s.getId(x.host(t));let l=t.nodeName==="#document"?(r=t.defaultView)==null?void 0:r.Document:(n=(i=t.ownerDocument)==null?void 0:i.defaultView)==null?void 0:n.ShadowRoot,a=l!=null&&l.prototype?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;return o===null||o===-1||!l||!a?()=>{}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var u;return(u=a.get)==null?void 0:u.call(this)},set(u){var c;let h=(c=a.set)==null?void 0:c.call(this,u);if(o!==null&&o!==-1)try{e.adoptStyleSheets(u,o)}catch{}return h}}),R(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Vh({styleDeclarationCb:s,mirror:e,ignoreCSSAttributes:t,stylesheetManager:r},{win:i}){let n=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(n,{apply:R((l,a,u)=>{var c;let[h,p,g]=u;if(t.has(h))return n.apply(a,[h,p,g]);let{id:m,styleId:d}=ye((c=a.parentRule)==null?void 0:c.parentStyleSheet,e,r.styleMirror);return(m&&m!==-1||d&&d!==-1)&&s({id:m,styleId:d,set:{property:h,value:p,priority:g},index:er(a.parentRule)}),l.apply(a,u)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:R((l,a,u)=>{var c;let[h]=u;if(t.has(h))return o.apply(a,[h]);let{id:p,styleId:g}=ye((c=a.parentRule)==null?void 0:c.parentStyleSheet,e,r.styleMirror);return(p&&p!==-1||g&&g!==-1)&&s({id:p,styleId:g,remove:{property:h},index:er(a.parentRule)}),l.apply(a,u)})}),R(()=>{i.CSSStyleDeclaration.prototype.setProperty=n,i.CSSStyleDeclaration.prototype.removeProperty=o})}function Gh({mediaInteractionCb:s,blockClass:e,blockSelector:t,mirror:r,sampling:i,doc:n}){let o=R(a=>st(R(u=>{let c=lt(u);if(!c||J(c,e,t,!0))return;let{currentTime:h,volume:p,muted:g,playbackRate:m,loop:d}=c;s({type:a,id:r.getId(c),currentTime:h,volume:p,muted:g,playbackRate:m,loop:d})}),i.media||500)),l=[X("play",o(Re.Play),n),X("pause",o(Re.Pause),n),X("seeked",o(Re.Seeked),n),X("volumechange",o(Re.VolumeChange),n),X("ratechange",o(Re.RateChange),n)];return R(()=>{l.forEach(a=>a())})}function jh({fontCb:s,doc:e}){let t=e.defaultView;if(!t)return()=>{};let r=[],i=new WeakMap,n=t.FontFace;t.FontFace=function(a,u,c){let h=new n(a,u,c);return i.set(h,{family:a,buffer:typeof u!="string",descriptors:c,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),h};let o=xe(e.fonts,"add",function(l){return function(a){return setTimeout(R(()=>{let u=i.get(a);u&&(s(u),i.delete(a))}),0),l.apply(this,[a])}});return r.push(()=>{t.FontFace=n}),r.push(o),R(()=>{r.forEach(l=>l())})}function Yh(s){let{doc:e,mirror:t,blockClass:r,blockSelector:i,selectionCb:n}=s,o=!0,l=R(()=>{let a=e.getSelection();if(!a||o&&(a!=null&&a.isCollapsed))return;o=a.isCollapsed||!1;let u=[],c=a.rangeCount||0;for(let h=0;h<c;h++){let p=a.getRangeAt(h),{startContainer:g,startOffset:m,endContainer:d,endOffset:f}=p;J(g,r,i,!0)||J(d,r,i,!0)||u.push({start:t.getId(g),startOffset:m,end:t.getId(d),endOffset:f})}n({ranges:u})});return l(),X("selectionchange",l)}function Hh({doc:s,customElementCb:e}){let t=s.defaultView;return!t||!t.customElements?()=>{}:xe(t.customElements,"define",function(i){return function(n,o,l){try{e({define:{name:n}})}catch{console.warn(`Custom element callback failed for ${n}`)}return i.apply(this,[n,o,l])}})}function Zh(s,e){let{mutationCb:t,mousemoveCb:r,mouseInteractionCb:i,scrollCb:n,viewportResizeCb:o,inputCb:l,mediaInteractionCb:a,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:h,fontCb:p,selectionCb:g,customElementCb:m}=s;s.mutationCb=(...d)=>{e.mutation&&e.mutation(...d),t(...d)},s.mousemoveCb=(...d)=>{e.mousemove&&e.mousemove(...d),r(...d)},s.mouseInteractionCb=(...d)=>{e.mouseInteraction&&e.mouseInteraction(...d),i(...d)},s.scrollCb=(...d)=>{e.scroll&&e.scroll(...d),n(...d)},s.viewportResizeCb=(...d)=>{e.viewportResize&&e.viewportResize(...d),o(...d)},s.inputCb=(...d)=>{e.input&&e.input(...d),l(...d)},s.mediaInteractionCb=(...d)=>{e.mediaInteaction&&e.mediaInteaction(...d),a(...d)},s.styleSheetRuleCb=(...d)=>{e.styleSheetRule&&e.styleSheetRule(...d),u(...d)},s.styleDeclarationCb=(...d)=>{e.styleDeclaration&&e.styleDeclaration(...d),c(...d)},s.canvasMutationCb=(...d)=>{e.canvasMutation&&e.canvasMutation(...d),h(...d)},s.fontCb=(...d)=>{e.font&&e.font(...d),p(...d)},s.selectionCb=(...d)=>{e.selection&&e.selection(...d),g(...d)},s.customElementCb=(...d)=>{e.customElement&&e.customElement(...d),m(...d)}}function Xh(s,e={}){let t=s.doc.defaultView;if(!t)return()=>{};Zh(s,e);let r;s.recordDOM&&(r=To(s,s.doc));let i=Lh(s),n=Fh(s),o=_o(s),l=Uh(s,{win:t}),a=Wh(s),u=Gh(s),c=()=>{},h=()=>{},p=()=>{},g=()=>{};s.recordDOM&&(c=zh(s,{win:t}),h=ko(s,s.doc),p=Vh(s,{win:t}),s.collectFonts&&(g=jh(s)));let m=Yh(s),d=Hh(s),f=[];for(let C of s.plugins)f.push(C.observer(C.callback,t,C.options));return R(()=>{ve.forEach(C=>C.reset()),r==null||r.disconnect(),i(),n(),o(),l(),a(),u(),c(),h(),p(),g(),m(),d(),f.forEach(C=>C())})}function Tt(s){return typeof window[s]!="undefined"}function _t(s){return!!(typeof window[s]!="undefined"&&window[s].prototype&&"insertRule"in window[s].prototype&&"deleteRule"in window[s].prototype)}var tr=class{constructor(e){w(this,"iframeIdToRemoteIdMap",new WeakMap),w(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,r,i){let n=r||this.getIdToRemoteIdMap(e),o=i||this.getRemoteIdToIdMap(e),l=n.get(t);return l||(l=this.generateIdFn(),n.set(t,l),o.set(l,t)),l}getIds(e,t){let r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(n=>this.getId(e,n,r,i))}getRemoteId(e,t,r){let i=r||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;let n=i.get(t);return n||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(i=>this.getRemoteId(e,i,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}},ps=class{constructor(e){w(this,"iframes",new WeakMap),w(this,"crossOriginIframeMap",new WeakMap),w(this,"crossOriginIframeMirror",new tr(Zi)),w(this,"crossOriginIframeStyleMirror"),w(this,"crossOriginIframeRootIdMap",new WeakMap),w(this,"mirror"),w(this,"mutationCb"),w(this,"wrappedEmit"),w(this,"loadListener"),w(this,"stylesheetManager"),w(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=ne
vendor: 9,886 bytes, line 73
73w tr(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var r,i;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=e.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(i=this.loadListener)==null||i.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){let t=e;if(t.data.type!=="rrweb"||t.origin!==t.data.origin||!e.source)return;let i=this.crossOriginIframeMap.get(e.source);if(!i)return;let n=this.transformCrossOriginEvent(i,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){var r;switch(t.type){case N.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:N.IncrementalSnapshot,data:{source:v.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case N.Meta:case N.Load:case N.DomContentLoaded:return!1;case N.Plugin:return t;case N.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case N.IncrementalSnapshot:switch(t.data.source){case v.Mutation:return t.data.adds.forEach(i=>{this.replaceIds(i,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(i.node,n)}),t.data.removes.forEach(i=>{this.replaceIds(i,e,["parentId","id"])}),t.data.attributes.forEach(i=>{this.replaceIds(i,e,["id"])}),t.data.texts.forEach(i=>{this.replaceIds(i,e,["id"])}),t;case v.Drag:case v.TouchMove:case v.MouseMove:return t.data.positions.forEach(i=>{this.replaceIds(i,e,["id"])}),t;case v.ViewportResize:return!1;case v.MediaInteraction:case v.MouseInteraction:case v.Scroll:case v.CanvasMutation:case v.Input:return this.replaceIds(t.data,e,["id"]),t;case v.StyleSheetRule:case v.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case v.Font:return t;case v.Selection:return t.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"])}),t;case v.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(r=t.data.styles)==null||r.forEach(i=>{this.replaceStyleIds(i,e,["styleId"])}),t}}return!1}replace(e,t,r,i){for(let n of i)!Array.isArray(t[n])&&typeof t[n]!="number"||(Array.isArray(t[n])?t[n]=e.getIds(r,t[n]):t[n]=e.getId(r,t[n]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,t)})}patchRootIdOnNode(e,t){e.type!==Oo.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,t)})}},ms=class{constructor(e){w(this,"shadowDoms",new WeakSet),w(this,"mutationCb"),w(this,"scrollCb"),w(this,"bypassOptions"),w(this,"mirror"),w(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!je(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let r=To({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(_o({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(x.host(e))),this.restoreHandlers.push(ko({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(xe(e.prototype,"attachShadow",function(i){return function(n){let o=i.call(this,n),l=x.shadowRoot(this);return l&&Ao(this)&&r.addShadowRoot(l,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},De="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jh=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(Ve=0;Ve<De.length;Ve++)Jh[De.charCodeAt(Ve)]=Ve;var Ve,Kh=function(s){var e=new Uint8Array(s),t,r=e.length,i="";for(t=0;t<r;t+=3)i+=De[e[t]>>2],i+=De[(e[t]&3)<<4|e[t+1]>>4],i+=De[(e[t+1]&15)<<2|e[t+2]>>6],i+=De[e[t+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};var Ui=new Map;function Qh(s,e){let t=Ui.get(s);return t||(t=new Map,Ui.set(s,t)),t.has(e)||t.set(e,[]),t.get(e)}var $o=(s,e,t)=>{if(!s||!(Lo(s,e)||typeof s=="object"))return;let r=s.constructor.name,i=Qh(t,r),n=i.indexOf(s);return n===-1&&(n=i.length,i.push(s)),n};function Ft(s,e,t){if(s instanceof Array)return s.map(r=>Ft(r,e,t));if(s===null)return s;if(s instanceof Float32Array||s instanceof Float64Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Uint8Array||s instanceof Uint16Array||s instanceof Int16Array||s instanceof Int8Array||s instanceof Uint8ClampedArray)return{rr_type:s.constructor.name,args:[Object.values(s)]};if(s instanceof ArrayBuffer){let r=s.constructor.name,i=Kh(s);return{rr_type:r,base64:i}}else{if(s instanceof DataView)return{rr_type:s.constructor.name,args:[Ft(s.buffer,e,t),s.byteOffset,s.byteLength]};if(s instanceof HTMLImageElement){let r=s.constructor.name,{src:i}=s;return{rr_type:r,src:i}}else if(s instanceof HTMLCanvasElement){let r="HTMLImageElement",i=s.toDataURL();return{rr_type:r,src:i}}else{if(s instanceof ImageData)return{rr_type:s.constructor.name,args:[Ft(s.data,e,t),s.width,s.height]};if(Lo(s,e)||typeof s=="object"){let r=s.constructor.name,i=$o(s,e,t);return{rr_type:r,index:i}}}}return s}var Po=(s,e,t)=>s.map(r=>Ft(r,e,t)),Lo=(s,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function").find(i=>s instanceof e[i]);function qh(s,e,t,r){let i=[],n=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(let o of n)try{if(typeof e.CanvasRenderingContext2D.prototype[o]!="function")continue;let l=xe(e.CanvasRenderingContext2D.prototype,o,function(a){return function(...u){return J(this.canvas,t,r,!0)||setTimeout(()=>{let c=Po(u,e,this);s(this.canvas,{type:Fe["2D"],property:o,args:c})},0),a.apply(this,u)}});i.push(l)}catch{let l=dr(e.CanvasRenderingContext2D.prototype,o,{set(a){s(this.canvas,{type:Fe["2D"],property:o,args:[a],setter:!0})}});i.push(l)}return()=>{i.forEach(o=>o())}}function ef(s){return s==="experimental-webgl"?"webgl":s}function Bi(s,e,t,r){let i=[];try{let n=xe(s.HTMLCanvasElement.prototype,"getContext",function(o){return function(l,...a){if(!J(this,e,t,!0)){let u=ef(l);if("__context"in this||(this.__context=u),r&&["webgl","webgl2"].includes(u))if(a[0]&&typeof a[0]=="object"){let c=a[0];c.preserveDrawingBuffer||(c.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[l,...a])}});i.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(n=>n())}}function Wi(s,e,t,r,i,n){let o=[],l=Object.getOwnPropertyNames(s);for(let a of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof s[a]!="function")continue;let u=xe(s,a,function(c){return function(...h){let p=c.apply(this,h);if($o(p,n,this),"tagName"in this.canvas&&!J(this.canvas,r,i,!0)){let g=Po(h,n,this),m={type:e,property:a,args:g};t(this.canvas,m)}return p}});o.push(u)}catch{let u=dr(s,a,{set(c){t(this.canvas,{type:e,property:a,args:[c],setter:!0})}});o.push(u)}return o}function tf(s,e,t,r){let i=[];return i.push(...Wi(e.WebGLRenderingContext.prototype,Fe.WebGL,s,t,r,e)),typeof e.WebGL2RenderingContext!="undefined"&&i.push(...Wi(e.WebGL2RenderingContext.prototype,Fe.WebGL2,s,t,r,e)),()=>{i.forEach(n=>n())}}var Fo="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSA
73yKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",rf=s=>Uint8Array.from(atob(s),e=>e.charCodeAt(0)),zi=typeof window!="undefined"&&window.Blob&&new Blob([rf(Fo)],{type:"text/javascript;charset=utf-8"});function sf(s){let e;try{if(e=zi&&(window.URL||window.webkitURL).createObjectURL(zi),!e)throw"";let t=new Worker(e,{name:s==null?void 0:s.name});return t.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e)}),t}catch{return new Worker("data:text/javascript;base64,"+Fo,{name:s==null?void 0:s.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}var gs=class{constructor(e){w(this,"pendingCanvasMutations",new Map),w(this,"rafStamps",{latestId:0,invokeId:null}),w(this,"mirror"),w(this,"mutationCb"),w(this,"resetObservers"),w(this,"frozen",!1),w(this,"locked",!1),w(this,"processMutation",(a,u)=>{(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(u)});let{sampling:t="all",win:r,blockClass:i,blockSelector:n,recordCanvas:o,dataURLOptions:l}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&t==="all"&&this.initCanvasMutationObserver(r,i,n),o&&typeof t=="number"&&this.initCanvasFPSObserver(t,r,i,n,{dataURLOptions:l})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,t,r,i,n){let o=Bi(t,r,i,!0),l=new Map,a=new sf;a.onmessage=m=>{let{id:d}=m.data;if(l.set(d,!1),!("base64"in m.data))return;let{base64:f,type:C,width:I,height:y}=m.data;this.mutationCb({id:d,type:Fe["2D"],commands:[{property:"clearRect",args:[0,0,I,y]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:f}],type:C}]},0,0]}]})};let u=1e3/e,c=0,h,p=()=>{let m=[];return t.document.querySelectorAll("canvas").forEach(d=>{J(d,r,i,!0)||m.push(d)}),m},g=m=>{if(c&&m-c<u){h=requestAnimationFrame(g);return}
vendor: 8,435 bytes, line 73
73c=m,p().forEach(async d=>{var f;let C=this.mirror.getId(d);if(l.get(C)||d.width===0||d.height===0)return;if(l.set(C,!0),["webgl","webgl2"].includes(d.__context)){let y=d.getContext(d.__context);((f=y==null?void 0:y.getContextAttributes())==null?void 0:f.preserveDrawingBuffer)===!1&&y.clear(y.COLOR_BUFFER_BIT)}let I=await createImageBitmap(d);a.postMessage({id:C,bitmap:I,width:d.width,height:d.height,dataURLOptions:n.dataURLOptions},[I])}),h=requestAnimationFrame(g)};h=requestAnimationFrame(g),this.resetObservers=()=>{o(),cancelAnimationFrame(h)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=Bi(e,t,r,!1),n=qh(this.processMutation.bind(this),e,t,r),o=tf(this.processMutation.bind(this),e,t,r);this.resetObservers=()=>{i(),n(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||t===-1)return;let i=r.map(o=>{let{type:l,...a}=o;return a}),{type:n}=r[0];this.mutationCb({id:t,type:n,commands:i}),this.pendingCanvasMutations.delete(e)}},ys=class{constructor(e){w(this,"trackedLinkElements",new WeakSet),w(this,"mutationCb"),w(this,"adoptedStyleSheetCb"),w(this,"styleMirror",new cs),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let r={id:t,styleIds:[]},i=[];for(let n of e){let o;this.styleMirror.has(n)?o=this.styleMirror.getId(n):(o=this.styleMirror.add(n),i.push({styleId:o,rules:Array.from(n.rules||CSSRule,(l,a)=>({rule:Yi(l,n.href),index:a}))})),r.styleIds.push(o)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},ws=class{constructor(){w(this,"nodeMap",new WeakMap),w(this,"active",!1)}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(i=>i!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},V,Ut,Or,rr=!1;try{if(Array.from([1],s=>s*2)[0]!==2){let s=document.createElement("iframe");document.body.appendChild(s),Array.from=((Ys=s.contentWindow)==null?void 0:Ys.Array.from)||Array.from,document.body.removeChild(s)}}catch(s){console.debug("Unable to override Array.from",s)}var se=ca();function ce(s={}){let{emit:e,checkoutEveryNms:t,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:n=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskTextClass:a="rr-mask",maskTextSelector:u=null,inlineStylesheet:c=!0,maskAllInputs:h,maskInputOptions:p,slimDOMOptions:g,maskInputFn:m,maskTextFn:d,hooks:f,packFn:C,sampling:I={},dataURLOptions:y={},mousemoveWait:E,recordDOM:A=!0,recordCanvas:k=!1,recordCrossOriginIframes:G=!1,recordAfter:b=s.recordAfter==="DOMContentLoaded"?s.recordAfter:"load",userTriggeredOnInput:S=!1,collectFonts:O=!1,inlineImages:H=!1,plugins:Q,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:oe=new Set([]),errorHandler:ge}=s;$h(ge);let j=G?window.parent===window:!0,ee=!1;if(!j)try{window.parent.document&&(ee=!1)}catch{ee=!0}if(j&&!e)throw new Error("emit function is required");if(!j&&!ee)return()=>{};E!==void 0&&I.mousemove===void 0&&(I.mousemove=E),se.reset();let we=h===!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}:p!==void 0?p:{password:!0},ae=Qi(g);Oh();let zs,pr=0,Vs=D=>{for(let re of Q||[])re.eventProcessor&&(D=re.eventProcessor(D));return C&&!ee&&(D=C(D)),D};V=(D,re)=>{var W;let z=D;if(z.timestamp=qt(),(W=ve[0])!=null&&W.isFrozen()&&z.type!==N.FullSnapshot&&!(z.type===N.IncrementalSnapshot&&z.data.source===v.Mutation)&&ve.forEach(q=>q.unfreeze()),j)e==null||e(Vs(z),re);else if(ee){let q={type:"rrweb",event:Vs(z),origin:window.location.origin,isCheckout:re};window.parent.postMessage(q,"*")}if(z.type===N.FullSnapshot)zs=z,pr=0;else if(z.type===N.IncrementalSnapshot){if(z.data.source===v.Mutation&&z.data.isAttachIframe)return;pr++;let q=r&&pr>=r,$=t&&z.timestamp-zs.timestamp>t;(q||$)&&Ut(!0)}};let ut=D=>{V({type:N.IncrementalSnapshot,data:{source:v.Mutation,...D}})},Gs=D=>V({type:N.IncrementalSnapshot,data:{source:v.Scroll,...D}}),js=D=>V({type:N.IncrementalSnapshot,data:{source:v.CanvasMutation,...D}}),Uo=D=>V({type:N.IncrementalSnapshot,data:{source:v.AdoptedStyleSheet,...D}}),be=new ys({mutationCb:ut,adoptedStyleSheetCb:Uo}),Se=new ps({mirror:se,mutationCb:ut,stylesheetManager:be,recordCrossOriginIframes:G,wrappedEmit:V});for(let D of Q||[])D.getMirror&&D.getMirror({nodeMirror:se,crossOriginIframeMirror:Se.crossOriginIframeMirror,crossOriginIframeStyleMirror:Se.crossOriginIframeStyleMirror});let mr=new ws;Or=new gs({recordCanvas:k,mutationCb:js,win:window,blockClass:i,blockSelector:n,mirror:se,sampling:I.canvas,dataURLOptions:y});let ct=new ms({mutationCb:ut,scrollCb:Gs,bypassOptions:{blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:u,inlineStylesheet:c,maskInputOptions:we,dataURLOptions:y,maskTextFn:d,maskInputFn:m,recordCanvas:k,inlineImages:H,sampling:I,slimDOMOptions:ae,iframeManager:Se,stylesheetManager:be,canvasManager:Or,keepIframeSrcFn:M,processedNodeManager:mr},mirror:se});Ut=(D=!1)=>{if(!A)return;V({type:N.Meta,data:{href:window.location.href,width:Io(),height:Co()}},D),be.reset(),ct.init(),ve.forEach(W=>W.lock());let re=ka(document,{mirror:se,blockClass:i,blockSelector:n,maskTextClass:a,maskTextSelector:u,inlineStylesheet:c,maskAllInputs:we,maskTextFn:d,maskInputFn:m,slimDOM:ae,dataURLOptions:y,recordCanvas:k,inlineImages:H,onSerialize:W=>{Mo(W,se)&&Se.addIframe(W),No(W,se)&&be.trackLinkElement(W),us(W)&&ct.addShadowRoot(x.shadowRoot(W),document)},onIframeLoad:(W,z)=>{Se.attachIframe(W,z),ct.observeAttachShadow(W)},onStylesheetLoad:(W,z)=>{be.attachLinkElement(W,z)},keepIframeSrcFn:M});if(!re)return console.warn("Failed to snapshot the document");V({type:N.FullSnapshot,data:{node:re,initialOffset:vo(window)}},D),ve.forEach(W=>W.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&be.adoptStyleSheets(document.adoptedStyleSheets,se.getId(document))};try{let D=[],re=z=>{var q;return R(Xh)({mutationCb:ut,mousemoveCb:($,gr)=>V({type:N.IncrementalSnapshot,data:{source:gr,positions:$}}),mouseInteractionCb:$=>V({type:N.IncrementalSnapshot,data:{source:v.MouseInteraction,...$}}),scrollCb:Gs,viewportResizeCb:$=>V({type:N.IncrementalSnapshot,data:{source:v.ViewportResize,...$}}),inputCb:$=>V({type:N.IncrementalSnapshot,data:{source:v.Input,...$}}),mediaInteractionCb:$=>V({type:N.IncrementalSnapshot,data:{source:v.MediaInteraction,...$}}),styleSheetRuleCb:$=>V({type:N.IncrementalSnapshot,data:{source:v.StyleSheetRule,...$}}),styleDeclarationCb:$=>V({type:N.IncrementalSnapshot,data:{source:v.StyleDeclaration,...$}}),canvasMutationCb:js,fontCb:$=>V({type:N.IncrementalSnapshot,data:{source:v.Font,...$}}),selectionCb:$=>{V({type:N.IncrementalSnapshot,data:{source:v.Selection,...$}})},customElementCb:$=>{V({type:N.IncrementalSnapshot,data:{source:v.CustomElement,...$}})},blockClass:i,ignoreClass:o,ignoreSelector:l,maskTextClass:a,maskTextSelector:u,maskInputOptions:we,inlineStylesheet:c,sampling:I,recordDOM:A,recordCanvas:k,inlineImages:H,userTriggeredOnInput:S,collectFonts:O,doc:z,maskInputFn:m,maskTextFn:d,keepIframeSrcFn:M,blockSelector:n,slimDOMOptions:ae,dataURLOptions:y,mirror:se,iframeManager:Se,stylesheetManager:be,shadowDomManager:ct,processedNodeManager:mr,canvasManager:Or,ignoreCSSAttributes:oe,plugins:((q=Q==null?void 0:Q.filter($=>$.observer))==null?void 0:q.map($=>({observer:$.observer,options:$.options,callback:gr=>V({type:N.Plugin,data:{plugin:$.name,payload:gr}})}
73)))||[]},f)};Se.addLoadListener(z=>{try{D.push(re(z.contentDocument))}catch(q){console.warn(q)}});let W=()=>{Ut(),D.push(re(document)),rr=!0};return["interactive","complete"].includes(document.readyState)?W():(D.push(X("DOMContentLoaded",()=>{V({type:N.DomContentLoaded,data:{}}),b==="DOMContentLoaded"&&W()})),D.push(X("load",()=>{V({type:N.Load,data:{}}),b==="load"&&W()},window))),()=>{D.forEach(z=>{try{z()}catch(q){String(q).toLowerCase().includes("cross-origin")||console.warn(q)}}),mr.destroy(),rr=!1,Ph()}}catch(D){console.warn(D)}}ce.addCustomEvent=(s,e)=>{if(!rr)throw new Error("please add custom event after start recording");V({type:N.Custom,data:{tag:s,payload:e}})};ce.freezePage=()=>{ve.forEach(s=>s.freeze())};ce.takeFullSnapshot=s=>{if(!rr)throw new Error("please take full snapshot after start recording");Ut(s)};ce.mirror=se;var Vi;(function(s){s[s.NotStarted=0]="NotStarted",s[s.Running=1]="Running",s[s.Stopped=2]="Stopped"})(Vi||(Vi={}));var Uf=5*1e3;var{addCustomEvent:Bf}=ce,{freezePage:Wf}=ce,{takeFullSnapshot:zf}=ce;var nf=new Promise(s=>{document.addEventListener("DOMContentLoaded",()=>{setTimeout(()=>{requestAnimationFrame(()=>{s()})},0)})});(async function(){let e=window.renderbetter.getLogger("RB Analytics User Interactions"),t=+"0.1";if(Math.random()>t){e("Skipping user interaction tracking for this user");return}await nf;let r=+"0.01",i=+"0.001",o=window.location.search.includes("rb_force_session_record")||Math.random()<i,l=o?1:r;e(`Initializing user interaction tracking with sample rate ${l}`),e("Element selector mapping enabled - node IDs will be mapped to CSS selectors when possible");let a=[],u=50,c=5e3,h=null,p=null,g=new Map;function m(b){if(g.has(b))return g.get(b);try{let S=ce.mirror.getNode(b);if(S&&S.nodeType===Node.ELEMENT_NODE){let O=window.renderbetter.getElementSelector(S);return g.set(b,O),O}return null}catch(S){return e("Error getting element selector for node ID",b,S),null}}function d(){if(a.length===0)return;let b=[...a];a=[],e(`Sending ${b.length} individual interaction events`),b.forEach(S=>{o?window.renderbetter.collect({type:"metric",name:"session_recording",value:void 0,attribution:JSON.stringify(S)}):window.renderbetter.collect({type:"metric",name:"user_interaction",value:void 0,attribution:JSON.stringify(S)})}),h&&(clearTimeout(h),h=null)}function f(){if(a.length>=u){d();return}h||(h=setTimeout(()=>{d()},c))}let C=new Set([v.MouseInteraction,v.Input,v.Scroll,v.MouseMove,v.TouchMove,v.ViewportResize,v.Drag,v.MediaInteraction]);function I(b){switch(b){case v.MouseMove:return"MouseMove";case v.MouseInteraction:return"MouseInteraction";case v.Scroll:return"Scroll";case v.ViewportResize:return"ViewportResize";case v.Input:return"Input";case v.TouchMove:return"TouchMove";case v.MediaInteraction:return"MediaInteraction";case v.Drag:return"Drag";default:return`Unknown(${b})`}}function y(b,S){return b===v.MouseInteraction?["MouseUp","MouseDown","Click","ContextMenu","DblClick","Focus","Blur","TouchStart","TouchMove_Departed","TouchEnd"][S]||`MouseType(${S})`:b===v.Input?["Text","Radio","Checkbox","Select","Textarea"][S]||`InputType(${S})`:b===v.MediaInteraction?["Play","Pause","Seeked","VolumeChange","RateChange"][S]||`MediaType(${S})`:S?`Type(${S})`:""}function E(b,S,O){return O===v.ViewportResize?b.width===S.width&&b.height===S.height:O===v.Scroll?Math.abs(b.x-S.x)<=1&&Math.abs(b.y-S.y)<=1:O===v.Input?b.text===S.text&&b.id===S.id:b.id===S.id&&b.x===S.x&&b.y===S.y&&b.type===S.type}function A(b){if(b.type!==N.IncrementalSnapshot||!C.has(b.data.source))return;let S=b.data,O=I(b.data.source),H=y(b.data.source,S.type),Q=H?`${O}.${H}`:O;if(p&&E(p,S,b.data.source)){e(`Skipping duplicate ${Q} event`);return}if(Math.random()>l)return;e(`Collecting User Interaction event: ${Q}`,b.data);let M={timestamp:b.timestamp,...b.data},oe=null;if(S.id&&typeof S.id=="number"?oe=S.id:S.target&&typeof S.target=="number"&&(oe=S.target),oe!==null){let ge=m(oe);ge&&(M.elementSelector=ge)}p=S,a.push(M),f()}try{ce({emit:A,recordCanvas:!1,inlineStylesheet:!1,inlineImages:!1,collectFonts:!1,plugins:[],sampling:{mousemove:500,scroll:500,input:"all",mouseInteraction:!0},slimDOMOptions:!0,maskAllInputs:!0}),e("rrweb recording started for user interactions")}catch(b){e("Error starting rrweb recording:",b)}function k(){a.length>0&&(e("Sending remaining interaction events before page unload"),d())}function G(){document.visibilityState==="hidden"&&a.length>0&&d()}window.addEventListener("pagehide",k,{passive:!0}),document.addEventListener("visibilitychange",G)})();})(); 74/*! Bundled license information: 75 76rrweb/dist/rrweb.js: 77 (*! ***************************************************************************** 78 Copyright (c) Microsoft Corporation. 79 80 Permission to use, copy, modify, and/or distribute this software for any 81 purpose with or without fee is hereby granted. 82
83 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 84 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 85 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 86 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 87 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 88 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 89 PERFORMANCE OF THIS SOFTWARE. 90 ***************************************************************************** *) 91*/ 92(()=>{function _n(t){let r=t.match(/at\s+(.+?)\s+\((.+?):(\d+):(\d+)\)/);if(r)return{functionName:r[1],file:r[2],line:+r[3],column:+r[4]};let i=t.match(/at\s+(https?:\/\/.+?):(\d+):(\d+)/);if(i)return{file:i[1],line:+i[2],column:+i[3]};let s=t.match(/(.+?)@(.+?):(\d+):(\d+)/);return s?{functionName:s[1]||void 0,file:s[2],line:+s[3],column:+s[4]}:null}function Cn(t){if(!t)return[];let r=t.split(` 93`),i=[];for(let s=0;s<r.length&&i.length<5;s++){let n=_n(r[s]);n&&i.push(n)}return i}function wn(t){let r=new Set,i=[];for(let s of t)s.file&&!r.has(s.file)&&(r.add(s.file),i.push(s.file));return i}function kn(t){if(!t)return;let r=t.split(` 94`);return r.length<=5+1?t:r.slice(0,5+1).join(` 95`)}function Ke(t){return t.length<=500?t:`${t.slice(0,500)}\u2026`}function $e(t){if(t instanceof Error)return{name:t.name||"Error",message:t.message||t.name||"Error",stack:t.stack};if(t==null)return{name:"PromiseRejection",message:`Unhandled promise rejection: ${String(t)}`};let r=typeof t;if(r==="string"||r==="number"||r==="boolean")return{name:"PromiseRejection",message:String(t)||"Unhandled promise rejection (empty)"};let i=t;if(typeof i.message=="string"&&i.message)return{name:typeof i.name=="string"&&i.name?i.name:"PromiseRejection",message:i.message,stack:typeof i.stack=="string"?i.stack:void 0};try{let s=JSON.stringify(t);if(s&&s!=="{}"&&s!=="null")return{name:"PromiseRejection",message:Ke(s)}}catch{}return{name:"PromiseRejection",message:`Unhandled promise rejection (${r})`}}function Ge(t){let r=Cn(t.stack),i=r[0]||void 0,s=t.url,n=t.line,d=t.column;if(i&&i.file){let p=s&&!s.includes(".js");(!s||p)&&(s=i.file,n=i.line,d=i.column)}else i&&(!n&&i.line&&(n=i.line),!d&&i.column&&(d=i.column));let f=wn(r);return{type:t.type,message:Ke(t.message),stack:kn(t.stack),url:s,line:n,column:d,topFrame:i,stackFiles:f.length>0?f:void 0}}var Sn=[{reason:"cors_script_error",pattern:/^Script error\.?$/},{reason:"cors_script_error",pattern:/^Javascript error: Script error\.? on line 0$/},{reason:"resize_observer_loop",pattern:/^ResizeObserver loop completed with undelivered notifications\.$/},{reason:"resize_observer_loop",pattern:/^ResizeObserver loop limit exceeded$/},{reason:"gtm_adblock_googletag",pattern:/^Cannot redefine property: googletag$/},{reason:"google_search_app_gmo",pattern:/^Can't find variable: gmo$/},{reason:"unactionable_a_property",pattern:/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/},{reason:"solana_wallet_extension",pattern:/can't redefine non-configurable property "solana"/},{reason:"gtm_getrestrictions",pattern:/vv\(\)\.getRestrictions is not a function/},{reason:"instagram_webview_autofill",pattern:/Can't find variable: _AutofillCallbackHandler/},{reason:"cefsharp_simulate_event",pattern:/Object Not Found Matching Id:\d+, MethodName:simulateEvent/},{reason:"fb_android_webview_java",pattern:/^Java exception was raised during method invocation$/}];function Ve(t,r){if(!r)return null;let i=t?`${t}: ${r}`:r;for(let s of Sn)if(s.pattern.test(r)||s.pattern.test(i))return s.reason;return null}function Qe(t){if(t.stack||t.url)return!1;let r=t.type||"";if(r&&r!=="Error")return!1;let i=(t.message||"").trim();return i===""||i==="Unknown error"||i==="Error"}var Rn=new Set(["co.uk","org.uk","gov.uk","ac.uk","me.uk","net.uk","sch.uk","ltd.uk","plc.uk","com.au","net.au","org.au","edu.au","gov.au","asn.au","id.au","co.nz","net.nz","org.nz","govt.nz","ac.nz","com.br","net.br","org.br","gov.br","co.jp","ne.jp","or.jp","go.jp","co.za","org.za","co.in","com.mx","com.sg","com.tr","myshopify.com"]);function ne(t){if(!t)return null;let r=t.trim().toLowerCase().replace(/\.$/,"");if(!r)return null;let i=r.split(".");if(i.length<=1)return r;let s=i.slice(-2).join(".");return Rn.has(s)?i.length<=2?r:i.slice(-3).join("."):s}function Tn(t,r){return t==="cdn.shopify.com"?!!r.startsWith("/extensions/"):t==="shopifycdn.net"||t.endsWith(".shopifycdn.net")||t==="shopifycloud.com"||t.endsWith(".shopifycloud.com")?!1:null}function be(t,r,i){if(!t)return null;let s=t.trim();if(!s)return null;let n=s.toLowerCase();if(n.startsWith("data:")||n.startsWith("blob:")||n.startsWith("javascript:")||n.startsWith("about:"))return null;let d;try{d=new URL(s,i||void 0)}catch{return null}if(d.protocol!=="http:"&&d.protocol!=="https:")return null;let f=d.hostname.toLowerCase();if(!f)return null;let p=Tn(f,d.pathname);if(p!==null)return p;if(!r)return null;let h=ne(f),x=ne(r.toLowerCase());return!h||!x?null:h!==x}var Mn=250;function Je(t){let{earlyScriptSaturationFlag:r,asyncListenerSawSaturation:i,readResourceEntryCount:s}=t;if(typeof r=="boolean")return r;if(i)return!0;let n=s();return n!==null&&n>=Mn}function Ye(t){let{entry:r,isThirdParty:i,bufferSaturated:s,hadCspViolation:n,isOffline:d}=t;return n?{reason:"csp",likelyClientBlocked:!1}:r&&r.responseEnd>r.fetchStart?r.transferSize===0&&r.decodedBodySize===0?{reason:"http_error",likelyClientBlocked:!1}:{reason:"unknown",likelyClientBlocked:!1}:d?{reason:"offline_or_network",likelyClientBlocked:!1}:r?{reason:"offline_or_network",likelyClientBlocked:!1}:s?{reason:"missing_timing",likelyClientBlocked:!1}:i===!0?{reason:"cors_or_policy",likelyClientBlocked:!0}:{reason:"unknown",likelyClientBlocked:!1}}function Ze(t){return t.computedDisplay==="none"||!t.offsetParentPresent?!0:t.offsetHeight===0}function re(t,r,i){let s=!1;function n(){s||(s=!0,r())}let d=typeof t.requestIdleCallback=="function"?t.requestIdleCallback:null;if(d)try{return d(n,{timeout:i.idleTimeoutMs}),"idle"}catch{}let f=typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame:null;if(f)try{return f(function(){t.setTimeout(n,0)}),t.setTimeout(n,i.fallbackDelayMs),"after-paint"}catch{}return t.setTimeout(n,i.fallbackDelayMs),"timer"}function et(t){t.scheduleInsertPhase(function(){t.insertBait()&&t.scheduleSettleHop(function(){t.sc
95heduleReadPhase(t.readBait)})})}function tt(t,r){return t===null?!0:r>t}function nt(t,r){return t.map(function(s){return r?{...s,vendorEntryCount:Ln(r,s.url)}:{...s}})}function rt(t){var i;let r=new Map;for(let s of t){let n=null;try{n=new URL(s).hostname.toLowerCase()}catch{continue}let d=ne(n);d&&r.set(d,((i=r.get(d))!=null?i:0)+1)}return r}function Ln(t,r){var n;let i;try{i=new URL(r).hostname.toLowerCase()}catch{return null}let s=ne(i);return s?(n=t.get(s))!=null?n:0:null}var An=["ignoredErrors","stopWordMatches","codeLeakMatches","undefinedContexts","cspViolations","networkFailures"],Nn=["liquidCodeMatches","encodingDefects"];function ot(t){let{details:r,budgetBytes:i,measureBytes:s}=t;function n(f){r.payloadTrimmed=!0,r.droppedFields.includes(f)||r.droppedFields.push(f)}for(let f of An){if(s()<=i)return;r[f]=[],n(f)}function d(f,p){let h=r[f];for(;s()>i&&Array.isArray(h)&&h.length>1;)h=h.slice(0,Math.floor(h.length/2)),r[f]=h,n(p)}d("errors","errors_truncated"),d("resourceErrors","resource_errors_truncated");for(let f of Nn){if(s()<=i)return;r[f]=[],n(f)}}function st(t){let{status:r,aborted:i,sameOrigin:s}=t;return i?null:r===0?{failed:!0,kind:"network"}:r>=500?{failed:!0,kind:"server_error"}:r>=400&&s?{failed:!0,kind:"client_error"}:null}function ct(t,r){let i=(t||"").toLowerCase();if(i==="renderbetter.net"||i.endsWith(".renderbetter.net")||i==="renderbetter.com"||i.endsWith(".renderbetter.com"))return!0;let s=r||"";return s.indexOf("/renderbetter-analytics")===0||s.indexOf("/rb-analytics")===0}var it=150;function Ee(t){if(!t)return"";let r=t,i=r.indexOf("?");i!==-1&&(r=r.slice(0,i));let s=r.indexOf("#");return s!==-1&&(r=r.slice(0,s)),r.length>it?r.slice(0,it):r}var Fn=/^\d+$/,In=/^[0-9a-f]{8,}$/i,vn=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function On(t){if(!t)return"";let r=Ee(t).split("/");for(let i=0;i<r.length;i++){let s=r[i];(Fn.test(s)||vn.test(s)||In.test(s))&&(r[i]="*")}return r.join("/")}function ut(t){return`${(t.method||"GET").toUpperCase()} ${t.host}${On(t.pathname)}::${t.status}`}var Dn=[{phrase:"something went wrong",exclude:[]},{phrase:"an error occurred",exclude:[]},{phrase:"try again later",exclude:[]},{phrase:"page not found",exclude:[]},{phrase:"no results found",exclude:[]},{phrase:"unable to process",exclude:[]},{phrase:"could not be found",exclude:[]},{phrase:"temporarily unavailable",exclude:[]},{phrase:"request failed",exclude:[]},{phrase:"server error",exclude:[]},{phrase:"access denied",exclude:[]},{phrase:"failed to load",exclude:[]},{phrase:"invalid request",exclude:[]},{phrase:"too many requests",exclude:[]},{phrase:"there was a problem with our checkout",exclude:[]},{phrase:"your cart has been updated",exclude:[]},{phrase:"is already sold out",exclude:["notify me","back in stock","waitlist"]},{phrase:"is not available",exclude:["notify me","back in stock","waitlist"]},{phrase:"out of stock",exclude:["notify me when","back in stock","waitlist"]},{phrase:"payment failed",exclude:[]},{phrase:"checkout is not available",exclude:[]},{phrase:"enter a valid discount code",exclude:[]},{phrase:"discount code isn't valid",exclude:[]},{phrase:"unable to find a valid discount",exclude:[]},{phrase:"this discount has reached its usage limit",exclude:[]},{phrase:"invalid login credentials",exclude:[]},{phrase:"incorrect email or password",exclude:[]},{phrase:"sorry, this shop is currently unavailable",exclude:[]},{phrase:"this store is unavailable",exclude:[]},{phrase:"translation missing",exclude:[]},{phrase:"internal_server_error",exclude:[]}],Pn=10;function ye(t,r=Dn,i=Pn){let s=t.toLowerCase(),n=new Map;for(let d of r){let f=0,p=0;for(;p<i;){let h=s.indexOf(d.phrase,f);if(h===-1)break;f=h+1;let x=Math.max(0,h-50),C=Math.min(t.length,h+d.phrase.length+50),_=s.slice(x,C);d.exclude.some(function(w){return _.includes(w)})||(p++,n.set(d.phrase,(n.get(d.phrase)||0)+1))}}return n}var qn=[{name:"arrow_function",regex:/(.{0,40}\))\s*=>\s*[{(](.{0,40})/g},{name:"function_keyword",regex:/(.{0,40})\bfunction\s*[\w$]*\s*\([\w$,\s)]{0,40}/g},{name:"control_block",regex:/(.{0,40})}\s*(?:else|catch|finally)\s*[({](.{0,40})/g},{name:"stack_frame",regex:/(.{0,40})\bUncaught\s+\w+(?:Error|Exception)(.{0,40})/g},{name:"object_tostring",regex:/(.{0,40})\[object\s+\w+](.{0,40})/g},{name:"template_literal",regex:/(.{0,40})\$\{[\w.[\]'"]+}(.{0,40})/g},{name:"console_call",regex:/(.{0,40})\bconsole\.(?:log|error|warn|debug)\s*\((.{0,40})/g},{name:"php_open_tag",regex:/(.{0,40})<\?(?:php|=)(.{0,40})/g}],Un=5,Bn=20;function at(t,r,i=Bn){if(!t)return t;let s=t;for(let n=0;n<r.length;n++){let d=r[n];!d||d.length<i||s.indexOf(d)!==-1&&(s=s.split(d).join(` 96`))}return s}function xe(t,r=qn,i=Un){let s=new Map;for(let n of r)try{n.regex.lastIndex=0;let d=0,f=0,p;for(;(p=n.regex.exec(t))!==null&&f++<1e3;){let h=p[0];if(h.length===0){n.regex.lastIndex++;continue}let x=`${n.name}::${h}`,C=s.get(x);if(C){C.count++;continue}d>=i||(s.set(x,{pattern:n.name,context:h,count:1}),d++)}}catch{}return s}var Xn=[{kind:"utf8_as_latin1",regex:/\u00e2[\u20ac\u0080][\u0080-\u00bf\u0152\u0153\u0160\u0161\u0178\u017d\u017e\u0192\u02c6\u02dc\u2013\u2014\u2018\u2019\u201a\u201c\u201d\u201e\u2020\u2021\u2022\u2026\u2030\u2039\u203a\u20ac\u2122]|\u00c3[\u0080-\u00bf\u0152\u0153\u0160\u0161\u0178\u017d\u017e\u0192\u02c6\u02dc\u2013\u2014\u2018\u2019\u201a\u201c\u201d\u201e\u2020\u2021\u2022\u2026\u2030\u2039\u203a\u20ac\u2122]|\u00c2[\u00a0-\u00bf]/g},{kind:"replacement_char",regex:/\ufffd+/g},{kind:"c1_control",regex:/[\u0080-\u009f]+/g}];var Hn=5,lt=40,Wn={128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"};function jn(t){let r="";for(let i=0;i<t.length;i++){let s=t.charCodeAt(i);if(s>=128&&s<=159){let n=Wn[s];n&&r.indexOf(n)===-1&&(r+=n)}}return r}function zn(t){let r="";for(let i=0;i<t.length;i++){let s=t.charCodeAt(i);s<32||s>=127&&s<=159||(s===65533||s===8203||s===8204||s===8205||s===65279||s===173||s===8232||s===8233)?r+="<U+"+s.toString(16).toUpperCase().padStart(4,"0")+">":r+=t[i]}return r}function Kn(t,r){let i=[];for(let s=0;s<t.length;s++){let n=t.charCodeAt(s),d;if(r==="replacement_char"?d=n===65533:r==="c1_control"?d=n>=128&&n<=159:d=n===226||n===195||n===194||n===8364||n===128,!d)continue;let f="U+"+n.toString(16).toUpperCase().padStart(4,"0");i.indexOf(f)===-1&&i.push(f)}return i.join(",")}function dt(t,r=Xn,i=Hn){let s=new Map;if(!t)return s;let n=[],d=function(p,h){for(let x=0;x<n.length;x++)if(p<n[x][1]&&h>n[x][0])return!0;return!1};for(let f of r)try{f.regex.lastIndex=0;let p=0,h=0,x;for(;(x=f.regex.exec(t))!==null&&h++<1e3;){let C=x[0];if(C.length===0){f.regex.lastIndex++;continue}let _=x.index,S=_+C.length;if(d(_,S))continue;n.push([_,S]);let w=zn(t.slice(Math.max(0,_-lt),Math.min(t.length,S+lt))),M=f.kind+"::"+w,L=s.get(M);if(L){L.count++;continue}p>=i||(s.set(M,{kind:f.kind,codepoints:Kn(C,f.kind),context:w,intended:jn(C),count:1}),p++)}}catch{}return s}var $n=["if","unless","elsif","else","endif","endunless","for","endfor","assign","capture","endcapture","include","render","section","sections","schema","endschema","case","when","endcase","cycle","tablerow","endtablerow","liquid","echo","form","endform","paginate","endpaginate","comment","endcomment","raw","endraw","increment","decrement","layout","style","endstyle","javascript","endjavascript","stylesheet","endstylesheet"],ft=new RegExp("\\{%-?\\s*(?:"+$n.join("|")+")\\b","y"),Gn=[{kind:"liquid_error",regex:/Liquid error \(.{0,80}?\):/g,ignoreInComments:!0},{kind:"unescaped_liquid_html",regex:/(?:=|:)\s*(['"])<[a-zA-Z][a-zA-Z0-9]*\s+[a-zA-Z_:-]+=\1[\w-]+\1/g,ignoreInComments:!0}],mt=/[=(,:[!&|?{};+\-*%~^]/;function Vn(t,r=!1){let i=[];if(!t||t.indexOf("{%")===-1)return i;let s=t.length,n=0,d="";for(;n<s;){let f=t[n];if(f==="/"&&t[n+1]==="/"){for(;n<s&&t[n]!==` 97`;)n++;continue}if(f==="/"&&t[n+1]==="*"){for(n+=2;n<s&&!(t[n]==="*"&&t[n+1]==="/");)n++;n+=2;continue}if(!r&&f==="/"&&(d===""||mt.test(d))){n++;let p=!1;for(;n<s;){if(t[n]==="\\"){n+=2;continue}if(t[n]==="[")p=!0;else if(t[n]==="]")p=!1;else if(t[n]==="/"&&!p){n++;break}else if(t[n]===` 98`)break;n++}d="x";continue}if(f==='"'||f==="'"||!r&&f==="`"){let p=f;for(n++;n<s;){if(t[n]==="\\"){n+=2;continue}if(t[n]===p){n++;break}n++}d="x";continue}if(f==="{"&&t[n+1]==="%"){if(ft.lastIndex=n,ft.test(t)&&(i.push({index:n,text:t.slice(n,n+K)}),i.length>=pt*4))return i;n+=2;continue}f>" "&&(d=f),n++}return i}function _e(t,r=!1){let i=[];if(!t||t.indexOf("/*")===-1&&(r||t.indexOf("//")===-1))return i;let s=t.length,n=0,d="";for(;n<s;){let f=t[n];if(!r&&f==="/"&&t[n+1]==="/"){let p=n;for(;n<s&&t[n]!==` 99`;)n++;i.push([p,n]);continue}if(f==="/"&&t[n+1]==="*"){let p=n;for(n+=2;n<s&&!(t[n]==="*"&&t[n+1]==="/");)n++;n=Math.min(n+2,s),i.push([p,n]);continue}if(!r&&f==="/"&&(d===""||mt.test(d))){n++;let p=!1;for(;n<s;){if(t[n]==="\\"){n+=2;continue}if(t[n]==="[")p=!0;else if(t[n]==="]")p=!1;else if(t[n]==="/"&&!p){n++;break}else if(t[n]===` 100`)break;n++}d="x";continue}if(f==='"'||f==="'"||!r&&f==="`"){let p=f;for(n++;n<s;){if(t[n]==="\\"){n+=2;continue}if(t[n]===p){n++;break}n++}d="x";continue}f>" "&&(d=f),n++}return i}function Ce(t,r){for(let i of t){if(r<i[0])return!1;if(r<i[1])return!0}return!1}var pt=5,K=40;function gt(t,r=120){let i=t.replace(/\s+/g," ").trim();return i.length>r?i.slice(0,r):i}function ht(t,r,i=!0,s=Gn,n=pt){let d=new Map;if(!t)return d;if(i){let h=Vn(t,r==="style"),x=0;for(let C of h){let _=gt(t.slice(Math.max(0,C.index-K),Math.min(t.length,C.index+C.text.length+K))),S="liquid_tag::"+r+"::"+_,w=d.get(S);if(w){w.count++;continue}x>=n||(d.set(S,{kind:"liquid_tag",context:_,container:r,count:1}),x++)}}let f=null;function p(h){return f===null&&(f=_e(t,r==="style")),Ce(f,h)}for(let h of s)try{h.regex.lastIndex=0;let x=0,C=0,_;for(;(_=h.regex.exec(t))!==null&&C++<500;){let S=_[0];if(S.length===0){h.regex.lastIndex++;continue}if(h.ignoreInComments&&p(_.index))continue;let w=gt(t.slice(Math.max(0,_.index-K),Math.min(t.length,_.index+S.length+K))),M=h.kind+"::"+r+"::"+w,L=d.get(M);if(L){L.count++;continue}x>=n||(d.set(M,{kind:h.kind,context:w,container:r,count:1}),x++)}}catch{}return d}function bt(t,r){r.forEach(function(s,n){let d=t.get(n);d?d.count+=s.count:t.set(n,{kind:s.kind,context:s.context,container:s.container,count:s.count})})}var Et="Liquid error \\(.*\\): [\\w /.]{1,100}",Qn=new RegExp(Et,"g");(function(){var je;let r=window.renderbetter.getLogger("RB Analytics Error Count"),i=window.__rb_early_errors,s=0,n=[],d=50,f=new Map,p=0,h=[],x=10;function C(e){p++;
100for(let o of h)if(o.reason===e){o.count++;return}h.length<x&&h.push({reason:e,count:1})}function _(e){return`${e.type}::${e.message}::${e.url||""}::${e.line||""}::${e.column||""}`}function S(e){return function(u){return _(u)===e}}function w(e){let o=Ge(e),u=Ve(o.type,o.message)||(Qe(o)?"useless_error":null);if(u){C(u);return}s++;let c=_(o),a=f.get(c);if(a!==void 0){f.set(c,a+1);let l=n.find(S(c));l&&(l.count=a+1);return}n.length>=d||(f.set(c,1),n.push({...o,source:e.source,timestamp:e.timestamp,count:1}))}function M(e){if(e.error){let o=e.error;w({type:o.name||"Error",message:o.message||"Unknown error",stack:o.stack,url:e.filename,line:e.lineno,column:e.colno,source:"js",timestamp:Date.now()})}}window.addEventListener("error",M,{passive:!0});function L(e){let o=$e(e.reason);w({type:o.name,message:o.message,stack:o.stack,source:"rejection",timestamp:Date.now()})}window.addEventListener("unhandledrejection",L,{passive:!0});function we(e){let o=e.find(function(c){return c instanceof Error});o&&w({type:o.name||"ConsoleError",message:o.message||xt(e),stack:o.stack,source:"console",timestamp:Date.now()})}window.renderbetter.isConsoleErrorCaptureEnabled&&(i!=null&&i.setConsoleForwarder?i.setConsoleForwarder(we):yt());function yt(){let e=console.error,o=!1,u=function(...a){try{e.apply(console,a)}catch{}if(!o){o=!0;try{we(a)}catch{}finally{o=!1}}};try{console.error=u}catch{r("Unable to wrap console.error (non-writable); console capture disabled")}}function xt(e){try{let o=e.map(function(c){if(c instanceof Error)return c.message||c.name||"Error";if(typeof c=="string")return c;try{return JSON.stringify(c)}catch{return String(c)}}).join(" ");return o.length>500?`${o.slice(0,500)}\u2026`:o||"console.error"}catch{return"console.error"}}let A=[],ke=50,$=new Map,oe=new Set,_t=200,Se=!1;function Ct(){Se=!0}try{performance.addEventListener("resourcetimingbufferfull",Ct,{passive:!0})}catch{}let Re=!1;function wt(){if(Re)return!0;let e=Je({earlyScriptSaturationFlag:i==null?void 0:i.resourceTimingBufferFull,asyncListenerSawSaturation:Se,readResourceEntryCount:()=>{try{return performance.getEntriesByType("resource").length}catch{return null}}});return e&&(Re=!0),e}let F=new Set,kt=50,O=[],St=20,G=0,Te=200;function Me(e){return e.length>Te?e.slice(0,Te):e}function Rt(e){G++;let o=Me(e.blockedURI||""),u=e.effectiveDirective||"";for(let c of O)if(c.blockedUri===o&&c.effectiveDirective===u){c.count++;return}O.length>=St||O.push({blockedUri:o,effectiveDirective:u,disposition:e.disposition||"",sourceFile:e.sourceFile?Me(e.sourceFile):void 0,count:1})}function Tt(e){Rt(e);let o=e.blockedURI;if(o){if(F.size>=kt){let u=F.values().next().value;u!==void 0&&F.delete(u)}F.add(o)}}window.addEventListener("securitypolicyviolation",Tt,{passive:!0});function Mt(e){if(F.size===0)return!1;let o="";try{o=new URL(e,document.baseURI).origin}catch{}for(let u of F)if(u&&(e===u||e.indexOf(u)===0||o&&u.indexOf(o)===0))return!0;return!1}let ie=typeof navigator!="undefined"&&navigator.onLine===!1;window.addEventListener("offline",function(){ie=!0},{passive:!0}),window.addEventListener("online",function(){ie=!1},{passive:!0});function Lt(){return typeof navigator!="undefined"&&navigator.onLine===!1?!0:ie}let se={requestIdleCallback:typeof window.requestIdleCallback=="function"?window.requestIdleCallback.bind(window):null,requestAnimationFrame:typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,setTimeout:function(o,u){return setTimeout(o,u)}},ce=null,At="pub_300x250 pub_728x90 text-ad textAd text_ad text_ads text-ads ad-banner ad-placement adsbox",Nt=4e3,Ft=1500,It=120,vt=1e3,Ot=300,ue=null;function Dt(){try{if(!document.body)return!1;let e=document.createElement("div");return e.className=At,e.innerHTML=" ",e.setAttribute("aria-hidden","true"),e.style.cssText="position:absolute!important;left:-9999px!important;top:-9999px!important;width:2px;",document.body.appendChild(e),ue=e,!0}catch{return!1}}function Pt(){let e=ue;if(e){ue=null;try{let o=null;try{o=getComputedStyle(e).display}catch{o=null}ce=Ze({offsetHeight:e.offsetHeight,offsetParentPresent:e.offsetParent!==null,computedDisplay:o})}catch{ce=null}try{e.remove()}catch{}}}et({scheduleInsertPhase:function(o){re(se,o,{idleTimeoutMs:Nt,fallbackDelayMs:Ft})},scheduleSettleHop:function(o){setTimeout(o,It)},scheduleReadPhase:function(o){re(se,o,{idleTimeoutMs:vt,fallbackDelayMs:Ot})},insertBait:Dt,readBait:Pt});function qt(e){let o=e;return o.currentSrc||o.src||o.href||""}function Ut(e){if(!e)return null;try{let o=performance.getEntriesByName(e,"resource");return o.length===0?null:o[o.length-1]}catch{return null}}function Bt(e){return!e||e.responseEnd<=e.fetchStart?!1:e.transferSize===0&&e.decodedBodySize===0}let Xt=3e3,Ht=1e3,Wt=5,Le=null,Ae=null,ae=!1,Ne=0;function jt(){ae=!1,Ne++;try{let e=performance.getEntriesByType("resource");if(!tt(Ae,e.length))return;Le=rt(e.map(function(u){return u.name})),Ae=e.length}catch{}}function le(){ae||Ne>=Wt||(ae=!0,re(se,jt,{idleTimeoutMs:Xt,fallbackDelayMs:Ht}))}document.readyState==="complete"?le():window.addEventListener("load",le,{passive:!0});function Fe(e,o,u){var m,k,T,j;let c=`${e}::${o}`;if(oe.has(c))return;let a=$.get(c);if(a!==void 0){$.set(c,a+1);let z=A.find(function(ze){return`${ze.tagName}::${ze.url}`===c});z&&(z.count=a+1);return}if(u!=null&&u()){oe.size<_t&&oe.add(c);return}if(A.length>=ke)return;let l=Ut(o),b=(m=l==null?void 0:l.responseStatus)!=null?m:null,g=(k=l==null?void 0:l.renderBlockingStatus)!=null?k:null,E=l?Math.round(l.duration):null,R=be(o,location.hostname,document.baseURI),y=Ye({entry:l,isThirdParty:R,bufferSaturated:wt(),hadCspViolation:Mt(o),isOffline:Lt()});$.set(c,1),A.push({tagName:e,url:o,timestamp:Date.now(),responseStatus:b,isLikelyHttpError:b!=null?b>=400:Bt(l),renderBlockingStatus:g,durationMs:E,isThirdParty:R,failureReason:y.reason,likelyClientBlocked:y.likelyClientBlocked,count:1,entryPresent:l!==null,fetchStartMs:l?Math.round(l.fetchStart):null,responseEndMs:l?Math.round(l.responseEnd):null,transferSize:l&&(T=l.transferSize)!=null?T:null,decodedBodySize:l&&(j=l.decodedBodySize)!=null?j:null,initiatorType:l&&l.initiatorType||null}),le()}function zt(e,o){if(e.tagName!=="IMG")return!1;let u=e;if(u.width<=1&&u.height<=1)return!0;let c=u.style;return!!(c.display==="none"||c.visibility==="hidden"||c.width==="0px"||c.height==="0px"||c.width==="1px"||c.height==="1px"||o.includes("/action/0?")||o.includes("/track.php")||o.includes("/pixel")||o.includes("&evt=")||o.includes("?evt="))}function Kt(e){var a;let o=e.target;if(!o||o===window||e.error)return;let u=((a=o.tagName)==null?void 0:a.toLowerCase())||"";if(!u)return;let c=qt(o);c&&Fe(u,c,function(){return zt(o,c)})}window.addEventListener("error",Kt,{capture:!0,passive:!0});let V=[],$t=30,de=new Map,Q=0;function fe(e,o,u,c){try{let a;try{a=new URL(o,document.baseURI)}catch{return}if(a.protocol!=="http:"&&a.protocol!=="https:"||ct(a.hostname,a.pathname))return;let l=st({status:u,aborted:c,sameOrigin:a.origin===location.origin,url:o});if(!l)return;Q++;let b=ut({method:e,host:a.hostname,pathname:a.pathname,status:u}),g=de.get(b);if(g){g.count++;return}if(V.length>=$t)return;let E={kind:l.kind,method:e,host:a.hostname,path:Ee(a.pathname),status:u,isThirdParty:be(o,location.hostname,document.baseURI),count:1,timestamp:Date.now()};de.set(b,E),V.push(E)}catch{}}function Gt(e){let o="GET",u="";try{let c=e[0];typeof c=="string"?u=c:c&&typeof c.url=="string"?(u=c.url,o=c.method||"GET"):c!=null&&(u=String(c));let a=e[1];a&&typeof a.method=="string"&&a.method&&(o=a.method),o=o.toUpperCase()}catch{}return{method:o,url:u}}if(function(){try{let o=window.fetch;if(typeof o!="function")return;window.fetch=function(...c){let a=Gt(c),l=o.apply(this,c);return!l||typeof l.then!="function"?l:l.then(function(g){try{let E=g.type;g&&typeof g.status=="number"&&E!=="opaque"&&E!=="opaqueredirect"&&fe(a.method,a.url||g.url||"",g.status,!1)}catch{}return g},function(g){try{let E=g instanceof DOMException&&g.name==="AbortError";fe(a.method,a.url,0,E)}catch{}throw g})}}catch{r("Unable to wrap window.fetch (non-writable); network failure capture disabled for fetch")}}(),function(){try{let l=function(){this.__rbNetworkFailureRequest&&(this.__rbNetworkFailureRequest.aborted=!0)},b=function(){try{let g=this.__rbNetworkFailureRequest;if(!g)return;fe(g.method,g.url,this.status,g.aborted)}catch{}};var o=l,u=b;let c=window.XMLHttpRequest&&window.XMLHttpRequest.prototype;if(!c||typeof c.open!="function")return;let a=c.open;c.open=function(...E){try{this.__rbNetworkFailureRequest={method:typeof E[0]=="string"?E[0].toUpperCase():"GET",url:E[1]!=null?String(E[1]):"",aborted:!1},this.__rbNetworkFailureListening||(this.__rbNetworkFailureListening=!0,this.addEventListener("abort",l,{passive:!0}),this.addEventListener("loadend",b,{passive:!0}))}catch{}return a.apply(this,E)}}catch{r("Unable to wrap XMLHttpRequest.open; network failure capture disabled for XHR")}}(),i){i.cleanup();for(let e of i.buf)e.type==="js"?w({type:e.name,message:e.message,stack:e.stack,url:e.filename,line:e.lineno,column:e.colno,source:"js",timestamp:e.ts}):e.type==="rejection"?w({type:e.name,message:e.message,stack:e.stack,source:"rejection",timestamp:e.ts}):e.type==="resource"?Fe(e.tagName,e.url):e.type==="console"&&w({type:e.name,message:e.message,stack:e.stack,source:"console",timestamp:e.ts});r(`Drained ${i.buf.length} early-buffered errors`),i.buf.length=0}let J=null,Y=[],Z=null,D=[],P=[],q=[],U=[],B=[],I=new Map,X=new Map,H=new Map,W=new Map,ee=new Map,te=new Map,Vt=['[class*="review"]','[id*="review"]','[class*="footer"]','[id*="footer"]',"
100nav",'[role="navigation"]','[class*="cookie"]','[id*="cookie"]','[class*="chat"]','[id*="chat"]'].join(", "),Qt=24;function Jt(e){if(!e)return null;let o=Math.min(e.length,Qt);if(o<6)return null;let u=e.slice(0,o),c=De(null);if(!c)return null;let a=c.nextNode();for(;a;){let l=a.nodeValue;if(l&&l.indexOf(u)!==-1)return a.parentElement;a=c.nextNode()}return null}function Yt(e){if(!e)return null;try{return window.renderbetter.getElementSelector(e)}catch{return null}}function N(e){return Yt(Jt(e))}function Ie(e){return{context:e[0],count:e[1],selector:N(e[0])}}function ve(e){return{error:e[0],count:e[1],selector:N(e[0])}}let Oe=new Set(["SCRIPT","STYLE","NOSCRIPT","TEMPLATE","IFRAME"]),Zt="script, style, noscript, template, iframe";function De(e){try{return document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,{acceptNode(o){if(o.nodeType===Node.ELEMENT_NODE){let u=o;return Oe.has(u.tagName)||e&&e.has(u)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_ACCEPT}})}catch{return null}}function Pe(e){let o=De(e.size>0?e:null);if(!o)return"";let u=[],c=o.nextNode();for(;c;){let a=c.nodeValue;a&&u.push(a),c=o.nextNode()}return u.join(` 101`)}function qe(){let e=new Set;try{document.body.querySelectorAll(Vt).forEach(function(u){e.add(u)})}catch{}return e}function en(e){if(!e)return e;let o;try{o=document.querySelectorAll(Zt)}catch{return e}let u=[];for(let c=0;c<o.length;c++){let a=o[c].textContent;a&&u.push(a)}return at(e,u)}function Ue(e){let o;if(e.size===0)o=document.body.innerText||"";else{let l=function(g){if(Oe.has(g.tagName)||e.has(g))return;let E=g.innerText;if(!E)return;if(!a.has(g)){c.push(E);return}let R=g.childNodes;for(let y=0;y<R.length;y++){let m=R[y];m.nodeType===Node.TEXT_NODE?m.nodeValue&&c.push(m.nodeValue):m.nodeType===Node.ELEMENT_NODE&&l(m)}};var u=l;let c=[],a=new Set;for(let g of e){let E=g.parentElement;for(;E&&E!==document.body;)a.add(E),E=E.parentElement}let b=document.body.children;for(let g=0;g<b.length;g++)l(b[g]);o=c.join(` 102`)}return en(o)}function tn(e){ye(e).forEach(function(c,a){let l=H.get(a)||0;c>l&&H.set(a,c)}),P=Array.from(H.entries()).map(function([c,a]){return{phrase:c,count:a,selector:N(c)}})}function nn(e){xe(e).forEach(function(c,a){let l=W.get(a);l?c.count>l.count&&(l.count=c.count):W.set(a,c)}),q=Array.from(W.values()).map(function(c){return{pattern:c.pattern,context:c.context,count:c.count,selector:N(c.context)}})}function rn(e){let o=[document.title||"",e];for(let u of o)dt(u).forEach(function(a,l){let b=ee.get(l);b?a.count>b.count&&(b.count=a.count):ee.set(l,a)});U=Array.from(ee.values()).map(function(c){return{kind:c.kind,codepoints:c.codepoints,context:c.context,intended:c.intended,count:c.count,selector:N(c.context)}})}let on=["text/javascript","application/javascript","text/ecmascript","application/ecmascript","module"];function sn(){let e;try{e=document.querySelectorAll("script, style")}catch{return}let o=new Map;for(let u=0;u<e.length;u++){let c=e[u];if(c.tagName==="SCRIPT"&&c.src)continue;let a=c.textContent;if(!a)continue;let l=c.tagName==="STYLE",b=l?"style":"script",g=l?"":(c.getAttribute("type")||"").trim().toLowerCase(),E=l||g===""||on.indexOf(g)!==-1;bt(o,ht(a,b,E))}o.forEach(function(c,a){let l=te.get(a);l?c.count>l.count&&(l.count=c.count):te.set(a,c)}),B=Array.from(te.values())}function cn(){let e=new Map,o=document.body.querySelectorAll("script,style");for(let u=0;u<o.length;u++){let c=o[u],a=c.textContent||"";if(a.indexOf("Liquid error")===-1)continue;let l=_e(a,c.tagName==="STYLE");if(!l.length)continue;let b=new RegExp(Et,"g"),g;for(;(g=b.exec(a))!==null;){if(g[0].length===0){b.lastIndex++;continue}Ce(l,g.index)&&e.set(g[0],(e.get(g[0])||0)+1)}}return e}function ge(){var R;let e=(R=window.renderbetter.analyticsControls)==null?void 0:R.codeLeakScan;
102if(e&&e.enabled===!1){r("Body content scan disabled via analytics-controls config");return}r('Counting "undefined", liquid errors, stop words, and code leaks');let o=document.body.innerText,u=new Map;for(let y of o.matchAll(/(.{0,50})undefined(.{0,50})/gis)){let m=y[0];u.set(m,(u.get(m)||0)+1)}u.forEach(function(m,k){let T=I.get(k)||0;m>T&&I.set(k,m)}),Y=Array.from(I.entries()).map(Ie);let c=0;I.forEach(function(m){c+=m}),J=c;let a=document.body.innerHTML.match(Qn)||[],l=a.length?cn():null,b=new Map;for(let y of a){let m=l&&l.get(y)||0;if(m>0){l.set(y,m-1);continue}b.set(y,(b.get(y)||0)+1)}b.forEach(function(m,k){let T=X.get(k)||0;m>T&&X.set(k,m)}),D=Array.from(X.entries()).map(ve),Z=D.length;let g=qe();tn(Ue(g));let E=Pe(g);nn(E),rn(E),sn(),r("Content check complete",{undefinedCount:J,undefinedContexts:Y,liquidErrorCount:Z,liquidErrors:D,stopWordMatches:P,codeLeakMatches:q,encodingDefectMatches:U,liquidCodeMatches:B})}let un=5,an=2e3,ln=5e3,dn=50,fn=500,gn=3e4;function Be(e,o,u,c){let a=typeof e=="number"&&Number.isFinite(e)?Math.floor(e):NaN;return Number.isNaN(a)?c:a<o?o:a>u?u:a}let v=(je=window.renderbetter.analyticsControls)==null?void 0:je.codeLeakScan,Xe=Be(v==null?void 0:v.maxRescans,0,dn,un),mn=Be(v==null?void 0:v.rescanDebounceMs,fn,gn,an),me=0,He=0,pe=null;function pn(){if(pe=null,me>=Xe||document.hidden)return;let e=Date.now();if(e-He<ln)return;He=e,me++;let o=window.requestIdleCallback,u=function(){try{ge()}catch{}};typeof o=="function"?o(u,{timeout:2e3}):setTimeout(u,0)}function hn(){var e,o;if(((o=(e=window.renderbetter.analyticsControls)==null?void 0:e.codeLeakScan)==null?void 0:o.rescanEnabled)!==!1)try{let u=new MutationObserver(function(){if(me>=Xe){u.disconnect();return}pe==null&&(pe=setTimeout(pn,mn))});u.observe(document.body,{childList:!0,subtree:!0,characterData:!0}),setTimeout(function(){u.disconnect()},6e4)}catch{}}window.renderbetter.checkForUndefined=ge;function bn(){let e=new Map,o=new Map,u=new Map,c=new Map,l=(document.body.innerText||"").matchAll(/(.{0,50})undefined(.{0,50})/gis);for(let y of l){let m=y[0];e.set(m,(e.get(m)||0)+1)}let b=document.body.innerHTML.match(/Liquid error \(.*\): [\w /.]{1,100}/g)||[];for(let y of b)o.set(y,(o.get(y)||0)+1);let g=qe();return ye(Ue(g)).forEach(function(m,k){u.set(k,m)}),xe(Pe(g)).forEach(function(m,k){c.set(k,m)}),{undefinedContexts:Array.from(e.entries()).map(Ie),liquidErrors:Array.from(o.entries()).map(ve),stopWordMatches:Array.from(u.entries()).map(function([m,k]){return{phrase:m,count:k,selector:N(m)}}),codeLeakMatches:Array.from(c.values()).map(function(m){return{pattern:m.pattern,context:m.context,count:m.count,selector:N(m.context)}})}}window.renderbetter.codeLeaks={scan:bn};function En(){requestAnimationFrame(function(){setTimeout(function(){ge(),hn()},0)})}window.addEventListener("load",En);function yn(){var j;let b=(j=window.renderbetter.analyticsControls)==null?void 0:j.thirdPartyExperiments,g=[];if(!b||b.enabled!==!1)try{g=window.renderbetter.getThirdPartyExperiments()||[]}catch{g=[]}let E=n.slice(),R=nt(A.slice(0,ke),Le),y=28e3,m={errorCount:s,errors:E,truncated:n.length>=d,undefinedCount:J,undefinedContexts:Y.slice(0,50),liquidErrorCount:Z,liquidErrors:D.slice(0,50),resourceErrorCount:A.length,resourceErrors:R,ignoredErrorCount:p,ignoredErrors:h.slice(),cspViolationCount:G,cspViolations:O.slice(),networkFailureCount:Q,networkFailures:V.slice(),stopWordCount:P.length,stopWordMatches:P.slice(0,30),codeLeakCount:q.length,codeLeakMatches:q.slice(0,30),encodingDefectCount:U.length,encodingDefects:U.slice(0,15),liquidCodeCount:B.length,liquidCodeMatches:B.slice(0,20),thirdPartyExperiments:g,contentBlockerActive:ce,payloadTrimmed:!1,droppedFields:[]},k=typeof TextEncoder!="undefined"?new TextEncoder:null;function T(){try{let z=JSON.stringify(m);return k?k.encode(z).byteLength:z.length}catch{return 0}}ot({details:m,budgetBytes:y,measureBytes:T}),r("Sending error metrics",m),window.renderbetter.collect({type:"metric",name:"error_count",attribution:JSON.stringify(m),value:s})}let he=!1;function We(){if(!he&&!(s===0&&n.length===0&&A.length===0&&p===0&&G===0&&Q===0&&I.size===0&&X.size===0&&H.size===0&&W.size===0)){he=!0;try{yn(),s=0,n.length=0,f.clear(),A.length=0,$.clear(),p=0,h.length=0,G=0,O.length=0,Q=0,V.length=0,de.clear(),I.clear(),X.clear(),H.clear(),W.clear(),ee.clear(),te.clear(),J=null,Y=[],Z=null,D=[],P=[],q.length=0,U=[],B=[]}finally{he=!1}}}function xn(){document.visibilityState==="hidden"&&We()}document.addEventListener("visibilitychange",xn,{passive:!0}),window.addEventListener("pagehide",We,{passive:!0})})();})(); 103(()=>{(function(){let s=window.renderbetter.getLogger("RB Analytics Memory"),f="memory"in performance,h=typeof performance.measureUserAgentSpecificMemory=="function";if(!f){s("performance.memory not available, skipping memory timeline");return}let a=[100,200,500,1e3,1500,2e3,3e3,5e3,1e4,2e4],w=150,b=2e3,i=[],d=null,m=!1,l=0,c=[];function g(){return performance.memory}function u(e){if(m)return;let r=g(),n={timestamp:Math.round(performance.now()),usedJSHeapSize:r.usedJSHeapSize,totalJSHeapSize:r.totalJSHeapSize,jsHeapSizeLimit:r.jsHeapSizeLimit,trigger:e};i.push(n),s("Snapshot taken",n)}function M(){let e=performance.now();for(let n=0;n<a.length;n++){let o=a[n]-(performance.now()-e);o>0?c.push(setTimeout(function(){u("scheduled")},o)):u("scheduled")}let r=a[a.length-1]+1e3;c.push(setTimeout(function(){(window.requestIdleCallback||function(z){return setTimeout(z,200)})(function(){u("settled")})},r))}function p(){if(m)return;let e=performance.now();e-l<b||(l=e,setTimeout(function(){u("interaction")},w))}async function H(){if(!(!h||!window.crossOriginIsolated))try{let e=await performance.measureUserAgentSpecificMemory(),r=e.breakdown.filter(function(o){return o.types.includes("JavaScript")}).reduce(function(o,t){return o+t.bytes},0);d={totalBytes:e.bytes,jsBytes:r,measuredAt:Math.round(performance.now())},s("Detailed memory measurement:",d)}catch(e){s("measureUserAgentSpecificMemory failed:",e)}}function y(){if(m||i.length===0)return;m=!0;for(let t=0;t<c.length;t++)clearTimeout(c[t]);let e=0;for(let t=0;t<i.length;t++)i[t].usedJSHeapSize>e&&(e=i[t].usedJSHeapSize);let r=i[0].usedJSHeapSize,n=i[i.length-1].usedJSHeapSize,o={snapshots:i,detailed:d,peakUsedHeap:e,heapGrowth:n-r,jsHeapSizeLimit:i[0].jsHeapSizeLimit};s("Sending memory metrics",o),window.renderbetter.collect({type:"metric",name:"memory_usage",value:e,attribution:JSON.stringify(o)})}function S(){M(),H()}document.readyState==="complete"?S():window.addEventListener("load",S),window.addEventListener("click",p,{passive:!0}),window.addEventListener("keydown",p,{passive:!0}),window.addEventListener("pagehide",y),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y()})})();})(); 104(()=>
104{function H(o){if(o===null)return null;let l=Number.parseFloat(o);return Number.isFinite(l)&&l>0?l:null}function D(o,l){return o!==null&&H(o)===null||l!==null&&H(l)===null}var Ee=200,we=15;function ye(o,l=Ee){return o.replace(/([a-zA-Z_:][-a-zA-Z0-9_:.]*)\s*=\s*"([^"]*)"/g,function(b,m,h){return h.length<=l?b:`${m}="${h.slice(0,l-3)}..."`})}function G(o,l=we){let c=new Map,b=[];for(let h of o){let u=c.get(h.reason)||0;c.set(h.reason,u+1),u<l&&b.push({...h,html:ye(h.html)})}let m=[];return c.forEach(function(u,g){m.push({reason:g,count:u})}),{samples:b,counts:m}}function Ae(o){return o.renderedAtEligibility===!1||o.renderedAtEligibility!==null&&o.paintedArea<=0?"never-painted":o.hiderDepth!==null&&o.hiderDepth>0?"container-closed":!1}(function o(){var B,x;let l="Image Check";if(typeof window=="undefined"||typeof document=="undefined")return;if(!((B=window.renderbetter)!=null&&B.isInitialized)){window.location.href.includes("debug")&&console.log(`[${l}]`,"Waiting for Render Better clientside script to initialize"),document.addEventListener("rb-analytics-initialized",o);return}let c=window.renderbetter.getLogger(l),b=(x=window.renderbetter.analyticsControls)==null?void 0:x.missingImageChecker;if(b&&b.enabled===!1){c("Missing-image checker disabled via analytics-controls config");return}let m=new Set,h=1e3,u=[],g=[],L=new Map;function Q(e){L.set(e,(L.get(e)||0)+1)}window.renderbetter.imageErrors=u,window.renderbetter.imageWarnings=g,window.renderbetter.checkImageQuality=y;function U(){pe()}window.addEventListener("load",U);function E(e){var t;return e.currentSrc?e.currentSrc:e.src?e.src:((t=(e.getAttribute("srcset")||"").split(",")[0])==null?void 0:t.trim().split(/\s+/)[0])||""}function V(e){try{return window.renderbetter.getElementSelector(e)}catch{return null}}function q(e,n){return`${E(e)}::${n}`}function w(e,n,r,t={}){if(K(e))return;let i=q(e,n);if(m.has(i))return;m.size<h&&m.add(i);let s={src:E(e)||null,reason:n,html:e.outerHTML,selector:V(e),details:t,element:e};r?(u.push(s),c("Image error:",e,n)):(g.push(s),c("Image warning:",e,n))}function X(e){var t;if(!e)return null;let n=performance.getEntriesByName(e,"resource");return n.length===0?null:(t=n[n.length-1].responseStatus)!=null?t:null}function v(e,n,r={}){let t=E(e),i=X(t);w(e,n,!0,{...r,...i!==null?{responseStatus:i}:{}})}function $(e,n,r={}){w(e,n,!1,r)}function K(e){return e.naturalWidth===1&&e.naturalHeight===1||e.width<=1||e.height<=1||e.src.includes("bat.bing.com")}let k=/(?:^|\/)(?:no[-_]?image|placeholder(?:[-_]image)?|image[-_]not[-_]available)(?:[-_.][^/]*)?\.(?:gif|png|jpe?g|webp|svg|avif)$/i;function J(e){if(!e)return!1;try{let n=new URL(e,document.baseURI).pathname;return/\/cdn\/shopifycloud\/storefront\/assets\/no-image-/i.test(n)?!0:k.test(n)}catch{return k.test(e)}}function S(e){let n=E(e);J(n)&&v(e,"Image is a no-image placeholder",{placeholderSrc:n})}function Z(e){try{return new URL(e,document.baseURI).pathname.endsWith(".svg")}catch{return e.endsWith(".svg")}}let T=[],C=!1;function y(e){if(T.includes(e)||T.push(e),!C){let r=function(){requestAnimationFrame(function(){setTimeout(j,100)})};var n=r;C=!0,document.readyState==="complete"?r():window.addEventListener("load",r,{once:!0})}}function j(){C=!1;let e=T.slice();T=[];for(let n of e)_(n)}async function Y(e){try{let n=new Image;return n.src=e,await n.decode(),{width:n.width,height:n.height}}catch{return null}}async function _(e){if(!e.complete)return;let n=E(e);if(Z(n))return;let r=await Y(n);if(!r)return;let{width:t,height:i}=r,s=e.clientWidth,a=e.clientHeight;if(t===0||i===0||s<=5||a<=5)return;let d=Math.min(t/s,i/a),f=.8;d<f&&$(e,"Image appears blurry (low resolution for display size)",{imageWidth:t,imageHeight:i,elementWidth:s,elementHeight:a,imageToElementRatio:d,minQualityThreshold:f,hasSrcset:e.srcset!=="",hasSizes:e.sizes!=="",loading:e.loading||"auto"})}function O(e){let{element:n,...r}=e;return r}function ee(){let e=G(u.map(O)),n=G(g.map(O)),r=e.counts.slice();L.forEach(function(s,a){r.push({reason:a,count:s})});let t={pathname:window.location.pathname,windowWidth:window.innerWidth,windowHeight:window.innerHeight,devicePixelRatio:window.devicePixelRatio,errors:e.samples,warnings:n.samples,errorCounts:r,warningCounts:n.counts,errorCount:u.length,warningCount:g.length};c("Sending missing image metrics",t),window.renderbetter.collect({type:"metric",name:"missing_image",attribution:JSON.stringify(t),value:u.length+g.length})}function W(){he(),ge(),!(u.length===0&&g.length===0)&&(ee(),u.length=0,g.length=0,L.clear(),m.clear())}function te(){try{M==null||M.disconnect(),A.disconnect()}catch{}}function ne(){document.visibilityState==="hidden"&&W()}function re(e){W(),e.persisted||te()}document.addEventListener("visibilitychange",ne),window.addEventListener("pagehide",re);let ie=3e3,se=500,oe=12,p=new Map;function N(e){if(H(e.getAttribute("width"))&&H(e.getAttribute("height")))return!1;try{let n=getComputedStyle(e).aspectRatio;return!n||n==="auto"}catch{return!0}}function R(e){if(e.getClientRects().length===0)return!1;try{return getComputedStyle(e).visibility!=="hidden"}catch{return!1}}function ae(e){return!!(e.getAttribute("src")||e.getAttribute("srcset")||e.currentSrc)}function le(e){let n=e.currentSrc||e.src||"";if(!n)return!1;try{return performance.getEntriesByName(n,"resource").length>0}catch{return!0}}function ce(e,n){p.has(e)||p.size>=se||p.set(e,{at:performance.now(),paintedArea:n,renderedAtEligibility:null})}function ue(e){let n=p.get(e);!n||n.renderedAtEligibility!==null||(n.renderedAtEligibility=R(e))}function de(e){let n=e,r=0;for(;n&&r<=oe;){let t;try{t=getComputedStyle(n)}catch{return null}if(t.display==="none")return{depth:r,cause:"display-none",element:n};if(t.visibility==="hidden")return{depth:r,cause:"visibility-hidden",element:n};n=n.parentElement,r++}return null}function he(){let e=performance.now();p.forEach(function(r,t){if(!document.contains(t)){p.delete(t);return}let i=r.at;if(e-i<ie)return;
104if(t.complete&&t.naturalWidth>0&&!R(t)){let d=de(t),f=Ae({renderedAtEligibility:r.renderedAtEligibility,paintedArea:r.paintedArea,hiderDepth:d?d.depth:null});if(f){Q(f==="never-painted"?"hidden-by-design: never painted":"hidden-by-design: container closed");return}let I=t.getAttribute("data-rb-dynamic-sized")||t.getAttribute("data-rb-modified"),F=!!(I&&I.indexOf("loading")!==-1);w(t,F?"Image hidden after load (Render Better modified)":"Image hidden after load",!0,{rbStamped:F,rbMarker:I,loading:t.getAttribute("loading"),widthAttr:t.getAttribute("width"),heightAttr:t.getAttribute("height"),invalidDimensionAttrs:D(t.getAttribute("width"),t.getAttribute("height")),naturalWidth:t.naturalWidth,msSinceViewportEligible:Math.round(e-i),hideCause:d?d.cause:"no-box",hideDepth:d?d.depth:null,hiderClass:d?String(d.element.className||"").slice(0,200):null,paintedArea:Math.round(r.paintedArea)});return}if(t.complete||!R(t)||!ae(t))return;let s=t.getBoundingClientRect(),a=(t.getAttribute("loading")||"").toLowerCase();w(t,"Image never loaded",!0,{loading:a||"auto",widthAttr:t.getAttribute("width"),heightAttr:t.getAttribute("height"),invalidDimensionAttrs:D(t.getAttribute("width"),t.getAttribute("height")),unreservedLazy:a==="lazy"&&N(t),collapsedBox:s.width===0||s.height===0,boxWidth:Math.round(s.width),boxHeight:Math.round(s.height),msSinceViewportEligible:Math.round(e-i),fetchCompleted:le(t),rbModified:t.getAttribute("data-rb-modified"),rbDynamicSized:t.getAttribute("data-rb-dynamic-sized"),isJsLazyLoader:t.hasAttribute("data-src")||t.hasAttribute("data-srcset")})})}function ge(){let e;try{e=document.querySelectorAll("img[data-rb-dynamic-sized]")}catch{return}e.forEach(function(r){let t=r.getAttribute("data-rb-dynamic-sized")||"";if(t.indexOf("loading")===-1||R(r)||!N(r)||!(r.complete&&r.naturalWidth>0))return;let i=r.getBoundingClientRect();w(r,"Image hidden after Render Better lazy stamp",!0,{rbDynamicSized:t,loading:r.getAttribute("loading"),widthAttr:r.getAttribute("width"),heightAttr:r.getAttribute("height"),invalidDimensionAttrs:D(r.getAttribute("width"),r.getAttribute("height")),loaded:r.complete&&r.naturalWidth>0,naturalWidth:r.naturalWidth,boxWidth:Math.round(i.width),boxHeight:Math.round(i.height)})})}function z(e){return e.complete&&e.naturalWidth===0?(v(e,"Image failed to load"),!0):(e.complete&&e.naturalWidth>0&&S(e),!1)}function me(e,n,r){function t(){n.disconnect(),r()}function i(){S(e),y(e),t()}function s(){v(e,"Image failed to load"),t()}e.addEventListener("load",i,{once:!0}),e.addEventListener("error",s,{once:!0})}function fe(e){function r(){let i=null,s=new MutationObserver(function(d){let f=!1;for(let I of d)(I.attributeName==="src"||I.attributeName==="srcset")&&(f=!0);f&&(c("Image src changed:",e),S(e),y(e),i&&(clearTimeout(i),i=null),s.disconnect())});return i=setTimeout(function(){i=null,s.disconnect()},3e4),s}if(e.complete){z(e)||y(e),r().observe(e,{attributes:!0,attributeFilter:["src","srcset"]}),A.unobserve(e);return}let t=new MutationObserver(function(s){for(let a of s)(a.attributeName==="src"||a.attributeName==="srcset")&&(c("Image src changed:",e),S(e),y(e))});t.observe(e,{attributes:!0,attributeFilter:["src","srcset"]}),me(e,t,function(){A.unobserve(e)})}function be(e){for(let n of e)if(n.isIntersecting){let r=n.target,t=n.intersectionRect;ce(r,Math.max(0,t.width)*Math.max(0,t.height)),setTimeout(function(){document.contains(r)&&(ue(r),fe(r))},500)}}let A=new IntersectionObserver(be);function P(e){A.observe(e)}let M=null;function pe(){document.querySelectorAll("img").forEach(P);function e(n){for(let r of n)for(let t=0;t<r.addedNodes.length;t++){let i=r.addedNodes[t];i.nodeType===1&&(i.nodeName==="IMG"?A.observe(i):i.querySelectorAll("img").forEach(P))}}M=new MutationObserver(e),M.observe(document.body,{childList:!0,subtree:!0})}async function Ie(){c("Checking all images for errors");let e=Array.from(document.querySelectorAll("img"));for(let t of e){let i=t;if(!z(i))if(i.complete)await _(i);else{let s=function(){_(i)},a=function(){v(i,"Image failed to load")};var n=s,r=a;i.addEventListener("load",s,{once:!0}),i.addEventListener("error",a,{once:!0})}}c("Image check complete",{errorCount:u.length,warningCount:g.length})}window.renderbetter.checkForImageErrors=Ie})();})(); 105(()=>{var re=["co","com","org","net","ac","gov","edu"];
105function j(n){let t=n.toLowerCase().split(".").filter(Boolean);if(t.length<=2)return t.join(".");let o=t[t.length-1],s=t[t.length-2],d=o.length===2&&re.indexOf(s)!==-1;return t.slice(d?-3:-2).join(".")}function D(n,t){let o=n.toLowerCase();return o!==t&&!o.endsWith(`.${t}`)}var se=["renderbetter.app","renderbetter.net","renderbetter.com","renderbetter.dev"];function X(n){return se.some(t=>n===t||n.endsWith(`.${t}`))}function y(n){return n.indexOf("rb-")===0||n.indexOf("rb_")===0}function U(n){if(n.indexOf("http://")!==0&&n.indexOf("https://")!==0)return null;try{return new URL(n).hostname}catch{return null}}function K(n,t){return n>=t.startMs&&n<t.endMs}function $(n,t,o){let s={};for(let r of n){if(!K(r.startMs,t))continue;let u=s[r.host];if(!u){s[r.host]={host:r.host,types:[r.type],count:1,firstMs:Math.round(r.startMs)};continue}u.count+=1,u.firstMs=Math.min(u.firstMs,Math.round(r.startMs)),u.types.indexOf(r.type)===-1&&u.types.push(r.type)}let d=Object.keys(s).map(r=>s[r]).sort((r,u)=>u.count-r.count);return{hosts:d.slice(0,o),truncatedHostCount:Math.max(0,d.length-o)}}function V(n,t,o){let s={};for(let d of n){if(!K(d.atMs,t))continue;let r=s[d.name];if(!r){s[d.name]={name:d.name,count:1,firstMs:Math.round(d.atMs)};continue}r.count+=1,r.firstMs=Math.min(r.firstMs,Math.round(d.atMs))}return Object.keys(s).map(d=>s[d]).slice(0,o)}function A(n){let t={};for(let o of n.split(";")){let s=o.indexOf("="),d=(s===-1?o:o.slice(0,s)).trim();if(!d)continue;let r=s===-1?"":o.slice(s+1);t[d.slice(0,64)]=ie(r)}return t}function ie(n){let t=5381;for(let o=0;o<n.length;o++)t=(t<<5)+t+n.charCodeAt(o)|0;return t}function z(n,t){return Object.keys(t).filter(o=>n[o]!==t[o])}function J(n){var t,o;return n.phase==="before-consent"?(t=n.countAtConsent)!=null?t:n.currentCount:n.isOptOutBeforePage?n.currentCount:Math.max(0,n.currentCount-((o=n.countAtOptOut)!=null?o:0))}function de(n){return typeof n=="number"&&Number.isFinite(n)&&n>0?Math.floor(n):0}function Q(n,t){var d;if(typeof n!="function"&&(typeof n!="object"||n===null))return;let o=n,s={present:!0,loaded:!1,pixelCount:0,eventCount:0,pixels:[],queued:0};try{s.loaded=o.loaded===!0,typeof o.version=="string"&&(s.version=o.version.slice(0,16)),Array.isArray(o.queue)&&(s.queued=o.queue.length)}catch{}try{let r=typeof o.getState=="function"?o.getState():void 0,u=Array.isArray(r==null?void 0:r.pixels)?r.pixels:[];s.pixelCount=u.length;for(let c of u){let b=de(c==null?void 0:c.eventCount);s.eventCount+=b,s.pixels.length<5&&s.pixels.push({id:String((d=c==null?void 0:c.id)!=null?d:"").slice(0,24),eventCount:b})}}catch{}try{let r=t();r&&(s.scriptStart=Math.round(r.startTime),s.scriptEnd=Math.round(r.responseEnd))}catch{}return s}(function(){var W,H;if(window.self!==window.top||((H=(W=window.renderbetter.analyticsControls)==null?void 0:W.consentAudit)==null?void 0:H.enabled)===!1)return;let t=window.renderbetter.getLogger("RB Analytics Consent Audit"),o=3e3,s=100,d=100,r=1e3,u=j(window.location.hostname),c=[],b=[],m=A(document.cookie),w=null,T=0,P=0,k=0,_,E,h,L=0,v=null;function C(){var e;return(e=Q(window.fbq,()=>{}))==null?void 0:e.eventCount}function x(){let e=window.renderbetter;return!e.isConsentTierResolved||e.consentTier!=="full"}function Y(){var e,i;return Math.max((e=window.renderbetter.optOutEndedAtMs)!=null?e:-1,(i=window.renderbetter.consentGrantedAtMs)!=null?i:-1)}function Z(e){if(c.length>=o||!x()&&e.startTime>Y())return;let i=U(e.name);!i||!D(i,u)||X(i)||c.push({host:i,type:e.initiatorType||"other",startMs:e.startTime})}function M(e){let i=A(document.cookie),f=e!=null?e:performance.now();for(let a of z(m,i)){if(b.length>=o)break;y(a)||b.push({name:a,atMs:f})}m=i}let l;function F(){l===void 0&&(m=A(document.cookie),l=setInterval(()=>M(),r))}function I(){l!==void 0&&(clearInterval(l),l=void 0)}try{new PerformanceObserver(e=>{for(let i of e.getEntries())Z(i)}).observe({type:"resource",buffered:!0})}catch(e){t("Resource timing unavailable, consent audit disabled",e);return}l=setInterval(()=>M(),r),document.addEventListener("rb-consent-tier-changed",()=>{var i;let e=window.renderbetter.consentTierChangedAtMs;l!==void 0&&M(e>0?e-.001:void 0),x()?F():I(),window.renderbetter.consentTier==="essential"&&(v={...window.renderbetter.consentSignals}),window.renderbetter.consentTier==="essential"&&w===null&&(w=Object.keys(m).filter(f=>!y(f)),_=C()),window.renderbetter.consentTier==="essential"?h=void 0:window.renderbetter.optOutEndedAtMs!==void 0&&h===void 0&&(h=C()),window.renderbetter.consentGrantedAtMs!==void 0&&E===void 0&&(E=(i=C())!=null?i:0)});function ee(){var f;let i=[["onetrust",["OneTrust","OptanonActiveGroups"]],["cookiebot",["Cookiebot"]],["termly",["Termly"]],["fides",["Fides"]],["osano",["Osano"]],["usercentrics",["UC_UI","__ucCmp"]],["tcf",["__tcfapi"]],["gpp",["__gpp"]]].filter(([,a])=>a.some(p=>window[p]!==void 0)).map(([a])=>a);return(f=window.Shopify)!=null&&f.customerPrivacy&&i.push("shopify"),i}function ne(){var i,f,a,p,O;let e=(i=window.Shopify)==null?void 0:i.customerPrivacy;
105if(e)try{return{analytics:(f=e.analyticsProcessingAllowed)==null?void 0:f.call(e),marketing:(a=e.marketingAllowed)==null?void 0:a.call(e),preferences:(p=e.preferencesProcessingAllowed)==null?void 0:p.call(e),saleOfData:(O=e.saleOfDataAllowed)==null?void 0:O.call(e)}}catch{return}}function te(){var i;let e=window.renderbetter;return e.isConsentTierResolved?e.optedOutAtMs!==void 0?{phase:"after-opt-out",window:{startMs:e.optedOutAtMs,endMs:(i=e.optOutEndedAtMs)!=null?i:1/0}}:e.consentTier==="undecided"?{phase:"before-consent",window:{startMs:0,endMs:1/0}}:e.consentGrantedAtMs!==void 0?{phase:"before-consent",window:{startMs:0,endMs:e.consentGrantedAtMs}}:null:null}function q(){l!==void 0&&M();let e=te();if(!e)return;let i=c.slice(T),f=b.slice(P),a=k===0,{hosts:p,truncatedHostCount:O}=$(i,e.window,s),N=V(f,e.window,d),B=window.renderbetter.optOutEndedAtMs!==void 0&&h!==void 0?h:C(),R=B===void 0?void 0:J({phase:e.phase,currentCount:B,countAtOptOut:_,isOptOutBeforePage:window.renderbetter.optedOutAtMs===0,countAtConsent:E}),S=R===void 0?0:Math.max(0,R-L);if(!a&&p.length===0&&N.length===0&&S===0)return;T=c.length,P=b.length,L+=S,k+=1;let g=e.phase==="after-opt-out"&&v?v:window.renderbetter.consentSignals,G={v:2,phase:e.phase,source:e.phase==="after-opt-out"?g.gpcNavigator||g.gpcHeader?"gpc":"rejected":null,signals:{gpcNavigator:g.gpcNavigator,gpcHeader:g.gpcHeader,choice:g.choice,vetoes:g.vetoes},optedOutAtMs:window.renderbetter.optedOutAtMs===void 0?null:Math.round(window.renderbetter.optedOutAtMs),optOutEndedAtMs:window.renderbetter.optOutEndedAtMs===void 0?null:Math.round(window.renderbetter.optOutEndedAtMs),consentGrantedAtMs:window.renderbetter.consentGrantedAtMs===void 0?null:Math.round(window.renderbetter.consentGrantedAtMs),reportSequence:k,consentManagers:ee(),shopifyConsent:ne(),thirdPartyRequests:p,truncatedHostCount:O,cookiesSet:N,facebookPixelEvents:R===void 0?void 0:S,cookiesPresentAtOptOut:a&&e.phase==="after-opt-out"?(w!=null?w:Object.keys(m).filter(oe=>!y(oe))).slice(0,d):void 0};t("Consent audit",G),window.renderbetter.collect({type:"metric",name:"consent_audit",value:p.length,attribution:JSON.stringify(G)})}document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&q()}),window.addEventListener("pagehide",()=>{q(),I()}),window.addEventListener("pageshow",e=>{e.persisted&&window.renderbetter.refreshConsentTier().then(()=>{x()&&F()}).catch(i=>t("Consent re-read after a back/forward restore failed",i))})})();})(); 106(()=>{var ee=6e4;function b(o){return new TextEncoder().encode(o).byteLength}function Q(o,f,y){let u=[],a=[],i=()=>{a.length>0&&(u.push({events:a,body:y(a),overBudget:!1}),a=[])};for(let w of o){let g=a.concat([w]);if(b(y(g))<=f){a=g;continue}i();let m=y([w]);b(m)<=f?a=[w]:u.push({events:[w],body:m,overBudget:!0})}return i(),u}var H=["page_viewed","ttfb","fcp","lcp","inp","cls"];function Z(o){var a,i,w;if(!("name"in o)||H.indexOf(o.name)===-1)return o;let f=(w=(i=(a=window.renderbetter).readOriginTiming)==null?void 0:i.call(a))!=null?w:{},y=Object.keys(f);if(!y.length)return o;let u=o.attribution;if(u==null)return{...o,attribution:JSON.stringify(f)};if(typeof u!="string"||u.indexOf(y[0])!==-1)return o;try{let g=JSON.parse(u);return!g||typeof g!="object"||Array.isArray(g)?o:{...o,attribution:JSON.stringify({...g,...f})}}catch{return o}}function E(){var F,z;let o="RB Analytics J";if(!((F=window.renderbetter)!=null&&F.isInitialized)){window.location.href.includes("debug")&&console.log(`[${o}]`,"Render Better Analytics script loaded before Render Better inline analytics script. Analytics will not work until it has been initialized."),window.renderbetter?window.renderbetter.addInitializedListener(E):document.addEventListener("rb-analytics-initialized",E);return}let f="n0DaeCuAbkcu3aTso195HaK1L32CkA9A:RrHUsWBGLEWIAfFvryQxgKafQkjCflBz",y=window.renderbetter.rbAnonymousId,u=window.renderbetter.rbSessionId,a,i=window.renderbetter.getLogger(o);if(i("Initializing RB Analytics sink..."),!f){i("No write-key provided, analytics will not be collected.");return}if(!y||!u){i("No session-id provided, analytics will not be collected until tracking consent is granted."),document.addEventListener("rb-session-id",E);return}if((z=window.rbSinks)!=null&&z[o])return;window.rbSinks={...window.rbSinks,[o]:!0};let w="rb-analytics-retry-queue",g=2*24*60*60*1e3,m=256e3,Y=20;function N(){try{let e=localStorage.getItem(w);if(!e)return[];let t=JSON.parse(e);if(!Array.isArray(t))return[];let n=Date.now();return t.filter(function(s){return n-s.storedAt<g})}catch{try{localStorage.removeItem(w)}catch{}return[]}}function x(e){try{if(e.length===0){localStorage.removeItem(w);return}if(JSON.stringify(e).length>m)for(i("Retry queue exceeds size limit, dropping oldest entries");e.length>1&&JSON.stringify(e).length>m;)e.shift();localStorage.setItem(w,JSON.stringify(e))}catch{i("Failed to save retry queue to localStorage")}}function k(e){let t=N();t.length>=Y&&t.shift(),t.push({body:e,storedAt:Date.now()}),x(t),i(`Persisted failed batch to retry queue (${t.length} entries stored)`)}async function I(e){try{if(window.navigator.sendBeacon("https://analytics.renderbetter.net/v1/batch",e))return!0}catch(n){i("sendBeacon failed, falling back to fetch",n)}return(await fetch("https://analytics.renderbetter.net/v1/batch",{keepalive:!0,method:"POST",body:e})).ok}async function W(){let e=N();if(e.length===0)return;if(i(`Draining retry queue: ${e.length} stored batches`),!await window.renderbetter.canCollectAnalytics()){i("Analytics collection disabled, leaving retry queue untouched");return}let t=[];for(let n of e){if(b(n.body)>6e4){i(`Dropping stuck oversized retry entry (${b(n.body)}B)`);continue}try{!await I(n.body)&&Date.now()-n.storedAt<g&&t.push(n)}catch{Date.now()-n.storedAt<g&&t.push(n)}}x(t)}W();let O=0,A=0,$=1e3;B(),document.addEventListener("rb-analytics-collected",B);let C=e=>()=>{i(`Detected '${e}' event. Flushing...`),a&&clearTimeout(a),v(),setTimeout(v,50),document.removeEventListener("rb-analytics-collected",B),document.addEventListener("rb-analytics-collected",v)};document.addEventListener("visibilitychange",C("visibilitychange")),window.addEventListener("pagehide",C("pagehide"));let L={webglRenderer:null,webglVendor:null,webglStatus:"pending"},R=T(),S=!1;window.addEventListener("resize",()=>{S||(S=!0,window.requestAnimationFrame(()=>{R=T(),S=!1}))}),G(),i("RB Analytics sink initialized");function G(){let e=()=>{L=q(),R=T()};typeof window.requestIdleCallback=="function"?window.requestIdleCallback(e,{timeout:800}
106):setTimeout(e,300)}function q(){var e;try{let t=document.createElement("canvas");t.width=1,t.height=1;let n={failIfMajorPerformanceCaveat:!1,powerPreference:"low-power"},r=t.getContext("webgl",n)||t.getContext("experimental-webgl",n);if(!r)return{webglRenderer:null,webglVendor:null,webglStatus:"unavailable"};let s=r.getExtension("WEBGL_debug_renderer_info"),c=s?r.getParameter(s.UNMASKED_RENDERER_WEBGL):null,d=s?r.getParameter(s.UNMASKED_VENDOR_WEBGL):null,h="unmasked";return(typeof c!="string"||!c)&&(c=r.getParameter(r.RENDERER),d=r.getParameter(r.VENDOR),h="masked"),(e=r.getExtension("WEBGL_lose_context"))==null||e.loseContext(),{webglRenderer:typeof c=="string"?c.slice(0,256):null,webglVendor:typeof d=="string"?d.slice(0,128):null,webglStatus:h}}catch{return{webglRenderer:null,webglVendor:null,webglStatus:"error"}}}function B(){a&&(i("Clearing existing flush timeout"),clearTimeout(a)),a=setTimeout(()=>{v(),a&&clearTimeout(a)},$)}async function v(){if(!await window.renderbetter.canCollectAnalytics()){i("Analytics collection disabled, not sending analytics to Render Better");return}let e=window.renderbetter.queue.slice(O);O=window.renderbetter.queue.length,e.length&&(i(`Flushing [${e.map(t=>"name"in t?t.name:t.type).join(", ")}] events...`),J([...e]))}async function J(e){if(!f)return i("No write key provided, not sending analytics to Render Better"),!1;if(!await window.renderbetter.canCollectAnalytics())return i("Analytics collection disabled, not sending analytics to Render Better"),!1;let t=window.location.href,n=new URL(t),r=n.pathname.replace(/\/{2,}/g,"/").replace(/\/$/,"")||"/",s=e.map(l=>{let _=new Date().toISOString(),X=Z(l);return{type:"track",anonymousId:y,event:"name"in l?l.name:l.type,timestamp:_,sentAt:_,messageId:K(n==null?void 0:n.pathname),properties:{...window.renderbetter.analyticsProperties,url:t,path:r,anonymousId:y,sessionId:u,...X}}}),c=l=>JSON.stringify({batch:l,writeKey:f,context:R}),d=c(s);if(b(d)<=6e4)return M(d,e);i(`Batch body ${b(d)}B exceeds 60000B; splitting into sub-batches`);let h=Q(s,6e4,c),p=!0;for(let l of h)(l.overBudget?await U(l.body,l.events):await M(l.body,l.events))||(p=!1);return p}async function M(e,t){try{let n=await I(e);return n||(k(e),await window.renderbetter.reportError("Failed to send analytics to Render Better",{events:t})),n}catch(n){return k(e),n instanceof Error?await window.renderbetter.reportError("Failed to send analytics to Render Better",{error:{message:n.message,stack:n.stack}}):await window.renderbetter.reportError("Failed to send analytics to Render Better",{error:n}),!1}}async function U(e,t){try{if((await fetch("https://analytics.renderbetter.net/v1/batch",{keepalive:!0,method:"POST",body:e})).ok)return!0}catch(n){i("Oversized-event fetch failed",n)}return A+=t.length,i(`Dropped ${t.length} oversized analytics event(s) (${b(e)}B); ${A} dropped this session`),await window.renderbetter.reportError("Dropped oversized analytics event exceeding the beacon limit",{droppedCount:A,bodyBytes:b(e)}),!1}function V(){let e=window.navigator.userAgent,t={chrome:/chrome/i,safari:/safari/i,firefox:/firefox/i,ie:/internet explorer/i,edge:/edge/i,opera:/opera/i},n="",r="";for(let d in t)if(t[d].test(e)){n=d;break}let s=new RegExp(`${n}/([0-9.]+)`,"i"),c=e.match(s);return c&&(r=c[1]),{browserName:n,version:r}}function T(){var d,h,p,l;let e=window.location.href,t=new URL(e),n=t.pathname.replace(/\/{2,}/g,"/").replace(/\/$/,"")||"/",r=window.document.referrer,{browserName:s,version:c}=V();return{userAgent:window.navigator.userAgent,userAgentVendor:window.navigator.vendor,browser:s,browser_version:c,locale:window.navigator.language,navigator:j(),screen:{width:window.screen.width,height:window.screen.height,innerWidth:window.innerWidth,innerHeight:window.innerHeight,density:Math.floor(window.devicePixelRatio)},network:{effectiveType:(d=window.navigator.connection)==null?void 0:d.effectiveType,downlink:(h=window.navigator.connection)==null?void 0:h.downlink,rtt:(p=window.navigator.connection)==null?void 0:p.rtt,saveData:(l=window.navigator.connection)==null?void 0:l.saveData},page:{path:n,referrer:r,referring_domain:r?new URL(r).hostname:void 0,host:t&&t.host,search:t&&t.search,title:window.document.title,url:e,encoding:window.document.characterSet}}}function j(){var n,r;let e=window.navigator,t;try{t=Intl.DateTimeFormat().resolvedOptions().timeZone}catch{t=void 0}return{webdriver:e.webdriver===!0,languages:e.languages?e.languages.slice(0,8):[],languagesCount:(r=(n=e.languages)==null?void 0:n.length)!=null?r:0,hardwareConcurrency:typeof e.hardwareConcurrency=="number"?e.hardwareConcurrency:null,deviceMemory:typeof e.deviceMemory=="number"?e.deviceMemory:null,timezone:t,colorDepth:typeof window.screen.colorDepth=="number"?window.screen.colorDepth:null,pixelRatio:typeof window.devicePixelRatio=="number"?window.devicePixelRatio:null,...L}}function K(e=""){let t=Date.now();return(Math.random()*t*P(e!=null?e:"",D())%Number.MAX_SAFE_INTEGER).toString(36)+(Math.random()*t*P(e!=null?e:"",D())%Number.MAX_SAFE_INTEGER).toString(36)}function D(){var t;let e=Date.now()%2147483647;return((t=window==null?void 0:window.performance)==null?void 0:t.now())||e}function P(e,t=0){let n=3735928559^t,r=1103547991^t;for(let s=0,c;s<e.length;
106s++)c=e.charCodeAt(s),n=Math.imul(n^c,2654435761),r=Math.imul(r^c,1597334677);return n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),4294967296*(2097151&r)+(n>>>0)}}typeof window!="undefined"&&E();})(); 107(()=>{(function(){let n=window.renderbetter.getLogger("RB Analytics Shopify Consent"),s="veto";n("Shopify consent script loaded"),t(0),window.addEventListener("load",()=>t(0)),document.addEventListener("DOMContentLoaded",()=>t(0)),document.addEventListener("visitorConsentCollected",e=>{n("Received 'visitorConsentCollected' event! Current consent preferences: ",e.detail),t(0)});function t(e){var d,i,a;if(e>15){n(`Failed to get Shopify consent state after ${e} retries`);return}n("Checking Shopify consent state. Try: ",e+1);let o=(a=(i=(d=window.Shopify)==null?void 0:d.customerPrivacy)==null?void 0:i.analyticsProcessingAllowed)==null?void 0:a.call(i);if(n("Shopify analytics consent state:",o),o!==void 0){n(`Shopify analytics consent state: ${o?"Granted":"Denied"} (mode: ${s})`),s==="veto"?window.renderbetter.setConsentVeto("shopify",!o):window.renderbetter.grantCookieConsent(o);return}else window.self===window.top&&setTimeout(()=>t(e+1),100*e*e)}})();})();
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.