PageSourceSearch

https://fortune.com/_next/static/chunks/2797.6d94d8685903e374.js

js fortune.com collected 2026-09-24 09:07:43 UTC 122,964 bytes, 52 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2797],{12797:(e,t,a)=>{"use strict";a.r(t),a.d(t,{DevDashOverlay:()=>tA});var s=a(95155),i=a(12115),n=a(62743),r=a(6803),o=a(29722);a(68041);var l=a(81855),c=a.n(l);let d={0:0,1:2,2:4,3:6,4:8,5:10,6:12,7:14,8:16,9:20,10:24,12:32,16:48,20:64},u={accent:c().badgeAccent,default:c().badgeDefault,error:c().badgeError,info:c().badgeInfo,success:c().badgeSuccess,warning:c().badgeWarning},m=({children:e,variant:t="default",size:a="sm"})=>(0,s.jsx)("span",{className:(0,o.A)(c().badge,"sm"===a?c().badgeSm:c().badgeMd,u[t]),children:e}),p=({children:e,padding:t=6,style:a})=>(0,s.jsx)("div",{className:c().card,style:{padding:d[t],...a},children:e}),h=({children:e,title:t,icon:a,action:i})=>(0,s.jsxs)("div",{className:c().section,children:[(0,s.jsxs)("h3",{className:c().sectionHeader,children:[(0,s.jsx)("span",{className:c().sectionAccent}),a&&(0,s.jsx)("span",{children:a}),t,i&&(0,s.jsx)("span",{className:c().sectionAction,children:i})]}),(0,s.jsx)("div",{className:c().sectionContent,children:e})]}),v=({tags:e,variant:t="info"})=>e&&0!==e.length?(0,s.jsx)("div",{className:c().tagList,children:e.map((e,a)=>(0,s.jsx)(m,{variant:t,children:e},a))}):(0,s.jsx)("span",{className:c().tagListEmpty,children:"None"}),_={danger:c().buttonDanger,default:c().buttonDefault,ghost:c().buttonGhost,primary:c().buttonPrimary},x={lg:c().buttonLg,md:c().buttonMd,sm:c().buttonSm},g=({children:e,variant:t="default",size:a="md",onClick:i,disabled:n,style:r,title:l,type:d="button"})=>(0,s.jsx)("button",{className:(0,o.A)(c().button,_[t],x[a]),disabled:n,onClick:i,style:r,title:l,type:d,children:e});c().iconButtonLg,c().iconButtonMd,c().iconButtonSm;let f=()=>(0,s.jsxs)("svg",{"aria-label":"Copy",fill:"none",height:"12",role:"img",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"12",children:[(0,s.jsx)("title",{children:"Copy"}),(0,s.jsx)("rect",{height:"13",rx:"2",ry:"2",width:"13",x:"9",y:"9"}),(0,s.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),b=()=>(0,s.jsxs)("svg",{"aria-label":"Search",fill:"none",height:"14",role:"img",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"14",children:[(0,s.jsx)("title",{children:"Search"}),(0,s.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,s.jsx)("path",{d:"m21 21-4.35-4.35"})]}),y=({label:e,value:t,copyValue:a})=>{let[n,r]=(0,i.useState)(!1),l=async()=>{let e=a||("string"==typeof t?t:String(t));try{await navigator.clipboard.writeText(e),r(!0),setTimeout(()=>r(!1),1500)}catch{}};return(0,s.jsxs)("div",{className:c().kvRow,children:[(0,s.jsx)("div",{className:c().kvRowLabel,children:e}),(0,s.jsxs)("div",{className:c().kvRowValue,children:[(0,s.jsx)("span",{className:c().kvRowValueText,children:t||(0,s.jsx)("span",{className:c().kvRowEmpty,children:"Not set"})}),(a||"string"==typeof t||"number"==typeof t)&&(0,s.jsx)("button",{className:(0,o.A)(c().kvRowCopyBtn,n?c().kvRowCopySuccess:c().kvRowCopyDefault),onClick:l,title:n?"Copied!":"Copy to clipboard",type:"button",children:n?"✓":(0,s.jsx)(f,{})})]})]})};c().statusDotOffline,c().statusDotOnline,c().statusDotUnknown,c().statusDotWarning;let j=({icon:e="\uD83D\uDCED",title:t,description:a})=>(0,s.jsxs)("div",{className:c().emptyState,children:[(0,s.jsx)("span",{className:c().emptyStateIcon,children:e}),(0,s.jsx)("span",{className:c().emptyStateTitle,children:t}),a&&(0,s.jsx)("span",{className:c().emptyStateDesc,children:a})]});c().grid1,c().grid2,c().grid3;let w=({children:e,direction:t="column",gap:a=4,align:i,justify:n,wrap:r,style:l})=>(0,s.jsx)("div",{className:(0,o.A)(c().stack,"row"===t?c().stackRow:c().stackColumn,r&&c().stackWrap),style:{alignItems:i,gap:d[a],justifyContent:n,...l},children:e}),N={accent:c().textAccent,error:c().textError,muted:c().textMuted,primary:c().textPrimary,secondary:c().textSecondary,success:c().textSuccess,warning:c().textWarning},S={"2xl":c().text2xl,"2xs":c().text2xs,"3xl":c().text3xl,"4xl":c().text4xl,"5xl":c().text5xl,base:c().textBase,lg:c().textLg,md:c().textMd,sm:c().textSm,xl:c().textXl,xs:c().textXs},C={bold:c().fontBold,medium:c().fontMedium,normal:c().fontNormal,semibold:c().fontSemibold},k=({children:e,size:t="sm",color:a="primary",weight:i="normal",mono:n,truncate:r,style:l})=>(0,s.jsx)("span",{className:(0,o.A)(S[t],N[a],C[i],n&&c().textMono,r&&c().textTruncate),style:l,children:e});var B=a(39528),T=a.n(B);function $(){if("u"<typeof document)return[];let e=[],t=new Set,a=new Set;return document.querySelectorAll('[id^="div-gpt-ad"]').forEach(s=>{let i=s.id;if(!i||t.has(i))return;let n=s.clientWidth,r=s.clientHeight;if(n<10&&r<10)return;let o=s.getBoundingClientRect(),l=`${Math.round(o.left)},${Math.round(o.top)},${n},${r}`;if(a.has(l))return;t.add(i),a.add(l);let c=s.querySelector("iframe")||s.children.length>0;e.push({height:r,id:i,size:`${n}x${r}`,status:c?"loaded":"pending",width:n})}),document.querySelectorAll(".ad-slot, [data-google-query-id]").forEach((s,i)=>{let n=s.id||`ad-slot-${i}`;if(t.has(n)||s.closest('[id^="div-gpt-ad"]'))return;let r=s.clientWidth,o=s.clientHeight;if(r<10&&o<10)return;let l=s.getBoundingClientRect(),c=`${Math.round(l.left)},${Math.round(l.top)},${r},${o}`;if(a.has(c))return;t.add(n),a.add(c);let d=s.querySelector("iframe")||s.children.length>0;e.push({height:o,id:n,size:`${r}x${o}`,status:d?"loaded":"pending",width:r})}),e.sort((e,t)=>
1{let a=document.getElementById(e.id),s=document.getElementById(t.id);return a&&s?a.getBoundingClientRect().top-s.getBoundingClientRect().top:0})}let A=()=>{let e=(0,i.useContext)(r.rO),[t,a]=(0,i.useState)([]),[n,o]=(0,i.useState)(null);(0,i.useEffect)(()=>{a($());let e=setInterval(()=>{a($())},5e3);return()=>clearInterval(e)},[]);let l=e?.disableAds??!1,c=e?.adBlockActive??!1,d=e?.pageHasVideo??!1,u=e?.pageSponsor;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:T().sectionHeader,children:[(0,s.jsxs)("h2",{className:`${T().sectionTitle} ${T().sectionTitleLarge}`,children:[(0,s.jsx)("span",{className:`${T().accentBar} ${T().accentBarLarge}`}),"Advertising"]}),(0,s.jsx)(m,{variant:l?"error":"success",children:l?"Ads Disabled":"Ads Enabled"})]}),(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid2} ${T().marginBottom12}`,style:{gap:12},children:[(0,s.jsxs)("div",{className:T().adStatusCard,children:[(0,s.jsx)("div",{className:T().adStatusLabel,children:"Ad Blocker"}),(0,s.jsx)("div",{className:`${T().adStatusValue} ${c?T().adStatusValueError:T().adStatusValueSuccess}`,children:c?"\uD83D\uDEAB Detected":"✅ Not Detected"})]}),(0,s.jsxs)("div",{className:T().adStatusCard,children:[(0,s.jsx)("div",{className:T().adStatusLabel,children:"Video Ads"}),(0,s.jsx)("div",{className:`${T().adStatusValue} ${T().adStatusValueDefault}`,children:d?"\uD83D\uDCF9 Enabled":"⚪ Disabled"})]})]}),u&&(0,s.jsxs)("div",{className:T().sponsorCard,children:[(0,s.jsx)("h3",{className:T().sponsorTitle,children:"Page Sponsor"}),(0,s.jsx)("div",{className:T().sponsorValue,children:u})]}),(0,s.jsx)("div",{className:T().marginBottom12,children:(0,s.jsxs)("h3",{className:T().subsectionTitle,style:{marginBottom:12},children:["Live Ad Slots (",t.length,")"]})}),0===t.length&&(0,s.jsxs)("div",{className:T().emptyState,children:[(0,s.jsx)("span",{className:T().emptyStateIcon,children:"\uD83D\uDCFA"}),(0,s.jsx)("span",{className:T().emptyStateTitle,children:"No ad slots detected"}),(0,s.jsx)("span",{className:T().emptyStateSubtitle,children:"Slots will appear as ads load"})]}),t.length>0&&(0,s.jsx)("div",{className:`${T().listContainer} ${T().listContainerSmall}`,children:t.map(e=>{var t;return(0,s.jsxs)("div",{className:T().adSlotCard,children:[(0,s.jsxs)("div",{className:T().adSlotHeader,children:[(0,s.jsx)("code",{className:T().adSlotId,children:e.id}),(0,s.jsx)(m,{variant:"loaded"===(t=e.status)?"success":"error"===t?"error":"default",children:e.status})]}),(0,s.jsxs)("div",{className:T().adSlotInfo,children:["Size: ",(0,s.jsx)("span",{className:T().adSlotInfoValue,children:e.size})]}),e.advertiser&&(0,s.jsxs)("div",{className:`${T().adSlotInfo} ${T().marginTop8}`,children:["Advertiser: ",(0,s.jsx)("span",{className:T().adSlotInfoValue,children:e.advertiser})]}),(0,s.jsx)("button",{className:T().showOnPageButton,onClick:()=>{let t=document.getElementById(e.id);t&&(t.scrollIntoView({behavior:"smooth",block:"center"}),t.style.outline="3px solid #6366f1",setTimeout(()=>{t.style.outline=""},2e3))},type:"button",children:"\uD83D\uDC41️ Show on Page"})]},e.id)})})]})},L=["cache-control","age","etag","last-modified","expires","vary","x-cache","x-cache-hit","x-cache-status","cf-cache-status","x-vercel-cache","x-vercel-id","x-nextjs-cache","x-amz-cf-id","x-amz-cf-pop","x-served-by","x-timer","x-fastly-request-id","x-akamai-transformed","date","server"];function I(e){if(!e)return"unknown";let t=e.toUpperCase();return"HIT"===t||t.includes("HIT")?"hit":"MISS"===t||t.includes("MISS")?"miss":"STALE"===t||t.includes("STALE")?"stale":"BYPASS"===t||t.includes("BYPASS")?"bypass":"DYNAMIC"===t||t.includes("DYNAMIC")?"dynamic":"unknown"}let R=({status:e})=>(0,s.jsx)(m,{variant:{bypass:"warning",dynamic:"info",hit:"success",miss:"error",stale:"warning",unknown:"default"}[e],children:{bypass:"BYPASS",dynamic:"DYNAMIC",hit:"HIT",miss:"MISS",stale:"STALE",unknown:"UNKNOWN"}[e]}),D=e=>{if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,t)).toFixed(2))} ${["B","KB","MB","GB"][t]}`},E=e=>{if(e<60)return`${e}s`;if(e<3600)return`${Math.floor(e/60)}m ${e%60}s`;let t=Math.floor(e/3600),a=Math.floor(e%3600/60);return`${t}h ${a}m`},P=({percentageUsed:e,remainingTtl:t})=>{let a=e>80,i=e>=100;return(0,s.jsxs)("div",{className:T().ttlProgressContainer,children:[(0,s.jsx)("div",{className:T().ttlProgressBar,children:(0,s.jsx)("div",{className:`${T().ttlProgressFill} ${i?T().ttlExpired:a?T().ttlExpiring:T().ttlFresh}`,style:{width:`${Math.min(100,e)}%`}})}),(0,s.jsxs)("div",{className:T().ttlLabels,children:[(0,s.jsxs)("span",{className:T().ttlUsed,children:[e,"% used"]}),(0,s.jsx)("span",{className:T().ttlRemaining,children:i?"Expired":`${E(t)} remaining`})]})]})},M=()=>{let{cacheInfo:e,isLoading:t,error:a,refetch:n,lastFetchedAt:r}=function(){let[e,t]=(0,i.useState)(null),[a,s]=(0,i.useState)(!1),[n,r]=(0,i.useState)(null),[o,l]=(0,i.useState)(null),c=(0,i.useCallback)(async()=>{s(!0),r(null);try{var e,a,i;let s,n,r,o=await fetch(window.location.href,{cache:"no-store",method:"HEAD"}),c={};
1for(let e of L){let t=o.headers.get(e);t&&(c[e]=t)}let d=o.headers.get("cache-control"),u=function(e){if(!e)return{};let t={};for(let a of e.toLowerCase().split(",").map(e=>e.trim()))a.startsWith("max-age=")?t.maxAge=parseInt(a.split("=")[1],10):a.startsWith("s-maxage=")?t.sMaxAge=parseInt(a.split("=")[1],10):a.startsWith("stale-while-revalidate=")?t.staleWhileRevalidate=parseInt(a.split("=")[1],10):a.startsWith("stale-if-error=")?t.staleIfError=parseInt(a.split("=")[1],10):"no-cache"===a?t.noCache=!0:"no-store"===a?t.noStore=!0:"must-revalidate"===a?t.mustRevalidate=!0:"private"===a?t.private=!0:"public"===a?t.public=!0:"immutable"===a&&(t.immutable=!0);return t}(d),m=o.headers.get("age"),p=m?parseInt(m,10):void 0,h=u.sMaxAge??u.maxAge,v=h&&void 0!==p?Math.min(100,Math.round(p/h*100)):void 0,_=c["x-vercel-cache"]||c["x-vercel-id"]?"vercel":c["cf-cache-status"]||c["cf-ray"]?"cloudflare":c["x-amz-cf-id"]||c["x-amz-cf-pop"]?"cloudfront":c["x-fastly-request-id"]||c["x-served-by"]?.includes("cache-")?"fastly":c["x-akamai-transformed"]?"akamai":"unknown",x=function(e,t){switch(t){case"vercel":return I(e["x-vercel-cache"]);case"cloudflare":return I(e["cf-cache-status"]);case"cloudfront":case"fastly":return I(e["x-cache"]);default:return I(e["x-cache"]||e["x-cache-status"])}}(c,_);if("vercel"===_){let e=c["x-vercel-id"];if(e){let t=e.split("::");t.length>0&&(n=t[0])}}else"cloudfront"===_&&(n=c["x-amz-cf-pop"]);let g=(r=I(c["x-nextjs-cache"]),{isISR:"hit"===r||"stale"===r,status:r}),f=function(){if(window.performance)try{let e=performance.getEntriesByType("navigation");if(0===e.length)return;let t=e[0],a=0===t.transferSize&&t.encodedBodySize>0;return{decodedBodySize:t.decodedBodySize,duration:Math.round(t.duration),encodedBodySize:t.encodedBodySize,transferSize:t.transferSize,ttfb:Math.round(t.responseStart-t.startTime),wasCached:a}}catch{return}}(),b="unknown";"unknown"!==x?b=x:"unknown"!==g.status?b=g.status:f?.wasCached&&(b="hit");let y=o.headers.get("date"),j=y?new Date(y):void 0,w={pop:n,provider:_,region:s,status:x},N={age:p,allHeaders:c,cacheControl:d||void 0,cdn:w,directives:u,etag:o.headers.get("etag")||void 0,expires:o.headers.get("expires")||void 0,fetchedAt:new Date,lastModified:o.headers.get("last-modified")||void 0,nextjs:g,percentageUsed:v,performance:f,remainingTtl:h&&void 0!==p?h-p:void 0,serverDate:j,status:b,statusLabel:(e=b,a=w,i=g,"hit"===e?i.isISR?"ISR Cache Hit":"unknown"!==a.provider?`${a.provider.charAt(0).toUpperCase()+a.provider.slice(1)} Cache Hit`:"Cache Hit":"stale"===e?"Stale (Revalidating)":"miss"===e?"Cache Miss":"bypass"===e?"Cache Bypassed":"dynamic"===e?"Dynamic (No Cache)":"Unknown"),vary:o.headers.get("vary")||void 0};t(N),l(new Date)}catch(e){r(e instanceof Error?e.message:"Failed to fetch cache info")}finally{s(!1)}},[]);return(0,i.useEffect)(()=>{c()},[c]),{cacheInfo:e,error:n,isLoading:a,lastFetchedAt:o,refetch:c}}(),[o,l]=(0,i.useState)(!1),[c,d]=(0,i.useState)(!1),u=async()=>{if(!e)return;let t=["=== DevDash Cache Report ===","",`URL: ${window.location.href}`,`Status: ${e.statusLabel}`,`Fetched: ${e.fetchedAt.toISOString()}`,"","--- Cache Headers ---",e.cacheControl?`Cache-Control: ${e.cacheControl}`:null,void 0!==e.age?`Age: ${e.age}s`:null,e.etag?`ETag: ${e.etag}`:null,e.lastModified?`Last-Modified: ${e.lastModified}`:null,e.expires?`Expires: ${e.expires}`:null,e.vary?`Vary: ${e.vary}`:null,"","--- CDN ---",`Provider: ${e.cdn.provider}`,`Status: ${e.cdn.status}`,e.cdn.pop?`POP: ${e.cdn.pop}`:null,"","--- Next.js ---",`Status: ${e.nextjs.status}`,`ISR: ${e.nextjs.isISR?"Yes":"No"}`,"","--- All Headers ---",...Object.entries(e.allHeaders).map(([e,t])=>`${e}: ${t}`)].filter(Boolean).join("\n");try{await navigator.clipboard.writeText(t),l(!0),setTimeout(()=>l(!1),2e3)}catch{}};if(t&&!e)return(0,s.jsxs)("div",{className:T().loadingState,children:[(0,s.jsx)("span",{className:T().loadingSpinner,children:"⏳"}),(0,s.jsx)("span",{children:"Fetching cache headers..."})]});if(a)return(0,s.jsxs)("div",{className:T().errorState,children:[(0,s.jsx)("span",{className:T().errorIcon,children:"⚠️"}),(0,s.jsx)("span",{className:T().errorMessage,children:a}),(0,s.jsx)("button",{className:T().retryButton,onClick:n,type:"button",children:"Retry"})]});if(!e)return(0,s.jsx)("div",{className:T().emptyState,children:(0,s.jsx)("span",{children:"No cache information available"})});let{directives:p,cdn:h,nextjs:v,performance:_}=e,x=p.sMaxAge??p.maxAge;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:T().sectionHeader,children:[(0,s.jsxs)("h2",{className:T().sectionTitle,children:[(0,s.jsx)("span",{className:T().accentBar}),"Cache Status"]}),(0,s.jsxs)("div",{className:T().headerActions,children:[(0,s.jsx)("button",{className:T().refreshButton,disabled:t,onClick:n,title:"Refetch cache headers",type:"button",children:t?"⏳":"\uD83D\uDD04"}),(0,s.jsx)("button",{className:`${T().copyAllButton} ${o?T().copyAllButtonCopied:""}`,onClick:u,type:"button",children:o?"✓ Copied!":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f,{})," Copy All"]})})]})]}),(0,s.jsx)("div",{className:T().sectionBlock,children:(0,s.jsxs)("div",{className:T().cacheStatusCard,children:[(0,s.jsxs)("div",{className:T().cacheStatusMain,children:[(0,s.jsx)(R,{status:e.status}),(0,s.jsx)("span",{className:T().cacheStatusLabel,children:e.statusLabel})]}),r&&(0,s.jsxs)("div",{className:T().cacheStatusMeta,children:["Checked ",r.toLocaleTimeString()]})]})}),void 0!==e.percentageUsed&&void 0!==e.remainingTtl&&(0,s.jsxs)("div",{className:T().sectionBlock,children:[(0,s.jsxs)("h3",{className:T().subsectionTitle,children:[(0,s.jsx)("span",{className:T().subsectionAccentBar}),"Cache TTL"]}),(0,s.jsxs)("div",{className:T().infoBox,children:[(0,s.jsx)(P,{percentageUsed:e.percentageUsed,remainingTtl:e.remainingTtl}),(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid3} ${T().marginTop12}`,children:[void 0!==e.age&&(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxSmall}`,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Age"}),(0,s.jsx)("div",{className:T().statValue,children:E(e.age)})]}),void 0!==x&&(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxSmall}`,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Max Age"}),(0,s.jsx)("div",{className:T().statValue,children:E(x)})]}),void 0!==p.staleWhileRevalidate&&(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxSmall}`,children:[(0,s.jsx)("div",{className:T().statLabel,children:"SWR"}),(0,s.jsx)("div",{className:T().statValueSecondary,children:E(p.staleWhileRevalidate)})]})]})]})]}),(0,s.jsxs)("div",{className:T().sectionBlock,children:[(0,s.jsxs)("h3",{className:T().subsectionTitle,children:[(0,s.jsx)("span",{className:T().subsectionAccentBar}),"CDN"]}),(0,s.jsxs)("div",{className:T().infoBox,children:[(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid2} ${T().marginBottom12}`,children:[(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Provider"}),(0,s.jsx)("div",{className:T().statValue,children:"unknown"===h.provider?"Not Detected":h.provider.charAt(0).toUpperCase()+h.provider.slice(1)})]}),(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Status"}),(0,s.jsx)(R,{status:h.status})]})]}),h.pop&&(0,s.jsx)(y,{label:"Edge Location (POP)",value:h.pop})]})]}),(0,s.jsxs)("div",{className:T().sectionBlock,children:[(0,s.jsxs)("h3",{className:T().subsectionTitle,children:[(0,s.jsx)("span",{className:T().subsectionAccentBar}),"Next.js"]}),(0,s.jsx)("div",{className:T().infoBox,children:(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid2}`,children:[(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Cache Status"}),(0,s.jsx)(R,{status:v.status})]}),(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"ISR Active"}),(0,s.jsx)(m,{variant:v.isISR?"success":"default",children:v.isISR?"Yes":"No"})]})]})})]}),_&&(0,s.jsxs)("div",{className:T().sectionBlock,children:[(0,s.jsxs)("h3",{className:T().subsectionTitle,children:[(0,s.jsx)("span",{className:T().subsectionAccentBar}),"Performance"]}),(0,s.jsxs)("div",{className:T().infoBox,children:[(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid2} ${T().marginBottom12}`,children:[(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"TTFB"}),(0,s.jsxs)("div",{className:T().statValueSuccess,children:[_.ttfb,"ms"]})]}),(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Browser Cache"}),(0,s.jsx)(m,{variant:_.wasCached?"success":"default",children:_.wasCached?"Hit":"Miss"})]})]}),(0,s.jsx)(y,{label:"Transfer Size",value:0===_.transferSize?"0 B (from cache)":D(_.transferSize)}),(0,s.jsx)(y,{label:"Decoded Size",value:D(_.decodedBodySize)}),(0,s.jsx)(y,{label:"Load Duration",value:`${_.duration}ms`})]})]}),e.cacheControl&&(0,s.jsxs)("div",{className:T().sectionBlock,children:[(0,s.jsxs)("h3",{className:T().subsectionTitle,children:[(0,s.jsx)("span",{className:T().subsectionAccentBar}),"Cache-Control"]}),(0,s.jsxs)("div",{className:T().infoBox,children:[(0,s.jsx)("div",{className:T().cacheControlRaw,children:(0,s.jsx)("code",{children:e.cacheControl})}),(0,s.jsxs)("div",{className:`${T().badgeRow} ${T().marginTop12}`,children:[p.public&&(0,s.jsx)(m,{variant:"info",children:"public"}),p.private&&(0,s.jsx)(m,{variant:"warning",children:"private"}),p.noCache&&(0,s.jsx)(m,{variant:"error",children:"no-cache"}),p.noStore&&(0,s.jsx)(m,{variant:"error",children:"no-store"}),p.mustRevalidate&&(0,s.jsx)(m,{variant:"warning",children:"must-revalidate"}),p.immutable&&(0,s.jsx)(m,{variant:"success",children:"immutable"})]})]})]}),(0,s.jsxs)("div",{className:T().sectionBlock,children:[(0,s.jsxs)("h3",{className:T().subsectionTitle,children:[(0,s.jsx)("span",{className:T().subsectionAccentBar}),"Validation Headers"]}),(0,s.jsxs)("div",{className:T().infoBox,children:[e.etag&&(0,s.jsx)(y,{label:"ETag",value:e.etag}),e.lastModified&&(0,s.jsx)(y,{label:"Last-Modified",value:e.lastModified}),e.vary&&(0,s.jsx)(y,{label:"Vary",value:e.vary}),e.expires&&(0,s.jsx)(y,{label:"Expires",value:e.expires}),!e.etag&&!e.lastModified&&!e.vary&&!e.expires&&(0,s.jsx)("div",{className:T().emptyStateSmall,children:"No validation headers present"})]})]}),(0,s.jsxs)("div",{className:T().sectionBlock,children:[(0,s.jsxs)("button",{className:T().collapsibleHeader,onClick:()=>d(!c),type:"button",children:[(0,s.jsxs)("h3",{className:T().subsectionTitle,children:[(0,s.jsx)("span",{className:T().subsectionAccentBar}),"All Cache Headers",(0,s.jsxs)("span",{className:T().collapsibleCount,children:["(",Object.keys(e.allHeaders).length,")"]})]}),(0,s.jsx)("span",{className:T().collapsibleIcon,children:c?"▼":"▶"})]}),c&&(0,s.jsx)("div",{className:T().infoBox,children:Object.entries(e.allHeaders).map(([e,t])=>(0,s.jsx)(y,{label:e,value:t},e))})]})]})},O={ads:{icon:"\uD83D\uDCE2",label:"Ads",variant:"error"},analytics:{icon:"\uD83D\uDCCA",label:"Analytics",variant:"warning"},auth:{icon:"\uD83D\uDD11",label:"Auth",variant:"info"},consent:{icon:"✅",label:"Consent",variant:"success"},optimizely:{icon:"\uD83E\uDDEA",label:"Optimizely",variant:"info"},other:{icon:"\uD83D\uDCC1",label:"Other",variant:"default"},session:{icon:"\uD83D\uDD04",label:"Session",variant:"default"}},V={default:T().cookieCardBorderDefault,error:T().cookieCardBorderError,info:T().cookieCardBorderInfo,success:T().cookieCardBorderSuccess,warning:T().cookieCardBorderWarning},z={__cf_bm:"Cloudflare bot management",__cfruid:"Cloudflare request identifier",__gads:"Google advertising cookie",__gpi:"Google Publisher Interests",__piat:"Piano access token",__piltc:"Piano login time cookie",__pisr:"Piano subscriber status",__rutma:"Piano user tracking",__rutmb:"Piano session tracking",__rutmc:"Piano campaign tracking",__rutmz:"Piano traffic source",__tbc:"Piano browser cookie",_csrf:"CSRF protection token",_fbc:"Facebook click ID",_fbp:"Facebook Pixel browser ID",_ga:"Google Analytics client ID",_gac_:"Google Ads campaign info",_gat:"Google Analytics throttle",_gcl_au:"Google Ads conversion linker",_gid:"Google Analytics session ID",addtl_consent:"Additional consent string (Google)",cf_clearance:"Cloudflare browser check",cto_bidid:"Criteo bid ID",cto_bundle:"Criteo advertising bundle",DSID:"DoubleClick advertiser ID","euconsent-v2":"TCF v2 consent string (GDPR)",IDE:"Google DoubleClick advertiser ID",JSESSIONID:"Java session ID",lotcc:"Lotame cross-domain cookie",OptanonAlertBoxClosed:"OneTrust banner dismissed",OptanonConsent:"OneTrust consent preferences",optimizelyBuckets:"Optimizely experiment buckets",optimizelyEndUserId:"Optimizely user ID",optimizelySegments:"Optimizely audience segments",PHPSESSID:"PHP session ID",xp_anon_id:"Experience platform anonymous ID",xp_id:"E
1xperience platform user ID"},W=()=>{let[e,t]=(0,i.useState)([]),[a,n]=(0,i.useState)(""),[r,o]=(0,i.useState)(null),[l,c]=(0,i.useState)("all"),[d,u]=(0,i.useState)(null),[p,h]=(0,i.useState)(null),[v,_]=(0,i.useState)(null),[x,g]=(0,i.useState)(""),[b,y]=(0,i.useState)(!1),[j,w]=(0,i.useState)("pr-preview"),[N,S]=(0,i.useState)(""),[C,k]=(0,i.useState)(""),[B,$]=(0,i.useState)(""),A=(0,i.useCallback)(()=>{t("u"<typeof document?[]:document.cookie.split(";").filter(Boolean).map(e=>{let[t,...a]=e.trim().split("="),s=t.trim(),{category:i,description:n}=function(e){let t=e.toLowerCase();if(z[e]){if(e.startsWith("__pi")||e.startsWith("__ru")||e.includes("xp_"))return{category:"auth",description:z[e]};if(e.includes("OptanonConsent")||e.includes("euconsent")||e.includes("consent"))return{category:"consent",description:z[e]};if(e.startsWith("_ga")||e.startsWith("_fb")||e.startsWith("_gcl"))return{category:"analytics",description:z[e]};if(e.startsWith("__gads")||e.startsWith("__gpi")||e.includes("cto_")||"IDE"===e||"DSID"===e)return{category:"ads",description:z[e]};if(e.includes("optimizely"))return{category:"optimizely",description:z[e]};if(e.includes("SESSION")||e.includes("csrf")||e.startsWith("__cf"))return{category:"session",description:z[e]}}return t.includes("consent")||t.includes("gdpr")||t.includes("ccpa")||t.includes("optanon")||t.includes("euconsent")?{category:"consent"}:t.includes("piano")||t.includes("auth")||t.includes("login")||t.includes("user")||t.startsWith("__pi")||t.startsWith("__ru")||t.includes("xp_")?{category:"auth"}:t.startsWith("_ga")||t.startsWith("_gid")||t.startsWith("_gat")||t.includes("gtm")||t.startsWith("_fb")||t.includes("analytics")?{category:"analytics"}:t.includes("gads")||t.includes("gpi")||t.includes("criteo")||t.includes("cto_")||t.includes("lotame")||t.includes("ad_")||"ide"===t||"dsid"===t?{category:"ads"}:t.includes("optimizely")?{category:"optimizely"}:t.includes("session")||t.includes("csrf")||t.startsWith("__cf")||t.includes("jsessionid")||t.includes("phpsessid")?{category:"session"}:{category:"other"}}(s);return{category:i,description:n,name:s,value:a.join("=")}}))},[]);(0,i.useEffect)(()=>{A()},[A]);let L=e.reduce((e,t)=>(e[t.category]=(e[t.category]||0)+1,e),{}),I=e.filter(e=>{let t=e.name.toLowerCase().includes(a.toLowerCase())||e.value.toLowerCase().includes(a.toLowerCase()),s="all"===l||e.category===l;return t&&s}),R=async(e,t)=>{try{await navigator.clipboard.writeText(`${e}=${t}`),u(e),setTimeout(()=>u(null),2e3)}catch(e){}},D=()=>{_(null),g("")},E=e=>{if("u"<typeof document)return;let t=new Date;t.setTime(t.getTime()+31536e6);let a=t.toUTCString();document.cookie=`${e}=${x}; expires=${a}; path=/`,_(null),g(""),A()},P=()=>{let e,t;if("u"<typeof document)return;if("pr-preview"===j){if(!N||1>Number.parseInt(N,10))return;e="__prEnvUpstream",t=`develop-pr-${N}-fortune-frontend`}else{if(!C.trim())return;e=C.trim(),t=B}let a=new Date;a.setTime(a.getTime()+31536e6);let s=a.toUTCString();document.cookie=`${e}=${t}; expires=${s}; path=/`,y(!1),S(""),k(""),$(""),A()},M=()=>{y(!1),S(""),k(""),$("")},W=async()=>{let t=["=== Cookie Report ===",`Generated: ${new Date().toISOString()}`,`Total Cookies: ${e.length}`,""],a={ads:[],analytics:[],auth:[],consent:[],optimizely:[],other:[],session:[]};e.forEach(e=>{a[e.category].push(e)}),Object.entries(a).forEach(([e,a])=>{if(a.length>0){let s=O[e];t.push(`--- ${s.icon} ${s.label} (${a.length}) ---`),a.forEach(e=>{t.push(`${e.name}=${e.value}`),e.description&&t.push(`  ↳ ${e.description}`)}),t.push("")}});try{await navigator.clipboard.writeText(t.join("\n"))}catch(e){}};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:T().sectionHeader,children:[(0,s.jsxs)("h2",{className:`${T().sectionTitle} ${T().sectionTitleLarge}`,children:[(0,s.jsx)("span",{className:`${T().accentBar} ${T().accentBarLarge}`}),"Browser Cookies"]}),(0,s.jsxs)("div",{className:`${T().flexRow} ${T().flexRowGap8}`,children:[(0,s.jsx)("button",{className:`${T().smallButton} ${T().addButton}`,onClick:()=>y(!b),title:"Add new cookie",type:"button",children:"➕ Add"}),(0,s.jsx)("button",{className:T().smallButton,onClick:A,title:"Refresh cookies",type:"button",children:"\uD83D\uDD04 Refresh"}),(0,s.jsxs)("button",{className:T().smallButton,onClick:W,title:"Copy all cookies",type:"button",children:[(0,s.jsx)(f,{})," Copy All"]})]})]}),b&&(0,s.jsxs)("div",{className:T().addCookieForm,children:[(0,s.jsxs)("div",{className:T().addCookieHeader,children:[(0,s.jsx)("span",{className:T().addCookieTitle,children:"Add Cookie"}),(0,s.jsxs)("div",{className:T().addCookieTabs,children:[(0,s.jsx)("button",{className:`${T().addCookieTab} ${"pr-preview"===j?T().addCookieTabActive:""}`,onClick:()=>w("pr-preview"),type:"button",children:"\uD83D\uDD00 PR Preview"}),(0,s.jsx)("button",{className:`${T().addCookieTab} ${"custom"===j?T().addCookieTabActive:""}`,onClick:()=>w("custom"),type:"button",children:"⚙️ Custom"})]})]}),"pr-preview"===j?(0,s.jsxs)("div",{className:T().addCookieBody,children:[(0,s.jsxs)("div",{className:T().addCookieField,children:[(0,s.jsx)("label",{className:T().addCookieLabel,children:"PR Number"}),(0,s.jsx)("input",{autoFocus:!0,className:T().addCookieInput,onChange:e=>S(e.target.value),onKeyDown:e=>{"Enter"===e.key&&P(),"Escape"===e.key&&M()},placeholder:"e.g., 7691",type:"number",value:N})]}),N&&(0,s.jsxs)("div",{className:T().addCookiePreview,children:[(0,s.jsx)("span",{className:T().addCookiePreviewLabel,children:"Will set:"}),(0,s.jsxs)("code",{className:T().addCookiePreviewValue,children:["__prEnvUpstream=develop-pr-",N,"-fortune-frontend"]})]})]}):(0,s.jsxs)("div",{className:T().addCookieBody,children:[(0,s.jsxs)("div",{className:T().addCookieField,children:[(0,s.jsx)("label",{className:T().addCookieLabel,children:"Cookie Name"}),(0,s.jsx)("input",{autoFocus:!0,className:T().addCookieInput,onChange:e=>k(e.target.value),onKeyDown:e=>{"Escape"===e.key&&M()},placeholder:"cookie_name",type:"text",value:C})]}),(0,s.jsxs)("div",{className:T().addCookieField,children:[(0,s.jsx)("label",{className:T().addCookieLabel,children:"Cookie Value"}),(0,s.jsx)("textarea",{className:T().addCookieTextarea,onChange:e=>$(e.target.value),onKeyDown:e=>{"Escape"===e.key&&M(),"Enter"===e.key&&e.metaKey&&P()}
1,placeholder:"cookie_value",rows:2,value:B})]})]}),(0,s.jsxs)("div",{className:T().addCookieActions,children:[(0,s.jsx)("button",{className:T().cookieEditCancel,onClick:M,type:"button",children:"Cancel"}),(0,s.jsx)("button",{className:T().cookieEditSave,disabled:"pr-preview"===j?!N:!C.trim(),onClick:P,type:"button",children:"Add Cookie"})]})]}),(0,s.jsxs)("div",{className:T().categoryGrid,children:[(0,s.jsxs)("button",{className:`${T().categoryButton} ${"all"===l?T().categoryButtonActive:""}`,onClick:()=>c("all"),type:"button",children:[(0,s.jsx)("div",{className:T().categoryIcon,children:"\uD83D\uDCCB"}),(0,s.jsx)("div",{className:`${T().categoryCount} ${"all"===l?T().categoryCountActive:""}`,children:e.length}),(0,s.jsx)("div",{className:`${T().categoryLabel} ${"all"===l?T().categoryLabelActive:""}`,children:"All"})]}),Object.entries(O).slice(0,3).map(([e,t])=>{let a=l===e,i=L[e]||0;return(0,s.jsxs)("button",{className:`${T().categoryButton} ${a?T().categoryButtonActive:""} ${0===i?T().categoryButtonDisabled:""}`,onClick:()=>c(e),type:"button",children:[(0,s.jsx)("div",{className:T().categoryIcon,children:t.icon}),(0,s.jsx)("div",{className:`${T().categoryCount} ${a?T().categoryCountActive:""}`,children:i}),(0,s.jsx)("div",{className:`${T().categoryLabel} ${a?T().categoryLabelActive:""}`,children:t.label})]},e)})]}),(0,s.jsx)("div",{className:T().categoryGrid,children:Object.entries(O).slice(3).map(([e,t])=>{let a=l===e,i=L[e]||0;return(0,s.jsxs)("button",{className:`${T().categoryButton} ${a?T().categoryButtonActive:""} ${0===i?T().categoryButtonDisabled:""}`,onClick:()=>c(e),type:"button",children:[(0,s.jsx)("div",{className:T().categoryIcon,children:t.icon}),(0,s.jsx)("div",{className:`${T().categoryCount} ${a?T().categoryCountActive:""}`,children:i}),(0,s.jsx)("div",{className:`${T().categoryLabel} ${a?T().categoryLabelActive:""}`,children:t.label})]},e)})}),(0,s.jsx)("div",{className:T().searchContainer,children:(0,s.jsx)("input",{className:T().searchInputSimple,onChange:e=>n(e.target.value),placeholder:"Search cookies...",type:"text",value:a})}),0===I.length&&(0,s.jsxs)("div",{className:T().emptyState,children:[(0,s.jsx)("span",{className:T().emptyStateIcon,children:"\uD83C\uDF6A"}),(0,s.jsx)("span",{className:T().emptyStateTitle,children:a||"all"!==l?"No matching cookies":"No cookies found"})]}),I.length>0&&(0,s.jsx)("div",{className:`${T().listContainer} ${T().listContainerScrollable}`,children:I.map(e=>{let t=O[e.category],a=r===e.name,i=d===e.name,n=p===e.name,l=v===e.name,c=V[t.variant]||V.default;return(0,s.jsxs)("div",{className:`${T().cookieCard} ${c}`,children:[(0,s.jsxs)("div",{className:T().cookieCardHeader,children:[(0,s.jsxs)("div",{className:T().flexContent,children:[(0,s.jsx)("code",{className:T().cookieCardName,children:e.name}),e.description&&(0,s.jsx)("div",{className:T().cookieCardDesc,children:e.description})]}),(0,s.jsxs)("div",{className:T().cookieCardActions,children:[(0,s.jsxs)(m,{variant:t.variant,children:[t.icon," ",t.label]}),(0,s.jsx)("button",{className:`${T().copyButton} ${i?T().copyButtonCopied:""}`,onClick:()=>R(e.name,e.value),title:"Copy name=value",type:"button",children:i?"✓":(0,s.jsx)(f,{})}),(0,s.jsx)("button",{className:T().editButton,onClick:()=>{var t,a;return t=e.name,a=e.value,void(_(t),g(a))},title:"Edit cookie value",type:"button",children:"✏️"}),(0,s.jsx)("button",{className:`${T().deleteButton} ${n?T().deleteButtonFailed:""}`,onClick:()=>(e=>{if("u"<typeof document)return;h(null);let t=["/","",window.location.pathname],a="Thu, 01 Jan 1970 00:00:00 GMT";t.forEach(t=>{document.cookie=`${e}=; expires=${a}; path=${t}`,document.cookie=`${e}=; expires=${a}; path=${t}; domain=${window.location.hostname}`,document.cookie=`${e}=; expires=${a}; path=${t}; domain=`}),document.cookie.split(";").some(t=>t.trim().startsWith(`${e}=`))&&(h(e),setTimeout(()=>h(null),3e3)),A()})(e.name),title:n?"Failed to delete (path/domain mismatch)":"Delete cookie",type:"button",children:n?"⚠️":"\uD83D\uDDD1️"})]})]}),l?(0,s.jsxs)("div",{className:T().cookieEditForm,children:[(0,s.jsx)("textarea",{autoFocus:!0,className:T().cookieEditInput,onChange:e=>g(e.target.value),onKeyDown:t=>{"Escape"===t.key?D():"Enter"===t.key&&t.metaKey&&E(e.name)},placeholder:"Cookie value...",rows:3,value:x}),(0,s.jsxs)("div",{className:T().cookieEditActions,children:[(0,s.jsx)("button",{className:T().cookieEditCancel,onClick:D,type:"button",children:"Cancel"}),(0,s.jsx)("button",{className:T().cookieEditSave,onClick:()=>E(e.name),type:"button",children:"Save"})]}),(0,s.jsx)("div",{className:T().cookieEditHint,children:"Esc to cancel • ⌘+Enter to save"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:`${T().cookieCardValue} ${!a?T().cookieCardValueCollapsed:""}`,onClick:()=>o(a?null:e.name),children:e.value||(0,s.jsx)("em",{style:{fontStyle:"italic",opacity:.5},children:"(empty)"})}),e.value.length>50&&(0,s.jsx)("button",{className:T().cookieCardExpandButton,onClick:()=>o(a?null:e.name),type:"button",children:a?"▲ Show less":"▼ Show more"})]})]},e.name)})})]})};var G,U,H=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},F=function(e){if("loading"===document.readyState)return"loading";var t=H();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},K=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},q=function(e,t){var a="";try{for(;e&&9!==e.nodeType;){var s=e,i=s.id?"#"+s.id:K(s)+(s.classList&&s.classList.value&&s.classList.value.trim()&&s.classList.value.trim().length?"."+s.classList.value.trim().replace(/\s+/g,"."):"");if(a.length+i.length>(t||100)-1)return a||i;if(a=a?i+">"+a:i,s.id)break;e=s.parentNode}}catch(e){}return a},Y=-1,X=function(e){addEventListener("pageshow",function(t){t.persisted&&(Y=t.timeStamp,e(t))},!0)},J=function(){var e=H();return e&&e.activationStart||0},Z=function(e,t){var a=H(),s="navigate";return Y>=0?s="back-forward-cache":a&&(document.prerendering||J()>0?s="prerender":document.wasDiscarded?s="restore":a.type&&(s=a.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:s}},Q=function(e,t,a){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var s=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return s.observe(Object.assign({type:e,buffered:!0},a||{})),s}}catch(e){}},ee=function(e,t,a,s){var i,n;return function(r){var o;t.value>=0&&(r||s)&&((n=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=n,o=t.value,t.rating=o>a[1]?"poor":o>a[0]?"needs-improvement":"good",e(t))}},et=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},ea=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},es=function(e){var t=!1;return function(){t||(e(),t=!0)}},ei=-1,en=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},er=function(e){"hidden"===document.visibilityState&&ei>-1&&(ei="visibilitychange"===e.type?e.timeStamp:0,el())},eo=function(){addEventListener("visibilitychange",er,!0),addEventListener("prerenderingchange",er,!0)},el=function(){removeEventListener("visibilitychange",er,!0),removeEventListener("prerenderingchange",er,!0)},ec=function(){return ei<0&&(ei=en(),eo(),X(function(){setTimeout(function(){ei=en(),eo()},0)})),{get firstHiddenTime(){return ei}}},ed=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},eu=[1800,3e3],em=function(e,t){t=t||{},ed(function(){var a,s=ec(),i=Z("FCP"),n=Q("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(n.disconnect(),e.startTime<s.firstHiddenTime&&(i.value=Math.max(e.startTime-J(),0),i.entries.push(e),a(!0)))})});n&&(a=ee(e,i,eu,t.reportAllChanges),X(function(s){a=ee(e,i=Z("FCP"),eu,t.reportAllChanges),et(function(){i.value=performance.now()-s.timeStamp,a(!0)})}))})},ep=[.1,.25],eh=function(e,t){var a,s;a=function(t){e(function(e){var t,a={};if(e.entries.length){var s=e.entries.reduce(function(e,t){return e&&e.value>t.value?e:t});if(s&&s.sources&&s.sources.length){var i=(t=s.sources).find(function(e){return e.no
1de&&1===e.node.nodeType})||t[0];i&&(a={largestShiftTarget:q(i.node),largestShiftTime:s.startTime,largestShiftValue:s.value,largestShiftSource:i,largestShiftEntry:s,loadState:F(s.startTime)})}}return Object.assign(e,{attribution:a})}(t))},s=(s=t)||{},em(es(function(){var e,t=Z("CLS",0),i=0,n=[],r=function(a){a.forEach(function(e){if(!e.hadRecentInput){var t=n[0],a=n[n.length-1];i&&e.startTime-a.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,n.push(e)):(i=e.value,n=[e])}}),i>t.value&&(t.value=i,t.entries=n,e())},o=Q("layout-shift",r);o&&(e=ee(a,t,ep,s.reportAllChanges),ea(function(){r(o.takeRecords()),e(!0)}),X(function(){i=0,e=ee(a,t=Z("CLS",0),ep,s.reportAllChanges),et(function(){return e()})}),setTimeout(e,0))}))},ev=0,e_=1/0,ex=0,eg=function(e){e.forEach(function(e){e.interactionId&&(e_=Math.min(e_,e.interactionId),ev=(ex=Math.max(ex,e.interactionId))?(ex-e_)/7+1:0)})},ef=function(){return G?ev:performance.interactionCount||0},eb=function(){"interactionCount"in performance||G||(G=Q("event",eg,{type:"event",buffered:!0,durationThreshold:0}))},ey=[],ej=new Map,ew=0,eN=function(){var e=Math.min(ey.length-1,Math.floor((ef()-ew)/50));return ey[e]},eS=[],eC=function(e){if(eS.forEach(function(t){return t(e)}),e.interactionId||"first-input"===e.entryType){var t=ey[ey.length-1],a=ej.get(e.interactionId);if(a||ey.length<10||e.duration>t.latency){if(a)e.duration>a.latency?(a.entries=[e],a.latency=e.duration):e.duration===a.latency&&e.startTime===a.entries[0].startTime&&a.entries.push(e);else{var s={id:e.interactionId,latency:e.duration,entries:[e]};ej.set(s.id,s),ey.push(s)}ey.sort(function(e,t){return t.latency-e.latency}),ey.length>10&&ey.splice(10).forEach(function(e){return ej.delete(e.id)})}}},ek=function(e){var t=self.requestIdleCallback||self.setTimeout,a=-1;return e=es(e),"hidden"===document.visibilityState?e():(a=t(e),ea(e)),a},eB=[200,500],eT=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},ed(function(){eb();var a,s,i=Z("INP"),n=function(e){ek(function(){e.forEach(eC);var t=eN();t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,s())})},r=Q("event",n,{durationThreshold:null!=(a=t.durationThreshold)?a:40});s=ee(e,i,eB,t.reportAllChanges),r&&(r.observe({type:"first-input",buffered:!0}),ea(function(){n(r.takeRecords()),s(!0)}),X(function(){ew=ef(),ey.length=0,ej.clear(),s=ee(e,i=Z("INP"),eB,t.reportAllChanges)}))}))},e$=[],eA=[],eL=0,eI=new WeakMap,eR=new Map,eD=-1,eE=function(e){e$=e$.concat(e),eP()},eP=function(){eD<0&&(eD=ek(eM))},eM=function(){eR.size>10&&eR.forEach(function(e,t){ej.has(t)||eR.delete(t)});var e=ey.map(function(e){return eI.get(e.entries[0])}),t=eA.length-50;eA=eA.filter(function(a,s){return s>=t||e.includes(a)});for(var a=new Set,s=0;s<eA.length;s++){var i=eA[s];eO(i.startTime,i.processingEnd).forEach(function(e){a.add(e)})}var n=e$.length-1-50;e$=e$.filter(function(e,t){return e.startTime>eL&&t>n||a.has(e)}),eD=-1};eS.push(function(e){e.interactionId&&e.target&&!eR.has(e.interactionId)&&eR.set(e.interactionId,e.target)},function(e){var t,a=e.startTime+e.duration;eL=Math.max(eL,e.processingEnd);for(var s=eA.length-1;s>=0;s--){var i=eA[s];if(8>=Math.abs(a-i.renderTime)){(t=i).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:a,entries:[e]},eA.push(t)),(e.interactionId||"first-input"===e.entryType)&&eI.set(e,t),eP()});var eO=function(e,t){for(var a,s=[],i=0;a=e$[i];i++)if(!(a.startTime+a.duration<e)){if(a.startTime>t)break;s.push(a)}return s},eV=function(e,t){U||(U=Q("long-animation-frame",eE)),eT(function(t){var a,s,i,n,r,o,l,c,d,u;e((a=t.entries[0],s=eI.get(a),i=a.processingStart,n=s.processingEnd,r=s.entries.sort(function(e,t){return e.processingStart-t.processingStart}),o=eO(a.startTime,n),c=(l=t.entries.find(function(e){return e.target}))&&l.target||eR.get(a.interactionId),d=[a.startTime+a.duration,n].concat(o.map(function(e){return e.startTime+e.duration})),u=Math.max.apply(Math,d),Object.assign(t,{attribution:{interactionTarget:q(c),interactionTargetElement:c,interactionType:a.name.startsWith("key")?"keyboard":"pointer",interactionTime:a.startTime,nextPaintTime:u,processedEventEntries:r,longAnimationFrameEntries:o,inputDelay:i-a.startTime,processingDuration:n-i,presentationDelay:Math.max(u-n,0),loadState:F(a.startTime)}})))},t)},ez=[2500,4e3],eW={},eG=function(e,t){var a,s;a=function(t){e(function(e){var t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){var a=H();if(a){var s=a.activationStart||0,i=e.entries[e.entries.length-1],n=i.url&&performance.getEntriesByType("resource").filter(function(e){return e.name===i.url})[0],r=Math.max(0,a.responseStart-s),o=Math.max(r,n?(n.requestStart||n.startTime)-s:0),l=Math.max(o,n?n.responseEnd-s:0),c=Math.max(l,i.startTime-s);t={element:q(i.element),timeToFirstByte:r,resourceLoadDelay:o-r,resourceLoadDuration:l-o,elementRenderDelay:c-l,navigationEntry:a,lcpEntry:i},i.url&&(t.url=i.url),n&&(t.lcpResourceEntry=n)}}return Object.assign(e,{attribution:t})}(t))},s=(s=t)||{},ed(function(){var e,t=ec(),i=Z("LCP"),n=function(a){s.reportAllChanges||(a=a.slice(-1)),a.forEach(function(a){a.startTime<t.firstHiddenTime&&(i.value=Math.max(a.startTime-J(),0),i.entries=[a],e())})},r=Q("largest-contentful-paint",n);if(r){e=ee(a,i,ez,s.reportAllChanges);var o=es(function(){eW[i.id]||(n(r.takeRecords()),r.disconnect(),eW[i.id]=!0,e(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return ek(o)},{once:!0,capture:!0})}),ea(o),X(function(t){e=ee(a,i=Z("LCP"),ez,s.reportAllChanges),et(function(){i.value=performance.now()-t.timeStamp,eW[i.id]=!0,e(!0)})})}})};let eU={cls:{good:.1,needsImprovement:.25},inp:{good:200,needsImprovement:500},lcp:{good:2500,needsImprovement:4e3}},eH=new Map,eF={cls:0,clsRating:"good",inp:0,inpRating:"good",lcp:0,lcpRating:"good",shifts:[]},eK=!1;function eq(e){return eH.get(e)||null}function eY(e,t){let a=eU[e];return t<=a.good?"good":t<=a.needsImprovement?"needs-improvement":"poor"}function eX(){return"prod".toLowerCase()==="local"}let eJ=new Set,eZ=new Map;function eQ(e){try{return document.querySelector(e)}catch{return null}}
1let e0="#ef4444",e1=()=>{let{metrics:e}=function(){let[e,t]=(0,i.useState)(()=>({...eF}));(0,i.useEffect)(()=>{eK?t({...eF}):(eK=!0,eh(e=>{let a=e.attribution,s=(a?.largestShiftEntry?.sources||[]).filter(e=>{var t;return!((t=e.node)&&t instanceof Element&&t.closest("[data-devdash]"))}),i=new Set,n=[];for(let e of s){var r;let{tagName:t,id:s,classes:o,selector:l}=function(e){if(!(e&&e instanceof Element))return{selector:"unknown",tagName:"unknown"};let t=e.tagName.toLowerCase(),a=e.id||void 0,s=Array.from(e.classList).filter(e=>!(e.length>30||/^[a-z]+-[a-zA-Z0-9]{5,}$/.test(e)||/^(css-|sc-|emotion-|styled-)/.test(e))).slice(0,3),i=t;if(a&&(i+=`#${a}`),s.length>0&&(i+=`.${s.join(".")}`),i===t&&!a&&0===s.length){let t=e.getAttribute("data-testid")||e.getAttribute("data-test-id"),a=e.getAttribute("aria-label"),s=e.getAttribute("role"),n=e.getAttribute("name");if(t)i+=`[data-testid="${t}"]`;else if(n)i+=`[name="${n}"]`;else if(a&&a.length<30)i+=`[aria-label="${a}"]`;else if(s)i+=`[role="${s}"]`;else{let t=e.parentElement;if(t){let e=t.tagName.toLowerCase(),a=t.id,s=t.classList[0];a?i=`${e}#${a} > ${i}`:s&&s.length<20&&(i=`${e}.${s} > ${i}`)}}}return{classes:s.length>0?s:void 0,id:a,selector:i,tagName:t}}(e.node);if("unknown"===l||i.has(l))continue;i.add(l);let c=`shift-${l}`;e.node&&(r=e.node)&&eH.set(c,r);let d=e.previousRect?{height:Math.round(e.previousRect.height),width:Math.round(e.previousRect.width),x:Math.round(e.previousRect.x),y:Math.round(e.previousRect.y)}:void 0,u=e.currentRect?{height:Math.round(e.currentRect.height),width:Math.round(e.currentRect.width),x:Math.round(e.currentRect.x),y:Math.round(e.currentRect.y)}:void 0,m=0,p=0;d&&u&&(m=u.x-d.x,p=u.y-d.y),1>Math.abs(m)&&1>Math.abs(p)||n.push({classes:o,currentRect:u,id:s,node:e.node,nodeKey:c,previousRect:d,selector:l,tagName:t,value:a.largestShiftValue||0})}let o=eY("cls",e.value);t({...eF={...eF,cls:e.value,clsRating:o,shifts:n}})},{reportAllChanges:!0}),eG(e=>{let a=eY("lcp",e.value);t({...eF={...eF,lcp:e.value,lcpRating:a}})},{reportAllChanges:!0}),eV(e=>{let a=eY("inp",e.value);t({...eF={...eF,inp:e.value,inpRating:a}})},{reportAllChanges:!0}))},[]);let a=[];return"good"!==e.clsRating&&a.push({message:`CLS: ${e.cls.toFixed(3)} (${"poor"===e.clsRating?"POOR":"needs work"})`,metric:"CLS",rating:e.clsRating,value:e.cls.toFixed(3)}),"good"!==e.inpRating&&a.push({message:`INP: ${Math.round(e.inp)}ms (${"poor"===e.inpRating?"POOR":"needs work"})`,metric:"INP",rating:e.inpRating,value:`${Math.round(e.inp)}ms`}),eX()||"good"===e.lcpRating||a.push({message:`LCP: ${Math.round(e.lcp)}ms (${"poor"===e.lcpRating?"POOR":"needs work"})`,metric:"LCP",rating:e.lcpRating,value:`${Math.round(e.lcp)}ms`}),{hasIssues:a.length>0,hasPoorRating:"poor"===e.clsRating||"poor"===e.inpRating||!eX()&&"poor"===e.lcpRating,issues:a,metrics:e,thresholds:eU}}(),[t,a]=(0,i.useState)(()=>new Set(eJ)),n=(0,i.useRef)(new Map);(0,i.useEffect)(()=>{eJ.forEach(e=>{let t=eZ.get(e);if(!t)return;let a=eq(e)||eQ(t.selector);!(a&&document.body.contains(a))||a.style&&(a.style.outline=`3px solid ${e0}`,a.style.outlineOffset="2px",a.style.boxShadow="0 0 0 4px rgba(239, 68, 68, 0.3), 0 0 20px 5px rgba(239, 68, 68, 0.4)",a.style.position="relative",a.style.zIndex="9999",n.current.set(e,{element:a,originalBoxShadow:t.originalBoxShadow,originalOutline:t.originalOutline,originalOutlineOffset:t.originalOutlineOffset,originalPosition:t.originalPosition,originalZIndex:t.originalZIndex}))});let e=new Set;eJ.forEach(t=>{n.current.has(t)&&e.add(t)}),a(e),eJ=e},[]);let r=(0,i.useCallback)((e,s)=>{if(t.has(e)){let t=n.current.get(e);t?.element?.style&&(t.element.style.outline=t.originalOutline,t.element.style.outlineOffset=t.originalOutlineOffset,t.element.style.boxShadow=t.originalBoxShadow,t.element.style.position=t.originalPosition,t.element.style.zIndex=t.originalZIndex,n.current.delete(e)),eJ.delete(e),eZ.delete(e),a(t=>{let a=new Set(t);return a.delete(e),a});return}let i=s.replace(/::[a-z-]+(\([^)]*\))?/gi,"").trim();if(!i)return;let r=eq(e)||eQ(i);if(!(r&&document.body.contains(r))||!r.style)return;let o=r.style.outline||"",l=r.style.outlineOffset||"",c=r.style.boxShadow||"",d=r.style.position||"",u=r.style.zIndex||"";n.current.set(e,{element:r,originalBoxShadow:c,originalOutline:o,originalOutlineOffset:l,originalPosition:d,originalZIndex:u}),eJ.add(e),eZ.set(e,{originalBoxShadow:c,originalOutline:o,originalOutlineOffset:l,originalPosition:d,originalZIndex:u,selector:i}),r.style.outline=`3px solid ${e0}`,r.style.outlineOffset="2px",r.style.boxShadow="0 0 0 4px rgba(239, 68, 68, 0.3), 0 0 20px 5px rgba(239, 68, 68, 0.4)",r.style.position="relative",r.style.zIndex="9999",a(t=>new Set(t).add(e)),requestAnimationFrame(()=>r.scrollIntoView({behavior:"smooth",block:"center"}))},[t]),o=(0,i.useCallback)(()=>
1{n.current.forEach(e=>{e.element?.style&&(e.element.style.outline=e.originalOutline,e.element.style.outlineOffset=e.originalOutlineOffset,e.element.style.boxShadow=e.originalBoxShadow,e.element.style.position=e.originalPosition,e.element.style.zIndex=e.originalZIndex)}),n.current.clear(),eJ.clear(),eZ.clear(),a(new Set)},[]),l=[{label:"Cumulative Layout Shift",name:"CLS",rating:e.clsRating,unit:"",value:e.cls},{label:"Largest Contentful Paint",name:"LCP",rating:e.lcpRating,unit:"ms",value:e.lcp},{label:"Interaction to Next Paint",name:"INP",rating:e.inpRating,unit:"ms",value:e.inp}],c=(0,i.useMemo)(()=>e.shifts?e.shifts.filter(e=>e.value>=1e-4).filter(e=>{if(!e.previousRect||!e.currentRect)return!0;let t=Math.abs(e.currentRect.y-e.previousRect.y),a=Math.abs(e.currentRect.x-e.previousRect.x);return Math.round(t)>0||Math.round(a)>0}):[],[e.shifts]),d=0===e.cls&&0===e.lcp&&0===e.inp;return(0,s.jsxs)("div",{children:[(0,s.jsx)(w,{align:"center",direction:"row",justify:"space-between",style:{marginBottom:24},children:(0,s.jsxs)("h2",{className:`${T().sectionTitle} ${T().sectionTitleLarge}`,children:[(0,s.jsx)("span",{className:`${T().accentBar} ${T().accentBarLarge}`}),"Core Web Vitals"]})}),(0,s.jsx)(w,{gap:4,style:{marginBottom:32},children:l.map(({name:e,label:t,value:a,rating:i,unit:n})=>(0,s.jsxs)(p,{padding:6,style:{borderLeft:`4px solid ${"good"===i?"var(--dd-success)":"needs-improvement"===i?"var(--dd-warning)":"poor"===i?"var(--dd-error)":"var(--dd-text-muted)"}`},children:[(0,s.jsxs)(w,{align:"center",direction:"row",justify:"space-between",style:{marginBottom:12},children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(k,{size:"xl",weight:"bold",children:e}),(0,s.jsx)(k,{color:"muted",size:"xs",style:{marginLeft:12},children:t})]}),(0,s.jsx)(m,{variant:"good"===i?"success":"needs-improvement"===i?"warning":"poor"===i?"error":"default",children:"needs-improvement"===i?"Needs Work":"good"===i?"Good":"poor"===i?"Poor":i||"Pending"})]}),(0,s.jsx)(k,{size:"4xl",weight:"bold",children:void 0!==a?`${"CLS"===e?a.toFixed(2):Math.round(a)}${n}`:"—"})]},e))}),void 0!==e.cls&&e.cls>5e-4&&c.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsxs)(w,{align:"center",direction:"row",justify:"space-between",style:{marginBottom:12},children:[(0,s.jsxs)("h3",{className:T().subsectionTitle,children:[(0,s.jsx)("span",{className:T().subsectionAccentBar}),"Layout Shift Sources"]}),t.size>0&&(0,s.jsxs)(g,{onClick:o,size:"sm",variant:"danger",children:["Hide All (",t.size,")"]})]}),(0,s.jsx)(k,{color:"muted",size:"2xs",style:{marginBottom:16},children:"These elements triggered layout shifts (e.g., late-loading ads or images). Click Show to highlight."}),(0,s.jsx)(w,{gap:3,style:{maxHeight:256,overflow:"auto"},children:c.map(e=>{let a,i,n;return(0,s.jsx)(p,{padding:5,children:(0,s.jsxs)(w,{align:"center",direction:"row",justify:"space-between",children:[(0,s.jsxs)("div",{style:{flex:1,marginRight:12,overflow:"hidden"},children:[(0,s.jsx)(k,{size:"md",style:{marginBottom:4},weight:"medium",children:function(e){let t=[],a=e.match(/^([a-z]+[0-9]*)/i);a&&t.push(a[1].toUpperCase());let s=e.match(/#([a-zA-Z0-9_-]+)/);if(s)return`#${s[1]}`;let i=e.match(/\.([a-zA-Z][a-zA-Z0-9_-]*)/g);if(i){let e=i.map(e=>e.slice(1)).filter(e=>!(e.length<=6&&/[A-Z]/.test(e)&&/[a-z]/.test(e)||/^[a-z]{5,6}$/i.test(e))).slice(0,2);e.length>0&&t.push(...e.map(e=>`.${e}`))}return t.length>0?t.join(" "):a?`<${a[1].toLowerCase()}>`:e.length>20?`${e.slice(0,20)}...`:e}(e.selector)}),(0,s.jsx)(k,{color:"muted",mono:!0,size:"2xs",style:{display:"block"},truncate:!0,children:e.selector}),e.previousRect&&e.currentRect&&(a=Math.round(Math.abs(e.currentRect.y-e.previousRect.y)),i=Math.round(Math.abs(e.currentRect.x-e.previousRect.x)),n=[],(a>0&&n.push(`${a}px ↕`),i>0&&n.push(`${i}px ↔`),0===n.length)?null:(0,s.jsxs)(k,{color:"secondary",size:"2xs",style:{marginTop:8},children:["Shifted ",n.join(", ")]}))]}),(0,s.jsx)(g,{onClick:()=>r(e.nodeKey,e.selector),size:"sm",variant:t.has(e.nodeKey)?"danger":"default",children:t.has(e.nodeKey)?"● Hide":"\uD83D\uDC41️ Show"})]})},e.nodeKey)})})]}),d&&(0,s.jsx)(j,{description:"Interact with the page to trigger measurements",icon:"\uD83D\uDCCA",title:"Collecting metrics..."})]})};var e2=a(2501),e3=a(62335);function e4(){return window.location.href}var e5=a(89784);let e8="devdash.experiments.search",e9="devdash.experiments.filter",e6=["all","active","overridden"];function e7(){try{return localStorage.getItem(e8)??""}catch{return""}}function te(){try{let e=localStorage.getItem(e9);if(e&&e6.includes(e))return e}catch{}return"all"}let tt=({exp:e,setOverride:t,clearOverride:a})=>{let[n,r]=(0,i.useState)(!1),[o,l]=(0,i.useState)(""),[c,d]=(0,i.useState)(0);(0,i.useEffect)(()=>(0,e5.TN)(()=>d(e=>e+1)),[]);let u=()=>{o.trim()&&(t(e.testName,o.trim()),l(""),r(!1))},p=(0,i.useMemo)(()=>(0,e5.et)(e.testName)||(0,e5.Eg)(),[e.testName,c]),h=e.hasUrlOverride&&e.urlOverrideValue&&!p.includes(e.urlOverrideValue);return(0,s.jsxs)("div",{className:T().experimentCard,children:[(0,s.jsxs)("div",{className:T().experimentCardHeader,children:[(0,s.jsx)("div",{className:T().flexContent,children:(0,s.jsx)("h3",{className:T().experimentCardTitle,children:e.testName})}),(0,s.jsxs)("div",{className:T().experimentCardActions,children:[e.hasUrlOverride&&(0,s.jsxs)("button",{className:T().overrideBadge,onClick:()=>a(e.testName),title:"Click to clear override",type:"button",children:["Override",(0,s.jsx)("span",{className:T().overrideBadgeClose,children:"\xd7"})]}),(0,s.jsx)(m,{variant:e.enabled?"success":"default",children:e.enabled?"Active":"Inactive"})]})]}),(0,s.jsxs)("div",{className:T().experimentCardBody,children:[(0,s.jsxs)("div",{className:T().variantButtons,children:[p.map(a=>(0,s.jsx)("button",{className:`${T().variantButton} ${e.variant===a||e.urlOverrideValue===a?T().variantButtonActive:""}`,onClick:()=>t(e.testName,a),type:"button",children:a},a)),h&&(0,s.jsx)("span",{className:T().variantBadge,children:e.urlOverrideValue}),(0,s.jsxs)("button",{className:`${T().customVariantButton} ${n?T().customVariantButtonActive:""}`,onClick:()=>r(!n),type:"button",children:[(0,s.jsx)("span",{style:{fontSize:10},children:"✎"}),"custom"]})]}),n&&(0,s.jsxs)("div",{className:T().customInputBox,children:[(0,s.jsxs)("div",{className:T().customInputRow,children:[(0,s.jsx)("input",{className:T().customInput,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"===e.key&&u()},placeholder:"Enter custom variant name...",type:"text",value:o}),(0,s.jsx)("button",{className:`${T().customInputApply} ${o.trim()?T().customInputApplyEnabled:""}`,disabled:!o.trim(),onClick:u,type:"button",children:"Apply"})]}),(0,s.jsx)("p",{className:T().customInputHint,children:"Press Enter to apply"})]})]})]})},ta=()=>{let{experiments:e,isReady:t,setOverride:a,clearOverride:n,clearAllOverrides:r}=function(){let{userFlags:e,optimizely:t}=(0,e2.G)(),[a,s]=(0,i.useState)(new Map),[n,r]=(0,i.useState)(""),o=(0,i.useMemo)(()=>Object.keys(e).filter(e=>"user"!==e),[e]);(0,i.useEffect)(()=>{let e=()=>{let e,t,a;s((e=new URLSearchParams(window.location.search),t=(0,e3.yY)(),a=new Map,o.forEach(s=>{let i=e.get(s),n=t[s];null!==i?a.set(s,i):void 0!==n&&a.set(s,n)}),a)),r(window.location.search)};return e(),window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[o]);let l=(0,i.useMemo)(()=>o.map(t=>{let s=e[t],i=a.get(t)||null;return{enabled:s?.enabled??!1,hasUrlOverride:null!==i,testName:t,urlOverrideValue:i,variables:s?.variables??{},variant:s?.variant??null}}),[o,e,a]);return{clearAllOverrides:()=>{let e;e=new URL(window.location.href),o.forEach(t=>{e.searchParams.delete(t)}),window.history.replaceState({},"",e.toString()),(0,e3.we)(),window.location.reload()},clearOverride:e=>{let t;(t=new URL(window.location.href)).searchParams.delete(e),window.history.replaceState({},"",t.toString()),(0,e3.Qg)(e),window.location.reload()}
1,currentParams:n,experimentCount:o.length,experiments:l,getUrlWithOverrides:e4,isReady:!!t,setOverride:(e,t)=>{let a;(a=new URL(window.location.href)).searchParams.set(e,t),window.history.replaceState({},"",a.toString()),(0,e3.JD)(e,t),window.location.reload()}}}(),[o,l]=(0,i.useState)(e7),[c,d]=(0,i.useState)(te),u=e=>{l(e);try{e?localStorage.setItem(e8,e):localStorage.removeItem(e8)}catch{}},m=(0,i.useMemo)(()=>{let t=e.length;return{active:e.filter(e=>e.enabled).length,overridden:e.filter(e=>e.hasUrlOverride).length,total:t}},[e]),p=(0,i.useMemo)(()=>{let t=e;if("active"===c?t=t.filter(e=>e.enabled):"overridden"===c&&(t=t.filter(e=>e.hasUrlOverride)),o.trim()){let e=o.toLowerCase();t=t.filter(t=>t.testName.toLowerCase().includes(e)||t.variant?.toLowerCase().includes(e))}return t},[e,c,o]),h=[{count:m.total,key:"all",label:"All"},{count:m.active,key:"active",label:"Active"},{count:m.overridden,key:"overridden",label:"Overridden"}];return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:T().sectionHeader,children:[(0,s.jsxs)("h2",{className:T().sectionTitle,children:[(0,s.jsx)("span",{className:T().accentBar}),"Experiments"]}),m.overridden>0&&(0,s.jsx)("button",{className:T().clearAllButton,onClick:r,title:"Remove all experiment overrides from URL",type:"button",children:"✕ Clear All Overrides"})]}),!t&&(0,s.jsxs)("div",{className:T().emptyState,children:[(0,s.jsx)("span",{className:T().emptyStateIcon,children:"⏳"}),(0,s.jsx)("span",{className:T().emptyStateTitle,children:"Loading Optimizely..."})]}),t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:T().searchContainer,children:(0,s.jsxs)("div",{className:T().searchBox,children:[(0,s.jsx)("span",{className:T().searchIcon,children:(0,s.jsx)(b,{})}),(0,s.jsx)("input",{className:T().searchInput,onChange:e=>u(e.target.value),placeholder:"Search experiments...",type:"text",value:o}),o&&(0,s.jsx)("button",{className:T().searchClear,onClick:()=>u(""),type:"button",children:"\xd7"})]})}),(0,s.jsx)("div",{className:T().filterTabs,children:h.map(({key:e,label:t,count:a})=>(0,s.jsxs)("button",{className:`${T().filterTab} ${c===e?T().filterTabActive:""}`,onClick:()=>(e=>{d(e);try{localStorage.setItem(e9,e)}catch{}})(e),type:"button",children:[t,(0,s.jsx)("span",{className:`${T().filterTabCount} ${c===e?T().filterTabCountActive:""}`,children:a})]},e))}),0===e.length&&(0,s.jsxs)("div",{className:T().emptyState,children:[(0,s.jsx)("span",{className:T().emptyStateIcon,children:"\uD83E\uDDEA"}),(0,s.jsx)("span",{className:T().emptyStateTitle,children:"No experiments found"}),(0,s.jsx)("span",{className:T().emptyStateSubtitle,children:"No active experiments on this page"})]}),e.length>0&&0===p.length&&(0,s.jsxs)("div",{className:T().emptyState,children:[(0,s.jsx)("span",{className:T().emptyStateIcon,children:"\uD83D\uDD0D"}),(0,s.jsx)("span",{className:T().emptyStateTitle,children:"No matches found"}),(0,s.jsx)("span",{className:T().emptyStateSubtitle,children:"Try adjusting your search or filter"})]}),p.length>0&&(0,s.jsx)("div",{className:T().listContainer,children:p.map(e=>(0,s.jsx)(tt,{clearOverride:n,exp:e,setOverride:a},e.testName))}),p.length>0&&o&&(0,s.jsxs)("p",{className:T().resultCount,children:["Showing ",p.length," of ",m.total," experiments"]})]})]})};var ts=a(46657);function ti(e){if("u"<typeof document)return"open";let t=document.querySelector(".paywall"),a=t?.classList.contains("paywallActive");return e?"bypassed":a?"paywalled":"open"}let tn=()=>{let e=(0,i.useContext)(ts.R),t=(0,i.useContext)(r.rO),[a,n]=(0,i.useState)(!1),[o,l]=(0,i.useState)("open"),[c,d]=(0,i.useState)(null),[u,p]=(0,i.useState)(null),[_,x]=(0,i.useState)(null),[g,b]=(0,i.useState)(null),[j,w]=(0,i.useState)({page:null,type:"unknown"}),[N,S]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e,t;d((e=e=>{let t=document.querySelector(`meta[name="${e}"], meta[property="${e}"]`);return t?.getAttribute("content")||null},t=document.querySelector('link[rel="canonical"]'),{author:e("author"),canonical:t?.getAttribute("href")||null,description:e("description"),keywords:e("keywords"),modifiedDate:e("article:modified_time")||e("dateModified"),ogDescription:e("og:description"),ogImage:e("og:image"),ogTitle:e("og:title"),ogType:e("og:type"),publishDate:e("article:published_time")||e("datePublished"),robots:e("robots"),title:document.title,twitterCard:e("twitter:card")})),p({full:window.location.href,hash:window.location.hash,hostname:window.location.hostname,pathname:window.location.pathname,referrer:document.referrer||"",search:window.location.search}),x({iframes:document.querySelectorAll("iframe").length,images:document.querySelectorAll("img").length,links:document.querySelectorAll("a").length,scripts:document.querySelectorAll("script").length,stylesheets:document.querySelectorAll('link[rel="stylesheet"], style').length}),b(function(){let e=document.getElementById("__NEXT_DATA__");if(e)try{return JSON.parse(e.textContent||"{}")}catch{}return null}()),w(function(){let e=window,t=Array.isArray(e.__next_f)&&e.__next_f.length>0,a=null!==document.querySelector('script[src*="/chunks/app/"]'),s=document.getElementById("__NEXT_DATA__"),i=null,n=null;if(s)try{i=JSON.parse(s.textContent||"{}"),n=i?.page||null}catch{}return t||a?{page:n,type:"app"}:i?.page?(n?.includes("[")||["/article/","/ranking/","/list/","/person/","/company/","/video/","/api/"].some(e=>n?.startsWith(e)),{page:n,type:"pages"}):s?{page:null,type:"pages"}:{page:null,type:"unknown"}}())},[]),(0,i.useEffect)(()=>
1{l(ti(a))},[a]),(0,i.useEffect)(()=>{let e=setInterval(()=>{a||l(ti(!1))},500),t=setTimeout(()=>clearInterval(e),5e3);return()=>{clearInterval(e),clearTimeout(t)}},[a]);let C=(0,i.useCallback)(()=>{let e=!a;n(e),function(e){if("u"<typeof document)return;let t=document.querySelector(".paywall"),a=document.querySelector(".paywall-selector");e?(t?.classList.remove("paywallActive"),a?.classList.remove("paywallFade")):(t?.classList.add("paywallActive"),a?.classList.add("paywallFade"))}(e),l(e?"bypassed":ti(!1))},[a]),k=e?.pianoPageConfig,B=t?.pageAdConfig,$=(()=>{if(!B?.cid)return null;let e=Number.parseInt(String(B.cid),10);return Number.isFinite(e)&&e>0?e:null})(),A=(()=>{let e=g?.props?.pageProps;if(!e)return null;let t=e.pageAdConfig,a=e.headData,s=e.article,i=t?.cid??a?.databaseId??s?.postId??s?.databaseId??null;if(null==i)return null;let n=Number.parseInt(String(i),10);return Number.isFinite(n)&&n>0?n:null})(),L=$??A,I=L?function(e,t){let a,s=t.split(".")[0]?.toLowerCase()||"";switch("www"===s?"fortune":"dev"===s||"develop"===s?"dev-frontend":"qa"===s?"qa-frontend":"staging"===s?"staging-frontend":s){case"fortune":default:a="https://content.fortune.com/wp-admin";break;case"dev-frontend":a="https://content-develop.fortune.com/wp-admin";break;case"qa-frontend":a="https://content-qa.fortune.com/wp-admin";break;case"staging-frontend":a="https://content-staging.fortune.com/wp-admin"}return{dashboardUrl:a,editUrl:`${a}/post.php?post=${e}&action=edit`}}(L,window.location.host):null,R=async()=>{let e="app"===j.type?"App Router (Replatformed)":"pages"===j.type?"Pages Router":"Unknown",t=["=== DevDash Page Context Report ===","",`Router: ${e}${j.page?` (${j.page})`:""}`,"","--- URL ---",u?.referrer?`Referrer: ${u.referrer}`:null,c?.canonical?`Canonical: ${c.canonical}`:null,L?`WP Post ID: ${L}`:null,I?.editUrl?`WP Edit: ${I.editUrl}`:null,"","--- Metadata ---",c?.author?`Author: ${c.author}`:null,`Published: ${c?.publishDate||k?.publishDate||"N/A"}`,c?.ogType?`OG Type: ${c.ogType}`:null,c?.robots?`Robots: ${c.robots}`:null,"","--- Piano Config ---",`Page Type: ${k?.pageType||"N/A"}`,`Content Section: ${k?.contentSection||"N/A"}`,`Franchise Wall: ${k?.franchiseWall??"N/A"}`,`Tags: ${k?.tags?.join(", ")||"None"}`,"","--- Ad Config ---",`Channel: ${B?.ch||"N/A"}`,`Content Type: ${B?.ctype||"N/A"}`,`Content ID: ${B?.cid||"N/A"}`,`Premium Category: ${B?.premiumCategory||"N/A"}`,`Tags: ${B?.tags?.join(", ")||"None"}`,`Topics: ${B?.topics?.join(", ")||"None"}`,"","--- Document Stats ---",`Scripts: ${_?.scripts||0}`,`Stylesheets: ${_?.stylesheets||0}`,`Images: ${_?.images||0}`,`Links: ${_?.links||0}`,`Iframes: ${_?.iframes||0}`,"",`Generated: ${new Date().toISOString()}`].filter(Boolean).join("\n");try{await navigator.clipboard.writeText(t),S(!0),setTimeout(()=>S(!1),2e3)}catch{}};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:T().sectionHeader,children:[(0,s.jsxs)("h2",{className:T().sectionTitle,children:[(0,s.jsx)("span",{className:T().accentBar}),"Page Context"]}),(0,s.jsx)("button",{className:`${T().copyAllButton} ${N?T().copyAllButtonCopied:""}`,onClick:R,type:"button",children:N?"✓ Copied!":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f,{})," Copy All"]})})]}),(0,s.jsxs)("div",{className:`${T().statusBanner} ${"app"===j.type?T().statusBannerApp:"pages"===j.type?T().statusBannerPages:T().statusBannerUnknown}`,children:[(0,s.jsx)("span",{className:T().statusBannerIcon,children:"app"===j.type?"⚡":"pages"===j.type?"\uD83D\uDCC4":"❓"}),(0,s.jsx)("span",{className:T().statusBannerText,children:"app"===j.type?"App Router (Replatformed)":"pages"===j.type?"Pages Router":"Unknown Router"}),j.page&&(0,s.jsx)(m,{variant:"app"===j.type?"info":"pages"===j.type?"warning":"default",children:j.page})]}),(0,s.jsxs)(h,{title:"Paywall",children:[(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid2} ${T().marginBottom12}`,children:[(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Status"}),(0,s.jsx)(m,{variant:"paywalled"===o?"error":"bypassed"===o?"info":"success",children:"paywalled"===o?"Paywalled":"bypassed"===o?"Bypassed":"Open"})]}),(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Dev Bypass"}),(0,s.jsx)(m,{variant:a?"info":"default",children:a?"Active":"Off"})]})]}),(0,s.jsx)("button",{className:T().actionButton,disabled:"open"===o,onClick:C,type:"button",children:a?"\uD83D\uDD13 Disable Bypass":"\uD83D\uDD12 Bypass Paywall"}),a&&(0,s.jsx)("div",{className:T().warningBox,style:{marginTop:8},children:"⚠️ Paywall CSS bypassed via DevDash. Reload to reset."})]}),u&&(u.search||u.hash||u.referrer||c?.canonical||L)&&(0,s.jsxs)(h,{title:"URL",children:[u.search&&(0,s.jsx)(y,{label:"Query String",value:u.search}),u.hash&&(0,s.jsx)(y,{label:"Hash",value:u.hash}),u.referrer&&(0,s.jsx)(y,{label:"Referrer",value:u.referrer}),c?.canonical&&(0,s.jsx)(y,{label:"Canonical",value:c.canonical}),L&&(0,s.jsx)(y,{label:"WP Post ID",value:L}),I?.editUrl&&(0,s.jsx)(y,{copyValue:I.editUrl,label:"WP Edit",value:(0,s.jsx)("a",{className:T().linkValue,href:I.editUrl,rel:"nofollow noreferrer",target:"_blank",children:"Open in WordPress ↗"})})]}),c&&(c.author||c.publishDate||k?.publishDate||c.modifiedDate||c.ogType||c.robots||c.keywords)&&(0,s.jsxs)(h,{title:"Page Metadata",children:[c.author&&(0,s.jsx)(y,{label:"Author",value:c.author}),(c.publishDate||k?.publishDate)&&(0,s.jsx)(y,{label:"Published",value:c.publishDate||k?.publishDate}),c.modifiedDate&&(0,s.jsx)(y,{label:"Modified",value:c.modifiedDate}),c.ogType&&(0,s.jsx)(y,{label:"OG Type",value:c.ogType}),c.robots&&(0,s.jsx)(y,{label:"Robots",value:c.robots}),c.keywords&&(0,s.jsxs)("div",{className:T().marginTop8,children:[(0,s.jsx)("div",{className:T().labelRow,children:"Keywords"}),(0,s.jsx)(v,{tags:c.keywords.split(",").map(e=>e.trim()),variant:"default"})]})]}),k&&Object.keys(k).length>0&&(0,s.jsxs)(h,{title:"Piano Config",children:[(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid2} ${T().marginBottom12}`,children:[(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Page Type"}),(0,s.jsx)("div",{className:T().statValue,children:k.pageType||"N/A"})]}),(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Franchise Wall"}),(0,s.jsx)(m,{variant:k.franchiseWall?"warning":"success",children:k.franchiseWall?"Yes":"No"})]})]}),k.contentSection&&(0,s.jsx)(y,{label:"Content Section",value:k.contentSection}),k.tags&&k.tags.length>0&&(0,s.jsxs)("div",{className:T().marginTop8,children:[(0,s.jsxs)("div",{className:T().labelRow,children:["Tags (",k.tags.length,")"]}),(0,s.jsx)(v,{tags:k.tags,variant:"info"})]})]}),B&&Object.keys(B).length>0&&(0,s.jsxs)(h,{title:"Ad Targeting",children:[(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid2} ${T().marginBottom12}`,children:[(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxCompact}`,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Channel"}),(0,s.jsx)("div",{className:T().statValueSecondary,children:B.ch||"N/A"})]}),(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxCompact}`,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Content Type"}),(0,s.jsx)("div",{className:T().statValueSecondary,children:B.ctype||"N/A"})]})]}
1),B.cid&&(0,s.jsx)(y,{label:"Content ID",value:B.cid}),B.premiumCategory&&(0,s.jsx)(y,{label:"Premium Category",value:B.premiumCategory}),B.defaultPath&&(0,s.jsx)(y,{label:"Default Path",value:B.defaultPath}),B.tags&&B.tags.length>0&&(0,s.jsxs)("div",{className:T().marginTop12,children:[(0,s.jsxs)("div",{className:T().labelRow,children:["Ad Tags (",B.tags.length,")"]}),(0,s.jsx)(v,{tags:B.tags,variant:"warning"})]}),B.topics&&B.topics.length>0&&(0,s.jsxs)("div",{className:T().marginTop12,children:[(0,s.jsxs)("div",{className:T().labelRow,children:["Topics (",B.topics.length,")"]}),(0,s.jsx)(v,{tags:B.topics,variant:"success"})]})]}),_&&(0,s.jsx)(h,{title:"Document Stats",children:(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid5}`,children:[(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxCompact}`,children:[(0,s.jsx)("div",{className:T().statValueLarge,children:_.scripts}),(0,s.jsx)("div",{className:T().statLabelSmall,children:"Scripts"})]}),(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxCompact}`,children:[(0,s.jsx)("div",{className:T().statValueLarge,children:_.stylesheets}),(0,s.jsx)("div",{className:T().statLabelSmall,children:"Styles"})]}),(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxCompact}`,children:[(0,s.jsx)("div",{className:T().statValueLarge,children:_.images}),(0,s.jsx)("div",{className:T().statLabelSmall,children:"Images"})]}),(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxCompact}`,children:[(0,s.jsx)("div",{className:T().statValueLarge,children:_.links}),(0,s.jsx)("div",{className:T().statLabelSmall,children:"Links"})]}),(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxCompact}`,children:[(0,s.jsx)("div",{className:T().statValueLarge,children:_.iframes}),(0,s.jsx)("div",{className:T().statLabelSmall,children:"Iframes"})]})]})}),g&&(0,s.jsxs)(h,{title:"Next.js",children:[(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid2} ${T().marginBottom12}`,children:[(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Page"}),(0,s.jsx)("div",{className:T().statValueWordBreak,children:g.page||"N/A"})]}),(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Fallback"}),(0,s.jsx)(m,{variant:g.isFallback?"warning":"success",children:g.isFallback?"Yes":"No"})]})]}),(0,s.jsx)(y,{label:"Build ID",value:g.buildId}),g.query&&Object.keys(g.query).length>0&&(0,s.jsxs)("div",{className:T().marginTop8,children:[(0,s.jsx)("div",{className:T().labelRow,children:"Route Query"}),(0,s.jsx)("pre",{className:T().preBlock,children:JSON.stringify(g.query,null,2)})]})]})]})};var tr=a(82849);let to="__prEnvUpstream",tl="develop-pr-",tc="-fortune-frontend",td=()=>"u"<typeof document?null:tr.A.get(to)||null;async function tu(){try{let e=await fetch("/api/devdash/build-info");if(403===e.status)return{metadata:null,unauthorized:!0};if(!e.ok)return{metadata:null,unauthorized:!1};let t=await e.json();if(t.available&&t.metadata)return{metadata:t.metadata,unauthorized:!1};return{metadata:null,unauthorized:!1}}catch{return{metadata:null,unauthorized:!1}}}function tm(){let e=sessionStorage.getItem("devdash_session_start"),t=Date.now();e||sessionStorage.setItem("devdash_session_start",t.toString());let a=parseInt(e||t.toString(),10),s=t-a,i=Math.floor(s/6e4),n=Math.floor(s%6e4/1e3),r=null,o=null,l=performance.getEntriesByType("navigation");if(l.length>0){let e=l[0];r=`${Math.round(e.loadEventEnd-e.startTime)}ms`,o=`${Math.round(e.domContentLoadedEventEnd-e.startTime)}ms`}let c=null,d=performance;if(d.memory){let e=Math.round(d.memory.usedJSHeapSize/1048576),t=Math.round(d.memory.jsHeapSizeLimit/1048576);c=`${e}MB / ${t}MB`}let u=0,m=0;try{u=localStorage.length}catch{}try{m=sessionStorage.length}catch{}return{cookiesEnabled:navigator.cookieEnabled,devicePixelRatio:window.devicePixelRatio,domReadyTime:o,historyLength:window.history.length,language:navigator.language,localStorageCount:u,memoryUsage:c,navigationType:function(){let e=performance.getEntriesByType("navigation");if(e.length>0){let t=e[0].type;switch(t){case"navigate":return"Navigate";case"reload":return"Reload";case"back_forward":return"Back/Forward";default:return t}}return"Unknown"}(),online:navigator.onLine,pageLoadTime:r,platform:navigator.platform,referrer:document.referrer||"(direct)",
1screenSize:`${window.screen.width} \xd7 ${window.screen.height}`,sessionDuration:`${i}m ${n}s`,sessionStorageCount:m,userAgent:navigator.userAgent,viewport:`${window.innerWidth} \xd7 ${window.innerHeight}`}}let tp=()=>{let{environment:e}=(0,n.useDevDash)(),[t,a]=(0,i.useState)(null),[r,o]=(0,i.useState)(null),[l,c]=(0,i.useState)(!1),[d,u]=(0,i.useState)(!1),[p,h]=(0,i.useState)(!1),[v,_]=(0,i.useState)(null),[x,g]=(0,i.useState)(null);(0,i.useEffect)(()=>{a(tm()),_(td()),g((()=>{let e=td();if(!e)return null;if(!(e.startsWith(tl)&&e.endsWith(tc)))return null;let t=parseInt(e.slice(tl.length,-tc.length),10);return Number.isNaN(t)||t<=0?null:t})()),tu().then(e=>{o(e.metadata),c(e.unauthorized)});let e=setInterval(()=>a(tm()),1e3),t=()=>a(tm()),s=()=>a(tm());return window.addEventListener("resize",t),window.addEventListener("online",s),window.addEventListener("offline",s),()=>{clearInterval(e),window.removeEventListener("resize",t),window.removeEventListener("online",s),window.removeEventListener("offline",s)}},[]);let b="prod"!==e&&"production"!==e&&r,j="https://content.fortune.com/",w="https://prod-backend-internal.fortune.com/graphql",N="https://payment-api.fortune.com",S="https://personalization-api.fortune.com",C="https://video-api.fortune.com",k="https://api.piano.io/api/v3",B="https://rtbp-graphql.bankrate.com/graphql",$=async()=>{if(!v)return;let e=new URL(window.location.href);e.searchParams.set("__prEnvUpstream",v);let t=e.toString();try{await navigator.clipboard.writeText(t),h(!0),setTimeout(()=>h(!1),2e3)}catch{}},A=async()=>{let a=["=== DevDash Status Report ===","",`Environment: ${e}`,`Wordpress URL: ${j||"Not set"}`,`Laravel/GraphQL URL: ${w||"Not set"}`,N?`Payment API: ${N}`:null,S?`Personalization API: ${S}`:null,C?`Video API: ${C}`:null,k?`Piano API: ${k}`:null,B?`Red Ventures GQL: ${B}`:null,"","--- Browser ---",t?`Viewport: ${t.viewport}`:null,t?`Screen: ${t.screenSize}`:null,t?`Online: ${t.online}`:null,t?`Navigation Type: ${t.navigationType}`:null,t?`Session: ${t.sessionDuration}`:null,t?`Page Load: ${t.pageLoadTime}`:null,t?`DOM Ready: ${t.domReadyTime}`:null,t?`History Length: ${t.historyLength}`:null,t?`Referrer: ${t.referrer}`:null,t?`User Agent: ${t.userAgent}`:null,"",`Generated: ${new Date().toISOString()}`].filter(Boolean).join("\n");try{await navigator.clipboard.writeText(a),u(!0),setTimeout(()=>u(!1),2e3)}catch{}};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:T().sectionHeader,children:[(0,s.jsxs)("h2",{className:T().sectionTitle,children:[(0,s.jsx)("span",{className:T().accentBar}),"Status"]}),(0,s.jsx)("button",{className:`${T().copyAllButton} ${d?T().copyAllButtonCopied:""}`,onClick:A,type:"button",children:d?"✓ Copied!":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f,{})," Copy All"]})})]}),v&&x&&(0,s.jsxs)("div",{className:T().prPreviewBanner,children:[(0,s.jsxs)("div",{className:T().prPreviewHeader,children:[(0,s.jsx)("span",{className:T().prPreviewIcon,children:"\uD83D\uDD00"}),(0,s.jsx)("h3",{className:T().prPreviewTitle,children:"PR Preview Mode Active"})]}),(0,s.jsxs)("div",{className:T().prPreviewContent,children:[(0,s.jsxs)("p",{className:T().prPreviewText,children:["You are viewing: PR #",x]}),(0,s.jsx)("code",{className:T().prPreviewCookieValue,children:v})]}),(0,s.jsxs)("div",{className:T().prPreviewActions,children:[(0,s.jsxs)("a",{className:`${T().prPreviewButton} ${T().prPreviewButtonGitHub}`,href:`https://github.com/fortunemedia/fortune-frontend/pull/${x}`,rel:"noopener noreferrer",target:"_blank",children:[(0,s.jsx)("svg",{fill:"currentColor",height:"14",viewBox:"0 0 16 16",width:"14",children:(0,s.jsx)("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})}),"View PR #",x," on GitHub"]}),(0,s.jsx)("button",{className:`${T().prPreviewButton} ${T().prPreviewButtonShare}`,onClick:$,type:"button",children:p?"✓ Copied!":"\uD83D\uDD17 Share URL"}),(0,s.jsx)("button",{className:`${T().prPreviewButton} ${T().prPreviewButtonExit}`,onClick:()=>{tr.A.remove(to,{domain:`.${window.location.hostname}`,path:"/"}),tr.A.remove(to,{path:"/"});let e=new URL(window.location.href);e.searchParams.has("__prEnvUpstream")?(e.searchParams.delete("__prEnvUpstream"),window.location.href=e.toString()):window.location.reload()},type:"button",children:"\uD83D\uDEAB Exit PR Preview"})]})]}),(0,s.jsxs)("div",{className:T().sectionBlock,children:[(0,s.jsxs)("h3",{className:T().subsectionTitle,children:[(0,s.jsx)("span",{className:T().subsectionAccentBar}),"Backend Services"]}),(0,s.jsxs)("div",{className:T().infoBox,children:[(0,s.jsx)(y,{label:"Wordpress URL",value:j}),(0,s.jsx)(y,{label:"Laravel/GraphQL URL",value:w}),N&&(0,s.jsx)(y,{label:"Payment API",value:N}),S&&(0,s.jsx)(y,{label:"Personalization API",value:S}),C&&(0,s.jsx)(y,{label:"Video API",value:C}),k&&(0,s.jsx)(y,{label:"Piano API",value:k}
1),B&&(0,s.jsx)(y,{label:"Red Ventures GQL",value:B})]})]}),l&&(0,s.jsxs)("div",{className:T().sectionBlock,children:[(0,s.jsxs)("h3",{className:T().subsectionTitle,children:[(0,s.jsx)("span",{className:`${T().subsectionAccentBar} ${T().accentBarWarning}`}),"CI/CD Build Details"]}),(0,s.jsx)("div",{className:T().warningBox,children:"\uD83D\uDD12 Sign in with your Fortune email to view build details."})]}),b&&(0,s.jsxs)("div",{className:T().sectionBlock,children:[(0,s.jsxs)("h3",{className:T().subsectionTitle,children:[(0,s.jsx)("span",{className:`${T().subsectionAccentBar} ${T().accentBarWarning}`}),"CI/CD Build Details",(0,s.jsx)(m,{variant:"warning",children:"Non-Prod Only"})]}),(0,s.jsxs)("div",{className:T().infoBox,children:[(r.version||r.type||r.branch)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:T().borderDivider,children:(0,s.jsxs)("div",{className:T().badgeRow,children:[r.version&&(0,s.jsx)(m,{variant:"info",children:r.version}),r.type&&(0,s.jsx)(m,{variant:"daily"===r.type?"success":"warning",children:r.type}),r.isBeta&&(0,s.jsx)(m,{variant:"warning",children:"Beta"})]})}),r.branch&&(0,s.jsx)(y,{label:"Release Branch",value:r.branch})]}),r.commit?.sha&&(0,s.jsx)(y,{copyValue:r.commit.sha,label:"Full Commit SHA",value:`${r.commit.sha.slice(0,12)}...`}),r.build&&(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid2} ${T().marginBottom12}`,children:[r.build.number&&(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().labelRowSmall,children:"Build #"}),(0,s.jsx)("div",{className:T().statValueLarge,children:r.build.number})]}),r.build.attempt&&(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().labelRowSmall,children:"Attempt"}),(0,s.jsx)("div",{className:`${T().statValueLarge} ${T().statValueSecondary}`,children:r.build.attempt})]})]}),r.build?.timestamp&&(0,s.jsx)(y,{copyValue:r.build.timestamp,label:"Build Timestamp",value:new Date(r.build.timestamp).toLocaleString()}),r.github&&(0,s.jsxs)("div",{className:T().sectionDivider,children:[(0,s.jsx)("div",{className:T().labelRowMargin,children:"GitHub Actions"}),r.github.workflow&&(0,s.jsx)(y,{label:"Workflow",value:r.github.workflow}),r.github.runUrl&&(0,s.jsxs)("div",{className:T().linkRow,children:[(0,s.jsx)("div",{className:T().linkLabel,children:"Run URL"}),(0,s.jsx)("a",{className:T().linkValue,href:r.github.runUrl,rel:"noopener noreferrer",target:"_blank",children:r.github.runUrl})]}),r.github.refName&&(0,s.jsx)(y,{label:"Git Ref",value:r.github.refName})]}),r.aws&&(0,s.jsxs)("div",{className:T().sectionDivider,children:[(0,s.jsx)("div",{className:T().labelRowMargin,children:"AWS Deployment"}),r.aws.region&&(0,s.jsx)(y,{label:"Region",value:r.aws.region}),r.aws.ecr?.repository&&(0,s.jsx)(y,{label:"ECR Repository",value:r.aws.ecr.repository}),r.aws.ecs?.cluster&&(0,s.jsx)(y,{label:"ECS Cluster",value:r.aws.ecs.cluster}),r.aws.ecs?.service&&(0,s.jsx)(y,{label:"ECS Service",value:r.aws.ecs.service}),r.aws.ecr?.tags&&(0,s.jsxs)("div",{className:`${T().badgeRow} ${T().badgeRowMargin}`,children:[r.aws.ecr.tags.commitBuild&&(0,s.jsx)(m,{variant:"default",children:r.aws.ecr.tags.commitBuild}),r.aws.ecr.tags.environment&&(0,s.jsx)(m,{variant:"info",children:r.aws.ecr.tags.environment})]})]})]})]}),t&&(0,s.jsxs)("div",{className:T().sectionBlock,children:[(0,s.jsxs)("h3",{className:T().subsectionTitle,children:[(0,s.jsx)("span",{className:T().subsectionAccentBar}),"Browser & Session"]}),(0,s.jsxs)("div",{className:T().infoBox,children:[(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid2} ${T().marginBottom12}`,children:[(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Viewport"}),(0,s.jsx)("div",{className:T().statValue,children:t.viewport})]}),(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Screen"}),(0,s.jsx)("div",{className:T().statValue,children:t.screenSize})]}),(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Status"}),(0,s.jsx)(m,{variant:t.online?"success":"error",children:t.online?"● Online":"○ Offline"})]}),(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Nav Type"}),(0,s.jsx)("div",{className:T().statValueMuted,children:t.navigationType})]})]}),(0,s.jsx)(y,{label:"Referrer",value:t.referrer}),(0,s.jsx)(y,{label:"Session Duration",value:t.sessionDuration}),(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid2} ${T().marginBottom12}`,children:[t.pageLoadTime&&(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxCompact}`,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Page Load"}),(0,s.jsx)("div",{className:T().statValueSuccess,children:t.pageLoadTime})]}),t.domReadyTime&&(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxCompact}`,children:[(0,s.jsx)("div",{className:T().statLabel,children:"DOM Ready"}),(0,s.jsx)("div",{className:T().statValueSuccess,children:t.domReadyTime})]})]}),t.memoryUsage&&(0,s.jsx)(y,{label:"Memory Usage",value:t.memoryUsage}),(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid3} ${T().marginTop12}`,children:[(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxSmall}`,children:[(0,s.jsx)("div",{className:T().statLabel,children:"History"}),(0,s.jsx)("div",{className:T().statValueSecondary,children:t.historyLength})]}),(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxSmall}`,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Local"}),(0,s.jsx)("div",{className:T().statValueSecondary,children:t.localStorageCount})]}),(0,s.jsxs)("div",{className:`${T().statBox} ${T().statBoxSmall}`,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Session"}),(0,s.jsx)("div",{className:T().statValueSecondary,children:t.sessionStorageCount})]})]}),(0,s.jsxs)("div",{className:T().marginTop12,children:[(0,s.jsx)(y,{label:"Device Pixel Ratio",value:`${t.devicePixelRatio}x`}),(0,s.jsx)(y,{label:"Language",value:t.language})]})]})]})]})};function th(){if("u"<typeof document)return{hasToken:!1,pianoToken:null};let e=document.cookie.split(";").reduce((e,t)=>
1{let[a,s]=t.trim().split("=");return a&&(e[a]=s||""),e},{}).__utp||null;return{hasToken:!!(e&&e.length>0),pianoToken:e}}function tv(){let e={bannerDismissed:!1,categories:{C0001:!1,C0002:!1,C0003:!1,C0004:!1,C0005:!1},rawActiveGroups:null,region:null,tcfString:null},t=window,a=t.OnetrustActiveGroups||"";if(e.rawActiveGroups=a||null,a){let t=a.split(",").map(e=>e.trim()).filter(Boolean);e.categories.C0001=t.includes("C0001"),e.categories.C0002=t.includes("C0002"),e.categories.C0003=t.includes("C0003"),e.categories.C0004=t.includes("C0004"),e.categories.C0005=t.includes("C0005")}let s=document.cookie.split(";").reduce((e,t)=>{let[a,s]=t.trim().split("=");return a&&(e[a]=s||""),e},{});if(e.bannerDismissed=!!s.OptanonAlertBoxClosed,!a){let t=s.OptanonConsent;if(t){let a=decodeURIComponent(t),s=a.match(/groups=([^&]+)/);s&&s[1].split(",").forEach(t=>{let[a,s]=t.split(":");a in e.categories&&(e.categories[a]="1"===s)}),e.bannerDismissed=e.bannerDismissed||a.includes("interactionCount=")&&!a.includes("interactionCount=0")}}if(e.tcfString=s["euconsent-v2"]||null,t.OneTrust?.getGeolocationData)try{let a=t.OneTrust.getGeolocationData();a?.country&&(e.region=a.state?`${a.country}-${a.state}`:a.country)}catch{}return e}let t_={C0001:"Strictly Necessary",C0002:"Performance",C0003:"Functional",C0004:"Targeting/Ads",C0005:"Social Media"},tx=()=>{let e=(0,i.useContext)(ts.R),[t,a]=(0,i.useState)(null),[n,r]=(0,i.useState)({hasToken:!1,pianoToken:null}),[o,l]=(0,i.useState)(!1);(0,i.useEffect)(()=>{a(tv()),r(th());let e=window,t=e.OptanonWrapper;e._devdash_original_wrapper=t,e.OptanonWrapper=()=>{e._devdash_original_wrapper&&e._devdash_original_wrapper(),setTimeout(()=>{a(tv())},100)};let s=setInterval(()=>{let e=tv();a(t=>JSON.stringify(t?.categories)!==JSON.stringify(e.categories)?e:t),r(th())},2e3),i=setTimeout(()=>{clearInterval(s)},1e4);return()=>{clearInterval(s),clearTimeout(i),e._devdash_original_wrapper&&(e.OptanonWrapper=e._devdash_original_wrapper)}},[]);let c=e?.userAccess,d=c?.hasAccess??!1,u=c?.pianoUserToken||null,p=c?.data,v=p?.email||null,_=p?.uid||null,x=p?.sub||null,g=p?.given_name||null,b=p?.family_name||null,j=p?.passwordType||null,w=g||b?[g,b].filter(Boolean).join(" "):null,N=e?.hasConsent,S=e?.personalizedAds,C=e?.performanceTracking,k=e?.pianoLoadingState,B=e?.stopVideoDock,$=!!(p||u&&u.length>0),A=n.hasToken,L=$||A,I=u||n.pianoToken,R=!$&&A,D=async()=>{let e=["=== DevDash User Report ===","","--- Authentication ---",`Logged In: ${L?"Yes":"No"}`,R?"(Detected via cookie - Pages Router)":null,`Subscription Access: ${d?"Yes":"No"}`,`Piano State: ${k||"Unknown"}`,I?`Piano Token: ${I.slice(0,20)}...`:null,"",L?"--- User Profile ---":null,v?`Email: ${v}`:null,w?`Name: ${w}`:null,_?`User ID: ${_}`:null,x?`Subject: ${x}`:null,j?`Auth Method: ${j}`:null,L?"":null,"--- Consent Status ---",`Overall Consent: ${N?"Granted":!1===N?"Denied":"Unknown"}`,`Personalized Ads: ${S?"Yes":!1===S?"No":"Unknown"}`,`Performance Tracking: ${C?"Yes":!1===C?"No":"Unknown"}`,"","--- OneTrust Categories ---",t?Object.entries(t.categories).map(([e,t])=>`${t_[e]||e}: ${t?"Enabled":"Disabled"}`).join("\n"):"Not available","",t?.region?`Region: ${t.region}`:null,t?.tcfString?`TCF String: ${t.tcfString.slice(0,30)}...`:null,"",`Generated: ${new Date().toISOString()}`].filter(Boolean).join("\n");try{await navigator.clipboard.writeText(e),l(!0),setTimeout(()=>l(!1),2e3)}catch{}};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:T().sectionHeader,children:[(0,s.jsxs)("h2",{className:T().sectionTitle,children:[(0,s.jsx)("span",{className:T().accentBar}),"User & Auth"]}),(0,s.jsx)("button",{className:`${T().copyAllButton} ${o?T().copyAllButtonCopied:""}`,onClick:D,type:"button",children:o?"✓ Copied!":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f,{})," Copy All"]})})]}),(0,s.jsxs)("div",{className:`${T().statusBanner} ${L?T().statusBannerLoggedIn:T().statusBannerGuest}`,children:[(0,s.jsx)("span",{className:T().statusBannerIconLarge,children:L?"\uD83D\uDC64":"\uD83D\uDC7B"}),(0,s.jsxs)("div",{className:T().statusBannerColumn,children:[(0,s.jsx)("span",{className:T().statusBannerTextLarge,children:L?"Logged In":"Guest User"}),(0,s.jsx)("span",{className:T().statusBannerSubtext,children:R?"Detected via cookie (Pages Router)":d?"Subscriber":"No subscription"})]}),(0,s.jsxs)("div",{className:T().statusBannerActions,children:[(0,s.jsx)(m,{variant:L?"success":"default",children:L?"Auth":"Guest"}),d&&(0,s.jsx)(m,{variant:"info",children:"Premium"}),R&&(0,s.jsx)(m,{variant:"warning",children:"Cookie"})]})]}),R&&(0,s.jsx)("div",{className:T().warningBox,style:{marginBottom:16},children:"⚠️ User detected via cookie only (Pages Router page). Full profile data unavailable - switch to an App Router page to see complete user details."}),L&&p&&(0,s.jsxs)(h,{title:"User Profile",children:[v&&(0,s.jsx)(y,{copyValue:v,label:"Email",value:v}),w&&(0,s.jsx)(y,{label:"Name",value:w}),_&&(0,s.jsx)(y,{copyValue:_,label:"User ID",value:_}),x&&(0,s.jsx)(y,{copyValue:x,label:"Subject ID",value:x}),j&&(0,s.jsxs)("div",{className:T().dataRow,children:[(0,s.jsx)("span",{className:T().dataRowLabel,children:"Auth Method"}),(0,s.jsx)(m,{variant:"info",children:j})]})]}),(0,s.jsxs)(h,{title:"Piano",children:[(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid2} ${T().marginBottom12}`,children:[(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"SDK Status"}),(0,s.jsx)(m,{variant:"loaded"===k?"success":"failed"===k?"error":"warning",children:k||"Unknown"})]}),(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Access"}),(0,s.jsx)(m,{variant:d?"success":"default",children:d?"Has Access":"No Access"})]})]}),I&&(0,s.jsx)(y,{copyValue:I,label:"Piano Token",value:`${I.slice(0,30)}...`})]}),(0,s.jsxs)(h,{title:"Consent Status",children:[(0,s.jsxs)("div",{className:`${T().statsGrid} ${T().statsGrid3} ${T().marginBottom12}`,children:[(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Overall"}),(0,s.jsx)(m,{variant:N?"success":!1===N?"error":"default",children:N?"Granted":!1===N?"Denied":"?"})]}),(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Ads"}),(0,s.jsx)(m,{variant:S?"success":!1===S?"error":"default",children:S?"Yes":!1===S?"No":"?"})]}),(0,s.jsxs)("div",{className:T().statBox,children:[(0,s.jsx)("div",{className:T().statLabel,children:"Perf"}),(0,s.jsx)(m,{variant:C?"success":!1===C?"error":"default",children:C?"Yes":!1===C?"No":"?"})]})]}),t?.bannerDismissed!==void 0&&(0,s.jsxs)("div",{className:`${T().dataRow} ${T().dataRowMargin}`,children:[(0,s.jsx)("span",{className:T().dataRowLabel,children:"Banner Dismissed"}),(0,s.jsx)(m,{variant:t.bannerDismissed?"success":"warning",children:t.bannerDismissed?"Yes":"No"})]}),t?.region&&(0,s.jsx)(y,{label:"Detected Region",value:t.region})]}),t&&(0,s.jsxs)("div",{className:T().sectionBlock,children:[(0,s.jsxs)("h3",{className:T().subsectionTitle,children:[(0,s.jsx)("span",{className:T().subsectionAccentBar}),"OneTrust Categories"]}),(0,s.jsxs)("div",{className:T().infoBox,children:[t.rawActiveGroups&&(0,s.jsxs)("div",{className:T().debugBox,children:[(0,s.jsx)("span",{className:T().debugLabel,children:"ActiveGroups: "}),(0,s.jsx)("span",{className:T().debugValue,children:t.rawActiveGroups})]}),!t.rawActiveGroups&&(0,s.jsx)("div",{className:T().warningBox,children:"⚠️ OnetrustActiveGroups not set yet - consent may be pending"}),(0,s.jsx)("div",{className:T().consentList,children:Object.entries(t.categories).map(([e,t])=>(0,s.jsxs)("div",{className:T().dataRow,children:[(0,s.jsxs)("div",{className:T().dataRowContent,children:[(0,s.jsx)("span",{className:T().dataRowLabelHighlight,children:e}),(0,s.jsx)("span",{className:T().dataRowLabelSecondary,children:t_[e]})]}),(0,s.jsx)(m,{variant:t?"success":"error",children:t?"On":"Off"})]},e))})]})]}),t?.tcfString&&(0,s.jsx)(h,{title:"TCF Consent (GDPR)",children:(0,s.jsx)(y,{copyValue:t.tcfString,label:"TCF v2 Str
1ing",value:`${t.tcfString.slice(0,40)}...`})}),(0,s.jsx)(h,{title:"Preferences",children:(0,s.jsxs)("div",{className:T().dataRow,children:[(0,s.jsx)("span",{className:T().dataRowLabelSecondary,children:"Stop Video Dock"}),(0,s.jsx)(m,{variant:B?"warning":"default",children:B?"Enabled":"Disabled"})]})})]})},tg="devdash.scrollPositions";function tf(){try{let e=localStorage.getItem(tg);if(!e)return{};let t=JSON.parse(e);if(!t||"object"!=typeof t||Array.isArray(t))return{};return t}catch{return{}}}function tb(e,t){try{let a=tf();a[e]=t,localStorage.setItem(tg,JSON.stringify(a))}catch{}}class ty extends i.Component{constructor(e){super(e),this.state={error:null,hasError:!1}}static getDerivedStateFromError(e){return{error:e,hasError:!0}}componentDidCatch(e,t){}render(){return this.state.hasError?(0,s.jsxs)("div",{style:{color:"var(--dd-error)",padding:20},children:[(0,s.jsx)("div",{style:{fontSize:14,fontWeight:600,marginBottom:8},children:"⚠️ Error rendering section"}),(0,s.jsx)("div",{style:{color:"var(--dd-text-secondary)",fontFamily:"monospace",fontSize:11},children:this.state.error?.message||"Unknown error"})]}):this.props.children}}let tj=({activeTab:e})=>{switch(e){case"status":return(0,s.jsx)(tp,{});case"cache":return(0,s.jsx)(M,{});case"cwv":return(0,s.jsx)(e1,{});case"experiments":return(0,s.jsx)(ta,{});case"page-context":return(0,s.jsx)(tn,{});case"user":return(0,s.jsx)(tx,{});case"ads":return(0,s.jsx)(A,{});case"cookies":return(0,s.jsx)(W,{});default:return(0,s.jsxs)("div",{style:{alignItems:"center",color:"var(--dd-text-muted)",display:"flex",flexDirection:"column",justifyContent:"center",paddingBottom:64,paddingTop:64},children:[(0,s.jsx)("span",{style:{fontSize:32,marginBottom:16},children:"\uD83D\uDEA7"}),(0,s.jsx)("span",{style:{fontWeight:500},children:"Coming Soon"})]})}},tw=()=>{let{state:e}=(0,n.useDevDash)(),t=(0,i.useRef)(null),a=(0,i.useRef)(e.activeTab),r=(0,i.useRef)(0);return(0,i.useEffect)(()=>{let s=t.current;if(!s)return;let i=a.current;i!==e.activeTab&&(tb(i,r.current),a.current=e.activeTab);let n=tf()[e.activeTab],o="number"==typeof n?n:0;s.scrollTop=o,r.current=o},[e.activeTab]),(0,i.useEffect)(()=>{let a=t.current;if(!a)return;let s=0,i=()=>{r.current=a.scrollTop,s||(s=requestAnimationFrame(()=>{s=0,tb(e.activeTab,r.current)}))};return a.addEventListener("scroll",i,{passive:!0}),()=>{a.removeEventListener("scroll",i),s&&cancelAnimationFrame(s)}},[e.activeTab]),(0,s.jsx)("div",{ref:t,style:{backgroundColor:"var(--dd-bg-primary)",color:"var(--dd-text-primary)",flex:1,overflowX:"hidden",overflowY:"auto",padding:"20px 12px 20px 20px"},children:(0,s.jsx)(ty,{children:(0,s.jsx)(tj,{activeTab:e.activeTab})},e.activeTab)})};var tN=a(87358);let tS=()=>{let e=tN.env.BUILD_VERSION||tN.env.VERCEL_GIT_COMMIT_SHA?.slice(0,7);return(0,s.jsxs)("footer",{style:{alignItems:"center",backgroundColor:"var(--dd-bg-secondary)",borderTop:"1px solid var(--dd-border)",color:"var(--dd-text-muted)",display:"flex",flexShrink:0,fontSize:10,gap:8,height:32,justifyContent:"center",padding:"0 12px"},children:[(0,s.jsx)("kbd",{style:{backgroundColor:"var(--dd-bg-elevated)",border:"1px solid var(--dd-border)",borderRadius:3,color:"var(--dd-text-secondary)",fontFamily:"inherit",fontSize:9,fontWeight:600,padding:"2px 6px"},children:"Ctrl+."}),(0,s.jsx)("span",{style:{opacity:.6},children:"toggle devdash"}),e&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{style:{opacity:.3},children:"•"}),(0,s.jsxs)("span",{style:{color:"var(--dd-accent)",fontWeight:500},children:["build: v",e]})]})]})};var tC=a(80174);let tk=()=>{let{environment:e,setIsOpen:t}=(0,n.useDevDash)(),a=(0,tC.Gc)();return(0,s.jsxs)("header",{className:c().header,children:[(0,s.jsxs)("div",{className:c().headerBrand,children:[(0,s.jsx)("div",{className:c().headerLogo,children:(0,s.jsx)("span",{className:c().headerLogoText,children:"D"})}),(0,s.jsx)("span",{className:c().headerTitle,children:"DevDash"}),(0,s.jsx)("span",{className:c().headerEnvBadge,style:{background:`${a}20`,color:a},children:e})]}),(0,s.jsx)("button",{"aria-label":"Close DevDash",className:c().headerCloseBtn,onClick:()=>t(!1),title:"Close (Esc)",type:"button",children:"✕"})]})},tB=[{icon:"\uD83D\uDCCA",id:"status",label:"Status",shortLabel:"Status"}
1,{icon:"\uD83D\uDCBE",id:"cache",label:"Cache",shortLabel:"Cache"},{icon:"\uD83D\uDCC8",id:"cwv",label:"Core Web Vitals",shortLabel:"CWV"},{icon:"\uD83E\uDDEA",id:"experiments",label:"Experiments",shortLabel:"Exps"},{icon:"\uD83D\uDCC4",id:"page-context",label:"Page Context",shortLabel:"Page"},{icon:"\uD83D\uDC64",id:"user",label:"User & Auth",shortLabel:"User"},{icon:"\uD83D\uDCE2",id:"ads",label:"Ads",shortLabel:"Ads"},{icon:"\uD83C\uDF6A",id:"cookies",label:"Cookies",shortLabel:"Cookies"}],tT=()=>{let{state:e,setActiveTab:t,setThemeMode:a,logout:i}=(0,n.useDevDash)(),r="light"===e.themeMode;return(0,s.jsxs)("nav",{"aria-label":"DevDash navigation",className:c().navSidebar,children:[(0,s.jsx)("div",{className:c().navTabList,children:tB.map(a=>{let i=e.activeTab===a.id;return(0,s.jsxs)("button",{"aria-current":i?"page":void 0,"aria-label":a.label,className:(0,o.A)(c().navTab,i&&c().navTabActive),onClick:()=>t(a.id),title:a.label,type:"button",children:[(0,s.jsx)("span",{className:c().navTabIcon,children:a.icon}),(0,s.jsx)("span",{className:c().navTabLabel,children:a.shortLabel})]},a.id)})}),(0,s.jsxs)("div",{className:c().navActions,children:[(0,s.jsxs)("button",{"aria-label":r?"Switch to dark mode":"Switch to light mode",className:(0,o.A)(c().navActionBtn,c().navActionBtnTheme),onClick:()=>{a(r?"dark":"light")},title:r?"Switch to dark mode":"Switch to light mode",type:"button",children:[(0,s.jsx)("span",{className:c().navActionIcon,children:r?"\uD83C\uDF19":"☀️"}),(0,s.jsx)("span",{className:c().navActionLabel,children:r?"Dark":"Light"})]}),(0,s.jsxs)("button",{"aria-label":"Disable DevDash",className:(0,o.A)(c().navActionBtn,c().navActionBtnLogout),onClick:()=>{window.confirm("This will disable DevDash access. Use Ctrl+. or visit /?devdash=true to re-enable it.")&&i()},title:"Disable DevDash access",type:"button",children:[(0,s.jsx)("span",{className:c().navActionIcon,children:"⏻"}),(0,s.jsx)("span",{className:c().navActionLabel,children:"Off"})]})]})]})},t$="devdash.panelWidth",tA=()=>{let{state:e}=(0,n.useDevDash)(),[t,a]=(0,i.useState)(!1),[r,o]=(0,i.useState)(!1),[l,c]=(0,i.useState)(420),[d,u]=(0,i.useState)(!1),[m,p]=(0,i.useState)(!1),h=(0,i.useRef)(null);(0,i.useEffect)(()=>{c(function(){try{let e=localStorage.getItem(t$);if(e){let t=parseInt(e,10);if(t>=320&&t<=800)return t}}catch{}return 420}());let e=()=>{p(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let v=(0,i.useCallback)(e=>{e.preventDefault(),u(!0),h.current={startWidth:l,startX:e.clientX}},[l]);if((0,i.useEffect)(()=>{if(!d)return;let e=e=>{if(!h.current||m)return;let t=h.current.startX-e.clientX,a=Math.min(800,Math.max(320,h.current.startWidth+t));c(a),document.body.style.marginRight=`${a}px`},t=()=>{u(!1);try{localStorage.setItem(t$,String(l))}catch{}h.current=null};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),document.body.style.userSelect="none",document.body.style.cursor="ew-resize",()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t),document.body.style.userSelect="",document.body.style.cursor=""}},[d,l,m]),(0,i.useEffect)(()=>{if(e.isOpen)a(!0),o(!1);else if(t){o(!0);let e=setTimeout(()=>{a(!1),o(!1)},200);return()=>clearTimeout(e)}},[e.isOpen,t]),(0,i.useEffect)(()=>(e.isOpen&&!m?(document.body.style.marginRight=`${l}px`,document.body.style.transition=d?"none":"margin-right 0.2s ease"):document.body.style.marginRight="0px",()=>{document.body.style.marginRight="0px",document.body.style.transition=""}),[e.isOpen,l,d,m]),(0,i.useEffect)(()=>{if(!e.isOpen)return;let t=()=>{document.querySelectorAll("*").forEach(e=>{let t=window.getComputedStyle(e),a=parseInt(t.zIndex,10),s="fixed"===t.position,i=e.className?.includes?.("s2n")||e.className?.includes?.("stn")||e.getAttribute?.("data-content-placement")==="stn-video"||e.getAttribute?.("data-type")==="float";s&&i&&a>=99998&&(e.style.zIndex="99990")})};t();let a=new MutationObserver(()=>{t()});a.observe(document.body,{attributeFilter:["style","class"],attributes:!0,childList:!0,subtree:!0});let s=setInterval(t,1e3);return()=>{a.disconnect(),clearInterval(s)}},[e.isOpen]),!t)return null;let _=`
2    /* DevDash: Override floating video player z-index */
3    .s2nPlayer[data-type="float"],
4    .stn-video-player[data-type="float"],
5    [class*="s2n"][style*="position: fixed"],
6    [class*="stn"][style*="position: fixed"],
7    div[style*="position: fixed"][style*="z-index: 999"],
8    div[style*="position: fixed"][style*="z-index: 9999"],
9    div[style*="position: fixed"][style*="z-index: 99999"],
10    div[style*="position: fixed"][style*="z-index: 999999"],
11    .s2nFloatingPlayer,
12    [data-content-placement="stn-video"][style*="position: fixed"] {
13      z-index: 99990 !important;
14    }
15    /* Target the video wrapper that floats */
16    div[class*="s2n"] > div[style*="fixed"],
17    div[class*="stn"] > div[style*="fixed"] {
18      z-index: 99990 !important;
19    }
20    
21    /* DevDash: Theme-aware scrollbars - Dark mode (default) */
22    [data-devdash]::-webkit-scrollbar,
23    [data-devdash] *::-webkit-scrollbar {
24      width: 8px !important;
25      height: 8px !important;
26    }
27    [data-devdash]::-webkit-scrollbar-track,
28    [data-devdash] *::-webkit-scrollbar-track {
29      background: var(--dd-scrollbar-track, #12121c) !important;
30      border-radius: 4px !important;
31    }
32    [data-devdash]::-webkit-scrollbar-thumb,
33    [data-devdash] *::-webkit-scrollbar-thumb {
34      background: var(--dd-scrollbar-thumb, #3a3a50) !important;
35      border-radius: 4px !important;
36      border: 2px solid var(--dd-scrollbar-track, #12121c) !important;
37    }
38    [data-devdash]::-webkit-scrollbar-thumb:hover,
39    [data-devdash] *::-webkit-scrollbar-thumb:hover {
40      background: var(--dd-scrollbar-thumb-hover, #4a4a60) !important;
41    }
42    [data-devdash]::-webkit-scrollbar-corner,
43    [data-devdash] *::-webkit-scrollbar-corner {
44      background: var(--dd-scrollbar-track, #12121c) !important;
45    }
46    /* Firefox scrollbar styling */
47    [data-devdash],
48    [data-devdash] * {
49      scrollbar-width: thin !important;
50      scrollbar-color: var(--dd-scrollbar-thumb, #3a3a50) var(--dd-scrollbar-track, #12121c) !important;
51    }
52  `;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:_}}),(0,s.jsxs)("aside",{"aria-label":"DevDash Developer Dashboard","data-devdash":!0,"data-theme":e.themeMode,style:{backgroundColor:"var(--dd-bg-primary)",borderLeft:m?"none":"1px solid var(--dd-border)",bottom:0,boxShadow:m?"none":"light"===e.themeMode?"-4px 0 24px rgba(0,0,0,0.15)":"-4px 0 24px rgba(0,0,0,0.5)",color:"var(--dd-text-primary)",display:"flex",flexDirection:"column",fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',fontSize:12,left:m?0:"auto",position:"fixed",right:0,top:0,transform:r?"translateX(100%)":"translateX(0)",transition:d?"none":"transform 0.2s ease-out, width 0.1s ease-out",width:m?"100%":l,zIndex:99998},children:[!m&&(0,s.jsx)("div",{"aria-label":"Resize panel","aria-orientation":"horizontal",onKeyDown:e=>{if("ArrowLeft"===e.key||"ArrowRight"===e.key){e.preventDefault();let t="ArrowLeft"===e.key?20:-20;c(Math.max(300,Math.min(window.innerWidth-100,l+t)))}},onMouseDown:v,onMouseEnter:e=>{d||(e.target.style.backgroundColor="rgba(99, 102, 241, 0.3)")},onMouseLeave:e=>{d||(e.target.style.backgroundColor="transparent")},role:"separator",style:{backgroundColor:d?"rgba(99, 102, 241, 0.5)":"transparent",bottom:0,cursor:"ew-resize",left:0,position:"absolute",top:0,transition:"background-color 0.15s ease",width:6,zIndex:10},tabIndex:0,title:"Drag to resize panel"}),(0,s.jsx)(tk,{}),(0,s.jsxs)("div",{style:{display:"flex",flex:1,overflow:"hidden"},children:[(0,s.jsx)(tw,{}),(0,s.jsx)(tT,{})]}),(0,s.jsx)(tS,{})]})]})}},39528:e=>{e.exports={sectionHeader:"sections_sectionHeader__TMKsK",sectionTitle:"sections_sectionTitle__z9PFX",sectionTitleLarge:"sections_sectionTitleLarge__cYrjK",accentBar:"sections_accentBar__yfVZs",accentBarLarge:"sections_accentBarLarge__1623W",accentBarWarning:"sections_accentBarWarning___g_ey",subsectionHeader:"sections_subsectionHeader__S7P6g",subsectionTitle:"sections_subsectionTitle__Ee_xY",subsectionAccentBar:"sections_subsectionAccentBar__xJYbf",copyAllButton:"sections_copyAllButton__EM6pu",copyAllButtonCopied:"sections_copyAllButtonCopied__OXyMS",smallButton:"sections_smallButton__XRXXQ",refreshButton:"sections_refreshButton__6IzWw",clearAllButton:"sections_clearAllButton__SYZD9",actionButton:"sections_actionButton__5kQ0u",infoBox:"sections_infoBox__cpyR0",infoBoxFlat:"sections_infoBoxFlat__Ma95p",sectionBlock:"sections_sectionBlock__gm1W4",statsGrid:"sections_statsGrid__K8wvS",statsGrid2:"sections_statsGrid2__I_4Hu",statsGrid3:"sections_statsGrid3__crGg_",statsGrid4:"sections_statsGrid4__NnR80",statsGrid5:"sections_statsGrid5__rInEL",statBox:"sections_statBox__3iLZn",statBoxCompact:"sections_statBoxCompact__hzlB6",statBoxSmall:"sections_statBoxSmall__n6vau",statLabel:"sections_statLabel__AvOvb",statLabelSmall:"sections_statLabelSmall__lGjU8",statValue:"sections_statValue__mGBVM",statValueLarge:"sections_statValueLarge__irWfs",statValueSecondary:"sections_statValueSecondary___n8UW",statValueSuccess:"sections_statValueSuccess__kPORw",statValueMuted:"sections_statValueMuted__iUN8Y",statValueWordBreak:"sections_statValueWordBreak__YCPWf",statusBanner:"sections_statusBanner__lEcx8",statusBannerApp:"sections_statusBannerApp__hLopI",statusBannerPages:"sections_statusBannerPages__4JTvu",statusBannerUnknown:"sections_statusBannerUnknown__mawai",statusBannerLoggedIn:"sections_statusBannerLoggedIn__7_3el",statusBannerGuest:"sections_statusBannerGuest__8KLR5",statusBannerIcon:"sections_statusBannerIcon__Rt7Na",statusBannerIconLarge:"sections_statusBannerIconLarge__UeKcF",statusBannerText:"sections_statusBannerText__eyNLG",statusBannerTextLarge:"sections_statusBannerTextLarge__UIiGZ",statusBannerSubtext:"sections_statusBannerSubtext__rpXki",statusBannerColumn:"sections_statusBannerColumn__COi3e",statusBannerActions:"sections_statusBannerActions__kbDuX",searchContainer:"sections_searchContainer__8hsv_",searchBox:"sections_searchBox__ffDSK",searchIcon:"sections_searchIcon__zxTmj",searchInput:"sections_searchInput__2Ajrm",searchClear:"sections_searchClear__bppsr",searchInputSimple:"sections_searchInputSimple__eUn3M",filterTabs:"sections_filterTabs__jZ4Zh",filterTab:"sections_filterTab__34E_U",filterTabActive:"sections_filterTabActive__mua72",filterTabCount:"sections_filterTabCount__4tlMR",filterTabCountActive:"sections_filterTabCountActive__vAm9E",categoryGrid:"sections_categoryGrid__iT6pM",categoryButton:"sections_categoryButton__kS0aY",categoryButtonDisabled:"sections_categoryButtonDisabled__IfNlH",categoryButtonActive:"sections_categoryButtonActive__EEEyN",categoryIcon:"sections_categoryIcon__q_T59",categoryCount:"sections_categoryCount__uIYyi",categoryCountActive:"sections_categoryCountActive__cDlEj",categoryLabel:"sections_categoryLabel__ou7_v",categoryLabelActive:"sections_categoryLabelActive__cuo3_",emptyState:"sections_emptyState__P_5pI",emptyStateIcon:"sections_emptyStateIcon__EnCCg",emptyStateTitle:"sections_emptyStateTitle__ouJNh",emptyStateSubtitle:"sections_emptyStateSubtitle__wZeIY",experimentCard:"sections_experimentCard__8zD32",experimentCardHeader:"sections_experimentCardHeader__v6loZ",experimentCardTitle:"sections_experimentCardTitle__MklAY",experimentCardBody:"sections_experimentCardBody__0iqIE",experimentCardActions:"sections_experimentCardActions__WC4x1",variantButtons:"sections_variantButtons__NQ2pl",variantButton:"sections_variantButton__OS47e",variantButtonActive:"sections_variantButtonActive__6s_t7",variantBadge:"sections_variantBadge__arVrv",customVariantButton:"sections_customVariantButton__WCsWa",customVariantButtonActive:"sections_customVariantButtonActive__jtxVA",overrideBadge:"sections_overrideBadge__5gbX2",overrideBadgeClose:"sections_overrideBadgeClose__zgZQb",customInputBox:"sections_customInputBox__0yg7y",customInputRow:"sections_customInputRow__wNPHh",customInput:"sections_customInput__t_1yV",customInputApply:"sections_customInputApply__0q9OS",customInputApplyEnabled:"sections_customInputApplyEnabled__d7YRX",customInputHint:"sections_customInputHint__FkXWK",cookieCard:"sections_cookieCard__QJh9M",cookieCardBorderSuccess:"sections_cookieCardBorderSuccess__iwzoX",cookieCardBorderInfo:"sections_cookieCardBorderInfo___JxNY",cookieCardBorderWarning:"sections_cookieCardBorderWarning__vP3DF",cookieCardBorderError:"sections_cookieCardBorderError__nxXDx",cookieCardBorderDefault:"sections_cookieCardBorderDefault__tcALI",cookieCardHeader:"sections_cookieCardHeader__YruEW",cookieCardName:"sections_cookieCardName__Y_7rH",cookieCardDesc:"sections_cookieCardDesc__O3NhO",cookieCardActions:"sections_cookieCardActions__HKJqr",cookieCardValue:"sections_cookieCardValue__VeL3n",cookieCardValueCollapsed:"sections_cookieCardValueCollapsed__WX39o",cookieCardExpandButton:"sections_cookieCardExpandButton__zT5wJ",copyButton:"sections_copyButton__F5_6e",copyButtonCopied:"sections_copyButtonCopied__cA8bJ",deleteButton:"sections_deleteButton__vp9Wq",deleteButtonFailed:"sections_deleteButtonFailed__twETw",shake:"sections_shake__1Gjl_",editButton:"sections_editButton__rTAbL",cookieEditForm:"sections_cookieEditForm__dAXcF",cookieEditInput:"sections_cookieEditInput__blLSU",cookieEditActions:"sections_cookieEditActions__UR_bZ",cookieEditCancel:"sections_cookieEditCancel__qy2z3",cookieEditSave:"sections_cookieEditSave__W_ZmT",cookieEditHint:"sections_cookieEditHint__PL0vR",addButton:"sections_addButton__x8GgH",addCookieForm:"sections_addCookieForm__RKrUh",addCookieHeader:"sections_addCookieHeader__KzOP2",addCookieTitle:"sections_addCookieTitle__DOJ0e",addCookieTabs:"sections_addCookieTabs__2CE04",addCookieTab:"sections_addCookieTab__trKf2",addCookieTabActive:"sections_addCookieTabActive__5
52H2Fz",addCookieBody:"sections_addCookieBody__Ixgd5",addCookieField:"sections_addCookieField__Ev5JL",addCookieLabel:"sections_addCookieLabel__gJ3ts",addCookieInput:"sections_addCookieInput__Q4kO5",addCookieTextarea:"sections_addCookieTextarea__naXse",addCookiePreview:"sections_addCookiePreview__iVrx1",addCookiePreviewLabel:"sections_addCookiePreviewLabel__64Hfc",addCookiePreviewValue:"sections_addCookiePreviewValue__hNHpM",addCookieActions:"sections_addCookieActions__E4aPv",adStatusCard:"sections_adStatusCard__CV43z",adStatusLabel:"sections_adStatusLabel__RsIqz",adStatusValue:"sections_adStatusValue__yUf0Q",adStatusValueSuccess:"sections_adStatusValueSuccess__r3L6H",adStatusValueError:"sections_adStatusValueError__aQy_h",adStatusValueDefault:"sections_adStatusValueDefault__W7Ssr",sponsorCard:"sections_sponsorCard__iqeoh",sponsorTitle:"sections_sponsorTitle__EWmwZ",sponsorValue:"sections_sponsorValue__YvgXT",adSlotCard:"sections_adSlotCard__Kegh7",adSlotHeader:"sections_adSlotHeader___yrAX",adSlotId:"sections_adSlotId__q0NT_",adSlotInfo:"sections_adSlotInfo__emayW",adSlotInfoValue:"sections_adSlotInfoValue___4i30",showOnPageButton:"sections_showOnPageButton__g5i_M",listContainer:"sections_listContainer__SEiqC",listContainerScrollable:"sections_listContainerScrollable__hnQiy",listContainerSmall:"sections_listContainerSmall__S333w",resultCount:"sections_resultCount__dewYF",dataRow:"sections_dataRow__M25Xi",dataRowMargin:"sections_dataRowMargin__pQrsP",dataRowLabel:"sections_dataRowLabel__JclBz",dataRowLabelSecondary:"sections_dataRowLabelSecondary__T5nL9",dataRowLabelHighlight:"sections_dataRowLabelHighlight__vL7WG",dataRowContent:"sections_dataRowContent__a8Ew1",debugBox:"sections_debugBox___zW8K",debugLabel:"sections_debugLabel__IWpL_",debugValue:"sections_debugValue__iv3Gw",warningBox:"sections_warningBox___h67o",consentList:"sections_consentList__OWsev",linkRow:"sections_linkRow__OPKdx",linkLabel:"sections_linkLabel__Lvq1s",linkValue:"sections_linkValue__0HUVl",preBlock:"sections_preBlock__Kn_3P",sectionDivider:"sections_sectionDivider__LaacQ",labelRow:"sections_labelRow__46yXA",labelRowMargin:"sections_labelRowMargin__z2lQQ",labelRowSmall:"sections_labelRowSmall__4Saby",badgeRow:"sections_badgeRow__SrwLx",badgeRowMargin:"sections_badgeRowMargin__0vlRc",borderDivider:"sections_borderDivider__biYEN",flexContent:"sections_flexContent__UMxD8",flexRow:"sections_flexRow__sF2o6",flexRowGap8:"sections_flexRowGap8__8mmZJ",flexRowGap12:"sections_flexRowGap12__lDD3x",marginTop8:"sections_marginTop8__uUH7B",marginTop12:"sections_marginTop12__iJ_d4",marginBottom12:"sections_marginBottom12__SvCnn",prPreviewBanner:"sections_prPreviewBanner__6i4Sk",prPreviewHeader:"sections_prPreviewHeader__If5K7",prPreviewIcon:"sections_prPreviewIcon__RCjlN",prPreviewTitle:"sections_prPreviewTitle__oWBMH",prPreviewContent:"sections_prPreviewContent__koSbf",prPreviewText:"sections_prPreviewText__OpFm7",prPreviewCookieValue:"sections_prPreviewCookieValue__tVarz",prPreviewActions:"sections_prPreviewActions__d0xvt",prPreviewButton:"sections_prPreviewButton__DARQp",prPreviewButtonGitHub:"sections_prPreviewButtonGitHub__cLBZC",prPreviewButtonExit:"sections_prPreviewButtonExit__vDGoW",prPreviewButtonShare:"sections_prPreviewButtonShare__LWQQX",cacheStatusCard:"sections_cacheStatusCard__eSyVi",cacheStatusMain:"sections_cacheStatusMain__CdrE_",cacheStatusLabel:"sections_cacheStatusLabel__D2AUO",cacheStatusMeta:"sections_cacheStatusMeta__I8QU8",ttlProgressContainer:"sections_ttlProgressContainer__IvsGt",ttlProgressBar:"sections_ttlProgressBar__2FFSw",ttlProgressFill:"sections_ttlProgressFill__yTZv4",ttlFresh:"sections_ttlFresh__Cfqmi",ttlExpiring:"sections_ttlExpiring__gxKmI",ttlExpired:"sections_ttlExpired__b6Z2P",ttlLabels:"sections_ttlLabels__bu1F_",ttlUsed:"sections_ttlUsed__UPlJP",ttlRemaining:"sections_ttlRemaining__LSZdL",cacheControlRaw:"sections_cacheControlRaw__l0WCx",headerActions:"sections_headerActions__9L4oO",loadingState:"sections_loadingState__caAID",loadingSpinner:"sections_loadingSpinner__Su05_",spin:"sections_spin__QoB41",errorState:"sections_errorState__vTKRo",errorIcon:"sections_errorIcon__C_zrW",errorMessage:"sections_errorMessage___x4eD",retryButton:"sections_retryButton__8PMv8",emptyStateSmall:"sections_emptyStateSmall__aFfOT",collapsibleHeader:"sections_collapsibleHeader__ufAJm",collapsibleCount:"sections_collapsibleCount__HfKTx",collapsibleIcon:"sections_collapsibleIcon__5C0Ym"}},68041:()=>{},81855:e=>{e.exports={badge:"primitives_badge__h3H4v",badgeSm:"primitives_badgeSm__H8iDH",badgeMd:"primitives_badgeMd__HKOxf",badgeDefault:"primitives_badgeDefault__rzggN",badgeSuccess:"primitives_badgeSuccess__dUzzV",badgeWarning:"primitives_badgeWarning__zWfag",badgeError:"primitives_badgeError__8035P",badgeInfo:"primitives_badgeInfo__9acEa",badgeAccent:"primitives_badgeAccent__l2yQN",card:"primitives_card__NmO_R",section:"primitives_section__s66DZ",sectionHeader:"primitives_sectionHeader__3CwnJ",sectionAccent:"primitives_sectionAccent___TNrj",sectionAction:"primitives_sectionAction__aHrRt",sectionContent:"primitives_sectionContent__eyHEN",tagList:"primitives_tagList__Roz5V",tagListEmpty:"primitives_tagListEmpty__BVgF0",button:"primitives_button__1_1EV",buttonSm:"primitives_buttonSm__WrjJt",buttonMd:"primitives_buttonMd__AxA11",buttonLg:"primitives_buttonLg__WHwup",buttonDefault:"primitives_buttonDefault__v4bPp",buttonPrimary:"primitives_buttonPrimary__1x8Br",buttonDanger:"primitives_buttonDanger__NByCx",buttonGhost:"primitives_buttonGhost__eCkaw",iconButton:"primitives_iconButton__iY9px",iconButtonGhost:"primitives_iconButtonGhost__kWZpQ",iconButtonDefault:"primitives_iconButtonDefault__6cGth",iconButtonSm:"primitives_iconButtonSm__NpPWB",iconButtonMd:"primitives_iconButtonMd__WDyAR",iconButtonLg:"primitives_iconButtonLg__O5lNF",keyValue:"primitives_keyValue__oGSC0",keyValueLabel:"primitives_keyValueLabel__zSNj1",keyValueContent:"primitives_keyValueContent__S94_3",keyValueValue:"primitives_keyValueValue__PuJdR",keyValueMono:"primitives_keyValueMono__icYQ
52F",keyValueCopyBtn:"primitives_keyValueCopyBtn__I_AUP",keyValueCopySuccess:"primitives_keyValueCopySuccess__fSJYU",keyValueCopyDefault:"primitives_keyValueCopyDefault___w0Bh",kvRow:"primitives_kvRow__JLLEk",kvRowLabel:"primitives_kvRowLabel__u1keI",kvRowValue:"primitives_kvRowValue__CDOQW",kvRowValueText:"primitives_kvRowValueText__11osz",kvRowEmpty:"primitives_kvRowEmpty__ef7IJ",kvRowCopyBtn:"primitives_kvRowCopyBtn__sLZlw",kvRowCopyDefault:"primitives_kvRowCopyDefault__8Um5h",kvRowCopySuccess:"primitives_kvRowCopySuccess__eZqNd",statusDot:"primitives_statusDot__CaKiE",statusDotOnline:"primitives_statusDotOnline__F1Wu_",statusDotOffline:"primitives_statusDotOffline__MVG_4",statusDotWarning:"primitives_statusDotWarning__xwdrQ",statusDotUnknown:"primitives_statusDotUnknown__o49h1",statusDotPulse:"primitives_statusDotPulse__eiWBg","dd-pulse":"primitives_dd-pulse__tlSZ7",divider:"primitives_divider__pDtO5",emptyState:"primitives_emptyState__bRXp6",emptyStateIcon:"primitives_emptyStateIcon__EqrYq",emptyStateTitle:"primitives_emptyStateTitle__ZTUTM",emptyStateDesc:"primitives_emptyStateDesc__MY5hX",inputWrapper:"primitives_inputWrapper__lv9o7",inputIcon:"primitives_inputIcon__t_S3n",input:"primitives_input__IzOQH",toggle:"primitives_toggle__AVNCH",toggleTrack:"primitives_toggleTrack__VX_pD",toggleTrackOff:"primitives_toggleTrackOff__Xjkjy",toggleTrackOn:"primitives_toggleTrackOn__HKhyx",toggleKnob:"primitives_toggleKnob__hyFDl",toggleKnobOff:"primitives_toggleKnobOff__1J_sd",toggleKnobOn:"primitives_toggleKnobOn___jDi0",toggleLabel:"primitives_toggleLabel__dg1IW",tabs:"primitives_tabs__AuapA",tab:"primitives_tab__l1B3h",tabActive:"primitives_tabActive__4uTPH",tabInactive:"primitives_tabInactive__J__kl",tabCount:"primitives_tabCount__LZM6X",tabCountActive:"primitives_tabCountActive__h6TX1",tabCountInactive:"primitives_tabCountInactive__bj1n6",metricCard:"primitives_metricCard__vCKvy",metricHeader:"primitives_metricHeader__TALND",metricLabel:"primitives_metricLabel__xlFW7",metricBody:"primitives_metricBody__WlYII",metricIcon:"primitives_metricIcon__kF31u",metricValue:"primitives_metricValue__MF6kv",metricUnit:"primitives_metricUnit__xKKYy",grid:"primitives_grid__5dhBo",grid1:"primitives_grid1__tjkbd",grid2:"primitives_grid2__x9fBi",grid3:"primitives_grid3__oK80J",stack:"primitives_stack__Wp4dG",stackRow:"primitives_stackRow__ra2Ym",stackColumn:"primitives_stackColumn__fMv9i",stackWrap:"primitives_stackWrap__2kXBJ",textPrimary:"primitives_textPrimary__78RzO",textSecondary:"primitives_textSecondary__sFTK5",textMuted:"primitives_textMuted__MLvqc",textSuccess:"primitives_textSuccess__ccDn5",textError:"primitives_textError__sDE9T",textWarning:"primitives_textWarning__nSSRv",textAccent:"primitives_textAccent__LU1yk",textMono:"primitives_textMono__Tv6ey",textTruncate:"primitives_textTruncate__UnjvF",text2xs:"primitives_text2xs___Uc8S",textXs:"primitives_textXs__4HziC",textSm:"primitives_textSm__fvpek",textMd:"primitives_textMd__FArR6",textBase:"primitives_textBase__xxWY7",textLg:"primitives_textLg__hg7yE",textXl:"primitives_textXl__Mb3aK",text2xl:"primitives_text2xl__KgRMq",text3xl:"primitives_text3xl__QKk30",text4xl:"primitives_text4xl__XjpAJ",text5xl:"primitives_text5xl__mzjxz",fontNormal:"primitives_fontNormal__FSZf7",fontMedium:"primitives_fontMedium__UDsRb",fontSemibold:"primitives_fontSemibold___hwhi",fontBold:"primitives_fontBold__GLQ4s",header:"primitives_header__rK7kH",headerBrand:"primitives_headerBrand__XbWte",headerLogo:"primitives_headerLogo__Pjwfs",headerLogoText:"primitives_headerLogoText__ZtB__",headerTitle:"primitives_headerTitle__oPB8v",headerEnvBadge:"primitives_headerEnvBadge__OUCId",headerCloseBtn:"primitives_headerCloseBtn__xFLX2",navSidebar:"primitives_navSidebar__eBYYF",navTabList:"primitives_navTabList__ms6lx",navTab:"primitives_navTab__0_XmA",navTabActive:"primitives_navTabActive__MUa1P",navTabIcon:"primitives_navTabIcon__od3hd",navTabLabel:"primitives_navTabLabel__w99Ra",navActions:"primitives_navActions__evZyx",navActionBtn:"primitives_navActionBtn__oKL7r",navActionIcon:"primitives_navActionIcon__J_dkZ",navActionLabel:"primitives_navActionLabel__WHz6h",navActionBtnTheme:"primitives_navActionBtnTheme__QU6Ne",n
52avActionBtnLogout:"primitives_navActionBtnLogout__7Mgaj"}}}]);

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.