"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["8417"],{15181:function(e,t,n){n.d(t,{Z:()=>r});let r={mobileContainer:"mobileContainer-C4grL6",imageContainer:"imageContainer-bBRPE5",hRule:"hRule-jmAdPr",assetButtons:"assetButtons-_T5QZI",aspectRatioButton:"aspectRatioButton-AXavRA",aspectRatioSelected:"aspectRatioSelected-cmPz3Z",aspectRatioSelectedIcon:"aspectRatioSelectedIcon-knGAQN"}},96855:function(e,t,n){n.d(t,{Z:()=>r});let r={container:"container-WYWNQ7",enabled:"enabled-FrokEl",checked:"checked-qUvq71",unchecked:"unchecked-YpAQwg",disabled:"disabled-w7hZI3",nub:"nub-XpaYD_",theme_accent:"theme_accent-eoXELK",themeAccent:"theme_accent-eoXELK",theme_success:"theme_success-my5UzI",themeSuccess:"theme_success-my5UzI",theme_error:"theme_error-Uoe9a5",themeError:"theme_error-Uoe9a5",theme_select:"theme_select-TR6faD",themeSelect:"theme_select-TR6faD",theme_highlight:"theme_highlight-sw2S4n",themeHighlight:"theme_highlight-sw2S4n",input:"input-b61VGF"}},87815:function(e,t,n){n.d(t,{Z:()=>r});let r={group:"group-JuxKi2",segment:"segment-XiSgAE",outlined:"outlined-kJWSK2"}},43894:function(e,t,n){n.d(t,{Z:()=>r});let r={}},28775:function(e,t,n){n.d(t,{C:()=>v});var r=n(16584),i=n(30396),o=n(94184),a=n.n(o),l=n(7409),s=n(99282),c=n(64515);let u=e=>(0,r.BX)(c.l,(0,s._)((0,l._)({},e),{name:"DownloadIconNoBorder",svgParams:{height:32,width:32},children:[(0,r.tZ)("path",{d:"M23.5 18.5V21.8333C23.5 22.2754 23.3244 22.6993 23.0118 23.0118C22.6993 23.3244 22.2754 23.5 21.8333 23.5H10.1667C9.72464 23.5 9.30072 23.3244 8.98816 23.0118C8.67559 22.6993 8.5 22.2754 8.5 21.8333V18.5",stroke:e.stroke||"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"rgba(255,255,255,0)"}),(0,r.tZ)("path",{d:"M11.8333 14.3335L16 18.5002L20.1667 14.3335",stroke:e.stroke||"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"rgba(255,255,255,0)"}),(0,r.tZ)("path",{d:"M16 18.5V8.5",stroke:e.stroke||"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"rgba(255,255,255,0)"})]}));var d=n(95441),m=n(98248),h=n(81821);let g={root:"root-gpHBEU",fullSize:"fullSize-W6Pwju",link:"link-HgTAJz",linkHovered:"linkHovered-rnE2Gn",image:"image-ZSouY2",download:"download-aYXb5J",imageLoading:"imageLoading-BULJ5E"},v=e=>{let{img:t,imgDownload:n,shareData:o,useNativeShare:l,onClick:s}=e,{iString:c}=(0,d.M1)(),v=(0,i.sO)(null),p=(0,i.sO)(null),[f,_]=(0,i.eJ)(!1),[w,k]=(0,i.eJ)({right:0,bottom:0});(0,i.d4)(()=>{var e,t;let n=null===(e=v.current)||void 0===e?void 0:e.getBoundingClientRect(),r=null===(t=p.current)||void 0===t?void 0:t.getBoundingClientRect();n&&r&&k({right:r.right-n.right,bottom:r.bottom-n.bottom})},[v,p,t]);let b=(0,i.I4)(async e=>{if(null==s||s(),l&&o)try{await navigator.share(o)}catch(e){}else{var t;let n=null===(t=v.current)||void 0===t?void 0:t.getBoundingClientRect();if(n){let t=e.clientX,r=e.clientY;(tn.right||rn.bottom)&&e.preventDefault()}}},[s,l,o]);return(0,r.tZ)("a",{onClick:b,href:l?void 0:n,download:!0,className:a()(g.link,f&&g.linkHovered,g.fullSize),target:"_blank",children:(0,r.BX)("div",{ref:p,className:a()(g.root,g.fullSize),children:[!(0,h.tq)()&&t&&(0,r.tZ)("div",{className:g.download,style:w,children:(0,r.tZ)(u,{stroke:"#404040",fill:"white"})}),!t&&(0,r.tZ)("div",{className:a()(g.image,g.imageLoading),children:(0,r.tZ)(m.$j,{"aria-label":c("Loading")})}),t&&(0,r.tZ)("img",{ref:v,src:t,alt:c("Download Image"),className:a()(g.fullSize,g.image),onMouseEnter:()=>{_(!0)},onMouseLeave:()=>{_(!1)}})]})})}},57061:function(e,t,n){n.d(t,{d:()=>p});var r=n(58865),i=n(16584),o=n(28775),a=n(64719),l=n(95441),s=n(4038),c=n(68833),u=n(35500),d=n(60308);function m(){let e=(0,r._)([""," has reached $10,000 in annual revenue"]);return m=function(){return e},e}function h(){let e=(0,r._)([""," has reached $1,000 in annual revenue"]);return h=function(){return e},e}function g(){let e=(0,r._)([""," has reached 100 subscribers"]);return g=function(){return e},e}function v(){let e=(0,r._)([""," has reached 1,000 subscribers"]);return v=function(){return e},e}n(67844);let p=e=>{let t,{pub:n,style:r,milestone:p}=e,{iString:f,iTemplate:_}=(0,l.M1)(),w=(0,a.Cq)();switch(p){case u.dD.ARR10K:t=_(m(),n.name);break;case u.dD.ARR1K:t=_(h(),n.name);break;case u.bq.List100:t=_(g(),n.name);break;case u.bq.List1K:t=_(v(),n.name)}let{img:k,imgDownload:b,shareData:Z,useNativeShare:y}=(0,s.Q)({shareTitle:f("Share this milestone"),shareText:t,shareUrl:(0,d.SVA)(n),imageDownloadUrl:(0,d.iNT)(n,p,r,"".concat(p).concat(r.aspectRatio?" - ".concat(r.aspectRatio):"")),imageUrl:(0,d.iNT)(n,p,r,void 0),imageUrlSameOrigin:(0,d.RwZ)(n,p,r,{useRootDomain:null==w?void 0:w.isSubstack})});return(0,i.tZ)(o.C,{img:k,imgDownload:b,shareData:Z,useNativeShare:y,onClick:()=>{(0,c.j)(c.FP.MILESTONE_MEDIA_ASSETS_IMAGE_DOWNLOADED,{milestone:p,aspectRatio:r.aspectRatio,source:"image"})}})}},36781:function(e,t,n){n.d(t,{Z:()=>s});var r=n(16584),i=n(30396),o=n(2236),a=n(4038),l=n(81821);let s=e=>{let{pub:t,post:n,style:s,source:c,size:u,hoverOverlay:d=!0}=e,{img:m,imgDownload:h,shareData:g,useNativeShare:v}=(0,a.Q)((0,o.lx)({pub:t,post:n,style:s})),p=(0,i.I4)(async()=>{await (0,o.mT)({post_id:n.id,type:"post_asset",aspect_ratio:s.aspectRatio,source:c,shareData:v?g:void 0,eventName:"WRITER_MEDIA_ASSETS_IMAGE_DOWNLOADED"})},[n.id,s.aspectRatio,c,v,g]);return(0,r.tZ)(o.kA,{onClick:p,href:v?void 0:h,children:(0,r.BX)(o.A4,{size:u,children:[!(0,l.tq)()&&m&&d&&(0,r.tZ)(o.rA,{onClick:p}),(0,r.tZ)(o.M$,{img:m})]})})}},63049:function(e,t,n){n.d(t,{H:()=>u});var r=n(16584),i=n(28775),o=n(64719),a=n(95441),l=n(4038),s=n(68833),c=n(60308);n(76511);let u=e=>{let{pub:t,style:n}=e,{iString:u}=(0,a.M1)(),d=(0,o.Cq)(),{img:m,imgDownload:h,shareData:g,useNativeShare:v}=(0,l.Q)({shareTitle:u("Share this publication"),shareText:t.hero_text,shareUrl:(0,c.SVA)(t),imageDownloadUrl:(0,c.p5u)(t,null,n,{fileToDownload:"Message".concat(n.aspectRatio?" - ".concat(n.aspectRatio):"")}),imageUrl:(0,c.p5u)(t,null,n),imageUrlSameOrigin:(0,c.eq9)(t,n,{useRootDomain:null==d?void 0:d.isSubstack})});return(0,r.tZ)(i.C,{img:m,imgDownload:h,shareData:g,useNativeShare:v,onClick:()=>{(0,s.j)(s.FP.PUBLICATION_MEDIA_ASSETS_IMAGE_DOWNLOADED,{aspectRatio:n.aspectRatio,source:"image"})}})}},53687:function(e,t,n){n.d(t,{$I:()=>p,ar:()=>v,rn:()=>g,sl:()=>h});var r=n(16584),i=n(94184),o=n.n(i),a=n(25380),l=n(67791),s=n(46299),c=n(95441),u=n(15771),d=n(81821),m=n(66782);let h=["stories","instagram","square"],g=e=>{let{isSelected:t,value:n,onClick:i,coverImageUrl:l,themeVariables:s}=e,c=s.web_bg_color||s.cover_bg_color,d=s.print_on_web_bg_color||s.cover_print_primary||"#1a1a1a";return"accent"===n?(c=s.background_pop_color||s.background_pop,d=s.print_on_pop):"image"===n?(d="#ffffff",c="rgba(0,0,0,0.5)"):"black&white"===n&&(d="#404040",c="#ffffff"),(0,r.BX)(u.kG,{width:28,height:28,style:{backgroundColor:c},flex:"auto",radius:"sm",overflow:"hidden",alignItems:"center",justifyContent:"center",sizing:"border-box",className:o()(m.Z.customizeAssetButton,m.Z.themeButton,t&&m.Z.selected,"image"===n&&m.Z.image),onClick:e=>{e.preventDefault(),i()},tabIndex:0,children:["image"===n&&(0,r.tZ)("div",{className:m.Z.imageBg,style:{backgroundImage:"url(".concat(l,")")}}),(0,r.tZ)("div",{className:o()(m.Z.inner,"image"===n&&m.Z.image),children:t&&(0,r.tZ)(a.Z,{stroke:d,size:16,strokeWidth:2.5})})]})},v=e=>{let{isSelected:t,value:n,onClick:i}=e,o=function(e){let{iString:t}=(0,c.M1)(),n=(0,d.tq)({checkFirst4:!0}),r={instagram:t("Instagram"),square:t("Square"),stories:t("Vertical")};return(n?{square:"1:1",instagram:"4:5",stories:"9:16"}:r)[e]}(n);return(0,r.tZ)(u.zx,{size:"sm",priority:t?"primary-mono":"secondary",onClick:i,leading:"square"===n?(0,r.tZ)(l.Z,{size:20}):(0,r.tZ)(s.Z,{size:20}),children:o})},p=e=>{let{isSelected:t,label:n,onClick:i}=e;return(0,r.tZ)(u.zx,{size:"sm",priority:t?"primary-mono":"secondary",onClick:i,children:n})}},2236:function(e,t,n){n.d(t,{A4:()=>y,M$:()=>w,kA:()=>b,lx:()=>C,mT:()=>S,rA:()=>Z});var r=n(7409),i=n(99282),o=n(16584),a=n(98661),l=n(94184),s=n.n(l),c=n(71212),u=n(95441),d=n(68833),m=n(15771),h=n(19081),g=n(98248),v=n(63474),p=n(60308),f=n(63651),_=n(97522);let w=(0,a.forwardRef)((e,t)=>{let{img:n}=e,[r,i]=(0,a.useState)(!1);return n?(0,o.BX)(o.HY,{children:[!r&&(0,o.tZ)(k,{}),(0,o.tZ)("img",{src:n,className:s()(_.Z.image,r&&_.Z.loaded),ref:t,onLoad:()=>i(!0),style:{display:r?"block":"none"}})]}):(0,o.tZ)(k,{})});function k(){return(0,o.tZ)(h.sg,{alignItems:"center",justifyContent:"center",bg:"secondary",className:s()(_.Z.image,_.Z.loading),children:(0,o.tZ)(g.$j,{})})}function b(e){let{children:t,onClick:n,href:r}=e,{iString:i}=(0,u.M1)();return(0,o.tZ)(v.A0,{onClick:n,href:r,"aria-label":i("Download image"),download:!0,className:s()(_.Z.link),target:"_blank",rel:"noreferrer",children:t})}function Z(e){let{onClick:t}=e,{iString:n}=(0,u.M1)();return(0,o.tZ)(h.sg,{className:_.Z.overlay,animate:!0,position:"absolute",inset:0,alignItems:"center",justifyContent:"end",padding:12,children:(0,o.tZ)(m.zx,{className:_.Z.downloadButton,priority:"primary-mono",size:"sm",leading:(0,o.tZ)(c.Z,{size:20}),onClick:t,children:n("Download")})})}function y(e){let{children:t,size:n=300}=e;return(0,o.tZ)(h.sg,{className:_.Z.imageContainer,flex:"auto",position:"relative",cursor:"grab",style:{"--image-max-size":"".concat(n,"px")},children:t})}async function S(e){let{post_id:t,type:n,aspect_ratio:o,selection_id:a,source:l,auto_selected:s,shareData:c,eventName:u,additionalTrackingData:m={}}=e;if((0,d.j)(d.FP[u],(0,i._)((0,r._)({post_id:t,type:n},o&&{aspect_ratio:o},a&&{selection_id:a},l&&{source:l},s&&{auto_selected:s},m),{interaction:"click"})),c)try{await navigator.share(c)}catch(e){}}function C(e){let{pub:t,post:n,selectionId:r,style:i}=e;return r?{shareTitle:"Share this post",shareText:n.title,shareUrl:(0,f.uRy)(t,n),imageDownloadUrl:(0,p.BPe)(t,n,r,i),imageUrl:(0,p.BPe)(t,n,r,i),imageUrlSameOrigin:(0,p.MWO)(t,n,r,i)}:{shareTitle:"Share this post",shareText:n.title,shareUrl:(0,f.uRy)(t,n),imageDownloadUrl:(0,p.ChS)(t,n,i),imageUrl:(0,p.ChS)(t,n,i),imageUrlSameOrigin:(0,p.FEI)(t,n,i)}}},44404:function(e,t,n){n.d(t,{hi:()=>d,uP:()=>u});var r=n(16584),i=n(28775),o=n(64719),a=n(95441),l=n(4038),s=n(68833),c=n(60308);n(30279);let u=e=>{let{pub:t,user:n,note:u,style:d}=e,{iString:m}=(0,a.M1)(),h=(0,o.Cq)(),{img:g,imgDownload:v,shareData:p,useNativeShare:f}=(0,l.Q)({shareTitle:m("Share this message"),shareText:(null==u?void 0:u.note)||"",shareUrl:(0,c.SVA)(t),imageDownloadUrl:(0,c.gGz)(t,n,d,{fileToDownload:"Message".concat(d.aspectRatio?" - ".concat(d.aspectRatio):"")}),imageUrl:(0,c.gGz)(t,n,d),imageUrlSameOrigin:(0,c.MBd)(t,n,d,{useRootDomain:null==h?void 0:h.isSubstack})});return(0,r.tZ)(i.C,{img:g,imgDownload:v,shareData:p,useNativeShare:f,onClick:()=>{(0,s.j)(s.FP.SUBSCRIPTION_NOTE_MEDIA_ASSETS_IMAGE_DOWNLOADED,{note_from_user_id:n.id,aspectRatio:d.aspectRatio,source:"image"})}})},d=e=>{let{pub:t,user:n,note:u,style:d}=e,{iString:m}=(0,a.M1)(),h=(0,o.Cq)(),{img:g,imgDownload:v,shareData:p,useNativeShare:f}=(0,l.Q)({shareTitle:m("Share this message"),shareText:(null==u?void 0:u.note)||"",shareUrl:(0,c.SVA)(t),imageDownloadUrl:(0,c.uQO)(t,n,d,{fileToDownload:"Message".concat(d.aspectRatio?" - ".concat(d.aspectRatio):"")}),imageUrl:(0,c.uQO)(t,n,d),imageUrlSameOrigin:(0,c.BtY)(t,n,d,{useRootDomain:null==h?void 0:h.isSubstack})});return(0,r.tZ)(i.C,{img:g,imgDownload:v,shareData:p,useNativeShare:f,onClick:()=>{(0,s.j)(s.FP.PLEDGE_NOTE_MEDIA_ASSETS_IMAGE_DOWNLOADED,{note_from_user_id:n.id,aspectRatio:d.aspectRatio,source:"image"})}})}},72708:function(e,t,n){n.d(t,{Z:()=>l});var r=n(7409),i=n(99282),o=n(16584),a=n(64515);let l=e=>(0,o.BX)(a.l,(0,i._)((0,r._)({},e),{name:"VoiceoverIcon",svgParams:{height:24,width:24,viewBox:"0 0 24 24"},fill:"none",children:[(0,o.tZ)("path",{d:"M11.8518 3.31518C12.2459 4.26329 13.551 7.10985 14.4542 8.3467C15.3764 9.60967 12.8285 9.95184 12 10.5",strokeWidth:"1.5",strokeLinecap:"round"}),(0,o.tZ)("path",{d:"M12 10.5C12 10.5 12.4662 11.2332 12.7627 11.7326C13.0592 12.232 13 12.5 11.5 13C10.7772 13.2409 9.5 13.5 9.5 13.5C10.3447 13.9272 12.2664 14.1393 12.4041 14.3167C12.763 14.779 12.3241 15.4618 11.8617 15.8208C11.3994 16.1797 12.0724 18.7353 10.5 19.5C8.9276 20.2647 5.70772 19.432 3 18",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.tZ)("path",{d:"M18.5 6.5L20.3544 4.8526",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.tZ)("path",{d:"M18.5 15.5L20.3544 17.2545",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.tZ)("path",{d:"M19.5 11.0326L22 11.0326",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},64719:function(e,t,n){n.d(t,{Cq:()=>l,UN:()=>s,_j:()=>a});var r=n(16584),i=n(6400),o=n(30396);let a=(0,i.createContext)({isSubstack:!1,customDomain:null});function l(){return(0,o.qp)(a)}function s(e){let{value:t,children:n}=e,i=(0,o.Ye)(()=>t,Object.values(t));return(0,r.tZ)(a.Provider,{value:i,children:n})}a.displayName="DomainInfoContext"},30372:function(e,t,n){n.d(t,{PS:()=>v,Pi:()=>g,UO:()=>f,aG:()=>p});var r=n(7409),i=n(99282),o=n(16584),a=n(6400),l=n(98661),s=n(30396),c=n(68833),u=n(21159),d=n(98914);let m={1:30,2:20,3:10},h=(0,a.createContext)({startInterval:()=>void 0,stopInterval:()=>void 0,trackInterval:()=>void 0,getCurrentUuid:()=>""});function g(e){let{children:t}=e,n=(0,s.sO)(null),r=(0,s.sO)(null),i=(0,s.sO)({top:0,bottom:0}),a=(0,s.sO)(null),l=(0,s.I4)(()=>{if(a.current){let{uuid:e,postId:t,containerElementRef:n,elementIsStatic:o,phase:l,count:s}=a.current;if(l&&l>3){g();return}if(s&&s>=m[l]){p();return}a.current.count=s+1;let d=(null==n?void 0:n.current)?(0,u.X)(n.current,null!=o&&o):i.current,h=d.top.toFixed(2),v=d.bottom.toFixed(2);(0,c.j)(c.FP.POST_PINGBACK_SEEN,{tracker_uuid:e,post_id:t,top_scroll_percentage:h,bottom_scroll_percentage:v,phase:l,count:s+1}),r.current!==h&&(r.current=h,t&&f(t,"read",d.top/100))}},[]),g=(0,s.I4)(()=>{n.current&&(clearInterval(n.current),n.current=null)},[]),v=()=>{var e,t;return 10**(null!==(t=null===(e=a.current)||void 0===e?void 0:e.phase)&&void 0!==t?t:1)*1e3},p=()=>{g(),a.current&&(a.current.phase+=1,a.current.count=0),n.current=setInterval(l,v())},_=(0,s.I4)(e=>{var t;let{postId:r,containerElementRef:i,elementIsStatic:o,phase:s=1,count:c=0}=e;"undefined"!=typeof window&&r&&i&&((null===(t=a.current)||void 0===t?void 0:t.postId)!==r&&(a.current={uuid:(0,d.EH)(),postId:r,containerElementRef:i,elementIsStatic:o,phase:s,count:c}),g(),n.current=setInterval(l,v()))},[l,g]),w=(0,s.I4)(()=>{var e;return(null===(e=a.current)||void 0===e?void 0:e.uuid)||""},[]);return(0,s.d4)(()=>{let e=()=>{var e,t,n,r,i,o,s;document.hidden?(l(),g()):(null===(e=a.current)||void 0===e?void 0:e.postId)&&(null===(t=a.current)||void 0===t?void 0:t.containerElementRef)&&_({postId:null===(n=a.current)||void 0===n?void 0:n.postId,containerElementRef:null===(r=a.current)||void 0===r?void 0:r.containerElementRef,elementIsStatic:null===(i=a.current)||void 0===i?void 0:i.elementIsStatic,phase:null===(o=a.current)||void 0===o?void 0:o.phase,count:null===(s=a.current)||void 0===s?void 0:s.count})};return document.addEventListener("visibilitychange",e),()=>{l(),a.current=null,g(),document.removeEventListener("visibilitychange",e)}},[_,g]),(0,s.d4)(()=>{let e=e=>{var t,n,r,o,l;let s=null===(n=a.current)||void 0===n?void 0:null===(t=n.containerElementRef)||void 0===t?void 0:t.current,c=null===(r=a.current)||void 0===r?void 0:r.elementIsStatic;s&&e.target===s&&(null===(l=a.current)||void 0===l?void 0:null===(o=l.containerElementRef)||void 0===o?void 0:o.current)&&(i.current=(0,u.X)(s,null!=c&&c))};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[_,g]),(0,o.tZ)(h.Provider,{value:{startInterval:_,stopInterval:g,trackInterval:l,getCurrentUuid:w},children:t})}function v(){return(0,s.qp)(h)}function p(e){let t=(0,l.forwardRef)((t,n)=>{let a=v();return(0,o.tZ)(e,(0,i._)((0,r._)({},a,t),{ref:n}))});return t.displayName="withPostPingbackTrackerContext(".concat(e.displayName||e.name||"Anonymous",")"),t}function f(e,t,n){var r;"undefined"!=typeof window&&(null===(r=window._preloads)||void 0===r?void 0:r.user)&&!window._preloads.user.is_magic&&fetch("/api/v1/posts/".concat(e,"/progress?type=").concat(t,"&progress=").concat(n),{method:"POST"}).catch(e=>{console.error("Failed to mark video progress:",e)})}h.displayName="PostPingbackTrackerContext"},6910:function(e,t,n){if(n.d(t,{m:()=>l}),/^(2[79]87|3154|4716|5288|6909)$/.test(n.j))var r=n(7409);if(/^(2[79]87|3154|4716|5288|6909)$/.test(n.j))var i=n(99282);if(/^(2[79]87|3154|4716|5288|6909)$/.test(n.j))var o=n(98848);var a=n(16584);function l(e){var{size:t=20,stroke:n="var(--color-light-fg-secondary)"}=e,l=(0,o._)(e,["size","stroke"]);return(0,a.tZ)("svg",(0,i._)((0,r._)({},l),{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n,xmlns:"http://www.w3.org/2000/svg",children:(0,a.tZ)("path",{id:"Vector",d:"M3 22C3 17.7044 6.69722 14.2222 11.258 14.2222C11.5081 14.2222 11.7556 14.2326 12 14.2531M21.0039 16.3098L18.6469 18.6668M18.6469 18.6668L16.2899 21.0239M18.6469 18.6668L21.0178 21.0377M18.6469 18.6668L16.276 16.2959M16.4118 6.44444C16.4118 8.89904 14.4102 10.8889 11.9412 10.8889C9.47214 10.8889 7.47059 8.89904 7.47059 6.44444C7.47059 3.98985 9.47214 2 11.9412 2C14.4102 2 16.4118 3.98985 16.4118 6.44444Z",strokeWidth:"2",strokeLinecap:"round","stroke-linejoin":"round"})}))}},4038:function(e,t,n){n.d(t,{Q:()=>l});var r=n(30396),i=n(52384),o=n(98914),a=n(81821);function l(e){let[t,n]=(0,r.eJ)(""),[l,s]=(0,r.eJ)(""),[c,u]=(0,r.eJ)({}),[d,m]=(0,r.eJ)(!1);(0,r.d4)(()=>{(0,a.tq)()&&navigator.share&&navigator.canShare(c)&&m(!0)},[c]),(0,r.d4)(()=>{(async function(){n("");let t=e.imageUrl;if((0,o.pt)(e.imageUrl,()=>{n(t),s(e.imageDownloadUrl)}),(0,a.tq)()){var r,i;let n=await fetch(e.imageUrlSameOrigin||t),o=["instagram","instagram-stories"].includes(null!==(r=e.shareApp)&&void 0!==r?r:"");u({title:o?void 0:e.shareTitle,text:o?void 0:null!==(i=e.shareText)&&void 0!==i?i:void 0,files:[new File([await n.blob()],"image.png",{type:"image/png"})],url:o?void 0:e.shareUrl})}})()},[e.imageDownloadUrl,e.imageUrl,e.shareApp,e.shareText,e.shareTitle,e.shareUrl]);let{refetch:h}=(0,i.Q)({method:"post",pathname:"/api/v1/press_kit/notification",body:{title:e.shareText,imageUrl:e.imageUrl,shareApp:e.shareApp},deps:[e.shareText,e.imageUrl,e.shareApp]});return{img:t,imgDownload:l,sendPushNotification:(0,r.I4)(async()=>{let e=await h();return!(e instanceof Error)&&e.success},[h]),shareData:c,useNativeShare:d}}},21159:function(e,t,n){n.d(t,{X:()=>i,m:()=>r});let r=(e,t)=>{if(!e)return 0;let{scrollHeight:n,clientHeight:r}=e;return Math.min(t/100*(n-r),Math.max(0,n-r))},i=(e,t)=>{var n,r,i,o;let{scrollTop:a,scrollHeight:l,clientHeight:s}=t?{scrollTop:document.documentElement.scrollTop||document.body.scrollTop,scrollHeight:null!==(n=null==e?void 0:e.scrollHeight)&&void 0!==n?n:0,clientHeight:window.innerHeight}:{scrollTop:null!==(r=null==e?void 0:e.scrollTop)&&void 0!==r?r:0,scrollHeight:null!==(i=null==e?void 0:e.scrollHeight)&&void 0!==i?i:0,clientHeight:null!==(o=null==e?void 0:e.clientHeight)&&void 0!==o?o:0};return l&&s?l===s?{top:0,bottom:100}:{top:Math.min(100,a/(l-s)*100),bottom:Math.min(100,(a+s)/l*100)}:{top:0,bottom:0}}},57640:function(e,t,n){n.d(t,{Y:()=>m});var r=n(7409),i=n(99282),o=n(98848),a=n(16584),l=n(94184),s=n.n(l),c=n(71068),u=n(19081),d=n(96855);let m=e=>{var{checked:t,disabled:n,theme:l="accent",id:m}=e,h=(0,o._)(e,["checked","disabled","theme","id"]);return(0,a.BX)(u.hs,{height:20,width:20,position:"relative",radius:"full",sizing:"border-box",className:s()(d.Z.container,t?d.Z.checked:d.Z.unchecked,n?d.Z.disabled:d.Z.enabled,d.Z["theme_".concat(l)]),justifyContent:"center",alignItems:"center",children:[(0,a.tZ)("input",(0,i._)((0,r._)({},h),{id:m,checked:t,disabled:n,type:"radio",className:s()(d.Z.input,n?d.Z.disabled:d.Z.enabled)})),(0,a.tZ)(c.xu,{as:"span",radius:"full","aria-hidden":"true",className:s()(d.Z.nub,t?d.Z.checked:d.Z.unchecked,n?d.Z.disabled:d.Z.enabled,d.Z["theme_".concat(l)])})]})}},54584:function(e,t,n){n.d(t,{o:()=>i,y:()=>o});var r=n(98661);let i=(0,r.createContext)("unknown");function o(){return(0,r.useContext)(i)}},78308:function(e,t,n){n.d(t,{A:()=>r});function r(e){return"direct-message"===e?"people":"all"}},97842:function(e,t,n){n.d(t,{I0:()=>s,RN:()=>u,UX:()=>a,WG:()=>d,ge:()=>l,ky:()=>c});var r=n(6400),i=n(30396),o=n(63018);let a={user:null,inbox:{threadList:[],threads:new Map,filter:"all",resources:{all:{isLoading:!0,hasMore:!1},people:{isLoading:!0,hasMore:!1}}},users:new Map,profiles:new Map,communityPosts:new Map,communityComments:new Map,chats:new Map,comments:new Map,replies:new Map,conversations:new Map,publications:new Map,notes:new Map,editingPost:null},l=(0,r.createContext)(()=>Promise.resolve());function s(){return(0,i.qp)(l)}let c=(0,r.createContext)(a);function u(){return(0,i.qp)(c)}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return(0,o._I)("/api/v1/messages/unread-count",e,t)}},86190:function(e,t,n){n.d(t,{U:()=>i});var r=n(48980);let i=e=>async t=>{let n="before";t({type:"conversation-request_initial",payload:{conversationId:e}});try{let i=await (0,r.rd)("/api/v1/messages/dm/".concat(e));t({type:"conversation-load_more",payload:{edge:n,cursor:null,page:i}})}catch(r){t({type:"conversation-request_error",payload:{conversationId:e,edge:n,cursor:null,error:r}})}}},46603:function(e,t,n){n.d(t,{_:()=>o});var r=n(10928),i=n.n(r);function o(e,t){var n;let r;let o=e.conversations.get(t.messageThreadId),a=t.recentMessageId?e.communityComments.get(t.recentMessageId):null,l=i()(null!==(n=null==o?void 0:o.replyIds)&&void 0!==n?n:[]),s=l?e.communityComments.get(l):null;return a?s?a.comment.created_at>s.comment.created_at?a:s:a:s}},75822:function(e,t,n){n.d(t,{KS:()=>u,qS:()=>c});var r=n(16584),i=n(6400),o=n(30396),a=n(60807);let l=(0,i.createContext)({registerVideo:()=>void 0,unregisterVideo:()=>void 0,updatePaywallState:()=>void 0}),s=()=>(0,o.qp)(l),c=e=>{let{children:t}=e,[n,i]=(0,o.eJ)(0),s=(0,o.sO)([]),c=(0,o.sO)(new Map),u=(0,a.Fl)().autoPlayVideo;(0,o.d4)(()=>{let e=new IntersectionObserver(e=>{e.forEach(e=>{let t=e.target;if(!e.isIntersecting){t.pause();return}!c.current.get(t)&&u&&t.play()})},{threshold:1});return s.current.forEach(t=>{var n;(null===(n=t.current)||void 0===n?void 0:n.player)&&e.observe(t.current.player)}),()=>{s.current.forEach(t=>{var n;(null===(n=t.current)||void 0===n?void 0:n.player)&&e.unobserve(t.current.player)})}},[n]);let d=(0,o.I4)(e=>{e&&!s.current.includes(e)&&(s.current.push(e),i(e=>e+1))},[]),m=(0,o.I4)(e=>{s.current=s.current.filter(t=>t!==e),i(e=>e+1)},[]),h=(0,o.I4)(e=>{var t;let{videoPlayerRef:n,showPaywall:r}=e;(null===(t=n.current)||void 0===t?void 0:t.player)&&c.current.set(n.current.player,r)},[]);return(0,r.tZ)(l.Provider,{value:{registerVideo:d,unregisterVideo:m,updatePaywallState:h},children:t})},u=e=>{let{disable:t,showPaywall:n,videoPlayerRef:r}=e,{registerVideo:i,unregisterVideo:a,updatePaywallState:l}=s();(0,o.d4)(()=>{if(r.current&&!t)return i(r),()=>{a(r)}},[t,i,a,r]),(0,o.d4)(()=>{l({showPaywall:n,videoPlayerRef:r})},[n,l,r])}},16889:function(e,t,n){n.d(t,{n:()=>r});function r(e){let t=0,n=()=>{let{visibilityState:n="visible"}=document,r=Date.now();"hidden"!==n&&r-t>2e3&&(e(),t=r)};return window.addEventListener("online",n),document.addEventListener("visibilitychange",n),window.addEventListener("focus",n),()=>{window.removeEventListener("online",n),document.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},77614:function(e,t,n){n.d(t,{F:()=>s});var r=n(16584),i=n(40647),o=n(4615),a=n(69539),l=n(43894);let s=e=>{let{profile:t,children:n,forceEnabled:s=!1}=e,{getConfigFor:c}=(0,i.xR)(),{variables:u}=(0,a.O)({profileTheme:t.theme,forceEnabled:s});return s||c("profile_themes_enabled")&&u?(0,r.tZ)(o.f6,{theme:l.Z.profileTheme,variables:null!=u?u:void 0,children:n}):(0,r.tZ)(r.HY,{children:n})}},69539:function(e,t,n){n.d(t,{O:()=>l});var r=n(7409),i=n(98661),o=n(40647),a=n(435);let l=e=>{let{profileTheme:t,forceEnabled:n=!1}=e,{getConfigFor:l}=(0,o.xR)(),c=n||!!l("profile_themes_enabled"),u=(0,i.useMemo)(()=>t?(0,r._)({},a.YG,t):a.YG,[t]),d=(0,i.useMemo)(()=>(0,a.Ev)(u),[u]);return((0,i.useEffect)(()=>s(d,c),[d,c]),"undefined"==typeof window&&s(d,c),c)?{variables:d}:{variables:null}};function s(e,t){function n(){var e;document.body.classList.remove("profile-theme"),null===(e=document.head.querySelector("#profile-theme-css"))||void 0===e||e.remove()}if(!t){n();return}let r=document.createElement("style");r.id="profile-theme-css",r.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 i+="}\n",r.innerHTML=i,document.body.classList.add("profile-theme"),document.head.appendChild(r),n}},17440:function(e,t,n){if(n.d(t,{F5:()=>l,FN:()=>s,Rg:()=>o,i4:()=>a,zg:()=>i}),/^(2[79]87|3154|4716|5288|6909)$/.test(n.j))var r=n(7409);function i(e,t,n){let r=new Map(e);for(let e of t)r.set(n(e),e);return r}function o(e,t,n){let r=new Map(e);return r.set(t,n),r}function a(e,t){let n=new Map(e);return n.delete(t),n}function l(e,t,n){let i=e.get(t);if(null!=i){let o=new Map(e);return o.set(t,(0,r._)({},i,n)),o}return e}function s(e,t,n){let r=e.get(t);if(null!=r){let i=new Map(e);return i.set(t,n(r)),i}return e}}}]);