1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f533-456e-7c91-a909-16e8c473a490")}catch(e){}}();;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="058a3ad9-fc89-d3a6-5dd1-304af7b0d9ed")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,381788,e=>{"use strict";e.i(668390);var t=e.i(947500),r=e.i(522786),i=e.i(66170),n=e.i(97720),a=e.i(213148),s=e.i(597278),o=e.i(237355);let l="digg:announcement:digg-button:v1",u=Date.parse("2026-09-18T00:00:00Z"),c=Date.parse("2026-10-18T00:00:00Z"),d={getItem:(e,t)=>{try{return"true"===window.localStorage.getItem(l)}catch{return!0}},setItem:(e,t)=>{try{window.localStorage.setItem(e,JSON.stringify(t))}catch{}},removeItem:e=>{try{window.localStorage.removeItem(e)}catch{}},subscribe:(e,t)=>{let r=r=>{(r.key===e||null===r.key)&&t(d.getItem(e,null))};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}},f=(0,s.atomWithStorage)(l,null,d),h=e=>e>=u&&e<c,p=["/digg-admin","/login","/sign-up","/welcome","/account","/oauth-consent","/mcp","/privacy","/tos","/terms","/api"];var m=e.i(105700);let g=()=>{var e;let s,u,g,v,b=(0,i.usePathname)(),{announcement:y,signIn:w}=(e=p.every(e=>!(b===e||b.startsWith(`${e}/`)))&&!0,s=(0,m.useDiggSignIn)(),u=function(e){let[t,i]=(0,r.useAtom)(f),[n,a]=(0,o.useState)(!1),s=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let r,i=()=>{clearTimeout(r);let n=Date.now();if(!e||!h(n)||!0===t&&!s.current)return void a(!1);if(!1===t&&"visible"===document.visibilityState){if(document.querySelector('[role="dialog"], [role="alertdialog"]')){r=setTimeout(i,1e3);return}a(!0)}r=setTimeout(i,Math.min(c-n,864e5))};return r=setTimeout(i,1e3),window.addEventListener("focus",i),document.addEventListener("visibilitychange",i),()=>{clearTimeout(r),window.removeEventListener("focus",i),document.removeEventListener("visibilitychange",i)}},[e,t]);let u=(0,o.useCallback)(()=>!s.current&&(!e||"visible"!==document.visibilityState||!h(Date.now())||d.getItem(l,null)?(a(!1),!1):(s.current=!0,i(!0),!0)),[e,i]);return{open:e&&n,onOpenChange:(0,o.useCallback)(e=>{e||a(!1)},[]),onShown:u}}(e&&!s.open),g=s.disabled?"loading":s.isSignedIn?"signed_in":"signed_out",v=e=>{(0,a.recordDiggFlowEvent)("digg_announcement_action",{auth_state:g,outcome:e})},{announcement:{...u,onShown:()=>{u.onShown()&&(0,a.recordDiggFlowEvent)("digg_announcement_viewed",{auth_state:g})},onOpenChange:e=>{!e&&u.open&&v("dismissed"),u.onOpenChange(e)},actionDisabled:s.disabled,onTryItOut:()=>{!s.disabled&&(v("try_it_out"),u.onOpenChange(!1),s.isSignedIn||s.onOpenChange(!0,"announcement"))}},signIn:s});return(0,t.jsx)(n.DiggSignInDialog,{...w.dialogProps,announcement:y})};e.s(["DiggAnnouncement",0,()=>(0,t.jsx)(r.Provider,{children:(0,t.jsx)(g,{})})],381788)},394624,e=>{"use strict";var t=e.i(947500),r=e.i(66170),i=e.i(82894),n=e.i(237355),a=e.i(292938),s=e.i(612095);let o=/[^\s@]+@[^\s@]+\.[^\s@]+/,l={utm_campaign:"campaign_name",utm_campaign_id:"campaign_id",utm_content:"campaign_content",utm_id:"campaign_id",utm_medium:"campaign_medium",utm_source:"campaign_source",utm_term:"campaign_term"};function u(e){let t=e?.trim().split(/[?#]/,1)[0]||"/",r=t.startsWith("/")?t:`/${t}`;return(r=r.replaceAll(/\/{2,}/g,"/")).length>1&&(r=r.replace(/\/+$/,"")),r||"/"}function c(e,t){let r=u(t);try{let t=new URL(e);if("http:"!==t.protocol&&"https:"!==t.protocol)return r;return`${t.origin}${r}`}catch{return r}}function d(e){if(e)try{let t=new URL(e);if("http:"!==t.protocol&&"https:"!==t.protocol)return;return`${t.origin}${u(t.pathname)}`}catch{return}}function f(e){let t=new URLSearchParams(e),r={};for(let[e,i]of Object.entries(l)){let n=function(e){let t=e?.trim();if(!(!t||o.test(t)))return t.slice(0,100)}(t.get(e));n&&(r[i]=n)}return r}let h=()=>{let e=(0,r.usePathname)(),t=(0,n.useRef)(null),i=(0,n.useRef)(void 0),o=(0,n.useRef)(null);return(0,n.useEffect)(()=>{o.current||(o.current=f(window.location.search));let r=u(e);if(t.current===r)return;let n=null===t.current;if(t.current=r,(0,s.isActiveTopicPreviewDocument)())return;let l=c(window.location.origin,r),h=i.current??d(document.referrer);(0,a.recordGoogleAnalyticsPageview)({location:l,path:r,...h?{referrer:h}:{},...n&&Object.keys(o.current).length>0?{campaignParams:o.current}:{}}),i.current=l},[e]),null};e.s(["GoogleAnalytics",0,({measurementId:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{id:"digg-ga-loader",src:`https://www.googletagmanager.com/gtag/js?i
2d=${encodeURIComponent(e)}`,strategy:"afterInteractive",onLoad:a.configureGoogleAnalytics,onReady:a.configureGoogleAnalytics,onError:a.disableGoogleAnalyticsForPage}),(0,t.jsx)(n.Suspense,{fallback:null,children:(0,t.jsx)(h,{})})]}),"GoogleAnalyticsPageviewController",0,h,"buildGoogleAnalyticsPageLocation",0,c,"extractGoogleAnalyticsCampaignParams",0,f,"normalizeGoogleAnalyticsPathname",0,u,"sanitizeGoogleAnalyticsReferrer",0,d])},530608,e=>{"use strict";var t=e.i(237355),r=e.i(467343),i=e.i(787360),n=e.i(517550),a=e.i(746766);let s="cluster_detail";function o(){return"u"<typeof performance?Date.now():performance.now()}e.s(["ClusterDetailLifecycleListener",0,()=>((0,t.useEffect)(()=>{if("u"<typeof document)return;let e=null,t=null,l=null,u=new WeakSet,c=new WeakMap,d=new Set,f=new Map,h=e=>{let t=f.get(e);null!=t&&(clearTimeout(t),f.delete(e))},p=()=>{for(let e of f.values())clearTimeout(e);f.clear()},m=()=>{if(!e)return null;let t=c.get(e.root);if(t)return t;let r=new Set;return c.set(e.root,r),r},g=()=>{l=null,e&&t?.hasScrolled&&(t.scrollDepthPct=Math.max(t.scrollDepthPct,(0,a.clusterDetailScrollDepthPct)(e.root)))},v=()=>{e&&!t&&"visible"===document.visibilityState&&(t={hasScrolled:!1,openedEndorser:!1,openedOutbound:!1,openedSentiment:!1,scrollDepthPct:0,startedAt:o()})},b=r=>{if(!(e&&t))return;null!=l&&(cancelAnimationFrame(l),l=null),g();let i=e,a=t;t=null;let s=Math.max(0,Math.round(o()-a.startedAt));(0,n.recordProductEvent)("cluster_detail_visit_ended",{cluster_id:i.context.clusterId,dwell_ms:s,engagement_schema_version:2,exit_reason:r,opened_endorser:a.openedEndorser,opened_outbound:a.openedOutbound,opened_sentiment:a.openedSentiment,...i.context.previewAudience?{preview_audience:i.context.previewAudience}:{},scroll_depth_pct:a.scrollDepthPct,topic:i.context.topic,url_cluster_id:i.context.urlClusterId},{send_instantly:!0,transport:"sendBeacon"})},y=t=>{let r=t.getAttribute("data-cluster-detail-section"),i=m();if(!r||!i||i.has(r)||f.has(t)||"visible"!==document.visibilityState)return;let a=setTimeout(()=>{f.delete(t),"visible"!==document.visibilityState||document.contains(t)&&d.has(t)&&(t=>{if(!e||!e.root.contains(t))return;let r=t.getAttribute("data-cluster-detail-section"),i=m();!r||!i||i.has(r)||(i.add(r),(0,n.recordProductEvent)("cluster_detail_section_viewed",{cluster_id:e.context.clusterId,section:r,surface:s,topic:e.context.topic,...e.context.previewAudience?{preview_audience:e.context.previewAudience}:{},url_cluster_id:e.context.urlClusterId}))})(t)},800);f.set(t,a)},w="u"<typeof IntersectionObserver?null:new IntersectionObserver(e=>{let t=m();for(let r of e){let e=r.target.getAttribute("data-cluster-detail-section");if(!e||!t||t.has(e)){h(r.target);continue}r.isIntersecting&&r.intersectionRatio>=.01?(d.add(r.target),y(r.target)):(d.delete(r.target),h(r.target))}},{threshold:.01}),S=t=>{e&&w&&(t.matches(a.CLUSTER_DETAIL_SECTION_SELECTOR)&&e.root.contains(t)&&w.observe(t),t.querySelectorAll(a.CLUSTER_DETAIL_SECTION_SELECTOR).forEach(t=>{e?.root.contains(t)&&w.observe(t)}))},_=e=>{let t=e;for(;t;){if("none"===t.style.display)return!1;t=t.parentElement}return!0},E=(t,o="route_change")=>{let l=document.querySelector('[data-continuous-cluster-active="true"]'),c=t??null,f=c?(0,a.readClusterDetailTelemetryContext)(c):null;if(void 0===t&&(f=(c=document.querySelector('[data-continuous-cluster-active="true"] [data-cluster-detail]'))?(0,a.readClusterDetailTelemetryContext)(c):null,!c&&!l)){let e=window.location.pathname.split("/").filter(Boolean),t=2===e.length?e[0]:null,r=2===e.length?e[1]:null;if(t&&r)for(let e of document.querySelectorAll(a.CLUSTER_DETAIL_SELECTOR)){let i=(0,a.readClusterDetailTelemetryContext)(e);if(i?.routeTopic===t&&i.urlClusterId===r&&_(e)){c=e,f=i;break}}}(e?.root!==c||e.context.clusterId!==f?.clusterId)&&(e&&((t="route_change")=>{b(t),e=null,w?.disconnect(),p(),d.clear()})(o),c&&f&&((t,a)=>{if(e={context:a,root:t},!u.has(t)){let e,o;u.add(t);let l=(e=t.closest("[data-continuous-cluster-section]"),Number.isSafeInteger(o=Number(e?.dataset.continuousClusterPosition))&&o>0?o:null);(0,n.recordProductEvent)("cluster_detail_page_viewed",{cluster_id:a.clusterId,...null===l?{is_continuation:!1}:{continuation_position:l,is_continuation:!0},digg_deeper_count:a.diggDeeperCount,has_related_links:a.hasRelatedLinks,has_sentiment:a.hasSentiment,initial_post_count:a.initialPostCount,...a.previewAudience?{preview_audience:a.previewAudience}:{}
2,related_link_count:a.relatedLinkCount,statement_count:a.statementCount,surface:s,topic:a.topic,url_cluster_id:a.urlClusterId}),a.previewAudience||(0,i.savePromptState)((0,r.registerClusterDetailView)((0,r.registerActivity)((0,i.loadPromptState)(),Date.now())))}S(t),v()})(c,f))},C=()=>{t&&(t.hasScrolled=!0,null==l&&(l=requestAnimationFrame(g)))},T=(r,i)=>{if(!(e&&t))return;let{target:n}=r;(!(n instanceof Node)||n===document||e.root.contains(n))&&(t[i]=!0)},A=()=>{if("visible"===document.visibilityState){for(let e of d)y(e);v();return}p(),b("visibility_hidden")},x=()=>{p(),b("pagehide")},L=r=>{if(!(e&&t)||0!==r.button||r.altKey||r.ctrlKey||r.metaKey||r.shiftKey)return;let{target:i}=r;if(!(i instanceof Element))return;let n=i.closest("a[href]");if(!n||!e.root.contains(n)||n.hasAttribute("download")||n.target&&"_self"!==n.target)return;let a=new URL(window.location.href),s=new URL(n.href,a);(s.origin!==a.origin||s.pathname!==a.pathname||s.search!==a.search)&&b("route_change")},k=()=>v(),P=e=>{E(e.detail?.root,"continuation")},O=()=>E(),j=e=>T(e,"openedEndorser"),I=e=>T(e,"openedOutbound"),R=e=>T(e,"openedSentiment");document.addEventListener("visibilitychange",A),document.addEventListener("endorser-opened",j),document.addEventListener("outbound-opened",I),document.addEventListener("sentiment-opened",R),document.addEventListener("click",L,!0),document.addEventListener(a.CONTINUOUS_CLUSTER_ACTIVE_EVENT,P),window.addEventListener("pagehide",x),window.addEventListener("pageshow",k),window.addEventListener("popstate",O),window.addEventListener("scroll",C,{passive:!0}),E();let M="u"<typeof MutationObserver?null:new MutationObserver(e=>{for(let t of(E(),e))for(let e of t.addedNodes)e instanceof Element&&S(e)});return M?.observe(document.body,{attributeFilter:["style"],attributes:!0,childList:!0,subtree:!0}),()=>{M?.disconnect(),w?.disconnect(),p(),null!=l&&cancelAnimationFrame(l),document.removeEventListener("visibilitychange",A),document.removeEventListener("endorser-opened",j),document.removeEventListener("outbound-opened",I),document.removeEventListener("sentiment-opened",R),document.removeEventListener("click",L,!0),document.removeEventListener(a.CONTINUOUS_CLUSTER_ACTIVE_EVENT,P),window.removeEventListener("pagehide",x),window.removeEventListener("pageshow",k),window.removeEventListener("popstate",O),window.removeEventListener("scroll",C)}},[]),null)])},842839,e=>{"use strict";let t=new Set(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","ref","ref_src","ref_url","source","fbclid","gclid","mc_cid","mc_eid","token","access_token","id_token","refresh_token","auth","authorization","code","state","session","sid","jwt","api_key","apikey","key","secret","password","passwd","pwd","email","reset","reset_token","confirmation_token","signature","sig","share_token","invite","invitation_token"]);e.s(["getDomain",0,function(e){try{return new URL(e).hostname}catch{return null}},"stripTrackingParams",0,function(e){try{let r=new URL(e);for(let e of Array.from(r.searchParams.keys()))t.has(e.toLowerCase())&&r.searchParams.delete(e);return r.toString()}catch{return e}},"surfaceForPathname",0,function(e){return"/"===e||""===e?"home":e.startsWith("/u/")||e.startsWith("/rankings/")?"profile":e.startsWith("/digg-admin")?"admin":/^\/[a-z0-9-]+\/x\/rankings(?:\/.*)?$/.test(e)||/^\/[a-z0-9-]+\/influencers(?:\/.*)?$/.test(e)?"list":/^\/[a-z0-9-]+$/.test(e)?"feed":/^\/[a-z0-9-]+\/[A-Za-z0-9_-]+$/.test(e)?e.endsWith("/1000")?"list":e.endsWith("/explore")?"explore":e.endsWith("/github")?"github_feed":"cluster":"other"}])},373520,e=>{"use strict";var t=e.i(237355),r=e.i(842839),i=e.i(517550);e.s(["OutboundClickListener",0,()=>((0,t.useEffect)(()=>{if("u"<typeof document)return;let e=new Set(["mailto:","tel:","blob:","javascript:"]),t=t=>{var n;let a;if(t.button>1||t.defaultPrevented)return;let s=t.target;if(!(s instanceof Element))return;let o=s.closest("a");if(!o||"_blank"!==o.getAttribute("target")||o.hasAttribute("download")||"skip-outbound"===o.getAttribute("data-track"))return;let l=o.href;if(!l)return;try{a=new URL(l,window.location.href)}catch{return}if(e.has(a.protocol)||a.host===window.location.host)return;let u=(0,r.getDomain)(a.toString());if(!u)return;let c=o.getAttribute("data-track-role")??o.closest("[data-track-role]")?.getAttribute("data-track-role")??null,d=o.closest("[data-cluster-id]")?.getAttribute("data-cluster-id")??null,f=(n=window.location.pathname,c?.startsWith("story_v2_")?"cluster_detail":(0,r.surfaceForPathname)(n)),h=c?.startsWith("story_v2_")!==!0;(0,i.recordProductEvent)("outbound_clicked",{target_domain:u,surface:f,...h?{target_url:(0,r.stripTrackingParams)(a.toString())}:{},...c?{link_role:c}:{},...d?{source_cluster_id:d}:{}});let p=o.closest("[data-github-bundle], [data-github-widget]");if(p){let e=p.getAttribute("data-track-widget")??"feed",t=p.getAttribute("data-track-event-type")??"unknown",r=p.getAttribute("data-track-repo");(0,i.recordProductEvent)("github_item_clicked",{event_type:t,widget:e,...r?{repo_full_name:r}:{}})}try{o.dispatchEvent(new CustomEvent("outbound-opened",{bubbles:!0}))}catch{}};return document.addEventListener("click",t),document.addEventListener("auxclick",t),()=>{document.removeEventListener("click",t),document.removeEventListener("auxclick",t)}},[]),null)])},996913,e=>{"use strict";var t=e.i(947500),r=e.i(66170),i=e.i(82894),n=e.i(237355),a=e.i(612095);let s=()=>{let e=(0,r.usePathname)(),t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let r=e||"/";if(t.current!==r){let e;t.current=r,(0,a.isActiveTopicPreviewDocument)()||(e=window.plausible??Object.assign((...t)=>{e.q=e.q??[],e.q.push(t)},{q:[]}
2),window.plausible=e,e("pageview"))}},[e]),null};e.s(["PlausiblePageviewController",0,s,"PlausibleScript",0,()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{src:"/relay/js/script.js",strategy:"afterInteractive"}),(0,t.jsx)(i.default,{id:"plausible-init",strategy:"afterInteractive",children:`window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};plausible.init({ endpoint: ${JSON.stringify("/relay/api/event")}, autoCapturePageviews: false })`}),(0,t.jsx)(n.Suspense,{fallback:null,children:(0,t.jsx)(s,{})})]})])},600509,e=>{"use strict";var t=e.i(591865),r=e.i(567590),i=e.i(237355);let n=["@digg.com","@basicintelligence.com","@basicintelligence.ai"];function a(e){let t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())),r=t.getUTCDay()||7;t.setUTCDate(t.getUTCDate()+4-r);let i=new Date(Date.UTC(t.getUTCFullYear(),0,1)),n=Math.ceil(((t.getTime()-i.getTime())/864e5+1)/7);return`${t.getUTCFullYear()}-W${String(n).padStart(2,"0")}`}e.s(["PostHogIdentify",0,function(){let{isLoaded:e,isSignedIn:s,user:o}=(0,t.useUser)(),l=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(!e)return;if(!s||!o){if(null!==l.current){try{r.default.reset()}catch{}l.current=null}return}if(l.current===o.id)return;if(null!==l.current)try{r.default.reset()}catch{}let t={first_vertical:"ai",is_internal:function(e){if(!e)return!1;let t=e.toLowerCase();return n.some(e=>t.endsWith(e))}(o.primaryEmailAddress?.emailAddress)};o.username&&(t.x_handle=o.username);let i={first_seen_at:new Date().toISOString(),cohort_week:a(new Date)};try{r.default.identify(o.id,t,i),l.current=o.id}catch{}},[e,s,o?.id]),null},"isoWeek",0,a])},952588,e=>{"use strict";var t=e.i(359780),r=e.i(237355),i=e.i(842839),n=e.i(517550);let a="digg_last_session_at";e.s(["SessionStartListener",0,function(){return(0,r.useEffect)(()=>{let e;if("u"<typeof document||!0===window.__digg_disable_session_started)return;let r=(()=>{let e=function(e){let t=`${e}=`;for(let e of document.cookie?document.cookie.split("; "):[])if(e.startsWith(t)){let r=e.slice(t.length);try{return decodeURIComponent(r)}catch{break}}return null}(a);if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null})(),s=Date.now(),o=null!==r?Math.min(365,Math.max(0,Math.floor((s-r)/864e5))):void 0,l=(0,i.surfaceForPathname)(window.location.pathname),u=(e=window.location.pathname.split("/")[1]??"",t.TOPIC_URL_SLUGS.includes(e)?e:null),c=function(e){if(!e)return null;try{let t=new URL(e).host;if(!t||t===window.location.host)return null;return t}catch{return null}}(document.referrer),d=function(){try{let e=navigator.userAgent??"";if(/iPad|Tablet/i.test(e))return"tablet";if("function"==typeof window.matchMedia&&window.matchMedia("(max-width: 640px)").matches)return"mobile";return"desktop"}catch{return null}}();(0,n.recordProductEvent)("session_started",{is_returning:null!==r,entry_surface:l,...void 0!==o?{days_since_last_session:o}:{},...u?{entry_topic:u}:{},...c?{referrer_host:c}:{},...d?{device_class:d}:{}});try{let e="https:"===window.location.protocol,t=[`${a}=${new Date(s).toISOString()}`,"path=/","max-age=2592000","SameSite=Lax"];e&&t.push("Secure"),document.cookie=t.join("; ")}catch{}},[]),null}])},181555,e=>{"use strict";var t=e.i(947500),r=e.i(866848),i=e.i(170442);let n="pk_live_Y2xlcmsuZGlnZy5jb20k".trim();e.s(["SiteShellAuthActions",0,({readOnly:e=!1})=>n?(0,t.jsx)(i.AuthNavContainer,{appearance:"sidebar",readOnly:e}):(0,t.jsx)(r.AuthNav,{appearance:"sidebar",isLoaded:!0,isSignedIn:!1})])},379398,e=>{"use strict";var t=e.i(947500),r=e.i(208836),i=e.i(368606),n=e.i(237355),a=e.i(98590),s=e.i(264362),o=e.i(48760),l=e.i(288881);let u="site-shell-sidebar-open",c="(max-width: 1279px)",d=`(()=>{try{var w=document.currentScript.parentElement,s=localStorage.getItem(${JSON.stringify(u)});if(s==='false'||(s!=='true'&&matchMedia(${JSON.stringify(c)}).matches))w.setAttribute('data-collapsible','icon')}catch(e){}})()`,f=({children:e,stateResolved:r})=>{let{isMobile:i,setOpenMobile:a}=(0,l.useSidebar)(),s=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{r&&s.current?.removeAttribute("data-collapsible")},[r]),(0,t.jsxs)("div",{className:"group contents",ref:s,suppressHydrationWarning:!0,children:[(0,t.jsx)("script",{dangerouslySetInnerHTML:{__html:d}}),(0,t.jsx)(l.Sidebar,{collapsible:"icon",children:(0,t.jsx)("div",{className:"contents",onClickCapture:e=>{if(!i||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||!(e.target instanceof Element))return;let t=e.target.closest("a[href]");!t||t.hasAttribute("download")||t.target&&"_self"!==t.target||a(!1)},children:e})})]})};var h=e.i(652683),p=e.i(78829),m=e.i(466691),g=e.i(839717);let v={"--sidebar-width-icon":"5rem"},b=()=>{let{toggleSidebar:e}=(0,l.useSidebar)();return(0,t.jsxs)(o.SiteContainer,{className:"grid h-full grid-cols-[1fr_auto_1fr] items-center px-4 md:hidden",children:[(0,t.jsx)(m.Button,{"aria-label":"Open navigation menu",onClick:e,size:"icon-lg",type:"button",variant:"ghost",className:"justify-self-start",children:(0,t.jsx)(r.Menu,{className:"size-[21px]"})}),(0,t.jsx)(a.SiteHeaderBrand,{logoClassName:"h-6 -translate-x-[2.5%]"})]})};e.s(["SiteShellFrame",0,({authSlot:e,children:r,newPostTarget:a,phoneTopicBar:o,topicActionsTarget:d,topicMenu:m})=>{let{open:y,onOpenChange:w,resolved:S}
2=function(){let[e,t]=(0,n.useState)({open:!0,resolved:!1});return(0,n.useLayoutEffect)(()=>{t({open:function({collapsedByDefault:e,saved:t}){return"true"===t||"false"!==t&&!e}({collapsedByDefault:window.matchMedia(c).matches,saved:(()=>{try{return localStorage.getItem(u)}catch{return null}})()}),resolved:!0})},[]),{onOpenChange:(0,n.useCallback)(e=>{t({open:e,resolved:!0});try{localStorage.setItem(u,String(e))}catch{}},[]),open:e.open,resolved:e.resolved}}(),[_,E]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=()=>E(!0),t=()=>E(!1);return window.addEventListener("keydown",e,!0),window.addEventListener("pointerdown",t,!0),()=>{window.removeEventListener("keydown",e,!0),window.removeEventListener("pointerdown",t,!0)}},[]),(0,t.jsx)(g.TooltipProvider,{children:(0,t.jsxs)(l.SidebarProvider,{"data-sidebar-motion":_?"instant":"animated","data-site-shell":"root","data-site-shell-layout":"sidebar",onOpenChange:w,open:y,style:v,children:[(0,t.jsxs)(f,{stateResolved:S,children:[(0,t.jsx)(l.SidebarHeader,{className:"px-3 pt-4 pb-2",children:(0,t.jsx)(l.SidebarMenu,{className:h.SITE_RAIL_MENU_CLASS,children:(0,t.jsx)(l.SidebarMenuItem,{children:(0,t.jsx)(l.SidebarMenuButton,{asChild:!0,className:(0,p.cn)(h.SITE_RAIL_ROW_CLASS,"w-22 overflow-visible max-md:h-auto! max-md:w-fit!"),tooltip:"Digg",children:(0,t.jsx)(i.default,{"aria-label":"digg home","data-link-treatment":"plain",href:"/",prefetch:!1,children:(0,t.jsx)(s.DiggLogotype,{className:"site-rail-artwork h-auto! w-16! shrink-0 origin-left group-data-[collapsible=icon]:[transform:translateX(-4px)_scale(0.625)] max-md:h-9! max-md:w-auto!"})})})})})}),(0,t.jsx)(l.SidebarContent,{children:m}),(0,t.jsx)(l.SidebarFooter,{className:"px-3 pb-4",children:(0,t.jsxs)(l.SidebarMenu,{className:h.SITE_RAIL_MENU_CLASS,children:[a,e]})}),(0,t.jsx)(l.SidebarRail,{})]}),(0,t.jsxs)(l.SidebarInset,{className:"min-w-0",children:[(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("header",{className:"sticky top-0 z-20 shrink-0 bg-sidebar text-sidebar-foreground md:hidden","data-site-shell":"header",children:[(0,t.jsxs)("div",{className:(0,p.cn)("relative h-14",!o&&"border-b border-sidebar-border"),children:[(0,t.jsx)(b,{}),(0,t.jsx)("div",{className:"absolute top-1/2 right-16 z-10 flex -translate-y-1/2 items-center gap-2",children:d})]}),o]}),(0,t.jsx)("div",{className:"sticky top-0 z-40 h-0 max-md:hidden","data-site-shell":"header",children:(0,t.jsx)(l.SidebarTrigger,{className:"absolute top-2 left-4",size:"icon-lg",variant:"secondary"})})]}),r]})]})})}],379398)},985284,e=>{"use strict";var t=e.i(52099),r=e.i(522786),i=e.i(237355),n=e.i(360112),a=e.i(177917);let s=(0,a.createServerReference)("400cee0cea819f3789b4a5dadb366904179333d1dc",a.callServer,void 0,a.findSourceMapURL,"setSiteTopicOrder"),o=(0,t.atom)(null);e.s(["useSiteTopicOrder",0,function(e){let[t,a]=(0,r.useAtom)(o),l=(0,i.useCallback)((r,i)=>{let o=t??e,l=function(e,t,r){let i=e.indexOf(t),n=e.indexOf(r);if(-1===i||-1===n||i===n)return e;let a=[...e];return a.splice(i,1),a.splice(n,0,t),a}(o,r,i);l!==o&&(a(l),s({topicSlugs:[...l]}).then(e=>{e.ok?a(e.order):(a(o),n.toast.error("not_authenticated"===e.reason?"Sign in to save your Topic order.":"Could not save your Topic order. Please try again."))}))},[e,t,a]);return{order:t,reorder:l}}],985284)},178161,e=>{"use strict";e.i(823400);var t=e.i(979602);t.ALL_TOPICS_FEED_SLUG,e.s(["buildSiteTopicMenu",0,function({directory:e,pathname:r,savedOrder:i=null}){var n;let a,s=e.toSorted((e,t)=>Number("ai"===e.topic)-Number("ai"===t.topic));return[...(n=null===i||0===i.length?s:(a=new Map(i.map((e,t)=>[e,t])),s.toSorted((e,t)=>{let r=a.get(e.topic),i=a.get(t.topic);return void 0===r&&void 0===i?0:void 0===r?1:void 0===i?-1:r-i}))).filter(e=>(0,t.isAllTopicsFeed)(e.topic)),...n.filter(e=>!(0,t.isAllTopicsFeed)(e.topic))].map(e=>({...e,isActive:[e.href,`/${e.topic}`,`/${e.topic}-preview`,...e.activePaths??[]].some(e=>r===e||r?.startsWith(`${e}/`))}))}],178161)},948246,e=>{"use strict";var t=e.i(947500),r=e.i(368606),i=e.i(66170),n=e.i(665143),a=e.i(237355),s=e.i(414402),o=e.i(466691),l=e.i(985284),u=e.i(979602),c=e.i(178161);let d=({items:e})=>{let i,l,u,{currentHref:c,select:d}=(e=>{let t=e.find(e=>e.isActive)?.href??null,[r,i]=(0,a.useState)(null);return{currentHref:null!==r&&r.from===t?r.href:t,select:(0,a.useCallback)(e=>i({href:e,from:t}),[t])}})(e),f=(i=(0,a.useRef)(null),l=(0,a.useRef)(!1),u=(0,n.useReducedMotion)(),(0,a.useLayoutEffect)(()=>{let e=i.current;if(!e||null===c)return;let t=e.querySelector("[data-current]");if(!t)return;let r=t.offsetLeft-(e.clientWidth-t.offsetWidth)/2;e.scrollTo({behavior:l.current&&!u?"smooth":"instant",left:Math.max(0,r)}),l.current=!0},[c,u]),i);return(0,a.useEffect)(()=>{let e=f.current;if(!e)return;let t=0,r=()=>{t=0;let r=e.scrollWidth-e.clientWidth;e.toggleAttribute("data-overflow-start",e.scrollLeft>1),e.toggleAttribute("data-overflow-end",e.scrollLeft<r-1)},i=()=>{0===t&&(t=requestAnimationFrame(r))};r(),e.addEventListener("scroll",i,{passive:!0});let n=new ResizeObserver(i);return n.observe(e),()=>{e.removeEventListener("scroll",i),n.disconnect(),cancelAnimationFrame(t)}},[f]),(0,t.jsx)("nav",{"aria-label":"Topics",className:"border-b border-sidebar-border bg-sidebar text-sidebar-foreground",children:(0,t.jsx)("div",{className:"site-topic-bar-scroller overflow-x-auto overscroll-x-contain",ref:f,children:(0,t.jsx)("div",{className:"flex w-max items-center gap-2 px-4 pt-1 pb-2.5",children:e.map(e=>{let i=e.href===c;return(0,t.jsx)(o.Button,{asChild:!0,className:"shrink-0",size:"default",variant:i?"default":"outline",children:(0,t.jsxs)(r.default,{"aria-current":i?"page":void 0,"data-current":i?"":void 0,"data-link-treatment":"plain",href:e.href,onClick:t=>{0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||d(e.href)},prefetch:!1,children:[(0,t.jsx)("span",{className:"flex","data-icon":"inl
2ine-start",children:(0,t.jsx)(s.SiteTopicIcon,{className:"size-6",topic:e.topic})}),e.label]})},e.topic)})})})})};e.s(["SiteTopicBar",0,d,"SiteTopicBarContainer",0,({directory:e,savedOrder:r=null})=>{let n=(0,i.usePathname)(),a=(0,c.buildSiteTopicMenu)({directory:e,pathname:n,savedOrder:r}),{order:s}=(0,l.useSiteTopicOrder)(a.filter(e=>!(0,u.isAllTopicsFeed)(e.topic)).map(e=>e.topic)),o=null===s?a:(0,c.buildSiteTopicMenu)({directory:e,pathname:n,savedOrder:s});return(0,t.jsx)(d,{items:o})}])},960522,e=>{"use strict";var t=e.i(980686);e.s(["ClusterDetailEntryScroll",0,()=>((0,t.useClusterDetailEntryScroll)(),null)])},267074,e=>{"use strict";var t=e.i(668390),r=e.i(947500),i=e.i(237355),n=e.i(149729);t.default.env.VITEST;let a=(0,i.createContext)(null),s=(0,i.createContext)(()=>{});function o(e){return!e.isLoaded||e.isRevalidating||e.isSignedIn&&void 0===e.accountReadiness?null:!!e.isAdmin}let l=()=>{let e=(0,n.useAuthNav)(),t=(0,i.useContext)(s),r=o(e);return(0,i.useEffect)(()=>{t(r)},[r,t]),null};e.s(["SiteShellLayoutProvider",0,({children:e})=>{let[t,n]=(0,i.useState)(null);return(0,r.jsx)(s.Provider,{value:n,children:(0,r.jsx)(a.Provider,{value:t,children:e})})},"SiteShellLayoutResolver",0,()=>(0,r.jsx)(l,{}),"SiteTopicDirectoryGate",0,({children:e,fallback:t=null,serverVisible:r})=>(0,i.useContext)(a)??r?e:t,"resolveSiteShellTopicDirectoryVisible",0,o])},884023,e=>{"use strict";var t=e.i(947500),r=e.i(368606),i=e.i(66170),n=e.i(288881),a=e.i(652683),s=e.i(237355);let o=e=>Math.abs(e)>=120?32:32+(1+Math.cos(Math.PI*e/120))/2*16,l=(0,s.createContext)(!1),u=({children:e,disabled:r=!1})=>{let{isMobile:i,state:a}=(0,n.useSidebar)();return(0,t.jsx)(l.Provider,{value:"collapsed"===a&&!i&&!r,children:e})};var c=e.i(414402),d=e.i(178161),f=e.i(78829);let h="group-data-[collapsible=icon]:flex group-data-[collapsible=icon]:h-10 group-data-[collapsible=icon]:items-center",p=({item:e,itemProps:i,itemRef:s})=>(0,t.jsx)(n.SidebarMenuItem,{className:h,"data-site-rail-dock":"",ref:s,...i,children:(0,t.jsx)(n.SidebarMenuButton,{asChild:!0,className:(0,f.cn)(a.SITE_RAIL_ROW_CLASS,"text-sm font-semibold group-data-[collapsible=icon]:mx-3 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-0! data-active:font-semibold"),isActive:e.isActive,tooltip:e.label,children:(0,t.jsxs)(r.default,{"aria-current":e.isActive?"page":void 0,"data-link-treatment":"plain",href:e.href,prefetch:!1,children:[(0,t.jsx)("span",{className:(0,f.cn)(a.SITE_RAIL_TILE_CLASS,"[&>svg]:size-7!"),children:(0,t.jsx)(c.SiteTopicIcon,{className:"size-7",topic:e.topic})}),(0,t.jsx)("span",{className:(0,f.cn)(a.SITE_RAIL_LABEL_CLASS,"shrink-0"),children:e.label})]})})}),m=({children:e,dockDisabled:r=!1})=>(0,t.jsx)(u,{disabled:r,children:(0,t.jsx)(g,{children:e})}),g=({children:e})=>{let r,i,u=(r=(0,s.useContext)(l),i=(0,s.useRef)(null),(0,s.useEffect)(()=>{let e=i.current;if(!e||!r)return;let t=window.matchMedia("(hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference)"),n=null,a=null,s=0,l=t=>{for(let r of(null!==a&&(cancelAnimationFrame(a),a=null),t&&e.removeAttribute("data-site-rail-dock-motion"),n??[]))r.button.style.removeProperty("transform");n=null},u=()=>l(!0),c=()=>l(!1),d=()=>{a=null,n??=Array.from(e.querySelectorAll("[data-site-rail-dock]")).flatMap(e=>{let t=e.querySelector('[data-slot="sidebar-menu-button"]');if(!t)return[];let r=e.getBoundingClientRect();return[{button:t,center:r.top+r.height/2}]}),e.hasAttribute("data-site-rail-dock-motion")||e.setAttribute("data-site-rail-dock-motion","animated");let t=0;for(let e of n){let r=o(s-e.center-t),i=r-32,n=t+i/2,a=`translateY(${n}px) scale(${r/32})`;e.button.style.transform!==a&&(e.button.style.transform=a),t+=i}},f=e=>{t.matches&&"touch"!==e.pointerType?0===e.buttons&&(s=e.clientY,a??=requestAnimationFrame(d)):u()};e.addEventListener("pointermove",f,{passive:!0}),e.addEventListener("pointerleave",c),e.addEventListener("pointercancel",u),window.addEventListener("keydown",u,!0),window.addEventListener("scroll",u,!0),window.addEventListener("resize",u),window.addEventListener("blur",u),t.addEventListener("change",u);let h=new MutationObserver(u);return h.observe(e,{childList:!0,subtree:!0}),()=>{u(),h.disconnect(),e.removeEventListener("pointermove",f),e.removeEventListener("pointerleave",c),e.removeEventListener("pointercancel",u),window.removeEventListener("keydown",u,!0),window.removeEventListener("scroll",u,!0),window.removeEventListener("resize",u),window.removeEventListener("blur",u),t.removeEventListener("change",u)}},[r]),{ref:i,"data-site-rail-dock-surface":""});return(0,t.jsx)(n.SidebarGroup,{className:"px-3",...u,children:(0,t.jsx)(n.SidebarGroupContent,{children:(0,t.jsx)(n.SidebarMenu,{"aria-label":"Topics",className:a.SITE_RAIL_MENU_CLASS,children:e})})})},v=({directory:e,pathname:r,savedOrder:i=null})=>{let n=(0,d.buildSiteTopicMenu)({directory:e,pathname:r,savedOrder:i});return(0,t.jsx)(m,{children:n.map(e=>(0,t.jsx)(p,{item:e},e.topic))})};e.s(["SITE_TOPIC_MENU_ITEM_CLASS",0,h,"SiteTopicMenu",0,v,"SiteTopicMenuContainer",0,({directory:e,savedOrder:r=null})=>{let n=(0,i.usePathname)();return(0,t.jsx)(v,{directory:e,pathname:n,savedOrder:r})},"SiteTopicMenuRow",0,p,"SiteTopicMenuShell",0,m],884023)},466926,e=>{"use strict";var t=e.i(947500),r=e.i(720247),i=e.i(957783),n=e.i(775712),a=e.i(67013),s=e.i(66170),o=e.i(237355),l=e.i(288881),u=e.i(884023),c=e.i(985284),d=e.i(979602),f=e.i(178161);let h=({draggedRef:e,item:r})=>{let{attributes:i,isDragging:s,listeners:o,setNodeRef:l,transform:c,transition:d}
2=(0,n.useSortable)({id:r.topic});return(0,t.jsx)(u.SiteTopicMenuRow,{item:r,itemProps:{...i,...o,onClickCapture:t=>{e.current&&(t.preventDefault(),t.stopPropagation())},style:{transform:a.CSS.Translate.toString(c),transition:d,zIndex:s?1:void 0}},itemRef:l})};e.s(["SiteTopicMenuSortable",0,({directory:e,savedOrder:a=null})=>{let p=(0,s.usePathname)(),{isMobile:m}=(0,l.useSidebar)(),g=(0,f.buildSiteTopicMenu)({directory:e,pathname:p,savedOrder:a}),v=g.filter(e=>!(0,d.isAllTopicsFeed)(e.topic)).map(e=>e.topic),{order:b,reorder:y}=(0,c.useSiteTopicOrder)(v),w=null===b?g:(0,f.buildSiteTopicMenu)({directory:e,pathname:p,savedOrder:b}),S=(0,o.useRef)(!1),[_,E]=(0,o.useState)(!1),C=(0,r.useSensors)((0,r.useSensor)(r.PointerSensor,{activationConstraint:{distance:6}}),(0,r.useSensor)(r.KeyboardSensor,{coordinateGetter:n.sortableKeyboardCoordinates}));if(m)return(0,t.jsx)(u.SiteTopicMenu,{directory:e,pathname:p,savedOrder:a});let T=e=>{let{active:t,over:r}=e;r&&t.id!==r.id&&y(String(t.id),String(r.id)),E(!1),setTimeout(()=>{S.current=!1},0)};return(0,t.jsx)(r.DndContext,{id:"site-topic-menu-drag",collisionDetection:r.closestCenter,modifiers:[i.restrictToVerticalAxis,i.restrictToParentElement],onDragCancel:T,onDragEnd:T,onDragStart:()=>{S.current=!0,E(!0)},sensors:C,children:(0,t.jsx)(u.SiteTopicMenuShell,{dockDisabled:_,children:(0,t.jsx)(n.SortableContext,{items:w.filter(e=>!(0,d.isAllTopicsFeed)(e.topic)).map(e=>e.topic),strategy:n.verticalListSortingStrategy,children:w.map(e=>(0,d.isAllTopicsFeed)(e.topic)?(0,t.jsx)(u.SiteTopicMenuRow,{item:e},e.topic):(0,t.jsx)(h,{draggedRef:S,item:e},e.topic))})})})}])},879410,e=>{"use strict";var t=e.i(237355),r=e.i(517550);let i={capture:!0};e.s(["SidebarCardClickListener",0,()=>((0,t.useEffect)(()=>{if("u"<typeof document)return;let e=e=>{if(e.button>1||e.defaultPrevented)return;let{target:t}=e;if(!(t instanceof Element))return;let i=t.closest("a");if(!i)return;let n=i.closest("[data-sidebar-card-id], [data-homepage-inline-sidebar-card]");if(!n)return;let a=n.dataset.sidebarCardId,s=n.dataset.homepageInlineSidebarCard,o=a??s;if(!o)return;let l=i.getAttribute("data-track-role")??i.closest("[data-track-role]")?.getAttribute("data-track-role")??null,u=i.getAttribute("href");(0,r.recordProductEvent)("sidebar_card_clicked",{sidebar_card_id:o,surface:n.dataset.sidebarCardSurface??(void 0===a?"feed_inline":"sidebar"),...u?{target_url:u}:{},...l?{link_role:l}:{}})};return document.addEventListener("click",e,i),document.addEventListener("auxclick",e,i),()=>{document.removeEventListener("click",e,i),document.removeEventListener("auxclick",e,i)}},[]),null)])},26696,e=>{"use strict";e.s(["POST_SELECTOR",0,"[data-post], [data-story-row]","readStoryTelemetryContext",0,function(e){let t,r,i,n,a,s=e.dataset.postId??e.dataset.clusterId;return s?{clusterId:s,endorserCount:Number.isFinite(r=(t=e.dataset.postEndorserCount??e.dataset.storyEndorserCount)?Number(t):NaN)?r:void 0,headlineShort:e.dataset.postHeadlineShort??e.dataset.storyHeadlineShort??void 0,highlightBadgeKey:e.dataset.storyHighlightBadgeKey??void 0,highlightCardType:e.dataset.storyHighlightCardType??void 0,highlightLabel:e.dataset.storyHighlightLabel??void 0,highlightVariant:e.dataset.storyHighlightVariant??void 0,rank:Number.isInteger(n=(i=e.dataset.postRank??e.dataset.storyRank)?Number(i):NaN)&&n>=1?n:void 0,previewAudience:e.closest("[data-topic-preview-audience]")?.dataset.topicPreviewAudience,surface:(a=e.parentElement?.closest("[data-post-surface], [data-story-row-surface]"),a?.dataset.postSurface??a?.dataset.storyRowSurface??e.dataset.postSurface??e.dataset.storySurface??"feed"),topic:e.dataset.postTopic??e.dataset.storyTopic??void 0}:null}])},842225,e=>{"use strict";var t=e.i(237355),r=e.i(517550),i=e.i(26696);let n={capture:!0};e.s(["StoryClickListener",0,()=>((0,t.useEffect)(()=>{if("u"<typeof document)return;let e=e=>{if(e.button>1||e.defaultPrevented)return;let{target:t}=e;if(!(t instanceof Element))return;let n=t.closest("a");if(!n)return;let a=n.closest(i.POST_SELECTOR);if(!a)return;let s="true"===a.dataset.postRequireOpenLink||"true"===a.dataset.storyRequireOpenLink,o=Object.hasOwn(n.dataset,"postOpenLink")||Object.hasOwn(n.dataset,"storyOpenLink");if(s&&!o)return;let l=(0,i.readStoryTelemetryContext)(a);if(!l)return;let{clusterId:u,endorserCount:c,headlineShort:d,highlightBadgeKey:f,highlightCardType:h,highlightLabel:p,highlightVariant:m,previewAudience:g,rank:v,surface:b,topic:y}=l,w=n.dataset.postLinkRole??n.dataset.storyLinkRole??void 0;(0,r.recordProductEvent)("cluster_opened",{cluster_id:u,surface:b,...void 0===v?{}:{position_in_feed:v-1,rank:v},...void 0===c?{}:{endorser_count:c},...y?{topic:y}:{},...g?{preview_audience:g}:{},...d?{headline_short:d}:{},...w?{link_role:w}:{},...h?{highlight_card_type:h}:{},...f?{highlight_badge_key:f}:{},...p?{highlight_label:p}:{},...m?{highlight_variant:m}:{}})};return document.addEventListener("click",e,n),document.addEventListener("auxclick",e,n),()=>{document.removeEventListener("click",e,n),document.removeEventListener("auxclick",e,n)}},[]),null)])},496916,e=>{"use strict";
2var t=e.i(237355),r=e.i(517550),i=e.i(26696);e.s(["StoryImpressionListener",0,()=>((0,t.useEffect)(()=>{if("u"<typeof document||"u"<typeof IntersectionObserver||"u"<typeof MutationObserver||!0===window.__digg_disable_impressions)return;let e=new Set,t=new Map,n=t=>{if(!document.contains(t))return;let n=(0,i.readStoryTelemetryContext)(t);if(!n)return;let{clusterId:a,endorserCount:s,headlineShort:o,highlightBadgeKey:l,highlightCardType:u,highlightLabel:c,highlightVariant:d,previewAudience:f,rank:h,surface:p,topic:m}=n,g=`${a}:${p}`;e.has(g)||(e.add(g),(0,r.recordProductEvent)("cluster_impression",{cluster_id:a,surface:p,...void 0===h?{}:{position_in_feed:h-1},...void 0===s?{}:{endorser_count:s},...m?{topic:m}:{},...f?{preview_audience:f}:{},...o?{headline_short:o}:{},...u?{highlight_card_type:u}:{},...l?{highlight_badge_key:l}:{},...c?{highlight_label:c}:{},...d?{highlight_variant:d}:{}}))},a=new IntersectionObserver(e=>{for(let r of e){let e=r.target;if(r.isIntersecting&&r.intersectionRatio>=.5){if(t.has(e))continue;let r=setTimeout(()=>{t.delete(e),n(e),a.unobserve(e)},800);t.set(e,r)}else{let r=t.get(e);null!=r&&(clearTimeout(r),t.delete(e))}}},{threshold:.5}),s=e=>{a.observe(e)};document.querySelectorAll(i.POST_SELECTOR).forEach(s);let o=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)e instanceof Element&&(e.matches?.(i.POST_SELECTOR)&&s(e),e.querySelectorAll?.(i.POST_SELECTOR).forEach(s))});return o.observe(document.body,{childList:!0,subtree:!0}),()=>{for(let e of(a.disconnect(),o.disconnect(),t.values()))clearTimeout(e);t.clear()}},[]),null)])},566867,e=>{"use strict";var t=e.i(947500),r=e.i(668390),i=e.i(237355),n=e.i(66170);function a(){return"u">typeof window}function s(){return"production"}function o(){return"development"===((a()?window.vam:s())||"production")}function l(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function u(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function c(e){return(0,i.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,i.useEffect)(()=>{!function(e={debug:!0},t){var r;if(!a())return;let{beforeSend:i,src:n,dataset:l}=function(e,t){var r,i;let n=e;if(t)try{n={...null==(r=JSON.parse(t))?void 0:r.analytics,...e}}catch{}!function(e="auto"){if("auto"===e){window.vam=s();return}window.vam=e}(n.mode);let a={sdkn:"@vercel/analytics"+(n.framework?`/${n.framework}`:""),sdkv:"2.0.1"};return n.disableAutoTrack&&(a.disableAutoTrack="1"),n.viewEndpoint&&(a.viewEndpoint=u(n.viewEndpoint)),n.eventEndpoint&&(a.eventEndpoint=u(n.eventEndpoint)),n.sessionEndpoint&&(a.sessionEndpoint=u(n.sessionEndpoint)),o()&&!1===n.debug&&(a.debug="false"),n.dsn&&(a.dsn=n.dsn),n.endpoint?a.endpoint=n.endpoint:n.basePath&&(a.endpoint=u(`${n.basePath}/insights`)),{beforeSend:n.beforeSend,src:(i=n).scriptSrc?u(i.scriptSrc):o()?"https://va.vercel-scripts.com/v1/script.debug.js":i.basePath?u(`${i.basePath}/insights/script.js`):"/_vercel/insights/script.js",dataset:a}}(e,t);if(window.va||(window.va=function(...e){window.vaq||(window.vaq=[]),window.vaq.push(e)}),i&&(null==(r=window.va)||r.call(window,"beforeSend",i)),document.head.querySelector(`script[src*="${n}"]`))return;let c=document.createElement("script");for(let[e,t]of(c.src=n,Object.entries(l)))c.dataset[e]=t;c.defer=!0,c.onerror=()=>{let e=o()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${n}. ${e}`)},document.head.appendChild(c)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e},e.configString??function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}())},[]),(0,i.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var r;null==(r=window.va)||r.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}function d(e){let t,a,s,{route:o,path:u}
2=(t=(0,n.useParams)(),a=(0,n.useSearchParams)(),s=(0,n.usePathname)(),t?{route:function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,i]of e)if(!Array.isArray(i)){let e=l(i);e.test(r)&&(r=r.replace(e,`/[${t}]`))}for(let[t,i]of e)if(Array.isArray(i)){let e=l(i.join("/"));e.test(r)&&(r=r.replace(e,`/[...${t}]`))}return r}catch{return e}}(s,Object.keys(t).length?t:Object.fromEntries(a.entries())),path:s}:{route:null,path:s});return i.default.createElement(c,{path:u,route:o,...e,basePath:function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}(),configString:function(){if(void 0!==r.default&&void 0!==r.default.env)return'{"analytics":{"scriptSrc":"e4614522addf3092/script.js","viewEndpoint":"e4614522addf3092/view","eventEndpoint":"e4614522addf3092/event","sessionEndpoint":"e4614522addf3092/session"},"speedInsights":{"scriptSrc":"727bf241cd61726b/script.js","endpoint":"727bf241cd61726b/vitals"}}'}(),framework:"next"})}function f(e){return i.default.createElement(i.Suspense,{fallback:null},i.default.createElement(d,{...e}))}function h(){return false}function p(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function m(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function g(e){(0,i.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let t=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(!t.current){let i=function(e={},t){var r;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){window.siq=window.siq||[],window.siq.push(e)});let{beforeSend:i,src:n,dataset:a}=function(e,t){var r,i;let n=e;if(t)try{n={...null==(r=JSON.parse(t))?void 0:r.speedInsights,...e}}catch{}let a={sdkn:"@vercel/speed-insights"+(n.framework?`/${n.framework}`:""),sdkv:"2.0.0"};return n.sampleRate&&(a.sampleRate=n.sampleRate.toString()),n.route&&(a.route=n.route),h()&&!1===n.debug&&(a.debug="false"),n.dsn&&(a.dsn=n.dsn),n.endpoint?a.endpoint=m(n.endpoint):n.basePath&&(a.endpoint=m(`${n.basePath}/speed-insights/vitals`)),{src:(i=n).scriptSrc?m(i.scriptSrc):h()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":i.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":i.basePath?m(`${i.basePath}/speed-insights/script.js`):"/_vercel/speed-insights/script.js",beforeSend:n.beforeSend,dataset:a}}(e,t);if(document.head.querySelector(`script[src*="${n}"]`))return null;i&&(null==(r=window.si)||r.call(window,"beforeSend",i));let s=document.createElement("script");for(let[e,t]of(s.src=n,s.defer=!0,Object.entries(a)))s.dataset[e]=t;return s.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${n}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(s),{setRoute:e=>{s.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e},e.configString??function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}());i&&(t.current=i.setRoute)}},[e]),(0,i.useEffect)(()=>{t.current&&e.route&&t.current(e.route)},[e.route]),null}function v(e){let t=(()=>{let e=(0,n.useParams)(),t=(0,n.useSearchParams)()||new URLSearchParams,r=(0,n.usePathname)();if(!e)return null;let i=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!i)return r;let a=r;try{let e=Object.entries(i);for(let[t,r]of e)if(!Array.isArray(r)){let e=p(r);e.test(a)&&(a=a.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=p(r.join("/"));e.test(a)&&(a=a.replace(e,`/[...${t}]`))}return a}catch{return r}})();return i.default.createElement(g,{route:t,...e,framework:"next",basePath:function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}
2(),configString:function(){if(void 0!==r.default&&void 0!==r.default.env)return'{"analytics":{"scriptSrc":"e4614522addf3092/script.js","viewEndpoint":"e4614522addf3092/view","eventEndpoint":"e4614522addf3092/event","sessionEndpoint":"e4614522addf3092/session"},"speedInsights":{"scriptSrc":"727bf241cd61726b/script.js","endpoint":"727bf241cd61726b/vitals"}}'}()})}function b(e){return i.default.createElement(i.Suspense,{fallback:null},i.default.createElement(v,{...e}))}var y=e.i(773384);e.s(["VercelObservers",0,()=>(0,y.useHydrated)()?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{}),(0,t.jsx)(b,{})]}):null],566867)},88515,e=>{"use strict";var t=e.i(649687);e.s(["PreconnectResources",0,function(){return t.default.preconnect("https://cnl5taoq5on9lswk.public.blob.vercel-storage.com"),t.default.preconnect("https://pbs.twimg.com"),t.default.prefetchDNS("https://www.google.com"),null}])},405625,e=>{"use strict";var t=e.i(947500),r=e.i(821957),i=e.i(237355);let n=()=>{let{resolvedTheme:e,setTheme:t}=(0,r.useTheme)();return i.useEffect(()=>{function r(r){var i;r.defaultPrevented||r.repeat||r.metaKey||r.ctrlKey||r.altKey||"string"!=typeof r.key||"d"!==r.key.toLowerCase()||(i=r.target)instanceof HTMLElement&&(i.isContentEditable||"INPUT"===i.tagName||"TEXTAREA"===i.tagName||"SELECT"===i.tagName)||t("dark"===e?"light":"dark")}return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}},[e,t]),null};e.s(["ThemeProvider",0,({children:e,...i})=>(0,t.jsxs)(r.ThemeProvider,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,...i,children:[(0,t.jsx)(n,{}),e]})])},966217,e=>{"use strict";var t=e.i(947500),r=e.i(504701),i=e.i(268314),n=e.i(10070),a=e.i(208009),s=class extends a.Subscribable{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let a=t.queryKey,s=t.queryHash??(0,r.hashQueryKeyByOptions)(a,t),o=this.get(s);return o||(o=new i.Query({client:e,queryKey:a,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){n.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r.matchQuery)(e,t)):t}notify(e){n.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){n.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){n.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},o=e.i(525738),l=a,u=class extends l.Subscribable{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#r=new Map,this.#i=0}#t;#r;#i;build(e,t,r){let i=new o.Mutation({client:e,mutationCache:this,mutationId:++this.#i,options:e.defaultMutationOptions(t),state:r});return this.add(i),i}add(e){this.#t.add(e);let t=c(e);if("string"==typeof t){let r=this.#r.get(t);r?r.push(e):this.#r.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=c(e);if("string"==typeof t){let r=this.#r.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#r.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let r=this.#r.get(t),i=r?.find(e=>"pending"===e.state.status);return!i||i===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#r.get(t)?.find(t=>
2t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){n.notifyManager.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#r.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.matchMutation)(e,t))}notify(e){n.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return n.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.noop))))}};function c(e){return e.options.scope?.id}var d=e.i(348786),f=e.i(900879);function h(e){return{onFetch:(t,i)=>{let n=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],o=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},u=0,c=async()=>{let i=!1,c=(0,r.ensureQueryFn)(t.options,t.fetchOptions),d=async(e,n,a)=>{let s;if(i)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);let o=(s={client:t.client,queryKey:t.queryKey,pageParam:n,direction:a?"backward":"forward",meta:t.options.meta},(0,r.addConsumeAwareSignal)(s,()=>t.signal,()=>i=!0),s),l=await c(o),{maxPages:u}=t.options,d=a?r.addToStart:r.addToEnd;return{pages:d(e.pages,l,u),pageParams:d(e.pageParams,n,u)}};if(a&&s.length){let e="backward"===a,t={pages:s,pageParams:o},r=(e?function(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}:p)(n,t);l=await d(t,r,e)}else{let t=e??s.length;do{let e=0===u?o[0]??n.initialPageParam:p(n,l);if(u>0&&null==e)break;l=await d(l,e),u++}while(u<t)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i):t.fetchFn=c}}}function p(e,{pages:t,pageParams:r}){let i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}var m=class{#n;#a;#s;#o;#l;#u;#c;#d;constructor(e={}){this.#n=e.queryCache||new s,this.#a=e.mutationCache||new u,this.#s=e.defaultOptions||{},this.#o=new Map,this.#l=new Map,this.#u=0}mount(){this.#u++,1===this.#u&&(this.#c=d.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#n.onFocus())}),this.#d=f.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#n.onOnline())}))}unmount(){this.#u--,0===this.#u&&(this.#c?.(),this.#c=void 0,this.#d?.(),this.#d=void 0)}isFetching(e){return this.#n.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#a.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#n.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),i=this.#n.build(this,t),n=i.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#n.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,i){let n=this.defaultQueryOptions({queryKey:e}),a=this.#n.get(n.queryHash),s=a?.state.data,o=(0,r.functionalUpdate)(t,s);if(void 0!==o)return this.#n.build(this,n).setData(o,{...i,manual:!0})}setQueriesData(e,t,r){return n.notifyManager.batch(()=>this.#n.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#n.get(t.queryHash)?.state}removeQueries(e){let t=this.#n;n.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#n;return n.notifyManager.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let i={revert:!0,...t};return Promise.all(n.notifyManager.batch(()=>this.#n.findAll(e).map(e=>e.cancel(i)))).then(r.noop).catch(r.noop)}invalidateQueries(e,t={}){return n.notifyManager.batch(()=>(this.#n.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let i={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(n.notifyManager.batch(()=>this.#n.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,i);return i.throwOnError||(t=t.catch(r.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}
2))).then(r.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let i=this.#n.build(this,t);return i.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.noop).catch(r.noop)}fetchInfiniteQuery(e){return e.behavior=h(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.noop).catch(r.noop)}ensureInfiniteQueryData(e){return e.behavior=h(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return f.onlineManager.isOnline()?this.#a.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#n}getMutationCache(){return this.#a}getDefaultOptions(){return this.#s}setDefaultOptions(e){this.#s=e}setQueryDefaults(e,t){this.#o.set((0,r.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#o.values()],i={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.queryKey)&&Object.assign(i,t.defaultOptions)}),i}setMutationDefaults(e,t){this.#l.set((0,r.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#l.values()],i={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.mutationKey)&&Object.assign(i,t.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#s.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#s.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#n.clear(),this.#a.clear()}},g=e.i(888352),v=e.i(237355),b=e.i(407953),y=e.i(542917);e.s(["default",0,function({children:e}){let[r]=(0,v.useState)(()=>new m({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}})),{isLoaded:i,userId:n,sessionId:a}=(0,b.useAuth)();return(0,v.useEffect)(()=>{i&&r.removeQueries({queryKey:[...y.TAG_HOVER_QUERY_KEY,"admin"],predicate:e=>e.queryKey[2]!==n||e.queryKey[3]!==a})},[i,n,a,r]),(0,t.jsx)(g.QueryClientProvider,{client:r,children:e})}],966217)}]); 3 4//# debugId=058a3ad9-fc89-d3a6-5dd1-304af7b0d9ed 5//# sourceMappingURL=1i6vlu3h-1uxq.js.map 6//# chunkId=01a0f533-456e-7c91-a909-16e8c473a490
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.