1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[532],{22057: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__icYQF",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__sFT
1K5",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",navActionBtnLogout:"primitives_navActionBtnLogout__7Mgaj"}},40950: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
1H2Fz",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"}},42566:()=>{},60532:(e,t,a)=>{"use strict";a.r(t),a.d(t,{DevDashOverlay:()=>tV});var s=a(37876),i=a(14232),n=a(49578);class r{withPlacement(e){return this.slots.push({id:this.generateSlotId(e),index:this.getSlotIndex(e),placementName:e}),this}build(){return this.slots}getSlotIndex(e){return this.slotCounter[e]+1}generateSlotId(e){return void 0!==this.slotCounter[e]?this.slotCounter[e]+=1:this.slotCounter[e]=0,`${e}${this.slotCounter[e]}`}constructor(){this.slots=[],this.slotCounter={}}}var o=a(55253);let l={classifications_watson:{categories:"$alchemy_taxonomy",concepts:"$alchemy_concepts",keywords:"$alchemy_ke
1ywords"},contentPublishDate:null,contentSection:"",contentTags:[],dayOfWeek:(0,a(53623).mK)(),LoginStatus:!1,pageType:o.g.NoType,title:""};new r().build(),o.g.NoType,a(78499),a(1968),a(70700),a(34697),a(55493),a(37528),a(67545);var c=a(33742);let d=()=>{},u=async()=>{},m=(0,i.createContext)({hasConsent:null,isMobileApp:!1,isUserAccessResolved:!1,performanceTracking:null,personalizedAds:null,pianoLoadingState:"loading",pianoPageConfig:void 0,refreshUserAccess:u,setHasConsent:d,setPerformanceTracking:d,setPersonalizedAds:d,setPianoLoadingState:d,setPianoPageConfig:d,setStopVideoDock:d,setUserAccess:d,stopVideoDock:!1,userAccess:{data:null,hasAccess:!1,isPaused:!1,loggedIn:void 0,pianoUserToken:""},userVariants:null}),p={arcSpanPageConfig:l,hideInStreamAds:!1,hideOutbrain:!1,outbrainScriptLoadedState:((J={}).Pending="pending",J.Loading="loading",J.Loaded="loaded",J.Failed="failed",J).Pending,pageAdConfig:void 0,renderOutbrainScript:!1,setArcSpanPageConfig:()=>{},setHideInStreamAds:()=>{},setHideOutbrain:()=>{},setOutbrainScriptLoadedState:()=>{},setPageAdConfig:()=>{},setRenderOutbrainScript:()=>{},setTopicNullConsentFreestarDisabled:()=>{},topicNullConsentFreestarDisabled:!1},h=(0,i.createContext)(p);var v=a(69241);a(42566);var _=a(22057),g=a.n(_);let x={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},f={accent:g().badgeAccent,default:g().badgeDefault,error:g().badgeError,info:g().badgeInfo,success:g().badgeSuccess,warning:g().badgeWarning},b=({children:e,variant:t="default",size:a="sm"})=>(0,s.jsx)("span",{className:(0,v.A)(g().badge,"sm"===a?g().badgeSm:g().badgeMd,f[t]),children:e}),y=({children:e,padding:t=6,style:a})=>(0,s.jsx)("div",{className:g().card,style:{padding:x[t],...a},children:e}),j=({children:e,title:t,icon:a,action:i})=>(0,s.jsxs)("div",{className:g().section,children:[(0,s.jsxs)("h3",{className:g().sectionHeader,children:[(0,s.jsx)("span",{className:g().sectionAccent}),a&&(0,s.jsx)("span",{children:a}),t,i&&(0,s.jsx)("span",{className:g().sectionAction,children:i})]}),(0,s.jsx)("div",{className:g().sectionContent,children:e})]}),w=({tags:e,variant:t="info"})=>e&&0!==e.length?(0,s.jsx)("div",{className:g().tagList,children:e.map((e,a)=>(0,s.jsx)(b,{variant:t,children:e},a))}):(0,s.jsx)("span",{className:g().tagListEmpty,children:"None"}),S={danger:g().buttonDanger,default:g().buttonDefault,ghost:g().buttonGhost,primary:g().buttonPrimary},C={lg:g().buttonLg,md:g().buttonMd,sm:g().buttonSm},N=({children:e,variant:t="default",size:a="md",onClick:i,disabled:n,style:r,title:o,type:l="button"})=>(0,s.jsx)("button",{className:(0,v.A)(g().button,S[t],C[a]),disabled:n,onClick:i,style:r,title:o,type:l,children:e});g().iconButtonLg,g().iconButtonMd,g().iconButtonSm;let k=()=>(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"})]}),T=({label:e,value:t,copyValue:a})=>{let[n,r]=(0,i.useState)(!1),o=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:g().kvRow,children:[(0,s.jsx)("div",{className:g().kvRowLabel,children:e}),(0,s.jsxs)("div",{className:g().kvRowValue,children:[(0,s.jsx)("span",{className:g().kvRowValueText,children:t||(0,s.jsx)("span",{className:g().kvRowEmpty,children:"Not set"})}),(a||"string"==typeof t||"number"==typeof t)&&(0,s.jsx)("button",{className:(0,v.A)(g().kvRowCopyBtn,n?g().kvRowCopySuccess:g().kvRowCopyDefault),onClick:o,title:n?"Copied!":"Copy to clipboard",type:"button",children:n?"â":(0,s.jsx)(k,{})})]})]})};g().statusDotOffline,g().statusDotOnline,g().statusDotUnknown,g().statusDotWarning;let $=({icon:e="\uD83D\uDCED",title:t,description:a})=>(0,s.jsxs)("div",{className:g().emptyState,children:[(0,s.jsx)("span",{className:g().emptyStateIcon,children:e}),(0,s.jsx)("span",{className:g().emptyStateTitle,children:t}),a&&(0,s.jsx)("span",{className:g().emptyStateDesc,children:a})]});g().grid1,g().grid2,g().grid3;let A=({children:e,direction:t="column",gap:a=4,align:i,justify:n,wrap:r,style:o})=>(0,s.jsx)("div",{className:(0,v.A)(g().stack,"row"===t?g().stackRow:g().stackColumn,r&&g().stackWrap),style:{alignItems:i,gap:x[a],justifyContent:n,...o},children:e}),L={accent:g().textAccent,error:g().textError,muted:g().textMuted,primary:g().textPrimary,secondary:g().textSecondary,success:g().textSuccess,warning:g().textWarning}
1,I={"2xl":g().text2xl,"2xs":g().text2xs,"3xl":g().text3xl,"4xl":g().text4xl,"5xl":g().text5xl,base:g().textBase,lg:g().textLg,md:g().textMd,sm:g().textSm,xl:g().textXl,xs:g().textXs},R={bold:g().fontBold,medium:g().fontMedium,normal:g().fontNormal,semibold:g().fontSemibold},E=({children:e,size:t="sm",color:a="primary",weight:i="normal",mono:n,truncate:r,style:o})=>(0,s.jsx)("span",{className:(0,v.A)(I[t],L[a],R[i],n&&g().textMono,r&&g().textTruncate),style:o,children:e});var D=a(40950),P=a.n(D);function M(){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)=>{let a=document.getElementById(e.id),s=document.getElementById(t.id);return a&&s?a.getBoundingClientRect().top-s.getBoundingClientRect().top:0})}let O=()=>{let e=(0,i.useContext)(h),[t,a]=(0,i.useState)([]),[n,r]=(0,i.useState)(null);(0,i.useEffect)(()=>{a(M());let e=setInterval(()=>{a(M())},5e3);return()=>clearInterval(e)},[]);let o=e?.disableAds??!1,l=e?.adBlockActive??!1,c=e?.pageHasVideo??!1,d=e?.pageSponsor;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:P().sectionHeader,children:[(0,s.jsxs)("h2",{className:`${P().sectionTitle} ${P().sectionTitleLarge}`,children:[(0,s.jsx)("span",{className:`${P().accentBar} ${P().accentBarLarge}`}),"Advertising"]}),(0,s.jsx)(b,{variant:o?"error":"success",children:o?"Ads Disabled":"Ads Enabled"})]}),(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid2} ${P().marginBottom12}`,style:{gap:12},children:[(0,s.jsxs)("div",{className:P().adStatusCard,children:[(0,s.jsx)("div",{className:P().adStatusLabel,children:"Ad Blocker"}),(0,s.jsx)("div",{className:`${P().adStatusValue} ${l?P().adStatusValueError:P().adStatusValueSuccess}`,children:l?"\uD83D\uDEAB Detected":"â
Not Detected"})]}),(0,s.jsxs)("div",{className:P().adStatusCard,children:[(0,s.jsx)("div",{className:P().adStatusLabel,children:"Video Ads"}),(0,s.jsx)("div",{className:`${P().adStatusValue} ${P().adStatusValueDefault}`,children:c?"\uD83D\uDCF9 Enabled":"⪠Disabled"})]})]}),d&&(0,s.jsxs)("div",{className:P().sponsorCard,children:[(0,s.jsx)("h3",{className:P().sponsorTitle,children:"Page Sponsor"}),(0,s.jsx)("div",{className:P().sponsorValue,children:d})]}),(0,s.jsx)("div",{className:P().marginBottom12,children:(0,s.jsxs)("h3",{className:P().subsectionTitle,style:{marginBottom:12},children:["Live Ad Slots (",t.length,")"]})}),0===t.length&&(0,s.jsxs)("div",{className:P().emptyState,children:[(0,s.jsx)("span",{className:P().emptyStateIcon,children:"\uD83D\uDCFA"}),(0,s.jsx)("span",{className:P().emptyStateTitle,children:"No ad slots detected"}),(0,s.jsx)("span",{className:P().emptyStateSubtitle,children:"Slots will appear as ads load"})]}),t.length>0&&(0,s.jsx)("div",{className:`${P().listContainer} ${P().listContainerSmall}`,children:t.map(e=>{var t;return(0,s.jsxs)("div",{className:P().adSlotCard,children:[(0,s.jsxs)("div",{className:P().adSlotHeader,children:[(0,s.jsx)("code",{className:P().adSlotId,children:e.id}),(0,s.jsx)(b,{variant:"loaded"===(t=e.status)?"success":"error"===t?"error":"default",children:e.status})]}),(0,s.jsxs)("div",{className:P().adSlotInfo,children:["Size: ",(0,s.jsx)("span",{className:P().adSlotInfoValue,children:e.size})]}),e.advertiser&&(0,s.jsxs)("div",{className:`${P().adSlotInfo} ${P().marginTop8}`,children:["Advertiser: ",(0,s.jsx)("span",{className:P().adSlotInfoValue,children:e.advertiser})]}),(0,s.jsx)("button",{className:P().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)})})]})},V=["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 z(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 W=({status:e})=>(0,s.jsx)(b,{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]}),G=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]}`},U=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`},H=({percentageUsed:e,remainingTtl:t})=>{let a=e>80,i=e>=100;return(0,s.jsxs)("div",{className:P().ttlProgressContainer,children:[(0,s.jsx)("div",{className:P().ttlProgressBar,children:(0,s.jsx)("div",{className:`${P().ttlProgressFill} ${i?P().ttlExpired:a?P().ttlExpiring:P().ttlFresh}`,style:{width:`${Math.min(100,e)}%`}})}),(0,s.jsxs)("div",{className:P().ttlLabels,children:[(0,s.jsxs)("span",{className:P().ttlUsed,children:[e,"% used"]}),(0,s.jsx)("span",{className:P().ttlRemaining,children:i?"Expired":`${U(t)} remaining`})]})]})},F=()=>{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 V){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",g=function(e,t){switch(t){case"vercel":return z(e["x-vercel-cache"]);case"cloudflare":return z(e["cf-cache-status"]);case"cloudfront":case"fastly":return z(e["x-cache"]);default:return z(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 x=(r=z(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"!==g?b=g:"unknown"!==x.status?b=x.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:g},S={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:x,percentageUsed:v,performance:f,remainingTtl:h&&void 0!==p?h-p:void 0,serverDate:j,status:b,statusLabel:(e=b,a=w,i=x,"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(S),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:P().loadingState,children:[(0,s.jsx)("span",{className:P().loadingSpinner,children:"â³"}),(0,s.jsx)("span",{children:"Fetching cache headers..."})]});if(a)return(0,s.jsxs)("div",{className:P().errorState,children:[(0,s.jsx)("span",{className:P().errorIcon,children:"â ï¸"}),(0,s.jsx)("span",{className:P().errorMessage,children:a}),(0,s.jsx)("button",{className:P().retryButton,onClick:n,type:"button",children:"Retry"})]});if(!e)return(0,s.jsx)("div",{className:P().emptyState,children:(0,s.jsx)("span",{children:"No cache information available"})});let{directives:m,cdn:p,nextjs:h,performance:v}=e,_=m.sMaxAge??m.maxAge;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:P().sectionHeader,children:[(0,s.jsxs)("h2",{className:P().sectionTitle,children:[(0,s.jsx)("span",{className:P().accentBar}),"Cache Status"]}),(0,s.jsxs)("div",{className:P().headerActions,children:[(0,s.jsx)("button",{className:P().refreshButton,disabled:t,onClick:n,title:"Refetch cache headers",type:"button",children:t?"â³":"\uD83D\uDD04"}),(0,s.jsx)("button",{className:`${P().copyAllButton} ${o?P().copyAllButtonCopied:""}`,onClick:u,type:"button",children:o?"â Copied!":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k,{})," Copy All"]})})]})]}),(0,s.jsx)("div",{className:P().sectionBlock,children:(0,s.jsxs)("div",{className:P().cacheStatusCard,children:[(0,s.jsxs)("div",{className:P().cacheStatusMain,children:[(0,s.jsx)(W,{status:e.status}),(0,s.jsx)("span",{className:P().cacheStatusLabel,children:e.statusLabel})]}),r&&(0,s.jsxs)("div",{className:P().cacheStatusMeta,children:["Checked ",r.toLocaleTimeString()]})]})}),void 0!==e.percentageUsed&&void 0!==e.remainingTtl&&(0,s.jsxs)("div",{className:P().sectionBlock,children:[(0,s.jsxs)("h3",{className:P().subsectionTitle,children:[(0,s.jsx)("span",{className:P().subsectionAccentBar}),"Cache TTL"]}),(0,s.jsxs)("div",{className:P().infoBox,children:[(0,s.jsx)(H,{percentageUsed:e.percentageUsed,remainingTtl:e.remainingTtl}),(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid3} ${P().marginTop12}`,children:[void 0!==e.age&&(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxSmall}`,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Age"}),(0,s.jsx)("div",{className:P().statValue,children:U(e.age)})]}),void 0!==_&&(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxSmall}`,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Max Age"}),(0,s.jsx)("div",{className:P().statValue,children:U(_)})]}),void 0!==m.staleWhileRevalidate&&(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxSmall}`,children:[(0,s.jsx)("div",{className:P().statLabel,children:"SWR"}),(0,s.jsx)("div",{className:P().statValueSecondary,children:U(m.staleWhileRevalidate)})]})]})]})]}),(0,s.jsxs)("div",{className:P().sectionBlock,children:[(0,s.jsxs)("h3",{className:P().subsectionTitle,children:[(0,s.jsx)("span",{className:P().subsectionAccentBar}),"CDN"]}),(0,s.jsxs)("div",{className:P().infoBox,children:[(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid2} ${P().marginBottom12}`,children:[(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Provider"}),(0,s.jsx)("div",{className:P().statValue,children:"unknown"===p.provider?"Not Detected":p.provider.charAt(0).toUpperCase()+p.provider.slice(1)})]}),(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Status"}),(0,s.jsx)(W,{status:p.status})]})]}),p.pop&&(0,s.jsx)(T,{label:"Edge Location (POP)",value:p.pop})]})]}),(0,s.jsxs)("div",{className:P().sectionBlock,children:[(0,s.jsxs)("h3",{className:P().subsectionTitle,children:[(0,s.jsx)("span",{className:P().subsectionAccentBar}),"Next.js"]}),(0,s.jsx)("div",{className:P().infoBox,children:(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid2}`,children:[(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Cache Status"}),(0,s.jsx)(W,{status:h.status})]}),(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"ISR Active"}),(0,s.jsx)(b,{variant:h.isISR?"success":"default",children:h.isISR?"Yes":"No"})]})]})})]}),v&&(0,s.jsxs)("div",{className:P().sectionBlock,children:[(0,s.jsxs)("h3",{className:P().subsectionTitle,children:[(0,s.jsx)("span",{className:P().subsectionAccentBar}),"Performance"]}),(0,s.jsxs)("div",{className:P().infoBox,children:[(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid2} ${P().marginBottom12}`,children:[(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"TTFB"}),(0,s.jsxs)("div",{className:P().statValueSuccess,children:[v.ttfb,"ms"]})]}),(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Browser Cache"}),(0,s.jsx)(b,{variant:v.wasCached?"success":"default",children:v.wasCached?"Hit":"Miss"})]})]}),(0,s.jsx)(T,{label:"Transfer Size",value:0===v.transferSize?"0 B (from cache)":G
1(v.transferSize)}),(0,s.jsx)(T,{label:"Decoded Size",value:G(v.decodedBodySize)}),(0,s.jsx)(T,{label:"Load Duration",value:`${v.duration}ms`})]})]}),e.cacheControl&&(0,s.jsxs)("div",{className:P().sectionBlock,children:[(0,s.jsxs)("h3",{className:P().subsectionTitle,children:[(0,s.jsx)("span",{className:P().subsectionAccentBar}),"Cache-Control"]}),(0,s.jsxs)("div",{className:P().infoBox,children:[(0,s.jsx)("div",{className:P().cacheControlRaw,children:(0,s.jsx)("code",{children:e.cacheControl})}),(0,s.jsxs)("div",{className:`${P().badgeRow} ${P().marginTop12}`,children:[m.public&&(0,s.jsx)(b,{variant:"info",children:"public"}),m.private&&(0,s.jsx)(b,{variant:"warning",children:"private"}),m.noCache&&(0,s.jsx)(b,{variant:"error",children:"no-cache"}),m.noStore&&(0,s.jsx)(b,{variant:"error",children:"no-store"}),m.mustRevalidate&&(0,s.jsx)(b,{variant:"warning",children:"must-revalidate"}),m.immutable&&(0,s.jsx)(b,{variant:"success",children:"immutable"})]})]})]}),(0,s.jsxs)("div",{className:P().sectionBlock,children:[(0,s.jsxs)("h3",{className:P().subsectionTitle,children:[(0,s.jsx)("span",{className:P().subsectionAccentBar}),"Validation Headers"]}),(0,s.jsxs)("div",{className:P().infoBox,children:[e.etag&&(0,s.jsx)(T,{label:"ETag",value:e.etag}),e.lastModified&&(0,s.jsx)(T,{label:"Last-Modified",value:e.lastModified}),e.vary&&(0,s.jsx)(T,{label:"Vary",value:e.vary}),e.expires&&(0,s.jsx)(T,{label:"Expires",value:e.expires}),!e.etag&&!e.lastModified&&!e.vary&&!e.expires&&(0,s.jsx)("div",{className:P().emptyStateSmall,children:"No validation headers present"})]})]}),(0,s.jsxs)("div",{className:P().sectionBlock,children:[(0,s.jsxs)("button",{className:P().collapsibleHeader,onClick:()=>d(!c),type:"button",children:[(0,s.jsxs)("h3",{className:P().subsectionTitle,children:[(0,s.jsx)("span",{className:P().subsectionAccentBar}),"All Cache Headers",(0,s.jsxs)("span",{className:P().collapsibleCount,children:["(",Object.keys(e.allHeaders).length,")"]})]}),(0,s.jsx)("span",{className:P().collapsibleIcon,children:c?"â¼":"â¶"})]}),c&&(0,s.jsx)("div",{className:P().infoBox,children:Object.entries(e.allHeaders).map(([e,t])=>(0,s.jsx)(T,{label:e,value:t},e))})]})]})},K={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"}},q={default:P().cookieCardBorderDefault,error:P().cookieCardBorderError,info:P().cookieCardBorderInfo,success:P().cookieCardBorderSuccess,warning:P().cookieCardBorderWarning},Y={__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"},X=()=>{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),[m,p]=(0,i.useState)(null),[h,v]=(0,i.useState)(null),[_,g]=(0,i.useState)(""),[x,f]=(0,i.useState)(!1),[y,j]=(0,i.useState)("pr-preview"),[w,S]=(0,i.useState)(""),[C,N]=(0,i.useState)(""),[B,T]=(0,i.useState)(""),$=(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(Y[e]){if(e.startsWith("__pi")||e.startsWith("__ru")||e.includes("xp_"))return{category:"auth",description:Y[e]};if(e.includes("OptanonConsent")||e.includes("euconsent")||e.includes("consent"))return{category:"consent",description:Y[e]};if(e.startsWith("_ga")||e.startsWith("_fb")||e.startsWith("_gcl"))return{category:"analytics",description:Y[e]};if(e.startsWith("__gads")||e.startsWith("__gpi")||e.includes("cto_")||"IDE"===e||"DSID"===e)return{category:"ads",description:Y[e]};if(e.includes("optimizely"))return{category:"optimizely",description:Y[e]};if(e.includes("SESSION")||e.includes("csrf")||e.startsWith("__cf"))return{category:"session",description:Y[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)(()=>{$()},[$]);let A=e.reduce((e,t)=>(e[t.category]=(e[t.category]||0)+1,e),{}),L=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}),I=async(e,t)=>{try{await navigator.clipboard.writeText(`${e}=${t}`),u(e),setTimeout(()=>u(null),2e3)}catch(e){}},R=()=>{v(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}=${_}; expires=${a}; path=/`,v(null),g(""),$()},D=()=>{let e,t;if("u"<typeof document)return;if("pr-preview"===y){if(!w||1>Number.parseInt(w,10))return;e="__prEnvUpstream",t=`develop-pr-${w}-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=/`,f(!1),S(""),N(""),T(""),$()},M=()=>{f(!1),S(""),N(""),T("")},O=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=K[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:P().sectionHeader,children:[(0,s.jsxs)("h2",{className:`${P().sectionTitle} ${P().sectionTitleLarge}`,children:[(0,s.jsx)("span",{className:`${P().accentBar} ${P().accentBarLarge}`}),"Browser Cookies"]}),(0,s.jsxs)("div",{className:`${P().flexRow} ${P().flexRowGap8}`,children:[(0,s.jsx)("button",{className:`${P().smallButton} ${P().addButton}`,onClick:()=>f(!x),title:"Add new cookie",type:"button",children:"â Add"}),(0,s.jsx)("button",{className:P().smallButton,onClick:$,title:"Refresh cookies",type:"button",children:"\uD83D\uDD04 Refresh"}),(0,s.jsxs)("button",{className:P().smallButton,onClick:O,title:"Copy all cookies",type:"button",children:[(0,s.jsx)(k,{})," Copy All"]})]})]}),x&&(0,s.jsxs)("div",{className:P().addCookieForm,children:[(0,s.jsxs)("div",{className:P().addCookieHeader,children:[(0,s.jsx)("span",{className:P().addCookieTitle,children:"Add Cookie"}),(0,s.jsxs)("div",{className:P().addCookieTabs,children:[(0,s.jsx)("button",{className:`${P().addCookieTab} ${"pr-preview"===y?P().addCookieTabActive:""}`,onClick:()=>j("pr-preview"),type:"button",children:"\uD83D\uDD00 PR Preview"}),(0,s.jsx)("button",{className:`${P().addCookieTab} ${"custom"===y?P().addCookieTabActive:""}`,onClick:()=>j("custom"),type:"button",children:"âï¸ Custom"})]})]}),"pr-preview"===y?(0,s.jsxs)("div",{className:P().addCookieBody,children:[(0,s.jsxs)("div",{className:P().addCookieField,children:[(0,s.jsx)("label",{className:P().addCookieLabel,children:"PR Number"}),(0,s.jsx)("input",{autoFocus:!0,className:P().addCookieInput,onChange:e=>S(e.target.value),onKeyDown:e=>{"Enter"===e.key&&D(),"Escape"===e.key&&M()},placeholder:"e.g., 7691",type:"number",value:w})]}),w&&(0,s.jsxs)("div",{className:P().addCookiePreview,children:[(0,s.jsx)("span",{className:P().addCookiePreviewLabel,children:"Will set:"}),(0,s.jsxs)("code",{className:P().addCookiePreviewValue,children:["__prEnvUpstream=develop-pr-",w,"-fortune-frontend"]})]})]}):(0,s.jsxs)("div",{className:P().addCookieBody,children:[(0,s.jsxs)("div",{className:P().addCookieField,children:[(0,s.jsx)("label",{className:P().addCookieLabel,children:"Cookie Name"}),(0,s.jsx)("input",{autoFocus:!0,className:P().addCookieInput,onChange:e=>N(e.target.value),onKeyDown:e=>{"Escape"===e.key&&M()},placeholder:"cookie_name",type:"text",value:C})]}),(0,s.jsxs)("div",{className:P().addCookieField,children:[(0,s.jsx)("label",{className:P().addCookieLabel,children:"Cookie Value"}),(0,s.jsx)("textarea",{className:P().addCookieTextarea,onChange:e=>T(e.target.value),onKeyDown:e=>{"Escape"===e.key&&M(),"Enter"===e.key&&e.metaKey&&D()}
1,placeholder:"cookie_value",rows:2,value:B})]})]}),(0,s.jsxs)("div",{className:P().addCookieActions,children:[(0,s.jsx)("button",{className:P().cookieEditCancel,onClick:M,type:"button",children:"Cancel"}),(0,s.jsx)("button",{className:P().cookieEditSave,disabled:"pr-preview"===y?!w:!C.trim(),onClick:D,type:"button",children:"Add Cookie"})]})]}),(0,s.jsxs)("div",{className:P().categoryGrid,children:[(0,s.jsxs)("button",{className:`${P().categoryButton} ${"all"===l?P().categoryButtonActive:""}`,onClick:()=>c("all"),type:"button",children:[(0,s.jsx)("div",{className:P().categoryIcon,children:"\uD83D\uDCCB"}),(0,s.jsx)("div",{className:`${P().categoryCount} ${"all"===l?P().categoryCountActive:""}`,children:e.length}),(0,s.jsx)("div",{className:`${P().categoryLabel} ${"all"===l?P().categoryLabelActive:""}`,children:"All"})]}),Object.entries(K).slice(0,3).map(([e,t])=>{let a=l===e,i=A[e]||0;return(0,s.jsxs)("button",{className:`${P().categoryButton} ${a?P().categoryButtonActive:""} ${0===i?P().categoryButtonDisabled:""}`,onClick:()=>c(e),type:"button",children:[(0,s.jsx)("div",{className:P().categoryIcon,children:t.icon}),(0,s.jsx)("div",{className:`${P().categoryCount} ${a?P().categoryCountActive:""}`,children:i}),(0,s.jsx)("div",{className:`${P().categoryLabel} ${a?P().categoryLabelActive:""}`,children:t.label})]},e)})]}),(0,s.jsx)("div",{className:P().categoryGrid,children:Object.entries(K).slice(3).map(([e,t])=>{let a=l===e,i=A[e]||0;return(0,s.jsxs)("button",{className:`${P().categoryButton} ${a?P().categoryButtonActive:""} ${0===i?P().categoryButtonDisabled:""}`,onClick:()=>c(e),type:"button",children:[(0,s.jsx)("div",{className:P().categoryIcon,children:t.icon}),(0,s.jsx)("div",{className:`${P().categoryCount} ${a?P().categoryCountActive:""}`,children:i}),(0,s.jsx)("div",{className:`${P().categoryLabel} ${a?P().categoryLabelActive:""}`,children:t.label})]},e)})}),(0,s.jsx)("div",{className:P().searchContainer,children:(0,s.jsx)("input",{className:P().searchInputSimple,onChange:e=>n(e.target.value),placeholder:"Search cookies...",type:"text",value:a})}),0===L.length&&(0,s.jsxs)("div",{className:P().emptyState,children:[(0,s.jsx)("span",{className:P().emptyStateIcon,children:"\uD83C\uDF6A"}),(0,s.jsx)("span",{className:P().emptyStateTitle,children:a||"all"!==l?"No matching cookies":"No cookies found"})]}),L.length>0&&(0,s.jsx)("div",{className:`${P().listContainer} ${P().listContainerScrollable}`,children:L.map(e=>{let t=K[e.category],a=r===e.name,i=d===e.name,n=m===e.name,l=h===e.name,c=q[t.variant]||q.default;return(0,s.jsxs)("div",{className:`${P().cookieCard} ${c}`,children:[(0,s.jsxs)("div",{className:P().cookieCardHeader,children:[(0,s.jsxs)("div",{className:P().flexContent,children:[(0,s.jsx)("code",{className:P().cookieCardName,children:e.name}),e.description&&(0,s.jsx)("div",{className:P().cookieCardDesc,children:e.description})]}),(0,s.jsxs)("div",{className:P().cookieCardActions,children:[(0,s.jsxs)(b,{variant:t.variant,children:[t.icon," ",t.label]}),(0,s.jsx)("button",{className:`${P().copyButton} ${i?P().copyButtonCopied:""}`,onClick:()=>I(e.name,e.value),title:"Copy name=value",type:"button",children:i?"â":(0,s.jsx)(k,{})}),(0,s.jsx)("button",{className:P().editButton,onClick:()=>{var t,a;return t=e.name,a=e.value,void(v(t),g(a))},title:"Edit cookie value",type:"button",children:"âï¸"}),(0,s.jsx)("button",{className:`${P().deleteButton} ${n?P().deleteButtonFailed:""}`,onClick:()=>(e=>{if("u"<typeof document)return;p(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}=`))&&(p(e),setTimeout(()=>p(null),3e3)),$()})(e.name),title:n?"Failed to delete (path/domain mismatch)":"Delete cookie",type:"button",children:n?"â ï¸":"\uD83D\uDDD1ï¸"})]})]}),l?(0,s.jsxs)("div",{className:P().cookieEditForm,children:[(0,s.jsx)("textarea",{autoFocus:!0,className:P().cookieEditInput,onChange:e=>g(e.target.value),onKeyDown:t=>{"Escape"===t.key?R():"Enter"===t.key&&t.metaKey&&E(e.name)},placeholder:"Cookie value...",rows:3,value:_}),(0,s.jsxs)("div",{className:P().cookieEditActions,children:[(0,s.jsx)("button",{className:P().cookieEditCancel,onClick:R,type:"button",children:"Cancel"}),(0,s.jsx)("button",{className:P().cookieEditSave,onClick:()=>E(e.name),type:"button",children:"Save"})]}),(0,s.jsx)("div",{className:P().cookieEditHint,children:"Esc to cancel ⢠â+Enter to save"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:`${P().cookieCardValue} ${!a?P().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:P().cookieCardExpandButton,onClick:()=>o(a?null:e.name),type:"button",children:a?"â² Show less":"â¼ Show more"})]})]},e.name)})})]})};var J,Z,Q,ee=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},et=function(e){if("loading"===document.readyState)return"loading";var t=ee();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"},ea=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},es=function(e,t){var a="";try{for(;e&&9!==e.nodeType;){var s=e,i=s.id?"#"+s.id:ea(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},ei=-1,en=function(e){addEventListener("pageshow",function(t){t.persisted&&(ei=t.timeStamp,e(t))},!0)},er=function(){var e=ee();return e&&e.activationStart||0},eo=function(e,t){var a=ee(),s="navigate";return ei>=0?s="back-forward-cache":a&&(document.prerendering||er()>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}},el=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){}},ec=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))}},ed=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},eu=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},em=function(e){var t=!1;return function(){t||(e(),t=!0)}},ep=-1,eh=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},ev=function(e){"hidden"===document.visibilityState&&ep>-1&&(ep="visibilitychange"===e.type?e.timeStamp:0,eg())},e_=function(){addEventListener("visibilitychange",ev,!0),addEventListener("prerenderingchange",ev,!0)},eg=function(){removeEventListener("visibilitychange",ev,!0),removeEventListener("prerenderingchange",ev,!0)},ex=function(){return ep<0&&(ep=eh(),e_(),en(function(){setTimeout(function(){ep=eh(),e_()},0)})),{get firstHiddenTime(){return ep}}},ef=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},eb=[1800,3e3],ey=function(e,t){t=t||{},ef(function(){var a,s=ex(),i=eo("FCP"),n=el("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(n.disconnect(),e.startTime<s.firstHiddenTime&&(i.value=Math.max(e.startTime-er(),0),i.entries.push(e),a(!0)))})});n&&(a=ec(e,i,eb,t.reportAllChanges),en(function(s){a=ec(e,i=eo("FCP"),eb,t.reportAllChanges),ed(function(){i.value=performance.now()-s.timeStamp,a(!0)})}))})},ej=[.1,.25],ew=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:es(i.node),largestShiftTime:s.startTime,largestShiftValue:s.value,largestShiftSource:i,largestShiftEntry:s,loadState:et(s.startTime)})}}return Object.assign(e,{attribution:a})}(t))},s=(s=t)||{},ey(em(function(){var e,t=eo("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=el("layout-shift",r);o&&(e=ec(a,t,ej,s.reportAllChanges),eu(function(){r(o.takeRecords()),e(!0)}),en(function(){i=0,e=ec(a,t=eo("CLS",0),ej,s.reportAllChanges),ed(function(){return e()})}),setTimeout(e,0))}))},eS=0,eC=1/0,eN=0,ek=function(e){e.forEach(function(e){e.interactionId&&(eC=Math.min(eC,e.interactionId),eS=(eN=Math.max(eN,e.interactionId))?(eN-eC)/7+1:0)})},eB=function(){return Z?eS:performance.interactionCount||0},eT=function(){"interactionCount"in performance||Z||(Z=el("event",ek,{type:"event",buffered:!0,durationThreshold:0}))},e$=[],eA=new Map,eL=0,eI=function(){var e=Math.min(e$.length-1,Math.floor((eB()-eL)/50));return e$[e]},eR=[],eE=function(e){if(eR.forEach(function(t){return t(e)}),e.interactionId||"first-input"===e.entryType){var t=e$[e$.length-1],a=eA.get(e.interactionId);if(a||e$.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]};eA.set(s.id,s),e$.push(s)}e$.sort(function(e,t){return t.latency-e.latency}),e$.length>10&&e$.splice(10).forEach(function(e){return eA.delete(e.id)})}}},eD=function(e){var t=self.requestIdleCallback||self.setTimeout,a=-1;return e=em(e),"hidden"===document.visibilityState?e():(a=t(e),eu(e)),a},eP=[200,500],eM=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},ef(function(){eT();var a,s,i=eo("INP"),n=function(e){eD(function(){e.forEach(eE);var t=eI();t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,s())})},r=el("event",n,{durationThreshold:null!=(a=t.durationThreshold)?a:40});s=ec(e,i,eP,t.reportAllChanges),r&&(r.observe({type:"first-input",buffered:!0}),eu(function(){n(r.takeRecords()),s(!0)}),en(function(){eL=eB(),e$.length=0,eA.clear(),s=ec(e,i=eo("INP"),eP,t.reportAllChanges)}))}))},eO=[],eV=[],ez=0,eW=new WeakMap,eG=new Map,eU=-1,eH=function(e){eO=eO.concat(e),eF()},eF=function(){eU<0&&(eU=eD(eK))},eK=function(){eG.size>10&&eG.forEach(function(e,t){eA.has(t)||eG.delete(t)});var e=e$.map(function(e){return eW.get(e.entries[0])}),t=eV.length-50;eV=eV.filter(function(a,s){return s>=t||e.includes(a)});for(var a=new Set,s=0;s<eV.length;s++){var i=eV[s];eq(i.startTime,i.processingEnd).forEach(function(e){a.add(e)})}var n=eO.length-1-50;eO=eO.filter(function(e,t){return e.startTime>ez&&t>n||a.has(e)}),eU=-1};eR.push(function(e){e.interactionId&&e.target&&!eG.has(e.interactionId)&&eG.set(e.interactionId,e.target)},function(e){var t,a=e.startTime+e.duration;ez=Math.max(ez,e.processingEnd);for(var s=eV.length-1;s>=0;s--){var i=eV[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]},eV.push(t)),(e.interactionId||"first-input"===e.entryType)&&eW.set(e,t),eF()});var eq=function(e,t){for(var a,s=[],i=0;a=eO[i];i++)if(!(a.startTime+a.duration<e)){if(a.startTime>t)break;s.push(a)}return s},eY=function(e,t){Q||(Q=el("long-animation-frame",eH)),eM(function(t){var a,s,i,n,r,o,l,c,d,u;e((a=t.entries[0],s=eW.get(a),i=a.processingStart,n=s.processingEnd,r=s.entries.sort(function(e,t){return e.processingStart-t.processingStart}),o=eq(a.startTime,n),c=(l=t.entries.find(function(e){return e.target}))&&l.target||eG.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:es(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:et(a.startTime)}})))},t)},eX=[2500,4e3],eJ={},eZ=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=ee();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:es(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)||{},ef(function(){var e,t=ex(),i=eo("LCP"),n=function(a){s.reportAllChanges||(a=a.slice(-1)),a.forEach(function(a){a.startTime<t.firstHiddenTime&&(i.value=Math.max(a.startTime-er(),0),i.entries=[a],e())})},r=el("largest-contentful-paint",n);if(r){e=ec(a,i,eX,s.reportAllChanges);var o=em(function(){eJ[i.id]||(n(r.takeRecords()),r.disconnect(),eJ[i.id]=!0,e(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return eD(o)},{once:!0,capture:!0})}),eu(o),en(function(t){e=ec(a,i=eo("LCP"),eX,s.reportAllChanges),ed(function(){i.value=performance.now()-t.timeStamp,eJ[i.id]=!0,e(!0)})})}})};let eQ={cls:{good:.1,needsImprovement:.25},inp:{good:200,needsImprovement:500},lcp:{good:2500,needsImprovement:4e3}},e0=new Map,e1={cls:0,clsRating:"good",inp:0,inpRating:"good",lcp:0,lcpRating:"good",shifts:[]},e2=!1;function e3(e){return e0.get(e)||null}function e4(e,t){let a=eQ[e];return t<=a.good?"good":t<=a.needsImprovement?"needs-improvement":"poor"}function e5(){return"prod".toLowerCase()==="local"}
1let e9=new Set,e6=new Map;function e8(e){try{return document.querySelector(e)}catch{return null}}let e7="#ef4444",te=()=>{let{metrics:e}=function(){let[e,t]=(0,i.useState)(()=>({...e1}));(0,i.useEffect)(()=>{e2?t({...e1}):(e2=!0,ew(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)&&e0.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=e4("cls",e.value);t({...e1={...e1,cls:e.value,clsRating:o,shifts:n}})},{reportAllChanges:!0}),eZ(e=>{let a=e4("lcp",e.value);t({...e1={...e1,lcp:e.value,lcpRating:a}})},{reportAllChanges:!0}),eY(e=>{let a=e4("inp",e.value);t({...e1={...e1,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`}),e5()||"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||!e5()&&"poor"===e.lcpRating,issues:a,metrics:e,thresholds:eQ}}(),[t,a]=(0,i.useState)(()=>new Set(e9)),n=(0,i.useRef)(new Map);(0,i.useEffect)(()=>{e9.forEach(e=>{let t=e6.get(e);if(!t)return;let a=e3(e)||e8(t.selector);!(a&&document.body.contains(a))||a.style&&(a.style.outline=`3px solid ${e7}`,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;e9.forEach(t=>{n.current.has(t)&&e.add(t)}),a(e),e9=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)),e9.delete(e),e6.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=e3(e)||e8(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}),e9.add(e),e6.set(e,{originalBoxShadow:c,originalOutline:o,originalOutlineOffset:l,originalPosition:d,originalZIndex:u,selector:i}),r.style.outline=`3px solid ${e7}`,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(),e9.clear(),e6.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)(A,{align:"center",direction:"row",justify:"space-between",style:{marginBottom:24},children:(0,s.jsxs)("h2",{className:`${P().sectionTitle} ${P().sectionTitleLarge}`,children:[(0,s.jsx)("span",{className:`${P().accentBar} ${P().accentBarLarge}`}),"Core Web Vitals"]})}),(0,s.jsx)(A,{gap:4,style:{marginBottom:32},children:l.map(({name:e,label:t,value:a,rating:i,unit:n})=>(0,s.jsxs)(y,{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)(A,{align:"center",direction:"row",justify:"space-between",style:{marginBottom:12},children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(E,{size:"xl",weight:"bold",children:e}),(0,s.jsx)(E,{color:"muted",size:"xs",style:{marginLeft:12},children:t})]}),(0,s.jsx)(b,{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)(E,{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)(A,{align:"center",direction:"row",justify:"space-between",style:{marginBottom:12},children:[(0,s.jsxs)("h3",{className:P().subsectionTitle,children:[(0,s.jsx)("span",{className:P().subsectionAccentBar}),"Layout Shift Sources"]}),t.size>0&&(0,s.jsxs)(N,{onClick:o,size:"sm",variant:"danger",children:["Hide All (",t.size,")"]})]}),(0,s.jsx)(E,{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)(A,{gap:3,style:{maxHeight:256,overflow:"auto"},children:c.map(e=>{let a,i,n;return(0,s.jsx)(y,{padding:5,children:(0,s.jsxs)(A,{align:"center",direction:"row",justify:"space-between",children:[(0,s.jsxs)("div",{style:{flex:1,marginRight:12,overflow:"hidden"},children:[(0,s.jsx)(E,{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)(E,{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)(E,{color:"secondary",size:"2xs",style:{marginTop:8},children:["Shifted ",n.join(", ")]}))]}),(0,s.jsx)(N,{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)($,{description:"Interact with the page to trigger measurements",icon:"\uD83D\uDCCA",title:"Collecting metrics..."})]})};var tt=a(26534);function ta(){return window.location.href}let ts=["on","off"],ti=new Map,tn=new Set,tr="devdash.experiments.search",to="devdash.experiments.filter",tl=["all","active","overridden"];function tc(){try{return localStorage.getItem(tr)??""}catch{return""}}function td(){try{let e=localStorage.getItem(to);if(e&&tl.includes(e))return e}catch{}return"all"}let tu=({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)(()=>{var e;return e=()=>d(e=>e+1),tn.add(e),()=>tn.delete(e)},[]);let u=()=>{o.trim()&&(t(e.testName,o.trim()),l(""),r(!1))},m=(0,i.useMemo)(()=>{var t;return t=e.testName,ti.get(t)||ts},[e.testName,c]),p=e.hasUrlOverride&&e.urlOverrideValue&&!m.includes(e.urlOverrideValue);return(0,s.jsxs)("div",{className:P().experimentCard,children:[(0,s.jsxs)("div",{className:P().experimentCardHeader,children:[(0,s.jsx)("div",{className:P().flexContent,children:(0,s.jsx)("h3",{className:P().experimentCardTitle,children:e.testName})}),(0,s.jsxs)("div",{className:P().experimentCardActions,children:[e.hasUrlOverride&&(0,s.jsxs)("button",{className:P().overrideBadge,onClick:()=>a(e.testName),title:"Click to clear override",type:"button",children:["Override",(0,s.jsx)("span",{className:P().overrideBadgeClose,children:"\xd7"})]}),(0,s.jsx)(b,{variant:e.enabled?"success":"default",children:e.enabled?"Active":"Inactive"})]})]}),(0,s.jsxs)("div",{className:P().experimentCardBody,children:[(0,s.jsxs)("div",{className:P().variantButtons,children:[m.map(a=>(0,s.jsx)("button",{className:`${P().variantButton} ${e.variant===a||e.urlOverrideValue===a?P().variantButtonActive:""}`,onClick:()=>t(e.testName,a),type:"button",children:a},a)),p&&(0,s.jsx)("span",{className:P().variantBadge,children:e.urlOverrideValue}),(0,s.jsxs)("button",{className:`${P().customVariantButton} ${n?P().customVariantButtonActive:""}`,onClick:()=>r(!n),type:"button",children:[(0,s.jsx)("span",{style:{fontSize:10},children:"â"}),"custom"]})]}),n&&(0,s.jsxs)("div",{className:P().customInputBox,children:[(0,s.jsxs)("div",{className:P().customInputRow,children:[(0,s.jsx)("input",{className:P().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:`${P().customInputApply} ${o.trim()?P().customInputApplyEnabled:""}`,disabled:!o.trim(),onClick:u,type:"button",children:"Apply"})]}),(0,s.jsx)("p",{className:P().customInputHint,children:"Press Enter to apply"})]})]})]})},tm=()=>{let{experiments:e,isReady:t,setOverride:a,clearOverride:n,clearAllOverrides:r}=function(){let{userFlags:e,optimizely:t}=(0,c.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,tt.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,tt.we)(),window.location.reload()},clearOverride:e=>{let t;(t=new URL(window.location.href)).searchParams.delete(e),window.history.replaceState({},"",t.toString()),(0,tt.Qg)(e),window.location.reload()}
1,currentParams:n,experimentCount:o.length,experiments:l,getUrlWithOverrides:ta,isReady:!!t,setOverride:(e,t)=>{let a;(a=new URL(window.location.href)).searchParams.set(e,t),window.history.replaceState({},"",a.toString()),(0,tt.JD)(e,t),window.location.reload()}}}(),[o,l]=(0,i.useState)(tc),[d,u]=(0,i.useState)(td),m=e=>{l(e);try{e?localStorage.setItem(tr,e):localStorage.removeItem(tr)}catch{}},p=(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]),h=(0,i.useMemo)(()=>{let t=e;if("active"===d?t=t.filter(e=>e.enabled):"overridden"===d&&(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,d,o]),v=[{count:p.total,key:"all",label:"All"},{count:p.active,key:"active",label:"Active"},{count:p.overridden,key:"overridden",label:"Overridden"}];return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:P().sectionHeader,children:[(0,s.jsxs)("h2",{className:P().sectionTitle,children:[(0,s.jsx)("span",{className:P().accentBar}),"Experiments"]}),p.overridden>0&&(0,s.jsx)("button",{className:P().clearAllButton,onClick:r,title:"Remove all experiment overrides from URL",type:"button",children:"â Clear All Overrides"})]}),!t&&(0,s.jsxs)("div",{className:P().emptyState,children:[(0,s.jsx)("span",{className:P().emptyStateIcon,children:"â³"}),(0,s.jsx)("span",{className:P().emptyStateTitle,children:"Loading Optimizely..."})]}),t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:P().searchContainer,children:(0,s.jsxs)("div",{className:P().searchBox,children:[(0,s.jsx)("span",{className:P().searchIcon,children:(0,s.jsx)(B,{})}),(0,s.jsx)("input",{className:P().searchInput,onChange:e=>m(e.target.value),placeholder:"Search experiments...",type:"text",value:o}),o&&(0,s.jsx)("button",{className:P().searchClear,onClick:()=>m(""),type:"button",children:"\xd7"})]})}),(0,s.jsx)("div",{className:P().filterTabs,children:v.map(({key:e,label:t,count:a})=>(0,s.jsxs)("button",{className:`${P().filterTab} ${d===e?P().filterTabActive:""}`,onClick:()=>(e=>{u(e);try{localStorage.setItem(to,e)}catch{}})(e),type:"button",children:[t,(0,s.jsx)("span",{className:`${P().filterTabCount} ${d===e?P().filterTabCountActive:""}`,children:a})]},e))}),0===e.length&&(0,s.jsxs)("div",{className:P().emptyState,children:[(0,s.jsx)("span",{className:P().emptyStateIcon,children:"\uD83E\uDDEA"}),(0,s.jsx)("span",{className:P().emptyStateTitle,children:"No experiments found"}),(0,s.jsx)("span",{className:P().emptyStateSubtitle,children:"No active experiments on this page"})]}),e.length>0&&0===h.length&&(0,s.jsxs)("div",{className:P().emptyState,children:[(0,s.jsx)("span",{className:P().emptyStateIcon,children:"\uD83D\uDD0D"}),(0,s.jsx)("span",{className:P().emptyStateTitle,children:"No matches found"}),(0,s.jsx)("span",{className:P().emptyStateSubtitle,children:"Try adjusting your search or filter"})]}),h.length>0&&(0,s.jsx)("div",{className:P().listContainer,children:h.map(e=>(0,s.jsx)(tu,{clearOverride:n,exp:e,setOverride:a},e.testName))}),h.length>0&&o&&(0,s.jsxs)("p",{className:P().resultCount,children:["Showing ",h.length," of ",p.total," experiments"]})]})]})};function tp(e){if("u"<typeof document)return"open";let t=document.querySelector(".paywall"),a=t?.classList.contains("paywallActive");return e?"bypassed":a?"paywalled":"open"}let th=()=>{let e=(0,i.useContext)(m),t=(0,i.useContext)(h),[a,n]=(0,i.useState)(!1),[r,o]=(0,i.useState)("open"),[l,c]=(0,i.useState)(null),[d,u]=(0,i.useState)(null),[p,v]=(0,i.useState)(null),[_,g]=(0,i.useState)(null),[x,f]=(0,i.useState)({page:null,type:"unknown"}),[y,S]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e,t;c((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")})),u({full:window.location.href,hash:window.location.hash,hostname:window.location.hostname,pathname:window.location.pathname,referrer:document.referrer||"",search:window.location.search}),v({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}),g(function(){let e=document.getElementById("__NEXT_DATA__");if(e)try{return JSON.parse(e.textContent||"{}")}catch{}return null}()),f(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)(()=>{o(tp(a))},[a]),(0,i.useEffect)(()=>{let e=setInterval(()=>{a||o(tp(!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),o(e?"bypassed":tp(!1))},[a]),N=e?.pianoPageConfig,B=t?.pageAdConfig,$=(()=>
1{if(!B?.cid)return null;let e=Number.parseInt(String(B.cid),10);return Number.isFinite(e)&&e>0?e:null})(),A=(()=>{let e=_?.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"===x.type?"App Router (Replatformed)":"pages"===x.type?"Pages Router":"Unknown",t=["=== DevDash Page Context Report ===","",`Router: ${e}${x.page?` (${x.page})`:""}`,"","--- URL ---",d?.referrer?`Referrer: ${d.referrer}`:null,l?.canonical?`Canonical: ${l.canonical}`:null,L?`WP Post ID: ${L}`:null,I?.editUrl?`WP Edit: ${I.editUrl}`:null,"","--- Metadata ---",l?.author?`Author: ${l.author}`:null,`Published: ${l?.publishDate||N?.publishDate||"N/A"}`,l?.ogType?`OG Type: ${l.ogType}`:null,l?.robots?`Robots: ${l.robots}`:null,"","--- Piano Config ---",`Page Type: ${N?.pageType||"N/A"}`,`Content Section: ${N?.contentSection||"N/A"}`,`Franchise Wall: ${N?.franchiseWall??"N/A"}`,`Tags: ${N?.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: ${p?.scripts||0}`,`Stylesheets: ${p?.stylesheets||0}`,`Images: ${p?.images||0}`,`Links: ${p?.links||0}`,`Iframes: ${p?.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:P().sectionHeader,children:[(0,s.jsxs)("h2",{className:P().sectionTitle,children:[(0,s.jsx)("span",{className:P().accentBar}),"Page Context"]}),(0,s.jsx)("button",{className:`${P().copyAllButton} ${y?P().copyAllButtonCopied:""}`,onClick:R,type:"button",children:y?"â Copied!":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k,{})," Copy All"]})})]}),(0,s.jsxs)("div",{className:`${P().statusBanner} ${"app"===x.type?P().statusBannerApp:"pages"===x.type?P().statusBannerPages:P().statusBannerUnknown}`,children:[(0,s.jsx)("span",{className:P().statusBannerIcon,children:"app"===x.type?"â¡":"pages"===x.type?"\uD83D\uDCC4":"â"}),(0,s.jsx)("span",{className:P().statusBannerText,children:"app"===x.type?"App Router (Replatformed)":"pages"===x.type?"Pages Router":"Unknown Router"}),x.page&&(0,s.jsx)(b,{variant:"app"===x.type?"info":"pages"===x.type?"warning":"default",children:x.page})]}),(0,s.jsxs)(j,{title:"Paywall",children:[(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid2} ${P().marginBottom12}`,children:[(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Status"}),(0,s.jsx)(b,{variant:"paywalled"===r?"error":"bypassed"===r?"info":"success",children:"paywalled"===r?"Paywalled":"bypassed"===r?"Bypassed":"Open"})]}),(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Dev Bypass"}),(0,s.jsx)(b,{variant:a?"info":"default",children:a?"Active":"Off"})]})]}),(0,s.jsx)("button",{className:P().actionButton,disabled:"open"===r,onClick:C,type:"button",children:a?"\uD83D\uDD13 Disable Bypass":"\uD83D\uDD12 Bypass Paywall"}),a&&(0,s.jsx)("div",{className:P().warningBox,style:{marginTop:8},children:"â ï¸ Paywall CSS bypassed via DevDash. Reload to reset."})]}),d&&(d.search||d.hash||d.referrer||l?.canonical||L)&&(0,s.jsxs)(j,{title:"URL",children:[d.search&&(0,s.jsx)(T,{label:"Query String",value:d.search}),d.hash&&(0,s.jsx)(T,{label:"Hash",value:d.hash}),d.referrer&&(0,s.jsx)(T,{label:"Referrer",value:d.referrer}),l?.canonical&&(0,s.jsx)(T,{label:"Canonical",value:l.canonical}),L&&(0,s.jsx)(T,{label:"WP Post ID",value:L}),I?.editUrl&&(0,s.jsx)(T,{copyValue:I.editUrl,label:"WP Edit",value:(0,s.jsx)("a",{className:P().linkValue,href:I.editUrl,rel:"nofollow noreferrer",target:"_blank",children:"Open in WordPress â"})})]}),l&&(l.author||l.publishDate||N?.publishDate||l.modifiedDate||l.ogType||l.robots||l.keywords)&&(0,s.jsxs)(j,{title:"Page Metadata",children:[l.author&&(0,s.jsx)(T,{label:"Author",value:l.author}),(l.publishDate||N?.publishDate)&&(0,s.jsx)(T,{label:"Published",value:l.publishDate||N?.publishDate}),l.modifiedDate&&(0,s.jsx)(T,{label:"Modified",value:l.modifiedDate}),l.ogType&&(0,s.jsx)(T,{label:"OG Type",value:l.ogType}),l.robots&&(0,s.jsx)(T,{label:"Robots",value:l.robots}),l.keywords&&(0,s.jsxs)("div",{className:P().marginTop8,children:[(0,s.jsx)("div",{className:P().labelRow,children:"Keywords"}),(0,s.jsx)(w,{tags:l.keywords.split(",").map(e=>e.trim()),variant:"default"})]})]}),N&&Object.keys(N).length>0&&(0,s.jsxs)(j,{title:"Piano Config",children:[(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid2} ${P().marginBottom12}`,children:[(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Page Type"}),(0,s.jsx)("div",{className:P().statValue,children:N.pageType||"N/A"})]}),(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Franchise Wall"}),(0,s.jsx)(b,{variant:N.franchiseWall?"warning":"success",children:N.franchiseWall?"Yes":"No"})]})]}),N.contentSection&&(0,s.jsx)(T,{label:"Content Section",value:N.contentSection}),N.tags&&N.tags.length>0&&(0,s.jsxs)("div",{className:P().marginTop8,children:[(0,s.jsxs)("div",{className:P().labelRow,children:["Tags (",N.tags.length,")"]}),(0,s.jsx)(w,{tags:N.tags,variant:"info"})]})]}),B&&Object.keys(B).length>0&&(0,s.jsxs)(j,{title:"Ad Targeting",children:[(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid2} ${P().marginBottom12}`,children:[(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxCompact}`,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Channel"}),(0,s.jsx)("div",{className:P().statValueSecondary,children:B.ch||"N/A"})]}),(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxCompact}`,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Content Type"}),(0,s.jsx)("div",{className:P().statValueSecondary,children:B.ctype||"N/A"})]})]}
1),B.cid&&(0,s.jsx)(T,{label:"Content ID",value:B.cid}),B.premiumCategory&&(0,s.jsx)(T,{label:"Premium Category",value:B.premiumCategory}),B.defaultPath&&(0,s.jsx)(T,{label:"Default Path",value:B.defaultPath}),B.tags&&B.tags.length>0&&(0,s.jsxs)("div",{className:P().marginTop12,children:[(0,s.jsxs)("div",{className:P().labelRow,children:["Ad Tags (",B.tags.length,")"]}),(0,s.jsx)(w,{tags:B.tags,variant:"warning"})]}),B.topics&&B.topics.length>0&&(0,s.jsxs)("div",{className:P().marginTop12,children:[(0,s.jsxs)("div",{className:P().labelRow,children:["Topics (",B.topics.length,")"]}),(0,s.jsx)(w,{tags:B.topics,variant:"success"})]})]}),p&&(0,s.jsx)(j,{title:"Document Stats",children:(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid5}`,children:[(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxCompact}`,children:[(0,s.jsx)("div",{className:P().statValueLarge,children:p.scripts}),(0,s.jsx)("div",{className:P().statLabelSmall,children:"Scripts"})]}),(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxCompact}`,children:[(0,s.jsx)("div",{className:P().statValueLarge,children:p.stylesheets}),(0,s.jsx)("div",{className:P().statLabelSmall,children:"Styles"})]}),(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxCompact}`,children:[(0,s.jsx)("div",{className:P().statValueLarge,children:p.images}),(0,s.jsx)("div",{className:P().statLabelSmall,children:"Images"})]}),(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxCompact}`,children:[(0,s.jsx)("div",{className:P().statValueLarge,children:p.links}),(0,s.jsx)("div",{className:P().statLabelSmall,children:"Links"})]}),(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxCompact}`,children:[(0,s.jsx)("div",{className:P().statValueLarge,children:p.iframes}),(0,s.jsx)("div",{className:P().statLabelSmall,children:"Iframes"})]})]})}),_&&(0,s.jsxs)(j,{title:"Next.js",children:[(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid2} ${P().marginBottom12}`,children:[(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Page"}),(0,s.jsx)("div",{className:P().statValueWordBreak,children:_.page||"N/A"})]}),(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Fallback"}),(0,s.jsx)(b,{variant:_.isFallback?"warning":"success",children:_.isFallback?"Yes":"No"})]})]}),(0,s.jsx)(T,{label:"Build ID",value:_.buildId}),_.query&&Object.keys(_.query).length>0&&(0,s.jsxs)("div",{className:P().marginTop8,children:[(0,s.jsx)("div",{className:P().labelRow,children:"Route Query"}),(0,s.jsx)("pre",{className:P().preBlock,children:JSON.stringify(_.query,null,2)})]})]})]})};var tv=a(29454);let t_="__prEnvUpstream",tg="develop-pr-",tx="-fortune-frontend",tf=()=>"u"<typeof document?null:tv.A.get(t_)||null;async function tb(){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 ty(){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 tj=()=>{let{environment:e}=(0,n.p)(),[t,a]=(0,i.useState)(null),[r,o]=(0,i.useState)(null),[l,c]=(0,i.useState)(!1),[d,u]=(0,i.useState)(!1),[m,p]=(0,i.useState)(!1),[h,v]=(0,i.useState)(null),[_,g]=(0,i.useState)(null);(0,i.useEffect)(()=>{a(ty()),v(tf()),g((()=>{let e=tf();if(!e)return null;if(!(e.startsWith(tg)&&e.endsWith(tx)))return null;let t=parseInt(e.slice(tg.length,-tx.length),10);return Number.isNaN(t)||t<=0?null:t})()),tb().then(e=>{o(e.metadata),c(e.unauthorized)});let e=setInterval(()=>a(ty()),1e3),t=()=>a(ty()),s=()=>a(ty());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 x="prod"!==e&&"production"!==e&&r,f="https://content.fortune.com/",y="https://prod-backend-internal.fortune.com/graphql",j="https://payment-api.fortune.com",w="https://personalization-api.fortune.com",S="https://video-api.fortune.com",C="https://api.piano.io/api/v3",N="https://rtbp-graphql.bankrate.com/graphql",B=async()=>{if(!h)return;let e=new URL(window.location.href);e.searchParams.set("__prEnvUpstream",h);let t=e.toString();try{await navigator.clipboard.writeText(t),p(!0),setTimeout(()=>p(!1),2e3)}catch{}},$=async()=>{let a=["=== DevDash Status Report ===","",`Environment: ${e}`,`Wordpress URL: ${f||"Not set"}`,`Laravel/GraphQL URL: ${y||"Not set"}`,j?`Payment API: ${j}`:null,w?`Personalization API: ${w}`:null,S?`Video API: ${S}`:null,C?`Piano API: ${C}`:null,N?`Red Ventures GQL: ${N}`: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:P().sectionHeader,children:[(0,s.jsxs)("h2",{className:P().sectionTitle,children:[(0,s.jsx)("span",{className:P().accentBar}),"Status"]}),(0,s.jsx)("button",{className:`${P().copyAllButton} ${d?P().copyAllButtonCopied:""}`,onClick:$,type:"button",children:d?"â Copied!":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k,{})," Copy All"]})})]}),h&&_&&(0,s.jsxs)("div",{className:P().prPreviewBanner,children:[(0,s.jsxs)("div",{className:P().prPreviewHeader,children:[(0,s.jsx)("span",{className:P().prPreviewIcon,children:"\uD83D\uDD00"}),(0,s.jsx)("h3",{className:P().prPreviewTitle,children:"PR Preview Mode Active"})]}),(0,s.jsxs)("div",{className:P().prPreviewContent,children:[(0,s.jsxs)("p",{className:P().prPreviewText,children:["You are viewing: PR #",_]}),(0,s.jsx)("code",{className:P().prPreviewCookieValue,children:h})]}),(0,s.jsxs)("div",{className:P().prPreviewActions,children:[(0,s.jsxs)("a",{className:`${P().prPreviewButton} ${P().prPreviewButtonGitHub}`,href:`https://github.com/fortunemedia/fortune-frontend/pull/${_}`,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 #",_," on GitHub"]}),(0,s.jsx)("button",{className:`${P().prPreviewButton} ${P().prPreviewButtonShare}`,onClick:B,type:"button",children:m?"â Copied!":"\uD83D\uDD17 Share URL"}),(0,s.jsx)("button",{className:`${P().prPreviewButton} ${P().prPreviewButtonExit}`,onClick:()=>{tv.A.remove(t_,{domain:`.${window.location.hostname}`,path:"/"}),tv.A.remove(t_,{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:P().sectionBlock,children:[(0,s.jsxs)("h3",{className:P().subsectionTitle,children:[(0,s.jsx)("span",{className:P().subsectionAccentBar}),"Backend Services"]}),(0,s.jsxs)("div",{className:P().infoBox,children:[(0,s.jsx)(T,{label:"Wordpress URL",value:f}),(0,s.jsx)(T,{label:"Laravel/GraphQL URL",value:y}),j&&(0,s.jsx)(T,{label:"Payment API",value:j}),w&&(0,s.jsx)(T,{label:"Personalization API",value:w}),S&&(0,s.jsx)(T,{label:"Video API",value:S}),C&&(0,s.jsx)(T,{label:"Piano API",value:C}),N&&(0,s.jsx)(T,{label:"Red Ventures GQL",value:N})]})]}),l&&(0,s.jsxs)("div",{className:P().sectionBlock,children:[(0,s.jsxs)("h3",{className:P().subsectionTitle,children:[(0,s.jsx)("span",{className:`${P().subsectionAccentBar} ${P().accentBarWarning}`}),"CI/CD Build Details"]}
1),(0,s.jsx)("div",{className:P().warningBox,children:"\uD83D\uDD12 Sign in with your Fortune email to view build details."})]}),x&&(0,s.jsxs)("div",{className:P().sectionBlock,children:[(0,s.jsxs)("h3",{className:P().subsectionTitle,children:[(0,s.jsx)("span",{className:`${P().subsectionAccentBar} ${P().accentBarWarning}`}),"CI/CD Build Details",(0,s.jsx)(b,{variant:"warning",children:"Non-Prod Only"})]}),(0,s.jsxs)("div",{className:P().infoBox,children:[(r.version||r.type||r.branch)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:P().borderDivider,children:(0,s.jsxs)("div",{className:P().badgeRow,children:[r.version&&(0,s.jsx)(b,{variant:"info",children:r.version}),r.type&&(0,s.jsx)(b,{variant:"daily"===r.type?"success":"warning",children:r.type}),r.isBeta&&(0,s.jsx)(b,{variant:"warning",children:"Beta"})]})}),r.branch&&(0,s.jsx)(T,{label:"Release Branch",value:r.branch})]}),r.commit?.sha&&(0,s.jsx)(T,{copyValue:r.commit.sha,label:"Full Commit SHA",value:`${r.commit.sha.slice(0,12)}...`}),r.build&&(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid2} ${P().marginBottom12}`,children:[r.build.number&&(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().labelRowSmall,children:"Build #"}),(0,s.jsx)("div",{className:P().statValueLarge,children:r.build.number})]}),r.build.attempt&&(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().labelRowSmall,children:"Attempt"}),(0,s.jsx)("div",{className:`${P().statValueLarge} ${P().statValueSecondary}`,children:r.build.attempt})]})]}),r.build?.timestamp&&(0,s.jsx)(T,{copyValue:r.build.timestamp,label:"Build Timestamp",value:new Date(r.build.timestamp).toLocaleString()}),r.github&&(0,s.jsxs)("div",{className:P().sectionDivider,children:[(0,s.jsx)("div",{className:P().labelRowMargin,children:"GitHub Actions"}),r.github.workflow&&(0,s.jsx)(T,{label:"Workflow",value:r.github.workflow}),r.github.runUrl&&(0,s.jsxs)("div",{className:P().linkRow,children:[(0,s.jsx)("div",{className:P().linkLabel,children:"Run URL"}),(0,s.jsx)("a",{className:P().linkValue,href:r.github.runUrl,rel:"noopener noreferrer",target:"_blank",children:r.github.runUrl})]}),r.github.refName&&(0,s.jsx)(T,{label:"Git Ref",value:r.github.refName})]}),r.aws&&(0,s.jsxs)("div",{className:P().sectionDivider,children:[(0,s.jsx)("div",{className:P().labelRowMargin,children:"AWS Deployment"}),r.aws.region&&(0,s.jsx)(T,{label:"Region",value:r.aws.region}),r.aws.ecr?.repository&&(0,s.jsx)(T,{label:"ECR Repository",value:r.aws.ecr.repository}),r.aws.ecs?.cluster&&(0,s.jsx)(T,{label:"ECS Cluster",value:r.aws.ecs.cluster}),r.aws.ecs?.service&&(0,s.jsx)(T,{label:"ECS Service",value:r.aws.ecs.service}),r.aws.ecr?.tags&&(0,s.jsxs)("div",{className:`${P().badgeRow} ${P().badgeRowMargin}`,children:[r.aws.ecr.tags.commitBuild&&(0,s.jsx)(b,{variant:"default",children:r.aws.ecr.tags.commitBuild}),r.aws.ecr.tags.environment&&(0,s.jsx)(b,{variant:"info",children:r.aws.ecr.tags.environment})]})]})]})]}),t&&(0,s.jsxs)("div",{className:P().sectionBlock,children:[(0,s.jsxs)("h3",{className:P().subsectionTitle,children:[(0,s.jsx)("span",{className:P().subsectionAccentBar}),"Browser & Session"]}),(0,s.jsxs)("div",{className:P().infoBox,children:[(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid2} ${P().marginBottom12}`,children:[(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Viewport"}),(0,s.jsx)("div",{className:P().statValue,children:t.viewport})]}),(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Screen"}),(0,s.jsx)("div",{className:P().statValue,children:t.screenSize})]}),(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Status"}),(0,s.jsx)(b,{variant:t.online?"success":"error",children:t.online?"â Online":"â Offline"})]}),(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Nav Type"}),(0,s.jsx)("div",{className:P().statValueMuted,children:t.navigationType})]})]}),(0,s.jsx)(T,{label:"Referrer",value:t.referrer}),(0,s.jsx)(T,{label:"Session Duration",value:t.sessionDuration}),(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid2} ${P().marginBottom12}`,children:[t.pageLoadTime&&(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxCompact}`,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Page Load"}),(0,s.jsx)("div",{className:P().statValueSuccess,children:t.pageLoadTime})]}),t.domReadyTime&&(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxCompact}`,children:[(0,s.jsx)("div",{className:P().statLabel,children:"DOM Ready"}),(0,s.jsx)("div",{className:P().statValueSuccess,children:t.domReadyTime})]})]}),t.memoryUsage&&(0,s.jsx)(T,{label:"Memory Usage",value:t.memoryUsage}),(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid3} ${P().marginTop12}`,children:[(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxSmall}`,children:[(0,s.jsx)("div",{className:P().statLabel,children:"History"}),(0,s.jsx)("div",{className:P().statValueSecondary,children:t.historyLength})]}),(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxSmall}`,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Local"}),(0,s.jsx)("div",{className:P().statValueSecondary,children:t.localStorageCount})]}),(0,s.jsxs)("div",{className:`${P().statBox} ${P().statBoxSmall}`,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Session"}),(0,s.jsx)("div",{className:P().statValueSecondary,children:t.sessionStorageCount})]})]}),(0,s.jsxs)("div",{className:P().marginTop12,children:[(0,s.jsx)(T,{label:"Device Pixel Ratio",value:`${t.devicePixelRatio}x`}),(0,s.jsx)(T,{label:"Language",value:t.language})]})]})]})]})};
1function tw(){if("u"<typeof document)return{hasToken:!1,pianoToken:null};let e=document.cookie.split(";").reduce((e,t)=>{let[a,s]=t.trim().split("=");return a&&(e[a]=s||""),e},{}).__utp||null;return{hasToken:!!(e&&e.length>0),pianoToken:e}}function tS(){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 tC={C0001:"Strictly Necessary",C0002:"Performance",C0003:"Functional",C0004:"Targeting/Ads",C0005:"Social Media"},tN=()=>{let e=(0,i.useContext)(m),[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(tS()),r(tw());let e=window,t=e.OptanonWrapper;e._devdash_original_wrapper=t,e.OptanonWrapper=()=>{e._devdash_original_wrapper&&e._devdash_original_wrapper(),setTimeout(()=>{a(tS())},100)};let s=setInterval(()=>{let e=tS();a(t=>JSON.stringify(t?.categories)!==JSON.stringify(e.categories)?e:t),r(tw())},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,h=p?.email||null,v=p?.uid||null,_=p?.sub||null,g=p?.given_name||null,x=p?.family_name||null,f=p?.passwordType||null,y=g||x?[g,x].filter(Boolean).join(" "):null,w=e?.hasConsent,S=e?.personalizedAds,C=e?.performanceTracking,N=e?.pianoLoadingState,B=e?.stopVideoDock,$=!!(p||u&&u.length>0),A=n.hasToken,L=$||A,I=u||n.pianoToken,R=!$&&A,E=async()=>{let e=["=== DevDash User Report ===","","--- Authentication ---",`Logged In: ${L?"Yes":"No"}`,R?"(Detected via cookie - Pages Router)":null,`Subscription Access: ${d?"Yes":"No"}
1`,`Piano State: ${N||"Unknown"}`,I?`Piano Token: ${I.slice(0,20)}...`:null,"",L?"--- User Profile ---":null,h?`Email: ${h}`:null,y?`Name: ${y}`:null,v?`User ID: ${v}`:null,_?`Subject: ${_}`:null,f?`Auth Method: ${f}`:null,L?"":null,"--- Consent Status ---",`Overall Consent: ${w?"Granted":!1===w?"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])=>`${tC[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:P().sectionHeader,children:[(0,s.jsxs)("h2",{className:P().sectionTitle,children:[(0,s.jsx)("span",{className:P().accentBar}),"User & Auth"]}),(0,s.jsx)("button",{className:`${P().copyAllButton} ${o?P().copyAllButtonCopied:""}`,onClick:E,type:"button",children:o?"â Copied!":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k,{})," Copy All"]})})]}),(0,s.jsxs)("div",{className:`${P().statusBanner} ${L?P().statusBannerLoggedIn:P().statusBannerGuest}`,children:[(0,s.jsx)("span",{className:P().statusBannerIconLarge,children:L?"\uD83D\uDC64":"\uD83D\uDC7B"}),(0,s.jsxs)("div",{className:P().statusBannerColumn,children:[(0,s.jsx)("span",{className:P().statusBannerTextLarge,children:L?"Logged In":"Guest User"}),(0,s.jsx)("span",{className:P().statusBannerSubtext,children:R?"Detected via cookie (Pages Router)":d?"Subscriber":"No subscription"})]}),(0,s.jsxs)("div",{className:P().statusBannerActions,children:[(0,s.jsx)(b,{variant:L?"success":"default",children:L?"Auth":"Guest"}),d&&(0,s.jsx)(b,{variant:"info",children:"Premium"}),R&&(0,s.jsx)(b,{variant:"warning",children:"Cookie"})]})]}),R&&(0,s.jsx)("div",{className:P().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)(j,{title:"User Profile",children:[h&&(0,s.jsx)(T,{copyValue:h,label:"Email",value:h}),y&&(0,s.jsx)(T,{label:"Name",value:y}),v&&(0,s.jsx)(T,{copyValue:v,label:"User ID",value:v}),_&&(0,s.jsx)(T,{copyValue:_,label:"Subject ID",value:_}),f&&(0,s.jsxs)("div",{className:P().dataRow,children:[(0,s.jsx)("span",{className:P().dataRowLabel,children:"Auth Method"}),(0,s.jsx)(b,{variant:"info",children:f})]})]}),(0,s.jsxs)(j,{title:"Piano",children:[(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid2} ${P().marginBottom12}`,children:[(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"SDK Status"}),(0,s.jsx)(b,{variant:"loaded"===N?"success":"failed"===N?"error":"warning",children:N||"Unknown"})]}),(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Access"}),(0,s.jsx)(b,{variant:d?"success":"default",children:d?"Has Access":"No Access"})]})]}),I&&(0,s.jsx)(T,{copyValue:I,label:"Piano Token",value:`${I.slice(0,30)}...`})]}),(0,s.jsxs)(j,{title:"Consent Status",children:[(0,s.jsxs)("div",{className:`${P().statsGrid} ${P().statsGrid3} ${P().marginBottom12}`,children:[(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Overall"}),(0,s.jsx)(b,{variant:w?"success":!1===w?"error":"default",children:w?"Granted":!1===w?"Denied":"?"})]}),(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Ads"}),(0,s.jsx)(b,{variant:S?"success":!1===S?"error":"default",children:S?"Yes":!1===S?"No":"?"})]}),(0,s.jsxs)("div",{className:P().statBox,children:[(0,s.jsx)("div",{className:P().statLabel,children:"Perf"}),(0,s.jsx)(b,{variant:C?"success":!1===C?"error":"default",children:C?"Yes":!1===C?"No":"?"})]})]}),t?.bannerDismissed!==void 0&&(0,s.jsxs)("div",{className:`${P().dataRow} ${P().dataRowMargin}`,children:[(0,s.jsx)("span",{className:P().dataRowLabel,children:"Banner Dismissed"}),(0,s.jsx)(b,{variant:t.bannerDismissed?"success":"warning",children:t.bannerDismissed?"Yes":"No"})]}),t?.region&&(0,s.jsx)(T,{label:"Detected Region",value:t.region})]}),t&&(0,s.jsxs)("div",{className:P().sectionBlock,children:[(0,s.jsxs)("h3",{className:P().subsectionTitle,children:[(0,s.jsx)("span",{className:P().subsectionAccentBar}),"OneTrust Categories"]}),(0,s.jsxs)("div",{className:P().infoBox,children:[t.rawActiveGroups&&(0,s.jsxs)("div",{className:P().debugBox,children:[(0,s.jsx)("span",{className:P().debugLabel,children:"ActiveGroups: "}),(0,s.jsx)("span",{className:P().debugValue,children:t.rawActiveGroups})]}),!t.rawActiveGroups&&(0,s.jsx)("div",{className:P().warningBox,children:"â ï¸ OnetrustActiveGroups not set yet - consent may be pending"}),(0,s.jsx)("div",{className:P().consentList,children:Object.entries(t.categories).map(([e,t])=>(0,s.jsxs)("div",{className:P().dataRow,children:[(0,s.jsxs)("div",{className:P().dataRowContent,children:[(0,s.jsx)("span",{className:P().dataRowLabelHighlight,children:e}),(0,s.jsx)("span",{className:P().dataRowLabelSecondary,children:tC[e]})]}),(0,s.jsx)(b,{variant:t?"success":"error",children:t?"On":"Off"})]},e))})]})]}),t?.tcfString&&(0,s.jsx)(j,{title:"TCF Consent (GDPR)",children:(0,s.jsx)(T,{copyValue:t.tcfString,label:"TCF v2 Str
1ing",value:`${t.tcfString.slice(0,40)}...`})}),(0,s.jsx)(j,{title:"Preferences",children:(0,s.jsxs)("div",{className:P().dataRow,children:[(0,s.jsx)("span",{className:P().dataRowLabelSecondary,children:"Stop Video Dock"}),(0,s.jsx)(b,{variant:B?"warning":"default",children:B?"Enabled":"Disabled"})]})})]})},tk="devdash.scrollPositions";function tB(){try{let e=localStorage.getItem(tk);if(!e)return{};let t=JSON.parse(e);if(!t||"object"!=typeof t||Array.isArray(t))return{};return t}catch{return{}}}function tT(e,t){try{let a=tB();a[e]=t,localStorage.setItem(tk,JSON.stringify(a))}catch{}}class t$ 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 tA=({activeTab:e})=>{switch(e){case"status":return(0,s.jsx)(tj,{});case"cache":return(0,s.jsx)(F,{});case"cwv":return(0,s.jsx)(te,{});case"experiments":return(0,s.jsx)(tm,{});case"page-context":return(0,s.jsx)(th,{});case"user":return(0,s.jsx)(tN,{});case"ads":return(0,s.jsx)(O,{});case"cookies":return(0,s.jsx)(X,{});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"})]})}},tL=()=>{let{state:e}=(0,n.p)(),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&&(tT(i,r.current),a.current=e.activeTab);let n=tB()[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,tT(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)(t$,{children:(0,s.jsx)(tA,{activeTab:e.activeTab})},e.activeTab)})};var tI=a(99742);let tR=()=>{let e=tI.env.BUILD_VERSION||tI.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 tE=a(96647);let tD=()=>{let{environment:e,setIsOpen:t}=(0,n.p)(),a=(0,tE.Gc)();return(0,s.jsxs)("header",{className:g().header,children:[(0,s.jsxs)("div",{className:g().headerBrand,children:[(0,s.jsx)("div",{className:g().headerLogo,children:(0,s.jsx)("span",{className:g().headerLogoText,children:"D"})}),(0,s.jsx)("span",{className:g().headerTitle,children:"DevDash"}),(0,s.jsx)("span",{className:g().headerEnvBadge,style:{background:`${a}20`,color:a},children:e})]}),(0,s.jsx)("button",{"aria-label":"Close DevDash",className:g().headerCloseBtn,onClick:()=>t(!1),title:"Close (Esc)",type:"button",children:"â"})]})},tP=[{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"}],tM=()=>{let{state:e,setActiveTab:t,setThemeMode:a,logout:i}=(0,n.p)(),r="light"===e.themeMode;return(0,s.jsxs)("nav",{"aria-label":"DevDash navigation",className:g().navSidebar,children:[(0,s.jsx)("div",{className:g().navTabList,children:tP.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,v.A)(g().navTab,i&&g().navTabActive),onClick:()=>t(a.id),title:a.label,type:"button",children:[(0,s.jsx)("span",{className:g().navTabIcon,children:a.icon}),(0,s.jsx)("span",{className:g().navTabLabel,children:a.shortLabel})]},a.id)})}),(0,s.jsxs)("div",{className:g().navActions,children:[(0,s.jsxs)("button",{"aria-label":r?"Switch to dark mode":"Switch to light mode",className:(0,v.A)(g().navActionBtn,g().navActionBtnTheme),onClick:()=>{a(r?"dark":"light")},title:r?"Switch to dark mode":"Switch to light mode",type:"button",children:[(0,s.jsx)("span",{className:g().navActionIcon,children:r?"\uD83C\uDF19":"âï¸"}),(0,s.jsx)("span",{className:g().navActionLabel,children:r?"Dark":"Light"})]}),(0,s.jsxs)("button",{"aria-label":"Disable DevDash",className:(0,v.A)(g().navActionBtn,g().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:g().navActionIcon,children:"â»"}),(0,s.jsx)("span",{className:g().navActionLabel,children:"Off"})]})]})]})},tO="devdash.panelWidth",tV=()=>{let{state:e}=(0,n.p)(),[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(tO);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(tO,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)(tD,{}),(0,s.jsxs)("div",{style:{display:"flex",flex:1,overflow:"hidden"},children:[(0,s.jsx)(tL,{}),(0,s.jsx)(tM,{})]}),(0,s.jsx)(tR,{})]})]})}}}]);
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.