PageSourceSearch

https://www.shortform.com/js/article.ca2be81d.js

js shortform.com collected 2026-09-24 09:09:08 UTC 100,966 bytes, 2 lines download raw bytes

1(function(){"use strict";var t={28807:function(t,e,n){n.d(e,{aW:function(){return r},kz:function(){return a},r5:function(){return i}});n(44114);var o=n(53212);function a(t){s()&&(i(t.id),dataLayer.push({event:"Signup"}))}function i(t){s()&&gtag("set",{userId:t,user_id:t})}function r(){s()&&dataLayer.push({event:"ABExperimentsReady",abExperiments:(0,o.zK)()})}function s(){return"object"===typeof dataLayer&&"function"===typeof gtag}},18936:function(t,e,n){n.d(e,{YX:function(){return P},BA:function(){return x},L:function(){return S},Kn:function(){return Q},i7:function(){return U},Wp:function(){return b},hz:function(){return q},vk:function(){return N},iD:function(){return v},ri:function(){return k},$q:function(){return w},kz:function(){return y},Sb:function(){return E}});n(74423),n(44114),n(18111),n(61701),n(33110),n(58335),n(62953),n(64979),n(48408),n(14603),n(47566),n(98721);var o=n(73811),a=n(81864),i=n(81210),r=n(17933),s=n(43474),c=n(56973),u=n(78848);function l(){const t=window.navigator.userAgent.toLowerCase();return!!t.includes("pingdom")}var d=n(34813),p=n(53212),m=n(88178),_=n(53932),g=n(22627),h=n(6499);function f(t){const e=t.split("/");return e.length>=3?e[2]:""}async function w(t,e=!1){if(!l())try{e||(L(),D());const n=r.wz(),o=["/app/login","/app/onboarding","/pilot/extension","/pilot/digest","/pilot/read-it-later"].includes(window.location.pathname);if(!n&&!o)return void A();if(!0!==window.__MIXPANEL_LOADED)return void setTimeout(()=>{w(t,!0)},300);n?I():C(),mixpanel.track("Page View",{"Route Parameters":t})}catch(n){u.sQ.captureException(n)}}async function y(t,e,n){if(N())try{const o=await b(t.temporary_account_state);mixpanel.people.set(o),mixpanel.people.set_once({"Signup Type":e}),P(t,!1),mixpanel.alias(t.id),R(()=>{mixpanel.track("Signup",{"Signup Type":e},n)})}catch(o){u.sQ.captureException(o)}}async function b(t){const e=await _.i.deviceInfo(),n=W();return{Signup:new Date,"Signup Device":e.model,"Signup Platform":e.platform,"First Page":n.firstPage,"Marketing URL":n.marketingUrl,"Initial Referrer SF":n.initialReferrer,"Temporary Account State":t}}function v(t,e){if(N()&&!l())try{mixpanel.people.set({"Last Login":(new Date).toISOString()}),mixpanel.people.increment({Logins:1}),P(t),mixpanel.track("Login",void 0,e),$()}catch(n){u.sQ.captureException(n)}}function k(){if(N())try{mixpanel.people.set({"Last Logout":(new Date).toISOString()}),mixpanel.people.increment({Logouts:1}),I(),mixpanel.track("Logout"),mixpanel.reset()}catch(t){u.sQ.captureException(t)}}function E(t){if(N())try{mixpanel.people.set_once(t)}catch(e){u.sQ.captureException(e)}}function x(t,e,n,o,a){if(N())try{n&&mixpanel.people.set(n),o&&mixpanel.people.increment(o),(n||o)&&I(),e||a?mixpanel.track(t,e||{},a):mixpanel.track(t)}catch(i){u.sQ.captureException(i),a&&a(i)}}async function S(t,e,n,o){return await(0,c.NN)(a=>{x(t,e,n,o,a)},1,100)}function C(){const t=W();E({"First Page Public User":t.firstPage,"Marketing URL Public User":t.marketingUrl,"Initial Referrer SF Public User":t.initialReferrer,...(0,p.zK)(),client_id:(0,m.L2)()||void 0}),mixpanel.identify()}function I(){const t=r.wz();t&&P(t)}function P(t,e=!0){if(!N())return;const n=(0,p.zK)(),o={$name:t.email,$email:t.email,Email:t.email,Username:t.username,Plan:t.plan_id,Guid:t.id,Language:t.language,IsLimited:t.is_limited,...n};mixpanel.people.set(o);const a={$name:t.email,$email:t.email,Email:t.email,Username:t.username,Plan:t.plan_id,Guid:t.id,IsLimited:t.is_limited};mixpanel.register(a),e&&mixpanel.identify(t.id)}function L(){const t=d.I.getItem(h.c.firstPage);if(!t){const t=d.I.getItem(h.c.ref);d.I.setItem(h.c.firstPage,window.location.href),d.I.setItem(h.c.ref,document.referrer||"$direct"),d.I.setItem(h.c.refDomain,f(document.referrer)||"$direct");const a={currentURL:window.location.href,referrer:document.referrer,previousReferrer:t,history:d.I.getItem(h.c.history),marketingURL:d.I.getItem(h.c.marketingUrl),sfNeedsUpdate:d.I.getItem(h.c.needsUpdate),user:d.I.getItem(h.c.user),previouslyLoggedIn:d.I.getItem(h.c.previouslyLogin)};try{var e,n;if(f(document.referrer).includes("shortform.com"))null===(e=window.Sentry)||void 0===e||e.captureMessage("Setting shortform.com as the initial referrer",{extra:a});else null===(n=window.Sentry)||void 0===n||n.addBreadcrumb({message:`Setting first page data: ${window.location.href}`,data:a})}catch(o){}}}async function D(){const t=T();if(!t)return;d.I.setItem(h.c.marketingUrl,t);const e=r.wz();e&&await s.Em.post("billing/marketing_url",{marketing_url:t})}function T(){const t=window.location.href,e=document.referrer;return t.includes("utm_source")?t:f(e).includes("shortform.com")&&e.includes("utm_source")?e:void 0}function A(){try{const t=d.I.getItem(h.c.history),e=t?JSON.parse(t):[],n=window.location.href,o=e[e.length-1]||[],a=o[1];if(n===a)return;const i=[Math.floor((new Date).getTime()/1e3),n],r=F();r?(e.push(i),e.push([...i,"Landing Page Viewed",r])):e.push(i),d.I.setItem(h.c.history,JSON.stringify(e))}catch(t){u.sQ.captureException(t),$()}}function R(t){if(N()&&"undefined"!==typeof mixpanel.get_config)try{const e=d.I.getItem(h.c.history),n=e?JSON.parse(e):[],o=Q();mixpanel.register(o);let a="";const i=n.map(t=>{const e=t[0],n=t[1],i=t[2]||"Page View",r=t[3],s=mixpanel._?mixpanel._.info.properties():{};return r&&Object.assign(s,r),s["token"]=mixpanel.get_config("token"),s["distinct_id"]=mixpanel.get_distinct_id(),s["time"]=e,s["$current_url"]=n,s["Email"]=mixpanel.get_property("Email"),s["$name"]=mixpanel.get_property("$name"),s["Guid"]=mixpanel.get_property("Guid"),a&&a!==n?(s["$referrer"]=a,s["$referring_domain"]=f(a)||"$direct"):(s["$referrer"]=o.$initial_referrer||"$direct",s["$referring_domain"]=o.$initial_referring_domain||"$direct"),a=n,{event:i,properties:s}});O(i,t),$()}catch(e){u.sQ.captureException(e),t()}}function $(){d.I.removeItem(h.c.history)}function O(t,e){const n=btoa(JSON.stringify(t));B("MIXPANEL BATCH REQUEST:"),B(t);let a="https://api-js.mixpanel.com";try{a=mixpanel.get_config("api_host")}catch(i){u.sQ.captureException(i)}o.A.post(`${a}/track/?ip=1&verbose=1`,`data=${n}`,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(t=>{B("MIXPANEL RESPONSE:"),B(t.data),1!==t.data.status&&u.sQ.captureMessage("Mixpanel batch track error: "+JSON.stringify(t.data))}).catch(t=>{u.sQ.captureException(t)}).finally(function(){e()})}function N(){return!("undefined"===typeof mixpanel||!mixpanel)}function B(...t){mixpanel&&mixpanel.get_config&&mixpanel.get_config("debug")&&console.log(t)}function U(){if(N()&&mixpanel.get_distinct_id)return mixpanel.get_distinct_id()}async function q(){var t,e,n;const o=await _.i.deviceInfo(),r={Platform:o.platform,"Native App Version":o.appVersion,"Device Model":o.model,"Device OS":o.osVersion,"User Agent":navigator.userAgent,"Web App Title":a.B_,"Web App Version":a.hl},s=null===(t=(0,g.QB)())||void 0===t||null===(t=t.currentRoute)||void 0===t?void 0:t.value;null!==s&&void 0!==s&&s.name?r["Current Route"]=null===s||void 0===s?void 0:s.name.toString():r["Current Route"]=void 0;const c=null===(e=i.S.value)||void 0===e?void 0:e.previousPage;return null!==c&&void 0!==c&&null!==(n=c.meta)&&void 0!==n&&n.isDocContentPage&&(null===s||void 0===s?void 0:s.params.url_slug)!==(null===c||void 0===c?void 0:c.params.url_slug)&&(r["Referrer Doc"]=c.path),"billing_apple_external"===(null===s||void 0===s?void 0:s.name)&&(r["Platform"]="ios",r["Native App Version"]=s.query.appVersion16218),r}function F(){if(!window.location.search)return null;const t=["ad_id","campaign_id","gclid","utm_campaign","utm_content","utm_medium","utm_source","utm_term"],e=new URLSearchParams(window.location.search),n={};return t.forEach(t=>{const o=e.get(t);o&&(n[`lp_${t}`]=o)}),Object.keys(n).length?n:null}function W(){return{firstPage:d.I.getItem(h.c.firstPage)||"No first page",marketingUrl:d.I.getItem(h.c.marketingUrl)||"No marketing url",initialReferrer:d.I.getItem(h.c.ref)||"No referrer"}}function Q(){const t=d.I.getItem(h.c.ref)||"$direct",e=d.I.getItem(h.c.refDomain)||"$direct";return{$initial_referrer:t,$initial_referring_domain:e}}},4648:function(t,e,n){n.d(e,{forgotPassword:function(){return m},getCardSaveData:function(){return f},pageView:function(){return g},resetPassword:function(){return _},setFirstDoc:function(){return q},trackAccountDeleteConfim:function(){return O},trackAccountDeleteRequest:function(){return $},trackAudioListen:function(){return R},trackCancelTrial:function(){return w},trackCardSave:function(){return h},trackChecklistCompleted:function(){return W},trackChecklistStepCompleted:function(){return F},trackCommentCreate:function(){return I},trackCompletionExperimentGuideFinished:function(){return U},trackContentCompleted:function(){return N},trackDocCompleted:function(){return B},trackExerciseDiscuss:function(){return k},trackExerciseSave:function(){return v},trackFavorite:function(){return b},trackHighlightCreate:function(){return L},trackHighlightDelete:function(){return A},trackHighlightShare:function(){return D},trackHighlightUpdate:function(){return T},trackMoveBookToList:function(){return y},trackNotifyNewCommentsToggle:function(){return x},trackNotifyNewThreadsToggle:function(){return E},trackReplyCreate:function(){return P},trackThreadCreate:function(){return S},trackThreadUpdate:function(){return C}});n(74423),n(18111),n(61701),n(25440),n(27254),n(7036),n(62953);var o=n(53932),a=n(78848),i=n(32496),r=n(47555),s=n(16145),c=n(17933),u=n(8713),l=n(18936),d=n(22627),p=n(49752);function m(){Q("Forgot Password Request")}function _(){Q("Forgot Password Reset")}async function g(t){try{await M()}catch(e){a.sQ.captureException(e)}(0,l.$q)(t)}async function h(t){var e;if("billing_apple_external"!==(null===(e=(0,d.QB)().currentRoute.value)||void 0===e?void 0:e.name))try{const e=await o.i.deviceInfo();Q("Card Save",{billing_type:t.billing_type,stripe_payment_type:t.stripe_payment_type},{"Last Card Save":(new Date).toISOString()},{"Card Saved":1}),(0,l.Sb)({"Card Save Start Time":(new Date).toISOString(),"Card Save Device":e.model,"Card Save Platform":e.platform})}catch(n){a.sQ.captureException(n)}}async function f(){const t=await(0,l.hz)();return{to_track:t,to_set:{"Card Save Start Time":(new Date).toISOString(),"Card Save Device":t["Device Model"],"Card Save Platform":t["Platform"]}}}function w(t){Q("Trial Cancel",{billing_type:t.billing_type})}function y(t,e){Q("Doc Move To List",{doc_type:t.doc_type,doc_id:t.id,doc_title:t.title,doc_is_free:t.is_free,"Doc Word Count":t.summary_words,list:e},{"Doc Move To List Last":(new Date).toISOString()},{"Doc Move to List Count":1})}function b(t,e){const n=e?"Favorite":"Unfavorite";Q(`Doc ${n}`,{doc_type:t.doc_type,doc_id:t.id,doc_title:t.title,doc_is_free:t.is_free,"Doc Word Count":t.summary_words,is_favorite:e},{[`Doc ${n} Last`]:(new Date).toISOString()},{[`Doc ${n} Count`]:1})}function v(t,e){e.submitted_at&&Q("Exercise Submit",{book_id:t.doc.id,book_title:t.doc.title,book_is_free:t.doc.is_free,book_forum_id:t.doc.forum_id,exercise_id:e.id,exercise_submitted_at:e.submitted_at,content:e.content_id,content_id:t.id,content_book_id:t.doc_id,content_title:t.title,content_type:t.content_type,content_order:t.order},{"Last Exercise Submit":(new Date).toISOString()},{"Exercises Submitted":1})}function k(t,e){Q("Exercise Discuss",{book_id:t.doc.id,book_title:t.doc.title,book_is_free:t.doc.is_free,book_forum_id:t.doc.forum_id,exercise_id:e.id,exercise_submitted_at:e.submitted_at,content:e.content_id,content_id:t.id,content_book_id:t.doc_id,content_title:t.title,content_type:t.content_type,content_order:t.order},{"Last Exercise Discuss":(new Date).toISOString()},{"Exercise Discussed":1})}function E(t,e){Q("Notify New Threads Toggle",{is_toggle_active:t,doc_type:e.doc_type,doc_id:e.id,doc_title:e.title,doc_author:e.author})}function x(t,e,n){Q("Notify New Comments Toggle",{is_toggle_active:t,doc_type:e.doc_type,doc_id:e.id,doc_title:e.title,doc_author:e.author,thread_id:n.id,thread_title:n.title})}function S(t,e){Q("Thread Create",{book_id:t.id,book_title:t.title,book_is_free:t.is_free,book_forum_id:t.forum_id,thread_title:e.title},{"Last Thread Create":(new Date).toISOString()},{"Thread Created":1})}function C(t,e){Q("Thread Update",{book_id:t.id,book_title:t.title,book_is_free:t.is_free,book_forum_id:t.forum_id,thread_title:e.title,thread_created:e.created,thread_comments_count:e.comments_count},{"Last Thread Update":(new Date).toISOString()},{"Thread Updated":1})}function I(t,e,n){let o="Comment Create";const a={thread_id:e.id,thread_title:e.title,thread_created:e.created,thread_updated:e.updated,thread_comments_count:e.comments_count,comment_id:n.id,comment_author_id:n.author.id,comment_author_username:n.author.username};e.author&&(a["thread_author_id"]=e.author.id,a["thread_author_username"]=e.author.username),"book"===t.doc_type?(a["book_id"]=t.id,a["book_title"]=t.title,a["book_is_free"]=t.is_free,a["book_forum_id"]=t.forum_id):(o="Comment Create Article",a["article_id"]=t.id,a["article_title"]=t.title,a["article_is_free"]=t.is_free),Q(o,a,{"Last Comment Create":(new Date).toISOString()},{"Comment Created":1})}function P(t,e,n,o){const a={thread_id:e.id,thread_title:e.title,thread_created:e.created,thread_updated:e.updated,thread_comments_count:e.comments_count,comment_id:n.id,comment_created:n.created,comment_updated:n.updated,comment_author_id:n.author.id,comment_author_username:n.author.username,reply_id:o.id,reply_author_id:o.author.id,reply_author_username:o.author.username};let i="Reply Create";e.author&&(a["thread_author_id"]=e.author.id,a["thread_author_username"]=e.author.username),"book"===t.doc_type?(a["book_id"]=t.id,a["book_title"]=t.title,a["book_is_free"]=t.is_free,a["book_forum_id"]=t.forum_id):(i="Reply Create Article",a["article_id"]=t.id,a["article_title"]=t.title,a["article_is_free"]=t.is_free),Q(i,a,{"Last Reply Create":(new Date).toISOString()},{"Reply Created":1})}function L(t,e){Q("Highlight Create",{book_id:t.doc.id,content_id:t.id,content_title:t.title,highlight_start:e.ranges[0].startOffset,highlight_end:e.ranges[0].endOffset,highlight_has_note:!!e.text,highlight_type:e.highlight_type},{"Last Highlight Create":(new Date).toISOString()},{"Highlight Created":1})}function D(t,e){Q("Highlight Share",{book_id:t.doc_id,content_id:t.id,content_title:t.title,highlight_start:e.ranges[0].startOffset,highlight_end:e.ranges[0].endOffset,highlight_has_note:!!e.text},{"Last Highlight Share":(new Date).toISOString()},{"Highlight Shared":1})}function T(t,e){Q("Highlight Update",{book_id:t.doc.id,content_id:t.id,content_title:t.title,highlight_id:e.id,highlight_start:e.ranges[0].startOffset,highlight_end:e.ranges[0].endOffset,highlight_has_note:!!e.text,highlight_type:e.highlight_type},{"Last Highlight Update":(new Date).toISOString()},{"Highlight Updated":1})}function A(t,e){Q("Highlight Delete",{book_id:t.doc.id,content_id:t.id,content_title:t.title,highlight_id:e.id,highlight_start:e.ranges[0].startOffset,highlight_end:e.ranges[0].endOffset,highlight_has_note:!!e.text,highlight_type:e.highlight_type},{"Last Highlight Delete":(new Date).toISOString()},{"Highlight Deleted":1})}function R(t,e,n){const o=Math.round(e);0!==o&&Q("Audio Listen",{audio_time_diff:o,book_id:t.id,book_title:t.title,book_is_free:t.is_free,is_download:n,is_offline:i.W.isOffline},{"Last Audio Listen":(new Date).toISOString()},{"Audio Listen Time":o})}new Map([["book","Book"],["article","Article"],["podcast_episode","PodcastEpisode"]]);function $(){Q("Account Delete Request")}async function O(){H("Account Delete Confirm")}function N(t){Q("Content Completed",{"Doc ID":t.id,"Doc URL":t.url_slug,"Doc Title":t.title,"Doc Type":t.doc_type,"Doc Word Count":t.summary_words,"Doc Progress":t.user.progress,"Completion Rule Version":2})}function B(t){Q("Doc Completed",{"Doc ID":t.id,"Doc URL":t.url_slug,"Doc Title":t.title,"Doc Type":t.doc_type,"Doc Word Count":t.summary_words,"Completion Rule Version":2})}function U(t,e,n){(0,l.Sb)({"Guide Completion 19383 Enrollment Guide ID":t,"Guide Completion 19383 Enrollment Completion Path":e,"Guide Completion 19383 Enrolled At":(new Date).toISOString()}),Q("Completion Experiment Guide Finished",{"Doc ID":t,"Completion Path":e,"Experiment Variant":n})}async function q(t,e,n){const a=new Date("2025-05-01T00:00Z").getTime(),i=(0,u.b)(c.hh()).getTime();if(a>i)return;const d=await o.i.deviceInfo(),p=(0,s.c)(r.F4
1[n].singular),m={[`First ${p} ${t}`]:e,[`First ${p} ${t} Device`]:d.model,[`First ${p} ${t} Platform`]:d.platform};"Summary Completed"!==t&&(m[`First Content ${t} Device`]=d.model,m[`First Content ${t} Platform`]=d.platform),(0,l.Sb)(m)}function F(t){var e;Q("Checklist Step Completed",{"Step ID":t,Stratum:null===(e=(0,p.D4)())||void 0===e?void 0:e.stratum})}function W(){var t;Q("Checklist Completed",{Stratum:null===(t=(0,p.D4)())||void 0===t?void 0:t.stratum})}function Q(t,e,n,o,i){(0,l.vk)()&&M().then(()=>{(0,l.BA)(t,e,n,o,i)}).catch(r=>{a.sQ.captureException(r),(0,l.BA)(t,e,n,o,i)})}async function H(t,e,n,o){return await M(),await(0,l.L)(t,e,n,o)}async function M(){if(!(0,l.vk)())return;const t=await(0,l.hz)();mixpanel.register(t)}},42894:function(t,e,n){n.d(e,{V:function(){return a}});n(33110);var o=n(78848);function a(t,e){if(t.code&&"ECONNABORTED"===t.code)return void(o.sQ.setContext&&o.sQ.setContext("SF: Timeout",{"Timeout URL":t.config?t.config.url:"no config"}));if(!t.config){const e=JSON.stringify(t);return void console.error(`Error ${e}`)}const n=t.config,a=n.headers;a&&delete a["Authorization"];const i={config:{baseURL:n.baseURL,url:n.url,method:n.method,data:JSON.stringify(n.data),headers:JSON.stringify(a)}};let r=null,s="";if(t.request&&(r=t.request.status,s=t.request.responseText,i["request"]={status:r,statusText:t.request.statusText,responseUrl:t.request.responseURL,responseText:s}),t.response){try{if(e&&e(t.config,t.response))return}catch(d){console.log("Error in _skipError",d)}if(!0!==window.__UNIT_TESTING){const e=JSON.stringify(t.response.data);console.log(`Error ${t.config.method} ${t.config.url} response ${e}`)}r=t.response.status,i["response"]={data:JSON.stringify(t.response.data),headers:JSON.stringify(t.response.headers)}}else t.request||(r="Error",s="",i["request"]="No Request"),i["response"]="No Response";t.code&&(i["code"]=t.code);const c=`${t.config.method}`.toUpperCase(),u=t.config.url,l=0===r;o.sQ.setContext&&o.sQ.setContext("SF: Axios Error Info",{"Error Status Code":r,"Error Data":i,"Error Message (original)":t.message}),l||(t.message=`Request [${c}] ${u} - Error ${r}`)}},95682:function(t,e,n){n.d(e,{SE:function(){return m},_h:function(){return I},bA:function(){return E},o4:function(){return S}});n(44114),n(18111),n(61701),n(13579),n(33110),n(62953);var o=n(81864);const a="shortform-books-list-cache",i="shortform-book-cache",r="shortform-articles-list-cache",s="shortform-article-cache",c="shortform-podcasts-list-cache",u="shortform-podcast-cache",l="shortform-followed-podcast-episodes-cache",d="shortform-home-docs-list-cache",p="shortform-all-highlights-cache",m="shortform-audio",_="shortform-podcast-episodes-cache",g="shortform-tags-cache",h="shortform-collections-cache",f="shortform-custom-lists-cache",w="shortform-custom-list-cache",y="shortform-book-of-the-day-cache",b="shortform-docs-user-data-cache",v="shortform-doc-user-data-cache",k=[a,i,r,s,c,u,l,d,p,m,_,g,h,f,w,y,b,v];async function E(){await x(k)}async function x(t){await T()||await Promise.all(t.map(t=>caches.delete(t)))}async function S(t,e){await D(b,o.fn+"/api/home/docs/user",n=>C(t,e,n))}function C(t,e,n){return n.data[t]={list:e.list,custom_lists:e.custom_lists,is_favorite:e.is_favorite,is_exported:e.is_exported,is_followed:e.is_followed,is_read:e.is_read,accessed:e.accessed,viewed:e.viewed,progress:e.progress,position_chapter:e.position_chapter,position_percent:e.position_percent,audio_position:e.audio_position},n}async function I(t){await D(d,o.fn+"/api/home/docs",e=>P(e,"asListItem"in t?t.asListItem:t))}function P(t,e){const n=t.some(t=>t.id===e.id);return n||t.push({...e,user:void 0,content:void 0}),t}function L(t){const e={status:200,statusText:"Manual Response"};return new Response(JSON.stringify(t,null,2),e)}async function D(t,e,n){if(await T())return;const o=await caches.open(t),a=await o.match(e);if(!a)return;const i=n(await a.json()),r=L(i);await o.put(e,r)}async function T(){let t=!("undefined"===typeof caches||!caches);if(t)try{await caches.keys()}catch(e){if("The operation is insecure."!==e.message)throw e;t=!1}return!t}},22627:function(t,e,n){n.d(e,{QB:function(){return a},W:function(){return i}});n(44114);var o=n(16145);function a(){return window._vueRouter}function i(t){if(t.meta&&t.meta.title)return t.meta.title;if(t.params){let e="";for(const n in t.params){const a=t.params[n];a&&(e+="category"===n?(0,o.d2)(a):(0,o.G7)(a))}return e}return""}},6499:function(t,e,n){n.d(e,{c:function(){return o}});const o={firstPage:"sf_first_page",marketingUrl:"sf_marketing_url",history:"sf_history",ref:"sf_referrer",refDomain:"sf_referrng_domain",abData:"sf_ab_data",abCid:"sf_ab_cid",variantToSet17477:"variant_to_set_17477",questionnairePosition:"sf_lq_position",questionnaire
1Choices:"sf_lq_choices",questionnaireBooks:"sf_lq_books",offerGuide:"sf_17817_offer_guide",selectedPlanId20192:"sf_20192_selected_plan_id",resolvedTitle20192:"sf_20192_resolved_title",authToken:"auth_token",user:"user",previouslyLogin:"previously_logged_in",changelog:"sf_changelog",nightMode:"sf_night_mode",weglotStoredLang:"wglang",position:"sf_position",notificationsCtaTiming:"sf_notifications_cta_timing",bannerDismissed17477:"sf_17477_banner_dismissed",popupDismissed17477:"sf_17477_popup_dismissed",iosConsentSetting:"iosConsentSetting",playerVolume:"sf_player_volume",playerRate:"sf_player_rate",capacitorUid:"_capuid",offlineAnnotations:"offline_annotations",annotator:"sf_annotator",cancelDiscount:"sf_cancel_discount",tutorialAutoShow:"sf_tutorial_auto_show",readingSettings:"sf_reading_settings",needsUpdate:"sf_needs_update",onboardingQuestionStep:"sf_oq_step",checklistProgress19055:"sf_checklist_progress",checklistIsCollapsed19055:"sf_checklist_is_collapsed",checklistFirstDoc19055:"sf_checklist_first_doc",guideCompletionPending19383:"sf_guide_completion_pending_19383",upgradePromptState:"sf_upgrade_prompt_state",upgradePromptPagesVisited:"sf_upgrade_prompt_pages_visited",partnerCreatorSession:"sf_partner_creator",hesitationDiscountShown18997:"sf_18997_hesitation_discount_shown",exitIntentShown19129:"sf_19129_exit_intent_shown",annualUpgradeFlowModalDismissed19092:"sf_19092_annual_upgrade_flow_modal_dismissed",homepageHeroGoalSelectedValue19253:"sf_19253_homepage_hero_selected_value",homepageHeroGoalOnboardingStarted19253:"sf_19253_homepage_hero_onboarding_started"}},34813:function(t,e,n){n.d(e,{I:function(){return u}});const o={},a={setItem(t,e){o[t]=e},getItem(t){return this.hasItem(t)?o[t]:null},removeItem(t){this.hasItem(t)&&delete o[t]},hasItem(t){return o.hasOwnProperty(t)}};function i(t){try{if(localStorage)return t(localStorage)}catch(n){if(!0!==window.__UNIT_TESTING)try{var e;null===(e=window.Sentry)||void 0===e||e.captureException(n)}catch(o){}}return t(a)}function r(t,e){i(n=>(n.setItem(t,e),null))}function s(t){return i(e=>e.getItem(t))}function c(t){i(e=>(e.removeItem(t),null))}const u={setItem:r,getItem:s,removeItem:c}},16145:function(t,e,n){n.d(e,{G7:function(){return r},c:function(){return i},cn:function(){return o},d2:function(){return a}});n(18111),n(61701),n(25440);function o(t){const e=/[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}/gi;return t.replace(e,"{UUID}")}function a(t){return t?t.split("/").map(t=>i(t)).join("/"):""}function i(t){return t.split(" ").map(t=>t[0].toUpperCase()+t.substring(1)).join(" ")}function r(t){return t.split("-").map(t=>t[0].toUpperCase()+t.substring(1)).join(" ")}},42554:function(t,e,n){function o(t){if(isNaN(t.getTime()))return"";const e=String(t.getFullYear()).padStart(4,"0"),n=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0");return`${e}-${n}-${o}`}n.d(e,{i:function(){return o}})},56973:function(t,e,n){n.d(e,{NN:function(){return a}});n(16280);function o(t,e,n){const o=e||1;let a=!1,i=0;function r(e){i+=1,i<o&&!0!==e||a||(a=!0,t())}return setTimeout(()=>r(!0),n||1e3),r}async function a(t,e,n){return new Promise(a=>{t(o(a,e,n))})}},8713:function(t,e,n){n.d(e,{b:function(){return o},v:function(){return a}});n(16280);function o(t,e){if(null===t)throw new Error(e||"Null check failed");if(void 0===t)throw new Error(e||"Undefined check failed");return t}function a(t,e){if(!t)throw new Error(e||"Assertion check failed")}},81864:function(t,e,n){n.d(e,{$E:function(){return g},B_:function(){return c},Gu:function(){return s},Lt:function(){return y},Rc:function(){return f},Y_:function(){return h},ZF:function(){return o},cO:function(){return b},d8:function(){return i},fn:function(){return _},g2:function(){return m},hl:function(){return u},kJ:function(){return w},nI:function(){return d},p8:function(){return p},pL:function(){return r},pq:function(){return l},sB:function(){return k},vb:function(){return v},vt:function(){return a}});n(58335);const o="628b13b57f789d481577b13542b60034",a=!1,i="v9k4xifbhwjk",r="679802069155934",s="production",c="Shortform",u="11.8.0",l=!1,d=!1,p=!0,m="dd6538781e55c38e07af4dc0fab9569696fd697f",_="https://www.shortform.com",g="120000",h=(()=>"https://www.shortform.com".startsWith("http://localhost")||"https://www.shortform.com".startsWith("http://backend"))(),f=(window.__UNIT_TESTING,!!window.__PRERENDER_INJECTED),w=576,y=768,b=991,v=1500,k=p?["es","de","pt-br"]:["es","pt-br"]},81210:function(t,e,n){n.d(e,{S:function(){return s}});n(16280),n(18107),n(74423),n(44114),n(18111),n(22489),n(61701),n(67357),n(62953);var o=n(50953),a=n(53932),i=n(22627);
1class r{constructor(){this.history=[],this.currentRoute=null}get historyWithCurrentRoute(){var t;return!this.currentRoute||null!==(t=this.currentRoute.meta)&&void 0!==t&&t.isRootPage?this.history:[...this.history,this.currentRoute]}resetHistory(t){this.history=[t]}get rootPage(){return this.history[0]}get previousPage(){return this.history.at(-1)}get previousPageTitle(){return(0,i.W)(this.previousPage)}get previousPageLabel(){let t="";a.i.isDesktopWidth()&&(t="Back to ");const e=this.previousPageTitle;return e?t+e:""}get keepAliveComponents(){return this.historyWithCurrentRoute.filter(t=>!0===t.meta.keepAlive).map(t=>t.meta.componentName)}_popHistory(){this.history.pop()}_rootPageFromPath(t){if(t.meta.isPublicPage||t.meta.dontSaveToHistory)return(0,i.QB)().resolve("/app");if(t.meta.parentPage)return(0,i.QB)().resolve({name:t.meta.parentPage});const e=t.path.split("/").slice(1),n=`/app/${e[1]}`,o=(0,i.QB)().resolve(n);if(t.path.includes("/search/"))return(0,i.QB)().resolve({name:"search",query:{term:t.params.term}});if(o&&o.name)return o;const a=(0,i.QB)().resolve(n+"s");if(a&&a.name)return a;throw new Error(`Unexpected route path: ${t.path}`)}isGoingBack(t){return this.previousPage.fullPath===t}updateHistory(t,e){this.currentRoute=t;
1const n=e.name||void 0;if(!n&&!t.meta.isRootPage){const e=this._rootPageFromPath(t);return void this.history.push(e)}t.meta.isRootPage?this.resetHistory(t):this.isGoingBack(t.fullPath)?this._popHistory():t.path!==e.path&&(String(e.name).includes(".page")&&String(t.name).includes(".page")&&e.params.url_slug===t.params.url_slug||e.meta.dontSaveToHistory||e.meta.isPublicPage||t.query.dontSaveToHistory||this.previousPage.fullPath===e.fullPath||this.history.push(e))}goBack(){this.previousPage&&(0,i.QB)().push(this.previousPage)}updateMetaTitle(t,e){let n=e;t.path.endsWith("/preview")?n=`Preview | ${e}`:t.path.endsWith("/community")?n=`Discussion | ${e}`:t.path.endsWith("/highlights")&&(n=`Highlights | ${e}`),t.meta.title=n}}const s=(0,o.KR)(new r)},79250:function(t,e,n){n.d(e,{l6:function(){return r},y6:function(){return i}});var o=n(34813),a=n(6499);function i(){return o.I.getItem(a.c.upgradePromptState)}function r(){o.I.removeItem(a.c.upgradePromptState)}},49752:function(t,e,n){n.d(e,{q:function(){return p},D4:function(){return g},u9:function(){return f}});n(44114),n(18111),n(22489),n(20116),n(7588),n(18237),n(33110),n(58335);var o=n(22627),a=n(46161);function i(t){const e={read_first:new p({id:"read_first",title:"Read your first guide",targetProgress:5,onClick:()=>{a.P.emit("checklistShowPopup")}}),highlight_idea:new p({id:"highlight_idea",title:"Highlight an idea or try an exercise",onClick:(t,e)=>{const n=e.reading||e.recommendations[0];t.navigateAndShowHint(`/app/book/${n.url_slug}`,'Select a line that resonates, then tap on the "Highlight" option to save it. Alternatively, submit an exercise')}}),save_three:new p({id:"save_three",title:"Save 3 guides you want to read",targetProgress:3,onClick:t=>{t.navigateAndShowHint("/app/search",'Search for guides that you find interesting, then tap on the bookmark icon and select "Add to Want to Read".')}}),read_second:new p({id:"read_second",title:"Read a second guide for 5 minutes",targetProgress:5,onClick:()=>{a.P.emit("checklistShowPopup")}})};return"free"===t&&(e.start_trial=new p({id:"start_trial",title:"Unlock everything, start your free trial",onClick:()=>{(0,o.QB)().push("/app/billing")}})),e}var r=n(6409),s=n(4648),c=n(34813),u=n(6499),l=n(2147),d=n(78848);class p{constructor(t){this.id=t.id,this.title=t.title,this.onClick=t.onClick,this.targetProgress=t.targetProgress||1,this.progress=t.progress||0}get progressPercent(){return this.progress/this.targetProgress}get isCompleted(){return this.progress===this.targetProgress}addProgress(t){var e;return this.isCompleted||(this.progress+=t,this.progress>this.targetProgress&&(this.progress=this.targetProgress),this.isCompleted&&this.onComplete(),null===(e=this.checklist)||void 0===e||e.saveProgress()),this.progress}onComplete(){var t;s.trackChecklistStepCompleted(this.id);const e=null===(t=this.checklist)||void 0===t?void 0:t.nextStep;var n;e?this.completionNotification(e):null===(n=this.checklist)||void 0===n||n.complete()}setProgress(t){this.progress=t,this.progress>this.targetProgress&&(this.progress=this.targetProgress)}completionNotification(t){r.qq.success({title:`Step completed: ${this.title}`,message:`Next up: ${t.title}`,confetti:!0})}async navigateAndShowHint(t,e){await(0,o.QB)().push(t),setTimeout(()=>{r.qq.unique({title:this.title,message:e,duration:3e4})})}}class m{constructor(t,e,n){this.steps=t,this.stratum=e,this.stepsArray.forEach(t=>{if(t.checklist=this,n){const e=n.steps[t.id];t.setProgress(e)}}),n||this.saveProgress()}get isCompleted(){return void 0===this.nextStep}get stepsArray(){return Object.values(this.steps)}get nextStep(){return this.stepsArray.find(t=>!t.isCompleted)}get completedSteps(){return this.stepsArray.filter(t=>t.isCompleted)}get progressPercent(){return this.completedSteps.length/this.stepsArray.length}get finishedReadingSteps(){return this.steps.read_first.isCompleted&&this.steps.read_second.isCompleted}saveProgress(){const t={is_completed:this.isCompleted,stratum:this.stratum,steps:this.stepsArray.reduce((t,e)=>(t[e.id]=e.progress,t),{})};c.I.setItem(u.c.checklistProgress19055,JSON.stringify(t)),l.H.saveChecklistProgress19055(t).cat
1ch(t=>{d.sQ.captureException(t)})}complete(){s.trackChecklistCompleted(),r.qq.success({title:"Checklist complete 🎉",message:"You're set up to get the most from Shortform",confetti:!0})}}let _;function g(){return _}function h(t,e){const n=i(t);_=new m(n,t,e)}async function f(){const t=c.I.getItem(u.c.checklistProgress19055),e=t?JSON.parse(t):void 0;if(null!==e&&void 0!==e&&e.is_completed)return h(e.stratum,e);const n=await l.H.getChecklistProgress19055();return n?h(n.stratum,n):e?(d.sQ.captureMessage("Tried to resume checklist with no progress in the DB"),h(e.stratum,e)):void d.sQ.captureMessage("Tried to resume checklist with no progress locally or in the DB")}},47555:function(t,e,n){n.d(e,{F4:function(){return r},d:function(){return a}});n(16280),n(74423),n(44114),n(30237),n(18111),n(22489),n(20116),n(30531),n(7588),n(61701),n(13579),n(25440),n(27254),n(7036),n(62953);class o{constructor(t,e){this._annotation=e,this._content=t,this.id=e.id,this.quote=e.quote,this.ranges=e.ranges,this.is_public=e.is_public,this.created=e.created,this.updated=e.updated,this.highlight_type=e.highlight_type}get content(){return this._content}get text(){return this._annotation.text?this._annotation.text:""}set text(t){this._annotation.text=t}get contentLink(){return"book"===this._content.doc.doc_type?{name:"book.page",params:{url_slug:this._content.doc.url_slug,page_url_slug:this._content.url_slug},query:{highlight:this._annotation.id}}:"podcast_episode"===this._content.doc.doc_type?{name:"podcast.page",params:{url_slug:this._content.doc.url_slug,page_url_slug:this._content.url_slug}}:{name:"article",params:{url_slug:this._content.doc.url_slug}}}get publicLink(){return{name:"public_highlight",params:{book_url_slug:this._content.doc.url_slug,highlight_id:this._annotation.id}}}get contentTitle(){return"book"===this._content.doc.doc_type?this._content.doc.title+": "+this._content.title:this._content.doc.title}get docTitle(){return this._content.doc.title}get author(){return this._content.doc.author}get cover_image(){return this._content.doc.cover_image}get doc_type(){return this._content.doc.doc_type}get contentId(){return this._content.id}}function a(t){const e=[];for(let n=0;n<t.length;n++){const a=t[n],i=new o(a.content,a);e.push(i)}return e}var i;(function(t){t["title"]="title",t["first_published_at"]="first_published_at",t["accessed"]="accessed",t["viewed"]="viewed",t["popular"]="popular",t["recommended"]="recommended",t["none"]="none"})(i||(i={}));const r={article:{singular:"article",plural:"articles",exportKind:"article"},book:{singular:"book",plural:"books",exportKind:"summary"},podcast_episode:{singular:"podcast episode",plural:"podcast episodes"},podcast:{singular:"podcast",plural:"podcasts"},collection:{singular:"collection",plural:"collections"},custom_list:{singular:"my list",plural:"my lists"}}},27120:function(t,e,n){n(9391);var o=n(53751),a=n(20641);const i={id:"app",class:"sf-app-pdf"};function r(t,e){const n=(0,a.g2)("router-view");return(0,a.uX)(),(0,a.CE)("div",i,[(0,a.bF)(n)])}var s=n(66262);const c={},u=(0,s.A)(c,[["render",r]]);var l=u,d=n(75220),p=n(54141);const m={template:"<span></span>"};function _(t){const e=(0,d.aE)({history:(0,d.LA)(),routes:t});return e}function g(t){return t.concat(f)}function h(t,e){if(!0===window.__UNIT_TESTING)return e();p.Kg(t),window.location.href=t}const f=[{path:"/",name:"site_index",beforeEnter(t,e,n){h("/",n)},component:m},{path:"/pricing",name:"site_pricing",beforeEnter(t,e,n){h("/pricing",n)},component:m},{path:"/about",name:"site_about",beforeEnter(t,e,n){h("/about",n)},component:m},{path:"/terms",name:"site_terms",beforeEnter(t,e,n){h("/terms",n)},component:m},{path:"/delete_account",name:"site_delete_account",beforeEnter(t,e,n){h("/delete_account",n)},component:m},{path:"/shortform_video",name:"site_video",beforeEnter(t,e,n){h("/shortform_video",n)},component:m},{path:"/summaries",name:"site_summaries",beforeEnter(t,e,n){h("/summaries",n)},component:m},{path:"/privacy",name:"site_privacy",beforeEnter(t,e,n){h("/privacy",n)},component:m},{path:"/404",name:"public_not_found",beforeEnter(t,e,n){h("/404",n)},component:m},{path:"/app/login",name:"login",beforeEnter(t,e,n){h("/app/login",n)},component:m},{path:"/app/signup",name:"signup",beforeEnter(t,e,n){h("/app/signup",n)},component:m},{path:"/app",name:"books",beforeEnter(t,e,n){h("/app",n)},component:m},{path:"/app/article/:url_slug",name:"app_article",beforeEnter(t,e,n){h("/app/article/"+t.params.url_slug,n)},component:m},{path:"/app/book/:url_slug",name:"app_book",beforeEnter(t,e,n){h("/app/book/"+t.params.url_slug,n)},component:m}];n(44114);var w=n(50953),y=(n(62953),n(90033)),b=n.p+"img/logo.1fcd5cb3.svg",v=n.p+"img/arrow.d62c58c8.svg";const k={class:"partner-discount-banner"},E={class:"partner-discount-banner__inner"};var x=(0,a.pM)({__name:"PartnerDiscountBanner",setup(t){const e=(0,d.lq)(),n=(0,a.EW)(()=>({name:"signup",query:{...e.query,cta:"partner_discount_banner"}}));return(t,e)=>{const o=(0,a.g2)("router-link");return(0,a.uX)(),(0,a.CE)("div",k,[(0,a.Lk)("div",E,[e[1]||(e[1]=(0,a.Lk)("p",{class:"partner-discount-banner__text"},[(0,a.Lk)("strong",null,"Special Deal:"),(0,a.eW)(" You've gotten "),(0,a.Lk)("strong",{class:"partner-discount-banner__headline"},"25% off"),(0,a.eW)(" by being a viewer of our partner! ")],-1)),(0,a.bF)(o,{to:n.value,class:"partner-discount-banner__cta"},{default:(0,a.k6)(()=>[...e[0]||(e[0]=[(0,a.eW)(" Claim Discount ",-1)])]),_:1},8,["to"]),e[2]||(e[2]=(0,a.Fv)('<span class="partner-discount-banner__dismiss" aria-label="Dismiss banner" data-v-0eaab0dc><span class="partner-discount-banner__dismiss-icon" aria-hidden="true" data-v-0eaab0dc><svg width="24" height="24" viewBox="0 0 24 24" fill="none" data-v-0eaab0dc><path d="M19 19.0001L5 5.00002" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" data-v-0eaab0dc></path><path d="M5 19.0001L19 5.00002" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" data-v-0eaab0dc></path></svg></span></span>',1))])])}}});const S=(0,s.A)(x,[["__scopeId","data-v-0eaab0dc"]]);var C=S,I=(n(18111),n(7588),n(6499));function P(){if(window.localStorage.getItem(I.c.authToken)){const t=document.querySelectorAll(".button-logged-out"),e=document.querySelectorAll(".button-logged-in");t.forEach(t=>{t.style.display="none"}),e.forEach(t=>{t.style.display=null})}}const L={class:"header-wrapper"},D={class:"container header__container"},T={class:"nav"},A={class:"menu"},R={class:"button-group header__button-group"};var $=(0,a.pM)({__name:"Navbar",props:{showPartnerDiscountBanner:{type:Boolean,default:!0},loginCta:{},signupCta:{}},setup(t){var e,n;const o=t,i=null!==(e=o.loginCta)&&void 0!==e?e:"top_login",r=null!==(n=o.signupCta)&&void 0!==n?n:"top_signup";return(0,a.sV)(()=>{P()}),(e,n)=>{const o=(0,a.g2)("router-link");return(0,a.uX)(),(0,a.CE)("div",L,[t.showPartnerDiscountBanner?((0,a.uX)(),(0,a.Wv)(C,{key:0})):(0,a.Q3)("",!0),(0,a.Lk)("header",(0,a.v6)({class:"header"},e.$attrs),[(0,a.Lk)("div",D,[(0,a.bF)(o,{class:"header__logo",to:{name:"site_index"}},{default:(0,a.k6)(()=>[...n[0]||(n[0]=[(0,a.Lk)("img",{class:"header__logo__img",src:b,alt:"Shortform"},null,-1)])]),_:1}
1),(0,a.Lk)("div",T,[(0,a.Lk)("ul",A,[(0,a.Lk)("li",{class:(0,y.C4)(["menu__item",""])},[(0,a.bF)(o,{class:"menu__link",to:{name:"site_summaries"}},{default:(0,a.k6)(()=>[...n[1]||(n[1]=[(0,a.eW)(" Our Content ",-1)])]),_:1})]),(0,a.Lk)("li",{class:(0,y.C4)(["menu__item",""])},[(0,a.bF)(o,{class:"menu__link",to:{name:"site_pricing"}},{default:(0,a.k6)(()=>[...n[2]||(n[2]=[(0,a.eW)(" Pricing ",-1)])]),_:1})]),(0,a.Lk)("li",{class:(0,y.C4)(["menu__item",""])},[(0,a.bF)(o,{class:"menu__link",to:{name:"site_about"}},{default:(0,a.k6)(()=>[...n[3]||(n[3]=[(0,a.eW)(" About ",-1)])]),_:1})]),(0,a.Lk)("li",{class:(0,y.C4)(["menu__item",""])},[...n[4]||(n[4]=[(0,a.Lk)("a",{class:"menu__link",href:"https://www.shortform.com/blog/hub?cta=shortform_home_top_nav_menu"}," Knowledge Hub ",-1)])])]),(0,a.Lk)("div",R,[(0,a.bF)(o,{class:"button button--login button-logged-out",to:{name:"login",query:{cta:(0,w.R1)(i)}}},{default:(0,a.k6)(()=>[...n[5]||(n[5]=[(0,a.eW)(" Login ",-1),(0,a.Lk)("img",{class:"button__arrow-img",src:v,alt:""},null,-1)])]),_:1},8,["to"]),(0,a.bF)(o,{class:"button button--theme ab-site-page-1208 button-logged-out",to:{name:"signup",query:{cta:(0,w.R1)(r)}}},{default:(0,a.k6)(()=>[...n[6]||(n[6]=[(0,a.eW)(" Sign up for free ",-1)])]),_:1},8,["to"]),(0,a.bF)(o,{class:"button button--theme button-logged-in",to:{name:"books",query:{cta:(0,w.R1)(i)}},style:{display:"none"}},{default:(0,a.k6)(()=>[...n[7]||(n[7]=[(0,a.eW)(" Login ",-1)])]),_:1},8,["to"])])]),(0,a.bF)(o,{class:"button button--theme button--mobile button-sign-up--mobile ab-site-page-1208e button-logged-out",to:{name:"signup",query:{cta:(0,w.R1)(r)}}},{default:(0,a.k6)(()=>[...n[8]||(n[8]=[(0,a.eW)(" Sign up ",-1)])]),_:1},8,["to"]),(0,a.bF)(o,{class:"button button--theme button--mobile button-login--mobile button-logged-in",to:{name:"books",query:{cta:(0,w.R1)(i)}},style:{display:"none"}},{default:(0,a.k6)(()=>[...n[9]||(n[9]=[(0,a.eW)(" Login ",-1)])]),_:1},8,["to"]),n[10]||(n[10]=(0,a.Lk)("button",{class:"hamburger","aria-label":"Toggle navigation menu"},[(0,a.Lk)("span",{class:"hamburger__item"}),(0,a.Lk)("span",{class:"hamburger__item"}),(0,a.Lk)("span",{class:"hamburger__item"})],-1))])],16)])}}});const O=(0,s.A)($,[["__scopeId","data-v-e1b7e9e6"]]);var N=O,B=n.p+"img/app.5105fa9a.svg",U=n.p+"img/google.1aa3507c.svg",q=n.p+"img/email.0194922f.svg",F=n.p+"img/map.a437a6b3.svg";const W={class:"footer border-top"},Q={class:"container"},H={class:"footer__logos"},M={class:"quick-links border-top"},j={class:"quick-links__item quick-links__item--menu"},G={class:"footer-menu"},V={class:"footer-menu__item"},X={class:"footer-menu__item"},z={class:"footer-menu__item"},J={class:"footer-menu__item"},K={class:"footer__copyright-social border-top"},Y={class:"copyright"},Z={class:"copyright__text"};function tt(t,e){const n=(0,a.g2)("router-link");return(0,a.uX)(),(0,a.CE)("footer",W,[(0,a.Lk)("div",Q,[(0,a.Lk)("div",H,[(0,a.bF)(n,{to:{name:"site_index"},class:"footer__logo"},{default:(0,a.k6)(()=>[...e[0]||(e[0]=[(0,a.Lk)("img",{class:"footer__logo-img",src:b,alt:"Shortform - Book Summary"},null,-1)])]),_:1}),e[1]||(e[1]=(0,a.Fv)('<div class="apps"><a id="appstore_link_bottom" class="apps__link" href="https://apps.apple.com/us/app/shortform/id1489472007" target="_blank"><img class="apps__img" src="'+B+'" alt="Download from App Store"></a><a id="googleplay_link_bottom" class="apps__link" href="https://play.google.com/store/apps/details?id=com.shortform.app" target="_blank"><img class="apps__img" src="'+U+'" alt="Download on Google Play"></a></div>',1))]),(0,a.Lk)("div",M,[(0,a.Lk)("div",j,[e[7]||(e[7]=(0,a.Lk)("h3",{class:"quick-links__title"},"Menu",-1)),(0,a.Lk)("ul",G,[(0,a.Lk)("li",V,[(0,a.bF)(n,{to:{name:"site_index"},class:"footer-menu__link"},{default:(0,a.k6)(()=>[...e[2]||(e[2]=[(0,a.eW)("Home",-1)])]),_:1})]),(0,a.Lk)("li",X,[(0,a.bF)(n,{to:{name:"site_summaries"},class:"footer-menu__link"},{default:(0,a.k6)(()=>[...e[3]||(e[3]=[(0,a.eW)("Our Content",-1)])]),_:1})]),(0,a.Lk)("li",z,[(0,a.bF)(n,{to:{name:"site_pricing"},class:"footer-menu__link"},{default:(0,a.k6)(()=>[...e[4]||(e[4]=[(0,a.eW)("Pricing",-1)])]),_:1})]),(0,a.Lk)("li",J,[(0,a.bF)(n,{to:{name:"site_about"},class:"footer-menu__link"},{default:(0,a.k6)(()=>[...e[5]||(e[5]=[(0,a.eW)("About",-1)])]),_:1})]),e[6]||(e[6]=(0,a.Lk)("li",{class:"footer-menu__item"},[(0,a.Lk)("a",{href:"https://www.shortform.com/blog/hub?cta=shortform_home_footer_nav_menu",class:"footer-menu__link"}," Knowledge Hub ")],-1))])]),e[8]||(e[8]=(0,a.Fv)('<div class="quick-links__item quick-links__item--categories"><h3 class="quick-links__title">
1Popular Categories</h3><div class="flex"><ul class="footer-menu"><li class="footer-menu__item"><a class="footer-menu__link" href="https://www.shortform.com/best-books/genre/best-management-books-of-all-time">Management &amp; Leadership</a></li><li class="footer-menu__item"><a class="footer-menu__link" href="https://www.shortform.com/best-books/genre/best-business-books-of-all-time">Business</a></li><li class="footer-menu__item"><a class="footer-menu__link" href="https://www.shortform.com/best-books/genre/best-entrepreneurship-books-of-all-time">Entrepreneurship</a></li><li class="footer-menu__item"><a class="footer-menu__link" href="https://www.shortform.com/best-books/genre/best-money-books-of-all-time">Money &amp; Finance</a></li></ul><ul class="footer-menu"><li class="footer-menu__item"><a class="footer-menu__link" href="https://www.shortform.com/best-books/genre/best-career-guide-books-of-all-time">Career &amp; Success</a></li><li class="footer-menu__item"><a class="footer-menu__link" href="https://www.shortform.com/best-books/genre/best-productivity-books-of-all-time">Productivity</a></li><li class="footer-menu__item"><a class="footer-menu__link" href="https://www.shortform.com/best-books/genre/best-health-books-of-all-time">Health &amp; Well-Being</a></li><li class="footer-menu__item"><a class="footer-menu__link" href="https://www.shortform.com/best-books/genre/best-communication-books-of-all-time">Communication</a></li></ul></div></div><div class="quick-links__item quick-links__item--summaries"><h3 class="quick-links__title"><span>Popular Book Guides</span></h3><ul class="footer-menu"><li class="footer-menu__item"><a class="footer-menu__link" href="/summary/the-7-habits-of-highly-effective-people-summary-stephen-covey">The 7 Habits of Highly Effective People</a></li><li class="footer-menu__item"><a class="footer-menu__link" href="/summary/rich-dad-poor-dad-summary-robert-kiyosaki">Rich Dad, Poor Dad</a></li><li class="footer-menu__item"><a class="footer-menu__link" href="/summary/the-4-hour-workweek-summary-tim-ferriss">The 4-Hour Workweek</a></li><li class="footer-menu__item"><a class="footer-menu__link" href="/summary/the-power-of-habit-summary-charles-duhigg">The Power of Habit</a></li></ul></div><div class="quick-links__item quick-links__item--contact"><h3 class="quick-links__title">Contact Us</h3><ul class="footer-menu"><li class="footer-menu__item"><a class="footer-menu__link" href="mailto:[email protected]"><span class="footer-menu__link-img"><img src="'+q+'" alt=""></span><span>[email protected]</span></a></li><li class="footer-menu__item"><span class="footer-menu__link"><span class="footer-menu__link-img"><img src="'+F+'" alt=""></span><span>1449 S. Michigan Ave Ste 13130 Chicago, IL 60605</span></span></li></ul></div>',3))]),(0,a.Lk)("div",K,[(0,a.Lk)("div",Y,[(0,a.Lk)("p",Z,[(0,a.eW)(" Copyright © "+(0,y.v_)((new Date).getFullYear())+" Shortform™ | All Rights Reserved | ",1),(0,a.bF)(n,{class:"copyright__link",to:{name:"site_privacy"}},{default:(0,a.k6)(()=>[...e[9]||(e[9]=[(0,a.eW)("Privacy",-1)])]),_:1}),e[11]||(e[11]=(0,a.eW)(" | ",-1)),(0,a.bF)(n,{class:"copyright__link",to:{name:"site_terms"}},{default:(0,a.k6)(()=>[...e[10]||(e[10]=[(0,a.eW)("Terms",-1)])]),_:1})])]),e[12]||(e[12]=(0,a.Lk)("div",{class:"social"},[(0,a.Lk)("a",{class:"iconfont icon-facebook social__icon",href:"https://www.facebook.com/shortformhq",title:"Facebook"}),(0,a.Lk)("a",{class:"iconfont icon-instagram social__icon",href:"https://www.instagram.com/_shortform",title:"Instagram"}),(0,a.Lk)("a",{class:"iconfont icon-linkedin social__icon",href:"https://www.linkedin.com/company/shortform-summaries",title:"LinkedIn"})],-1))])])])}const et={},nt=(0,s.A)(et,[["render",tt]]);var ot=nt;const at={class:"intro__wrapper"},it={class:"intro container"},rt={class:"intro__breadcrumbs"},st={class:"intro__content"},ct={class:"intro__text"},ut={class:"intro__title"},lt={key:0,class:"intro__authors"},dt={key:1,class:"intro__authors"},pt=["innerHTML"],mt={key:1,class:"intro__listen"},_t=["href"],gt=["src","alt"];var ht=(0,a.pM)({__name:"IntroBlock",props:{doc:{},title:{},showListenToOriginal:{type:Boolean}},setup(t){return(e,n)=>((0,a.uX)(),(0,a.CE)("div",at,[(0,a.Lk)("div",it,[(0,a.Lk)("p",rt,[(0,a.RG)(e.$slots,"breadcrumbs")]),(0,a.Lk)("div",st,[(0,a.Lk)("div",ct,[(0,a.Lk)("h1",ut,(0,y.v_)(t.title||t.doc.title),1),t.title?(0,a.Q3)("",!0):((0,a.uX)(),(0,a.CE)(a.FK,{key:0},[e.$slots.author?((0,a.uX)(),(0,a.CE)("p",lt,[(0,a.RG)(e.$slots,"author")])):t.doc.author?((0,a.uX)(),(0,a.CE)("p",dt," by "+(0,y.v_)(t.doc.author),1)):(0,a.Q3)("",!0)],64)),(0,a.Lk)("div",{class:"intro__blurb",innerHTML:t.doc.blurb},null,8,pt),"original_url"in t.doc&&t.doc.original_url&&t.showListenToOriginal?((0,a.uX)(),(0,a.CE)("p",mt,[(0,a.Lk)("strong",null,[(0,a.Lk)("a",{target:"_blank",href:t.doc.original_url,rel:"noreferrer noopener"},"Listen to the original",8,_t)])])):(0,a.Q3)("",!0)]),(0,a.Lk)("div",null,[(0,a.Lk)("img",{class:"intro__cover",src:t.doc.
1cover_image,alt:t.title||t.doc.title,sizes:"50vw"},null,8,gt)])])])]))}});const ft=(0,s.A)(ht,[["__scopeId","data-v-1772e7cf"]]);var wt=ft,yt=n.p+"img/logo-icon.830517bc.svg";const bt={class:"intro-cta container"},vt={class:"intro-cta__block"},kt={class:"intro-cta__wrapper"},Et={class:"intro-cta__title"},xt={class:"intro-cta__description container"},St={class:"intro-cta__wrapper"};var Ct=(0,a.pM)({__name:"IntroCTA",props:{title:{},type:{},to:{}},setup(t){const e={podcast:{title:"",description:" Sign up for Shortform to access the whole episode summary along with additional materials like counterarguments and context. "},article:{title:"This is a preview of the Shortform article ",description:"This is a preview of the Shortform article, sign up to access the whole article."}},n=e[t.type].title,o=e[t.type].description;return(e,i)=>{var r;const s=(0,a.g2)("router-link");return(0,a.uX)(),(0,a.CE)("div",bt,[(0,a.Lk)("div",vt,[i[1]||(i[1]=(0,a.Lk)("div",{class:"intro-cta__wrapper"},[(0,a.Lk)("img",{class:"intro-cta__logo",src:yt,alt:"Shortform Logo"})],-1)),(0,a.Lk)("div",kt,[(0,a.Lk)("h3",Et,(0,y.v_)((0,w.R1)(n))+(0,y.v_)(t.title),1)]),(0,a.Lk)("p",xt,(0,y.v_)((0,w.R1)(o)),1),(0,a.Lk)("div",St,[(0,a.bF)(s,{to:null!==(r=t.to)&&void 0!==r?r:{name:"signup"},class:"intro-cta__button button button--theme"},{default:(0,a.k6)(()=>[(0,a.RG)(e.$slots,"button",{},()=>[i[0]||(i[0]=(0,a.eW)("Sign up for Shortform",-1))])]),_:3},8,["to"])])])])}}});const It=(0,s.A)(Ct,[["__scopeId","data-v-897a4616"]]);var Pt=It;const Lt={class:"cta__inner"},Dt={key:0,class:"cta__title"},Tt={key:1,class:"cta__text"};var At=(0,a.pM)({__name:"PaywallCTA",props:{to:{},variant:{default:"default"}},setup(t){return(e,n)=>{var o;const i=(0,a.g2)("router-link");return(0,a.uX)(),(0,a.CE)("div",{class:(0,y.C4)(["cta",`cta--${t.variant}`])},[(0,a.Lk)("div",Lt,[e.$slots.title?((0,a.uX)(),(0,a.CE)("h4",Dt,[(0,a.RG)(e.$slots,"title")])):(0,a.Q3)("",!0),e.$slots.description?((0,a.uX)(),(0,a.CE)("div",Tt,[(0,a.RG)(e.$slots,"description")])):(0,a.Q3)("",!0),e.$slots.button?((0,a.uX)(),(0,a.Wv)(i,{key:2,to:null!==(o=t.to)&&void 0!==o?o:{name:"signup"},class:"button button--theme button--size-m cta__button"},{default:(0,a.k6)(()=>[(0,a.RG)(e.$slots,"button",{},()=>[n[0]||(n[0]=(0,a.eW)("Sign up for free",-1))])]),_:3},8,["to"])):(0,a.Q3)("",!0)])],2)}}});const Rt=(0,s.A)(At,[["__scopeId","data-v-61383044"]]);var $t=Rt;const Ot={key:0,class:"content container"},Nt={class:"content-block article-prerender"},Bt={class:"content-item"},Ut=["innerHTML"];var qt=(0,a.pM)({__name:"ContentItem",props:{article:{}},setup(t){function e(t){if(!t)return"";const e=new DOMParser,n=e.parseFromString(t,"text/html");return Array.from(n.querySelectorAll("h3")).forEach(t=>{var e;const n=(null===(e=t.textContent)||void 0===e?void 0:e.trim())||"";if(n.startsWith("Shortform Takeaway Questions")||n.startsWith("Sources")){let e=t;while(e){const t=e.nextElementSibling;if(e.remove(),t&&t.tagName.match(/^H[23]$/))break;e=t}}}),n.body.innerHTML}return(n,o)=>t.article?((0,a.uX)(),(0,a.CE)("div",Ot,[(0,a.Lk)("div",Nt,[(0,a.Lk)("div",Bt,[(0,a.Lk)("div",{class:"content-item__summary content-item__summary-paywall",innerHTML:e(t.article.content)},null,8,Ut),(0,a.bF)($t,{class:"content-item__cta",to:`/app/article/${t.article.url_slug}?cta=article_paywall_cta`},{title:(0,a.k6)(()=>[...o[0]||(o[0]=[(0,a.eW)("Read the full article on Shortform",-1)])]),description:(0,a.k6)(()=>[...o[1]||(o[1]=[(0,a.eW)(" Subscribed users get access to the full article and related content. ",-1)])]),button:(0,a.k6)(()=>[...o[2]||(o[2]=[(0,a.eW)("Start your free trial today",-1)])]),_:1},8,["to"])])])])):(0,a.Q3)("",!0)}});const Ft=(0,s.A)(qt,[["__scopeId","data-v-261b04b6"]]);var Wt=Ft,Qt=n(2147);n(61701),n(33110),n(74423),n(25440);const Ht=["-vb13747","-pbp18613"],Mt=new RegExp(`(?:${Ht.join("|")})(?:-[a-z](?=[-/]|$))?`);function jt(t){return t.replace(Mt,"")}function Gt(t){return t.endsWith("/")&&(t=t.slice(0,-1)),t=jt(t),"https://www.shortform.com"+t}function Vt(t){document.title=t}function Xt(){Array.from(document.querySelectorAll("[data-vue-router-controlled]")).map(t=>t.parentNode.removeChild(t))}function zt(t){return Kt("meta",t)}function Jt(t){return Kt("link",t)}function Kt(t,e){e.map(e=>{const n=document.createElement(t);return Object.keys(e).forEach(t=>{n.setAttribute(t,e[t])}),n.setAttribute("data-vue-router-controlled",""),n}
1).forEach(t=>document.head.appendChild(t))}function Yt(t){const e=document.querySelector('script[data-jsonld="paywall"]');e&&e.remove();const n=document.createElement("script");n.type="application/ld+json",n.setAttribute("data-jsonld","paywall"),n.textContent=JSON.stringify(t),document.head.appendChild(n)}function Zt(t){const{title:e,description:n,url:o,image:a,type:i="website",twitterCard:r="summary_large_image",twitterSite:s="@_shortform",clearExisting:c=!0,jsonLd:u}=t;e&&Vt(e),c&&Xt(),o&&Jt([{rel:"canonical",href:o,id:"canonical"}]),n&&zt([{name:"description",content:n}]),zt([...o?[{property:"og:url",content:o}]:[],{property:"og:type",content:i},...e?[{property:"og:title",content:e}]:[],...n?[{property:"og:description",content:n}]:[],...a?[{property:"og:image",content:a}]:[]]),zt([{property:"twitter:card",content:r},{property:"twitter:site",content:s},...e?[{property:"twitter:title",content:e}]:[],...n?[{property:"twitter:description",content:n}]:[],...a?[{property:"twitter:image",content:a}]:[]]),u&&Yt(u)}var te=n(78848),ee=n(8713);const ne={class:"sf-public article-wrapper"};var oe=(0,a.pM)({__name:"PublicArticlePage",setup(t){const e=(0,d.lq)(),n=(0,d.rd)(),o=(0,w.KR)(null);function i(){const t=(0,ee.b)(o.value),e=`${t.title} Article Summary by ${t.author}`,a=`Read a detailed article summary of "${t.title}" by ${t.author}. We have the world's best book summaries.`,i=Gt(n.currentRoute.value.fullPath),r="https:"+t.cover_image;Zt({title:e,description:a,url:i,image:r,jsonLd:{"@context":"https://schema.org","@type":"Article",headline:t.title,author:t.author,image:r,url:i,isAccessibleForFree:!1,hasPart:{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".content-item__summary-paywall"}}})}return(0,a.KC)(async()=>{try{const t=await Qt.H.getPublicArticle(e.params.article_url_slug);o.value=t,i()}catch(t){if(!t.request||404!==t.request.status)throw te.sQ.captureException(t),t;n.push({name:"not_found"})}}),(t,e)=>((0,a.uX)(),(0,a.CE)("div",ne,[(0,a.bF)(N,{loginCta:"article_top_login",signupCta:"article_top_signup"}),o.value?((0,a.uX)(),(0,a.Wv)(wt,{key:0,doc:o.value,showListenToOriginal:!1},null,8,["doc"])):(0,a.Q3)("",!0),o.value?((0,a.uX)(),(0,a.Wv)(Pt,{key:1,title:o.value.title,type:"article",to:`/app/article/${o.value.url_slug}?cta=article_intro_cta`},null,8,["title","to"])):(0,a.Q3)("",!0),o.value?((0,a.uX)(),(0,a.Wv)(Wt,{key:2,article:o.value},null,8,["article"])):(0,a.Q3)("",!0),e[0]||(e[0]=(0,a.Lk)("div",null,null,-1)),(0,a.bF)(ot)]))}});const ae=oe;var ie=ae;const re="Shortform",se=g([{path:"/article/:article_url_slug",name:"public_article",component:ie,meta:{title:re+" | Article "}}]);var ce=se;const ue=_(ce);var le=n(8533),de=n.n(le),pe=n(81864),me=n(53932);async function _e(){const t=await me.i.deviceInfo();if("web"!==t.platform)return;const e=pe.p8?"production":"sandbox",n={appToken:pe.d8,environment:e};pe.p8||(n.logLevel="verbose"),de().initSdk(n)}function ge(){if(window.mixpanel){const t=pe.pq?null:window.location.origin+"/_mp";mixpanel.init(pe.ZF,{debug:pe.vt,track_pageview:!1,api_host:t?t+"/api":void 0,lib_base_path:t?t+"/libs/":void 0,loaded:()=>{window.__MIXPANEL_LOADED=!0}})}}n(58335);var he=n(34813);let fe=.015;function we(){return{environment:pe.Gu,release:pe.g2,tracesSampleRate:fe,replaysSessionSampleRate:fe,replaysOnErrorSampleRate:1,ignoreErrors:["UET is not defined","static.hotjar.com/c/hotjar"],denyUrls:["addthis_widget.js","chrome-extension://","file:///","gtm.js",/clarity\.js/i,/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/connect\.facebook\.net\/en_US\/sdk\.js/i,/s\.pinimg\.com\/ct/i,/ct\/lib\/main/i,/www\.googletagmanager\.com\//i,/profitwell\.com\//i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/^safari-web-extension:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i],beforeSend(t,e){try{if((0,te.Bp)(t,e))return null}catch(n){(0,te.iJ)(n)}return t}}}function ye(){return console.error("Unable to lazy-load Sentry. Ad blocker?"),this}pe.nI&&(fe=1),pe.Y_&&(fe=0);const be={init:ye,onLoad:ye,configureScope:ye,withScope:ye,captureException:ye,captureMessage:ye,addBreadcrumb:ye,setTag:ye,setExtra:ye,setContext:ye,setFingerprint:ye,setUser:ye,getCurrentScope:ye};function ve(){Ee("Initializing...");const t=(0,ee.b)(window.Sentry);t.init(we()),(0,te.vS)(t);const e=he.I.getItem(I.c.user);if(e){const n=JSON.parse(e);t.setUser(n)}}function ke(){window["__PRERENDER_INJECTED"]?window.Sentry={}:window.Sentry?(window.Sentry.SDK_VERSION?(Ee("Already fully loaded, initializing..."),ve()):Ee("Not fully loaded yet, using limited object."),(0,te.vS)(window.Sentry)):(Ee("Not loaded, using mock."),(0,te.vS)(be)),window.sentryOnLoad=function(){Ee("Run sentryOnLoad"),ve()}}function Ee(...t){window.__UNIT_TESTING||console.log("Sentry:",...t)}var xe=n(4648),Se=n(9343);function Ce(){ge(),ke(),_e(),document.addEventListener("DOMContentLoaded",async function(){(0,Se.KW)(),xe.pageView()})}const Ie={key:0,src:"/img/logo-text.svg",alt:""},Pe={key:1,src:"/img/logo.svg",alt:""};var Le=(0,a.pM)({__name:"Logo",props:{withText:{type:Boolean,default:!1}},setup(t){return(e,n)=>t.withText?((0,a.uX)(),(0,a.CE)("img",Ie)):((0,a.uX)(),(0,a.CE)("img",Pe))}});const De=Le;var Te=De;Ce();const Ae=(0,o.Ef)({router:ue,render:()=>(0,a.h)(l)});Ae.use(ue),Ae.component("Logo",Te),Ae.mount("#appRoot")},9343:function(t,e,n){n.d(e,{Cm:function(){return w},KW:function(){return c},QY:function(){return f},RC:function(){return h}});n(74423),n(62953);var o=n(53212),a=n(46750),i=n(2687),r=n(18987),s=n(28807);async function c(){await u(a.a.new_copy_pdf_v2_13448,"/pdf"),await l(),await d(),await _(),await g(),(0,s.aW)()}async function u(t,e){const n=window.location.pathname,a=n.includes(`/es${e}/`);if(!n.includes(e)||a)return;let r=o.xt(t);null===r&&(r=await o.ni(t)),"yes"===r&&(0,i.P7)(t)}async function l(){const t=r.A.get("X-AB-AI-Guide-Flow-13747"),e=o.xt(a.a.ai_guide_flow_13747);t&&!e&&await o.ni(a.a.ai_guide_flow_13747,t)}async function d(){const t=r.A.get("X-AB-AI-Old-Vs-Pbp-18613"),e=o.xt(a.a.ai_old_vs_pbp_18613);t&&!e&&await o.ni(a.a.ai_old_vs_pbp_18613,t)}const p=[{experiment:a.a.exp_emotional_intelligence_18788,cookieName:"X-AB-Emotional-Intelligence-18788",entryPath:"/lp/emotional-intelligence",controlPath:"/lp/emotional-intelligence-eq"},{experiment:a.a.exp_career_ascension_18788,cookieName:"X-AB-Career-Ascension-18788",entryPath:"/lp/career-ascension",controlPath:"/lp/career-ascension-eq"},{experiment:a.a.exp_intellectual_mastery_18788,cookieName:"X-AB-Intellectual-Mastery-18788",entryPath:"/lp/intellectual-mastery",controlPath:"/lp/intellectual-mastery-eq"},{experiment:a.a.exp_discipline_systems_18788,cookieName:"X-AB-Discipline-Systems-18788",entryPath:"/lp/discipline-systems",controlPath:"/lp/discipline-systems-eq"}];function m(t,e,n){return[e,n].some(e=>t===e||t===`${e}/`)}async function _(){const t=window.location.pathname;for(const e of p){if(!m(t,e.entryPath,e.controlPath))continue;const n=r.A.get(e.cookieName),a=o.xt(e.experiment);n&&!a&&await o.ni(e.experiment,n)}}async function g(){const t=r.A.get("X-AB-Homepage-Hero-Goal-Selector-19253"),e=o.xt(a.a.exp_homepage_hero_goal_selector_19253);t&&!e&&await o.ni(a.a.exp_homepage_hero_goal_selector_19253,t)}function h(){return o.xt(a.a.exp_onboarding_checklist_19055)}
1async function f(){let t=o.xt(a.a.exp_guide_completion_19383);return null===t&&(t=await o.ni(a.a.exp_guide_completion_19383)),t}function w(){return o.xt(a.a.exp_mini_player_19040)}},53212:function(t,e,n){n.d(e,{C_:function(){return m},Mz:function(){return f},ni:function(){return p},rw:function(){return g},xt:function(){return _},zK:function(){return h}});n(18111),n(61701),n(62953);var o=n(43474),a=n(17933),i=n(81864),r=n(53932),s=n(8713),c=n(78848),u=n(88178),l=n(18936),d=(n(18987),n(46750));async function p(t,e=null){try{if(i.Rc)return null;if(u.GO(t))return console.log("Experiment has started already",t),u.Ox(t);const s=u.L2(),c=await r.i.deviceInfo(),p={client_id:s,experiment:t,url:window.location.href,referrer:window.document.referrer,platform:c.platform,os:c.osVersion,variant:e};a.eY()||(p.mixpanel_device_id=(0,l.i7)());const m=a.eY()?"ab/start":"abp/start";let g;try{g=await o.Em.post(m,p)}catch(n){if(n.response&&400===n.response.status){const e=n.response.data;if(f(e,d.B.abStartError))return _(t)}throw n}const h=g.data.data;return s||u.HV(h.client_id),u.cv(t,h.variant),h.variant}catch(n){return c.sQ.captureException(n),null}}function m(t){var e;const n=null===(e=t.ab)||void 0===e?void 0:e.experiments;if(n)for(const[o,a]of Object.entries(n))a&&!u.GO(o)&&u.cv(o,a)}function _(t){return u.Ox(t)}async function g(t=!1){const e=await r.i.deviceInfo(),n={client_id:u.L2(),url:window.location.href,referrer:window.document.referrer,platform:e.platform,os:e.osVersion};return t&&(n["experiments"]=h()),n}function h(){const t={};for(const e in u.DZ()){const n=e;u.GO(e)&&(t[n]=u.Ox(e))}return t}function f(t,e){if(!t.ab)return c.sQ.withScope(n=>{n.setExtra("responseData",t),n.setExtra("hint",e),c.sQ.captureMessage("No A/B data found in response")}),!1;const n=t.ab,o=u.L2();return o&&"undefined"!==o&&o!==n.client_id&&e===d.B.register&&c.sQ.withScope(t=>{t.setExtra("frontendClientId",u.L2()),t.setExtra("frontendExperiments",u.DZ()),t.setExtra("backendData",n),t.setFingerprint(["reset-ab-data-on-signup",e]),c.sQ.captureMessage("Reset A/B client data on signup")}),e===d.B.abStartError&&c.sQ.withScope(t=>{t.setExtra("frontendClientId",u.L2()),t.setExtra("frontendExperiments",u.DZ()),t.setExtra("backendData",n),t.setFingerprint(["reset-ab-data-on-ab-start-error",e]),c.sQ.captureMessage("Reset A/B client data on ab/start error")}),u.HV((0,s.b)(n.client_id)),u.LH(n.experiments),!0}},88178:function(t,e,n){n.d(e,{DZ:function(){return s},GO:function(){return u},HV:function(){return r},L2:function(){return i},LH:function(){return c},Ox:function(){return d},cv:function(){return l}});n(33110),n(58335);var o=n(34813),a=n(6499);function i(){return o.I.getItem(a.c.abCid)}function r(t){o.I.setItem(a.c.abCid,t)}function s(){const t=o.I.getItem(a.c.abData);if(t){const e=JSON.parse(t);return e}return{}}function c(t){o.I.setItem(a.c.abData,JSON.stringify(t))}function u(t){const e=s();return e.hasOwnProperty(t)}function l(t,e){const n=s();n[t]=e,c(n)}function d(t){let e=null;const n=s();return n.hasOwnProperty(t)&&(e=n[t]),e}},46750:function(t,e,n){var o,a;n.d(e,{B:function(){return a},a:function(){return o}}),function(t){t["summary_page_copy_relaunch_4113"]="summary_page_copy_relaunch_4113",t["design_v4_4359"]="design_v4_4359",t["ai_label_13537"]="ai_label_13537",t["google_billing_7517"]="google_billing_7517",t["test_experiment"]="test_experiment",t["backlink_8567"]="backlink_8567",t["new_copy_pdf_v2_13448"]="new_copy_pdf_v2_13448",t["ai_guide_flow_13747"]="ai_guide_flow_13747",t["ai_old_vs_pbp_18613"]="ai_old_vs_pbp_18613",t["bookmarks_14994"]="bookmarks_14994",t["exp_ios_external_link_payment_16218"]="exp_ios_external_link_payment_16218",t["exp_null_experiment_17503"]="exp_null_experiment_17503",t["exp_first_guide_activation_17817"]="exp_first_guide_activation_17817",t["exp_annotator_rewrite_18170"]="exp_annotator_rewrite_18170",t["exp_passwordless_signup_18304"]="exp_passwordless_signup_18304",t["exp_first_launch_want_to_read_18947"]="exp_first_launch_want_to_read_18947",t["exp_trial_by_plan_v2_18369"]="exp_trial_by_plan_v2_18369",t["exp_cancel_save_flow_17977"]="exp_cancel_save_flow_17977",t["exp_emotional_intelligence_18788"]="exp_emotional_intelligence_18788",t["exp_career_ascension_18788"]="exp_career_ascension_18788",t["exp_intellectual_mastery_18788"]="exp_intellectual_mastery_18788",t["exp_discipline_systems_18788"]="exp_discipline_systems_18788",t["exp_monthly_annual_upgrade_flow_19092"]="exp_monthly_annual_upgrade_flow_19092",t["exp_billing_partnership_hesitation_redesign_19142"]="exp_billing_partnership_hesitation_redesign_19142",t["exp_summary_page_pricing_exit_intent_19129"]="exp_summary_page_pricing_exit_intent_19129",t["exp_onboarding_checklist_19055"]="exp_onboarding_checklist_19055",t["exp_billing_momentum_based_checkout_modal_19227"]="exp_billing_momentum_based_checkout_modal_19227",t["exp_return_to_value_backend_19051"]="exp_return_to_value_backend_19051",t["exp_homepage_hero_goal_selector_19253"]="exp_homepage_hero_goal_selector_19253",t["exp_continue_reading_19038"]="exp_continue_reading_19038",t["exp_billing_hesitation_discount_isolation_19530"]="exp_billing_hesitation_discount_isolation_19530",t["exp_trial_details_progress_19984"]="exp_trial_details_progress_19984",t["exp_guide_completion_19383"]="exp_guide_completion_19383",t["exp_n
1ative_billing_page_personalization_20120"]="exp_native_billing_page_personalization_20120",t["exp_mini_player_19040"]="exp_mini_player_19040",t["exp_onboarding_plan_cc_capture_20192"]="exp_onboarding_plan_cc_capture_20192"}(o||(o={})),function(t){t["register"]="register",t["login"]="login",t["passwordReset"]="passwordReset",t["abStartError"]="abStartError",t["updateUserData16218"]="updateUserData"}(a||(a={}))},17933:function(t,e,n){n.d(e,{F6:function(){return p},Fj:function(){return v},Kr:function(){return E},P:function(){return g},TO:function(){return _},_S:function(){return w},eY:function(){return l},gf:function(){return d},hh:function(){return S},lU:function(){return y},wI:function(){return b},wz:function(){return m},xI:function(){return h}});n(16280),n(33110),n(58335),n(62953),n(64979);var o=n(18936),a=n(34813),i=n(78848),r=n(95682),s=n(6499),c=n(79250);const u=[s.c.abCid,s.c.abData,s.c.changelog,s.c.firstPage,s.c.history,s.c.offerGuide,s.c.ref,s.c.refDomain,s.c.questionnairePosition,s.c.questionnaireChoices,s.c.questionnaireBooks,s.c.selectedPlanId20192,s.c.resolvedTitle20192,s.c.upgradePromptPagesVisited,s.c.checklistProgress19055,s.c.checklistIsCollapsed19055,s.c.checklistFirstDoc19055,s.c.guideCompletionPending19383];function l(){return null!==d()}function d(){return a.I.getItem(s.c.authToken)}function p(){const t=d();return t?JSON.parse(atob(t.split(".")[0]))[0]:null}function m(){const t=a.I.getItem(s.c.user);if(t){const e=JSON.parse(t);return e}return null}function _(){const t=m();return t?t.username:null}function g(t){const e=m();if(!e)throw new Error("Can not set username, no user");e.username=t,a.I.setItem(s.c.user,JSON.stringify(e))}function h(t){const e=m();if(!e)throw new Error("Can not set email, no user");e.email=t,a.I.setItem(s.c.user,JSON.stringify(e))}function f(){const t=m();return!!t&&!t.is_limited}function w(){return!f()}function y(t,e){if(k(t)){if(a.I.setItem(s.c.user,JSON.stringify(t)),window["__PRERENDER_INJECTED"])return;if(e)return;try{(0,o.YX)(t)}catch(n){i.sQ.captureException(n)}}}function b(t,e){a.I.setItem(s.c.authToken,t),a.I.setItem(s.c.user,JSON.stringify(e)),a.I.removeItem(s.c.previouslyLogin)}function v(t=!0){l()&&t&&a.I.setItem(s.c.previouslyLogin,"true"),a.I.removeItem(s.c.authToken),a.I.removeItem(s.c.user)}function k(t){const e=m();if(!e)return!0;for(const n in t){if(!(n in e))return!0;if(t[n]!==e[n])return!0}return!1}async function E(){v();try{const{playerSession:t}=await Promise.all([n.e(675),n.e(684),n.e(922),n.e(108)]).then(n.bind(n,18205));await t.value.stop()}catch(e){i.sQ.captureException(e)}const{socialLogout:t}=await Promise.all([n.e(675),n.e(856),n.e(684),n.e(922),n.e(138),n.e(279)]).then(n.bind(n,95366));t();try{await(0,r.bA)(),x()}catch(e){i.sQ.captureException(e)}try{(0,o.ri)()}catch(e){i.sQ.captureException(e)}}function x(){u.forEach(t=>{a.I.removeItem(t)}),"pending"===(0,c.y6)()&&(0,c.l6)()}function S(){const t=m();return t?new Date(t.signup):null}},2147:function(t,e,n){n.d(e,{H:function(){return w}});n(18111),n(22489),n(7588),n(61701),n(13579),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(62953);var o=n(43474),a=n(53212),i=n(17933),r=n(46750),s=n(34813),c=n(6499),u=n(28807),l=n(18936),d=n(4648),p=n(78848),m=n(62695),_=n(69211),g=n(42554),h=n(49752);function f(t){!i.TO()&&t.author.username&&i.P(t.author.username)}const w={system:!1,async getBooks(t){const[e,n]=await Promise.all([o.Em.get("books/",{signal:t}),this.getExperimentAiGuide13747()]),a=e.data.data;if(n){const t=a.findIndex(t=>t.url_slug===n.url_slug);-1!==t&&(a[t]=n)}return{...e.data,data:a}},async getOwnedBookIds(){const t=await o.Em.get("books/owned/ids"),e=new Set;for(const n of t.data.data)e.add(n.doc_id);return e},async getCollectionBooks(t){const e=await o.Em.get(`collections/${t}`),n=e.data.data,a=n.docs;delete n.docs;const i=n;return{data:a,collection:i}},async getBooksWithRecommendations(){const[t,e]=await Promise.all([this.getBooks(),this.getRecommendations()]),n=t.data;return{data:this.addRecommendations(n,e),tags:t.tags}},async getLatestPopularBooks(){const t=await o.Em.get("books/latest_popular");return t.data.data},async getBook(t,e){const n=await o.Em.get(`books/${t}`,{...this.headers(),signal:e});return n.data.data},async getCompletionPopupData(t,e){const n=await o.Em.get(`books/${t}/completion`,{signal:e});return n.data.data},async getBookCollections(){const t=await o.Em.get("collections/");return t.data.data},async getBookOfTheDay(){const t=await o.Em.get("books/book-of-the-day");return t.data},async getExperimentAiGuide13747(){const t=await o.Em.get("books/experiment/ai-guide");return t.data.data},async getExperimentFirstGuide(){const t=await o.Em.get("books/experiment/first-guide");return t.data.data},async getDocExportStats(t){const e=await o.Em.get(`doc_export_stats/${t}`);return e.data.data},async getPdfContent(t,e){const n=await o.Em.get(`pdf_content/${t}/${e}`,this.headers());return n.data.data},async getArticles(t){const e=await o.Em.get("articles/",{signal:t});return e.data},async getTags(){const t=await o.Em.get("books/tags?min_docs=3");return t.data},async getBookTags(){const t=await o.Em.get("books/tags");return t.data.data.map(t=>t.name)},async getQuestionnaireTags(){const t=await o.Em.get("questionnaire/tags");return t.data},async getBooksByTags(t){const e=await o.Em.post("questionnaire/popular_books_by_tags",{tags:t});return e.data},async saveQuestionnaire(t){await o.Em.post("questionnaire/long/save",{choices:{...t}})}
1,async initializeFirstLaunchReadingList(){const t=await o.Em.post("questionnaire/long/initialize-reading-list");return t.data.did_initialize},async getArticle(t){const e=await o.Em.get(`articles/${t}`);return e.data.data},async getPublicArticle(t){const e=await o.Em.get(`pages/articles/${t}`);return e.data.data},async getPublicBook(t){const e=await o.Em.get(`pages/books/${t}`);return e.data.data},async getPublicBooks(){const t=await o.Em.post("pages/books/");return t.data.data},async getPublicBookPdf(t){const e=await o.Em.get(`pages/pdf/${t}`);return e.data.data},async getPodcasts(t){const e=await o.Em.get("podcasts/",{signal:t});return e.data.data},async getPublicPodcasts(){const t=await o.Em.post("pages/podcasts/");return t.data.data},async getPublicPodcast(t){const e=await o.Em.post(`pages/podcasts/${t}`);return e.data.data},async getFollowedPodcastEpisodes(){const t=await o.Em.get("podcasts/episodes/followed");return t.data.data},async getPodcast(t){const e=await o.Em.get(`podcasts/${t}`);return e.data.data},async getDocSearch(t,e="",n=20,a=0,i){e=await(0,_.Sj)(e);const r=await o.Em.get("search",{params:{term:e,doc_type:t,limit:n,offset:a},signal:i});return r.data},async getPodcastSearch(t="",e=20,n=0){t=await(0,_.Sj)(t);const a=await o.Em.get("podcasts/search",{params:{term:t,limit:e,offset:n}});return a.data.data},async getPublicPodcastEpisode(t){const e=await o.Em.get(`pages/podcast_episodes/${t}`);return e.data.data},async getPodcastEpisode(t,e){const n=await o.Em.get(`podcasts/episodes/${t}`,{signal:e});return n.data.data},async follow(t){const e=await o.Em.post(`doc_group/follow/${t}`);return e.data.data},async unfollow(t){const e=await o.Em.post(`doc_group/unfollow/${t}`);return e.data.data},async getPublicHighlight(t){const e=await o.Em.get(`highlights/public/${t}`);return e.data.data},async getHighlight(t){const e=await o.Em.get(`highlights/${t}`);return e.data.data},async saveExercise(t,e){const n=await o.Em.post("workouts/",e),a=n.data.data;try{var i;if(d.trackExerciseSave(t,a),a.submitted_at)null===(i=(0,h.D4)())||void 0===i||i.steps.highlight_idea.addProgress(1)}catch(r){p.sQ.captureException(r)}return a},async discussExercise(t,e){const n=await o.Em.get(`workouts/${e.id}/discuss`),a=n.data.data;try{d.trackExerciseDiscuss(t,e)}catch(i){p.sQ.captureException(i)}return a},async getForum(t){const e=await o.Em.get(`forums/${t}`);return e.data.data},async updateForumNotifyNewThread(t,e,n){const a=await o.Em.post(`forums/${t}/notify_new_thread`,{active:e});return d.trackNotifyNewThreadsToggle(e,n),a.data.data},async getThread(t){const e=await o.Em.get(`threads/${t}`);return e.data.data},async updateThreadNotifyNewComment(t,e,n){const a=await o.Em.post(`threads/${t.url_slug}/notify_new_comment`,{active:n});return d.trackNotifyNewCommentsToggle(n,e,t),a.data.data},async saveThread(t,e){let n;if(e.id){n=await o.Em.post(`threads/${e.url_slug}`,{title:e.title,text:e.text,username:e.username});try{d.trackThreadUpdate(t,n.data.data)}catch(i){p.sQ.captureException(i)}}else{n=await o.Em.post(`forums/${t.forum_id}`,{title:e.title,text:e.text,user_workout_id:e.user_workout_id,username:e.username});try{d.trackThreadCreate(t,n.data.data)}catch(i){p.sQ.captureException(i)}}const a=n.data.data;return f(a),a},async saveComment(t,e,n){const a=await o.Em.post(`threads/${e.url_slug}/comments`,{text:n.text,username:n.username}),i=a.data.data;try{d.trackCommentCreate(t,e,i)}catch(r){p.sQ.captureException(r)}return f(i),i},async saveReply(t,e,n,a){const i=await o.Em.post(`comments/${n.id}/comments`,{text:a.text,username:a.username}),r=i.data.data;try{d.trackReplyCreate(t,e,n,r)}catch(s){p.sQ.captureException(s)}return f(r),r},async getBilling(){const t=await o.Em.get("billing/");return t.data.data},async getSummaryPricing(){const t=await o.Em.get("billing/summary-pricing");return t.data.data},async trackBillingFirstView(){await o.Em.post("billing/first-view")},async saveCancelFlowAnswer(t,e){await o.Em.post("users/cancel_flow",{reason:t,feedback:e})},async registerCancelDiscount(){const t=await o.Em.post("billing/register_cancel_discount");return t.data.data.cancel_discount_registered},async applyCancelDiscount(){const t=await o.Em.post("billing/apply_cancel_discount");return t.data.data},async applyCancelDiscountPaidUser(){const t=await o.Em.post("billing/apply_cancel_discount_paid_user");return t.data.data},async applyHesitationDiscount(){const t=await o.Em.post("billing/hesitation-discount");return t.data.data},async subscribe(t){const e=await o.Em.post("billing/subscribe",t),n=e.data.data;return n},async cancelTrial(){const t=await o.Em.post("billing/trial/cancel"),e=t.data.data;try{d.trackCancelTrial(e)}catch(n){p.sQ.captureException(n)}return e},async savePaymentMethod(t){t.mixpanel_data=await d.getCardSaveData();const e=await o.Em.post("billing/setup-intent",t),n=e.data.data;return d.trackCardSave(n),n},async getSetupIntent(){const t=await o.Em.get("billing/setup-intent");return t.data},async cancelSetupIntent(t){const e=await o.Em.post("billing/setup-intent/cancel",{id:t.id});return e.data},async createHighlight(t,e){const n=await o.Em.post(`/highlights/${t.id}`,e),a=n.data.data;try{var i;d.trackHighlightCreate(t,a),null===(i=(0,h.D4)())||void 0===i||i.steps.highlight_idea.addProgress(1)}catch(r){p.sQ.captureException(r)}return m.t.sendOne(a.readwise_token,{...a,content:t}),this.sendToNotion(a.notion_database_id,a.notion_integration_token,t,e).catch(t=>{const e=t.response.data.errors._schema[0];"Error exporting to Notion"===e?p.sQ.captureException(e):p.sQ.withScope(function(t){t.setFingerprint(["expected-notion-error"]),p.sQ.captureException(e)})}),a},async updateHighlight(t,e){const n=await o.Em.post(`/highlights/${t.id}/${e.id}`,e),a=n.data.data;try{d.trackHighlightUpdate(t,a)}catch(i){p.sQ.captureException(i)}return m.t.sendOne(a.readwise_token,{...a,content:t}),a},async updateHighlightNote(t){const e=await o.Em.patch(`/highlights/${t.contentId}/${t.id}`,{text:t.text}),n=e.data.data;
1return m.t.sendOne(n.readwise_token,{...n,content:t.content}),n},async deleteHighlight(t,e){const n=await o.Em.delete(`/highlights/${t.id}/${e.id}`),a=n.data.data;try{d.trackHighlightDelete(t,a)}catch(i){p.sQ.captureException(i)}return a},async shareHighlight(t,e){const n=await o.Em.post(`/highlights/share/${t.id}/${e.id}`,e),a=n.data.data;try{d.trackHighlightShare(t,a)}catch(i){p.sQ.captureException(i)}return a},async getHighlights(){const t=await o.Em.get("/highlights/");return t.data.data},async getHighlightsGrouped(){const t=await o.Em.get("/highlights/grouped");return t.data.data},async saveProgress(t){const e=await o.Em.post(`/home/progress/${t.id}`);return e.data.data},async addToReadingNow(t){const e=await o.Em.post(`/home/reading_now/${t.id}`);return e.data.data},async completeAndSaveProgress(t){const e=await o.Em.post(`/home/progress/complete/${t.id}`);return e.data.data},async resetBookProgress(t){const e=await o.Em.post(`/home/progress/reset/${t}`);return e.data.data},async saveReadingPosition(t,e){const n=await o.Em.post("/home/position",{position_chapter:t.id,position_percent:e});return a.C_(n.data),n.data.data},async saveAudioPosition(t,e){await o.Em.post("/home/audio_progress",{doc_id:t.id,audio_position:e})},async updateReadingStreak(t){const e=(0,g.i)(new Date(Date.now())),n=Math.ceil(t/1e3),a=await o.Em.post("streaks/progress",{local_date:e,seconds:n});return a.data},async getHomeArticles(){const t=await o.Em.get("/home/articles/");return t.data},async getNewReleases(){const t=await o.Em.get("/home/new_releases");return t.data},async moveBookToList(t,e){const n=await o.Em.post(`/home/move/${t.id}/${e}`);return d.trackMoveBookToList(t,e),n.data.data},async favorite(t){var e;const n=await o.Em.post(`/home/favorite/${t.id}`),a=n.data.data;return d.trackFavorite(t,!0),null===(e=(0,h.D4)())||void 0===e||e.steps.save_three.addProgress(1),a},async unfavorite(t){const e=await o.Em.post(`/home/unfavorite/${t.id}`);return d.trackFavorite(t,!1),e.data.data},async getReadwiseToken(){const t=await o.Em.get("/export/readwise/token");return t.data.data},async saveReadwiseToken(t){await o.Em.post("export/readwise/on",t)},async removeReadwiseToken(){await o.Em.post("export/readwise/off")},async getNotionCredentials(){const t=await o.Em.get("/export/notion/credentials");return t.data.data},async saveNotionCredentials(t){await o.Em.post("export/notion/on",t,{timeout:0})},async removeNotionCredentials(){await o.Em.post("export/notion/off")},async sendToNotion(t,e,n,a){null!==t&&null!==e&&await o.Em.post(`export/notion/highlights/${n.id}`,a)},async sendToKindle(t,e){await o.Em.get(`kindle_export/${t}?kindle_email=${encodeURIComponent(e)}`)},async getReviewInfo(t,e){const n=await o.Em.get("/home/review",{params:{platform:t,app_version:e}});return n.data},async saveReviewInfo(t,e){await o.Em.post("/home/review",{platform:t,app_version:e})},async prepareNewUserData(){const t=await a.rw(!0),e=s.I.getItem(c.c.firstPage)||"",n=s.I.getItem(c.c.marketingUrl)||"",o={device_id:(0,l.i7)(),to_track:{...await(0,l.hz)(),...(0,l.Kn)()},to_set:await(0,l.Wp)()},i={ab:t,first_url:e,marketing_url:n,cookies:document.cookie?document.cookie:"",mixpanel_data:o};return i},async facebookLoginOrRegister(t){const e=await this.prepareNewUserData(),n={...t,...e},a=await o.Em.post("auth/facebook",n,{withCredentials:!0});return this.checkAbResponse(a),a.data.data},async appleLoginOrRegister(t){const e=await this.prepareNewUserData(),n={...t,...e},a=await o.Em.post("auth/apple",n,{withCredentials:!0});return this.checkAbResponse(a),a.data.data},async googleLoginOrRegister(t,e=!1){const n=await this.prepareNewUserData(),a={...t,...n},i=e?"auth/google/ios":"auth/google",r=await o.Em.post(i,a,{withCredentials:!0});return this.checkAbResponse(r),r.data.data},async register(t){const e=await this.prepareNewUserData(),n={...t,...e,full_name:void 0},a=await o.Em.post("auth/register",n,{withCredentials:!0});return this.checkAbResponse(a,r.B.register),a.data.data},headers(){return!0===this.system?{headers:{"X-SF-SYSTEM-USER":"1"}}:{}},checkAbResponse(t,e=null){try{if(!e){const n=t.data.data;e="login"===n.auth_type?r.B.login:r.B.register}a.Mz(t.data,e),u.aW()}catch(n){p.sQ.captureException(n)}},async login(t,e=!1){this.system=e;const n=await o.Em.post("auth/token",{email:t.email,password:t.password},this.headers());return this.checkAbResponse(n,r.B.login),n.data.data},async logout(){await o.Em.post("auth/logout"),await(0,i.Kr)()},async forgotPassword(t){await o.Em.post("auth/password/reset",{email:t.email});try{d.forgotPassword()}catch(e){p.sQ.captureException(e)}},async getEmailForPasswordReset(t){const e=encodeURIComponent(t),n=await o.Em.get(`auth/password/reset/parse_token?reset_token=${e}`);return n.data.data.email},async resetPassword(t){const e=await o.Em.post("auth/password/reset/confirm",t);try{d.resetPassword()}catch(s){p.sQ.captureException(s)}const n=e.data.data;i.wI(n.token,n.user);try{a.Mz(e.data,r.B.passwordReset),u.aW()}catch(s){p.sQ.captureException(s)}return n.user},async changeEmail(t){const e=await o.Em.post("users/change_email",t),n={email:e.data.email};(0,i.xI)(n.email)}
1,async sendSupportRequest(t,e){await o.Em.post("users/support",{subject:t,body:e})},async changePassword(t){const e=await o.Em.post("users/change_password",t),n=e.data.data;i.wI(n.token,n.user)},async getTrustpilotId(){const t=await o.Em.get("/home/trustpilot_review");return t.data.id},async setTrustpilotSubmitted(){await o.Em.post("/home/trustpilot_review")},async getRecommendations(){const t=await o.Em.get("recommendations/");return t.data.data},async createToken(t){await o.Em.post("push_registration_tokens/",{token:t})},async deleteToken(t){await o.Em.delete(`push_registration_tokens/${t}`)},async getNotificationSettings(){const t=await o.Em.get("notification_settings/");return t.data},async putNotificationSettings(t){const e=await o.Em.put("notification_settings/",t);return e.data},async updateUserData(){const t=await o.Em.get("users/me/data"),e=t.data.metadata.user;return this.checkAbResponse(t,r.B.updateUserData16218),e},async getAccountStatus(){const t=await o.Em.get("users/me");return t.data},async getAccountStatusByDeleteToken(t){const e=encodeURIComponent(t),n=await o.Em.get(`users/me/token?delete_token=${e}`);return n.data},async requestAccountDeletion(){await o.Em.post("users/delete"),d.trackAccountDeleteRequest()},async confirmAccountDeletion(t){await o.Em.post("users/delete/confirm",{delete_token:t}),await d.trackAccountDeleteConfim()},async markPlanChange(){return await o.Em.post("billing/plan-change")},async postReceipt(t,e){const n="ios"===t?"billing/apple/receipt":"billing/google/receipt",a=e;return a.mixpanel_data=await d.getCardSaveData(),await o.Em.post(n,a)},async setGa4ClientId(t){return await o.Em.post("users/ga4_client_id",{ga4_client_id:t})},async setAdjustData(t){if(Object.values(t).some(t=>t))return await o.Em.post("users/set_adjust_data",t)},async getExcerpt(){const t=await o.Em.get("excerpt/");return t.data.data},async getExcerptById(t){const e=await o.Em.get(`excerpt/${t}`);return e.data.data},async trackExcerptClick(t){await o.Em.post("excerpt/track",{id:t.id})},async getUserDocs(){const t=await o.Em.get("home/docs");return t.data},async getDocsUserData(){const t=await o.Em.get("home/docs/user");return t.data.data},async getDocUserData(t,e){const n=await o.Em.get(`home/docs/${t}/user`,{signal:e});return n.data.data},async getLatestDoc(){const t=await o.Em.get("home/docs/latest");return t.data.data},addRecommendations(t,e){if(e&&0!==e.length){const n=Object.fromEntries(e.map(({book_id:t,rank:e})=>[t,e])),o=1e3;t.forEach(t=>{var e;t.rank=null!==(e=n[t.id])&&void 0!==e?e:o})}return t},async getUserBooksWithRecommendations(){const[t,e]=await Promise.all([this.getUserDocs(),this.getRecommendations()]),n=t.filter(t=>"book"===t.doc_type);return{data:this.addRecommendations(n,e)}},async getChangelogUnreadCount(){const t=await o.Em.get("changelog/unread_count");return t.data.data.unread_count},async getChangelog(){const t=await o.Em.get("changelog/");return t.data.data},async markReadChangelog(t){await o.Em.post(`changelog/${t}/mark_read`)},async addToWantToRead(t){var e;const n=await o.Em.post(`custom_lists/manage_doc_lists/${t.id}`,{"want-to-read":!0});return null===(e=(0,h.D4)())||void 0===e||e.steps.save_three.addProgress(1),n.data.data},async removeFromWantToRead(t){const e=await o.Em.post(`custom_lists/manage_doc_lists/${t.id}`,{"want-to-read":!1});return e.data.data},async updateCustomLists(t,e){const n=await o.Em.post(`custom_lists/manage_doc_lists/${t.id}`,e);return n.data.data},async getCustomLists(){const t=await o.Em.get("custom_lists/");return t.data.data},async getCustomList(t){const e=await o.Em.get(`custom_lists/${t}`);return e.data.data},async getCustomListDocs(t){const e=await this.getCustomList(t),{docs:n,...o}=e;return{data:n,list:o}},async createCustomList(t,e){const n=await o.Em.post("custom_lists/create",{title:t,doc_ids:null===e||void 0===e?void 0:e.docIds,doc_url_slugs:null===e||void 0===e?void 0:e.docUrlSlugs});return n.data.data},async renameCustomList(t,e){const n=await o.Em.post(`custom_lists/modify/${t.url_slug}`,{title:e});return n.data.data},async deleteCustomList(t){await o.Em.delete(`custom_lists/${t.url_slug}`)},async getChecklistProgress19055(){try{const t=await o.Em.get("users/checklist");return t.data}catch(e){var t;if(404!==(null===(t=e.response)||void 0===t?void 0:t.status))throw e}},async saveChecklistProgress19055(t){await o.Em.post("users/checklist",t)}}},46161:function(t,e,n){n.d(e,{P:function(){return a}});var o=n(27380);const a=(0,o.A)()},6409:function(t,e,n){n.d(e,{qq:function(){return r}});n(44114),n(18111),n(22489),n(20116),n(18237);var o=n(50953);const a=5e3;class i{constructor(){this._state=(0,o.Kh)({notifications:[]})}get notifications(){return this._state.notifications}_generateId(t,e){const n=`${t||""}-${e||""}`;return Math.abs(n.split("").reduce((t,e)=>(t<<5)-t+e.charCodeAt(0),0))}_dismissActiveDismissibleNotification(){this._state.notifications=this._state.notifications.filter(t=>!1===t.dismissible)}_show(t){const e=this._generateId(t.title,t.message),n=this._state.notifications.find(t=>
1t.id===e);if(n)return n.id;const o={id:e,dismissible:!0,duration:a,...t};return this._dismissActiveDismissibleNotification(),this._state.notifications.push(o),o.duration>0&&!1!==o.dismissible&&setTimeout(()=>{this.dismiss(e)},o.duration),e}dismiss(t){const e=this._state.notifications.findIndex(e=>e.id===t);e>-1&&this._state.notifications.splice(e,1)}success(t){return this._show({variant:"success",...t})}error(t){return this._show({variant:"error",...t})}warning(t){return this._show({variant:"warning",...t})}info(t){return this._show({variant:"info",...t})}unique(t){return this._show({variant:"unique",...t})}clearAll(){this._state.notifications=[]}}const r=new i},32496:function(t,e,n){n.d(e,{W:function(){return a}});class o{constructor(){this.isOnline=!0,this.isOffline=!1,navigator&&navigator.onLine?this.isOnline=!0:this.isOffline=!0;const t=()=>{this.isOnline=!0,this.isOffline=!1},e=()=>{this.isOffline=!0,this.isOnline=!1};window.addEventListener("online",t),window.addEventListener("offline",e),this._removeListeners=()=>{window.removeEventListener("online",t),window.removeEventListener("offline",e)}}shutdown(){this._removeListeners&&this._removeListeners()}}const a=new o},21474:function(t,e,n){n.d(e,{g:function(){return m}});var o=n(94348),a=n(86985),i=n(13315),r=(n(52315),n(81622),n(89017)),s=n(34813),c=n(6499),u=n(78848),l=n(8713);const d="unknown",p={App:{getInfo:()=>Promise.resolve({name:"shortform",id:"mock",build:"mock",version:"mock"})},Device:{getInfo:t=>Promise.resolve({name:"mock",model:"mock",platform:t,operatingSystem:d,osVersion:"mock",manufacturer:"mock",isVirtual:!1,memUsed:0,diskFree:1e4,diskTotal:1e4,webViewVersion:"mock"}),getId:()=>Promise.resolve({identifier:"web"})}};r.DeviceWeb.prototype.getUid=function(){if("undefined"!==typeof window){let t=s.I.getItem(c.c.capacitorUid);return t||(t=this.uuid4(),s.I.setItem(c.c.capacitorUid,t),t)}return this.uuid4()};const m={_appInfo:null,_deviceInfo:null,_deviceId:null,async init(){try{this._deviceId=await i.p.getId(),this._deviceInfo=await i.p.getInfo(),"web"!==this._deviceInfo.platform?this._appInfo=await o.q.getInfo():this._appInfo={name:"shortform",id:"web",build:"web",version:"web"}}catch(t){let e="web";t.message&&(-1!==t.message.indexOf("not implemented on ios")&&(e="ios"),-1!==t.message.indexOf("not implemented on android")&&(e="android")),u.sQ.captureException(t),this._appInfo=await p.App.getInfo(),this._deviceId=await p.Device.getId(),this._deviceInfo=await p.Device.getInfo(e)}},get platform(){return(0,l.b)(this._deviceInfo).platform},get model(){return(0,l.b)(this._deviceInfo).model},get osVersion(){return(0,l.b)(this._deviceInfo).osVersion},get appVersion(){return(0,l.b)(this._appInfo).version},get appBuild(){const t=(0,l.b)(this._appInfo).build;return parseInt(t)},async openUrl(t){try{await a.P.open({url:t})}catch(e){u.sQ.captureException(e),window.open(t)}}}},53932:function(t,e,n){n.d(e,{i:function(){return r}});var o=n(21474),a=n(8713),i=n(81864);const r={_data:null,async init(){return null===this._data&&(await o.g.init(),this._data=o.g),new Promise(t=>{t((0,a.b)(this._data))})},async deviceInfo(){const t=await this.init();return t},async isNativeIOSApp(){const t=await this.deviceInfo();return"ios"===t.platform},async isNativeAndroidApp(){const t=await this.deviceInfo();return"android"===t.platform},async isNativeApp(){const t=await this.deviceInfo();return"android"===t.platform||"ios"===t.platform},async isIOS(){var t;const e=await this.deviceInfo();return"ios"===(null===(t=e._deviceInfo)||void 0===t?void 0:t.operatingSystem)},async isAndroid(){var t;const e=await this.deviceInfo();return"android"===(null===(t=e._deviceInfo)||void 0===t?void 0:t.operatingSystem)},isMobileWidth(){return window.innerWidth<=i.kJ},isMediumWidth(){return window.innerWidth<=i.Lt},isTabletWidth(){return window.innerWidth>i.kJ&&window.innerWidth<=i.cO},isDesktopWidth(){return window.innerWidth>i.cO},isTouchScreen(){return window.matchMedia("(hover: none)").matches||window.matchMedia("(pointer: coarse)").matches},async openUrl(t){await this._data.openUrl(t)},async appVersion(){const t=await this.deviceInfo();return t.appVersion},async appBuild(){const t=await this.deviceInfo();return t.appBuild}}},62695:function(t,e,n){n.d(e,{t:function(){return p}});n(44114),n(18111),n(7588);var o=n(2147),a=n(73811),i=n(42894),r=n(78848);const s=6e4,c=50;var u=n(81864);class l{constructor(){this._axios=a.A.create({baseURL:"https://readwise.io/api/v2/",timeout:s,headers:{"Content-Type":"application/json"}})}async _post(t,e,n){try{return await this._axios.post(e,n,{headers:{Authorization:`Token ${t}`}})}catch(o){throw(0,i.V)(o,()=>!1),r.sQ.captureMessage("Readwise Error"),o}}async send(t,e){e.forEach(t=>{t.text=t.text.substring(0,u.vb),t.note&&(t.note=t.note.substring(0,u.vb))}),await this._post(t,"highlights/",{highlights:e})}}var d=n(47555);const p={_api:new l,async getToken(){return(await o.H.getReadwiseToken()).readwise_token},async _send(t,e,n=c){const o=[];e.forEach(t=>{const e={text:t.quote,title:this._highlightTitle(t),author:"Shortform",source_type:"shortform",highlighted_at:t.created,highlight_url:`https://www.shortform.com/app/highlights/${t.id}`};t.cover_image&&(e.image_url=`https:${t.cover_image}`),t.text.trim()&&(e["note"]=t.text),"book"===t.doc_type&&(e["category"]="books"),"article"===t.doc_type&&(e["category"]="articles"),e.text&&o.push(e)});const a=[];for(let i=0;i<o.length;i+=n)a.push(o.slice(i,i+n));for(let i=0;i<a.length;i++)await this._api.send(t,a[i])},_highlightTitle(t){return"Shortform"===t.author?t.docTitle:`${t.docTitle} by ${t.author} | Shortform Guide`},async disableIntegration(){await o.H.removeReadwiseToken()},async enableAndExportAll(t){const e=(0,d.d)(await o.H.getHighlights());await this._send(t,e),await o.H.saveReadwiseToken({readwise_token:t})},async sendOne(t,e){if(t)try{await this._send(t,(0,d.d)([e]))}catch(n){if(!n.isAxiosError)throw n}}}},43474:function(t,e,n){n.d(e,{Em:function(){return d}});n(25440);var o=n(73811),a=n(81864),i=n(17933),r=n(42894);let s=a.fn;s.startsWith("http://localhost")&&"127.0.0.1"!==window.location.hostname&&(s=s.replace("localhost",window.location.hostname));const c=s+"/api/";class u{constructor(t,e){this._axios=o.A.create({baseURL:t,timeout:e,headers:{"Content-Type":"application/json","X-Sf-Client":a.hl}}),this._axios.interceptors.request.use(t=>this._addAuth(t)),this._axios.interceptors.response.use(t=>(t.data&&this._updateAuthMetadata(t),t),t=>{try{t.response&&401===t.response.status&&i.Fj(),this._logError(t)}catch(e){console.log(e)}return Promise.reject(t)})}async get(t,e){return await this._axios.get(t,e)}async post(t,e,n){return await this._axios.post(t,e,n)}async put(t,e,n){return await this._axios.put(t,e,n)}async patch(t,e,n){return await this._axios.patch(t,e,n)}async delete(t,e){return await this._axios.delete(t,e)}_updateAuthMetadata(t){var e;const n=t.data.metadata,o="register"===(null===(e=t.data.data)||void 0===e?void 0:e.auth_type);n&&n.user&&i.lU(n.user,o)}_addAuth(t){const e=i.gf();return e&&(t.auth={username:e,password:""}),t}_skipError(t,e){const n=e.data,o=t.url;return!("billing/card"!==o||400!==e.status||!n.errors||!n.errors.card)||("workouts/"===o&&400===e.status||("ab/start"===o&&400===e.status||"abp/start"===o&&400===e.status))}_logError(t){(0,r.V)(t,this._skipError)}}const l=parseInt(a.$E,10),d=new u(c,l)},78848:function(t,e,n){n.d(e,{Bp:function(){return s},iJ:function(){return c},sQ:function(){return i},vS:function(){return r}});var o=n(81864),a=n(16145);let i;function r(t){return i=t,i}function s(t,e){const n=t.exception&&e.originalException&&"string"!==typeof e.originalException;if(t.contexts||(t.contexts={}),t.contexts["SF: APP INFO"]={AppVersion:o.hl,HasError:n},n){const n=e.originalException;if(!0===n.isAxiosError&&n.request){const e=n.request.status,o=n.config?`${n.config.method}`.toUpperCase():"no config",i=n.config&&n.config.url||"",r=0===e,s=(0,a.cn)(i);401===e?t.fingerprint=["auth-wrong-credentials-error"]:r||(t.fingerprint=[o,s,e])}}return!!o.Y_&&(window["__UNIT_TESTING"]?(console.error("Sentry Local in unit-tests"),console.error(t),!0):(console.log("Sentry Local",t),!0))}function c(t){i.withScope(e=>{e.setContext("SF: Message",{message:"Error in skipEvent handler"}),i.captureException(t)})}},69211:function(t,e,n){n.d(e,{Sj:function(){return c}});n(74423),n(25440),n(62953);var o=n(81864);const a="en";o.sB;function i(t){return!!t&&o.sB.includes(t)}function r(){const t=window.Weglot;if(!t||!t.initialized)return!1;const e=t.getCurrentLang(),n=i(e)&&e!==t.options.language_from;return n}
1async function s(t){return new Promise((e,n)=>{Weglot.search(t,t=>{t?e(t):n("Translation failed")})})}async function c(t){return t&&r()&&(t=await s(t)),t}},2687:function(t,e,n){n.d(e,{P7:function(){return o}});n(74423),n(18111),n(7588),n(25440);function o(){i(a)}const a={"ab-13448-read-full-summary":"Read the full summary at Shortform.","ab-13448-pdf-yellow-box-paragraph":"Shortform summaries help you learn faster and better by:","ab-13448-pdf-yellow-box-list-1":"Being 100% clear and logical: you <strong> learn the book's best ideas</strong>","ab-13448-pdf-yellow-box-list-2":"<strong>Expanding your mind</strong>: we analyze the world's best authors","ab-13448-pdf-yellow-box-list-3":"Taking the book <strong>from idea to action</strong> with exercises and discussions","ab-13448-pdf-why-best-subtitle":"We're the most effective way to learn the ideas in a book and gain new insights.","ab-13448-best-items-red-title":"Crystal-Clear Logic","ab-13448-best-items-red-paragraph-1":"We take confusing ideas and explain them in plain and simple ways. Never get confused by a complicated book again.","ab-13448-best-items-red-paragraph-2":"","ab-13448-best-items-green-title":"Brilliant New Insights","ab-13448-best-items-green-paragraph-1":"We add smart original analysis, connecting ideas in novel ways and discussing key updates since the book was published.","ab-13448-best-items-green-paragraph-2":"","ab-13448-best-items-blue-title":"Always Concise","ab-13448-best-items-blue-paragraph-1":"Your time is valuable, and we don't waste it. We write with zero fluff, making every word and sentence deserve your time.","ab-13448-best-items-blue-paragraph-2":"","ab-13448-pdf-header-title":"Book Summary: Learn the book's ideas better than ever.","ab-13448-pdf-header-title-short":"Learn the book's ideas better than ever.","ab-13448-pdf-what-readers-say":" This is the best summary of book.title I've ever read. The way you explained the ideas and connected them to other books was amazing."};function i(t){const e=document.querySelector(".ab-13448-doc-title"),n=e&&e.textContent||"";Object.keys(t).forEach(e=>{const o=document.querySelector("."+e);if(o&&e in t){let a=t[e];a.includes("book.title")&&n&&(a=a.replace("book.title",n)),a.includes("<strong>")||a.includes("<em>")?o.classList.contains("ab-13448-applied")||(o.classList.add("ab-13448-applied"),o.innerHTML=a):o.textContent=a}})}}},e={};function n(o){var a=e[o];if(void 0!==a)return a.exports;var i=e[o]={exports:{}};return t[o].call(i.exports,i,i.exports,n),i.exports}n.m=t,function(){var t=[];n.O=function(e,o,a,i){if(!o){var r=1/0;for(l=0;l<t.length;l++){o=t[l][0],a=t[l][1],i=t[l][2];for(var s=!0,c=0;c<o.length;c++)(!1&i||r>=i)&&Object.keys(n.O).every(function(t){return n.O[t](o[c])})?o.splice(c--,1):(s=!1,i<r&&(r=i));if(s){t.splice(l--,1);var u=a();void 0!==u&&(e=u)}}return e}i=i||0;for(var l=t.length;l>0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[o,a,i]}}(),function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})}}(),function(){n.f={},n.e=function(t){return Promise.all(Object.keys(n.f).reduce(function(e,o){return n.f[o](t,e),e},[]))}}(),function(){n.u=function(t){return"js/"+t+"."+{108:"6699f52f",138:"e750d0ca",174:"eb39d0ff",279:"d6dc0332",410:"3694dc9c",543:"71de3e61",675:"906e6684",684:"6c521ed0",856:"0ba9ae7d",922:"7d482e30"}[t]+".js"}}(),function(){n.miniCssF=function(t){}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="shortform:";n.l=function(o,a,i,r){if(t[o])t[o].push(a);else{var s,c;if(void 0!==i)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==o||d.getAttribute("data-webpack")==e+i){s=d;break}}s||(c=!0,s=document.createElement("script"),s.charset="utf-8",n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",e+i),s.src=o),t[o]=[a];var p=function(e,n){s.onerror=s.onload=null,clearTimeout(m);var a=t[o];if(delete t[o],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach(function(t){return t(n)}),e)return e(n)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),c&&document.head.appendChild(s)}}}(),function(){n.j=275}(),function(){n.p="/"}(),function(){var t={275:0};n.f.j=function(e,o){var a=n.o(t,e)?t[e]:void 0;if(0!==a)if(a)o.push(a[2]);else{var i=new Promise(function(n,o){a=t[e]=[n,o]});o.push(a[2]=i);
1var r=n.p+n.u(e),s=new Error,c=function(o){if(n.o(t,e)&&(a=t[e],0!==a&&(t[e]=void 0),a)){var i=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;s.message="Loading chunk "+e+" failed.\n("+i+": "+r+")",s.name="ChunkLoadError",s.type=i,s.request=r,a[1](s)}};n.l(r,c,"chunk-"+e,e)}},n.O.j=function(e){return 0===t[e]};var e=function(e,o){var a,i,r=o[0],s=o[1],c=o[2],u=0;if(r.some(function(e){return 0!==t[e]})){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(c)var l=c(n)}for(e&&e(o);u<r.length;u++)i=r[u],n.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return n.O(l)},o=self["webpackChunkshortform"]=self["webpackChunkshortform"]||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))}();var o=n.O(void 0,[233],function(){return n(27120)});o=n.O(o)})();
2//# sourceMappingURL=article.ca2be81d.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.