!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@538433c"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5f2887d0-fea6-4862-9d5a-36d07cba6f7d",e._sentryDebugIdIdentifier="sentry-dbid-5f2887d0-fea6-4862-9d5a-36d07cba6f7d")}catch(e){}}();"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["58471"],{44567:function(e,n,t){t.d(n,{A:()=>a});let a=/^7(1889|6578)$/.test(t.j)?{hasModal:"hasModal-bDnxNx",modalViewer:"modalViewer-xO_gxg",active:"active-uB0ZZs",logo:"logo-DQBU5j",back:"back-nF7MN5"}:null},37343:function(e,n,t){t.d(n,{HY:()=>r});var a=t(4006),i=t(17402);t(73164),t(86500),t(58418),t(68349),t(24078),t(35369),t(76977),t(63136);var l=t(24216);t(39318),t(49807);let o=/^7(1889|6578)$/.test(t.j)?(0,i.createContext)({hidden:!1}):null;function r(e){let{children:n}=e,[t,l]=(0,i.useState)(!1);return(0,a.Y)(o.Provider,{value:{hidden:t,setHidden:l},children:n})}(0,l.a)("app-banner"),(0,l.a)("app-banner-text")},37552:function(e,n,t){t.d(n,{G:()=>a.Gt});var a=t(30)},98643:function(e,n,t){t(4006),t(47963),t(84605),t(86500),t(35369),t(76977)},22830:function(e,n,t){t(4006),t(32485),t(44383),t(17402),t(69324),t(84605),t(44333),t(17028),t(11510),t(39318)},14315:function(e,n,t){t(4006),t(32485),t(17402),t(97731),t(59307),t(41935),t(33460),t(94090),t(15667),t(33764),t(9979),t(84605),t(46271),t(72945),t(67024),t(94328),t(86500),t(94729),t(72569),t(37552),t(76528),t(82772),t(68349),t(91694);var a=t(89490);t(35369),t(76977),t(44552),t(45859),t(22602),t(57820),t(45974),t(75303),t(63136),t(36372),t(95187),t(5180),t(2548),t(77103),t(45795),t(51735),t(11510),t(16291),t(37764),t(39318),t(18947),t(49807);var i=t(91093);(0,a.I4)({display:"flex",direction:"column",gap:8,justifyContent:"center",alignItems:"center",className:i.A.cardTop}),(0,a.I4)({display:"flex",direction:"column",padding:12,paddingTop:20,gap:20,flex:"grow",className:i.A.cardBottom}),(0,a.I4)({display:"flex",direction:"column",gap:2,flex:"grow"}),(0,a.I4)({display:"flex",alignItems:"center",gap:8}),(0,a.I4)({display:"flex",gap:4,minWidth:0,flex:"grow",alignItems:"center"})},59396:function(e,n,t){t(4006),t(17402),t(12501)},7615:function(e,n,t){t(4006),t(83673),t(17402),t(47963),t(70357),t(84565),t(84605),t(46271),t(53906),t(27332),t(86500),t(24078),t(35369),t(33727),t(16074),t(76977),t(45974),t(63136);var a=t(89490);(0,a.I4)({display:"flex",alignItems:"center",justifyContent:"space-between",padding:8}),(0,a.I4)({display:"flex",direction:"column",gap:8}),t(32485),t(8853),t(84777),t(41935),t(25859),t(82772),t(67250),t(22602),t(94328),t(14315),t(49807),(0,a.I4)({display:"flex",justifyContent:"space-between",alignItems:"start",gap:12}),t(39318),(0,a.I4)({display:"flex",justifyContent:"space-between",alignItems:"start",gap:12}),t(17849),t(21398),t(46453),t(2548),t(59396),t(11510),t(49095),t(37764)},17849:function(e,n,t){t(4006),t(78649),t(76977),t(22830)},887:function(e,n,t){t(4006);var a=t(75303);t(34387),t(69198);var i=t(70828);(0,a.I4)({display:"flex",flex:"auto",className:i.A.container}),(0,a.I4)({display:"flex",className:i.A.nav,zIndex:1,gap:20,paddingX:20,sizing:"border-box",alignItems:"center",flex:"grow",justifyContent:"end",borderBottom:"detail"})},11014:function(e,n,t){t(4006),t(69324),t(97640),t(95899),t(46271);var a=t(89490);t(35369),t(76977),t(44333),t(11510),t(34387),t(89273),t(69198),t(63136),t(45197);var i=t(70828);(0,a.I4)({display:"flex",alignItems:"center",justifyContent:"start",gap:20,flex:"grow"}),(0,a.I4)({display:"flex",alignItems:"center",justifyContent:"end",gap:12,flex:"grow"}),(0,a.I4)({display:"flex",flex:"auto",className:i.A.container}),(0,a.I4)({display:"flex",className:i.A.nav,zIndex:1,gap:20,paddingX:20,sizing:"border-box",alignItems:"center",flex:"grow",justifyContent:"space-between"})},34387:function(e,n,t){t(4006),t(84605),t(35369),t(49807)},69198:function(e,n,t){t(4006),t(84605),t(35369),t(11510)},47408:function(e,n,t){t.d(n,{w:()=>m});var a=t(4006),i=t(32485),l=t.n(i),o=t(31052),r=t(68058),s=t(22005),d=t(92707),c=t(11004),u=t(92170),f=t(46275),p=t(76977),g=t(62956),v=t(21713),y=t(49807);if(/^7(1889|6578)$/.test(t.j))var b=t(57324);var I=t(5059);function m(e){let{requireLogin:n}=e,t=(0,f.BR)().isOnDestination,{chatUnreadCount:i}=(0,g.J)({}),m={noBase:!1,urlParams:{utm_content:b.fL.islandDesktopNavSidebar}},x=t?"/":(0,y.yRP)("".concat((0,y.$_T)(),"/"),{utm_content:b.fL.islandDesktopNavSidebar});return(0,a.Y)(p.pT,{className:l()(I.A.container,!t&&I.A.publicationNav),children:(0,a.FD)(p.pT,{className:I.A.tabs,flex:"grow",alignItems:"center",justifyContent:"space-between",borderTop:"detail",paddingX:64,children:[(0,a.Y)(v.D,{href:x,icon:(0,a.Y)(d.A,{}),activeIcon:(0,a.Y)(s.A,{}),requireLogin:n,native:!t}),(0,a.Y)(v.D,{href:t?y.tvl:(0,y.ahR)(m),icon:(0,a.Y)(u.A,{}),activeIcon:(0,a.Y)(c.A,{}),requireLogin:n,native:!t}),(0,a.Y)(v.D,{href:t?(0,y.ehp)({noBase:!0}):(0,y.ehp)(m),icon:(0,a.Y)(r.A,{}),activeIcon:(0,a.Y)(o.A,{}),requireLogin:n,badge:i,native:!t})]})})}},67081:function(e,n,t){t(4006),t(17402),t(52820),t(70107),t(86500),t(38217),t(84605),t(94729),t(12501),t(35369),t(28911),t(84843),t(36372),t(16291),t(46058)},68079:function(e,n,t){t.d(n,{I:()=>y});var a=t(4006);if(/^7(1889|6578)$/.test(t.j))var i=t(35426);var l=t(32485),o=t.n(l),r=t(17402),s=t(99070);if(/^7(1889|6578)$/.test(t.j))var d=t(71857);var c=t(76977),u=t(46453);if(/^7(1889|6578)$/.test(t.j))var f=t(64968);var p=t(619),g=t(77103),v=t(22309);let y=e=>{var n,t;let{surface:l}=e,[y,m]=(0,r.useState)(!1),{activePost:x,activePodcast:w,activePublication:A,audioPlayerRef:h,duration:k,lastActivePost:j,lastActivePodcast:Y,lastActivePublication:_,onClear:N}=(0,g.p)();(0,r.useEffect)(()=>{x?m(!0):m(!1)},[x]);let{isReading:T}=(0,u.eE)(),D=!!(x&&b({post:x})),C=null!=(n=null==x?void 0:x.podcast_url)&&n,P=!!x&&(0,d.M)(x),B=D&&x?b({post:x}):C&&x?x.podcast_url:P&&x?I({post:x}):null;return(0,a.Y)(c.I1,{className:o()(v.A.container,v.A[l],T&&v.A.reading),children:(0,a.Y)(i.e,{appear:!0,show:y,className:v.A.transition,enterFrom:v.A.hide,enterTo:v.A.show,leaveFrom:v.A.show,leaveTo:v.A.hide,children:(0,a.Y)(s.A,{ref:h,src:B,updateOnEveryFrame:k&&k<60||!1,trackingProps:{entityType:"post",entityKey:null!=(t=null==x?void 0:x.id)?t:"unknown",contentType:"post",surface:"global_player"},render:e=>{let{isPlaying:n,progress:t,progressBarOnMouseDown:i,progressBarRef:l,skipBack:o,skipForward:r,togglePlayback:s,setPlaybackRate:d,playbackRate:c}=e,u=f.C.findIndex(e=>{let{value:n}=e;return n===c});return(0,a.Y)(p.D,{isPlaying:null!=n&&n,playbackIndex:u,post:x,podcast:w,publication:A,lastActivePost:j,lastActivePodcast:Y,lastActivePublication:_,progress:t,progressBarRef:l,duration:null!=k?k:0,onClear:N,onMouseDownProgressBar:i,onSetPlaybackRate:d,onSkipBack:o,onSkipForward:r,onTogglePlayback:s})}},B)})})},b=e=>{var n,t;let{post:a}=e,i=null==(n=a.audio_items)?void 0:n.find(e=>"voiceover"===e.type);return null!=(t=null==i?void 0:i.audio_url)?t:null},I=e=>{var n,t;let{post:a}=e,i=null==(n=a.audio_items)?void 0:n.find(e=>"tts"===e.type);return null!=(t=null==i?void 0:i.audio_url)?t:null}},51735:function(e,n,t){t.d(n,{_:()=>s});var a=t(4006);if(/^7(1889|6578)$/.test(t.j))var i=t(44471);var l=t(84605),o=t(94729),r=t(36372);function s(e){let{publication:n,postId:t,onSuccess:s}=e,d=(0,r.d)(),{iString:c}=(0,l.GO)();return async e=>{let{reportCategory:l,details:u}=e;(null==n?void 0:n.id)&&t&&(await (0,o.x6)("/api/v1/publications/".concat(n.id,"/posts/").concat(t,"/report"),{method:"POST",json:{details:u,reportCategory:l}}),null==s||s(),d.popToast(()=>(0,a.Y)(r.y,{text:c("We received your report"),Icon:i.A})))}}}}]);