!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"substack@ee6f1f5"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6b6e7219-6b91-4230-bb65-ff511358531f",e._sentryDebugIdIdentifier="sentry-dbid-6b6e7219-6b91-4230-bb65-ff511358531f")}catch(e){}}();"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["43597"],{24311:function(e,t,n){n.d(t,{A:()=>i});let i={input:"input-y4v6N4",textarea:"textarea-GbEjRX",autogrowing:"autogrowing-_ipn9Y",inputText:"inputText-pV_yWb",inputWithButtonWrapper:"inputWithButtonWrapper-qFTACT",primary:"primary-MUgbK6","secondary-outline":"secondary-outline-JXafwf",secondaryOutline:"secondary-outline-JXafwf",inputWithButtonInput:"inputWithButtonInput-KDznfS",start:"start-p226EZ",end:"end-LEvC6s",segmentedInputContainer:"segmentedInputContainer-BnsX3X",inputWithButtonButton:"inputWithButtonButton-SsgPne",focus:"focus-nqjos7",leading:"leading-hoxUwz",trailing:"trailing-cHz8Pv",error:"error-QSGsmD",disabled:"disabled-bZ2Wej",readOnly:"readOnly-yVYuPy",wrapper:"wrapper-JJvHsG",position_leading:"position_leading-_w7oUS",positionLeading:"position_leading-_w7oUS",size_sm:"size_sm-nn6jzC",sizeSm:"size_sm-nn6jzC",size_md:"size_md-UKpzt4",sizeMd:"size_md-UKpzt4",position_trailing:"position_trailing-kaOmCa",positionTrailing:"position_trailing-kaOmCa",unstyled:"unstyled-IJLUJU"}},84759:function(e,t,n){n.d(t,{A:()=>i});let i={imageContainer:"imageContainer-ZCdWLc",imageContainerFullHeight:"imageContainerFullHeight-hF_KGu",overlay:"overlay-SefqcL",image:"image-MSZo7W",downloadButton:"downloadButton-lyp4Aa",loading:"loading-BBOJtl",link:"link-D8bzcd"}},22857:function(e,t,n){n.d(t,{q:()=>o});var i=n(4006),r=n(10996);let o=e=>{let{children:t,disable:n}=e;return n?(0,i.Y)(i.FK,{children:t}):(0,i.Y)(r.NP,{theme:"light-theme",children:t})}},37110:function(e,t,n){n.d(t,{LY:()=>m,NK:()=>u,Xd:()=>g,j5:()=>p});var i=n(4006),r=n(12215),o=n(17402),a=n(85478),l=n(46271),d=n(68349),s=n(91392),c=n(39318);let u=s.FI.CHATBOT_TERMS_LAST_ACCEPTED_AT,p=3650,h=(0,o.createContext)(void 0);function m(e){let{children:t,enabled:n=!0}=e,[r,s]=(0,o.useState)(!1),[u,p]=(0,o.useState)(!1),[m,g]=(0,o.useState)(!1),w=(0,l.ur)(),y=(0,a.mJ)(),[_,b]=(0,o.useState)(f(w));return(0,o.useEffect)(()=>{b(f(w))},[w]),(0,o.useEffect)(()=>{if(!n||"undefined"==typeof window)return;let e=()=>{window.duet&&(window.duet.hide(),window.duet.setEventListener(e=>{"DUET_INITIALIZE"===e.eventName?s(!0):"DUET_DEINITIALIZE"===e.eventName&&s(!1)}),p(!0))};if(window.duet)e();else{let t=setInterval(()=>{window.duet&&(e(),clearInterval(t))},100),n=setTimeout(()=>{clearInterval(t)},1e4);return()=>{clearInterval(t),clearTimeout(n)}}},[n]),(0,i.Y)(h.Provider,{value:{isTermsModalOpen:m,setTermsModalOpen:g,hasAcceptedTerms:_,setHasAcceptedTerms:b,handleSupportClick:()=>{y.getConfigFor("enable_decagon_chat")?_?r?window.duet&&u&&(window.duet.close(),s(!1)):window.duet&&u&&(window.duet.open(),s(!0)):g(!0):(0,d.V2)((0,c.RPh)(),{newTab:!0})}},children:t})}function g(){let e=(0,o.useContext)(h);if(void 0===e)throw Error("useDecagon must be used within a DecagonProvider");return e}function f(e){var t;return!!(e.user&&(null==(t=e.userSettings)?void 0:t.chatbotTermsLastAcceptedAt)||r.get(u))}},3117:function(e,t,n){n.d(t,{u:()=>w});var i=n(4006),r=n(12215),o=n(17402),a=n(37110),l=n(84605),d=n(46271),s=n(94729),c=n(35369),u=n(60322),p=n(76977),h=n(16993),m=n(84843),g=n(63136),f=n(39318);function w(){let[e,t]=(0,o.useState)(!1),{isTermsModalOpen:n,setTermsModalOpen:w,setHasAcceptedTerms:y}=(0,a.Xd)(),_=(0,d.ur)(),{iString:b}=(0,l.GO)(),Y=()=>{w(!1)},v=async()=>{r.set(a.NK,new Date().toJSON(),{expires:a.j5}),_.user&&await (0,s.x6)("/api/v1/user-setting",{method:"PUT",json:{type:"chatbot_terms_last_accepted_at",value_datetime:new Date().toISOString()}}),y(!0),Y()};return(0,i.FD)(h.aF,{isOpen:n,onClose:Y,width:480,children:[(0,i.Y)(h.rQ,{icon:(0,i.Y)(m.Ud,{}),onClose:Y,title:b("Terms & conditions"),showDivider:!0,alignItems:"center",description:(0,i.Y)(i.FK,{children:(0,i.FD)(g.EY,{translated:!0,children:["In order to use the Substack chatbot, please first review the"," ",(0,i.Y)(g.Yq,{href:"".concat((0,f.Ewe)(),"/chatbot-tos"),decoration:"underline",target:"_blank",children:I18N.p("Terms & Conditions")}),"."]})})}),(0,i.Y)(h.cw,{children:(0,i.FD)(p.ov,{gap:12,children:[(0,i.Y)(u.S,{autoFocus:!0,size:"sm",onChange:()=>t(!e),checked:e}),(0,i.Y)(g.EY.B4,{translated:!0,children:"I have read, understood, and agree to the Terms & Conditions."})]})}),(0,i.Y)(h.jl,{showDivider:!0,direction:"column",primaryButton:(0,i.Y)(c.$n,{priority:"primary",onClick:v,disabled:!e,children:b("Continue")})})]})}},56381:function(e,t,n){n.d(t,{k:()=>g});var i=n(4006),r=n(17402),o=n(37110),a=n(3117),l=n(8337),d=n(97405),s=n(84605),c=n(89490),u=n(35369);function p(e){let{onClick:t,priority:n="secondary"}=e,{iString:r}=(0,s.GO)();return(0,i.Y)(c.az,{className:"background-QydabK",position:"fixed",children:(0,i.Y)(u.$n,{priority:n,onClick:t,leading:(0,i.Y)(d.A,{size:20}),shadow:"md",children:r("primary"===n?"Ask a question":"Help")})})}var h=n(85478);class m extends r.Component{componentDidCatch(e,t){console.error(e)}render(){return this.props.children}}function g(e){let{hideButton:t=!1,priority:n="secondary"}=e,r=(0,h.mJ)();return(0,i.Y)(m,{children:(0,i.Y)(o.LY,{enabled:!!r.getConfigFor("enable_decagon_chat"),children:(0,i.Y)(f,{hideButton:t,priority:n})})})}function f(e){let{hideButton:t,priority:n}=e,{hasAcceptedTerms:r,handleSupportClick:d}=(0,o.Xd)();return(0,i.Y)(m,{children:r?(0,i.FD)(i.FK,{children:[(0,i.Y)(l.E,{}),!t&&(0,i.Y)(p,{onClick:d,priority:n})]}):(0,i.FD)(i.FK,{children:[(0,i.Y)(a.u,{}),!t&&(0,i.Y)(p,{onClick:d,priority:n})]})})}},80520:function(e,t,n){n.d(t,{N:()=>w});var i=n(4006),r=n(46110),o=n(17402),a=n(22857),l=n(84605),d=n(27749),s=n(2675),c=n(75840),u=n(35369),p=n(76977),h=n(16993),m=n(63136),g=n(504),f=n(44307);function w(e){let{item:t,pub:n,post:a}=e,[d,s]=(0,o.useState)(!1),{iString:c}=(0,l.GO)();return(0,i.FD)(i.FK,{children:[(0,i.Y)(u.K0,{priority:"quaternary",size:"sm",className:f.A.moreButton,onClick:()=>s(!0),children:(0,i.Y)(r.A,{size:16})}),(0,i.FD)(h.aF,{isOpen:d,onClose:()=>s(!1),width:440,children:[(0,i.Y)(h.rQ,{icon:(0,i.Y)(r.A,{size:20}),title:c("Auto-generated clip"),onClose:()=>s(!1)}),(0,i.Y)(h.cw,{children:(0,i.Y)(p.I1,{gap:16,children:(0,i.Y)(m.EY.B3,{children:c("Substack automatically selected this clip for you from the full video below.")})})}),(0,i.Y)(h.jl,{primaryButton:(0,i.Y)(y,{item:t,pub:n,post:a,onClose:()=>s(!1)}),secondaryButton:(0,i.Y)(u.$n,{priority:"secondary",onClick:()=>s(!1),children:c("Done")})})]})]})}let y=e=>{let{item:t,pub:n,post:r,onClose:p}=e,{iString:h}=(0,l.GO)(),m=(0,s.vZ)({post:r,publication:n}),f=(0,d.PK)(),w=(0,o.useContext)(c.P);return(0,i.Y)(a.q,{children:(0,i.Y)(u.$n,{priority:"primary",onClick:e=>{(0,g.Qb)(t,f,"watch_full_episode",{tabId:w}),m(e),p()},children:h("View Full Episode")})})}},90136:function(e,t,n){n.d(t,{P:()=>C,$:()=>I});var i=n(4006),r=n(91378),o=n(94140),a=n(11749),l=n(17402),d=n(84605),s=n(27749),c=n(75840),u=n(86500),p=n(12501),h=n(35369),m=n(76977),g=n(45859),f=n(16993),w=n(63136),y=n(11587),_=n(36372),b=n(504),Y=n(49807);let v="translateButton-IHtTNI";function C(e){let{comment:t,onToggleTranslation:n,isShowingTranslation:o,item:a}=e,{iString:u}=(0,d.GO)(),f=(0,s.PK)(),y=(0,c.T)(),C=(0,_.d)(),[I,T]=(0,l.useState)(!1),{isLoading:D,refetch:E}=(0,p.st)({pathname:"/api/v1/note/".concat((0,Y.Vvu)(t.id,"comment"),"/translate")}),S=async e=>{if(e.stopPropagation(),D)return;if(a&&(0,b.Qb)(a,f,"translate",{tabId:y,extraEventProps:{is_translated:!1}}),t.translation)return void n(t);let r=await E();r instanceof Error?C.popToast(()=>(0,i.Y)(_.y,{text:u("Translation failed. Please try again.")})):n(r.item.comment)};if(o)return(0,i.FD)(i.FK,{children:[(0,i.FD)(g.W1,{trigger:(0,i.Y)(h.Nm,{resetCss:!0,className:v,children:(0,i.FD)(m.Ye,{gap:4,alignItems:"center",children:[(0,i.Y)(r.A,{size:12}),(0,i.Y)(w.EY.B4,{as:"span",children:u("Translated")})]})}),align:"start",children:[(0,i.Y)(g.Dr,{href:"/settings?section=translations",children:u("Translation settings")}),(0,i.Y)(g.Dr,{onClick:()=>T(!0),children:u("Translation feedback")}),(0,i.Y)(g.Dr,{onClick:()=>{a&&(0,b.Qb)(a,f,"show_original",{tabId:y,extraEventProps:{is_translated:!0}}),n()},children:u("Show original")})]}),(0,i.Y)(k,{isOpen:I,onClose:()=>T(!1),item:a})]});let A=D?u("Translating..."):u("Translate");return(0,i.Y)(w.EY.B4,{as:"span",onClick:S,className:v,children:(0,i.FD)(m.Ye,{gap:4,alignItems:"center",children:[(0,i.Y)(r.A,{size:12}),A]})})}function I(e,t){var n;return!!(e&&(null!=e.language&&e.language!==t||(null==(n=e.attachments)?void 0:n.some(e=>"comment"===e.type&&null!=e.comment.language&&e.comment.language!==t))))}let T=["unintended_meaning","awkward_or_incoherent","too_formal_or_casual","inappropriate_or_offensive","other"];function k(e){let{isOpen:t,onClose:n,item:r}=e,{iString:c}=(0,d.GO)(),p=(0,s.PK)(),g={unintended_meaning:c("Unintended meaning"),awkward_or_incoherent:c("Awkward or incoherent"),too_formal_or_casual:c("Too formal or casual"),inappropriate_or_offensive:c("Inappropriate or offensive"),other:c("Other")},[_,b]=(0,l.useState)(!1),[Y,v]=(0,l.useState)(new Set),[C,I]=(0,l.useState)(""),k=()=>{b(!1),v(new Set),I(""),n()},D=e=>{r&&"comment"===r.type&&(0,u.u4)(u.qY.NOTE_TRANSLATION_FEEDBACK_SUBMITTED,{noteId:r.entity_key,surface:p,feedback:e,feedback_reason:Array.from(Y),other:C.trim()}),k()};return(0,i.FD)(f.aF,{isOpen:t,onClose:k,width:360,children:[(0,i.Y)(f.rQ,{title:c("Rate this translation"),description:c("Your feedback will be used to help improve translations"),alignItems:"center",onClose:k}),(0,i.Y)(f.cw,{padding:0,children:(0,i.FD)(m.I1,{gap:16,children:[(0,i.FD)(m.Ye,{gap:16,paddingX:20,paddingTop:28,paddingBottom:_?28:48,justifyContent:"center",children:[(0,i.Y)(h.K0,{priority:"secondary-outline",size:"lg",width:64,height:64,rounded:!0,"aria-label":c("Good translation"),onClick:()=>D("up"),children:(0,i.Y)(o.A,{size:20})}),(0,i.Y)(h.K0,{height:64,width:64,priority:_?"primary":"secondary-outline",size:"lg",rounded:!0,"aria-label":c("Bad translation"),onClick:()=>b(!0),children:(0,i.Y)(a.A,{size:20})})]}),_&&(0,i.FD)(m.I1,{gap:16,borderTop:"detail",paddingX:20,paddingBottom:20,paddingTop:16,children:[(0,i.Y)(w.EY.B3,{weight:"semibold",children:c("Tell us more")}),(0,i.Y)(m.Ye,{gap:8,style:{flexWrap:"wrap"},children:T.map(e=>(0,i.Y)(h.$n,{priority:Y.has(e)?"primary":"secondary-outline",size:"sm",onClick:()=>{v(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},children:g[e]},e))}),Y.has("other")&&(0,i.Y)(y.T,{value:C,onChange:e=>I(e.currentTarget.value),placeholder:c("Tell us more..."),rows:4,maxlength:500}),(0,i.Y)(h.$n,{priority:"primary",onClick:()=>D("down"),children:c("Submit")})]})]})})]})}},74049:function(e,t,n){n.d(t,{P:()=>m,k:()=>h});var i=n(4006),r=n(7350),o=n.n(r),a=n(17402),l=n(15734),d=n.n(l),s=n(84605),c=n(86500),u=n(36372),p=n(57324);let h=e=>{let t=(0,u.d)(),{iString:n}=(0,s.GO)(),[r,l]=(0,a.useState)(0),h=o()(e=>{l(e)},100),m=(0,a.useCallback)(async()=>{var t,n;let i,r,o=!e.live_stream_id||(null==(t=e.liveStream)?void 0:t.is_rtmp)?"original":"mp4",a="/api/v1/video/upload/".concat(e.id,"/src.json?type=").concat(o),{body:{src:s}}=await d().get(a),u=await fetch(s),m=null==(n=u.body)?void 0:n.getReader(),g=u.headers.get("Content-Length");if(!m||!g)throw Error("Failed to read the response body or content length is missing.");let f=parseInt(g),w=0,y=[];do{let e=await m.read();i=e.done,(r=e.value)&&(y.push(r),h((w+=r.length)/f*100))}while(!i);let _=new Blob(y),b=window.URL.createObjectURL(_),Y=document.createElement("a");Y.href=b,Y.download="undefined"!==e.name&&e.name?e.name:"original.webm",Y.target="_blank",Y.rel="noopener noreferrer",Y.style.display="none",document.body.appendChild(Y),Y.click(),document.body.removeChild(Y),(0,c.u4)(c.qY.VIDEO_CLIP_DOWNLOAD_BUTTON_CLICKED,{name:"download",post_id:e.post_id,utm_campaign:p._9.substackClips,utm_medium:p.Jn.web,media_upload_id:e.id}),setTimeout(()=>l(0),200)},[e]);return{startDownload:()=>{l(0),m(),t.popToast(()=>(0,i.Y)(u.y,{text:n("Download started, do not close the window until download is completed")}))},downloadPercentage:r}},m=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"original",i="/api/v1/video/upload/".concat(e.id,"/src.json?type=").concat(n),{body:{src:r},status:o}=await d().get(i);if(o>=400){let e="there was an error generating the pre-signed url of the original source";throw console.warn(e),Error(e)}let a=await fetch(r);if(a.status>=400){let e="there was an error downloading the original source";throw console.warn(e),Error(e)}let l=await a.blob(),s=window.URL.createObjectURL(l),u=document.createElement("a");u.href=s,u.download=t?"".concat(t,".mp4"):"".concat(e.name),u.target="_blank",u.rel="noopener noreferrer",u.style.display="none",document.body.appendChild(u),u.click(),document.body.removeChild(u),(0,c.u4)(c.qY.VIDEO_CLIP_DOWNLOAD_BUTTON_CLICKED,{name:"download",post_id:e.post_id,utm_campaign:p._9.substackClips,utm_medium:p.Jn.web,media_upload_id:e.id})}},95641:function(e,t,n){n.d(t,{E:()=>d});var i=n(69277),r=n(32641),o=n(15734),a=n.n(o),l=n(12501);function d(e){var{auto:t,initialResult:n,deps:o}=e,d=(0,r._)(e,["auto","initialResult","deps"]);return(0,l.qK)(async e=>{var{signal:t}=e,n=(0,r._)(e,["signal"]);let{pathname:o="",query:l,body:s,method:c="get"}=(0,i._)({},d,n),u=a()(c.toUpperCase(),o);l&&u.query(l),s&&u.send(s),t.addEventListener("abort",()=>{u.abort()});let p=await u;if(t.aborted)return;let h=p.error;if(h)throw h;return p.body},o||[],{auto:t,initialResult:n})}},38093:function(e,t,n){n.d(t,{Q:()=>y,Z:()=>w});var i=n(69277),r=n(4006),o=n(32485),a=n.n(o),l=n(42216),d=n(17402),s=n(84605),c=n(94729),u=n(89490),p=n(8149),h=n(76977),m=n(20500),g=n(63136),f=n(24311);function w(e){let{email:t,redirect:n,forPub:o,islandMagicSignin:a,onIsAttemptingLoginChange:s}=e,[u,h]=(0,d.useState)(""),[m,g]=(0,d.useState)(!1),[f,w]=(0,d.useState)(!1),[y,C]=(0,d.useState)(!1),I=async()=>{g(!0),s&&s(!0);try{let[e]=await Promise.all([(0,c.x6)("/api/v1/email-otp-login/complete",{method:"POST",json:{code:u,email:t,redirect:n,for_pub:o,island_magic_signin:a}}),new Promise(e=>setTimeout(e,250))]);window.location.href=e.redirect}catch(e){e instanceof c.fk&&"login_guard_challenge"===e.body.type&&C(!0),g(!1),s&&s(!1),w(!0),h("")}};return t?(0,r.FD)(Y,{children:[(0,r.Y)(l.wE,{autoFocus:!0,maxLength:6,pattern:l.UO,onChange:e=>{h(e),e.length&&w(!1)},onComplete:I,value:u,render:e=>{let{slots:t}=e;return(0,r.Y)(v,{children:t.map((e,t)=>(0,r.Y)(_,(0,i._)({disabled:m},e),t))})}}),(0,r.Y)(p.N,{open:!!f,children:(0,r.Y)(b,{suspiciousLogin:y})})]}):null}function y(e){let{onComplete:t,error:n,isLoading:o}=e,[a,c]=(0,d.useState)(""),{iString:u}=(0,s.GO)();return(0,r.FD)(Y,{children:[(0,r.Y)(l.wE,{autoFocus:!0,maxLength:6,pattern:l.UO,onChange:e=>{c(e)},onComplete:e=>{o||t(e)},value:a,disabled:o,render:e=>{let{slots:t}=e;return(0,r.Y)(v,{children:t.map((e,t)=>(0,r.Y)(_,(0,i._)({disabled:o},e),t))})}}),n&&(0,r.Y)(m.yn,{style:{textAlign:"center"},children:u("You entered an incorrect code. Please try again.")})]})}function _(e){let{char:t,isActive:n,disabled:i}=e;return(0,r.Y)(h.fI,{justifyContent:"center",alignItems:"center",width:36,height:40,className:a()(f.A.input,n&&f.A.focus,i&&f.A.disabled),children:(0,r.Y)(g.EY.B2,{textAlign:"center",children:t||""})})}function b(e){let{suspiciousLogin:t}=e,{iString:n}=(0,s.GO)(),i=n(t?"Please check your email for instructions to complete signing in.":"You entered an incorrect code. Please try again.");return(0,r.Y)(m.yn,{style:{textAlign:"center"},children:i})}let Y=(0,u.I4)({display:"flex",direction:"column",alignItems:"center",gap:8}),v=(0,u.I4)({display:"flex",direction:"row",justifyContent:"center",alignItems:"center",gap:8})},22057:function(e,t,n){n.d(t,{Z:()=>u});var i=n(69277),r=n(4006),o=n(32485),a=n.n(o),l=n(24078),d=n(89490),s=n(82776),c=n(72458);function u(e){let{users:t,renderAvatar:n=e=>(0,r.Y)(l.eu,(0,i._)({},e)),max:o=5,total:d,size:s=32,direction:u="ltr",className:g,renderCount:f,loading:w}=e,y=o?t.slice(0,o):t,_=d?d-y.length:o?t.length-o:0,b="rtl"===u?[...y].reverse():y,Y=(0,r.Y)(p,{size:s,remainingCount:_}),v=null==f?void 0:f(_),C=.25*s,I=Math.max(.125*s,3);return(0,r.FD)(h,{children:[(0,r.FD)(m,{className:a()(c.A[u],g),style:{"--scale":"".concat(s,"px"),"--offset":"".concat(C,"px"),"--border-width":"".concat(I,"px")},children:[w?function(e){let{size:t,max:n}=e;return Array(n).fill(null).map((e,i)=>(0,r.Y)(l.mM,{size:t,className:a()(c.A.avatar,0!==i&&c.A.overlap,i===n-1&&c.A.last)},i))}({size:s,max:o}):b.map((e,t)=>n({user:e,size:s,className:a()(c.A.avatar,0!==t&&c.A.overlap,t===b.length-1&&c.A.last)})),_>0&&!f&&Y]}),_>0&&f&&v]})}function p(e){let{size:t,remainingCount:n}=e;return(0,r.Y)(l.j0,{className:a()(c.A.avatar,c.A.overlap,c.A.last),size:t,children:(0,r.Y)(l.NV,{size:t,text:"+".concat((0,s.numberToRoughShortString)(Math.max(n,1),{plusSignifier:""}))})})}let h=(0,d.I4)({display:"flex",direction:"row",gap:8,alignItems:"center",justifyContent:"start"}),m=(0,d.I4)({display:"flex",direction:"row",alignItems:"center",justifyContent:"start"})},84555:function(e,t,n){n.d(t,{d:()=>o});var i=n(17402),r=n(72550);let o=e=>{let{appTheme:t}=e,n=(0,i.useMemo)(()=>(0,r.zC)(t),[t]);return(0,i.useEffect)(()=>n?a(n):void 0,[n]),"undefined"==typeof window&&a(n),{variables:n}};function a(e){function t(){var e;document.body.classList.remove("app-theme"),null==(e=document.head.querySelector("#app-theme-css"))||e.remove()}if(!e)return void t();let n=document.createElement("style");n.id="app-theme-css",n.type="text/css";let i="body {\n";for(let[t,n]of Object.entries(e))null!=n&&(i+=" ".concat(t,": ").concat(n.toString(),";\n"));return n.innerHTML=i+="}\n",document.body.classList.add("app-theme"),document.head.appendChild(n),t}},62488:function(e,t,n){n.d(t,{Z:()=>o,t:()=>r});var i=n(17402);let r=(0,i.createContext)("unknown");function o(){return(0,i.useContext)(r)}},69911:function(e,t,n){n.d(t,{H:()=>o});var i=n(68090),r=n.n(i);function o(e,t){var n;let i=e.conversations.get(t.messageThreadId),o=t.recentMessageId?e.communityComments.get(t.recentMessageId):null,a=r()(null!=(n=null==i?void 0:i.replyIds)?n:[]),l=a?e.communityComments.get(a):null;return o?l?o.comment.created_at>l.comment.created_at?o:l:o:l}}}]);