(self.webpackChunklite=self.webpackChunklite||[]).push([[4391],{95320:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var i,a=t(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";t.d(n,{A:()=>l});var i,a=t(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";t.d(n,{A:()=>l});var i,a=t(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";t.d(n,{A:()=>l});var i,a=t(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";t.d(n,{A:()=>l});var i,a=t(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n{var i=t(96131);e.exports=function(e,n){return!(null==e||!e.length)&&i(e,n,0)>-1}},29905:e=>{e.exports=function(e,n,t){for(var i=-1,a=null==e?0:e.length;++i{e.exports=function(e,n,t,i){for(var a=e.length,o=t+(i?1:-1);i?o--:++o{var i=t(2523),a=t(85463),o=t(76959);e.exports=function(e,n,t){return n==n?o(e,n,t):i(e,a,t)}},85463:e=>{e.exports=function(e){return e!=e}},55765:(e,n,t)=>{var i=t(38859),a=t(15325),o=t(29905),l=t(19219),r=t(44517),d=t(84247);e.exports=function(e,n,t){var c=-1,s=a,u=e.length,m=!0,k=[],v=k;if(t)m=!1,s=o;else if(u>=200){var p=n?null:r(e);if(p)return d(p);m=!1,s=l,v=new i}else v=n?[]:k;e:for(;++c{var i=t(76545),a=t(63950),o=t(84247),l=i&&1/o(new i([,-0]))[1]==1/0?function(e){return new i(e)}:a;e.exports=l},76959:e=>{e.exports=function(e,n,t){for(var i=t-1,a=e.length;++i{e.exports=function(){}},56921:(e,n,t)=>{"use strict";t.d(n,{B:()=>d});var i=t(80296),a=t(96540),o=t(52290),l=t(86527),r=t(72130),d=function(e){var n=e.url,t=e.onCopy,d=e.children,c=e.flexGrow,s=e.linkStyle,u=e.postId,m=e.source,k=a.useState(!1),v=(0,i.A)(k,2),p=v[0],f=v[1],g=a.useState(null),h=(0,i.A)(g,2),S=h[0],N=h[1],y=a.useRef(null),F=(0,r.$L)();a.useEffect((function(){return function(){S&&clearTimeout(S)}}),[]);var b=a.useCallback((function(){t&&t();var e=y.current;if(e){if(e.disabled=!1,e.select(),e){var n=document.createRange();n.selectNode(e);var i=window.getSelection();i&&i.addRange(n),e.setSelectionRange(0,e.value.length),document.execCommand("copy"),(i=window.getSelection())&&i.removeAllRanges()}e.disabled=!0,f(!0),S&&clearTimeout(S),N(setTimeout((function(){return f(!1)}),2e3))}}),[]);return a.createElement(o.a,{display:"flex",alignItems:"flex-start",flexGrow:c},a.createElement("form",null,a.createElement("input",{disabled:!0,readOnly:!0,type:"text",ref:y,value:n,style:{position:"fixed",top:"-100vh"}}),a.createElement(l.N,{onClick:function(e){e.preventDefault(),F.event("copyStoryLink.clicked",{postId:u,source:m}),b()},linkStyle:s||"OBVIOUS"},d(p))))}},36305:(e,n,t)=>{"use strict";t.d(n,{H:()=>l,l:()=>o});var i=t(45458),a=t(17441),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"postMetaDescription_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"seoDescription"}},{kind:"Field",name:{kind:"Name",value:"metaDescription"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"previewContent"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subtitle"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"getPostContentAsString_post"}}]}}].concat((0,i.A)(a._j.definitions))},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"shortformPostMetaDescription_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"metaDescription"}},{kind:"Field",name:{kind:"Name",value:"seoDescription"}},{kind:"Field",name:{kind:"Name",value:"shortformType"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getPostContentAsString_post"}}]}}].concat((0,i.A)(a._j.definitions))}},7897:(e,n,t)=>{"use strict";t.d(n,{_:()=>l,a:()=>r});var i=t(42976),a=t(59162),o=t(94644),l=function(e){return function(e){var n=e.metaDescription,t=e.seoDescription,i=e.title||"";if(t)return t;if(n)return n;var l=function(e){var n=(0,a.Xm)(e,250);return n&&(0,o.Mc)(n,200)}(e);if(l.length>150)return l;var r=e.previewContent&&e.previewContent.subtitle||"";if(r.length>140)return r;r.length>0&&(r+=".");var d=(i.length?i+". ":"")+r;if(d.length>140)return d;var c="“".concat(i,"” is published");return e.creator&&e.creator.name&&(c+=" by ".concat(e.creator.name)),e.collection&&e.collection.name&&(c+=" in ".concat(e.collection.name)),"".concat(r," ").concat(c,".")}(e).trim()},r=function(e,n){var t=e.metaDescription,l=e.seoDescription,r=e.shortformType,d=r===i.bY.SHORTFORM_TYPE_NOTE||!r;if(l)return l;if(t)return t;if(d&&n){var c=(0,a.Xm)(e,350,0);return(0,o.Mc)(c,300)}return""}},17441:(e,n,t)=>{"use strict";t.d(n,{_j:()=>a,G5:()=>d,H4:()=>c,q1:()=>r,m_:()=>s,TW:()=>u});var i=t(45458),a=([{kind:"FragmentDefinition",name:{kind:"Name",value:"GetFeaturedImageIndex_bodyModel"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RichText"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paragraphs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GetFeaturedImageIndex_paragraph"}}]}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"GetFeaturedImageIndex_paragraph"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Paragraph"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"text"}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isFeatured"}}]}}]}}])),{kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"getPostContentAsString_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bodyModel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paragraphs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"text"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"mixtapeMetadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"}}]}}]}}]}}]}}]}}]}),o=[{kind:"FragmentDefinition",name:{kind:"Name",value:"appendPostContext_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"sequence"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}],l=[{kind:"FragmentDefinition",name:{kind:"Name",value:"maybeAppendProductName_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"domain"}}]}}],r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"postTitle_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"seoTitle"}},{kind:"Field",name:{kind:"Name",value:"firstPublishedAt"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getPostContentAsString_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"appendPostContext_post"}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"FragmentSpread",name:{kind:"Name",value:"maybeAppendProductName_collection"}}]}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"previewContent"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subtitle"}}]}}]}}].concat((0,i.A)(a.definitions),(0,i.A)(o),(0,i.A)(l))},d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"getTitleDetails_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postMeteringOptions"},value:{kind:"Variable",name:{kind:"Name",value:"postMeteringOptions"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bodyModel"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GetTitleIndexMap_bodyModel"}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"getPostContentAsString_post"}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"GetTitleIndexMap_bodyModel"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RichText"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paragraphs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"text"}}]}}]}}]),(0,i.A)(a.definitions))},c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"getTitleForPost_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"FragmentSpread",name:{kind:"Name",value:"postTitle_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getTitleDetails_post"}}]}}].concat((0,i.A)(r.definitions),(0,i.A)(d.definitions))},s={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"shortformPostTitle_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"seoTitle"}},{kind:"Field",name:{kind:"Name",value:"shortformType"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getPostContentAsString_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"appendPostContext_post"}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"maybeAppendProductName_collection"}}]}}]}}].concat((0,i.A)(a.definitions),(0,i.A)(o),(0,i.A)(l))},u={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"shouldIndexPost_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"firstPublishedAt"}},{kind:"Field",name:{kind:"Name",value:"isShortform"}},{kind:"Field",name:{kind:"Name",value:"shortformType"}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"FragmentSpread",name:{kind:"Name",value:"getPostContentAsString_post"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"shouldIndexPostForExternalSearch"}}]}}]}}].concat((0,i.A)(a.definitions))}},59162:(e,n,t)=>{"use strict";t.d(n,{Hg:()=>p,T7:()=>S,Xm:()=>v,_y:()=>h,ek:()=>N,pT:()=>g});var i=t(64467),a=t(72346),o=t(79480),l=t(42976),r=t(6565),d=t(94644);function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:250,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,l=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{includeMixtapeHref:!1}).includeMixtapeHref,r="",d=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,r=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){r=!0,o=e},f:function(){try{l||null==t.return||t.return()}finally{if(r)throw o}}}}((null===(n=e.content)||void 0===n||null===(t=n.bodyModel)||void 0===t?void 0:t.paragraphs)||[]);try{for(d.s();!(i=d.n()).done;){var c=i.value,s=c.mixtapeMetadata,m=c.text,k=c.type;if(l&&null!=s&&s.href?r+=r?" ".concat(s.href):s.href:"P"===k&&m&&m.length>o&&(r+=r?" ".concat(m):m),r.length>a)break}}catch(e){d.e(e)}finally{d.f()}return r}function p(e){var n=!1,t="";if(e.content&&e.content.bodyModel&&e.content.bodyModel.paragraphs){var i=e.content.bodyModel.paragraphs,a=(0,o.z)(i).titleIndex;"number"==typeof a&&(t=i[a].text||"",n=!0)}return{hasTitleGraf:n,latestTitle:t}}function f(e,n,t){return null!=t&&t.domain?e:"".concat(e," - ").concat(n)}function g(e,n){var t,i,o,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=e.seoTitle,s=e.title||"",u=(null===(t=e.previewContent)||void 0===t?void 0:t.subtitle)||"";if(c)return(0,r.G)(c,e.collection&&e.collection.name,n);if(!l)return s.length>50?s:s=f(s=k(s,e),n,e.collection);s.length<33&&u&&(u=(0,d.Mc)(u,40),s+=". ".concat(u)),null!==(i=e.creator)&&void 0!==i&&i.name&&(s+=" | by ".concat(e.creator.name));var m,v="",p=Date.now()-5184e6;(null!==(o=e.firstPublishedAt)&&void 0!==o?o:0)>=p&&(v=" | ".concat((0,a.A)(null!==(m=e.firstPublishedAt)&&void 0!==m?m:0,"LLL, yyyy")));var g=e.collection;return g?g.domain?s+="".concat(v," | ").concat(g.name):s+=" | ".concat(g.name).concat(v," | ").concat(n):s+="".concat(v," | ").concat(n),s}function h(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p(e),i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=e.title||"",o=t.latestTitle||a;return g(s(s({},e),{},{title:o}),n,i).trim()}function S(e,n,t){var i=e.seoTitle,a=e.title||"";return i?(0,r.G)(i,e.collection&&e.collection.name,n):(a=function(e,n,t){var i=n.shortformType,a=i===l.bY.SHORTFORM_TYPE_NOTE||!i;return t||(a?e=v(n,m+50,0):i===l.bY.SHORTFORM_TYPE_LINK&&(e=v(n,m+50,0,{includeMixtapeHref:!0}))),(0,d.Mc)(e,m)}(a,e,t),a=f(a=k(a,e),n,e.collection))}function N(e){var n=e.firstPublishedAt,t=e.isShortform,i=e.shortformType,a=e.visibility,o=e.id,r=i===l.bY.SHORTFORM_TYPE_NOTE||!i;if(!n)return{shouldIndexPost:!1,indexReason:"v2: draft"};if("PUBLIC"!==a&&"LOCKED"!==a)return{shouldIndexPost:!1,indexReason:"v2: unlisted (PUBLIC | LOCKED)"};if("ea79ce491983"===o)return{shouldIndexPost:!1,indexReason:"legal"};if(t)if(r){if(v(e,10,0).length<=10)return{shouldIndexPost:!1,indexReason:"v2: insufficient content <=10 chars"}}else if(0===v(e,10,0).length)return{shouldIndexPost:!1,indexReason:"v2: shortform with no commentary"};return e.viewerEdge.shouldIndexPostForExternalSearch?{shouldIndexPost:!0,indexReason:"v2: all checks passed"}:{shouldIndexPost:!1,indexReason:"v2: postViewerEdge.shouldIndexPostForExternalSearch is false"}}},6565:(e,n,t)=>{"use strict";t.d(n,{G:()=>a,j:()=>i});var i=function(e){return e||"Untitled story"},a=function(e,n,t){return n?"".concat(e," | ").concat(n):t?"".concat(e," | ").concat(t):e}},52176:(e,n,t)=>{"use strict";function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}t.d(n,{A:()=>i})},73437:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var i=t(53954),a=t(63662),o=t(52176);function l(e,n,t){return l=(0,o.A)()?Reflect.construct.bind():function(e,n,t){var i=[null];i.push.apply(i,n);var o=new(Function.bind.apply(e,i));return t&&(0,a.A)(o,t.prototype),o},l.apply(null,arguments)}function r(e){var n="function"==typeof Map?new Map:void 0;return r=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,o)}function o(){return l(e,arguments,(0,i.A)(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),(0,a.A)(o,e)},r(e)}}}]); //# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/4391.59acaed3.chunk.js.map