!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 t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="68c395c3-7d5c-4040-ae8d-002bfa8e5671",e._sentryDebugIdIdentifier="sentry-dbid-68c395c3-7d5c-4040-ae8d-002bfa8e5671")}catch(e){}}();"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["96109"],{76722:function(e,t,n){n.d(t,{A:()=>r});let r={item:"item-Npdq6R",withDescription:"withDescription-NqmhWd",mobile:"mobile-H_2QrZ",priority_primary:"priority_primary-eIAnBM",priorityPrimary:"priority_primary-eIAnBM",priority_secondary:"priority_secondary-G7JGFb",prioritySecondary:"priority_secondary-G7JGFb",priority_accent:"priority_accent-_OAv7B",priorityAccent:"priority_accent-_OAv7B",priority_destructive:"priority_destructive-_k3_64",priorityDestructive:"priority_destructive-_k3_64"}},77256:function(e,t,n){n.d(t,{W:()=>c});var r=n(4006),o=n(17402),i=n(10697),a=n(37082),l=n(11510);function c(e){let{trigger:t,children:n,onOpen:c,onClose:d,disabled:s,side:u,align:p,matchReferenceWidth:g=!1,disableMobileBottomSheet:h=!1,portal:f=!0}=e,m=(0,l.Iu)(),[v,b]=(0,o.useState)(!1),y=()=>b(!1),Y=e=>{b(e),e?null==c||c():null==d||d()};return m&&!h?(0,r.Y)(i._,{trigger:t,disabled:s,open:v,close:y,onOpenChange:Y,children:n}):(0,r.Y)(a.T,{trigger:t,disabled:s,open:v,close:y,onOpenChange:Y,side:u,align:p,matchReferenceWidth:g,portal:f,children:n})}},10697:function(e,t,n){n.d(t,{_:()=>w});var r,o=n(69277),i=n(70408),a=n(4006),l=n(35426),c=n(38390),d=n(17402);let s=null!=(r=n(66760).A.lock)?r:"";n(69843);let u=new WeakMap;function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(t=>{let[n,o]=t;r[n]=e.style.getPropertyValue(n),e.style.setProperty(n,o)}),n||u.set(e,r)}let g="var(--animation-timing-slow)",h="var(--animation-drawer)";var f=n(33397),m=n(54467),v=n(18788),b=n(80988),y=n(45346),Y=n(98793);function w(e){let{trigger:t,children:n,disabled:r,open:u,close:w,onOpenChange:A}=e,D=(0,d.useRef)(null),C=(0,d.useRef)(null);(0,d.useEffect)(()=>{if(!u)return;let e=document.body,t=document.documentElement,n=window.scrollY,r={top:e.style.top,bottom:e.style.bottom,paddingRight:e.style.paddingRight},o=window.innerWidth-t.clientWidth;return e.style.top="-".concat(n,"px"),o>0&&(e.style.paddingRight="".concat(o,"px")),e.classList.add(s),()=>{e.style.top=r.top,e.style.bottom=r.bottom,e.style.paddingRight=r.paddingRight,e.classList.remove(s),window.scrollTo(0,n)}},[u]);let _=function(e){let{menuRef:t,overlayRef:n,onClose:r}=e,o=(0,d.useRef)({isDragging:!1,didDrag:!1,startTime:new Date,startY:0,startX:0,pointerId:0,menuHeight:0}),i=t.current;(0,d.useEffect)(()=>{i&&(i.style.touchaction="proxy.php?url=none")},[i]);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.current&&p(n.current,{opacity:"".concat(e),transition:t?"transform ".concat(g," ").concat(h,", opacity ").concat(g," ").concat(h):"none"})},l=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.current&&p(t.current,{transform:"translate3d(0, ".concat(e,"px, 0)"),transition:n?"transform ".concat(g," ").concat(h,", opacity ").concat(g," ").concat(h):"none"})},c=()=>{t.current&&(l(0,!0),a(1,!0))};return{props:{onPointerDown:e=>{var n;let r=t.current;if(!r)return;let i=o.current;i.isDragging=!0,i.startTime=new Date,i.startY=e.pageY,i.startX=e.pageX,i.pointerId=e.pointerId,i.menuHeight=null!=(n=r.getBoundingClientRect().height)?n:0},onPointerMove:e=>{let n=o.current,r=t.current,{menuHeight:i}=n;if(!n.isDragging||e.pointerId!==n.pointerId||!r)return;let c=e.pageY-n.startY;if(!(10>Math.abs(c))&&(n.didDrag||((e,t)=>{var n;let r=null==(n=window.getSelection())?void 0:n.toString();if(r&&r.length>0)return!1;for(;e;){if(e.scrollHeight>e.clientHeight&&0!==e.scrollTop&&t)return!1;let n=e.parentNode;if(!n||!(n instanceof HTMLElement))break;e=n}return!0})(r,c>0))){if(e.preventDefault(),n.didDrag||(n.didDrag=!0,r.setAttribute("data-dragging","true"),r.setPointerCapture(e.pointerId)),c<0)return void l(-(8*(Math.log(-c+1)-2)));a(1-c/i),l(c)}},onPointerUp:e=>{var i;let a=o.current,l=t.current;if(!a.isDragging||e.pointerId!==a.pointerId||!l)return;let d=new Date().getTime()-a.startTime.getTime(),s=e.pageY-a.startY,u=Math.abs(s)/d,f=Math.min(null!=(i=l.getBoundingClientRect().height)?i:0,window.innerHeight);(l.releasePointerCapture(e.pointerId),a.didDrag&&e.preventDefault(),a.isDragging=!1,a.didDrag=!1,a.startTime=new Date,a.startY=0,a.startX=0,a.pointerId=0,l.removeAttribute("data-dragging"),s<0)?c():u>.4||Math.abs(s)>=.5*f?(p(t.current,{transition:"transform ".concat(g," ").concat(h,", opacity ").concat(g," ").concat(h)}),p(n.current,{transition:"opacity ".concat(g," ").concat(h)}),r()):c()},onPointerCancel:e=>{let{isDragging:t,pointerId:n}=o.current;t&&n===e.pointerId&&e.preventDefault()}},isDragging:o.current.isDragging}}({menuRef:D,overlayRef:C,onClose:w});return(0,a.Y)(f.x.Provider,{value:{useMobileBottomSheet:!0,close:w},children:(0,a.FD)(c.bL,{open:u,onOpenChange:A,children:[(0,a.Y)(c.l9,{asChild:!0,disabled:r,children:t}),(0,a.Y)(c.ZL,{forceMount:!0,children:(0,a.Y)(l.e.Root,{show:u,children:(0,a.FD)(b.k,{children:[(0,a.Y)(y.B,{children:(0,a.Y)(y.k,{ref:C,onClose:w,disableCloseOnBackdropClick:!1})}),(0,a.Y)(Y.r,{children:(0,a.Y)(c.UC,(0,i._)((0,o._)({forceMount:!0,className:"content-wsxbvP",onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault()},_.props),{children:(0,a.FD)(v.k,{ref:D,children:[(0,a.Y)(m.D,{close:w}),n]})}))})]})})})]})})}},37082:function(e,t,n){n.d(t,{T:()=>s});var r=n(69277),o=n(4006),i=n(76041),a=n(33397),l=n(88206),c=n(18788),d=n(53168);function s(e){let{trigger:t,children:n,disabled:s,open:u,close:p,onOpenChange:g,side:h,align:f,matchReferenceWidth:m=!1,portal:v=!0}=e,b=(0,r._)({zIndex:d.eQ,maxHeight:"var(--radix-dropdown-menu-content-available-height)","--scale":l.ph,"--shift":"".concat(l.lW,"px")},m?{minWidth:"var(--radix-dropdown-menu-trigger-width)"}:{}),y=(0,o.Y)(i.UC,{className:"content-JPMpsy",side:h,align:f,sideOffset:l.lW,collisionPadding:l.lW,style:b,onCloseAutoFocus:e=>e.preventDefault(),children:(0,o.Y)(c.k,{children:n})});return(0,o.Y)(a.x.Provider,{value:{useMobileBottomSheet:!1,close:p},children:(0,o.FD)(i.bL,{open:u,onOpenChange:g,modal:!1,children:[(0,o.Y)(i.l9,{asChild:!0,disabled:s,onClick:e=>{e.preventDefault(),e.stopPropagation()},children:t}),v?(0,o.Y)(i.ZL,{children:y}):y]})})}},54467:function(e,t,n){n.d(t,{D:()=>l});var r=n(4006),o=n(89490),i=n(76977),a=n(53170);function l(e){let{close:t}=e;return(0,r.Y)(i.ov,{paddingTop:4,className:a.A.grabber,children:(0,r.Y)(o.az,{bg:"tertiary",width:64,height:4,radius:"full",onClick:t,cursor:"inherit"})})}},18788:function(e,t,n){n.d(t,{k:()=>f});var r=n(69277),o=n(70408),i=n(32641),a=n(4006),l=n(32485),c=n.n(l),d=n(17402),s=n(76977),u=n(10996),p=n(88206),g=n(11510);let h={panel:"panel-folKVn"},f=(0,d.forwardRef)((e,t)=>{var{className:n,padding:l=p.aM}=e,d=(0,i._)(e,["className","padding"]);let f=(0,g.Iu)();return(0,a.Y)(u.e$,{children:(0,a.Y)(s.VP,(0,o._)((0,r._)({className:c()(h.panel,f&&h.mobile,"elevated",n),bg:"elevated",shadow:"md",border:"detail",sizing:"border-box",radius:f?"md":"sm",showFocus:!0,minWidth:200,gap:2,padding:l,ref:t,overflowX:"hidden",overflowY:"auto"},d),{onWheel:e=>{var t;null==(t=d.onWheel)||t.call(d,e),e.stopPropagation()},onTouchMove:e=>{var t;null==(t=d.onTouchMove)||t.call(d,e),e.stopPropagation()}}))})})},80988:function(e,t,n){n.d(t,{a:()=>m,k:()=>v});var r=n(4006),o=n(35426),i=n(38390),a=n(17402),l=n(89490),c=n(90460),d=n(10996),s=n(45346),u=n(48028),p=n(98793),g=n(11510),h=n(53168),f=n(57241);function m(e){let{isOpen:t,onOpen:n=()=>void 0,onClose:l=()=>void 0,children:h,width:f=440,className:m,initialFocus:b,fullscreenMobile:y,disableCloseOnBackdropClick:Y=!1,testId:w="modal",style:A}=e,D=(0,g.Iu)(),C=(0,a.useRef)(t);(0,c.h)(t),(0,a.useEffect)(()=>{t&&!C.current&&(null==n||n()),C.current=t},[t,n]);let _=D&&!y?p.r:p.p;return(0,r.Y)(i.bL,{open:t,onOpenChange:e=>{e||null==l||l()},children:(0,r.Y)(i.ZL,{forceMount:!0,children:(0,r.Y)(o.e.Root,{show:t,children:(0,r.FD)(v,{children:[(0,r.Y)(s.B,{children:(0,r.Y)(s.k,{onClose:l,disableCloseOnBackdropClick:Y})}),(0,r.Y)(d.e$,{children:(0,r.Y)(_,{children:(0,r.Y)(u.I,{onClose:l,fullscreenMobile:y,width:f,className:m,initialFocus:b,disableCloseOnBackdropClick:Y,testId:w,style:A,children:h})},D?"mobile":"desktop")})]})})})})}function v(e){let{children:t}=e;return(0,r.Y)(l.az,{className:f.A.layout,style:{zIndex:h.Up},children:t})}},45346:function(e,t,n){n.d(t,{B:()=>d,k:()=>c});var r=n(4006),o=n(35426),i=n(38390),a=n(17402),l=n(55739);let c=(0,a.forwardRef)((e,t)=>{let{onClose:n,disableCloseOnBackdropClick:o}=e;return(0,r.Y)(i.hJ,{forceMount:!0,className:l.A.backdrop,ref:t,"data-modal-role":"backdrop",onClick:()=>{o||n()}})});function d(e){let{children:t}=e;return(0,r.Y)(o.e.Child,{enter:l.A.transition,enterFrom:l.A.from,enterTo:l.A.to,leave:l.A.transition,leaveFrom:l.A.to,leaveTo:l.A.from,children:t})}},87834:function(e,t,n){n.d(t,{c:()=>d});var r=n(69277),o=n(32641),i=n(4006),a=n(32485),l=n.n(a),c=n(76977);function d(e){var{className:t,padding:n=20}=e,a=(0,o._)(e,["className","padding"]);return(0,i.Y)(c.VP,(0,r._)({overflow:"auto",padding:n,className:l()("body-r_n7KA",t),"data-modal-role":"body"},a))}},98793:function(e,t,n){n.d(t,{p:()=>d,r:()=>s});var r=n(4006),o=n(35426),i=n(32485),a=n.n(i),l=n(17402),c=n(37266);let d=e=>{let{children:t}=e;return(0,r.Y)(o.e.Child,{as:l.Fragment,enter:c.A.transition,enterFrom:c.A.from,enterTo:c.A.to,leave:c.A.transition,leaveFrom:c.A.to,leaveTo:c.A.from,children:t})},s=e=>{let{children:t}=e;return(0,r.Y)(o.e.Child,{as:l.Fragment,enter:a()(c.A.transition,c.A.mobile),enterFrom:a()(c.A.from,c.A.mobile),enterTo:a()(c.A.to,c.A.mobile),leave:a()(c.A.transition,c.A.mobile),leaveFrom:a()(c.A.to,c.A.mobile),leaveTo:a()(c.A.from,c.A.mobile),children:t})}},33397:function(e,t,n){n.d(t,{K:()=>i,x:()=>o});var r=n(17402);let o=(0,r.createContext)({useMobileBottomSheet:!1,close:()=>{}});function i(){return(0,r.useContext)(o)}}}]);