!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]="1fb11ed6-a838-4095-b7e5-f58c2788d770",e._sentryDebugIdIdentifier="sentry-dbid-1fb11ed6-a838-4095-b7e5-f58c2788d770")}catch(e){}}();"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["18249"],{39625:function(e,t,r){r.d(t,{A:()=>n});let n={textInput:"textInput-kYr7wC"}},58398:function(e,t,r){r.d(t,{Z:()=>Y});var n=r(69277),l=r(70408),a=r(32641),i=r(79785),o=r(4006),s=r(69715),c=r(9979),d=r(77851),u=r(84605),p=r(10398),f=r(42509),h=r(2675),m=r(8103),_=r(64839),g=r(86500),y=r(76977),w=r(16993),b=r(75303);function C(){let e=(0,i._)(["Share this ",""]);return C=function(){return e},e}let Y=e=>{var{isOpen:t,onClose:r,shareUrl:i,post:u,pub:p,profile:f,comments:h,commentId:m,medium:b="web",utm_campaign:C,referral_token:Y,position:x,clippingAllowed:N}=e,M=(0,a._)(e,["isOpen","onClose","shareUrl","post","pub","profile","comments","commentId","medium","utm_campaign","referral_token","position","clippingAllowed"]);let{handleClose:A,internalUtmCampaign:I}=(0,_.W)((0,n._)({isOpen:t,onClose:r,shareUrl:i,post:u,pub:p,profile:f,comments:h,commentId:m,medium:b,utm_campaign:C,referral_token:Y},M)),{onStartClipping:D}=(0,s.MC)(),E="post_share_dropdown",S=h&&m&&h.find(e=>e.id===m),O=S?"comment":p&&!u?"publication":u?"post":f?"profile":void 0;return(0,o.FD)(w.aF,{isOpen:t,onClose:A,children:[(0,o.Y)(v,{type:O,onClose:A}),(0,o.Y)(w.cw,{children:(0,o.FD)(y.VP,{gap:20,children:[(0,o.Y)(k,{type:O,pub:p,post:u,profile:f,comment:S,shareUrl:i}),(0,o.Y)(d.k,(0,l._)((0,n._)({utm_campaign:null!=I?I:C,medium:b,post:u,pub:p},M),{shareName:(0,c.ZE)({post:u,pub:p,profile:f}),handleOnClipClick:()=>{(0,g.u4)(g.qY.MEDIA_CLIP_BUTTON_CLICKED,{button:"create",source:"post share dropdown",surface:E}),(0,g.u4)(g.qY.VIDEO_CLIP_BUTTON_CLICKED,{post_id:null==u?void 0:u.id,source:x,type:null==u?void 0:u.type,surface:E}),D({source:"post-share-dropdown",title:null}),r()},showClipping:!!N,disableClipping:!N,shareUrl:null!=i?i:(0,c.x5)(null,{medium:b,post:u,pub:p,profile:f,comments:h,commentId:m,utm_campaign:C,referral_token:Y})}))]})})]})};function v(e){let{type:t,onClose:r}=e,{iString:n,iTemplate:l}=(0,u.GO)(),a="publication"===t?"Substack":t;return(0,o.Y)(w.rQ,{title:a?l(C(),a):n("Share"),onClose:r})}let k=e=>{let{type:t,pub:r,post:n,profile:l,comment:a,shareUrl:i}=e;return(0,o.FD)(x,{shareUrl:i,children:["comment"==t&&a&&(0,o.Y)(p.Hr,{comment:a,readOnly:!0}),"post"==t&&n&&r&&(0,o.Y)(h.Sp,{post:n,publication:r,readOnly:!0}),"publication"==t&&r&&(0,o.Y)(m.S,{publication:r,readOnly:!0}),"profile"==t&&l&&(0,o.Y)(f.i,{url:i,readOnly:!0,title:l.name,host:"substack.com",image:l.photo_url}),void 0==t&&(0,o.Y)(f.i,{url:i,readOnly:!0})]})},x=e=>{let{shareUrl:t,children:r}=e,{handleCopyLink:n}=(0,c._m)();return(0,o.Y)(b.AE,{onClick:()=>n({shareUrl:null!=t?t:"#"}),href:null!=t?t:"#",children:r})}},32999:function(e,t,r){r.d(t,{A:()=>s});var n=r(69277),l=r(70408),a=r(32641),i=r(4006),o=r(97731);let s=e=>{var{size:t=24,color:r="var(--color-utility-white)",className:s}=e,c=(0,a._)(e,["size","color","className"]);return(0,i.Y)(o.A,(0,l._)((0,n._)({},c),{name:"EyeIconFilled",svgParams:{viewBox:"0 0 24 24"},stroke:"none",width:t,height:t,fill:r,className:s,children:(0,i.Y)("path",{d:"M11.869 18.1925C17.6987 18.1925 21.7307 13.4687 21.7307 11.9962C21.7307 10.5163 17.6914 5.7998 11.869 5.7998C6.11209 5.7998 2 10.5163 2 11.9962C2 13.4687 6.11209 18.1925 11.869 18.1925ZM11.869 16.0566C9.59825 16.0566 7.79331 14.2123 7.79331 11.9962C7.79331 9.72174 9.59825 7.93573 11.869 7.93573C14.1179 7.93573 15.9374 9.72174 15.9374 11.9962C15.9374 14.2123 14.1179 16.0566 11.869 16.0566ZM11.869 13.4614C12.6769 13.4614 13.3464 12.7981 13.3464 11.9962C13.3464 11.187 12.6769 10.5236 11.869 10.5236C11.0538 10.5236 10.3843 11.187 10.3843 11.9962C10.3843 12.7981 11.0538 13.4614 11.869 13.4614Z"})}))}},94794:function(e,t,r){r.d(t,{aZ:()=>a}),r(4006);var n=r(17402);let l=(0,n.createContext)(null);function a(){return(0,n.useContext)(l)}l.displayName="CrossPostContext"},68410:function(e,t,r){r.d(t,{sM:()=>i});var n=r(17402),l=r(17988);r(15734);var a=r(98949);let i=()=>{let e,t=(0,a.Fr)(),r=(0,l.useMediaQuery)({query:"only screen and (max-width: 1024px)"}),i=(0,l.useMediaQuery)({query:"only screen and (max-width: 768px)"}),o=(0,l.useMediaQuery)({query:"only screen and (max-width: 1779px)"}),s=(0,l.useMediaQuery)({query:"(orientation: landscape)"});e="undefined"==typeof window?t?"mobile":"desktop":i?"mobile":r?"tablet":"desktop";let c="undefined"==typeof window?!t:!o;return(0,n.useMemo)(()=>({breakpoint:e,isMobile:"mobile"===e,isMobileLandscape:t&&s,isTablet:"tablet"===e,isDesktop:"desktop"===e,isWideScreen:c}),[e,s,t,c])}},98920:function(e,t,r){r.d(t,{Z:()=>d});var n=r(69277),l=r(70408),a=r(4006),i=r(46271),o=r(41842),s=r(97307),c=r(62088);let d=e=>{let{displaySignInModal:t,onCloseSignInModal:r,isStatic:d,entry:u}=e,p=(0,s.n)(),{user:f,setUser:h}=(0,i.ur)();if(d)return null;let m=()=>{p.open({skipRedirectOnExit:!0})};return(0,a.FD)(a.FK,{children:[(0,a.Y)(c.M9,{isOpen:!!t,onCancel:r,onSignup:()=>{r(),m()},onSuccess:()=>{document.location.reload()},onUserCreated:e=>{r(),h(e),m()}}),(0,a.Y)(o.K,(0,l._)((0,n._)({},p.modalProps),{entry:u||"post-preview",onAfterClose:()=>{f&&document.location.reload()}}))]})}},85329:function(e,t,r){r.d(t,{j:()=>s});var n=r(69277),l=r(70408),a=r(4006),i=r(17402),o=r(79661);let s=(0,i.forwardRef)((e,t)=>(0,a.Y)(o.pd,(0,l._)((0,n._)({},e),{ref:t,type:"email"})))},88762:function(e,t,r){r.d(t,{Sy:()=>m,JU:()=>f,sb:()=>h});var n=r(69277),l=r(70408),a=r(32641),i=r(4006),o=r(75159),s=r(32485),c=r.n(s),d=r(17402),u=r(76977),p=r(63136);r(66511);let f=(0,d.forwardRef)((e,t)=>{var{className:r,children:s,htmlFor:d}=e,u=(0,a._)(e,["className","children","htmlFor"]);return(0,i.Y)(o.b,{asChild:!0,htmlFor:d,children:(0,i.Y)(p.EY.B4,(0,l._)((0,n._)({as:"label",weight:"medium",color:"primary",ref:t,cursor:"inherit",className:c()("pencraft",r)},u),{children:s}))})}),h=(0,d.forwardRef)((e,t)=>{var{className:r,children:o}=e,s=(0,a._)(e,["className","children"]);return(0,i.Y)(f,(0,l._)((0,n._)({ref:t,className:r},s),{children:(0,i.FD)(u.Ye,{gap:4,alignItems:"center",children:[o,(0,i.Y)(g,{})]})}))}),m=(0,d.forwardRef)((e,t)=>{var{className:r,children:o,hint:s}=e,c=(0,a._)(e,["className","children","hint"]);return(0,i.Y)(f,(0,l._)((0,n._)({ref:t,className:r},c),{children:(0,i.FD)(u.Ye,{gap:4,justifyContent:"space-between",children:[o,(0,i.Y)(_,{text:s})]})}))}),_=e=>{let{text:t}=e;return(0,i.Y)(p.EY,{color:"secondary",weight:"regular",children:t})},g=()=>(0,i.Y)(p.EY,{as:"span",color:"error",children:"*"})},61084:function(e,t,r){r.d(t,{Jm:()=>Y,eB:()=>b});var n=r(69277),l=r(70408),a=r(32641),i=r(4006),o=r(32485),s=r.n(o),c=r(45773),d=r(17402),u=r(82519),p=r(84605),f=r(35369),h=r(76977),m=r(45859),_=r(43145),g=r(63136),y=r(65842),w=r(25879);let b=(0,d.forwardRef)((e,t)=>{var{className:r,error:o=!1,children:s,flex:c="auto",label:d,placeholder:u,disabled:p,leading:f,size:h="md",priority:_="secondary-outline",onClose:g}=e,y=(0,a._)(e,["className","error","children","flex","label","placeholder","disabled","leading","size","priority","onClose"]);let w=(0,i.Y)(C,(0,l._)((0,n._)({},y),{className:r,error:o,flex:c,label:d,placeholder:u,disabled:p,leading:f,size:h,priority:_,ref:t}));return(0,i.Y)(m.W1,{trigger:w,disabled:p,matchReferenceWidth:!0,onClose:g,children:s})});b.displayName="SelectMenu";let C=(0,d.forwardRef)((e,t)=>{var{className:r,error:o=!1,flex:c="auto",label:d,placeholder:m,disabled:_,leading:b,size:C="md",priority:Y="secondary-outline"}=e,v=(0,a._)(e,["className","error","flex","label","placeholder","disabled","leading","size","priority"]);let{iString:k}=(0,p.GO)(),x=!d,N=null!=m?m:k("Select an option");return(0,i.FD)(f.Nm,(0,l._)((0,n._)({},v),{className:s()(r,w.A.select,w.A.trailing,w.A.menu,w.A["size_".concat(C)],w.A["priority_".concat(Y)],!!b&&w.A.leading,!!o&&w.A.error,!!_&&w.A.disabled),display:"flex",position:"relative",textAlign:"left",minWidth:0,flex:c,disabled:_,ref:t,resetCss:!0,children:[b&&(0,i.Y)(y.uk,{position:"leading",size:C,className:s()(o&&w.A.error),disabled:!!_,children:b}),x?(0,i.Y)(g.EY,{flex:"grow",ellipsis:!0,color:"secondary",children:N}):"string"==typeof d?(0,i.Y)(g.EY,{flex:"grow",ellipsis:!0,color:"primary",children:d}):(0,i.Y)(h.fI,{flex:"grow",alignItems:"center",ellipsis:!0,children:d}),(0,i.Y)(y.uk,{position:"trailing",size:C,className:s()(o&&w.A.error),disabled:!!_,children:(0,i.Y)(u.A,{})})]}))});function Y(e){var{selected:t,trailing:r,onClick:o}=e,s=(0,a._)(e,["selected","trailing","onClick"]);return(0,i.Y)(_.Dr,(0,l._)((0,n._)({},s),{trailing:t?(0,i.Y)(c.A,{}):r,onClick:o}))}C.displayName="SelectMenuTrigger"},83357:function(e,t,r){r.d(t,{N:()=>p,g:()=>f});var n=r(69277),l=r(70408),a=r(32641),i=r(4006),o=r(99862),s=r(17402),c=r(72343),d=r(99662),u=r(89490);let p=(0,s.forwardRef)((e,t)=>{var{href:r,onClick:o,campaign:s,replace:c,state:d,showBack:p}=e,h=(0,a._)(e,["href","onClick","campaign","replace","state","showBack"]);let m=f({href:r,onClick:o,campaign:s,replace:c,state:d=p?(0,l._)((0,n._)({},d),{showBack:!0}):d});return(0,i.Y)(u.az,(0,n._)((0,l._)((0,n._)({as:"a"},h),{ref:t}),m))});function f(e){let{onClick:t,href:r,campaign:l,replace:a,state:i}=e,s=!1;if(r&&!(0,d.y)()){let e;try{e=new URL(r)}catch(t){try{e=new URL("".concat(document.location.origin).concat(r))}catch(e){}}if(e)if((s=e.origin!==document.location.origin)||l)s&&l&&(r=(0,c.P)(r,l));else{let t=new URLSearchParams,n={};for(let[r,l]of e.searchParams)r.startsWith("utm_")?"utm_campaign"===r?n.name=l:n[r.replace(/^utm_/,"")]=l:t.append(r,l);l=n;let a=t.toString();r="".concat(e.pathname).concat(a?"?".concat(a):"").concat(e.hash)}}return{href:r,onClick:e=>{if(null==t||t(e),!s&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey&&r&&!(0,d.y)()){if(e.defaultPrevented)return void e.stopPropagation();(0,c.x4)((0,n._)({},l)),e.preventDefault(),e.stopPropagation(),(0,o.route)(r,a),i&&history.replaceState(i,"")}}}}},50874:function(e,t,r){r.d(t,{WB:()=>u,qD:()=>c});var n=r(69277),l=r(70408),a=r(39944),i=r.n(a),o=r(69843),s=r.n(o);r(82776);let c=e=>{let{rows:t,maxWordsPerRow:r=60}=e;if(s()(t[0]))return[];let a=[],i=(0,l._)((0,n._)({},t[0]),{words:t[0].words.map(e=>(0,l._)((0,n._)({},e),{originalIndex:0}))});for(let e=1;e(0,l._)((0,n._)({},t),{originalIndex:e}))});i.speaker===s.speaker&&i.words.length+s.words.length<=r?i={start:i.start,end:s.end,text:"".concat(i.text," ").concat(s.text),words:i.words.concat(...s.words),speaker:i.speaker}:(a.push(i),i=s)}return a.push(i),a},d=new Map;function u(e,t){let r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.8;if(!t||t.trim().length<10)return -1;let a=((r=d.get(t))||(r=t.toLowerCase().replace(/[.,/#!$%^&*;:{}=\-_`~()]/g,"").split(/\s+/).filter(Boolean),d.set(t,r)),r);if(a.length<3)return -1;let o=t.toLowerCase().trim();for(let t of e)if(t.text.toLowerCase().trim()===o)return t.start;let s=e.flatMap(e=>e.words);if(0===s.length)return -1;let c=s.map(e=>({start:e.start,normalized:e.word.toLowerCase().replace(/[.,/#!$%^&*;:{}=\-_`~()]/g,"")})),u=Math.min(5,Math.max(3,a.length)),p=Math.ceil(u*l);for(let e=0;e<=c.length-u;e++){let t=c.slice(e,e+u);for(let e=0;e<=a.length-u;e++){let r=a.slice(e,e+u),l=0;for(let e=0;e1,()=>1,(e,t)=>+(e!==t)).distance/Math.max(f.length,h.length):0:1)>=n&&l++),l+(u-e-1)=p&&t[0])return t[0].start}}return -1}},12632:function(){},53168:function(e,t,r){r.d(t,{GJ:()=>i,QW:()=>n,Up:()=>o,eQ:()=>l,iC:()=>a});let n=1003,l=1002,a=1001,i=1e3,o=999}}]);