/*! For license information please see main.e66fdbd5.js.LICENSE.txt */ "use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[8792],{26148:(e,n,t)=>{t(60328),"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype||t(95127),"setImmediate"in window||t(42791)},27412:(e,n,t)=>{t.d(n,{A:()=>o});var i,a=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>o});var i,a=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>d});var i,a,r,o,l,c,s=t(96540);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>u});var i,a,r,o,l,c=t(96540);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>u});var i,a,r,o,l,c=t(96540);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>f});var i,a,r,o,l,c,s,u,d,m=t(96540);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>m});var i,a,r,o,l,c,s,u=t(96540);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>u});var i,a,r,o,l,c=t(96540);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>l});var i,a,r=t(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>o});var i,a=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>o});var i,a=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>l});var i,a,r=t(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>o});var i,a=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>o});var i,a=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>o});var i,a=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>c});var i,a,r,o=t(96540);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>o});var i,a=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>o});var i,a=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>o});var i,a=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{A:()=>o});var i,a=t(96540);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{E:()=>u,W:()=>d});var i=t(64467),a=t(69843),r=t.n(a),o=t(11054);function l(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 c(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,i=t.args,a=t.field,r=i,o=r.userId,l=r.type,c=r.pagingOptions,s=r.visibility;return n[u({alias:null==a||null===(e=a.alias)||void 0===e?void 0:e.value,userId:o,type:l,pagingOptions:c,visibility:s})]},merge:function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,r=a.args,l=a.field,s=r,d=s.userId,m=s.type,p=s.pagingOptions,f=s.visibility,g=u({alias:null==l||null===(e=l.alias)||void 0===e?void 0:e.value,userId:d,type:m,pagingOptions:p,visibility:f}),h=(0,o.L)("catalogs",["id"])(n[g],t,a);return c(c({},n),{},(0,i.A)({},g,h))}}}},CatalogItemV2:{keyFields:["catalogItemId"]},Catalog:{fields:{itemsConnection:{keyArgs:function(e,n){var t,i,a=n.field,r=null!==(t=null==a||null===(i=a.alias)||void 0===i?void 0:i.value)&&void 0!==t?t:"";return"".concat(r,"(limit:").concat(e.pagingOptions.limit,")")},merge:(0,o.L)("items",["catalogItemId"])},threadedCatalogResponses:{keyArgs:["paging",["limit"],"sortType"],merge:(0,o.L)("posts",["id"])}}},CatalogClapper:{keyFields:["user",["id"]]},CatalogViewerEdge:{fields:{clappers:{keyArgs:function(e,n){var t,i,a=n.field,r=null!==(t=null==a||null===(i=a.alias)||void 0===i?void 0:i.value)&&void 0!==t?t:"";return"".concat(r,"(limit:").concat(e.pagingOptions.limit,")")},merge:(0,o.L)("clappers",["user","id"])}}},EntityCatalogsConnection:{fields:{catalogs:s}},UserViewerEdge:{fields:{catalogsConnection:s,followingCatalogsConnection:s}}}},11054:(e,n,t)=>{t.d(n,{L:()=>u,z:()=>d});var i=t(80296),a=t(64467),r=t(45458);function o(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 l(e){for(var n=1;n0;){var o=i.shift();o&&(a=t(o,a))}return a}function s(e,n){return n?n(e):e}function u(e,n,t){return function(i,o,u){var d=u.readField,m=u.args,p=u.variables,f=null!=i&&i[e]?null==i?void 0:i[e].slice(0):[],g=(null==o?void 0:o[e])||[];if(function(e,n){if(null!=e&&e.pagingOptions){var t=Object.keys(e.pagingOptions);if(1===t.length&&"limit"===t[0])return!0}else if(null===(null==n?void 0:n.cursor))return!0;return!1}(m,p))return o;var h=new Set(f.map((function(e){return s(c(e,n,d),t)})));return g=g.filter((function(e){var i=s(c(e,n,d),t);return!h.has(i)})),f.push.apply(f,(0,r.A)(g)),l(l({},o),{},(0,a.A)({},e,f))}}function d(e){return e.map((function(e){var n=(0,i.A)(e,2),t=n[0],a=n[1];return"".concat(t,":").concat(a)})).join(",")}},60781:(e,n,t)=>{t.d(n,{e:()=>l,i:()=>o});var i=t(58168),a=t(96540);function r(e){var n=e.content,t=e.params,r=(0,e.useLoader)(t);return a.createElement(n,(0,i.A)({},r,{params:t}))}var o=function(e,n){var t=e.useLoader,i=n.content,o=n.params;return a.createElement(r,{content:i,params:o,useLoader:t})},l=function(e){return function(n,t){var i=t.params,o=n[e],l=n.useLoader;if(l)return a.createElement(r,{content:o,params:i,useLoader:l});var c=o;return a.createElement(c,{loading:!1,params:i})}}},45136:(e,n,t)=>{t.d(n,{h:()=>s,u:()=>u});var i=t(80296),a=t(64467),r=t(96540);function o(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}var l={globalSearchOnly:!1,setGlobalSearchOnly:function(){return null}},c=r.createContext(function(e){for(var n=1;n{t.d(n,{fI:()=>r,g_:()=>i,mW:()=>a});var i=680,a=24,r=function(){return{minWidth:"0",width:"100%",margin:"0 ".concat(a,"px"),maxWidth:{xs:void 0,sm:void 0,md:"".concat(i,"px"),lg:"".concat(i,"px"),xl:"".concat(i,"px")}}}},2556:(e,n,t)=>{t.d(n,{n:()=>we,J:()=>Pe});var i=t(96540),a=t(53259),r=t.n(a),o=t(60781),l=r()({loader:function(){return Promise.all([t.e(4728),t.e(5842),t.e(6882),t.e(5564)]).then(t.bind(t,99984))},modules:["src/app/pages/customize-following/MainContent"],webpack:function(){return[99984]},loading:function(){return null},render:o.i}),c={id:"customize-following",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:{content:r()({loader:function(){return Promise.all([t.e(4728),t.e(5842),t.e(6882),t.e(5564)]).then(t.bind(t,99984))},modules:["src/app/pages/customize-following/MainContent"],webpack:function(){return[99984]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:l},RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5492),t.e(4785),t.e(3857)]).then(t.bind(t,35261))},modules:["src/app/pages/customize-following/RightColumnContent"],webpack:function(){return[35261]},loading:function(){return null},render:(0,o.e)("RightColumnContent")})}}},s=r()({loader:function(){return Promise.all([t.e(4728),t.e(1488)]).then(t.bind(t,28398))},modules:["src/app/pages/customize-muted/MainContent"],webpack:function(){return[28398]},loading:function(){return null},render:o.i}),u={id:"customize-muted",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:{content:r()({loader:function(){return Promise.all([t.e(4728),t.e(1488)]).then(t.bind(t,28398))},modules:["src/app/pages/customize-muted/MainContent"],webpack:function(){return[28398]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:s},RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5492),t.e(4785),t.e(8901)]).then(t.bind(t,70145))},modules:["src/app/pages/customize-muted/RightColumnContent"],webpack:function(){return[70145]},loading:function(){return null},render:(0,o.e)("RightColumnContent")})}}},d=r()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(5642),t.e(2921)]).then(t.bind(t,18127))},modules:["src/app/pages/customize-reading-history/MainContent"],webpack:function(){return[18127]},loading:function(){return null},render:o.i}),m={id:"customize-reading-history",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(5642),t.e(2921)]).then(t.bind(t,18127))},modules:["src/app/pages/customize-reading-history/MainContent"],webpack:function(){return[18127]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:d},RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5492),t.e(4785),t.e(702)]).then(t.bind(t,77447))},modules:["src/app/pages/customize-reading-history/RightColumnContent"],webpack:function(){return[77447]},loading:function(){return null},render:(0,o.e)("RightColumnContent")})}}},p=r()({loader:function(){return Promise.all([t.e(4728),t.e(5842),t.e(6882),t.e(4782)]).then(t.bind(t,13153))},modules:["src/app/pages/customize-suggestions/MainContent"],webpack:function(){return[13153]},loading:function(){return null},render:o.i}),f={id:"customize-suggestions",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:{content:r()({loader:function(){return Promise.all([t.e(4728),t.e(5842),t.e(6882),t.e(4782)]).then(t.bind(t,13153))},modules:["src/app/pages/customize-suggestions/MainContent"],webpack:function(){return[13153]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:p},RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5492),t.e(4785),t.e(6095)]).then(t.bind(t,57527))},modules:["src/app/pages/customize-suggestions/RightColumnContent"],webpack:function(){return[57527]},loading:function(){return null},render:(0,o.e)("RightColumnContent")})}}},g={id:"global-unsubscribe-newsletters",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:{content:r()({loader:function(){return t.e(802).then(t.bind(t,22608))},modules:["src/app/pages/global-unsubscribe-newsletters/MainContent"],webpack:function(){return[22608]},loading:function(){return null},render:(0,o.e)("MainContent")})},RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(719),t.e(649),t.e(2291)]).then(t.bind(t,50706))},modules:["src/app/pages/global-unsubscribe-newsletters/RightColumnContent"],webpack:function(){return[50706]},loading:function(){return null},render:(0,o.e)("RightColumnContent")})}}},h=t(50754),v=t(44883),k=r()({loader:function(){return Promise.all([t.e(5049),t.e(6618),t.e(8414),t.e(1832),t.e(1386),t.e(9977),t.e(6349),t.e(3735),t.e(4124),t.e(4769),t.e(6546),t.e(3591),t.e(1676),t.e(3346),t.e(3974),t.e(9491),t.e(6576),t.e(1899)]).then(t.bind(t,21414))},modules:["src/app/pages/publication-about/MainContent"],webpack:function(){return[21414]},loading:function(){return null},render:o.i}),S={content:r()({loader:function(){return Promise.all([t.e(5049),t.e(6618),t.e(8414),t.e(1832),t.e(1386),t.e(9977),t.e(6349),t.e(3735),t.e(4124),t.e(4769),t.e(6546),t.e(3591),t.e(1676),t.e(3346),t.e(3974),t.e(9491),t.e(6576),t.e(1899)]).then(t.bind(t,21414))},modules:["src/app/pages/publication-about/MainContent"],webpack:function(){return[21414]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:k},b=r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(5492),t.e(4124),t.e(2278),t.e(4769),t.e(3591),t.e(3346),t.e(4350),t.e(2068)]).then(t.bind(t,88673))},modules:["src/app/pages/publication-about/RightColumnContent"],webpack:function(){return[88673]},loading:function(){return null},render:o.i}),E={id:"publication-about",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:S,RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(5492),t.e(4124),t.e(2278),t.e(4769),t.e(3591),t.e(3346),t.e(4350),t.e(2068)]).then(t.bind(t,88673))},modules:["src/app/pages/publication-about/RightColumnContent"],webpack:function(){return[88673]},loading:function(){return null},render:(0,o.e)("RightColumnContent")}),loader:b}}},y=r()({loader:function(){return Promise.all([t.e(4728),t.e(5842),t.e(6882),t.e(5199),t.e(3713)]).then(t.bind(t,88153))},modules:["src/app/pages/publication-followers/MainContent"],webpack:function(){return[88153]},loading:function(){return null},render:o.i}),N={content:r()({loader:function(){return Promise.all([t.e(4728),t.e(5842),t.e(6882),t.e(5199),t.e(3713)]).then(t.bind(t,88153))},modules:["src/app/pages/publication-followers/MainContent"],webpack:function(){return[88153]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:y},w=r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(5492),t.e(4124),t.e(2278),t.e(4769),t.e(3591),t.e(3346),t.e(5542)]).then(t.bind(t,76788))},modules:["src/app/pages/publication-followers/RightColumnContent"],webpack:function(){return[76788]},loading:function(){return null},render:o.i}),P={id:"publication-followers",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:N,RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(5492),t.e(4124),t.e(2278),t.e(4769),t.e(3591),t.e(3346),t.e(5542)]).then(t.bind(t,76788))},modules:["src/app/pages/publication-followers/RightColumnContent"],webpack:function(){return[76788]},loading:function(){return null},render:(0,o.e)("RightColumnContent")}),loader:w}}},O=t(14593),T=r()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(3735),t.e(5642),t.e(4124),t.e(1676),t.e(3798)]).then(t.bind(t,8873))},modules:["src/app/pages/publication-tagged/MainContent"],webpack:function(){return[8873]},loading:function(){return null},render:o.i}),C={content:r()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(3735),t.e(5642),t.e(4124),t.e(1676),t.e(3798)]).then(t.bind(t,8873))},modules:["src/app/pages/publication-tagged/MainContent"],webpack:function(){return[8873]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:T},A=r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(5492),t.e(4124),t.e(2278),t.e(4769),t.e(3591),t.e(3346),t.e(4350),t.e(8199)]).then(t.bind(t,14205))},modules:["src/app/pages/publication-tagged/RightColumnContent"],webpack:function(){return[14205]},loading:function(){return null},render:o.i}),_={id:"publication-tagged",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:C,RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(5492),t.e(4124),t.e(2278),t.e(4769),t.e(3591),t.e(3346),t.e(4350),t.e(8199)]).then(t.bind(t,14205))},modules:["src/app/pages/publication-tagged/RightColumnContent"],webpack:function(){return[14205]},loading:function(){return null},render:(0,o.e)("RightColumnContent")}),loader:A}}},I=r()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(5642),t.e(6834),t.e(5002)]).then(t.bind(t,61341))},modules:["src/app/pages/search/MainContent"],webpack:function(){return[61341]},loading:function(){return null},render:o.i}),R={content:r()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(5642),t.e(6834),t.e(5002)]).then(t.bind(t,61341))},modules:["src/app/pages/search/MainContent"],webpack:function(){return[61341]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:I},F=r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(719),t.e(5492),t.e(649),t.e(1652),t.e(5115)]).then(t.bind(t,49764))},modules:["src/app/pages/search/RightColumnContent"],webpack:function(){return[49764]},loading:function(){return null},render:o.i}),L={id:"search",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:R,RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(719),t.e(5492),t.e(649),t.e(1652),t.e(5115)]).then(t.bind(t,49764))},modules:["src/app/pages/search/RightColumnContent"],webpack:function(){return[49764]},loading:function(){return null},render:(0,o.e)("RightColumnContent")}),loader:F}}},M={content:r()({loader:function(){return Promise.all([t.e(4124),t.e(709)]).then(t.bind(t,10898))},modules:["src/app/pages/settings/MainContent"],webpack:function(){return[10898]},loading:function(){return null},render:(0,o.e)("MainContent")})},D=r()({loader:function(){return t.e(5866).then(t.bind(t,37119))},modules:["src/app/pages/settings/RightColumnContent"],webpack:function(){return[37119]},loading:function(){return null},render:o.i}),x={id:"settings",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:M,RightColumnModule:{content:r()({loader:function(){return t.e(5866).then(t.bind(t,37119))},modules:["src/app/pages/settings/RightColumnContent"],webpack:function(){return[37119]},loading:function(){return null},render:(0,o.e)("RightColumnContent")}),loader:D}}},U=r()({loader:function(){return Promise.all([t.e(5049),t.e(6618),t.e(8414),t.e(1386),t.e(9977),t.e(6349),t.e(3735),t.e(4124),t.e(4769),t.e(6546),t.e(3591),t.e(1676),t.e(3346),t.e(3974),t.e(3561),t.e(9491),t.e(6576),t.e(8748)]).then(t.bind(t,67961))},modules:["src/app/pages/user-about/MainContent"],webpack:function(){return[67961]},loading:function(){return null},render:o.i}),B={content:r()({loader:function(){return Promise.all([t.e(5049),t.e(6618),t.e(8414),t.e(1386),t.e(9977),t.e(6349),t.e(3735),t.e(4124),t.e(4769),t.e(6546),t.e(3591),t.e(1676),t.e(3346),t.e(3974),t.e(3561),t.e(9491),t.e(6576),t.e(8748)]).then(t.bind(t,67961))},modules:["src/app/pages/user-about/MainContent"],webpack:function(){return[67961]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:U},j=r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(9201)]).then(t.bind(t,36523))},modules:["src/app/pages/user-about/RightColumnContent"],webpack:function(){return[36523]},loading:function(){return null},render:o.i}),V={id:"user-about",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:B,RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(9201)]).then(t.bind(t,36523))},modules:["src/app/pages/user-about/RightColumnContent"],webpack:function(){return[36523]},loading:function(){return null},render:(0,o.e)("RightColumnContent")}),loader:j}}},H=r()({loader:function(){return Promise.all([t.e(1386),t.e(6349),t.e(3735),t.e(4124),t.e(1676),t.e(3561),t.e(7929)]).then(t.bind(t,14405))},modules:["src/app/pages/user-books/MainContent"],webpack:function(){return[14405]},loading:function(){return null},render:o.i}),G={content:r()({loader:function(){return Promise.all([t.e(1386),t.e(6349),t.e(3735),t.e(4124),t.e(1676),t.e(3561),t.e(7929)]).then(t.bind(t,14405))},modules:["src/app/pages/user-books/MainContent"],webpack:function(){return[14405]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:H},W=r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(8830)]).then(t.bind(t,80301))},modules:["src/app/pages/user-books/RightColumnContent"],webpack:function(){return[80301]},loading:function(){return null},render:o.i}),z={id:"user-books",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:G,RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(8830)]).then(t.bind(t,80301))},modules:["src/app/pages/user-books/RightColumnContent"],webpack:function(){return[80301]},loading:function(){return null},render:(0,o.e)("RightColumnContent")}),loader:W}}},Y=r()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(5642),t.e(6834),t.e(839),t.e(230),t.e(7314)]).then(t.bind(t,86517))},modules:["src/app/pages/user-catalog/MainContent"],webpack:function(){return[86517]},loading:function(){return null},render:o.i}),q={content:r()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(5642),t.e(6834),t.e(839),t.e(230),t.e(7314)]).then(t.bind(t,86517))},modules:["src/app/pages/user-catalog/MainContent"],webpack:function(){return[86517]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:Y},K=r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(5139)]).then(t.bind(t,72388))},modules:["src/app/pages/user-catalog/RightColumnContent"],webpack:function(){return[72388]},loading:function(){return null},render:o.i}),Q={id:"user-catalog",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:q,RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(5139)]).then(t.bind(t,72388))},modules:["src/app/pages/user-catalog/RightColumnContent"],webpack:function(){return[72388]},loading:function(){return null},render:(0,o.e)("RightColumnContent")}),loader:K}}},X={content:r()({loader:function(){return Promise.all([t.e(1386),t.e(5250),t.e(6349),t.e(3735),t.e(4124),t.e(6834),t.e(1676),t.e(3561),t.e(7880),t.e(4715)]).then(t.bind(t,22577))},modules:["src/app/pages/user-catalogs/MainContent"],webpack:function(){return[22577]},loading:function(){return null},render:(0,o.e)("MainContent")})},Z=r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(2884)]).then(t.bind(t,36826))},modules:["src/app/pages/user-catalogs/RightColumnContent"],webpack:function(){return[36826]},loading:function(){return null},render:o.i}),$={id:"user-catalogs",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:X,RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(2884)]).then(t.bind(t,36826))},modules:["src/app/pages/user-catalogs/RightColumnContent"],webpack:function(){return[36826]},loading:function(){return null},render:(0,o.e)("RightColumnContent")}),loader:Z}}},J=r()({loader:function(){return Promise.all([t.e(4728),t.e(5842),t.e(6882),t.e(5199),t.e(8502)]).then(t.bind(t,93424))},modules:["src/app/pages/user-followers/MainContent"],webpack:function(){return[93424]},loading:function(){return null},render:o.i}),ee={content:r()({loader:function(){return Promise.all([t.e(4728),t.e(5842),t.e(6882),t.e(5199),t.e(8502)]).then(t.bind(t,93424))},modules:["src/app/pages/user-followers/MainContent"],webpack:function(){return[93424]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:J},ne=r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(7575)]).then(t.bind(t,72330))},modules:["src/app/pages/user-followers/RightColumnContent"],webpack:function(){return[72330]},loading:function(){return null},render:o.i}),te={id:"user-followers",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:ee,RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(7575)]).then(t.bind(t,72330))},modules:["src/app/pages/user-followers/RightColumnContent"],webpack:function(){return[72330]},loading:function(){return null},render:(0,o.e)("RightColumnContent")}),loader:ne}}},ie=r()({loader:function(){return Promise.all([t.e(4728),t.e(5842),t.e(6882),t.e(5199),t.e(8250)]).then(t.bind(t,62987))},modules:["src/app/pages/user-following/MainContent"],webpack:function(){return[62987]},loading:function(){return null},render:o.i}),ae={content:r()({loader:function(){return Promise.all([t.e(4728),t.e(5842),t.e(6882),t.e(5199),t.e(8250)]).then(t.bind(t,62987))},modules:["src/app/pages/user-following/MainContent"],webpack:function(){return[62987]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:ie},re=r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(2795)]).then(t.bind(t,70098))},modules:["src/app/pages/user-following/RightColumnContent"],webpack:function(){return[70098]},loading:function(){return null},render:o.i}),oe={id:"user-following",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:ae,RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(2795)]).then(t.bind(t,70098))},modules:["src/app/pages/user-following/RightColumnContent"],webpack:function(){return[70098]},loading:function(){return null},render:(0,o.e)("RightColumnContent")}),loader:re}}},le=t(594),ce={id:"your-catalog",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(6618),t.e(7057),t.e(1386),t.e(9977),t.e(5250),t.e(2648),t.e(8393),t.e(3735),t.e(6546),t.e(6834),t.e(2420),t.e(839),t.e(7975),t.e(2106),t.e(2961),t.e(1915),t.e(2919),t.e(3994)]).then(t.bind(t,17679))},modules:["src/app/pages/your-catalog/MainContent"],webpack:function(){return[17679]},loading:function(){return null},render:(0,o.e)("MainContent")})},RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(719),t.e(5492),t.e(649),t.e(1652),t.e(4907)]).then(t.bind(t,54445))},modules:["src/app/pages/your-catalog/RightColumnContent"],webpack:function(){return[54445]},loading:function(){return null},render:(0,o.e)("RightColumnContent")})}}},se=t(94317),ue=r()({loader:function(){return Promise.all([t.e(5250),t.e(6834),t.e(1311)]).then(t.bind(t,41655))},modules:["src/app/pages/your-followed-catalogs/MainContent"],webpack:function(){return[41655]},loading:function(){return null},render:o.i}),de={id:"your-followed-catalogs",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:{content:r()({loader:function(){return Promise.all([t.e(5250),t.e(6834),t.e(1311)]).then(t.bind(t,41655))},modules:["src/app/pages/your-followed-catalogs/MainContent"],webpack:function(){return[41655]},loading:function(){return null},render:(0,o.e)("MainContent")}),loader:ue},RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(719),t.e(5492),t.e(649),t.e(1652),t.e(8760)]).then(t.bind(t,10581))},modules:["src/app/pages/your-followed-catalogs/RightColumnContent"],webpack:function(){return[10581]},loading:function(){return null},render:(0,o.e)("RightColumnContent")})}}},me={id:"your-reading-history",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(5642),t.e(7483)]).then(t.bind(t,95026))},modules:["src/app/pages/your-reading-history/MainContent"],webpack:function(){return[95026]},loading:function(){return null},render:(0,o.e)("MainContent")})},RightColumnModule:{content:r()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(719),t.e(5492),t.e(649),t.e(1652),t.e(1620)]).then(t.bind(t,43411))},modules:["src/app/pages/your-reading-history/RightColumnContent"],webpack:function(){return[43411]},loading:function(){return null},render:(0,o.e)("RightColumnContent")})}}},pe=t(88878),fe=t(11245),ge=t(5863),he=t(11891),ve=t(64074),ke=t(52290),Se=t(12378),be=t(49287),Ee=t(45136),ye=t(35554),Ne=t(69261),we=function(e){var n=e.children,t=(0,Se.c)(ye.f+Ne.f+240);return i.createElement(ke.a,{maxWidth:t,margin:"auto"},i.createElement(ke.a,{display:"flex",justifyContent:"space-evenly",flexDirection:"row"},n))},Pe=i.memo((function(e){var n,t=e.pageName,a=e.params;switch(t){case"publication-about":n=E;break;case"publication-followers":n=P;break;case"publication-profile":n=O.PublicationProfilePage;break;case"publication-tagged":n=_;break;case"home":n=h.HomePage;break;case"notifications":n=v.NotificationsPage;break;case"user-followers":n=te;break;case"user-following":n=oe;break;case"user-profile":n=le.UserProfilePage;break;case"search":n=L;break;case"your-stories":n=pe.YourStoriesPage;break;case"customize-following":n=c;break;case"customize-reading-history":n=m;break;case"customize-muted":n=u;break;case"customize-suggestions":n=f;break;case"settings":n=x;break;case"user-about":n=V;break;case"user-books":n=z;break;case"user-catalogs":n=$;break;case"user-catalog":n=Q;break;case"your-catalogs":n=se.YourCatalogsPage;break;case"your-catalog":n=ce;break;case"your-followed-catalogs":n=de;break;case"your-reading-history":n=me;break;case"global-unsubscribe-newsletters":n=g;break;default:throw new Error("Expected ".concat(t," page to exist."))}var r,o=n.modules,l=o.MainModule.content,s=o.RightColumnModule.content;return r="search"===t?Ee.h:i.Fragment,i.createElement(fe.n,null,i.createElement(ge.m,null,i.createElement(ke.a,{backgroundColor:"BACKGROUND"},i.createElement(be.Ne,{source:{dimension:"two_column_layout_nav"}},i.createElement(he.b,null)),i.createElement(be.Ne,{source:{dimension:"two_column_layout_upsell"}},i.createElement(ve.w,null)),i.createElement(we,null,i.createElement(r,null,i.createElement(ye.S,null,i.createElement(l,{params:a})),i.createElement(Ne.$,null,i.createElement(be.Ne,{source:{dimension:"two_column_layout_sidebar"}},i.createElement(s,{params:a}))))))))}))},35554:(e,n,t)=>{t.d(n,{S:()=>c,f:()=>l});var i=t(96540),a=t(46225),r=t(52290),o=t(12378),l=a.g_+2*a.mW,c=function(e){var n=e.children;return i.createElement(r.a,{flexGrow:"1",flexShrink:"1",minWidth:{xl:(0,o.c)(l),lg:"0",md:"0",sm:"0",xs:"0"},maxWidth:{xl:(0,o.c)(l),lg:void 0,md:void 0,sm:void 0,xs:void 0},tag:"main"},n)}},69261:(e,n,t)=>{t.d(n,{$:()=>f,f:()=>d});var i=t(96540),a=t(52290),r=t(27049),o=t(12378),l=t(44402),c=t(46963),s=(0,o.c)(24),u=(0,o.c)(352),d=368,m={xs:u,sm:u,md:u,lg:u,xl:(0,o.c)(d)},p=function(e){return{paddingRight:s,paddingLeft:{xs:s,sm:s,md:s,lg:s,xl:"clamp(".concat(24,"px, ").concat(24,"px + 100vw - ").concat(e.breakpoints.xl,"px, ").concat(40,"px)")},boxSizing:"border-box",backgroundColor:e.backgroundColor,borderLeft:"".concat(1,"px solid ").concat(e.colorTokens.border.neutral.primary.base),display:{xs:"none",sm:"none",md:"none",lg:"block",xl:"block"},minHeight:"100vh",minWidth:m,maxWidth:m}},f=function(e){var n=e.children,t=(0,l.l)(),o=(0,c.U)();return o===r.i.xs||o===r.i.sm||o===r.i.md?null:i.createElement("div",{className:t(p)},i.createElement(a.a,{position:"relative",width:"100%",height:"100%",display:"inline-block"},n))}},15295:(e,n,t)=>{t.d(n,{B:()=>v,l:()=>k});var i=t(45458),a=t(64800),r=t(3545),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationProfileHeader_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionFollowButton_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"HeaderUserMenu_collection"}}]}}].concat((0,i.A)(r.f.definitions),(0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"HeaderUserMenu_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:"slug"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"Field",name:{kind:"Name",value:"newsletterV3"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}}]}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isEditor"}},{kind:"Field",name:{kind:"Name",value:"isMuting"}}]}}]}}]))},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationProfileHeader_publication"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publication"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"avatar"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationHeader_imageMetadata"}}]}},{kind:"Field",name:{kind:"Name",value:"homepage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"header"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"color"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rgb"}}]}},{kind:"Field",name:{kind:"Name",value:"backgroundImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationHeader_imageMetadata"}}]}}]}}]}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationHeader_imageMetadata"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ImageMetadata"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"alt"}},{kind:"Field",name:{kind:"Name",value:"focusPercentX"}},{kind:"Field",name:{kind:"Name",value:"focusPercentY"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}},{kind:"Field",name:{kind:"Name",value:"originalHeight"}}]}}]))},c=t(30898),s={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationProfileAbout_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublisherFollowersCount_publisher"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionFollowButton_collection"}}]}}].concat((0,i.A)(c.c.definitions),(0,i.A)(r.f.definitions))},u=t(72457),d=t(54696),m=t(64623),p={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationProfileNewsletter_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:"name"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isEditor"}}]}},{kind:"Field",name:{kind:"Name",value:"newsletterV3"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"showPromo"}},{kind:"FragmentSpread",name:{kind:"Name",value:"NewsletterV3PublicationSubscribe_newsletterV3"}}]}}]}}].concat((0,i.A)(m._.definitions))},f={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationProfileContent_publication"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publication"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationProfileHeader_publication"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationProfileNavBar_publication"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationProfileAbout_publication"}},{kind:"Field",name:{kind:"Name",value:"homepage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"sections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationSections_publicationSection"}}]}}]}}]}}].concat((0,i.A)(l.definitions),(0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationProfileNavBar_publication"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publication"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"navigationItems"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"destination"}}]}}]}}]),(0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationProfileAbout_publication"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publication"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"homepage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}}]}},{kind:"Field",name:{kind:"Name",value:"avatar"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]),(0,i.A)(u.lz.definitions))},g={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationProfileContent_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"usePublicationAnalytics_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationProfileHeader_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationProfileAbout_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationProfileNewsletter_collection"}}]}}].concat((0,i.A)(d.p.definitions),(0,i.A)(o.definitions),(0,i.A)(s.definitions),(0,i.A)(p.definitions))},h=t(80604),v={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PublicationProfileMainCollectionQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"domainOrSlug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"collection"},name:{kind:"Name",value:"collectionByDomainOrSlug"},arguments:[{kind:"Argument",name:{kind:"Name",value:"domainOrSlug"},value:{kind:"Variable",name:{kind:"Name",value:"domainOrSlug"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",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:"slug"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationCanonicalizer_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationProfileContent_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionMetadata_collection"}}]}}]}}]}}].concat((0,i.A)(a.m.definitions),(0,i.A)(g.definitions),(0,i.A)(h.D.definitions))},k={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PublicationProfileMainPublicationQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publication"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publication"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationProfileContent_publication"}}]}}]}}]}}].concat((0,i.A)(f.definitions))}},52254:(e,n,t)=>{t.d(n,{dl:()=>r,nI:()=>o,tY:()=>a});var i=t(20026),a=100,r=function(e){var n=e.amount,t=e.currency,a=e.excludeCurrencySign,r=void 0!==a&&a,o=e.isLongFormat,l=void 0!==o&&o,c=e.isAmountInDollars,s=void 0!==c&&c?n:n/100;return r?(0,i.GR)(s,t,l):(0,i.vv)({amount:s,currency:t,floatingDigits:[0,2],isLongFormat:l})},o=function(e){var n=e.membershipPrice,t=e.isLongFormat,i=void 0!==t&&t,a=e.isNegativeFormat,o=void 0!==a&&a,l=n.amount,c=n.crossoutAmount,s=0;return c&&(s=c-l),0!==(s=o?-s:s)?r({amount:s,currency:n.currency,isLongFormat:i}):void 0}},50754:(e,n,t)=>{t.r(n),t.d(n,{HomePage:()=>l});var i=t(53259),a=t.n(i),r=t(60781),o=a()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(5642),t.e(2883)]).then(t.bind(t,1155))},modules:["src/app/pages/home/MainContent"],webpack:function(){return[1155]},loading:function(){return null},render:r.i}),l={id:"home",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:{content:a()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(5642),t.e(2883)]).then(t.bind(t,1155))},modules:["src/app/pages/home/MainContent"],webpack:function(){return[1155]},loading:function(){return null},render:(0,r.e)("MainContent")}),loader:o},RightColumnModule:{content:a()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(719),t.e(5492),t.e(649),t.e(1652),t.e(6812)]).then(t.bind(t,83))},modules:["src/app/pages/home/RightColumnContent"],webpack:function(){return[83]},loading:function(){return null},render:(0,r.e)("RightColumnContent")})}}}},44883:(e,n,t)=>{t.r(n),t.d(n,{NotificationsPage:()=>l});var i=t(53259),a=t.n(i),r=t(60781),o=a()({loader:function(){return Promise.all([t.e(6260),t.e(720)]).then(t.bind(t,99429))},modules:["src/app/pages/notifications/MainContent"],webpack:function(){return[99429]},loading:function(){return null},render:r.i}),l={id:"notifications",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:{content:a()({loader:function(){return Promise.all([t.e(6260),t.e(720)]).then(t.bind(t,99429))},modules:["src/app/pages/notifications/MainContent"],webpack:function(){return[99429]},loading:function(){return null},render:(0,r.e)("MainContent")}),loader:o},RightColumnModule:{content:a()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(719),t.e(5492),t.e(649),t.e(1652),t.e(8005)]).then(t.bind(t,33496))},modules:["src/app/pages/notifications/RightColumnContent"],webpack:function(){return[33496]},loading:function(){return null},render:(0,r.e)("RightColumnContent")})}}}},90696:(e,n,t)=>{t.r(n),t.d(n,{PostPage:()=>l});var i=t(53259),a=t.n(i),r=t(60781),o=a()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(6618),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(3735),t.e(5642),t.e(6546),t.e(6834),t.e(1781),t.e(2420),t.e(839),t.e(7975),t.e(2106),t.e(7394),t.e(2961),t.e(230),t.e(4391),t.e(5304)]).then(t.bind(t,41679))},modules:["src/app/pages/post/MainContent"],webpack:function(){return[41679]},loading:function(){return null},render:r.i}),l={id:"post",layoutConfig:{name:"TopNavLayout"},modules:{MainModule:{content:a()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(6618),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(3735),t.e(5642),t.e(6546),t.e(6834),t.e(1781),t.e(2420),t.e(839),t.e(7975),t.e(2106),t.e(7394),t.e(2961),t.e(230),t.e(4391),t.e(5304)]).then(t.bind(t,41679))},modules:["src/app/pages/post/MainContent"],webpack:function(){return[41679]},loading:function(){return null},render:(0,r.e)("MainContent")}),loader:o}}}},90016:(e,n,t)=>{t.d(n,{G:()=>r});var i=t(45458),a=t(64800),r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PublicationProfileQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"domainOrSlug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"collection"},name:{kind:"Name",value:"collectionByDomainOrSlug"},arguments:[{kind:"Argument",name:{kind:"Name",value:"domainOrSlug"},value:{kind:"Variable",name:{kind:"Name",value:"domainOrSlug"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationCanonicalizer_collection"}}]}}]}}]}}].concat((0,i.A)(a.m.definitions))}},14593:(e,n,t)=>{t.r(n),t.d(n,{PublicationProfilePage:()=>s});var i=t(53259),a=t.n(i),r=t(60781),o=a()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(3735),t.e(5642),t.e(4124),t.e(4769),t.e(3591),t.e(1676),t.e(6858),t.e(6594),t.e(6827)]).then(t.bind(t,1810))},modules:["src/app/pages/publication-profile/MainContent"],webpack:function(){return[1810]},loading:function(){return null},render:r.i}),l={content:a()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(3735),t.e(5642),t.e(4124),t.e(4769),t.e(3591),t.e(1676),t.e(6858),t.e(6594),t.e(6827)]).then(t.bind(t,1810))},modules:["src/app/pages/publication-profile/MainContent"],webpack:function(){return[1810]},loading:function(){return null},render:(0,r.e)("MainContent")}),loader:o},c=a()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(5492),t.e(4124),t.e(2278),t.e(4769),t.e(3591),t.e(3346),t.e(4350),t.e(5012)]).then(t.bind(t,83114))},modules:["src/app/pages/publication-profile/RightColumnContent"],webpack:function(){return[83114]},loading:function(){return null},render:r.i}),s={id:"publication-profile",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:l,RightColumnModule:{content:a()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(5492),t.e(4124),t.e(2278),t.e(4769),t.e(3591),t.e(3346),t.e(4350),t.e(5012)]).then(t.bind(t,83114))},modules:["src/app/pages/publication-profile/RightColumnContent"],webpack:function(){return[83114]},loading:function(){return null},render:(0,r.e)("RightColumnContent")}),loader:c}}}},65464:(e,n,t)=>{t.d(n,{a:()=>r,u:()=>o});var i=t(72346),a=t(4334);function r(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"LLLL d, yyyy";return(0,a.u)(e,n)}function o(e){return(0,i.A)(new Date(e,1),"yyyy")}},18496:(e,n,t)=>{t.d(n,{J:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"getPaymentMethodInfo_membershipStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MembershipStatus"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasCreditCardExpired"}},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreditCard"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cardType"}},{kind:"Field",name:{kind:"Name",value:"expirationMonth"}},{kind:"Field",name:{kind:"Name",value:"expirationYear"}},{kind:"Field",name:{kind:"Name",value:"lastFour"}}]}}]}}]}}]}},16221:(e,n,t)=>{var i;t.d(n,{m:()=>r,K:()=>o}),function(e){e.UNKNOWN="Unknow",e.VISA="Visa",e.MASTERCARD="Mastercard",e.AMEX="Amex",e.JCB="JCB",e.DISCOVER="Discover",e.DINERS_CLUB="Diners club",e.CARTE_BLANCHE="Carte Blanche",e.CHINA_UNIONPAY="China Unionpay",e.ELO="Elo",e.LASER="Laser",e.UK_MAESTRO="UK Maestro",e.MAESTRO="Maestro",e.SOLO="Solo",e.SWITCH="Switch"}(i||(i={}));var a=t(65464),r=function(e){var n=e.lastFour,t=e.expirationMonth,r=e.expirationYear,o=e.cardType,l=e.hasExpired,c=o?i[o]:"";return"".concat(c?"".concat(c," ending in"):"Ending in"," ").concat(n," (").concat(l?"Expired":"Expires"," ").concat(t,"/").concat((0,a.u)(r),")")};function o(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Paid via ",t=null==e?void 0:e.paymentMethod;switch(null==t?void 0:t.__typename){case"CreditCard":return r({lastFour:t.lastFour,expirationMonth:t.expirationMonth,expirationYear:t.expirationYear,cardType:t.cardType,hasExpired:null==e?void 0:e.hasCreditCardExpired});case"ApplePayCard":return"".concat(n,"Apple pay");case"GooglePayCard":return"".concat(n,"Google pay");case"PaypalAccount":return"".concat(n,"PayPal");default:return""}}},594:(e,n,t)=>{t.r(n),t.d(n,{UserProfilePage:()=>s});var i=t(53259),a=t.n(i),r=t(60781),o=a()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(3735),t.e(5642),t.e(4124),t.e(4769),t.e(3591),t.e(6834),t.e(1676),t.e(3561),t.e(7880),t.e(6594),t.e(5008)]).then(t.bind(t,61356))},modules:["src/app/pages/user-profile/MainContent"],webpack:function(){return[61356]},loading:function(){return null},render:r.i}),l={content:a()({loader:function(){return Promise.all([t.e(5049),t.e(4810),t.e(1386),t.e(9977),t.e(719),t.e(5250),t.e(6349),t.e(2648),t.e(8393),t.e(1443),t.e(3735),t.e(5642),t.e(4124),t.e(4769),t.e(3591),t.e(6834),t.e(1676),t.e(3561),t.e(7880),t.e(6594),t.e(5008)]).then(t.bind(t,61356))},modules:["src/app/pages/user-profile/MainContent"],webpack:function(){return[61356]},loading:function(){return null},render:(0,r.e)("MainContent")}),loader:o},c=a()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(21)]).then(t.bind(t,18841))},modules:["src/app/pages/user-profile/RightColumnContent"],webpack:function(){return[18841]},loading:function(){return null},render:r.i}),s={id:"user-profile",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:l,RightColumnModule:{content:a()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(3735),t.e(2278),t.e(1781),t.e(408),t.e(21)]).then(t.bind(t,18841))},modules:["src/app/pages/user-profile/RightColumnContent"],webpack:function(){return[18841]},loading:function(){return null},render:(0,r.e)("RightColumnContent")}),loader:c}}}},94317:(e,n,t)=>{t.r(n),t.d(n,{YourCatalogsPage:()=>l});var i=t(53259),a=t.n(i),r=t(60781),o=a()({loader:function(){return Promise.all([t.e(2621),t.e(5250),t.e(2648),t.e(6834),t.e(1331)]).then(t.bind(t,75965))},modules:["src/app/pages/your-catalogs/MainContent"],webpack:function(){return[75965]},loading:function(){return null},render:r.i}),l={id:"your-catalogs",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:{content:a()({loader:function(){return Promise.all([t.e(2621),t.e(5250),t.e(2648),t.e(6834),t.e(1331)]).then(t.bind(t,75965))},modules:["src/app/pages/your-catalogs/MainContent"],webpack:function(){return[75965]},loading:function(){return null},render:(0,r.e)("MainContent")}),loader:o},RightColumnModule:{content:a()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(719),t.e(5492),t.e(649),t.e(1652),t.e(2748)]).then(t.bind(t,93822))},modules:["src/app/pages/your-catalogs/RightColumnContent"],webpack:function(){return[93822]},loading:function(){return null},render:(0,r.e)("RightColumnContent")})}}}},88878:(e,n,t)=>{t.r(n),t.d(n,{YourStoriesPage:()=>l});var i=t(53259),a=t.n(i),r=t(60781),o=a()({loader:function(){return Promise.all([t.e(4284),t.e(4216)]).then(t.bind(t,18999))},modules:["src/app/pages/your-stories/MainContent"],webpack:function(){return[18999]},loading:function(){return null},render:r.i}),l={id:"your-stories",layoutConfig:{name:"TwoColumnLayout"},modules:{MainModule:{content:a()({loader:function(){return Promise.all([t.e(4284),t.e(4216)]).then(t.bind(t,18999))},modules:["src/app/pages/your-stories/MainContent"],webpack:function(){return[18999]},loading:function(){return null},render:(0,r.e)("MainContent")}),loader:o},RightColumnModule:{content:a()({loader:function(){return Promise.all([t.e(5049),t.e(1386),t.e(9977),t.e(719),t.e(5492),t.e(649),t.e(1652),t.e(3645)]).then(t.bind(t,47671))},modules:["src/app/pages/your-stories/RightColumnContent"],webpack:function(){return[47671]},loading:function(){return null},render:(0,r.e)("RightColumnContent")})}}}},10517:(e,n,t)=>{t.d(n,{a:()=>u,j:()=>d});var i=t(96540),a=t(80545),r=t(55695),o=t(39160),l=t(31372);function c(){var e=(0,l.L)().timer,n=function n(t){var i=t.resource,a=t.callback,r=t.max,o=t.ms,l=t.tries;if(l{t.d(n,{H:()=>p,L:()=>u});var i=t(80296),a=t(96540),r=t(75636),o=t(27721),l=t(39160),c=t(66973),s=(0,a.createContext)(void 0),u=function(){return(0,a.useContext)(s)},d=new c.A("sprig-attributes"),m=function(e){var n=e.children,t=(0,a.useState)(),c=(0,i.A)(t,2),u=c[0],m=c[1],p=(0,l.d4)((function(e){return e.client.viewerIsBot})),f=(0,r.z)({name:"enable_sprig",placeholder:!1}),g=(0,o.R)(),h=g.loading,v=g.value,k=(0,l.d4)((function(e){return"production"===e.config.target})),S=(0,a.useCallback)((function(e,n){return d.set(e,n)}),[]),b=(0,a.useCallback)((function(){var e=d.getItems();d.clean(),null==u||u.setAttributes(e)}),[u]),E=(0,a.useCallback)((function(){b();for(var e=arguments.length,n=new Array(e),t=0;t{t.d(n,{K:()=>k});var i,a,r=t(96540),o=t(12378),l=t(44402);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{a:()=>s});var i=t(96540),a=t(12378),r=t(44402),o=t(75061),l=t(21835),c=function(e){return{width:(0,a.c)(e),height:(0,a.c)(e)}},s=function(e){var n=e.size,t=e.withBorder,a=e.rules,s={role:"presentation","aria-hidden":"true",focusable:"false",className:(0,r.l)()(a||c(null!=n?n:20))};return t?i.createElement(o.A,s):i.createElement(l.A,s)}},56173:(e,n,t)=>{t.d(n,{s:()=>E});var i=t(96540),a=t(41299),r=t(52290),o=t(36557),l=t(44402),c=t(42976),s=t(88609),u=t(72346),d=t(27721),m=t(99731),p=t(86527),f=t(77662),g=t(56942),h=t(51260),v=t(46879),k=function(e){var n,t,a,l=e.user,s=(0,d.R)(),k=s.value,S=s.loading,b=(0,h.au)(),E=(null==k||null===(n=k.membership)||void 0===n?void 0:n.tier)===c.T3.MEMBER,y=(null==k||null===(t=k.membership)||void 0===t?void 0:t.tier)===c.T3.FRIEND,N="Become a Friend of Medium to increase your contribution to writers and strengthen your support for our independent, ad-free platform.";if((null==k?void 0:k.id)===l.id)N="You’re currently a Friend of Medium and have been since ".concat((0,u.A)(null==k||null===(a=k.membership)||void 0===a?void 0:a.friendSince,"LLLL yyyy"),".");else if(y){var w;N="".concat(l.name," has been a Friend of Medium since ").concat((0,u.A)(null==l||null===(w=l.membership)||void 0===w?void 0:w.friendSince,"LLLL yyyy"),".")}return i.createElement(r.a,{alignItems:"center",display:"flex",flexDirection:"column",width:"240px",padding:"24px",textAlign:"center"},S?i.createElement(f.k,null):i.createElement(i.Fragment,null,i.createElement(g.DZ,{scale:"XS"},"Friend of Medium"),i.createElement(r.a,{marginTop:"8px"},i.createElement(o.kZ,{scale:"M"},N)),!y&&i.createElement(r.a,{marginTop:"24px",width:"100%"},i.createElement(m.$n,{buttonStyle:"STRONG",width:"100%",href:b(E?"ShowManageMembershipPage":"ShowPay",{})},"Upgrade")),i.createElement(r.a,{marginTop:"16px",width:"100%"},i.createElement(p.N,{href:v.lqp},i.createElement(o.kZ,{scale:"M",color:"ACCENT"},"Learn more")))))},S=t(48795),b=t(4676),E=function(e){var n=e.tier,t=e.size,u=e.withBorder,d=e.withText,m=e.withPopover,p=e.user,f=(0,l.l)(),g=(0,i.useCallback)((function(e){return function(){return i.createElement(k,{user:e})}}),[]),h=i.createElement(S.a,{size:t});return n===c.T3.FRIEND&&(h=i.createElement(s.K,{withBorder:u,size:t}),m&&p&&(h=i.createElement(a.R,{targetDistance:15,mouseLeaveDelay:100,popoverRenderFn:g(p),display:"flex"},h)),d&&(h=i.createElement(r.a,{display:"flex"},i.createElement(r.a,{display:"flex",marginRight:"5px"},h),i.createElement(o.kZ,{scale:"M"},i.createElement("span",{className:f({fontWeight:500})},b.uz[c.T3.FRIEND]," of Medium"))))),h}},64800:(e,n,t)=>{t.d(n,{m:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationCanonicalizer_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:"customDomainState"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"live"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"domain"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"slug"}}]}}]}},68715:(e,n,t)=>{t.d(n,{n:()=>l});var i=t(45458),a=t(82567),r=t(3545),o=t(12790),l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CollectionTooltip_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:"name"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"subscriberCount"}},{kind:"Field",name:{kind:"Name",value:"customStyleSheet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"header"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"backgroundImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionAvatar_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionFollowButton_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"EntityPresentationRankedModulePublishingTracker_entity"}}]}}].concat((0,i.A)(a.$.definitions),(0,i.A)(r.f.definitions),(0,i.A)(o.c.definitions))}},26365:(e,n,t)=>{t.d(n,{z:()=>g});var i=t(96540),a=t(54239),r=t(52290),o=(t(34181),t(56942),t(36557),function(e){return e.error,null}),l=t(86527),c=t(95107),s=t(41070),u=t(44402),d=t(39160),m=t(18642),p=t(46879),f={fontSize:"48px",fontWeight:600,lineHeight:"120px",width:"120px",height:"120px",textAlign:"center"};function g(e){var n=e.error,t=e.tag,g=void 0===t?"div":t,h=(0,u.l)(),v=(0,d.d4)((function(e){return e.config.authDomain})),k=(0,d.d4)((function(e){return e.config.productName}));(0,s.NJ)(new Error("[500]: ".concat(n.message)),{status:500,err:n});var S=g;return i.createElement(a.qh,{render:function(e){var t=e.staticContext;return t&&(n.message.includes("409: Conflict")?t.statusCode=409:t.statusCode=500),i.createElement(S,null,i.createElement(r.a,{tag:"section",paddingTop:"60px",paddingBottom:"60px",display:"flex",justifyContent:"center"},i.createElement("div",{className:h({background:(0,m.CM)(.15),color:m.ON,marginRight:"20px"})},i.createElement("div",{className:h(f)},"500")),i.createElement(r.a,{display:"flex",flexDirection:"column",justifyContent:"space-between"},i.createElement(c.mz,{scale:"M"},"Apologies, but something went wrong on our end."),i.createElement("div",null,"Refresh the page, check"," ",i.createElement(l.N,{href:(0,p.hG4)(),linkStyle:"OBVIOUS",inline:!0},k,"’s site status"),", or"," ",i.createElement(l.N,{href:"https://".concat(v,"/browse/top"),linkStyle:"OBVIOUS",inline:!0},"find something interesting to read"),"."))),i.createElement(o,{error:n}))}})}},51622:(e,n,t)=>{t.d(n,{u:()=>q});var i=t(39181),a=t(96540),r=t(69733),o=t(39204),l=t(91271),c=t(42136),s=t(23393),u=t(52290),d=t(86975),m=t(36557),p=t(39160),f=t(27715),g=t(46879),h=(0,r.Ng)((function(e){return{currentLocation:e.navigation.currentLocation}}))((function(e){var n=e.currentLocation,t=e.post,i=(0,p.d4)((function(e){return e.config.authDomain})),r=t.creator,h=t.readingTime;return r?a.createElement(u.a,{display:"flex",alignItems:"center"},a.createElement(s.H8,{user:r,scale:"S",link:!0}),a.createElement(u.a,{marginLeft:"16px"},a.createElement(m.kZ,{scale:"S",color:"DARKER",tag:"div"},a.createElement(d.D,{href:(0,g.EpC)(r,i)},r.name),"APPROVED"===t.statusForCollection&&t.collection&&t.collection.name&&a.createElement(d.D,{href:(0,g.eBL)(t.collection,n)}," in ",t.collection&&t.collection.name)),a.createElement(u.a,{display:"flex",alignItems:"center",flexWrap:"wrap"},a.createElement(m.kZ,{scale:"S",tag:"div"},a.createElement(c.z,{middotPadding:"4px",marginRight:"8px",display:"flex",flexWrap:"wrap"},t&&t.updatedAt&&a.createElement(l.n9,{timestamp:t.updatedAt}),"".concat((0,f.M8)(h||0)," min read"))),t.isLocked&&a.createElement(o.F,{post:t})))):null})),v=t(82284),k=t(11331),S=t.n(k),b=t(44402),E=t(38667),y=t(90383),N={display:"block",backgroundOrigin:"border-box",backgroundSize:"cover"},w=function(e){var n,t=e.post,i=e.width,r=e.height,o=e.miroWidth,l=e.miroHeight,c=(0,b.l)(),s=(0,p.Dy)((function(e){return e.config.defaultImages})),u=i||o,m=r||l,f=t.previewImage,h=null==s||null===(n=s.postPreviewImage)||void 0===n?void 0:n.imageId,k=(0,y.rP)({miroId:(null==f?void 0:f.id)||h,width:o,height:l,strategy:y.qY.Resample}),w=(null==f?void 0:f.focusPercentX)||50,P=(null==f?void 0:f.focusPercentY)||50;return a.createElement(d.D,{href:(0,g.us)(t),className:c([N,function(e){var n={backgroundPosition:"".concat(w,"% ").concat(P,"%"),backgroundImage:"url(".concat(k,")"),height:"number"==typeof m?"".concat(m,"px"):m,width:"number"==typeof u?"".concat(u,"px"):u};return"object"===(0,v.A)(u)&&S()(u)&&Object.keys(u).forEach((function(t){if("base"!==t){var i=E[t](e);if(u[t]){n[i]=n[i]||{};var a=u[t];n[i].width="number"==typeof a?"".concat(a,"px"):a}}})),"object"===(0,v.A)(m)&&S()(m)&&Object.keys(m).forEach((function(t){if("base"!==t){var i=E[t](e);if(m[t]){n[i]=n[i]||{};var a=m[t];n[i].height="number"==typeof a?"".concat(a,"px"):a}}})),n}])})},P=t(56942),O=function(e){var n=e.post;return a.createElement(d.D,{href:(0,g.us)(n)},a.createElement(P.DZ,{scale:"S",tag:"h4",clamp:2},n.title))},T=function(e){var n=e.post,t=e.imageWidth,i=void 0===t?767:t,r=e.imageHeight,o=void 0===r?271:r;return a.createElement(u.a,{display:"flex",flexDirection:"column",minHeight:"266px"},a.createElement(w,{post:n,miroWidth:i,miroHeight:o}),a.createElement(u.a,{flexGrow:"1",margin:"16px 16px 0 16px"},a.createElement(O,{post:n})),a.createElement(u.a,{marginTop:"20px",marginBottom:"20px",paddingLeft:"16px",paddingRight:"16px"},a.createElement(h,{post:n})))},C=t(86527),A=t(20621),_=t(615),I=t(28072),R=t(85050),F=t(95107),L=t(20239),M=t(51260),D=t(18642),x=t(80890),U=t(45458),B=t(77485),j=t(59265),V=t(4424),H={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostListingItemBylineWithAvatar_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"imageId"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserAvatar_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}},{kind:"Field",name:{kind:"Name",value:"isLocked"}},{kind:"Field",name:{kind:"Name",value:"readingTime"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"statusForCollection"}},{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:"FragmentSpread",name:{kind:"Name",value:"collectionUrl_collection"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"Star_post"}}]}}].concat((0,U.A)(B.R.definitions),(0,U.A)(j.v0.definitions),(0,U.A)(j.dl.definitions),(0,U.A)(V.c.definitions))},G={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostCard_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostCardTitle_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostListingItemImage_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostListingItemBylineWithAvatar_post"}}]}}].concat((0,U.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PostCardTitle_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:"mediumUrl"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}}]),(0,U.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PostListingItemImage_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:"mediumUrl"}},{kind:"Field",name:{kind:"Name",value:"previewImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"focusPercentX"}},{kind:"Field",name:{kind:"Name",value:"focusPercentY"}}]}}]}}]),(0,U.A)(H.definitions))},W={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"NotFoundScreenQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"staffPicksFeed"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"paging"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"4"}}]}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostCard_post"}}]}}]}}]}}]}}].concat((0,U.A)(G.definitions))};function z(e){var n=e.marginTop,t=void 0===n?"40px":n,i=(0,b.l)(),r=(0,p.d4)((function(e){return e.config.productName})),o=(0,M.om)();return a.createElement(u.a,{textAlign:"center"},a.createElement(u.a,{marginTop:t},a.createElement("div",{className:i((0,x.B_)({fontSize:13}))},"PAGE NOT FOUND")),a.createElement(u.a,{marginTop:"8px"},a.createElement(F.mz,{scale:"XXXL"},a.createElement("span",{className:i({color:D.Dx})},"404"))),a.createElement(u.a,{marginTop:"8px"},a.createElement(F.mz,{scale:"L"},"Out of nothing, something.")),a.createElement(u.a,{marginTop:"16px"},a.createElement("div",{className:i((0,x.B_)({fontSize:16}))},"You can find (just about) anything on ",r," — apparently even a page that doesn’t exist. Maybe these stories will take you somewhere new?")),a.createElement(u.a,{marginTop:"16px"},a.createElement("div",{className:i((0,x.B_)({fontSize:16}))},a.createElement(C.N,{href:o("ShowHome",{}),inline:!0,linkStyle:"OBVIOUS"},"Home"))))}function Y(){var e=(0,L.D)(),n=(0,i.I)(W).data,t=null==n?void 0:n.staffPicksFeed.items.map((function(e){return e.post})).filter((function(e){return!!e}));return null!=t&&t.length?a.createElement(u.a,{marginTop:"40px"},a.createElement(A.E,{gutters:!1},t.map((function(n,t){return a.createElement(_.E,{key:t,size:{xs:12,sm:12,md:12,lg:12,xl:6}},a.createElement(u.a,{key:t,border:"neutral.primary",borderRadius:"5px",boxShadow:"0 1px 4px ".concat(e.colorTokens.border.neutral.primary.base),margin:"8px",overflow:"hidden"},a.createElement(R.V,{xl:!0},a.createElement(T,{post:n,imageWidth:330,imageHeight:101})),a.createElement(R.V,{lg:!0,md:!0,sm:!0,xs:!0},a.createElement(T,{post:n}))))})))):null}function q(e){var n=e.marginTop;return a.createElement(I.P,{size:"app"},a.createElement(z,{marginTop:n}),a.createElement(Y,null))}},49912:(e,n,t)=>{t.d(n,{O:()=>m});var i=t(96540),a=t(69733),r=t(32097),o=t(2550),l=t(27721),c=t(42126),s=t(50684),u=t(39160),d=t(41216),m=function(e){var n=e.data,t=void 0===n?{}:n,m=e.isBlocked,p=void 0!==m&&m,f=e.loading,g=e.show,h=t.canonicalUrl,v=t.collectionViewerEdge,k=t.creatorViewerEdge,S=t.pageType,b=t.post,E=t.profileName,y=t.profilePhoto,N=t.profileUsername,w=t.topicViewerEdge,P=(0,a.wA)(),O=(0,o.A)(),T=O.loading,C=O.viewerId,A=(0,d.d)(),_=A.loading,I=A.inAppBrowser,R=(0,l.R)(),F=R.loading,L=R.value,M=(0,u.d4)((function(e){return e.navigation.referrer})),D=(0,s.MW)();(0,i.useEffect)((function(){if(!(f||F||T||!C||_)){var e=(0,r.Qy)({collectionViewerEdge:v,creatorViewerEdge:k,currentUserId:C,inAppBrowser:I,page_type:S,post:b,profile_name:E,profile_photo:y,profile_username:N,referrer:M,referrerSource:D,viewer:L,topicViewerEdge:w});return h&&(e.data.$canonical_url=h),(0,r.Wp)(e),P((0,c.NJ)(e)),g&&(P((0,c.a1)()),P((0,c.QT)(p))),function(){P((0,c.NZ)())}}}),[f,F,T,C,_])}},95765:(e,n,t)=>{t.d(n,{x:()=>o});var i=t(96540),a=t(52290),r=t(77662);function o(e){var n=e.height,t=void 0===n?"100vh":n,o=e.width,l=void 0===o?"100%":o;return i.createElement(a.a,{height:t,width:l,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"BACKGROUND"},i.createElement(r.k,null))}},60491:(e,n,t)=>{t.d(n,{o:()=>o});var i=t(96540),a=t(72130),r=t(79429),o=function(e){var n=e.tag,t=void 0===n?"span":n,o=e.children,l=t,c=(0,a.$L)(),s=(0,r.s)({onPresentedFn:function(){c.event("mastodonForMembers.presented",{})}});return i.createElement(l,{ref:s},o)}},43964:(e,n,t)=>{t.d(n,{u:()=>V});var i=t(80296),a=t(95420),r=t(39181),o=t(2118),l=t(96540),c=t(65464),s=t(64314),u=t(52290),d=t(95107),m=t(36557),p=t(72130),f=t(49287),g=t(42976),h=t(50684),v=t(39160),k=t(60603),S=t(79959),b=t(10531),E=function(e){var n=e.maxWidth;return l.createElement(u.a,{maxWidth:n,width:"100%",margin:"auto auto 8px",height:"18px",backgroundColor:"BASE_NORMAL"})},y=function(){return l.createElement(u.a,{display:"block",margin:"32px 0",textAlign:"center"},l.createElement(E,{maxWidth:"280px"}),l.createElement(E,{maxWidth:"280px"}),l.createElement(u.a,{height:"18px"}),l.createElement(E,{maxWidth:"210px"}),l.createElement(u.a,{height:"18px"}),l.createElement(E,{maxWidth:"80px"}))},N=function(){return l.createElement(b.H,{itemPlaceholder:y,numPlaceholders:1})},w=t(45458),P=t(5276),O=t(43769),T=t(18496),C={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserPaymentMethod_membershipStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MembershipStatus"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentMethod"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreditCard"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cardType"}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"getPaymentMethodInfo_membershipStatus"}}]}}].concat((0,w.A)(T.J.definitions))},A={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ReactivateMembershipConfirmationModalWrapper_membershipStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MembershipStatus"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"membershipId"}},{kind:"Field",name:{kind:"Name",value:"currentPeriodEndsAt"}},{kind:"Field",name:{kind:"Name",value:"startedAt"}},{kind:"Field",name:{kind:"Name",value:"planV2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"numCycles"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"switchPlanSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startAt"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"getCurrentMembershipPlanFormatedPrice_membershipStatus"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useCurrentMembershipType_membershipStatus"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserPaymentMethod_membershipStatus"}}]}}].concat((0,w.A)(P.r.definitions),(0,w.A)(O.M.definitions),(0,w.A)(C.definitions))},_={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ReactivateMembershipConfirmationModalWrapperQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"membership"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReactivateMembershipConfirmationModalWrapper_membershipStatus"}}]}}]}}]}}]}}].concat((0,w.A)(A.definitions))},I={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UncancelMembershipMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UncancelMembershipInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"uncancelMembership"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]},R=t(58168),F=t(16221),L=t(70106),M=function(e){var n,t=e.membership,i=e.containerProps;return l.createElement(u.a,(0,R.A)({display:"flex",alignItems:"center"},i),l.createElement(m.kZ,{scale:"M",color:"LIGHTER"},(0,F.K)(t,"")),"CreditCard"===(null===(n=t.paymentMethod)||void 0===n?void 0:n.__typename)&&l.createElement(u.a,{marginLeft:"16px",tag:"span"},l.createElement(L.B,{cardType:t.paymentMethod.cardType})))},D=t(44576),x=t(4676),U=t(13585),B=t(40739),j=function(){return null},V=function(e){var n,t,b,E=e.children,y=e.withOpenFromUrl,w=void 0!==y&&y,P=(0,l.useState)(""),O=(0,i.A)(P,2),T=O[0],C=O[1],A=(0,p.$L)(),R=(0,f.Fo)(),F=(0,f.PJ)((0,h.MW)()||""),L="email"===(null==F?void 0:F.name)?null==F?void 0:F.dimension:null==R?void 0:R.dimension,V=(0,a.n)(I,{onCompleted:function(e){"MutationSuccess"===e.uncancelMembership.__typename?(A.event("reactivateMembership.converted",{dimension:L}),(0,S.gG)(),window.location.reload()):C("We couldn't process your request, please try again.")}}),H=(0,i.A)(V,2),G=H[0],W=H[1],z=W.loading,Y=W.data,q=(0,k.e)(!1),K=(0,i.A)(q,3),Q=K[0],X=K[1],Z=K[2],$=(0,v.d4)((function(e){return e.client.hydrated})),J=(0,r.I)(_,{skip:!Q}).data,ee=null==J||null===(n=J.viewer)||void 0===n||null===(t=n.viewerEdge)||void 0===t?void 0:t.membership,ne=(0,U.T)(ee),te=(0,B.M)("#reactivateMembership",w?X:j,w?Z:j).cleanUrlAndHideModal,ie=(0,l.useCallback)((function(){ee&&(C(""),G({variables:{input:{membershipId:ee.membershipId}}}))}),[G,null==ee?void 0:ee.membershipId]),ae=(0,l.useMemo)((function(){var e,n;if(!ee)return null;var t="";if((null===(e=ee.switchPlanSchedule)||void 0===e||!e.startAt)&&null!==(n=ee.planV2)&&void 0!==n&&n.discount&&ne===g.VM.MONTHLY){var i=(0,D.s)(ee),a=(0,c.a)((0,o.A)(new Date(ee.startedAt),ee.planV2.discount.numCycles).getTime());t=" ".concat(i," monthly until ").concat(a," and then")}var r=(0,D.s)(ee,{ignoreDiscount:!0}),l=(0,x.O9)(ne,{yearLabel:"annually"});return"You'll be charged".concat(t," ").concat(r," ").concat(l," with this payment method:")}),[ee,ne]);(0,l.useEffect)((function(){Q&&A.event("reactivateMembership.confirmationViewed",{dimension:L})}),[Q,L]);var re="MutationSuccess"===(null==Y||null===(b=Y.uncancelMembership)||void 0===b?void 0:b.__typename);return l.createElement(l.Fragment,null,E({showConfirmation:X}),l.createElement(s.m,{isVisible:Q&&$,hide:w?te:Z,disableConfirm:z||re||!ee,confirmText:"Reactivate my membership",hideOnConfirm:!1,onConfirm:ie},l.createElement(u.a,{margin:"0 auto",width:{xs:"100%",sm:"100%",md:"426px",lg:"426px",xl:"426px"},paddingTop:{xs:"10px",sm:"10px",md:"0",lg:"0",xl:"0"}},l.createElement(u.a,{textAlign:"center",margin:"0 20px"},l.createElement(d.mz,{tag:"h1",scale:{xs:"M",sm:"M",md:"L",lg:"L",xl:"L"}},"Reactivate your Membership")),!!ee&&l.createElement(u.a,{display:"block",margin:"32px 0",textAlign:"center"},l.createElement(m.kZ,{scale:"L",color:"DARKER"},"You’ll enjoy your membership benefits without interruption, and your next billing cycle will start on ",(0,c.a)(ee.currentPeriodEndsAt),".",l.createElement("br",null),l.createElement("br",null),ae),l.createElement(M,{membership:ee,containerProps:{marginTop:"32px",justifyContent:"center"}}),T&&l.createElement(u.a,{textAlign:"center",marginTop:"32px"},l.createElement(m.kZ,{scale:"M",color:"ERROR"},T))),!ee&&l.createElement(N,null))))}},59031:(e,n,t)=>{t.d(n,{Z:()=>l});var i=t(96540),a=t(72130),r=t(49287),o=t(79429),l=function(e){var n=e.tag,t=void 0===n?"span":n,l=e.children,c=t,s=(0,a.$L)(),u=(0,r.Fo)(),d=(0,o.s)({onPresentedFn:function(){s.event("reactivateMembership.presented",{dimension:null==u?void 0:u.dimension})}});return i.createElement(c,{ref:d},l)}},5276:(e,n,t)=>{t.d(n,{r:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"getCurrentMembershipPlanFormatedPrice_membershipStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MembershipStatus"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"discountEndsAt"}},{kind:"Field",name:{kind:"Name",value:"planV2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"regularPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"switchPlanSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"plan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"price"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}}]}}]}}]}}]}},44576:(e,n,t)=>{t.d(n,{s:()=>a});var i=t(52254);function a(e,n){var t,a;if(e.switchPlanSchedule)return(0,i.dl)({amount:e.switchPlanSchedule.plan.price.amount,currency:e.switchPlanSchedule.plan.price.currency});var r=!!e.discountEndsAt;return(0,i.dl)({amount:null!=n&&n.ignoreDiscount&&r&&null!==(t=e.planV2)&&void 0!==t&&t.discount?e.planV2.discount.regularPrice.amount:e.amount,currency:null!=n&&n.ignoreDiscount&&r&&null!==(a=e.planV2)&&void 0!==a&&a.discount?e.planV2.discount.regularPrice.currency:e.currency})}},4676:(e,n,t)=>{t.d(n,{$m:()=>k,EY:()=>f,IC:()=>h,O9:()=>b,Oj:()=>v,eu:()=>m,pZ:()=>g,uR:()=>S,uz:()=>E});var i,a,r,o=t(64467),l=t(14792),c=t.n(l),s=t(78493),u=t(42976),d=(i={},(0,o.A)(i,u.T3.MEMBER,[u.VM.MONTHLY,u.VM.YEARLY]),(0,o.A)(i,u.T3.FRIEND,[u.VM.PREMIUM_MONTHLY,u.VM.PREMIUM_YEARLY]),i);function m(e,n){return e.filter((function(e){return d[n].includes(e.membershipType)}))}var p=(a={},(0,o.A)(a,u.$F.MONTHLY,[u.VM.MONTHLY,u.VM.PREMIUM_MONTHLY]),(0,o.A)(a,u.$F.ANNUAL,[u.VM.YEARLY,u.VM.PREMIUM_YEARLY]),a);function f(e,n){return e.filter((function(e){return p[n].includes(e.membershipType)}))}function g(e){return d[u.T3.MEMBER].includes(e)?u.T3.MEMBER:u.T3.FRIEND}var h=function(e){return e===u.VM.YEARLY||e===u.VM.PREMIUM_YEARLY},v=function(e){return e===u.VM.MONTHLY||e===u.VM.PREMIUM_MONTHLY},k=function(e){return e===u.VM.MONTHLY||e===u.VM.YEARLY},S=function(e){return e===u.VM.PREMIUM_MONTHLY||e===u.VM.PREMIUM_YEARLY},b=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.capitalize,i=n.monthLabel,a=void 0===i?"monthly":i,r=n.yearLabel,o=void 0===r?"yearly":r,l="";switch(e){case u.VM.MONTHLY:case u.VM.PREMIUM_MONTHLY:case s.yV.Monthly:case s.yV.PremiumMonthly:case u.$F.MONTHLY:l=a;break;case u.VM.YEARLY:case u.VM.PREMIUM_YEARLY:case s.yV.Yearly:case s.yV.PremiumYearly:case u.$F.ANNUAL:l=o}return t?c()(l):l},E=(r={},(0,o.A)(r,u.T3.MEMBER,"Member"),(0,o.A)(r,u.T3.FRIEND,"Friend"),r)},33285:(e,n,t)=>{t.d(n,{p:()=>r,u:()=>a});var i=t(45458),a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"useCanSwitchMembershipPlan_membershipStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MembershipStatus"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentProvider"}},{kind:"Field",name:{kind:"Name",value:"isCancelled"}},{kind:"Field",name:{kind:"Name",value:"paymentFailedAt"}}]}}]},r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UseCanSwitchMembershipPlanQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"membership"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"useCanSwitchMembershipPlan_membershipStatus"}}]}}]}}]}}]}}].concat((0,i.A)(a.definitions))}},59301:(e,n,t)=>{t.d(n,{z:()=>o});var i=t(39181),a=t(42976),r=t(33285);function o(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.skip,l=void 0!==o&&o,c=t.membership,s=(0,i.I)(r.p,{skip:l||!!c}),u=s.data,d=s.loading,m=c||(null==u||null===(e=u.viewer)||void 0===e||null===(n=e.viewerEdge)||void 0===n?void 0:n.membership),p=null==m?void 0:m.paymentProvider,f=null==m?void 0:m.paymentFailedAt,g=null==m?void 0:m.isCancelled;return{canSwitchMembershipPlan:!(p!==a.CA.BRAINTREE&&p!==a.CA.STRIPE||f||g),loading:d}}},43769:(e,n,t)=>{t.d(n,{M:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"useCurrentMembershipType_membershipStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MembershipStatus"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"membershipType"}},{kind:"Field",name:{kind:"Name",value:"switchPlanSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"plan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"membershipType"}}]}}]}}]}}]}},13585:(e,n,t)=>{function i(e){var n,t;return e?(null===(n=e.switchPlanSchedule)||void 0===n||null===(t=n.plan)||void 0===t?void 0:t.membershipType)||e.membershipType:null}t.d(n,{T:()=>i})},99886:(e,n,t)=>{t.d(n,{r:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"useIsReactivateMembershipVisible_membershipStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MembershipStatus"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isCancelled"}},{kind:"Field",name:{kind:"Name",value:"paymentProvider"}},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]}},65498:(e,n,t)=>{t.d(n,{U:()=>a});var i=t(42976),a=function(e){var n=(null==e?void 0:e.paymentProvider)===i.CA.STRIPE||(null==e?void 0:e.paymentProvider)===i.CA.BRAINTREE;return!!e&&n&&e.isCancelled&&!!e.paymentMethod}},4424:(e,n,t)=>{t.d(n,{c:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"Star_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:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},39204:(e,n,t)=>{t.d(n,{F:()=>C});var i=t(80296),a=t(89089),r=t(96540),o=t(52290),l=t(24960),c=t(5600),s=t(85050),u=t(36557),d=t(72130),m=t(44402),p=t(79429),f=t(21835),g=t(60603),h=t(72346),v=t(27721),k=t(43634),S=t(99731),b=t(86527),E=t(56942),y=t(49287),N=t(51260),w=function(e){var n,t=e.creatorId,i=(0,v.R)().value,a=(0,N.Nw)("ShowPay",{}),l=(0,N.Nw)("ShowSubscriptionsLanding",{}),c=(null==i?void 0:i.id)===t,s=!(null==i||!i.membership),d=(0,r.useMemo)((function(){return c?"This story is only viewable by Medium Members. It is behind the paywall and is eligible to earn money.":s?"You’re currently a Medium Member and have been since ".concat((0,h.A)(i.membership.memberSince,"LLL yyyy"),"."):"Become a Medium member to enjoy unlimited access and directly support the writers you read most."}),[c,s,null==i||null===(n=i.membership)||void 0===n?void 0:n.memberSince]);return r.createElement(y.Ne,{extendSource:!0,source:{name:"moc_star_popover"}},r.createElement(o.a,{alignItems:"center",display:"flex",flexDirection:"column",maxWidth:"240px",padding:"24px",textAlign:"center"},r.createElement(E.DZ,{scale:"XS"},"Member-only story"),r.createElement(o.a,{paddingTop:"8px"}),r.createElement(u.kZ,{scale:"M"},d),(c||!s)&&r.createElement(r.Fragment,null,r.createElement(o.a,{paddingTop:"24px"}),!c&&r.createElement(r.Fragment,null,i?r.createElement(S.$n,{buttonStyle:"STRONG",href:a,width:"100%"},"Get unlimited access"):r.createElement(k.r,{isButton:!0,buttonStyle:"STRONG",buttonWidth:"100%",operation:"login",susiEntry:"moc_star_popover",redirectTo:a},"Get unlimited access"),r.createElement(o.a,{paddingTop:"16px"})),r.createElement(u.kZ,{scale:"M"},r.createElement(b.N,{linkStyle:"OBVIOUS",href:l,target:"_blank"},"Learn more")))))},P={display:"block",border:"none",cursor:"pointer",padding:"0"},O={marginRight:"4px",marginTop:"2px"},T=function(e){var n,t=e.margin,h=e.padding,v=e.post,k=e.scale,S=void 0===k?"M":k,b=e.hideLabelDesktop,E=e.showLabelMobile,y=e.label,N=void 0===y?"Member-only":y,T=(0,m.l)(),C=(0,g.e)(!1),A=(0,i.A)(C,3),_=A[0],I=A[1],R=A[2],F=(0,d.$L)(),L=(0,r.useCallback)((function(){F.event("button.clientPresented",{buttonType:"moc_star",postId:v.id})}),[F]),M=(0,p.s)({onPresentedFn:L}),D=(0,r.useCallback)((function(){F.event("button.clicked",{buttonType:"moc_star",postId:v.id}),I()}),[F,I]),x=null===(n=v.creator)||void 0===n?void 0:n.id,U=(0,r.useCallback)((function(){return r.createElement(w,{creatorId:x})}),[x]),B=(0,a.B)();return r.createElement(o.a,{boxSizing:"content-box",margin:t,padding:h,display:"flex"},r.createElement(l.A,{ariaId:B,isVisible:_,hide:R,popoverRenderFn:U,targetDistance:10},r.createElement("button",{className:T(P),onClick:D,ref:M,"aria-label":"Member-only story"},r.createElement(s.V,{xs:!E,sm:!E,md:b,lg:b,xl:b},r.createElement(c.G,{tooltipText:"Member-only story",targetDistance:10},r.createElement(f.A,{width:"16",height:"16"}))),!b&&r.createElement(s.V,{xs:E,sm:E,md:!0,lg:!0,xl:!0,displayValue:"flex",alignItems:"center"},r.createElement(f.A,{className:T(O),width:"16",height:"16"}),r.createElement(u.kZ,{scale:S},N)))))},C=(0,r.memo)(T)},40739:(e,n,t)=>{t.d(n,{$:()=>l,M:()=>o});var i=t(96540),a=t(54239),r=t(79959);function o(e,n,t){var o=(0,a.zy)();return i.useEffect((function(){o.hash===e&&n()}),[o,n,e]),{cleanUrlAndHideModal:i.useCallback((function(){o.hash===e&&(0,r.gG)(),t&&t()}),[o,t,e])}}function l(e){return{setHash:i.useCallback((function(){window.location.hash=e}),[e]),removeHash:r.gG}}},64623:(e,n,t)=>{t.d(n,{_:()=>u});var i=t(45458),a=t(62742),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SubscribeButton_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SusiClickable_collection"}}]}}].concat((0,i.A)(a.Km.definitions))},o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SubscribeButton_newsletterV3"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsletterV3"}},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:"FragmentSpread",name:{kind:"Name",value:"SubscribeButton_collection"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"SusiClickable_newsletterV3"}}]}}].concat((0,i.A)(r.definitions),(0,i.A)(a.ei.definitions))},l=t(53301),c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"NewsletterV3PublicationSubscribeButton_newsletterV3"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsletterV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SubscribeButton_newsletterV3"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useNewsletterV3Subscription_newsletterV3"}}]}}].concat((0,i.A)(o.definitions),(0,i.A)(l.oY.definitions))},s=t(11860),u={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"NewsletterV3PublicationSubscribe_newsletterV3"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsletterV3"}},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:"FragmentSpread",name:{kind:"Name",value:"SusiClickable_collection"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"NewsletterV3PublicationSubscribeButton_newsletterV3"}},{kind:"FragmentSpread",name:{kind:"Name",value:"NewsletterV3PublicationSubscribeByEmail_newsletterV3"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useNewsletterV3Subscription_newsletterV3"}}]}}].concat((0,i.A)(a.Km.definitions),(0,i.A)(c.definitions),(0,i.A)(s.L.definitions),(0,i.A)(l.oY.definitions))}},11860:(e,n,t)=>{t.d(n,{D:()=>a,L:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"NewsletterV3PublicationSubscribeByEmail_newsletterV3"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsletterV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]},a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"NewsletterV3PublicationSubscribeByEmailMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"newsletterV3Id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"redirect"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"captchaValue"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"operation"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sendNewsletterSubscriptionAcctAuthEmail"},arguments:[{kind:"Argument",name:{kind:"Name",value:"newsletterV3Id"},value:{kind:"Variable",name:{kind:"Name",value:"newsletterV3Id"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"redirect"},value:{kind:"Variable",name:{kind:"Name",value:"redirect"}}},{kind:"Argument",name:{kind:"Name",value:"captchaValue"},value:{kind:"Variable",name:{kind:"Name",value:"captchaValue"}}},{kind:"Argument",name:{kind:"Name",value:"operation"},value:{kind:"Variable",name:{kind:"Name",value:"operation"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SusiMethod"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BadRequest"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FailedChallenge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NotFound"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]}},1620:(e,n,t)=>{t.d(n,{Fr:()=>r,LN:()=>l,xb:()=>o,zY:()=>s});var i=t(96540),a=t(52290),r=52,o=48,l={xs:"24px",sm:"24px",md:"".concat(r,"px"),lg:"".concat(r,"px"),xl:"".concat(r,"px")},c={xs:"24px",sm:"24px",md:"".concat(o,"px"),lg:"".concat(o,"px"),xl:"".concat(o,"px")},s=function(e){var n=e.heading,t=e.navbar,r=e.marginTop,o=e.marginBottom,s=e.navbarMargin,u=o?{xs:"24px",sm:"24px",md:"".concat(o,"px"),lg:"".concat(o,"px"),xl:"".concat(o,"px")}:c;return i.createElement(a.a,{marginTop:r||l,marginBottom:u},i.createElement(a.a,{marginBottom:s||"40px"},n),t)}},7367:(e,n,t)=>{t.d(n,{DN:()=>u,x5:()=>d});var i=t(80296),a=t(96540),r=t(44402),o=t(20239),l=t(66305),c=t(27412),s=t(97114),u=26,d=function(e){var n,t,c=e.children,s=e.childrenWidth,u=e.firstItemRef,d=e.scrollPixels,m=void 0===d?100:d,p=e.arrowPadding,g=e.arrowHeight,h=e.selectedItemRef,v=(0,r.l)(),k=(0,o.D)(),S=(0,a.useState)(!1),b=(0,i.A)(S,2),E=b[0],y=b[1],N=(0,a.useState)(!1),w=(0,i.A)(N,2),P=w[0],O=w[1],T=(0,a.useRef)(null),C=(0,a.useCallback)((function(e){T.current&&T.current.scrollBy({left:e,behavior:"smooth"})}),[]),A=(0,a.useCallback)((function(){C(m)}),[C,m]),_=(0,a.useCallback)((function(){C(-m)}),[C,m]),I=(0,a.useCallback)((function(){var e=T.current;if(e){var n,t,i=Math.floor(e.scrollWidth-(e.clientWidth+e.scrollLeft));y(i>0),O(e.scrollLeft>(null!==(n=null==u||null===(t=u.current)||void 0===t?void 0:t.offsetLeft)&&void 0!==n?n:0))}}),[u]);return(0,a.useEffect)((function(){I()}),[I,c]),(0,a.useEffect)((function(){return l.R5.on("resize",I),function(){return l.R5.off("resize",I)}}),[I]),(0,a.useEffect)((function(){var e=T.current;e&&s&&y(s>e.clientWidth)}),[s]),(0,a.useEffect)((function(){var e=null==h?void 0:h.current,n=T.current;if(e&&n){var t=e.offsetLeft,i=t+e.clientWidth,a=n.scrollLeft+72,r=n.scrollLeft+n.clientWidth-72;tr&&n.scrollTo({left:i-n.clientWidth+72,behavior:"smooth"})}}),[null==h?void 0:h.current]),a.createElement("div",{ref:T,onScroll:I,className:v((n={arrowHeight:g},t={display:"flex",alignItems:"center",overflowX:"scroll",overflowY:"hidden","::-webkit-scrollbar":{height:0,width:0,background:"transparent"},scrollbarWidth:"none",msOverflowStyle:"none"},void 0!==n.arrowHeight&&(t["::-webkit-scrollbar:horizontal"]={height:0}),t))},c,a.createElement(f,{onClick:A,backgroundColor:k.backgroundColor,padding:p,isVisible:E,isRight:!0,arrowHeight:g}),a.createElement(f,{onClick:_,backgroundColor:k.backgroundColor,padding:p,isVisible:P,arrowHeight:g}))},m=function(e){var n=e.background,t=e.isRight,i=e.padding,a=e.isVisible,r=e.arrowHeight,o={position:"absolute",right:t?"0":void 0,left:t?void 0:"0",top:"0",bottom:"12px",paddingLeft:t?"42px":i,paddingRight:t?i:"42px",display:"flex",alignItems:"center",pointerEvents:"none",opacity:a?1:0,background:n};return void 0!==r&&(o.height=r),o},p=function(e){return function(n){return{border:"none",padding:"0",margin:"2px",cursor:"pointer","& svg path":{fill:n.colorTokens.foreground.neutral.secondary.base},":hover svg path":{fill:n.colorTokens.foreground.neutral.primary.hover},pointerEvents:e?"all":void 0}}},f=function(e){var n=e.isRight,t=e.onClick,i=e.backgroundColor,o=e.padding,l=e.isVisible,d=e.arrowHeight,f=(0,r.l)(),g=(0,a.useCallback)((function(e,n){return"".concat((0,s.Sl)(i,e)," ").concat(n,"%")}),[i]),h="linear-gradient(".concat(n?90:270,"deg, ").concat(g(0,0),", ").concat(g(.75,25),", ").concat(g(.9,50),", ").concat(g(1,75),")");return a.createElement("div",{className:f(m({background:h,isRight:n,padding:o,isVisible:l,arrowHeight:d}))},a.createElement("button",{className:f(p(l)),onClick:t,"aria-label":n?"next sections":"previous sections",tabIndex:l?0:-1},a.createElement(c.A,{height:"".concat(u,"px"),width:"".concat(u,"px"),style:n?{transform:"rotate(180deg)"}:void 0,"aria-hidden":"true"})))}},26947:(e,n,t)=>{t.d(n,{F:()=>d});var i=t(96540),a=t(52290),r=t(49287),o=t(44402),l=t(20239),c=t(6707),s=t(7367),u=t(36541),d=function(e){var n=e.items,t=e.isSearchPage,d=(0,o.l)(),m=(0,l.D)(),p="scroller-items",f=(0,c.P)("#".concat(p)).width;return i.createElement(a.a,{position:"relative",boxShadow:"inset 0 -1px 0 ".concat(m.colorTokens.border.neutral.primary.base),overflow:"hidden"},i.createElement(s.x5,{childrenWidth:f},i.createElement("div",{id:p,className:d({display:"flex"})},n.map((function(e,a){var o=a===n.length-1?"50px":e.marginRight,l=e.tab,c=e.text,s=e.onClick,d=e.isActive,m=e.target,p=e.tabIndex,f=e.ariaControls,g=e.href;return i.createElement(r.Ne,{source:{index:a},extendSource:!0,key:"page-navigation-tab-".concat(c,"-").concat(a)},i.createElement(u.X,{tab:l,text:c,href:g,onClick:s,isActive:d,target:m,tabIndex:p,ariaControls:f,marginRight:o,isSearchPage:t}))})))))}},36541:(e,n,t)=>{t.d(n,{X:()=>p});var i=t(96540),a=t(54239),r=t(52290),o=t(86527),l=t(36557),c=t(44402),s=t(39160),u=t(39289),d=t(40728),m=function(e){return{":hover":{color:"".concat(e.colorTokens.foreground.neutral.primary.hover," !important")}}},p=function(e){var n=(0,c.l)(),t=(0,u.i)(),p=e.tab,f=e.target,g=e.text,h=e.isSearchPage,v=e.marginRight,k=void 0===v?"32px":v,S="href"in e?e.href:void 0,b="onClick"in e?e.onClick:void 0,E="tabIndex"in e?e.tabIndex:void 0,y="ariaControls"in e?e.ariaControls:void 0,N="isActive"in e?e.isActive:t(S||""),w=(0,s.d4)((function(e){return e.navigation.currentLocation})),P=(0,a.zy)(),O=(0,d.JO)(P.search).q,T="".concat(w,"?q=").concat(O),C=h?S===T:N||t(null!=S?S:"");return i.createElement(r.a,{marginRight:k,paddingBottom:"16px",minWidth:"max-content",borderBottom:C?"neutral.secondary":"neutral.primary"},i.createElement(o.N,{role:"tab",onClick:b,href:S,target:f,tabIndex:E,"aria-controls":y,"data-testid":p?"".concat(p,"Tab"):void 0,className:n({border:"none",cursor:"pointer",padding:"0px"})},i.createElement(l.kZ,{scale:"M",color:C?"DARKER":"LIGHTER"},i.createElement("span",{className:n(m)},g))))}},11134:(e,n,t)=>{t.d(n,{F:()=>w,x:()=>P});var i=t(96540),a=t(80296),r=t(54239),o=t(2550),l=t(65138),c=t(61538),s=t(51260),u=t(61333),d=(0,i.memo)((function(e){var n=e.name,t=e.module,a=e.params,r=e.onDataPreload,o=(0,i.useMemo)((function(){return m(n,r)}),[r]);if(!t.loader)return null;var l=t.loader;return i.createElement(l,{content:o,params:a})})),m=function(e,n){return function(t){var a=t.loading;return(0,i.useEffect)((function(){a||n(e)}),[a]),null}},p=(0,i.memo)((function(e){var n=e.page,t=e.paramsKey,m=e.onDataPreload;!function(e){var n=(0,c.$L)(),t=(0,r.zy)().pathname,a=(0,s.W5)(t),d=(0,o.A)(),m=d.loading,p=d.viewerId;(0,i.useEffect)((function(){if(n&&!m&&p){var t={currentPage:null!=a&&a.route.mediumAppPage?a.route.mediumAppPage:"unidentified",preloadedPage:e.id,loggedIn:!!p&&(0,l.C)(p),mobileOrTablet:(0,u.Gz)(navigator.userAgent)};n&&(null==n||n.reportPagePreload(t))}}),[m,p])}(n);var p=(0,i.useState)(new Set),f=(0,a.A)(p,2),g=f[0],h=f[1],v=(0,i.useMemo)((function(){return JSON.parse(t)}),[t]);(0,i.useEffect)((function(){Object.keys(n.modules).every((function(e){return g.has(e)}))&&m(n,v)}),[n,g,v]);var k=(0,i.useCallback)((function(e){h((function(n){return new Set(n).add(e)}))}),[]);return i.createElement(i.Fragment,null,Object.entries(n.modules).map((function(e){var n=(0,a.A)(e,2),t=n[0],r=n[1];return i.createElement(d,{key:t,name:t,module:r,params:v,onDataPreload:k})})))})),f=(0,i.memo)((function(e){var n=e.name,t=e.module,a=e.onJsPreload;return(0,i.useEffect)((function(){t.content.preload(),a(n)}),[]),null})),g=(0,i.memo)((function(e){var n=e.page,t=e.onJsPreload,r=(0,i.useState)(new Set),o=(0,a.A)(r,2),l=o[0],c=o[1];(0,i.useEffect)((function(){Object.keys(n.modules).every((function(e){return l.has(e)}))&&t(n)}),[n,l]);var s=(0,i.useCallback)((function(e){c((function(n){return new Set(n).add(e)}))}),[]);return i.createElement(i.Fragment,null,Object.entries(n.modules).filter((function(e){var n=(0,a.A)(e,2),t=n[0];return n[1],!l.has(t)})).map((function(e){var n=(0,a.A)(e,2),t=n[0],r=n[1];return i.createElement(f,{key:t,name:t,module:r,onJsPreload:s})})))})),h=function(e){var n=e.pageState,t=n.page,r=n.jsPreloaded,o=n.dataPreloadedState,l=e.onJsPreload,c=e.onDataPreload;return i.createElement(i.Fragment,null,!r&&i.createElement(g,{page:t,onJsPreload:l}),Array.from(o).filter((function(e){var n=(0,a.A)(e,2);return n[0],!n[1]})).map((function(e){var n=(0,a.A)(e,2),r=n[0];return n[1],i.createElement(p,{key:r,page:t,paramsKey:r,onDataPreload:c})})))},v=(0,i.memo)((function(e){var n=e.state,t=e.onJsPreload,r=e.onDataPreload;return i.createElement(i.Fragment,null,Array.from(n).map((function(e){var n=(0,a.A)(e,2),o=n[0],l=n[1];return i.createElement(h,{key:o,pageState:l,onJsPreload:t,onDataPreload:r})})))})),k=t(64467),S=t(47517);function b(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 E(e){for(var n=1;n{function i(e){var n=e.amount,t=e.currency,i=e.locale,a=e.floatingDigits,r=void 0===a?[2,2]:a,o=e.isLongFormat,l=void 0!==o&&o,c=i||"undefined"!=typeof window&&window.navigator.language||"en-US",s=t||"USD";if(!Intl)return"".concat(n," ").concat(s);var u=n%1!=0;try{var d=new Intl.NumberFormat(c,{style:"currency",currency:s,minimumFractionDigits:u&&r[1]>0?r[1]:r[0],maximumFractionDigits:r[1],currencyDisplay:"narrowSymbol"}).format(n);return l?"".concat(d," ").concat(t):d}catch(e){return String(n)}}t.d(n,{GR:()=>a,Y9:()=>r,vv:()=>i});var a=function(e,n,t){var i=String(e);return t?"".concat(i," ").concat(n):i},r=function(e){return Math.ceil(4*e)/4}},49643:(e,n,t)=>{t.d(n,{BU:()=>c,VX:()=>o,b4:()=>l,gB:()=>a});var i,a,r=t(64467);!function(e){e.gift="gift",e.groupGift="group-gift"}(a||(a={}));var o=(i={},(0,r.A)(i,a.gift,29),(0,r.A)(i,a.groupGift,31),i),l=function(e){return e===a.gift||e===a.groupGift},c=function(e){return l(e)?e:a.gift}},70106:(e,n,t)=>{t.d(n,{B:()=>f});var i,a=t(96540),r=t(42976),o=t(93089),l=t(98599),c=t(91857);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{c:()=>a});var i=t(45458),a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"NegativeSignalModal_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:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NegativeSignalModal_publisher"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isMuting"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NegativeSignalModal_publisher"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isMuting"}}]}}]}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"NegativeSignalModal_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]))}},14153:(e,n,t)=>{t.d(n,{p:()=>s});var i=t(45458),a=t(2674),r=t(94405),o=t(50500),l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ExplicitSignalMenuOptions_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NegativeSignalModal_post"}}]}}].concat((0,i.A)(o.c.definitions))},c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OverflowMenu_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:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"OverflowMenuItemUndoClaps_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"AddToCatalogBase_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ExplicitSignalMenuOptions_post"}}]}}].concat((0,i.A)(a.n.definitions),(0,i.A)(r.od.definitions),(0,i.A)(l.definitions))},s={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OverflowMenuButton_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:"visibility"}},{kind:"FragmentSpread",name:{kind:"Name",value:"OverflowMenu_post"}}]}}].concat((0,i.A)(c.definitions))}},2674:(e,n,t)=>{t.d(n,{n:()=>r});var i=t(45458),a=t(80721),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OverflowMenuItemUndoClaps_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:"clapCount"}},{kind:"FragmentSpread",name:{kind:"Name",value:"ClapMutation_post"}}]}}].concat((0,i.A)(a.h5.definitions))}},22071:(e,n,t)=>{t.d(n,{T:()=>h});var i=t(45458),a=t(55918),r=t(59265),o=t(23445),l=t(77485),c=t(3531),s={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ReadNextPostAuthorDetails_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserMentionTooltip_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserAvatar_user"}}]}}].concat((0,i.A)(a.s.definitions),(0,i.A)(r.v0.definitions),(0,i.A)(o.pB.definitions),(0,i.A)(l.R.definitions))},u={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ReadNextPostAuthorDetails_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionLinkWithPopover_collection"}}]}}].concat((0,i.A)(c.v.definitions))},d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserLinkWithPopover_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserMentionTooltip_user"}}]}}].concat((0,i.A)(a.s.definitions),(0,i.A)(r.v0.definitions),(0,i.A)(o.pB.definitions))},m={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPreviewByLineAuthor_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserMentionTooltip_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserAvatar_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserLinkWithPopover_user"}}]}}].concat((0,i.A)(o.pB.definitions),(0,i.A)(l.R.definitions),(0,i.A)(d.definitions))},p=t(82567),f=t(68715),g={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPreviewByLineCollection_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionAvatar_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionTooltip_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionLinkWithPopover_collection"}}]}}].concat((0,i.A)(p.$.definitions),(0,i.A)(f.n.definitions),(0,i.A)(c.v.definitions))},h={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPreviewByLine_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReadNextPostAuthorDetails_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewByLineAuthor_user"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReadNextPostAuthorDetails_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewByLineCollection_collection"}}]}}]}}].concat((0,i.A)(s.definitions),(0,i.A)(m.definitions),(0,i.A)(u.definitions),(0,i.A)(g.definitions))}},29371:(e,n,t)=>{t.d(n,{V:()=>o});var i=t(45458),a=t(20698),r=t(25703),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPreviewContainer_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:"extendedPreviewContent"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isFullContent"}}]}},{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"Field",name:{kind:"Name",value:"pinnedAt"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostScrollTracker_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"usePostUrl_post"}}]}}].concat((0,i.A)(a.$.definitions),(0,i.A)(r.c.definitions))}},45020:(e,n,t)=>{t.d(n,{v:()=>d});var i=t(45458),a=t(5890),r=t(14029),o=t(14153),l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPreviewFooterMenu_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"BookmarkButton_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"OverflowMenuButton_post"}}]}}].concat((0,i.A)(r.Q.definitions),(0,i.A)(o.p.definitions))},c=t(76790),s=t(4424),u={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPreviewFooterMeta_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isLocked"}},{kind:"Field",name:{kind:"Name",value:"postResponses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"usePostPublishedAt_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"Star_post"}}]}}].concat((0,i.A)(c.a.definitions),(0,i.A)(s.c.definitions))},d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPreviewFooter_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewFooterSocial_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewFooterMenu_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewFooterMeta_post"}}]}}].concat((0,i.A)(a.s.definitions),(0,i.A)(l.definitions),(0,i.A)(u.definitions))}},5890:(e,n,t)=>{t.d(n,{s:()=>r});var i=t(45458),a=t(97595),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPreviewFooterSocial_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MultiVote_post"}},{kind:"Field",name:{kind:"Name",value:"allowResponses"}},{kind:"Field",name:{kind:"Name",value:"isPublished"}},{kind:"Field",name:{kind:"Name",value:"isLimitedState"}},{kind:"Field",name:{kind:"Name",value:"postResponses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"}}]}}]}}].concat((0,i.A)(a.D.definitions))}},99142:(e,n,t)=>{t.d(n,{Q:()=>o});var i=t(45458),a=t(4424),r=t(76790),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPreviewInformation_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"readingTime"}},{kind:"Field",name:{kind:"Name",value:"isLocked"}},{kind:"FragmentSpread",name:{kind:"Name",value:"Star_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"usePostPublishedAt_post"}}]}}].concat((0,i.A)(a.c.definitions),(0,i.A)(r.a.definitions))}},18591:(e,n,t)=>{t.d(n,{e:()=>u});var i=t(45458),a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"GridPostPreviewImage_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"previewImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GridPostPreviewImage_imageMetadata"}}]}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"GridPostPreviewImage_imageMetadata"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ImageMetadata"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"focusPercentX"}},{kind:"Field",name:{kind:"Name",value:"focusPercentY"}},{kind:"Field",name:{kind:"Name",value:"alt"}}]}}]))},r=t(45020),o=t(22071),l=t(99142),c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"GridPostPreviewContent_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:"extendedPreviewContent"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subtitle"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"GridPostPreviewImage_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewFooter_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewByLine_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewInformation_post"}}]}}].concat((0,i.A)(a.definitions),(0,i.A)(r.v.definitions),(0,i.A)(o.T.definitions),(0,i.A)(l.Q.definitions))},s=t(29371),u={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"GridPostPreview_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"GridPostPreviewContent_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewContainer_post"}}]}}].concat((0,i.A)(c.definitions),(0,i.A)(s.V.definitions))}},8075:(e,n,t)=>{t.d(n,{Y:()=>f,O:()=>g});var i=t(45458),a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"StreamPostPreviewImage_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"previewImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StreamPostPreviewImage_imageMetadata"}}]}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"StreamPostPreviewImage_imageMetadata"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ImageMetadata"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"focusPercentX"}},{kind:"Field",name:{kind:"Name",value:"focusPercentY"}},{kind:"Field",name:{kind:"Name",value:"alt"}}]}}]))},r=t(45020),o=t(22071),l=t(99142),c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"StreamPostPreviewContent_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:"previewImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"extendedPreviewContent"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subtitle"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"StreamPostPreviewImage_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewFooter_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewByLine_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewInformation_post"}}]}}].concat((0,i.A)(a.definitions),(0,i.A)(r.v.definitions),(0,i.A)(o.T.definitions),(0,i.A)(l.Q.definitions))},s=t(29371),u=t(59265),d=t(23445),m={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPreviewReason_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserMentionTooltip_user"}}]}}].concat((0,i.A)(u.v0.definitions),(0,i.A)(d.pB.definitions))},p={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPreviewReason_postProviderExplanation"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PostProviderExplanation"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reason"}},{kind:"Field",name:{kind:"Name",value:"interactedUsers"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewReason_user"}}]}},{kind:"Field",name:{kind:"Name",value:"tagObject"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewReason_tag"}}]}}]}}].concat((0,i.A)(m.definitions),(0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PostPreviewReason_tag"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Tag"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"normalizedTagSlug"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"displayTitle"}}]}}]))},f={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"StreamPostPreview_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"StreamPostPreviewContent_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewContainer_post"}}]}}].concat((0,i.A)(c.definitions),(0,i.A)(s.V.definitions))},g={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"StreamPostPreview_postProviderExplanation"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PostProviderExplanation"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostPreviewReason_postProviderExplanation"}}]}}].concat((0,i.A)(p.definitions))}},76790:(e,n,t)=>{t.d(n,{a:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"usePostPublishedAt_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstPublishedAt"}},{kind:"Field",name:{kind:"Name",value:"latestPublishedAt"}},{kind:"Field",name:{kind:"Name",value:"pinnedAt"}}]}}]}},54696:(e,n,t)=>{t.d(n,{p:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"usePublicationAnalytics_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:"googleAnalyticsId"}}]}}]}},72457:(e,n,t)=>{t.d(n,{LL:()=>u,SR:()=>o,lz:()=>l});var i=t(45458),a=t(8075),r=t(18591),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationSections_publicationPostsSection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PublicationPostsSection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"layout"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationSectionOverflow_publicationPostsSection"}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationSectionOverflow_publicationPostsSection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PublicationPostsSection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hasOverflow"}},{kind:"Field",name:{kind:"Name",value:"source"}},{kind:"Field",name:{kind:"Name",value:"tags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"normalizedTagSlug"}}]}}]}}]))},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationSections_publicationSection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PublicationSection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PublicationPromotionSection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationPromo_publicationPromotionSection"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PublicationPostsSection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationSections_publicationPostsSection"}}]}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationPromo_publicationPromotionSection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PublicationPromotionSection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"backgroundColor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rgb"}}]}},{kind:"Field",name:{kind:"Name",value:"buttonText"}},{kind:"Field",name:{kind:"Name",value:"headlineText"}},{kind:"Field",name:{kind:"Name",value:"imageId"}},{kind:"Field",name:{kind:"Name",value:"url"}}]}}]),(0,i.A)(o.definitions))},c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationSectionsStream_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"StreamPostPreview_post"}}]}}].concat((0,i.A)(a.Y.definitions))},s={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationSectionsGrid_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"GridPostPreview_post"}}]}}].concat((0,i.A)(r.e.definitions))},u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GridPostQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postIds"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"postResults"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postIds"},value:{kind:"Variable",name:{kind:"Name",value:"postIds"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationSectionsGrid_post"}}]}}]}}]}}].concat((0,i.A)(s.definitions))};[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"StreamPostQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postIds"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"postResults"},arguments:[{kind:"Argument",name:{kind:"Name",value:"postIds"},value:{kind:"Variable",name:{kind:"Name",value:"postIds"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationSectionsStream_post"}}]}}]}}]}}].concat((0,i.A)(c.definitions))},10894:(e,n,t)=>{t.d(n,{p:()=>m});var i=t(96540),a=t(54239),r=t(51260),o=t(39181),l=t(45458),c={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PublicationNavigationContextQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"domainOrSlug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"collection"},name:{kind:"Name",value:"collectionByDomainOrSlug"},arguments:[{kind:"Argument",name:{kind:"Name",value:"domainOrSlug"},value:{kind:"Variable",name:{kind:"Name",value:"domainOrSlug"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionNavigationContextProvider_collection"}}]}}]}}].concat((0,l.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"CollectionNavigationContextProvider_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"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"isAuroraVisible"}}]}}]))},s=t(33581),u=t(39160),d=function(e){var n=e.children,t=(0,a.zy)().pathname,l=(0,r.W5)(t),d=null==l?void 0:l.params.collectionSlug,m=(0,u.d4)((function(e){return e.navigation.hostname})),p=(0,o.I)(c,{variables:{domainOrSlug:d||m}}),f=p.data,g=p.error;return p.loading||g||null==f||!f.collection?i.createElement(i.Fragment,null,n):i.createElement(s.D,{collection:f.collection},n)},m=function(e){var n=e.children,t=(0,a.zy)().pathname,o=(0,r.W5)(t);return null!=o&&o.route.params.includes("collectionSlug")?i.createElement(i.Fragment,null,n):i.createElement(d,null,n)}},11245:(e,n,t)=>{t.d(n,{n:()=>f});var i=t(96540),a=t(10894),r=t(53259),o=t.n(r),l=t(54239),c=t(69979),s=t(51260),u=t(31905),d=t(39160),m=o()({loader:function(){return t.e(9120).then(t.bind(t,99120))},modules:["./PublicationThemingProvider"],webpack:function(){return[99120]},loading:function(e){var n=e.children;return i.createElement(i.Fragment,null,n)},render:(0,u.X)("PublicationThemingProvider")}),p=function(e){var n=e.children,t=(0,l.zy)().pathname,a=(0,s.W5)(t),r=(0,d.d4)((function(e){return e.navigation.hostname})),o=n;if(!a)return o;if(c.d.has(a.route.name)){var u=a.params.collectionSlug;return i.createElement(m,{domainOrSlug:u||r},n)}return o},f=function(e){var n=e.children;return i.createElement(a.p,null,i.createElement(p,null,n))}},69979:(e,n,t)=>{t.d(n,{d:()=>i});var i=new Set(["ShowCollectionHome","ShowPostUnderCollection","ShowCollectionMasthead","ShowCollectionTagged","ShowLiteCollectionFollowers","ShowCollectionNewsletterPromotionPage","ShowCollectionNewsletterLandingPage"])},26191:(e,n,t)=>{t.d(n,{G:()=>i});var i="#redeemGiftMembership"},5811:(e,n,t)=>{t.d(n,{j:()=>f});var i=t(96540),a=t(52290),r=t(86527),o=t(36557),l=t(72130),c=t(39160),s=t(46879),u=["Help","Status","About","Careers","Press","Blog","Privacy","Terms","Text to speech","Teams"],d={XS:"6px",S:"8px",M:"26px",L:"16px"},m={XS:void 0,S:"4px",M:"8px",L:"0px"},p=u.length,f=(0,i.memo)((function(e){var n=e.padding,t=void 0===n?"24px 0":n,f=e.spacing,g=void 0===f?"M":f,h=e.detailScale,v=void 0===h?"M":h,k=e.backgroundColor,S=e.hideHelpCenterLink,b=void 0!==S&&S,E=e.detailColor,y=void 0===E?"LIGHTER":E,N=e.justifyContent,w=(0,l.$L)(),P=(0,c.d4)((function(e){return e.config.authDomain}));return i.createElement(a.a,{padding:t,display:"flex",flexDirection:"row",flexWrap:"wrap",backgroundColor:k,justifyContent:N},u.map((function(e,n){var t=function(e,n,t){switch(e){case"Help":return t?null:{name:"Help",href:s.y4K,onClickEventName:null};case"Status":return{name:"Status",href:(0,s.hG4)(),onClickEventName:null};case"About":return{name:"About",href:(0,s.$pq)({authDomain:n}),onClickEventName:"homepage.footer.aboutClicked"};case"Careers":return{name:"Careers",href:(0,s.K1h)(),onClickEventName:null};case"Press":return{name:"Press",href:s.bPs,onClickEventName:null};case"Blog":return{name:"Blog",href:(0,s.oSs)(n),onClickEventName:null};case"Privacy":return{name:"Privacy",href:s.wuc,onClickEventName:null};case"Terms":return{name:"Terms",href:s.x0D,onClickEventName:null};case"Text to speech":return{name:"Text to speech",href:"https://speechify.com/medium",onClickEventName:null};case"Teams":return{name:"Teams",href:(0,s.Vqn)(n),onClickEventName:null}}}(e,P,b),l=n===p-1;return t&&i.createElement(a.a,{key:"rc-footer-link-".concat(t.name),marginRight:l?void 0:d[g],marginBottom:m[g]},i.createElement(r.N,{href:t.href,onClick:function(){null!=t&&t.onClickEventName&&w.event(t.onClickEventName,{})}},i.createElement(o.kZ,{scale:v,color:y},t.name)))})))}))},30898:(e,n,t)=>{t.d(n,{c:()=>r});var i=t(45458),a=t(59265),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublisherFollowersCount_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"subscriberCount"}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionUrl_collection"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"socialStats"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"followerCount"}}]}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}}]}}].concat((0,i.A)(a.dl.definitions),(0,i.A)(a.v0.definitions))}},26679:(e,n,t)=>{t.d(n,{x:()=>i});var i=function(e,n){switch(e){case"ShowHome":return"home";case"ShowPost":case"ShowSequencePost":case"ShowPostUnderCollection":case"ShowPostUnderUser":return"post_page";case"ShowCollectionHome":return"collection_home";case"ShowCollectionTagged":return"collection_tagged";case"ShowCollectionArchive":case"ShowCollectionYearlyArchive":case"ShowCollectionMonthlyArchive":case"ShowCollectionDailyArchive":return"collection_archive";case"ShowUser":return"user_profile_page";case"ShowUserLists":return"user_lists";case"ShowUserBooks":return"user_books";default:return n}}},25703:(e,n,t)=>{t.d(n,{c:()=>r});var i=t(45458),a=t(59265),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"usePostUrl_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:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"Field",name:{kind:"Name",value:"slug"}}]}},{kind:"Field",name:{kind:"Name",value:"isSeries"}},{kind:"Field",name:{kind:"Name",value:"mediumUrl"}},{kind:"Field",name:{kind:"Name",value:"sequence"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}}]}},{kind:"Field",name:{kind:"Name",value:"uniqueSlug"}}]}}].concat((0,i.A)(a.v0.definitions))}},64122:(e,n,t)=>{t.d(n,{W:()=>l,f:()=>c});var i=t(96540),a=t(39160),r=t(79959),o=function(e,n){var t=e.id,i=e.hasSubdomain,a=e.username;return a?i?"https://".concat(a,".").concat(n):"https://".concat(n,"/@").concat(a):"https://".concat(n,"/u/").concat(t)},l=function(){var e=(0,a.d4)((function(e){return e.config.authDomain})),n=(0,r.fo)();return(0,i.useCallback)((function(t){var i,a,r,l=t.id,c=t.hasSubdomain,s=t.username,u="customDomainState"in t&&null!==(i=null===(a=t.customDomainState)||void 0===a||null===(r=a.live)||void 0===r?void 0:r.domain)&&void 0!==i?i:null;return n?o({id:l,hasSubdomain:!1,username:s},e):u?"https://".concat(u):o({id:l,hasSubdomain:c,username:s},e)}),[n])},c=function(e){return l()(e)}},83553:(e,n,t)=>{t.d(n,{V:()=>a});var i=t(45458),a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SearchInline_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",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:"slug"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"domain"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"useAlgoliaSearch_publisher"}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"useAlgoliaSearch_publisher"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publisher"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]))}},89522:(e,n,t)=>{t.d(n,{q:()=>pe,c:()=>me});var i=t(80296),a=t(96540),r=t(54239),o=t(14782),l=t(52290),c=t(33154),s=function(e){var n=e.title;return a.createElement(l.a,{width:"100%",padding:"0 20px"},a.createElement(l.a,{display:"flex",justifyContent:"space-between",marginBottom:"8px"},a.createElement(c.bz,null,n)),a.createElement(o.eS,{paddingTopBottom:"0"}))},u=t(87039),d=t(7580),m=t(86527),p=t(36557),f=t(72130),g=t(44402),h=t(46083),v=t(42600),k=t(50499),S={display:"block",textAlign:"left",width:"252px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},b={fill:"rgba(0, 0, 0, 0.54)",display:"block",marginLeft:"5px",marginRight:"6px"},E=function(e){var n=e.type,t=e.name,i=e.url,r=e.imageId,o=e.query,c=e.queryId,s=e.index,E=e.itemId,y=e.algoliaIndexName,N=e.isFocus,w=e.isLastItem,P=e.description,O=(0,f.$L)(),T=(0,g.l)(),C=(0,k.eb)({queryId:c,indexName:y}),A=a.useRef(null),_=a.useCallback((function(e){O.event("search.predictiveResultClicked",{type:n.toLowerCase(),query:o,path:e.currentTarget.href,rank:0,total:0}),C(E,s)}),[o,n,C,E,s]),I=a.useMemo((function(){return"TAG"===n?a.createElement("div",{className:T(b)},a.createElement(h.A,null)):"COLLECTION"===n?a.createElement(d.r,{miroId:r||"",freezeGifs:!1,alt:t||"Publication avatar",diameter:24}):"USER"===n?a.createElement(d.r,{miroId:r||v._3,alt:t||"",diameter:24,freezeGifs:!1}):a.createElement(a.Fragment,null)}),[t,r]),R=a.useMemo((function(){return a.createElement(p.kZ,{color:"DARKER",scale:"M"},a.createElement("span",{className:T(S)},t))}),[t]);return a.useEffect((function(){N&&A.current&&A.current.focus()}),[N,A.current]),a.createElement(l.a,{display:"flex",tag:"li",paddingLeft:"20px",paddingRight:"12px",marginBottom:w?void 0:"12px"},a.createElement(m.N,{ref:A,tabIndex:-1,linkStyle:"SUBTLE",href:i,onClick:_},a.createElement(u.K,{avatar:I,title:R,description:P&&a.createElement(l.a,{tag:"span",textAlign:"left"},P),clampDescription:1})))},y=t(12378),N=t(56742),w=t(42976),P=t(46879),O=t(88726),T=t(51260),C=t(38090),A=t(34539),_=t(84372),I=t(96445),R=t(79959),F=(0,y.c)(20),L=(0,y.c)(24),M=(0,y.c)(8);function D(e){var n=e.icon,t=e.text,i=e.actionElement,r=e.margin,o=e.href,c=e.isFocus,s=e.rules,u=(0,g.l)(),d=a.useRef(null);return a.useEffect((function(){c&&d.current&&d.current.focus()}),[c,d.current]),a.createElement(l.a,{margin:r},a.createElement("div",{className:u(s)},a.createElement(l.a,{display:"flex",alignItems:"center"},a.createElement(l.a,{flexGrow:"1",flexShrink:"1"},a.createElement(m.N,{href:o,ref:d,tabIndex:-1,linkStyle:"SUBTLE"},a.createElement(l.a,{display:"flex",alignItems:"center"},a.createElement(l.a,{flexShrink:"0",marginRight:"15px"},n),a.createElement(p.kZ,{scale:"M",color:"DARKER",clamp:1},t)))),a.createElement(l.a,{flexShrink:"0"},i))))}var x=function(e){return function(n){return{color:n.colorTokens.foreground.neutral.secondary.base,"& path":{fill:n.colorTokens.foreground.neutral.secondary.base},":hover path":e?{fill:n.colorTokens.foreground.neutral.primary.hover}:void 0}}},U=function(e){return{"&:hover [data-explore-topics-arrow]":{"& path":{fill:e.colorTokens.foreground.neutral.primary.hover}}}};function B(e){var n=e.queries,t=e.refIndex,i=(0,g.l)(),r=(0,T.au)(),o=t===n.length,c=n.length>0?"16px":"24px";return a.createElement(D,{icon:a.createElement(A.A,{className:i(x(!1)),width:L,height:L}),text:"Explore topics",actionElement:a.createElement(m.N,{href:r("ShowExploreTopics",{})},a.createElement(l.a,{width:L,height:L,display:"flex",justifyContent:"center",alignItems:"center",marginLeft:M},a.createElement(C.A,{"data-explore-topics-arrow":!0,className:i(x(!1)),width:"11",height:"11"}))),margin:"".concat(c," ").concat(F),href:r("ShowExploreTopics",{}),isFocus:o,rules:U})}function j(e){var n=e.queries,t=e.setQueries,i=e.refIndex,r=(0,g.l)(),o=(0,T.au)(),c=a.useCallback((function(e){(0,k.uL)(e),t((0,k.oj)())}),[t]);return a.createElement(l.a,{marginTop:"25px"},a.createElement(s,{title:"Recent Searches"}),a.createElement(l.a,{margin:"0px ".concat(F," 16px")},n.map((function(e,n){return a.createElement(D,{key:e,icon:a.createElement(I.A,{className:r(x(!1)),width:L,height:L}),text:e,actionElement:a.createElement(l.a,{marginLeft:M},a.createElement(m.N,{onClick:function(){return c(e)}},a.createElement(_.A,{className:r(x(!0)),width:L,height:L}))),margin:"12px 0 0",href:(0,R.ST)(o("ShowSearch",{}),{q:e}),isFocus:i===n})}))),a.createElement(O.i,null))}function V(e){var n=e.queries,t=e.setQueries,i=e.refIndex;return a.createElement(a.Fragment,null,n.length>0&&a.createElement(j,{queries:n,setQueries:t,refIndex:i}),a.createElement(B,{queries:n,refIndex:i}))}var H=t(91271),G={width:"252px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},W=function(e){var n=e.post,t=e.queryId,i=e.index,r=e.isEntityRouter,o=e.isFocus,c=(0,g.l)(),s=a.useRef(null),u=(0,P.us)({id:n.postId},r),d=(0,k.eb)({queryId:t,indexName:w.XK.POST}),f=a.useCallback((function(){d(n.objectID,i)}),[d,i,n.objectID]);return a.useEffect((function(){o&&s.current&&s.current.focus()}),[o,s.current]),a.createElement(l.a,{display:"flex",tag:"li",paddingLeft:"20px",paddingRight:"12px"},a.createElement(l.a,{marginBottom:"16px"},a.createElement(m.N,{ref:s,onClick:f,tabIndex:-1,linkStyle:"SUBTLE",href:u},a.createElement(p.kZ,{scale:"S",color:"DARKER"},a.createElement("div",{className:c(G)},n.title)),a.createElement(p.kZ,{scale:"S"},a.createElement(H.n9,{timestamp:n.latestPublishedAt})))))},z=(0,y.c)(316);function Y(e){var n=e.data,t=e.refIndex,i=e.isLastPopover,r=e.query,o=n.collections;return a.createElement(a.Fragment,null,a.createElement(s,{title:"Publications"}),a.createElement(l.a,{marginTop:"12px",marginBottom:i?void 0:"15px"},o.hits.map((function(e,n){var i=e.collectionId,l=e.objectID,c=e.imageId,s=e.name;return a.createElement(E,{isFocus:t===n,key:i,algoliaIndexName:w.XK.COLLECTION,index:n,itemId:l,queryId:o.queryId,type:"COLLECTION",name:s,imageId:c,url:(0,P.jiC)(i),query:r,isLastItem:o.hits.length-1===n})}))))}function q(e){var n=e.data,t=e.authDomain,i=e.entityType,r=e.refIndex,o=e.isLastPopover,c=e.query,u=e.hideTagPopoverHeading,d=void 0!==u&&u,m=n.tags;return a.createElement(a.Fragment,null,!d&&a.createElement(s,{title:"Topics"}),a.createElement(l.a,{marginTop:d?"0":"12px",marginBottom:o?void 0:"15px"},m.hits.map((function(e,n){var o=e.displayText,l=e.objectID,s=e.tagSlug;return a.createElement(E,{isFocus:r===n,key:s,type:"TAG",algoliaIndexName:w.XK.TAG,index:n,itemId:l,queryId:m.queryId,name:o,url:(0,P.cpj)(s,t,i),query:c,isLastItem:m.hits.length-1===n})}))))}function K(e){var n=e.data,t=e.authDomain,i=e.refIndex,r=e.isLastPopover,o=e.query,c=n.users;return a.createElement(a.Fragment,null,a.createElement(s,{title:"People"}),a.createElement(l.a,{marginTop:"12px",marginBottom:r?void 0:"15px"},c.hits.map((function(e,n){var r=e.imageId,l=e.objectID,s=e.name,u=e.userId,d=e.username,m=(0,P.GGp)(d,t);return a.createElement(E,{isFocus:i===n,key:u,type:"USER",algoliaIndexName:w.XK.USER,index:n,queryId:c.queryId,itemId:l,imageId:r,name:s,url:m,query:o,isLastItem:c.hits.length-1===n})}))))}function Q(e){var n=e.data,t=e.isCollection,i=e.refIndex,r=e.entityType,o=e.isLastPopover,c=e.isCatalog,u=n.posts,d="Profile";c?d="List":t&&(d="Publication");var m="From this ".concat(d);return a.createElement(a.Fragment,null,a.createElement(s,{title:m}),a.createElement(l.a,{marginTop:"12px",marginBottom:o?void 0:"15px"},u.hits.map((function(e,n){return a.createElement(W,{key:"story-item-".concat(n),post:e,index:n,queryId:u.queryId,isEntityRouter:r!==N.S9.DEFAULT,isFocus:i===n})}))))}function X(e){var n=e.data,t=e.authDomain,i=e.query,r=e.entityType,c=e.focusIndex,s=e.isCollection,u=e.isCatalog,d=e.recentSearches,m=e.setRecentSearches,p=e.hideTagPopoverHeading,f=e.showPopoverEmptyQueryState;if(!i)return f?a.createElement(l.a,{width:z},a.createElement(o.Ni,{padding:"0px"},a.createElement(V,{queries:d,setQueries:m,refIndex:c}))):null;var g=n.collections,h=n.tags,v=n.users,k=n.posts,S=v.hits.length>0,b=g.hits.length>0,E=h.hits.length>0,y=k.hits.length>0;return S||b||E||y?a.createElement(l.a,{width:z},a.createElement(o.Ni,{padding:"30px"},y&&a.createElement(Q,{data:n,isCollection:s,isCatalog:u,isLastPopover:!b&&!E&&!S,refIndex:c,query:i,entityType:r}),S&&a.createElement(K,{data:n,authDomain:t,refIndex:c,isLastPopover:!b&&!E,query:i}),b&&a.createElement(Y,{data:n,refIndex:null!==c?c-v.hits.length:null,isLastPopover:!E,query:i}),E&&a.createElement(q,{data:n,authDomain:t,entityType:r,refIndex:null!==c?c-v.hits.length-g.hits.length:null,isLastPopover:!0,query:i,hideTagPopoverHeading:p}))):null}var Z=t(75636),$=t(24960),J=t(20239),ee=t(39160),ne=t(80890),te=t(5940),ie=t(36178),ae=t(17756),re=t(60603),oe=t(40728),le=function(e){return function(n){return{display:"flex",border:"1px solid ".concat(n.colorTokens.border.neutral.primary.base),borderRadius:"20px",width:e?"100%":"inherit"}}},ce=function(e){return{boxShadow:"0px 2px 10px 0px #00000026",border:"1px solid ".concat(e.colorTokens.border.neutral.primary.base)}},se=function(e){return{":after":{boxShadow:"-1px -1px 1px -1px #00000026",border:"1px solid ".concat(e.colorTokens.border.neutral.primary.base)}}},ue=function(e){return{border:"none",outline:"none",fontFamily:ne.p0,fontSize:"14px",lineHeight:"20px",width:"100%",padding:"10px 20px 10px 0",backgroundColor:"transparent",color:e.colorTokens.foreground.neutral.primary.base,"::placeholder":{color:e.colorTokens.foreground.neutral.secondary.base}}},de="searchResults";function me(e){var n=e.searchPlaceholder,t=e.isPopoverVisible,o=e.onQueryChange,c=e.entityType,s=e.authDomain,u=e.children,d=e.onKeyDown,m=e.watchQueryUrl,p=e.fullWidth,f=e.collectionSlug,h=e.mainSearchCategory,v=e.searchIcon,S=e.searchContainerRules,b=e.initializeQueryFromUrl,E=e.onFocus,y=e.setRecentSearches,N=e.testId,w=(0,g.l)(),O=(0,J.D)(),T=(0,r.zy)(),C=(0,oe.JO)(T.search).q,A=a.useRef(null),_=a.useState(m||b?C:null),I=(0,i.A)(_,2),R=I[0],F=I[1],L=(0,ee.d4)((function(e){return e.navigation.hostname})),M=(0,P.oef)({category:h,collectionSlug:f}),D=(0,ae.r)({queryParams:{q:null!=R?R:""}}),x=a.useCallback((function(){E&&E()}),[E]),U=a.useCallback((function(e){F(e.target.value),o(e.target.value)}),[o]),B=a.useCallback((function(e){"Enter"===e.key&&R&&((0,k.nG)(R),null==y||y((0,k.oj)())),d?d(e):"Enter"===e.key?L===s?D(M):window.location.assign("https://".concat(s).concat(M,"?q=").concat(R)):"ArrowDown"===e.key&&A.current&&A.current.blur()}),[A.current,R,c,s,L,M,D,d]);return a.useEffect((function(){C&&m&&(F(C),o(C))}),[C,o,m]),a.createElement("div",{className:w([le(!!p),S])},u,v||a.createElement(l.a,{tag:"span",padding:"7px 7px 6px 8px"},a.createElement(te.A,{fill:O.colorTokens.foreground.neutral.primary.hover})),a.createElement("input",{role:"combobox","aria-controls":de,"aria-expanded":t?"true":"false","aria-label":"search","data-testid":N,tabIndex:0,className:w(ue),placeholder:n,ref:A,value:null!=R?R:"",onChange:U,onKeyDown:B,onFocus:x}))}function pe(e){var n=e.algoliaIndexes,t=e.algoliaQueryContext,r=e.mainSearchCategory,o=e.publisher,l=e.catalogId,c=e.hitsPerPagePerIndex,s=e.searchIcon,u=e.searchContainerRules,d=e.searchPlaceholder,m=void 0===d?"Search":d,p=e.initializeQueryFromUrl,g=e.hideTagPopoverHeading,h=e.showPopoverEmptyQueryState,v=e.testId,S=(0,f.$L)(),b=(0,re.e)(!1),E=(0,i.A)(b,3),y=E[0],N=E[1],w=E[2],P=(0,ee.d4)((function(e){return e.config.productName})),O=(0,ee.d4)((function(e){return e.config.algolia})),T=(0,ee.d4)((function(e){return e.config.authDomain})),C=(0,ee.d4)((function(e){return e.client.routingEntity.type})),A=a.useState(null),_=(0,i.A)(A,2),I=_[0],R=_[1],F=a.useState(""),L=(0,i.A)(F,2),M=L[0],D=L[1],x="Collection"===(null==o?void 0:o.__typename),U="Collection"===(null==o?void 0:o.__typename)?o.slug:void 0,B=!!(0,Z.z)({name:"can_view_unfiltered_search",placeholder:!1}),j=!B,V=(0,ie.fY)(t,M,n,{filterForHighQuality:j,publisher:o,catalogId:l,hitsPerPagePerIndex:c}),H=(0,i.A)(V,2),G=H[0],W=H[1],z=a.useState((0,k.oj)()),Y=(0,i.A)(z,2),q=Y[0],K=Y[1],Q=h&&!M,J=1+q.length,ne=Q?J:W,te=a.useCallback((function(){Q&&(R(null),y||(N(),S.event("search.predictiveOpened",{})))}),[Q,R,y,N,S]),ae=a.useCallback((function(e){D(e),e||h||w(),R(null),y||(N(),S.event("search.predictiveOpened",{})),S.event("search.predictiveQueried",{query:e})}),[B,N,O,M,h]),oe=a.useCallback((function(){return a.createElement(X,{productName:P,entityType:C,authDomain:T,query:M,data:G,focusIndex:I,isCollection:x,isCatalog:!!l,recentSearches:q,setRecentSearches:K,hideTagPopoverHeading:g,showPopoverEmptyQueryState:h})}),[P,C,T,M,G,I,x,q,K]);return a.useEffect((function(){if(y){var e=function(e){var n="ArrowUp"===e.key,t="ArrowDown"===e.key;if(n||t){e.preventDefault();var i=ne-1;if(null===I&&t)R(0);else if(null!==I){var a=(I+(t?1:-1))%ne;R(a<0?i:a)}}};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}}),[I,y,ne]),a.createElement(me,{authDomain:T,entityType:C,isPopoverVisible:ne>0&&y,searchPlaceholder:m,onQueryChange:ae,collectionSlug:U,mainSearchCategory:r,searchIcon:s,searchContainerRules:u,initializeQueryFromUrl:p,onFocus:te,setRecentSearches:K,testId:v},a.createElement($.A,{ariaId:de,isVisible:ne>0&&y,hide:w,arrowPadding:{left:32},popoverRenderFn:oe,setMaxHeight:!0,popoverRules:ce,arrowRules:se,placement:"bottom-start",targetDistance:25},a.createElement(a.Fragment,null)))}},22805:(e,n,t)=>{t.d(n,{W:()=>i,R:()=>_});var i,a=t(96540),r=t(80545),o=t(1620),l=t(26947),c=t(91967),s=t(28072),u=t(52290),d=t(51260),m=t(39160),p=t(17756),f=t(80296),g=t(88609),h=t(4441),v=t(78968),k=t(27721),S=t(99731),b=t(48198),E=t(85050),y=t(39410),N=t(36557),w=t(42976),P=t(42600),O=t(60603),T=t(59301),C=30*P.ei*6,A=function(e){var n=e.onClose,t=(0,d.au)();return a.createElement(u.a,{display:"flex",borderRadius:"4px",backgroundColor:"BASE_LIGHT",padding:"16px 40px 16px 24px",gap:{xs:"8px",sm:"8px",md:"24px",lg:"24px",xl:"24px"},flexDirection:{xs:"column",sm:"column",md:"row",lg:"row",xl:"row"},alignItems:{xs:"flex-start",sm:"flex-start",md:"center",lg:"center",xl:"center"},position:"relative",marginTop:"40px"},a.createElement(E.V,{xs:!0,sm:!0},a.createElement(g.K,{size:32,filled:!0})),a.createElement(E.V,{md:!0,lg:!0,xl:!0},a.createElement(g.K,{size:64,filled:!0})),a.createElement(u.a,{display:"flex",flexWrap:"wrap",gap:"8px",flexBasis:"0",flexGrow:"1",flexDirection:{xs:"column",sm:"column",md:"row",lg:"row",xl:"row"}},a.createElement(u.a,{display:"flex",flexDirection:"column",gap:"4px",flexGrow:"1"},a.createElement(y.hE,{scale:{xs:"XS",sm:"XS",md:"S",lg:"S",xl:"S"}},"Become a Friend of Medium"),a.createElement(N.kZ,{scale:{xs:"M",sm:"M",md:"L",lg:"L",xl:"L"}},"Give 4x more to the writers you read most.")),a.createElement(u.a,{alignSelf:{xs:"flex-start",sm:"flex-start",md:"center",lg:"center",xl:"center"}},a.createElement(S.$n,{href:t("ShowManageMembershipPage",{}),buttonStyle:"SUBTLE",size:"REGULAR"},"Upgrade"))),a.createElement(b.J,{onClick:n,absoluteOffset:"8px",size:"REGULAR"}))};!function(e){e.Account="account",e.Publishing="publishing",e.Notifications="notifications",e.Membership="membership",e.Security="security"}(i||(i={}));var _=function(e){var n,t,g,S,b,E,y,N,P,_=e.children,I=e.activeTab,R=(0,p.r)(),F=(t=(0,k.R)().value,g=(0,T.z)().canSwitchMembershipPlan,S=(0,O.e)(!1),E=(b=(0,f.A)(S,2))[0],y=b[1],N=(0,m.d4)((function(e){return e.client.hydrated})),P=(0,m.d4)((function(e){return e.client.isNativeMedium})),{isVisible:g&&N&&!P&&!E&&(null==t||null===(n=t.membership)||void 0===n?void 0:n.tier)===w.T3.MEMBER&&!(0,h.y)((0,v.iY)(),C),hide:(0,a.useCallback)((function(){y(),(0,v.yi)(new Date)}),[y])}),L=F.isVisible,M=F.hide,D=(0,d.DI)("ShowSettings",{}),x=(0,d.DI)("ShowSettingsTab",{setting:i.Publishing}),U=(0,d.DI)("ShowSettingsTab",{setting:i.Notifications}),B=(0,d.DI)("ShowSettingsTab",{setting:i.Membership}),j=(0,d.DI)("ShowSettingsTab",{setting:i.Security}),V=(0,a.useMemo)((function(){return[{text:"Account",onClick:function(){return R(D)},isActive:I===i.Account},{text:"Publishing",onClick:function(){return R(x)},isActive:I===i.Publishing},{text:"Notifications",onClick:function(){return R(U)},isActive:I===i.Notifications},{text:"Membership and payment",onClick:function(){return R(B)},isActive:I===i.Membership},{text:"Security and apps",onClick:function(){return R(j)},isActive:I===i.Security}]}),[I,R]),H=(0,m.d4)((function(e){return e.config.productName})),G=(0,a.useMemo)((function(){return a.createElement(c.s,null,"Settings")}),[]);return a.createElement(s.P,{size:"app"},a.createElement(r.mg,null,a.createElement("title",null,"Settings",H?" - ".concat(H):null)),L&&a.createElement(A,{onClose:M}),a.createElement(u.a,{paddingBottom:"32px"},a.createElement(o.zY,{heading:G,marginTop:L?"40px":void 0,navbarMargin:{xs:"32px",sm:"32px",md:"56px",lg:"56px",xl:"56px"},navbar:a.createElement(l.F,{items:V})}),_))}},97078:(e,n,t)=>{t.d(n,{AA:()=>r,Fo:()=>s,Jp:()=>g,Mz:()=>c,bK:()=>h,cZ:()=>a,gu:()=>p,i4:()=>f,nE:()=>u,oC:()=>o,pJ:()=>d,q2:()=>i,t4:()=>m,t_:()=>l});var i="#email",a="#profileInformation",r="#username",o="#audience-development",l="#followers",c="#managePublications",s="#email-settings",u="#manageSubscriptions",d="#membership",m="#payment",p="#connections",f="#developers",g="#security",h="#tokens"},91967:(e,n,t)=>{t.d(n,{s:()=>l});var i=t(96540),a=t(52290),r=t(56942),o={xs:"M",sm:"M",md:"XL",lg:"XL",xl:"XL"},l=function(e){var n=e.children;return i.createElement(a.a,null,i.createElement(r.DZ,{scale:o,tag:"h1",clamp:1},n))}},3326:(e,n,t)=>{t.d(n,{r:()=>f});var i=t(58168),a=t(80296),r=t(96540),o=t(19228),l=t(52290),c=t(44402),s=t(20239),u=t(11334),d=t(66305),m=t(79429),p=t(40064),f=function(e){var n=e.children,t=e.height,f=e.setHeight,g=e.contentPadding,h=e.onHide,v=e.isVisible,k=e.containerRules,S=e.hideDirection,b=e.contentProps,E=e.hideOnEscapeKey,y=e.onTransitionEnd,N=(0,c.l)(),w=(0,s.D)(),P=(0,o.qt)().baseTheme,O=(0,p._I)(w,P),T=(0,r.useState)(!1),C=(0,a.A)(T,2),A=C[0],_=C[1],I=(0,m.s)({onPresentedFn:function(e){f(e.boundingClientRect.height)}});(0,r.useEffect)((function(){var e=function(){if(I.current){var e=I.current;f(e.getBoundingClientRect().height)}};return d.R5.on("resize_throttled",e),function(){d.R5.off("resize_throttled",e)}}),[]);var R=(0,r.useCallback)((function(){if(I.current){_(!0);var e=I.current;e.style.transition="margin .3s","up"===S?e.style.marginTop="-".concat(t,"px"):"down"===S&&(e.style.marginBottom="-".concat(t,"px"))}}),[t,S]),F=(0,r.useCallback)((function(){A?(null==h||h(),f(0)):null==y||y()}),[h,f,A,y]),L=(0,r.useCallback)((function(e){"Escape"===e.key&&R()}),[R]);return(0,r.useEffect)((function(){if(E&&v)return window.addEventListener("keydown",L),function(){window.removeEventListener("keydown",L)}}),[L,v,E]),v?r.createElement(u.N,{theme:O},r.createElement("div",{ref:I,onTransitionEnd:F,className:N(k)},r.createElement(l.a,(0,i.A)({position:"relative",padding:g,display:"flex",alignItems:{xs:"flex-start",sm:"flex-start",md:"center",lg:"center",xl:"center"},justifyContent:{xs:"space-between",sm:"space-between",md:"center",lg:"center",xl:"center"}},b),n({hide:R,containerRef:I})))):null}},72113:(e,n,t)=>{t.d(n,{I:()=>u});var i=t(58168),a=t(96540),r=t(52290),o=t(48198),l=t(85050),c=t(20239),s={position:"relative",":after":{position:"absolute",content:'""',left:"-8px",right:"-8px",top:"-8px",bottom:"-8px"}},u=function(e){var n=e.onClose,t=e.isDark,u=e.containerProps,d=e.iconColor,m=(0,c.D)(),p=t?m.colorTokens.foreground.neutral.primary.base:void 0,f=d||p,g=(0,a.useMemo)((function(){return{onClick:n,size:"REGULAR",isPositionAbsolute:!1,compensateInnerPadding:!1,"data-testid":"close-button",iconFillColor:f}}),[n,t,m]);return a.createElement(r.a,(0,i.A)({position:{xs:void 0,sm:void 0,md:"absolute",lg:"absolute",xl:"absolute"},padding:{xs:"13px 24px 0 24px",sm:"13px 24px 0 24px",md:void 0,lg:void 0,xl:void 0},right:"24px"},u),a.createElement(l.V,{md:!0,lg:!0,xl:!0},a.createElement(o.J,g)),a.createElement(l.V,{xs:!0,sm:!0},a.createElement(o.J,(0,i.A)({},g,{linkRules:s}))))}},4441:(e,n,t)=>{function i(e,n){if(!e)return!1;var t=(new Date).getTime()-e.getTime();return t>=0&&ti})},35460:(e,n,t)=>{t.d(n,{m:()=>r});var i=t(56742),a=t(51260),r=function(e){var n,t=(0,a.RW)(),r=(null==t?void 0:t.type)===i.S9.USER&&null!==(n=t.id)&&void 0!==n?n:null,o=e.username;return{id:r,username:void 0===o?null:o}}},91052:(e,n,t)=>{t.d(n,{i:()=>r,k:()=>a});var i=t(45458),a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserPronouns_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pronouns"}}]}}]},r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserPronounsQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserPronouns_user"}}]}}]}}].concat((0,i.A)(a.definitions))}},55918:(e,n,t)=>{t.d(n,{s:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"verifications"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isBookAuthor"}}]}}]}}]}},88474:(e,n,t)=>{function i(e){var n;return!!e&&!(null===(n=e.verifications)||void 0===n||!n.isBookAuthor)}t.d(n,{E:()=>i})},32097:(e,n,t)=>{t.d(n,{Qy:()=>s,Wp:()=>d,tY:()=>c,v4:()=>m});var i=t(80296),a=t(78968),r=t(49287),o=t(53413),l=function(){return window.branch&&window.branch.closeJourney&&window.branch.setBranchViewData&&window.branch.track&&window.branch.link},c=function(e){l()&&window.branch.closeJourney((function(){e&&e()}))},s=function(e){var n,t,i=e.inAppBrowser,r=e.post,o=e.referrer,l=e.referrerSource,c=e.viewer,s=e.profile_name,d=e.profile_photo,m=e.profile_username,p=e.page_type,f=e.currentUserId,g=e.creatorViewerEdge,h=e.collectionViewerEdge,v=e.topicViewerEdge,k=null!==(n=null==c||null===(t=c.membership)||void 0===t?void 0:t.memberSince)&&void 0!==n?n:null,S=r||{},b=S.creator,E=S.layerCake,y=S.primaryTopic,N=S.collection,w=S.content,P=E&&(1===E||2===E||3===E),O=P&&y?y.name:null,T=P&&y?y.slug:null,C=o&&l?u(o,l):"Other",A={data:{in_app_browser:i||"Null",is_logged_in:!!c,is_member:!!k&&k>0,user_created_at:c?c.viewerEdge.createdAt:"Null",medium_member_at:k||"Null",post_topic_name:O||"Null",post_topic_slug:T||"Null",post_publication_name:N?N.name:"Null",post_publication_id:N?N.id:"Null",layer_cake:E,num_nonmoc_posts_in_month:(0,a._1)(),num_posts_in_day:(0,a.nW)(),num_posts_in_week:(0,a.tU)(),num_posts_in_month:(0,a.ri)(),post_creator_name:b?b.name:"Null",post_creator_id:b?b.id:"Null",source:C||"Null",following_author:!(null==g||!g.isFollowing),following_pub:!(null==h||!h.isFollowing),following_topic:!(!P||null==v||!v.isFollowing),profile_name:s||"Null",profile_photo:d||"Null",profile_username:m||"Null",page_type:p||"Null",uid:f}};return w&&w.isLockedPreviewOnly?A.data.meter_state="paywalled":A.data.is_member?A.data.meter_state="member":A.data.meter_state="not_metered",A},u=function(e,n){if((0,o.p2)(e))return"Twitter";if((0,o.In)(e))return"Facebook";if(n){var t=(0,r.PJ)(n),a=t.name,l=t.dimension;if("email"===a&&l){var c=l.split("."),s=(0,i.A)(c,2),u=s[0],d=s[1];if("newsletter"===u)return"Pub Digest";if("member"===u)return"Marketing Email";if("digest"===u){if("reader"===d)return"Daily Digest";if("weekly"===d)return"Weekly Digest"}}}return(0,o.c5)(e,n)?"Search":"Other"},d=function e(n){l()?(window.branch.setIdentity(n.data.uid),delete n.data.uid,window.branch.setBranchViewData(n)):setTimeout((function(){e(n)}),500)},m=function e(n){l()?window.branch.track("pageview",(function(){n&&n()})):setTimeout((function(){e(n)}),500)}},94405:(e,n,t)=>{t.d(n,{jq:()=>u,od:()=>c});var i=t(45458),a=t(62742),r=t(37561),o=t(20631),l=t(6925),c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"AddToCatalogBase_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:"isPublished"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SusiClickable_post"}}]}}].concat((0,i.A)(a.CV.definitions))},s={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"AddToCatalogBaseQuery_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:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogsConnection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogsContainingThis"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"LISTS"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogId"}},{kind:"Field",name:{kind:"Name",value:"catalogItemIds"}}]}},{kind:"Field",name:{kind:"Name",value:"predefinedContainingThis"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogId"}},{kind:"Field",name:{kind:"Name",value:"predefined"}},{kind:"Field",name:{kind:"Name",value:"catalogItemIds"}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"editCatalogItemsMutation_postViewerEdge"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useAddItemToPredefinedCatalog_postViewerEdge"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"WithToggleInsideCatalog_post"}}]}}].concat((0,i.A)(r.t.definitions),(0,i.A)(o.W.definitions),(0,i.A)(l.n.definitions))},u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AddToCatalogBaseQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isPostKind"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"postResult"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"isPostKind"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AddToCatalogBaseQuery_post"}}]}}]}}]}}].concat((0,i.A)(s.definitions))}},52144:(e,n,t)=>{t.d(n,{P:()=>r});var i=t(45458),a=t(94405),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"AddToCatalogBookmarkButton_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AddToCatalogBase_post"}}]}}].concat((0,i.A)(a.od.definitions))}},6925:(e,n,t)=>{t.d(n,{C:()=>i,n:()=>a});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"WithToggleInsideCatalog_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"version"}},{kind:"Field",name:{kind:"Name",value:"predefined"}}]}}]},a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"WithToggleInsideCatalog_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:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogsConnection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogsContainingThis"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"LISTS"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogId"}}]}},{kind:"Field",name:{kind:"Name",value:"predefinedContainingThis"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"predefined"}}]}}]}}]}}]}}]}},20631:(e,n,t)=>{t.d(n,{M:()=>a,W:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"useAddItemToPredefinedCatalog_postViewerEdge"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PostViewerEdge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"catalogsConnection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"predefinedContainingThis"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogId"}},{kind:"Field",name:{kind:"Name",value:"version"}},{kind:"Field",name:{kind:"Name",value:"predefined"}},{kind:"Field",name:{kind:"Name",value:"catalogItemIds"}}]}}]}}]}}]},a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddToPredefinedCatalog"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PredefinedCatalogType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"operation"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PredefinedCatalogAddOperationInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addToPredefinedCatalog"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}},{kind:"Argument",name:{kind:"Name",value:"operation"},value:{kind:"Variable",name:{kind:"Name",value:"operation"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AddToPredefinedCatalogSucces"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"version"}},{kind:"Field",name:{kind:"Name",value:"insertedItem"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"catalogItemId"}},{kind:"Field",name:{kind:"Name",value:"catalogId"}}]}}]}}]}}]}}]}},37561:(e,n,t)=>{t.d(n,{t:()=>i,u:()=>a});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"editCatalogItemsMutation_postViewerEdge"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PostViewerEdge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"catalogsConnection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogsContainingThis"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"LISTS"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogId"}},{kind:"Field",name:{kind:"Name",value:"version"}},{kind:"Field",name:{kind:"Name",value:"catalogItemIds"}}]}},{kind:"Field",name:{kind:"Name",value:"predefinedContainingThis"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogId"}},{kind:"Field",name:{kind:"Name",value:"predefined"}},{kind:"Field",name:{kind:"Name",value:"version"}},{kind:"Field",name:{kind:"Name",value:"catalogItemIds"}}]}}]}}]}}]},a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"EditCatalogItems"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"catalogId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"version"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"operations"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CatalogItemMutateOperationInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"editCatalogItems"},arguments:[{kind:"Argument",name:{kind:"Name",value:"catalogId"},value:{kind:"Variable",name:{kind:"Name",value:"catalogId"}}},{kind:"Argument",name:{kind:"Name",value:"version"},value:{kind:"Variable",name:{kind:"Name",value:"version"}}},{kind:"Argument",name:{kind:"Name",value:"operations"},value:{kind:"Variable",name:{kind:"Name",value:"operations"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EditCatalogItemsSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"version"}},{kind:"Field",name:{kind:"Name",value:"operations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"preprend"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"catalogItemId"}}]}},{kind:"Field",name:{kind:"Name",value:"append"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"catalogItemId"}}]}},{kind:"Field",name:{kind:"Name",value:"move"}}]}}]}}]}}]}}]}},82567:(e,n,t)=>{t.d(n,{$:()=>r});var i=t(45458),a=t(59265),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CollectionAvatar_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"avatar"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionUrl_collection"}}]}}].concat((0,i.A)(a.dl.definitions))}},3545:(e,n,t)=>{t.d(n,{V:()=>o,f:()=>l});var i=t(45458),a=t(59265),r=t(62742),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CollectionFollowButton_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CollectionFollowButton_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionUrl_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SusiClickable_collection"}}]}}].concat((0,i.A)(a.dl.definitions),(0,i.A)(r.Km.definitions))}},3531:(e,n,t)=>{t.d(n,{v:()=>o});var i=t(45458),a=t(59265),r=t(68715),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CollectionLinkWithPopover_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionUrl_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionTooltip_collection"}}]}}].concat((0,i.A)(a.dl.definitions),(0,i.A)(r.n.definitions))}},80604:(e,n,t)=>{t.d(n,{D:()=>o});var i=t(45458),a=t(59265),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CollectionJsonLd_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:"logo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PrepareLogoForJsonLd_imageMetadata"}}]}},{kind:"Field",name:{kind:"Name",value:"avatar"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"focusPercentX"}},{kind:"Field",name:{kind:"Name",value:"focusPercentY"}},{kind:"Field",name:{kind:"Name",value:"originalHeight"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}}]}},{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionUrl_collection"}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"PrepareLogoForJsonLd_imageMetadata"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ImageMetadata"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}},{kind:"Field",name:{kind:"Name",value:"originalHeight"}}]}}]),(0,i.A)(a.dl.definitions))},o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CollectionMetadata_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"avatar"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"focusPercentX"}},{kind:"Field",name:{kind:"Name",value:"focusPercentY"}},{kind:"Field",name:{kind:"Name",value:"originalHeight"}},{kind:"Field",name:{kind:"Name",value:"originalWidth"}}]}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"twitterScreenName"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"domain"}},{kind:"Field",name:{kind:"Name",value:"facebookPageId"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"twitterUsername"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"ptsQualifiedAt"}},{kind:"Field",name:{kind:"Name",value:"customDomainState"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"live"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"isSubdomain"}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionUrl_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionJsonLd_collection"}}]}}].concat((0,i.A)(a.v0.definitions),(0,i.A)(a.dl.definitions),(0,i.A)(r.definitions))}},33581:(e,n,t)=>{t.d(n,{$:()=>o,D:()=>l});var i=t(96540),a=t(39160),r=(0,i.createContext)({canBypassVanityForHref:function(){return!1}}),o=function(){return(0,i.useContext)(r)},l=function(e){var n=e.collection,t=e.children,o=(0,a.d4)((function(e){return e.config.authDomain})),l=(0,i.useCallback)((function(e){if(!n)return!1;var t=n.isAuroraVisible,i=n.slug,a=n.domain;return!!t&&(a?e.startsWith("https://".concat(a))||e.startsWith("/"):e.startsWith("https://".concat(o,"/").concat(i))||e.startsWith("/".concat(i)))}),[n]);return i.createElement(r.Provider,{value:{canBypassVanityForHref:l}},t)}},91271:(e,n,t)=>{t.d(n,{Yr:()=>c,ay:()=>l,n9:()=>o});var i=t(72379),a=t(72346),r=t(96540),o=function(e){var n=e.timestamp,t=e.testId,i=e.isShorthand;return r.createElement("span",{suppressHydrationWarning:!0,"data-testid":t},l(n,i))};function l(e,n){return(0,i.A)(e)===(0,i.A)(t.g.Date.now())?n?(0,a.A)(e,"LLL d"):(0,a.A)(e,"LLL d, yyyy"):n?(0,a.A)(e,"MMM d, yyyy"):(0,a.A)(e,"LLL d, yyyy")}var c={jan:{label:"January",index:1},feb:{label:"February",index:2},mar:{label:"March",index:3},apr:{label:"April",index:4},may:{label:"May",index:5},jun:{label:"June",index:6},jul:{label:"July",index:7},aug:{label:"August",index:8},sep:{label:"September",index:9},oct:{label:"October",index:10},nov:{label:"November",index:11},dec:{label:"December",index:12}}},5863:(e,n,t)=>{t.d(n,{m:()=>f,s:()=>g});var i=t(80296),a=t(96720),r=t(96540),o=t(27049),l=t(46963),c=t(57005),s=t(34223),u=t(62830),d=t(27721),m=(0,r.createContext)({fullNavbarHeight:0,addHeightChangeHandler:function(){return null},removeHeightChangeHandler:function(){return null},setTopNavUpsellHeight:function(){return null},topNavUpsellHeight:0}),p="nav_bar_height_change",f=function(e){var n=e.children,t=e.isFixed,f=(0,r.useMemo)((function(){return new a.A}),[]),g=(0,d.R)(),h=g.value,v=!g.loading&&!!h,k=(0,r.useState)(0),S=(0,i.A)(k,2),b=S[0],E=S[1],y=(0,l.U)(),N=(0,r.useMemo)((function(){var e=u.oe+s.Jm;switch(y){case o.i.xs:case o.i.sm:return e;case o.i.md:return v?u.oe:e;default:return u.oe}}),[y,v]),w=(0,r.useCallback)((function(e){f.emit(p,{currentHeight:e,fullHeight:N})}),[f,N]),P=(0,r.useRef)(N),O=(0,r.useCallback)((function(){return Math.max(0,window.scrollY)}),[]),T=(0,r.useRef)(0),C=(0,r.useCallback)((function(e){P.current!==e&&w(e),P.current=e}),[w]),A=(0,r.useCallback)((function(e){var n=Math.min(Math.max(P.current-e,0),N);C(n)}),[C,N]);(0,c.E)((function(){var e=function(){var e=O();0===e?C(N):e!==T.current&&A(e-T.current),T.current=e};if(!t)return e(),window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)};C(N)}),[t,C,N]);var _=(0,r.useCallback)((function(e){return e({currentHeight:P.current,fullHeight:N}),f.on(p,e)}),[f,N]),I=(0,r.useCallback)((function(e){return f.off(p,e)}),[f]),R=(0,r.useMemo)((function(){return{fullNavbarHeight:N,addHeightChangeHandler:_,removeHeightChangeHandler:I,setTopNavUpsellHeight:E,topNavUpsellHeight:b}}),[N,_,I,E,b]);return r.createElement(m.Provider,{value:R},n)},g=function(){return(0,r.useContext)(m)}},70663:(e,n,t)=>{t.d(n,{S:()=>E});var i,a=t(96540),r=t(44402),o=t(46989);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{Jm:()=>y,hP:()=>P,oX:()=>E});var i,a=t(64467),r=t(96540),o=t(54239),l=t(60301),c=t(86527),s=t(39),u=t(44402),d=t(56742),m=t(51260),p=t(39160);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:"0 24px",alignItems:"center",borderBottom:"solid 1px ".concat(e.colorTokens.border.neutral.primary.base)}},y=41,N=function(e){return function(){return{flex:e?"1":void 0,display:{xs:"flex",sm:"flex",md:"flex",lg:"none",xl:"none"},alignItems:"center",justifyContent:e?"center":void 0,height:"100%"}}},w=function(e){var n=e.postId,t=e.collectionSlug,i=e.isMember,a=e.routeName,o=e.catalogSlugId,f=e.username,h=(0,u.l)(),v=(0,m.RW)().type,k=(0,p.d4)((function(e){return e.navigation.hostname})),S=(0,s.Z)({name:"detail",color:"LIGHTER",scale:"S"}),E=(0,l.c)({postId:n,collectionSlug:t,collectionHostname:v===d.S9.COLLECTION?k:null,routeName:a,username:f,catalogSlugId:o}),y=E.onClick,w=E.href;return r.createElement(c.N,{href:w,onClick:y,rules:[N(i),S],inheritBorder:!1},"Open in app",r.createElement(g,{className:h(b)}))},P=function(e){var n,t=e.loading,i=e.viewer,a=(0,u.l)(),l=(0,o.zy)(),c=(0,m.W5)(l.pathname),s=c?(0,h.quc)(c):"",d=null==c?void 0:c.route.name,f=!t&&!!i,g=f&&!!i.membership;return(0,p.d4)((function(e){return e.client.isNativeMedium}))?null:r.createElement("div",{className:a((n=!f,function(e){var t=n?"space-between":"center";return S(S({},E(e,n?void 0:"0")),{},{display:{xs:"flex",sm:"flex",md:"flex",lg:"none",xl:"none"},justifyContent:{xs:t,sm:t,md:t,lg:void 0,xl:void 0},height:"".concat(y,"px"),lineHeight:"20px"})}))},!t&&r.createElement(r.Fragment,null,r.createElement(w,{postId:s,collectionSlug:null==c?void 0:c.params.collectionSlug,isMember:g,routeName:d,username:null==c?void 0:c.params.username,catalogSlugId:null==c?void 0:c.params.catalogSlugId}),!f&&r.createElement(v.K,{routeName:d})))}},62830:(e,n,t)=>{t.d(n,{oe:()=>Wn,ps:()=>zn,jq:()=>Qn,ED:()=>Kn});var i,a,r=t(64467),o=t(96540),l=t(54239),c=t(22805),s=t(52290),u=t(86527),d=t(85050),m=t(12378),p=t(44402),f=t(51260),g=t(80296),h=t(39181),v=t(7580),k=t(23393),S=t(24960),b=t(72130),E=t(49287),y=t(42600),N=t(31372),w=t(60603),P=t(45458),O=t(59265),T=t(55918),C={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CollectionMenuItem_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:"name"}},{kind:"Field",name:{kind:"Name",value:"avatar"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"collectionUrl_collection"}}]}}].concat((0,P.A)(O.dl.definitions))},A=t(99886),_=t(33285),I={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"AvatarMenu_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"membership"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"memberSince"}},{kind:"Field",name:{kind:"Name",value:"tier"}}]}},{kind:"Field",name:{kind:"Name",value:"emailObfuscated"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}},{kind:"Field",name:{kind:"Name",value:"adminCollections"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionMenuItem_collection"}}]}},{kind:"Field",name:{kind:"Name",value:"linkedAccounts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mediumMastodon"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"membership"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"useIsReactivateMembershipVisible_membershipStatus"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useCanSwitchMembershipPlan_membershipStatus"}}]}}]}}]}}].concat((0,P.A)(O.v0.definitions),(0,P.A)(T.s.definitions),(0,P.A)(C.definitions),(0,P.A)(A.r.definitions),(0,P.A)(_.u.definitions))},R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AvatarMenuQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AvatarMenu_user"}}]}},{kind:"Field",name:{kind:"Name",value:"partnerProgramEnrollment"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}].concat((0,P.A)(I.definitions))},F=t(88609),L=t(48795),M=t(56173),D=t(60491),x=t(43964),U=t(59031),B=t(59301),j=t(65498),V=t(5811),H=t(88474),G=t(75636),W=t(66305),z=t(42976),Y=t(39160),q=t(46879);function K(){return K=Object.assign?Object.assign.bind():function(e){for(var n=1;n3&&o.createElement(ze,{href:g,withIcon:!0,onClick:i},o.createElement(xe,{icon:o.createElement(s.a,{height:"24px",width:"24px",backgroundColor:"BASE_NORMAL",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},o.createElement(rn,null)),text:"See all publications"}))):null),o.createElement(qe,{padding:"18px 0"},o.createElement(ze,{href:r("ShowSettings",{}),onClick:i},"Settings"),o.createElement(ze,{href:r("ShowFollowsIndex",{}),onClick:i},"Refine recommendations"),o.createElement(ze,{href:g,onClick:i},"Manage publications"),o.createElement(ze,{href:q.y4K,onClick:i},"Help")))},dn="global_nav",mn=function(e){var n,t,i,a,r,l,c,u,m=e.viewer,p=e.isPartnerProgramEnrolled,g=e.hide,h=(0,f.au)(),v=!!(0,G.z)({name:"disable_lite_gift_page",placeholder:!1}),k=(0,G.z)({name:"enable_mastodon_for_members",placeholder:!1}),S=(0,H.E)(m),b=(null==m||null===(n=m.membership)||void 0===n?void 0:n.tier)===z.T3.MEMBER,E=(null==m||null===(t=m.membership)||void 0===t?void 0:t.tier)===z.T3.FRIEND,y=(0,j.U)(null==m||null===(i=m.viewerEdge)||void 0===i?void 0:i.membership),N=(0,B.z)({membership:null==m||null===(a=m.viewerEdge)||void 0===a?void 0:a.membership,skip:!0}).canSwitchMembershipPlan,w=(0,q.FwS)(),P=!(null==m||null===(r=m.linkedAccounts)||void 0===r||null===(l=r.viewerEdge)||void 0===l||!l.mediumMastodon);(0,o.useEffect)((function(){return W.R5.on("scroll",g),function(){W.R5.off("scroll",g)}}),[]),u=m?o.createElement(un,{viewer:m,isPartnerProgramEnrolled:p,hide:g}):o.createElement(o.Fragment,null,o.createElement(Je,null),o.createElement(d.V,{xs:!0,sm:!0},o.createElement(qe,null,o.createElement(Ye,{routeName:"ShowNewPost",onClick:g,text:"Write"}))));var O=[];b||E||O.push(o.createElement(ze,{key:"become-member",href:h("ShowPay",{}),susiEntry:dn,isLoggedIn:!!m,target:"_blank"},o.createElement(s.a,{display:"flex",justifyContent:"space-between",alignItems:"center"},"Become a Medium member",o.createElement(L.a,{size:16})))),null!=m&&null!==(c=m.viewerEdge)&&void 0!==c&&c.membership&&y&&O.push(o.createElement(x.u,{key:"reactivate-membership"},(function(e){var n,t=e.showConfirmation;return o.createElement(ze,{susiEntry:dn,isLoggedIn:!0,onClick:t},o.createElement(s.a,{display:"flex",justifyContent:"space-between",alignItems:"center"},o.createElement(U.Z,{tag:"span"},"Reactivate Membership"),o.createElement(M.s,{tier:null===(n=m.membership)||void 0===n?void 0:n.tier,size:16})))}))),b&&!y&&N&&O.push(o.createElement(ze,{key:"switch-membership",href:h("ShowManageMembershipPage",{}),susiEntry:dn,isLoggedIn:!!m,target:"_blank"},o.createElement(s.a,{display:"flex",justifyContent:"space-between",alignItems:"center"},"Become a Friend of Medium",o.createElement(F.K,{size:16})))),k&&P?O.push(o.createElement(ze,{href:w,target:"_blank",key:"mastodon"},"Go to me.dm")):k&&O.push(o.createElement(ze,{key:"mastodon",href:h("ShowMastodonForMembersPage",{}),susiEntry:dn,isLoggedIn:!!m,target:"_blank"},o.createElement(D.o,null,"Create a Mastodon account"))),S||O.push(o.createElement(ze,{key:"apply-verified-author",href:h("ShowLandingVerifiedAuthors",{}),susiEntry:dn,isLoggedIn:!!m},"Apply for author verification")),p||O.push(o.createElement(ze,{key:"apply-partner-program",href:h("ShowLandingPartnerProgram",{}),susiEntry:dn,isLoggedIn:!!m},"Apply to the Partner Program")),v||O.push(o.createElement(ze,{key:"gift-membership",href:h(m?"ShowLiteGiftCheckout":"ShowGiftLanding",{}),target:"_blank"},"Gift a membership"));var T=O.length>0?o.createElement(qe,{padding:"18px 0"},O):null,C=(0,Y.d4)((function(e){return e.client.isNativeMedium}));return o.createElement(s.a,{width:"264px"},u,T,m&&!C&&o.createElement(qe,{padding:"18px 0"},o.createElement(Xe,{viewer:m})),o.createElement(d.V,{xs:!0,sm:!0,md:!0},o.createElement(V.j,{padding:"16px 24px",detailScale:"XS",spacing:"S",backgroundColor:"BASE_LIGHT",hideHelpCenterLink:!0})))},pn=function(e){return{border:"none",background:"transparent",padding:"0",display:"flex",alignItems:"center",cursor:"pointer","& svg":{marginLeft:"4px",fill:e.colorTokens.foreground.neutral.secondary.base},":hover svg":{fill:e.colorTokens.foreground.neutral.primary.base}}},fn=function(e){return function(n){return{backgroundColor:n.backgroundColor,opacity:e?0:1,transition:"opacity ".concat(300,"ms")}}},gn=function(e){var n,t=e.viewer,i=(0,p.l)(),a=(0,b.$L)(),r=(0,E.Fo)(),l=(0,w.e)(!1),c=(0,g.A)(l,3),s=c[0],u=c[1],d=c[2],m=(0,o.useState)(!1),f=(0,g.A)(m,2),P=f[0],O=f[1],T=(0,N.L)().timer,C=(0,h.I)(R,{ssr:!1}).data,A=null==C?void 0:C.viewer,_="PartnerProgramEnrollment"===(null==C||null===(n=C.partnerProgramEnrollment)||void 0===n?void 0:n.__typename),I=(0,o.useCallback)((function(){O(!0),T((function(){d(),O(!1)}),300)}),[T,O,d]),F=(0,o.useCallback)((function(){return o.createElement(mn,{viewer:A,isPartnerProgramEnrolled:_,hide:I})}),[A,_,I]),L=(0,o.useCallback)((function(){a.event("nav.avatarMenuOpened",{dimension:null==r?void 0:r.dimension}),u()}),[a,r,u]);return o.createElement(o.Fragment,null,o.createElement(S.A,{noPortal:!0,display:"block",isVisible:s,hide:I,targetDistance:8,horizontalTargetDistance:8,placement:"bottom-end",popoverRules:fn(P),flip:!1,setMaxHeight:!0,popoverRenderFn:F,noArrow:!0,hideOnOutsideClick:!0,overflowPadding:16},o.createElement("button",{className:i(pn),"aria-label":"user options menu",onClick:s?I:L,"data-testid":"headerUserIcon"},t?o.createElement(k.H8,{user:t,scale:"XS",showBadge:!0,showHoverState:!0}):o.createElement(v.r,{miroId:y._3,diameter:32,alt:"",showHoverState:!0}))))},hn=t(58168),vn=["height","width","borderRadius"],kn=function(e){var n=e.height,t=void 0===n?"24px":n,i=e.width,a=void 0===i?{xs:"24px",sm:"24px",md:"64px",lg:"64px",xl:"64px"}:i,r=e.borderRadius,l=void 0===r?"4px":r,c=(0,Ue.A)(e,vn);return o.createElement(d.V,(0,hn.A)({marginLeft:"24px",height:t,width:a,backgroundColor:"BASE_LIGHT",borderRadius:l},c))},Sn=function(){return o.createElement(o.Fragment,null,o.createElement(kn,{xs:!0,sm:!0,md:!0,lg:!0,xl:!0}),o.createElement(kn,{md:!0,lg:!0,xl:!0}),o.createElement(kn,{md:!0,lg:!0,xl:!0}),o.createElement(kn,{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,borderRadius:"50%",height:"32px",width:"32px"}))},bn=t(70663),En=t(34223),yn=t(27721),Nn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UnreadNotificationCount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"notificationStatus"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unreadNotificationCount"}}]}}]}}]},wn=function(e,n){return function(t){return{position:"absolute",top:"-9px",left:e,right:n,borderRadius:"7px",minWidth:"14px",minHeight:"16px",color:t.colorTokens.background.neutral.primary.base,background:t.colorTokens.background.accent.primary.base,textAlign:"center",display:"inline-block",padding:"0 4px",border:"solid 3px ".concat(t.backgroundColor)}}},Pn=function(e){var n,t=e.left,i=e.right,a=(0,p.l)(),r=!!(0,yn.R)().value,l=(0,h.I)(Nn,{ssr:!1,skip:!r}).data,c=null==l||null===(n=l.notificationStatus)||void 0===n?void 0:n.unreadNotificationCount,s=(0,je.Z)({name:"detail",color:"LIGHTER",scale:"XS"});return c?o.createElement("div",{className:a([s,wn(t,i)]),"data-testid":"headerNotificationCount"},c>99?"99+":c):null},On=function(e){return function(n){var t=n.colorTokens.foreground.neutral.primary.base,i=n.colorTokens.foreground.neutral.secondary.base;return{position:"relative",color:e?t:i,fill:e?t:i,display:"flex",alignItems:"center",":hover":{color:t,fill:t}}}},Tn=function(e){var n=e.children,t=e.routeName,i=e.isActive,a=(0,p.l)(),r=(0,je.Z)({name:"detail",color:"DARKER",scale:"M"});return o.createElement("div",{className:a([r,On(i)])},o.createElement(Me,{routeName:t,isActive:i}),n&&o.createElement(s.a,{marginLeft:"8px"},n),"ShowYourNotifications"===t&&o.createElement(Pn,{right:"-7px"}))},Cn=function(e){var n=e.children,t=e.routeName,i=e.onClick,a=e.susiEntry,r=e.preloadOn,l=e.isActive,c=e.testId,d=(0,f.Nw)(t,{}),m=!!(0,yn.R)().value;return o.createElement(s.a,{display:"flex",marginRight:"32px"},!m&&a?o.createElement(Be.r,{operation:"register",susiEntry:a,redirectTo:d,testId:c},o.createElement(Tn,{children:n,routeName:t,isActive:l})):o.createElement(u.N,{href:d,onClick:i,EXPERIMENTAL_preloadOn:r,"data-testid":c},o.createElement(Tn,{children:n,routeName:t,isActive:l})))},An=t(89522),_n=["algoliaQueryContext","algoliaIndexes"],In=function(e){return{border:"none",width:"240px",background:e.colorTokens.background.neutral.tertiary.base,alignItems:"center","& path":{fill:e.colorTokens.foreground.neutral.secondary.base},":focus-within path":{fill:e.colorTokens.foreground.neutral.primary.base}}},Rn=function(e){var n=e.algoliaQueryContext,t=void 0===n?"homepage":n,i=e.algoliaIndexes,a=void 0===i?["user","collection","tag"]:i,r=(0,Ue.A)(e,_n);return o.createElement(An.q,(0,hn.A)({algoliaQueryContext:t,algoliaIndexes:a,searchPlaceholder:"Search"},r,{searchIcon:o.createElement(s.a,{marginRight:"12px",marginLeft:"12px",display:"flex"},o.createElement(Ie.A,null)),searchContainerRules:In,initializeQueryFromUrl:!0,showPopoverEmptyQueryState:!0}))},Fn=t(83553),Ln={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PublicationSearchQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"domainOrSlug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"collection"},name:{kind:"Name",value:"collectionByDomainOrSlug"},arguments:[{kind:"Argument",name:{kind:"Name",value:"domainOrSlug"},value:{kind:"Variable",name:{kind:"Name",value:"domainOrSlug"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SearchInline_publisher"}}]}}]}}].concat((0,P.A)(Fn.V.definitions))},Mn=function(e){var n,t=e.collectionSlug,i=e.testId,a=(0,Y.d4)((function(e){return e.navigation.hostname})),r=(0,h.I)(Ln,{variables:{domainOrSlug:t||a}}).data;return o.createElement(Rn,{algoliaIndexes:["post"],algoliaQueryContext:"publication-right-column",hitsPerPagePerIndex:{post:8},publisher:null!==(n=null==r?void 0:r.collection)&&void 0!==n?n:void 0,testId:i})},Dn=t(35460),xn=t(15371),Un={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserSearchQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"username"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userResult"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"username"},value:{kind:"Variable",name:{kind:"Name",value:"username"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SearchInline_publisher"}}]}}]}}].concat((0,P.A)(Fn.V.definitions))},Bn=function(e){var n,t=e.params,i=void 0===t?{}:t,a=e.testId,r=(0,Dn.m)(i),l=r.id,c=r.username,s=(0,h.I)(Un,{variables:{id:l,username:c},skip:!l&&!c}).data;if("User"!==(null==s||null===(n=s.userResult)||void 0===n?void 0:n.__typename))return o.createElement(Rn,null);var u=i.catalogSlugId?(0,xn.OV)(i.catalogSlugId,s.userResult.id):void 0;return o.createElement(Rn,{algoliaIndexes:["post"],algoliaQueryContext:"user-profile",publisher:null==s?void 0:s.userResult,hitsPerPagePerIndex:{post:8},catalogId:u,testId:a})},jn=function(){var e,n,t=(0,l.zy)(),i=(0,f.W5)(t.pathname),a="headerSearchInput";if(null!=i&&null!==(e=i.params)&&void 0!==e&&e.postId)return o.createElement(Rn,{algoliaIndexes:["post"],algoliaQueryContext:"post",testId:a});switch(null==i?void 0:i.route.name){case"ShowCollectionHome":case"ShowCollectionMasthead":case"ShowCollectionTagged":return o.createElement(Mn,{collectionSlug:null==i||null===(n=i.params)||void 0===n?void 0:n.collectionSlug,testId:a});case"ShowTagPosts":return o.createElement(Rn,{algoliaQueryContext:"topics-right-column",testId:a});case"ShowUser":case"ShowUserAbout":case"ShowUserList":case"ShowUserLists":return o.createElement(Bn,{params:null==i?void 0:i.params,testId:a});case"ShowYourNotifications":return o.createElement(Rn,{algoliaQueryContext:"notifications",testId:a});case"ShowYourStories":return o.createElement(Rn,{algoliaQueryContext:"your-stories",testId:a});default:return o.createElement(Rn,{testId:a})}},Vn=t(99404);function Hn(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 Gn(e){for(var n=1;n{t.d(n,{c:()=>h,z:()=>v});var i=t(96540),a=t(54239),r=t(27721),o=t(52290),l=t(99731),c=t(86527),s=t(36557),u=t(72130),d=t(20239),m=t(51260),p=t(39160),f=t(46879),g="https://rsci.app.link/s1cSf8zJT3?",h=function(e){var n=e.collectionSlug,t=e.collectionHostname,o=e.appEntry,l=e.postId,c=e.topicSlug,s=e.username,m=e.catalogSlugId,h=e.routeName,v=(0,p.d4)((function(e){return e.config.authDomain})),k=(0,r.R)().value,S=(0,u.$L)(),b=(0,a.zy)(),E=(0,d.D)();return i.useEffect((function(){window.innerWidth{t.d(n,{K:()=>m});var i=t(96540),a=t(26679),r=t(43634),o=t(52290),l=t(36557),c=t(39160),s=t(79959),u={xs:"S",sm:"S",md:"S",lg:"M",xl:"M"},d="global_nav",m=function(e){var n=e.routeName,t=(0,c.d4)((function(e){return e.config.authDomain})),m=(0,c.d4)((function(e){return e.navigation.currentLocation})),p=(0,s.mk)(m,t)?"":m;return i.createElement(o.a,{display:"flex",alignItems:"center"},i.createElement(l.kZ,{scale:u},i.createElement(r.r,{operation:"register",pageSource:(0,a.x)(n,"register"),susiEntry:d,isButton:!0,buttonSize:{xs:"COMPACT",sm:"COMPACT",md:"COMPACT",lg:"SMALL",xl:"SMALL"},buttonStyle:"STRONG",redirectTo:p,testId:"headerSignUpButton"},"ShowHome"===n?"Get started":"Sign up")),i.createElement(o.a,{marginLeft:"16px"},i.createElement(l.kZ,{scale:u,color:"LIGHTER"},i.createElement(r.r,{operation:"login",susiEntry:d,pageSource:(0,a.x)(n,"login"),redirectTo:p,testId:"headerSignInButton"},"Sign in"))))}},11891:(e,n,t)=>{t.d(n,{b:()=>g});var i=t(96540),a=t(19228),r=t(20239),o=t(11334),l=t(40064),c=t(34223),s=t(62830),u=t(52290),d=t(78693),m=t(5863),p=function(e){var n=e.children,t=(0,i.useRef)(null),a=(0,m.s)(),r=a.addHeightChangeHandler,o=a.removeHeightChangeHandler;return(0,i.useEffect)((function(){var e=function(e){var n=e.currentHeight,i=e.fullHeight;t.current&&(t.current.style.transform="translateY(".concat(n-i,"px)"))};return r(e),function(){o(e)}}),[]),i.createElement(u.a,{backgroundColor:"BACKGROUND",zIndex:d.Ay.metabar,position:"sticky",top:"0",ref:t},n)},f=t(9234),g=function(){var e=(0,f._)(),n=e.loading,t=e.value,u=(0,r.D)(),d=(0,a.qt)().baseTheme,m=(0,l._I)(u,d);return i.createElement(o.N,{theme:m},i.createElement(p,null,i.createElement(c.hP,{loading:n,viewer:t}),i.createElement(s.jq,{loading:n,viewer:t})))}},64074:(e,n,t)=>{t.d(n,{w:()=>ae});var i=t(96540),a=t(3326),r=t(80296),o=t(20026),l=t(4441),c=t(78493),s=t(78968),u=t(27721),d=t(52290),m=t(86527),p=t(85050),f=t(36557),g=t(72130),h=t(49287),v=t(44402),k=t(79429),S=t(51260),b=t(42976),E=t(39160),y=t(42600),N=t(60603),w=t(72113),P=t(56173),O=function(e){return{display:"flex","& > svg > path":{fill:e.colorTokens.background.neutral.quaternary.base}}},T=function(e){var n=e.children,t=e.badgeTier,a=e.isBadgeDark,r=e.showBadge,o=void 0===r||r,l=(0,v.l)();return i.createElement(d.a,{display:"flex",alignItems:{xs:"flex-start",sm:"flex-start",md:"center",lg:"center",xl:"center"},padding:{xs:"16px 0",sm:"16px 0",md:void 0,lg:void 0,xl:void 0},position:"relative"},o&&i.createElement(d.a,{display:"flex",paddingLeft:{xs:"24px",sm:"24px",md:void 0,lg:void 0,xl:void 0},marginRight:{xs:"12px",sm:"12px",md:"8px",lg:"8px",xl:"8px"}},a?i.createElement("div",{className:l(O)},i.createElement(P.s,{tier:t,size:18})):i.createElement(P.s,{tier:t,size:18})),n)},C=90*y.ei,A={fontWeight:"500"},_={":after":{position:"absolute",content:'""',height:"100%",width:"100%",top:0,left:0}},I=function(){var e=(0,v.l)();return i.createElement(i.Fragment,null,i.createElement(p.V,{xs:!0,sm:!0},i.createElement("span",{className:e([A,_])},"Become a member")),i.createElement(p.V,{md:!0,lg:!0,xl:!0},i.createElement("span",{className:e(A)},"Become a member")))},R=function(e){var n=e.onClose,t=(0,S.au)(),a=(0,h.Fo)(),r=(0,g.$L)(),l=(0,k.s)({onPresentedFn:function(){r.event("upsell.viewed",{dimension:null==a?void 0:a.dimension})}}),u=(0,i.useCallback)((function(){(0,s.p1)(new Date),r.event("upsell.dismissed",{dimension:null==a?void 0:a.dimension}),n()}),[n,r,null==a?void 0:a.dimension]),p=(0,i.useCallback)((function(){r.event("upsell.clicked",{dimension:null==a?void 0:a.dimension})}),[r,null==a?void 0:a.dimension]),v=(0,c.xu)({membershipType:c.yV.Yearly}).amount;return i.createElement(i.Fragment,null,i.createElement(T,{badgeTier:b.T3.MEMBER},i.createElement(f.kZ,{scale:"M",color:"DARKER"},i.createElement(d.a,{tag:"span",display:"inline",marginRight:"8px"},"Get unlimited access to the best of Medium for less than $",(0,o.Y9)(v/52),"/week."),i.createElement(d.a,{ref:l,display:"inline-block"},i.createElement(h.Ne,{extendSource:!0,source:{name:"upgrade_membership"}},i.createElement(m.N,{onClick:p,display:"inline-block",href:t("ShowPay",{}),inline:!0,linkStyle:"OBVIOUS"},i.createElement(I,null)))))),i.createElement(w.I,{onClose:u}))},F=t(18642),L=t(63191),M=function(e){var n=e.onClose,t=e.text,a=e.linkText,r=e.isDismissible,o=(0,S.au)(),l=(0,h.Fo)(),c=(0,g.$L)(),s=(0,k.s)({onPresentedFn:function(){c.event("updatePaymentMethodBanner.viewed",{dimension:null==l?void 0:l.dimension})}}),u=(0,i.useCallback)((function(){c.event("updatePaymentMethodBanner.dismissed",{dimension:null==l?void 0:l.dimension}),n()}),[n,c,null==l?void 0:l.dimension]),p=(0,i.useCallback)((function(){c.event("updatePaymentMethodBanner.clicked",{dimension:null==l?void 0:l.dimension})}),[c,null==l?void 0:l.dimension]);return t&&a?i.createElement(i.Fragment,null,i.createElement(T,{showBadge:!1},i.createElement(d.a,{display:"flex",alignItems:"baseline",paddingLeft:{xs:"24px",sm:"24px",md:void 0,lg:void 0,xl:void 0},paddingRight:r?void 0:{xs:"24px",sm:"24px",md:void 0,lg:void 0,xl:void 0}},i.createElement(d.a,{marginRight:"8px"},i.createElement(L.A,{fill:F.ON})),i.createElement(f.kZ,{scale:"M",color:"WHITE",tag:"div"},i.createElement(d.a,{display:"inline-block",marginRight:"8px"},t),i.createElement(d.a,{ref:s,display:"inline-block"},i.createElement(h.Ne,{extendSource:!0,source:{name:"update_payment_method_banner"}},i.createElement(m.N,{onClick:p,href:o("ShowPaymentMethod",{}),inline:!0,linkStyle:"OBVIOUS",display:"inline-block"},a)))))),r&&i.createElement(w.I,{onClose:u,iconColor:F.ON})):null},D=t(39181),x=t(95420),U=t(54239),B=t(48011),j=t(45458),V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UsePaymentMethodRetentionQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"membership"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isCancelled"}},{kind:"Field",name:{kind:"Name",value:"paymentProvider"}},{kind:"FragmentSpread",name:{kind:"Name",value:"usePaymentMethodRetentionBannerContent_membershipStatus"}}]}}]}}]}}]}}].concat((0,j.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"usePaymentMethodRetentionBannerContent_membershipStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MembershipStatus"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentPeriodEndsAt"}},{kind:"Field",name:{kind:"Name",value:"hasRecurringPaymentFailedMoreThanOnce"}},{kind:"Field",name:{kind:"Name",value:"hasCreditCardExpired"}},{kind:"Field",name:{kind:"Name",value:"paymentFailedAt"}},{kind:"Field",name:{kind:"Name",value:"paymentMethod"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreditCard"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expirationMonth"}},{kind:"Field",name:{kind:"Name",value:"expirationYear"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ApplePayCard"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expirationMonth"}},{kind:"Field",name:{kind:"Name",value:"expirationYear"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GooglePayCard"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"expirationMonth"}},{kind:"Field",name:{kind:"Name",value:"expirationYear"}}]}}]}}]}}]))},H=t(20239);function G(e){return!!e&&e-(new Date).getTime(){function i(e){if((e.match(/ /g)||[]).length>1)return"";var n=e.indexOf(" ");return e.substring(0,n)}function a(e){return e.google?"google":e.facebook?"facebook":e.twitter?"twitter":"medium"}t.d(n,{E:()=>i,g:()=>a})},34208:(e,n,t)=>{t.d(n,{E:()=>a,j:()=>i});var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"FollowCollectionMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"followCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetCollectionId"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isFollowing"}}]}}]}}]}}]},a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UnfollowCollectionMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unfollowCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetCollectionId"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isFollowing"}}]}}]}}]}}]}},79193:(e,n,t)=>{t.d(n,{Q:()=>r});var i=t(95420),a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeletePostMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletePost"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPostId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}}}]}]}}]},r=function(e){var n=e?{variables:{targetPostId:e}}:{};return(0,i.n)(a,n)}},1771:(e,n,t)=>{t.d(n,{T:()=>c});var i=t(5249),a=t(96540),r=t(69733),o=t(91830),l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SendVerificationEmailMutation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sendVerificationEmail"}}]}}]},c=(0,r.Ng)()((function(e){var n=e.children,t=e.dispatch;return a.createElement(i.s,{mutation:l,onCompleted:function(){t((0,o.MZ)({duration:"FOREVER",toastStyle:"SENT_VERIFICATION_EMAIL"}))}},(function(e){return n({mutate:e})}))}))},44205:(e,n,t)=>{t.d(n,{b:()=>a,g:()=>i});var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"FollowUserMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetUserId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"followUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetUserId"},value:{kind:"Variable",name:{kind:"Name",value:"targetUserId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isFollowing"}}]}}]}}]}}]},a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UnfollowUserMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetUserId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unfollowUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetUserId"},value:{kind:"Variable",name:{kind:"Name",value:"targetUserId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isFollowing"}}]}}]}}]}}]}},63933:(e,n,t)=>{t.d(n,{u:()=>v});var i=t(80296),a=t(64467),r=t(95420),o=t(96540),l=t(34208),c=t(44205),s=t(2550),u=t(15473),d=t(72130),m=t(49287),p=t(91830),f=t(50684),g=t(39160);function h(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}var v=function(e,n,t){var v,k=(0,p.zF)(),S=(0,s.A)().viewerId,b=null!==(v=(0,m.Fo)())&&void 0!==v?v:{},E=(0,d.$L)(),y=(0,f.MW)(),N=(0,g.d4)((function(e){return e.navigation.referrer})),w=(0,g.d4)((function(e){return e.navigation.currentLocation})),P=(0,o.useCallback)((function(e,n){t&&E.event(e,function(e){for(var n=1;n{t.d(n,{d:()=>b});var i=t(80296),a=t(64467),r=t(95420),o=t(96540),l=t(2550),c=t(15473),s=t(72130),u=t(49287),d=t(91830),m=t(50684),p=t(39160),f={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"MuteAuthorMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"authorId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"muteUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetUserId"},value:{kind:"Variable",name:{kind:"Name",value:"authorId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isMuting"}}]}}]}}]}}]},g={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UnmuteAuthorMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"authorId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unmuteUser"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetUserId"},value:{kind:"Variable",name:{kind:"Name",value:"authorId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isMuting"}}]}}]}}]}}]},h={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"MutePubMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pubId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"muteCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetCollectionId"},value:{kind:"Variable",name:{kind:"Name",value:"pubId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isMuting"}}]}}]}}]}}]},v={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UnmutePubMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pubId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unmuteCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetCollectionId"},value:{kind:"Variable",name:{kind:"Name",value:"pubId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isMuting"}}]}}]}}]}}]};function k(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}var S=function(){return null},b=function(e){var n,t=e.authorId,b=e.collectionId,E=e.postId,y=(0,d.zF)(),N=(0,l.A)().viewerId,w=(0,s.$L)(),P=null!==(n=(0,u.Fo)())&&void 0!==n?n:{},O=(0,m.MW)(),T=(0,p.d4)((function(e){return e.navigation.referrer})),C=(0,p.d4)((function(e){return e.navigation.currentLocation})),A=(0,o.useCallback)((function(e,n){w.event(e,function(e){for(var n=1;n{t.d(n,{M:()=>V});var i=t(58168),a=t(80045),r=t(96540),o=t(33581),l=t(92554),c=t(49287),s=t(51260),u=t(39160),d=t(32166),m=t(79959),p=["children","EXPERIMENTAL_preloadOn","forwardedRef"],f=function(e){var n=e.children,t=(e.EXPERIMENTAL_preloadOn,e.forwardedRef),o=(0,a.A)(e,p);return r.createElement("a",(0,i.A)({},o,{ref:t}),n)},g=(0,r.forwardRef)((function(e,n){return r.createElement(f,(0,i.A)({},e,{forwardedRef:n}))})),h=t(87599),v=t(82284),k=t(10467),S=t(80296),b=t(84058),E=t.n(b),y=t(55808),N=t.n(y),w=function(e){return"".concat(N()(E()(e)),"Page")},P=t(41070),O=t(11134);function T(){T=function(){return n};var e,n={},t=Object.prototype,i=t.hasOwnProperty,a=Object.defineProperty||function(e,n,t){e[n]=t.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{s({},"")}catch(e){s=function(e,n,t){return e[n]=t}}function u(e,n,t,i){var r=n&&n.prototype instanceof k?n:k,o=Object.create(r.prototype),l=new R(i||[]);return a(o,"_invoke",{value:C(e,t,l)}),o}function d(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=u;var m="suspendedStart",p="suspendedYield",f="executing",g="completed",h={};function k(){}function S(){}function b(){}var E={};s(E,o,(function(){return this}));var y=Object.getPrototypeOf,N=y&&y(y(F([])));N&&N!==t&&i.call(N,o)&&(E=N);var w=b.prototype=k.prototype=Object.create(E);function P(e){["next","throw","return"].forEach((function(n){s(e,n,(function(e){return this._invoke(n,e)}))}))}function O(e,n){function t(a,r,o,l){var c=d(e[a],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==(0,v.A)(u)&&i.call(u,"__await")?n.resolve(u.__await).then((function(e){t("next",e,o,l)}),(function(e){t("throw",e,o,l)})):n.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return t("throw",e,o,l)}))}l(c.arg)}var r;a(this,"_invoke",{value:function(e,i){function a(){return new n((function(n,a){t(e,i,n,a)}))}return r=r?r.then(a,a):a()}})}function C(n,t,i){var a=m;return function(r,o){if(a===f)throw new Error("Generator is already running");if(a===g){if("throw"===r)throw o;return{value:e,done:!0}}for(i.method=r,i.arg=o;;){var l=i.delegate;if(l){var c=A(l,i);if(c){if(c===h)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===m)throw a=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=f;var s=d(n,t,i);if("normal"===s.type){if(a=i.done?g:p,s.arg===h)continue;return{value:s.arg,done:i.done}}"throw"===s.type&&(a=g,i.method="throw",i.arg=s.arg)}}}function A(n,t){var i=t.method,a=n.iterator[i];if(a===e)return t.delegate=null,"throw"===i&&n.iterator.return&&(t.method="return",t.arg=e,A(n,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),h;var r=d(a,n.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var o=r.arg;return o?o.done?(t[n.resultName]=o.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function _(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function I(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function F(n){if(n||""===n){var t=n[o];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var a=-1,r=function t(){for(;++a=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),I(t),h}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var i=t.completion;if("throw"===i.type){var a=i.arg;I(t)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,i){return this.delegate={iterator:F(n),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=e),h}},n}var C=function(e,n){return function(t){e&&e(t),t.defaultPrevented||n(t)}},A=new Map([["home",function(){return Promise.resolve().then(t.bind(t,50754))}],["post",function(){return Promise.resolve().then(t.bind(t,90696))}],["user-profile",function(){return Promise.resolve().then(t.bind(t,594))}],["publication-profile",function(){return Promise.resolve().then(t.bind(t,14593))}],["notifications",function(){return Promise.resolve().then(t.bind(t,44883))}],["your-catalogs",function(){return Promise.resolve().then(t.bind(t,94317))}],["your-stories",function(){return Promise.resolve().then(t.bind(t,88878))}]]),_=["children","forwardedRef","relativeHref","routeMatch","EXPERIMENTAL_preloadOn"],I=function(e){var n=e.children,t=e.forwardedRef,o=e.relativeHref,l=e.routeMatch,c=e.EXPERIMENTAL_preloadOn,s=void 0===c?"none":c,u=(0,a.A)(e,_),d=function(e){var n=e.preloadBehavior,t=void 0===n?"none":n,i=e.preloadDelay,a=void 0===i?100:i,o=e.routeMatch,l=e.theirElementProps,c=(0,r.useState)(!1),s=(0,S.A)(c,2),u=s[0],d=s[1],m=(0,r.useState)(!1),p=(0,S.A)(m,2),f=p[0],g=p[1],h=l.onFocus,v=l.onBlur,b=l.onMouseEnter,E=l.onMouseLeave;(0,r.useEffect)((function(){"render"===t&&g(!0)}),[t]);var y=(0,r.useCallback)((function(){"intent"===t&&d(!0)}),[t]),N=(0,r.useCallback)((function(){"intent"===t&&d(!1)}),[t]);return(0,r.useEffect)((function(){if(u){var e=setTimeout((function(){g(!0)}),a);return function(){clearTimeout(e)}}}),[u]),function(e,n){var t=(0,P.ld)(),i=(0,r.useContext)(O.F).preloadPage,a=(0,r.useRef)(!1),o=(0,r.useCallback)((0,k.A)(T().mark((function e(){var r,o,l,c,s,u;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null==n?void 0:n.route.mediumAppPage){e.next=3;break}return e.abrupt("return");case 3:if(o=A.get(r)){e.next=6;break}return e.abrupt("return");case 6:return e.prev=6,e.next=9,o();case 9:l=e.sent,c=w(r),(d=s=l[c])&&d.id&&d.layoutConfig&&d.modules||t.reportOnce(new Error("Expected DotApp Page module to export a valid Page object"),{pageName:r,pageObject:s}),u=n.params,i({page:s,params:u}),a.current=!0,e.next=21;break;case 18:e.prev=18,e.t0=e.catch(6),t.reportOnce(new Error("Unable to import DotApp Page module"),{pageName:r});case 21:case"end":return e.stop()}var d}),e,null,[[6,18]])}))),[t,a,n]);e&&!a.current&&o()}(f,o),{onFocus:C(h,y),onBlur:C(v,N),onMouseEnter:C(b,y),onMouseLeave:C(E,N)}}({preloadBehavior:s,routeMatch:l,theirElementProps:u}),m=d.onFocus,p=d.onBlur,f=d.onMouseEnter,g=d.onMouseLeave;return r.createElement(h.N_,(0,i.A)({},u,{to:o,onFocus:m,onBlur:p,onMouseEnter:f,onMouseLeave:g,ref:t}),n)},R=(0,r.memo)((0,r.forwardRef)((function(e,n){return r.createElement(I,(0,i.A)({},e,{forwardedRef:n}))}))),F=t(75636),L=["children","href","relativeHref","forwardedRef","routeMatch"],M=function(e){var n=e.children,t=e.href,o=e.relativeHref,l=e.forwardedRef,c=e.routeMatch,s=(0,a.A)(e,L),u=c.route.serviceVariantFlag,d=(0,F.z)({name:u,placeholder:!1});return u&&!d?r.createElement(g,(0,i.A)({},s,{href:t,ref:l}),n):r.createElement(R,(0,i.A)({},s,{relativeHref:o,routeMatch:c,ref:l}),n)},D=(0,r.memo)((0,r.forwardRef)((function(e,n){return r.createElement(M,(0,i.A)({},e,{forwardedRef:n}))}))),x=["children","disableSourceParam","href","follow","forwardedRef","target","UNSAFE_disableClientNav"],U=["ShowCollectionHome","ShowCollectionMasthead","ShowCollectionTagged"],B=function(e){var n=e.children,t=e.disableSourceParam,p=void 0!==t&&t,f=e.href,h=e.follow,v=void 0!==h&&h,k=e.forwardedRef,S=e.target,b=e.UNSAFE_disableClientNav,E=void 0!==b&&b,y=(0,a.A)(e,x),N=(0,c.jI)(),w=(0,s.IF)(),P=(0,u.d4)((function(e){return e.navigation.hostname})),O=(0,u.d4)((function(e){return e.config.tierOneDomains}))||[],T=(0,u.d4)((function(e){return e.client.viewerIsBot})),C=O.filter((function(e){return!!e})).map((function(e){return new RegExp("^(.+\\.)?".concat(e,"$"))})),A=(0,o.$)().canBypassVanityForHref,_=!!C.find((function(e){return e.test(P)})),I=(0,m.yg)(f,P),R=!I,F=["http:","https:",""].includes((0,m.Jr)(f)),L=(0,r.useContext)(l.r),M=(0,m.EW)(f),B=!T&&!p,j=(0,d.L)()&&R?"_blank":S,V="#"===f[0];N&&B?f=(0,m.ST)(f,{source:N}):B||(f=(0,m.oP)(f,["source"]));var H=V?void 0:j,G="noopener",W=C.find((function(e){return e.test(M)}));(v||(I&&_||W)&&!L)&&(G="".concat(G," follow").trim()),L&&!W&&(G="".concat(G.replace("follow","")," ugc nofollow").trim());var z=(0,m.Yn)(f),Y=(0,m.yH)(f),q=(0,m.iy)(P),K=new RegExp("^/@".concat(q));q&&K.test(z)&&(z=z.replace(K,""),Y=Y.replace(K,""));var Q=w(z),X=null==Q?void 0:Q.route;return!F||R||V||E||!Q||!X||"lite"!==X.service||!A(f)&&U.includes(X.name)?r.createElement(g,(0,i.A)({},y,{href:f,ref:k,rel:G,target:H}),n):r.createElement(D,(0,i.A)({},y,{href:f,relativeHref:Y,ref:k,rel:G,routeMatch:Q,target:H}),n)},j=(0,r.forwardRef)((function(e,n){return r.createElement(B,(0,i.A)({},e,{forwardedRef:n}))})),V=(0,r.memo)(j)},9942:(e,n,t)=>{t.d(n,{r:()=>c});var i=t(96540),a=t(54239),r=t(95765),o=301,l=302;function c(e){var n=e.to,c=e.temporary,s=void 0!==c&&c,u=e.replace,d=void 0!==u&&u;if(t.g.window)return d?t.g.window.location.replace(n):t.g.window.location.assign(n),i.createElement(r.x,null);var m={pathname:n,state:{statusCode:s?l:o}};return i.createElement(a.rd,{to:m})}},53301:(e,n,t)=>{t.d(n,{H$:()=>l,fh:()=>r,oY:()=>a,vw:()=>c,yS:()=>o});var i=t(45458),a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"useNewsletterV3Subscription_newsletterV3"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsletterV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}}]}},{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"newsletterV3"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"useNewsletterV3Subscription_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"newsletterV3"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"useNewsletterV3Subscription_newsletterV3"}}]}}]}}].concat((0,i.A)(a.definitions))},o={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SubscribeNewsletterV3Mutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"newsletterV3Id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shouldRecordConsent"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscribeNewsletterV3"},arguments:[{kind:"Argument",name:{kind:"Name",value:"newsletterV3Id"},value:{kind:"Variable",name:{kind:"Name",value:"newsletterV3Id"}}},{kind:"Argument",name:{kind:"Name",value:"shouldRecordConsent"},value:{kind:"Variable",name:{kind:"Name",value:"shouldRecordConsent"}}}]}]}}]},l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UnsubscribeNewsletterV3Mutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"newsletterV3Id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unsubscribeNewsletterV3"},arguments:[{kind:"Argument",name:{kind:"Name",value:"newsletterV3Id"},value:{kind:"Variable",name:{kind:"Name",value:"newsletterV3Id"}}}]}]}}]},c={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"FetchOrLazilyCreateNewsletterV3AndMaybeSubscribeMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fetchOrLazilyCreateNewsletterV3AndMaybeSubscribe"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useNewsletterV3Subscription_newsletterV3"}}]}}]}}].concat((0,i.A)(a.definitions))}},78493:(e,n,t)=>{t.d(n,{XF:()=>u,xu:()=>s,yV:()=>a});var i,a,r,o=t(64467),l=t(20026);!function(e){e.Monthly="monthly",e.Yearly="yearly",e.PremiumMonthly="premiumMonthly",e.PremiumYearly="premiumYearly",e.PremiumYearlyCrossout="premiumYearlyCrossout",e.YearlyCrossout="yearlyCrossout",e.YearlyStaff="yearlyStaff",e.YearlyPriceSaved="yearlyPriceSaved",e.YearlyStaffPriceSaved="YearlyStaffPriceSaved",e.FiftyPercentOffOneYearDiscountPrice="FiftyPercentOffOneYearDiscountPrice",e.FiftyPercentOffOneYearDiscountCrossoutPrice="FiftyPercentOffOneYearDiscountCrossoutPrice",e.FiftyPercentOffOneYearDiscountSavedMembershipPrice="FiftyPercentOffOneYearDiscountSavedMembershipPrice"}(a||(a={})),function(e){e[e.NoDiscount=0]="NoDiscount",e[e.FiftyPercentOffOneYear=1]="FiftyPercentOffOneYear"}(r||(r={}));var c={plan:(i={},(0,o.A)(i,a.Monthly,5),(0,o.A)(i,a.Yearly,50),(0,o.A)(i,a.PremiumMonthly,15),(0,o.A)(i,a.PremiumYearly,150),(0,o.A)(i,a.PremiumYearlyCrossout,180),(0,o.A)(i,a.YearlyCrossout,60),(0,o.A)(i,a.YearlyStaff,1),(0,o.A)(i,a.YearlyPriceSaved,10),(0,o.A)(i,a.YearlyStaffPriceSaved,49),(0,o.A)(i,a.FiftyPercentOffOneYearDiscountPrice,25),(0,o.A)(i,a.FiftyPercentOffOneYearDiscountCrossoutPrice,50),(0,o.A)(i,a.FiftyPercentOffOneYearDiscountSavedMembershipPrice,25),i),currency:"USD"},s=function(e){var n=e.membershipType,t=c.currency,i=c.plan[n||a.Yearly];if(!i)throw new Error("Unavailable membership price");return{amount:i,currency:t}},u=function(e){var n=e.membershipType,t=e.excludeCurrencySign,i=void 0!==t&&t,a=e.isLongFormat,r=void 0!==a&&a,o=s({membershipType:n}),c=o.amount,u=o.currency;return i?(0,l.GR)(c,u,r):(0,l.vv)({amount:c,currency:u,floatingDigits:[0,2],isLongFormat:r})}},92554:(e,n,t)=>{t.d(n,{r:()=>i});var i=t(96540).createContext(!1)},14029:(e,n,t)=>{t.d(n,{Q:()=>o});var i=t(45458),a=t(62742),r=t(52144),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BookmarkButton_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"visibility"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SusiClickable_post"}},{kind:"FragmentSpread",name:{kind:"Name",value:"AddToCatalogBookmarkButton_post"}}]}}].concat((0,i.A)(a.CV.definitions),(0,i.A)(r.P.definitions))}},78968:(e,n,t)=>{t.d(n,{TI:()=>I,Vn:()=>L,kG:()=>y,D9:()=>U,iY:()=>V,nW:()=>g,ri:()=>v,_1:()=>S,tU:()=>h,V7:()=>O,b0:()=>E,$r:()=>f,qo:()=>k,p1:()=>R,bm:()=>M,pm:()=>B,yi:()=>H,u2:()=>T,V$:()=>A});var i=t(82284),a=t(10467),r=t(66973),o=t(42600),l=function(e){var n=new Date(e);return Date.UTC(n.getFullYear(),n.getMonth(),1)};function c(){c=function(){return n};var e,n={},t=Object.prototype,a=t.hasOwnProperty,r=Object.defineProperty||function(e,n,t){e[n]=t.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{d({},"")}catch(e){d=function(e,n,t){return e[n]=t}}function m(e,n,t,i){var a=n&&n.prototype instanceof S?n:S,o=Object.create(a.prototype),l=new R(i||[]);return r(o,"_invoke",{value:C(e,t,l)}),o}function p(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=m;var f="suspendedStart",g="suspendedYield",h="executing",v="completed",k={};function S(){}function b(){}function E(){}var y={};d(y,l,(function(){return this}));var N=Object.getPrototypeOf,w=N&&N(N(F([])));w&&w!==t&&a.call(w,l)&&(y=w);var P=E.prototype=S.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(n){d(e,n,(function(e){return this._invoke(n,e)}))}))}function T(e,n){function t(r,o,l,c){var s=p(e[r],e,o);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==(0,i.A)(d)&&a.call(d,"__await")?n.resolve(d.__await).then((function(e){t("next",e,l,c)}),(function(e){t("throw",e,l,c)})):n.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return t("throw",e,l,c)}))}c(s.arg)}var o;r(this,"_invoke",{value:function(e,i){function a(){return new n((function(n,a){t(e,i,n,a)}))}return o=o?o.then(a,a):a()}})}function C(n,t,i){var a=f;return function(r,o){if(a===h)throw new Error("Generator is already running");if(a===v){if("throw"===r)throw o;return{value:e,done:!0}}for(i.method=r,i.arg=o;;){var l=i.delegate;if(l){var c=A(l,i);if(c){if(c===k)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===f)throw a=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=h;var s=p(n,t,i);if("normal"===s.type){if(a=i.done?v:g,s.arg===k)continue;return{value:s.arg,done:i.done}}"throw"===s.type&&(a=v,i.method="throw",i.arg=s.arg)}}}function A(n,t){var i=t.method,a=n.iterator[i];if(a===e)return t.delegate=null,"throw"===i&&n.iterator.return&&(t.method="return",t.arg=e,A(n,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),k;var r=p(a,n.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,k;var o=r.arg;return o?o.done?(t[n.resultName]=o.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,k):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,k)}function _(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function I(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function F(n){if(n||""===n){var t=n[l];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var r=-1,o=function t(){for(;++r=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--t){var i=this.tryEntries[t];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),I(t),k}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var i=t.completion;if("throw"===i.type){var a=i.arg;I(t)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,i){return this.delegate={iterator:F(n),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=e),k}},n}var s=new r.A("post-article"),u=function(e){return new Date(e).setUTCHours(0,0,0,0)},d=function(e){var n;Number(s.get("first-post-viewed-today-timestamp","0")){t.d(n,{h5:()=>r,w$:()=>o});var i=t(45458),a=t(56788),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ClapMutation_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"clapCount"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MultiVoteCount_post"}}]}}].concat((0,i.A)(a.U.definitions))},o={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ClapMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"numClaps"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clap"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPostId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}}},{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"numClaps"},value:{kind:"Variable",name:{kind:"Name",value:"numClaps"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ClapMutation_viewerEdge"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"ClapMutation_post"}}]}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"ClapMutation_viewerEdge"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PostViewerEdge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"clapCount"}}]}}]),(0,i.A)(r.definitions))}},97595:(e,n,t)=>{t.d(n,{D:()=>o});var i=t(45458),a=t(62742),r=t(56788),o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MultiVote_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:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SusiClickable_user"}}]}},{kind:"Field",name:{kind:"Name",value:"isPublished"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SusiClickable_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:"slug"}}]}},{kind:"Field",name:{kind:"Name",value:"isLimitedState"}},{kind:"FragmentSpread",name:{kind:"Name",value:"MultiVoteCount_post"}}]}}].concat((0,i.A)(a.LI.definitions),(0,i.A)(a.CV.definitions),(0,i.A)(r.U.definitions))}},56788:(e,n,t)=>{t.d(n,{U:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MultiVoteCount_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},81799:(e,n,t)=>{t.d(n,{IY:()=>s,mq:()=>c,Eq:()=>u});var i=t(27721),a=t(60014),r=function(){var e=(0,i.R)(),n=e.loading,t=e.error,r=e.value,o=(0,a.F)(),l=o.loading,c=o.error,s=o.visitor;return null!=r&&r.geolocation?{loading:n,error:t,geolocation:r.geolocation}:null!=s&&s.geolocation?{loading:l,error:c,geolocation:s.geolocation}:{loading:n||l,error:t||c}},o=t(66973),l=new Set(["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB"]),c="accepted",s=new o.A("201805-policy");function u(){var e=r(),n=e.loading,t=e.geolocation;if(n)return{loading:n,isEu:void 0,hasAcceptedPrivacyBanner:void 0};var i,a=!(null==t||!t.country)&&(i=t.country,l.has(i));return{loading:!1,isEu:a,hasAcceptedPrivacyBanner:a&&s.get(c)}}},88726:(e,n,t)=>{t.d(n,{i:()=>u});var i=t(80045),a=t(64467),r=t(96540),o=t(44402),l=["borderColor","height"];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}var s=function(e,n,t){return function(i){return function(e){for(var n=1;n{var i;t.d(n,{gH:()=>r,qg:()=>a,rE:()=>i}),function(e){e[e.LEGACY=1]="LEGACY",e[e.STORY=2]="STORY",e[e.SIMPLE=3]="SIMPLE"}(i||(i={}));var a=3,r="414px"},79756:(e,n,t)=>{t.d(n,{DL:()=>d,Fl:()=>c,G$:()=>s,J6:()=>f,TC:()=>l,bY:()=>u,gz:()=>p,it:()=>g,rz:()=>m});var i=t(64467),a=t(51739);function r(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 o(e){for(var n=1;n{t.d(n,{C:()=>i});var i=new(t(66973).A)("uid")},55695:(e,n,t)=>{t.d(n,{Q:()=>r});var i=t(96540),a=t(75636),r=function(e){var n=e.children,t=e.name,r=e.placeholder,o=(0,a.p)(t),l=o.error,c=o.loading,s=o.value,u=o.isVisible;return l||c||!u?i.createElement(r,null):n(s)}},75636:(e,n,t)=>{t.d(n,{p:()=>o,z:()=>r});var i=t(39160),a=t(19723),r=function(e){var n=e.name,t=e.placeholder,i=o(n),a=i.error,r=i.loading,l=i.value,c=i.isVisible;return a||r||!c?t:l},o=function(e){var n=(0,i.d4)((function(e){return e.client.hydrated})),t=(0,a.iT)(e);return{error:t.error,loading:t.loading,value:t.value,isVisible:n}}},19723:(e,n,t)=>{t.d(n,{_P:()=>u,iT:()=>s,D0:()=>d});var i=t(39181),a=t(82484),r=function(e,n){a.L.addFeatureFlagEvaluation(e,null!=n&&n)},o=t(45458),l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VariantFlagsQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"variantFlags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VariantFlag_variantFlag"}}]}}]}}].concat((0,o.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"VariantFlag_variantFlag"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VariantFlag"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"valueType"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VariantFlagBoolean"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"booleanValue"},name:{kind:"Name",value:"value"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VariantFlagString"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"stringValue"},name:{kind:"Name",value:"value"}}]}}]}}]}}]))},c=function(e){var n=null;return e&&"VariantFlagBoolean"===e.valueType.__typename&&void 0!==e.valueType.booleanValue?n=e.valueType.booleanValue:e&&"VariantFlagString"===e.valueType.__typename&&void 0!==e.valueType.stringValue&&(n=e.valueType.stringValue),n},s=function(e){var n=(0,i.I)(l),t=n.data,a=(t=void 0===t?{}:t).variantFlags,o=void 0===a?[]:a,s=n.loading,u=n.error;if(s)return{loading:s};if(u)return{error:u};var d=function(e,n){var t=e.find((function(e){return e.name===n}));return c(t)}(o,e);return r(e,d),{value:d}},u=function(e){var n=s(e).value;return r(e,n),n},d=function(){var e=(0,i.I)(l),n=e.data,t=(n=void 0===n?{}:n).variantFlags,a=void 0===t?[]:t,r=e.loading,o=e.error;return r||o?{}:a.reduce((function(e,n){return e[n.name]=c(n),e}),{})}},74515:(e,n,t)=>{t.d(n,{R:()=>i});var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ViewerQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"allowEmailAddressSharingEditorWriter"}},{kind:"Field",name:{kind:"Name",value:"atsQualifiedAt"}},{kind:"Field",name:{kind:"Name",value:"dismissableFlags"}},{kind:"Field",name:{kind:"Name",value:"emailObfuscated"}},{kind:"Field",name:{kind:"Name",value:"geolocation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"country"}}]}},{kind:"Field",name:{kind:"Name",value:"hasGroupGiftingEnabled"}},{kind:"Field",name:{kind:"Name",value:"hasPastMemberships"}},{kind:"Field",name:{kind:"Name",value:"hasSubdomain"}},{kind:"Field",name:{kind:"Name",value:"imageId"}},{kind:"Field",name:{kind:"Name",value:"isEligibleToImportEmails"}},{kind:"Field",name:{kind:"Name",value:"isEligibleToViewNewResponses"}},{kind:"Field",name:{kind:"Name",value:"isMembershipTrialEligible"}},{kind:"Field",name:{kind:"Name",value:"isSuspended"}},{kind:"Field",name:{kind:"Name",value:"membership"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"memberSince"}},{kind:"Field",name:{kind:"Name",value:"friendSince"}}]}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"partnerProgramEnrollment"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}}]}},{kind:"Field",name:{kind:"Name",value:"postSubscribeMembershipUpsellShownAt"}},{kind:"Field",name:{kind:"Name",value:"styleEditorOnboardingVersionSeen"}},{kind:"Field",name:{kind:"Name",value:"twitterScreenName"}},{kind:"Field",name:{kind:"Name",value:"unverifiedEmail"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}}]}}]}}]}}]}},65138:(e,n,t)=>{t.d(n,{C:()=>i});var i=function(e){return e.length>0&&!e.match(/^lo_/)}},2550:(e,n,t)=>{t.d(n,{A:()=>r});var i=t(27721),a=t(60014),r=function(){var e=(0,i.R)(),n=e.loading,t=e.error,r=e.value,o=(0,a.F)(),l=o.loading,c=o.error,s=o.visitor;return null!=r&&r.id?{loading:n,error:t,viewerId:r.id}:null!=s&&s.id?{loading:l,error:c,viewerId:s.id}:{loading:n||l,error:t||c}}},27721:(e,n,t)=>{t.d(n,{R:()=>o});var i=t(39181),a=t(46473),r=t(74515),o=function(){var e=(0,a.HG)(),n=(0,i.I)(r.R,{ssr:!e}),t=n.data,o=(t=void 0===t?{}:t).viewer,l=void 0===o?null:o,c=n.loading,s=n.error;return c?{loading:c}:s?{error:s}:{value:l,loading:c}}},60014:(e,n,t)=>{t.d(n,{F:()=>r});var i=t(39181),a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VisitorQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"visitor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"geolocation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"country"}}]}}]}}]}}]},r=function(){var e=(0,i.I)(a,{ssr:!1}),n=e.loading,t=e.error,r=e.data;return{loading:n,error:t,visitor:(null==r?void 0:r.visitor)||null}}},9234:(e,n,t)=>{t.d(n,{_:()=>r});var i=t(39181),a=t(74515),r=function(){var e=(0,i.I)(a.R),n=e.data,t=(n=void 0===n?{}:n).viewer,r=void 0===t?null:t,o=e.loading,l=e.error;return o?{loading:o}:l?{error:l}:{value:r,loading:o}}},19228:(e,n,t)=>{t.d(n,{Cq:()=>c,U1:()=>s,qt:()=>l});var i=t(96540),a=t(11334),r=t(26298),o=i.createContext({baseTheme:r.z}),l=function(){return i.useContext(o)},c=function(e){var n=e.children,t=l().baseTheme;return i.createElement(a.N,{theme:t},n)},s=function(e){var n=e.children;return i.createElement(o.Provider,{value:{baseTheme:r.z}},i.createElement(c,null,n))}},62878:(e,n,t)=>{t.d(n,{G:()=>d,y:()=>m});var i=t(80296),a=t(96540),r=t(27049),o=t(20239),l=t(66305),c=t(39160),s=t(18721),u=Object.values(r.i),d=a.createContext({}),m=function(e){var n=e.children,t=(0,c.d4)((function(e){return e.client.hydrated})),r=(0,o.D)(),m=a.useCallback((function(){if(t&&"undefined"!=typeof window&&window.matchMedia)for(var e=0,n=u;e{t.d(n,{P:()=>o});var i=t(45631),a=t(96540),r=t(8636),o=a.createContext((0,i.A)({filterClassName:r.S}))},8636:(e,n,t)=>{t.d(n,{A:()=>u,S:()=>s});var i=t(45631),a=t(85835),r=t(88473);const o={html:{boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},"*, *:before, *:after":{boxSizing:"inherit"},body:{margin:0,padding:0,textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",color:"rgba(0,0,0,0.8)",position:"relative",minHeight:"100vh"},"h1, h2, h3, h4, h5, h6, dl, dd, ol, ul, menu, figure, blockquote, p, pre, form":{margin:0},"menu, ol, ul":{padding:0,listStyle:"none",listStyleImage:"none"},main:{display:"block"},a:{color:"inherit",textDecoration:"none"},"a, button, input":{WebkitTapHighlightColor:"transparent"},"img, svg":{verticalAlign:"middle"},button:{background:"transparent",overflow:"visible"},"button, input, optgroup, select, textarea":{margin:0},":root":{"--reach-tabs":1,"--reach-menu-button":1},"#speechify-root":{fontFamily:"Sohne, sans-serif"},'div[data-popper-reference-hidden="true"]':{visibility:"hidden",pointerEvents:"none"},".grecaptcha-badge":{visibility:"hidden"}};var l="\n/*\n\nXCode style (c) Angel Garcia \n\n*/\n\n.hljs {\n background: #fff;\n color: black;\n}\n\n/* Gray DOCTYPE selectors like WebKit */\n.xml .hljs-meta {\n color: #c0c0c0;\n}\n\n.hljs-comment,\n.hljs-quote {\n color: #007400;\n}\n\n.hljs-tag,\n.hljs-attribute,\n.hljs-keyword,\n.hljs-selector-tag,\n.hljs-literal,\n.hljs-name {\n color: #aa0d91;\n}\n\n.hljs-variable,\n.hljs-template-variable {\n color: #3F6E74;\n}\n\n.hljs-code,\n.hljs-string,\n.hljs-meta .hljs-string {\n color: #c41a16;\n}\n\n.hljs-regexp,\n.hljs-link {\n color: #0E0EFF;\n}\n\n.hljs-title,\n.hljs-symbol,\n.hljs-bullet,\n.hljs-number {\n color: #1c00cf;\n}\n\n.hljs-section,\n.hljs-meta {\n color: #643820;\n}\n\n\n.hljs-title.class_,\n.hljs-class .hljs-title,\n.hljs-type,\n.hljs-built_in,\n.hljs-params {\n color: #5c2699;\n}\n\n.hljs-attr {\n color: #836C28;\n}\n\n.hljs-subst {\n color: #000;\n}\n\n.hljs-formula {\n background-color: #eee;\n font-style: italic;\n}\n\n.hljs-addition {\n background-color: #baeeba;\n}\n\n.hljs-deletion {\n background-color: #ffc8bd;\n}\n\n.hljs-selector-id,\n.hljs-selector-class {\n color: #9b703f;\n}\n\n.hljs-doctag,\n.hljs-strong {\n font-weight: bold;\n}\n\n.hljs-emphasis {\n font-style: italic;\n}\n",c=new Set(["en","ad"]);function s(e){return!c.has(e)}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.noGlobals,t=e.ssrMode,c=(0,i.A)({plugins:[(0,r.A)()],mediaQueryOrder:["all and (min-width: 1080px)","all and (max-width: 1079.98px)","all and (max-width: 903.98px)","all and (max-width: 727.98px)","all and (max-width: 551.98px)","all and (min-width: 904px) and (max-width: 1079.98px)","all and (min-width: 728px) and (max-width: 903.98px)","all and (min-width: 552px) and (max-width: 727.98px)","print"],filterClassName:s});return t||(0,a.A)(c),n||(Object.keys(o).forEach((function(e){return c.renderStatic(o[e],e)})),c.renderStatic(l)),c}},61477:(e,n,t)=>{t.d(n,{J:()=>r});var i=t(96540),a=t(82811),r=function(){return i.useContext(a.P)}},65802:(e,n,t)=>{t.d(n,{n:()=>c});var i=t(80296),a=t(96540),r=t(75636),o=t(72130),l=t(39160),c=function(e){var n=e.callback,t=e.shouldExecuteRecaptcha,c=e.action,s=e.susiEntry,u=e.viewerId,d=(0,o.$L)(),m=(0,l.d4)((function(e){return e.config.recaptchaKey})),p=(0,l.d4)((function(e){return e.config.recaptchaEnterpriseKeyId})),f=(0,r.z)({name:"enable_recaptcha_enterprise",placeholder:!1}),g=a.useState(!1),h=(0,i.A)(g,2),v=h[0],k=h[1],S=a.useState(!1),b=(0,i.A)(S,2),E=b[0],y=b[1],N=a.useState(null),w=(0,i.A)(N,2),P=w[0],O=w[1];a.useEffect((function(){E&&(n(P),y(!1))}),[E]);var T=a.useCallback((function(){d.event("susi.recaptcha.invoked",{entryPoint:s,loggedOutUserId:u})}),[d,s,u]);return a.useEffect((function(){if(t){var e=window.grecaptcha;if(!e)return;f?e.enterprise.ready((function(){T(),e.enterprise.execute(p,{action:c}).then((function(e){O(e),y(!0)}))})):(v||(e.render("g-recaptcha",{callback:function(n){O(n),y(!0),e.reset()},sitekey:m,size:"invisible"}),k(!0)),e.execute()),d.event("site.loginByEmailCaptchaInvoked",{})}}),[t,T]),a.createElement("div",{id:"g-recaptcha"})}},62742:(e,n,t)=>{t.d(n,{CV:()=>o,Km:()=>r,LI:()=>l,ei:()=>c});var i=t(45458),a=t(51999),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiClickable_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SusiContainer_collection"}}]}}].concat((0,i.A)(a.Xv.definitions))},o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiClickable_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:"mediumUrl"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SusiContainer_post"}}]}}].concat((0,i.A)(a.pp.definitions))},l=([{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiClickable_topic"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Topic"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SusiContainer_topic"}}]}}].concat((0,i.A)(a.oN.definitions)),{kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiClickable_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SusiContainer_user"}}]}}].concat((0,i.A)(a.SL.definitions))}),c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiClickable_newsletterV3"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsletterV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SusiContainer_newsletterV3"}}]}}].concat((0,i.A)(a.zl.definitions))};[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SusiClickableAccountTokenQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SusiContainer_query"}}]}}].concat((0,i.A)(a.PQ.definitions))},43634:(e,n,t)=>{t.d(n,{r:()=>h});var i=t(64467),a=t(96540),r=t(18565),o=t(28263),l=t(99731),c=t(86527),s=t(49287),u=t(67033),d=t(39160),m=t(79959),p=t(46879);function f(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 g(e){for(var n=1;n{t.d(n,{$q:()=>m,Dq:()=>p,cg:()=>u,kV:()=>s});var i=t(64467),a=t(78968),r=t(79959);function o(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 l(e){for(var n=1;n1?"s":""," before your account is locked for 1 minute.");case"PasswordSoftLockout":return i=null==n?void 0:n.lockedOutUntil,a=Math.ceil((i-l)/6e4),"Due to too many password attempts, your account is locked for ".concat(a," minute").concat(a>1?"s":"",".");case"PasswordPermanentLockout":return"Due to security reasons, you can no longer sign in with password. Recover your password by requesting a magic link below.";case"InvalidTwoFactorAuthCode":return t=null==n?void 0:n.failCount,"That verification code was incorrect. You have ".concat(o=6-t," more attempt").concat(o>1?"s":""," before your account is locked for 1 minute.");case"TwoFactorAuthSoftLockout":return i=null==n?void 0:n.lockedOutUntil,a=Math.ceil((i-l)/6e4),"You reached your maximum number of attempts. Your account will be locked for ".concat(a," minute").concat(a>1?"s":"",".");case"TwoFactorAuthPermanentLockout":return"Your account has been locked, because you have attempted to enter a verification code too many times.";case"IpAuthLockout":return i=null==n?void 0:n.lockedOutUntil,r=Math.ceil((i-l)/864e5),"For security reasons, you cannot sign in from this network for ".concat(r," day").concat(r>1?"s":"",".");default:return"Please try again."}}},28263:(e,n,t)=>{t.d(n,{C:()=>o});var i=t(69733),a=t(91830),r=t(39160),o=function(){var e=(0,i.wA)(),n=(0,r.Dy)((function(e){return e.navigation.susiModal})),t=function(n){return e((0,a.mZ)(n))};return{goToSignInOptions:function(){return t({operation:"login",step:"SIGNIN_OPTIONS"})},goToSignUpOptions:function(){return t({operation:"register",step:"SIGNUP_OPTIONS"})},openModal:function(n){return e((0,a.mZ)(n))},resetModal:function(){return e((0,a.mZ)({step:null,operation:"login"}))},setOperation:function(e){return t({operation:e})},setStep:function(e){return t({step:e})},setToken:function(e){return t({token:e})},susiModalConfig:n,toggleOperation:function(){return t({operation:"login"===n.operation?"register":"login"})},updateModal:t}}},81512:(e,n,t)=>{t.d(n,{Q:()=>l});var i=t(45458),a=t(39160),r=t(79959),o=t(46879),l=function(e,n,t,l){var c=l&&"connect"===t?l:void 0,s=function(e){var n=(0,a.d4)((function(e){return e.config.authDomain}));switch(e){case"Apple":return(0,o.G0g)(n);case"Facebook":return(0,o.Ody)(n);case"Google":return(0,o.BBv)(n);case"Twitter":return(0,o.rlF)(n)}}(e),u={state:["".concat(e.toLowerCase(),"-"),n,t].concat((0,i.A)(c?[c]:[])).join("|")};return(0,r.ST)(s,u)}},79:(e,n,t)=>{t.d(n,{B:()=>u});var i,a=t(58168),r=t(96540),o=t(19723),l=t(72479);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{P:()=>k});var i,a=t(96540),r=t(55695),o=t(2550),l=t(99731),c=t(52290),s=t(72130),u=t(49287),d=t(39160);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{N:()=>c});var i=t(58168),a=t(96540),r=t(19723),o=t(72479),l=t(9112),c=function(e){var n=(0,i.A)({},e);return(0,r._P)("disable_login_facebook")?null:a.createElement(o.q,(0,i.A)({},n,{icon:l.A,service:"Facebook"}))}},88909:(e,n,t)=>{t.d(n,{s:()=>p});var i,a=t(58168),r=t(96540),o=t(55695),l=t(72479);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{q:()=>g});var i=t(96540),a=t(2550),r=t(85836),o=t(81512),l=t(86527),c=t(52290),s=t(99731),u=t(36557),d=t(72130),m=t(49287),p=t(39160),f={Facebook:"Facebook",Twitter:"X",Google:"Google",Apple:"Apple"},g=function(e){var n=e.actionUrl,t=e.customCopy,g=e.icon,h=e.isLink,v=e.operation,k=e.redirectTo,S=e.token,b=e.service,E=e.buttonPadding,y=(0,d.$L)(),N=(0,m.Zj)(),w=(0,p.d4)((function(e){return e.navigation.currentLocation})),P=k||w,O=v,T=(0,r.$q)(P,(0,m.jI)(),N,n,S),C=(0,a.A)(),A=C.loading,_=C.error,I=C.viewerId,R=(0,o.Q)(b,T,O,I);if(A||_)return null;var F=function(){y.event("susi.methodClicked",{entryPoint:N,operation:O,loggedOutUserId:I,susiMethod:b.toLowerCase()})},L=f[b],M="Sign ".concat("login"===O?"in":"up"," with ").concat(L),D=t||M;return h?i.createElement(u.kZ,{scale:"S",color:"DARKER"},i.createElement(l.N,{linkStyle:"SUBTLE",href:R,onClick:F},i.createElement(c.a,{display:"flex",alignItems:"center",justifyContent:"center"},i.createElement(c.a,{marginRight:"12px",marginTop:"-2px",tag:g}),L))):i.createElement(s.$n,{buttonStyle:"SOCIAL",href:R,onClick:F,size:"LARGE",width:s.Gk,padding:null!=E?E:s.Rc},i.createElement(c.a,{display:"flex",alignItems:"center",justifyContent:"space-between"},i.createElement(c.a,{tag:g}),D,i.createElement(c.a,{height:"24px",width:"24px"})))}},93967:(e,n,t)=>{t.d(n,{q:()=>c});var i=t(58168),a=t(96540),r=t(19723),o=t(72479),l=t(83615),c=function(e){var n=(0,i.A)({},e);return(0,r._P)("disable_login_twitter")?null:a.createElement(o.q,(0,i.A)({},n,{icon:l.A,service:"Twitter"}))}},38289:(e,n,t)=>{t.d(n,{p:()=>u});var i=t(96540),a=t(52290),r=t(86527),o=t(36557),l=t(49287),c=t(39160),s=t(46879),u=function(e){var n=e.ctaText,t=e.margin,u=e.width,d=(0,c.d4)((function(e){return e.config.productName})),m=(0,l.Zj)();return i.createElement(a.a,{width:u,margin:t,sm:{width:"80%"}},i.createElement(o.kZ,{scale:"S"},"Click “",n,"” to agree to ",d,"’s"," ",i.createElement(r.N,{href:s.x0D,linkStyle:"OBVIOUS",inline:!0,target:"_blank"},"Terms of Service")," ","and acknowledge that ",d,"’s"," ",i.createElement(r.N,{href:s.wuc,linkStyle:"OBVIOUS",inline:!0,target:"_blank"},"Privacy Policy")," ","applies to you."),"newsletter_v3_promo"===m||"subscribe_user"===m&&i.createElement(o.kZ,{scale:"S"},"When you subscribe to a writer or publication, your email address will be shared with them so they can stay in contact with you outside of Medium. Opt out any time by unsubscribing in Settings."))}},51999:(e,n,t)=>{t.d(n,{fS:()=>v,Xv:()=>d,zl:()=>g,pp:()=>m,PQ:()=>h,oN:()=>p,SL:()=>f});var i=t(45458),a=[{kind:"FragmentDefinition",name:{kind:"Name",value:"OAuthClickable_query"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Query"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountToken"}}]}}],r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"AppleSusiButton_query"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Query"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OAuthClickable_query"}}]}}].concat((0,i.A)(a))},o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"FacebookSusiButton_query"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Query"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OAuthClickable_query"}}]}}].concat((0,i.A)(a))},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"GoogleSusiButton_query"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Query"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OAuthClickable_query"}}]}}].concat((0,i.A)(a))},c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"TwitterSusiButton_query"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Query"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OAuthClickable_query"}}]}}].concat((0,i.A)(a))},s={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SignInOptions_query"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Query"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AppleSusiButton_query"}},{kind:"FragmentSpread",name:{kind:"Name",value:"FacebookSusiButton_query"}},{kind:"FragmentSpread",name:{kind:"Name",value:"GoogleSusiButton_query"}},{kind:"FragmentSpread",name:{kind:"Name",value:"TwitterSusiButton_query"}},{kind:"FragmentSpread",name:{kind:"Name",value:"EmailSusiButton_query"}}]}}].concat((0,i.A)(r.definitions),(0,i.A)(o.definitions),(0,i.A)(l.definitions),(0,i.A)(c.definitions),(0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"EmailSusiButton_query"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Query"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountToken"}}]}}]))},u={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SignUpOptions_query"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Query"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FacebookSusiButton_query"}},{kind:"FragmentSpread",name:{kind:"Name",value:"GoogleSusiButton_query"}}]}}].concat((0,i.A)(o.definitions),(0,i.A)(l.definitions))},d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiContainer_collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SignInOptions_collection"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SignUpOptions_collection"}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"SignInOptions_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:"name"}}]}}]),(0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"SignUpOptions_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:"name"}}]}}]))},m={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiContainer_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]},p={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiContainer_topic"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Topic"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SignInOptions_topic"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SignUpOptions_topic"}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"SignInOptions_topic"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Topic"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]),(0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"SignUpOptions_topic"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Topic"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]))},f={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiContainer_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SignInOptions_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SignUpOptions_user"}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"SignInOptions_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]),(0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"SignUpOptions_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]))},g={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiContainer_newsletterV3"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsletterV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SignInOptions_newsletterV3"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SignUpOptions_newsletterV3"}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"SignInOptions_newsletterV3"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsletterV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]),(0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"SignUpOptions_newsletterV3"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NewsletterV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]))},h={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SusiContainer_query"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Query"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SignInOptions_query"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SignUpOptions_query"}}]}}].concat((0,i.A)(s.definitions),(0,i.A)(u.definitions))},v={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AccountTokenQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accountToken"}}]}}]}},79637:(e,n,t)=>{t.d(n,{N:()=>o});var i=t(96540),a=t(52290),r=t(18642),o=function(e){var n=e.children;return i.createElement(a.a,{background:r.ON,borderRadius:{xs:"0",sm:"0",md:"4px",lg:"4px",xl:"4px"},boxShadow:"0 2px 10px ".concat((0,r.qy)(.15)),width:{xs:"100vw !important",sm:"100vw !important",md:"600px",lg:"678px",xl:"678px"},height:{xs:"100vh !important",sm:"100vh !important",md:"auto",lg:void 0,xl:void 0},position:"relative",playwrightClassName:"pw-susi-modal"},n)}},98426:(e,n,t)=>{t.d(n,{u:()=>m});var i=t(96540),a=t(38289),r=t(52290),o=t(86527),l=t(36557),c=t(46879),s=function(e){var n=e.margin,t=e.width;return i.createElement(r.a,{width:t,margin:n,sm:{width:"80%"}},i.createElement(l.kZ,{scale:"S"},"This site is protected by reCAPTCHA Enterprise and the",i.createElement("br",null),i.createElement(o.N,{href:c.Ppt,linkStyle:"OBVIOUS",inline:!0,target:"_blank"},"Google Privacy Policy")," ","and"," ",i.createElement(o.N,{href:c.aMX,linkStyle:"OBVIOUS",inline:!0,target:"_blank"},"Terms of Service")," ","apply."))},u=t(95107),d=t(90383),m=function(e){var n=e.bottomImageId,t=e.children,o=e.ctaText,c=e.isSubHeaderResponsive,m=void 0===c||c,p=e.poweredBy,f=e.subheader,g=e.title,h=e.showRecaptchaDisclaimer,v=void 0!==h&&h;return i.createElement(r.a,{background:"white",borderRadius:"4px",display:"flex",flexDirection:n?"column":"row",height:"100%",minHeight:"695px",justifyContent:"space-between",md:{display:"flex",justifyContent:"center",height:"100vh"},width:"100%"},i.createElement(r.a,{alignItems:"center",display:"flex",flexDirection:"column",flexGrow:"1",justifyContent:"center",md:{display:"flex",width:"100%"},padding:"44px 56px",sm:{paddingTop:"120px"},textAlign:"center",width:n?"100%":"360px"},i.createElement(u.mz,{scale:"M"},g),!!p&&i.createElement(r.a,{sm:{display:"none"}},i.createElement(l.kZ,{color:"LIGHTER",scale:"M"},p)),i.createElement(r.a,{marginTop:p?"20px":"30px",maxWidth:"316px",sm:m?{display:"none"}:{}},i.createElement(l.kZ,{color:"DARKER",scale:"L",tag:"h4"},f)),i.createElement(r.a,{marginTop:"50px"},t),o&&i.createElement(a.p,{ctaText:o,width:"450px"}),v&&i.createElement(s,null)),function(e){if(!e)return null;var n=(0,d.rP)({width:1800,height:212,miroId:e,strategy:d.qY.Resample}),t="url(".concat(n,")");return e&&i.createElement(r.a,{backgroundImage:t,backgroundPositionX:"center",backgroundPositionY:"center",backgroundSize:"cover",height:"212px",maxWidth:"900px"})}(n))}},87039:(e,n,t)=>{t.d(n,{K:()=>c});var i=t(96540),a=t(52290),r=t(36557),o=t(44402),l=function(e){return{alignItems:e,display:"flex"}},c=function(e){var n=e.avatar,t=e.button,c=e.description,s=e.isOneLine,u=void 0!==s&&s,d=e.title,m=e.clampDescription,p=e.leftMargin,f=void 0===p?"8px":p,g=e.alignItems,h=void 0===g?"center":g,v=(0,o.l)();return i.createElement("div",{className:v(l(h))},i.createElement("div",null,n),i.createElement(a.a,{display:u?"flex":void 0,marginLeft:n?f:void 0,width:"100%",flexWrap:u?"nowrap":void 0},i.createElement(a.a,{display:"flex"},d&&i.createElement("div",{style:{flex:1}},i.createElement(r.kZ,{scale:"M",color:"DARKER",tag:"span"},d)),t&&i.createElement("span",null,t)),c&&i.createElement(a.a,{flexShrink:"0"},i.createElement(r.kZ,{scale:"M",tag:"span",clamp:m},c))))}},42136:(e,n,t)=>{t.d(n,{z:()=>u});var i=t(80045),a=t(56449),r=t.n(a),o=t(96540),l=t(5562),c=t(52290),s=["children","middotPadding"];function u(e){var n=e.children,t=e.middotPadding,a=(0,i.A)(e,s),u=(r()(n)?n:[n]).filter((function(e){return!!e})).reduce((function(e,n,i){return 0!==i&&e.push(o.createElement(c.a,{paddingLeft:t,paddingRight:t,key:"middot-".concat(i),ariaHidden:"true"},o.createElement(l.d,null))),e.push(n),e}),[]);return o.createElement(c.a,a,u)}},5562:(e,n,t)=>{t.d(n,{d:()=>o});var i=t(96540),a=t(52290),r=t(36557),o=function(e){var n=e.scale,t=void 0===n?"M":n,o=e.margin,l=e.display,c=e.color,s=void 0===c?"LIGHTER":c;return i.createElement(a.a,{tag:"span",ariaHidden:"true",margin:o,display:l},i.createElement(r.kZ,{scale:t,tag:"span",color:s},"·"))}},14782:(e,n,t)=>{t.d(n,{Ni:()=>u,eS:()=>s,q3:()=>c});var i=t(96540),a=t(52290),r=t(39),o=t(44402),l={opacity:.3,cursor:"progress"};function c(e){var n=e.children,t=e.paddingTopBottom,a=void 0===t?"8px":t,c=e.paddingLeftRight,s=void 0===c?"20px":c,u=e.loading,d=(0,o.l)(),m=(0,r.Z)({name:"detail",scale:"M",color:"LIGHTER"}),p={padding:"".concat(a," ").concat(s),lineHeight:void 0};return i.createElement("li",{className:d([m,p,u?l:void 0])},n)}function s(e){var n=e.paddingTopBottom,t=void 0===n?"8px":n,r=(0,o.l)();return i.createElement(a.a,{paddingTop:t,paddingBottom:t,tag:"li"},i.createElement("div",{className:r((function(e){return{borderTop:"1px solid ".concat(e.colorTokens.border.neutral.primary.base)}}))}))}function u(e){var n=e.padding,t=e.children,r=e.width;return i.createElement(a.a,{display:"flex",flexDirection:"column",alignItems:"stretch",paddingTop:n||"8px",paddingBottom:n||"8px",tag:"ul",width:r},t)}},7580:(e,n,t)=>{t.d(n,{J:()=>d,r:()=>m});var i=t(96540),a=t(90280),r=t(52290),o=t(12378),l=t(44402),c=t(18642),s=t(90383),u=function(e){return function(n){return{display:"block",boxSizing:"border-box",borderRadius:"50%",height:(0,o.c)(e),width:(0,o.c)(e),backgroundColor:n.colorTokens.background.neutral.secondary.base}}},d=function(e,n,t,i){return{boxShadow:n?"none":"inset 0 0 0 1px ".concat((0,c.qy)(.05)),borderRadius:"50%",display:"block",height:"".concat(e,"px"),width:"".concat(e,"px"),position:"absolute",top:0,border:t?"1px solid ".concat((0,c.qy)(.05)):"none",":hover":{backgroundColor:i?(0,c.qy)(.1):"none"}}};function m(e){var n=e.alt,t=e.diameter,o=e.miroId,c=e.freezeGifs,m=e.rules,p=e.noBackgroundShadow,f=e.showBorder,g=void 0!==f&&f,h=e.showHoverState,v=void 0!==h&&h,k=e.testId,S=(0,l.l)(),b=[[u(t)],m];return i.createElement(r.a,{position:"relative"},i.createElement(a.pg,{rules:b,alt:n,miroId:o,width:t,height:t,strategy:s.qY.Crop,freezeGifs:c,testId:k}),i.createElement("div",{className:S(d(t,p,g,v))}))}},77865:(e,n,t)=>{t.d(n,{_:()=>l,u:()=>i});var i,a=t(58168),r=t(96540),o=t(44402);!function(e){e.LAZY="lazy",e.EAGER="eager"}(i||(i={}));var l=function(e){var n=e.alt,t=e.src,l=e.height,c=e.width,s=e.rules,u=e.imgRef,d=e.srcSet,m=e.sizes,p=e.loading,f=void 0===p?i.LAZY:p,g=e.handleError,h=e.testId,v=(0,o.l)(),k=l?Math.round(l):void 0,S=c?Math.round(c):void 0,b=null===c,E={alt:n,src:t,width:b?void 0:S,height:b?void 0:k,srcSet:d,sizes:m,loading:f,"data-testid":h};return n||(E.role="presentation"),r.createElement("img",(0,a.A)({alt:n,className:v(s),ref:u,onError:g},E))}},90280:(e,n,t)=>{t.d(n,{$S:()=>v,au:()=>g,l8:()=>r,pg:()=>k});var i,a,r,o=t(80045),l=t(64467),c=t(96540),s=t(77865),u=t(90383),d=["alt","rules","loading","testId"];function m(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 p(e){for(var n=1;n{t.d(n,{x:()=>a});var i=t(45458),a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DismissFlag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"flag"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UserDismissableFlags"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userDismissFlag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"flag"},value:{kind:"Variable",name:{kind:"Name",value:"flag"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DismissFlag_user"}}]}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"DismissFlag_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"dismissableFlags"}}]}}]))}},77485:(e,n,t)=>{t.d(n,{R:()=>r});var i=t(45458),a=t(59265),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserAvatar_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"imageId"}},{kind:"Field",name:{kind:"Name",value:"membership"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tier"}}]}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}}].concat((0,i.A)(a.v0.definitions))}},23393:(e,n,t)=>{t.d(n,{Fj:()=>y,H8:()=>N,eV:()=>h});var i=t(96540),a=t(88609),r=t(48795),o=t(64122),l=t(7580),c=t(86975),s=t(52290),u=t(24960),d=t(85864),m=t(36557),p=t(44402),f=t(42976),g=t(42600),h={XXXS:20,XXS:28,XS:32,S:40,M:48,L:64,XL:80,XXL:128},v=function(e){switch(e){case"XS":return{position:"-4px",right:"-4px",height:"16px",width:"16px"};case"L":return{position:"-8px",right:"-8px",height:"32px",width:"32px"};case"XL":return{position:"-10px",right:"-10px",height:"40px",width:"40px"};default:return{position:"-6px",right:"-6px",height:"24px",width:"24px"}}},k=function(e){return{position:"absolute",top:v(e).position,right:v(e).right,height:v(e).height,width:v(e).width}},S=function(e){return{color:e.backgroundColor,display:"inline-block",padding:"12px 16px",whiteSpace:"nowrap"}},b=function(e){var n=e.children,t=e.href,a=e.link,r=e.target,o=e.skipTab;return a?i.createElement(c.D,{target:r,href:t,tabIndex:o?-1:0},n):n},E=function(e){var n=e.children,t=e.hasPopover,a=e.name,r=(0,p.l)();return t&&a?i.createElement(d.B,null,(function(e){var t,o=e.isVisible,l=e.show,c=e.hide,s=function(){t&&clearTimeout(t),l()},d=function(){t=setTimeout(c,100)};return i.createElement("span",{onMouseEnter:s,onMouseLeave:d,onFocus:s,onBlur:d},i.createElement(u.A,{darkTheme:!0,disablePortalOverlay:!0,display:"block",placement:"top",hide:d,isVisible:o,shouldAnimateOpen:!0,popoverRenderFn:function(){return i.createElement("div",{onMouseEnter:s},i.createElement(m.kZ,{scale:"S",tag:"h4"},i.createElement("span",{className:r(S)},a)))}},n))})):n};function y(e){var n=e.scale;return i.createElement(l.r,{miroId:g._3,alt:"Unknown user",diameter:h[n],freezeGifs:!1})}var N=function(e){var n=e.hasPopover,t=void 0!==n&&n,c=e.link,u=void 0!==c&&c,d=e.target,m=e.scale,p=e.user,v=e.showHoverState,S=e.showBadge,y=void 0!==S&&S,N=e.badgeScale,w=void 0===N?"XS":N,P=e.showBadgeRegardlessCurrentMembership,O=e.skipTab,T=p.username,C=p.imageId,A=p.name,_=(0,o.f)(p);if(!T)return null;var I=i.createElement(l.r,{miroId:C||g._3,alt:A||"",diameter:h[m],freezeGifs:!1,showHoverState:v}),R=I;if(y||P){var F,L=null;if(null!=p&&null!==(F=p.membership)&&void 0!==F&&F.tier||P){var M,D=(null==p||null===(M=p.membership)||void 0===M?void 0:M.tier)===f.T3.FRIEND,x=i.createElement(r.a,{withBorder:!0,rules:k(w)}),U=i.createElement(a.K,{withBorder:!0,rules:k(w)});L=P?P===f.T3.FRIEND?U:x:D?U:x}R=i.createElement(s.a,{position:"relative"},I,L)}return i.createElement(E,{hasPopover:t,name:A},i.createElement(b,{target:d,href:_,link:u,skipTab:O},R))}},52897:(e,n,t)=>{t.d(n,{c:()=>c,l:()=>l});var i=t(45458),a=t(62742),r={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserFollowButtonSignedOut_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"FragmentSpread",name:{kind:"Name",value:"SusiClickable_user"}}]}}].concat((0,i.A)(a.LI.definitions))},o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserFollowButtonSignedOut_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SusiClickable_post"}}]}}].concat((0,i.A)(a.CV.definitions))},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserFollowButton_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserFollowButtonSignedIn_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserFollowButtonSignedOut_user"}}]}}].concat((0,i.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"UserFollowButtonSignedIn_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]),(0,i.A)(r.definitions))},c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserFollowButton_post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"collection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserFollowButtonSignedOut_post"}}]}}].concat((0,i.A)(o.definitions))}},23445:(e,n,t)=>{t.d(n,{AB:()=>u,pB:()=>c});var i=t(45458),a=t(77485),r=t(52897),o=t(55918),l=t(91052),c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserMentionTooltip_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"bio"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserAvatar_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserFollowButton_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"useIsVerifiedBookAuthor_user"}}]}}].concat((0,i.A)(a.R.definitions),(0,i.A)(r.l.definitions),(0,i.A)(o.s.definitions))},s={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserMentionTooltipContent_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"socialStats"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"followerCount"}}]}},{kind:"Field",name:{kind:"Name",value:"viewerEdge"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"lastPostCreatedAt"}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserPronouns_user"}}]}}].concat((0,i.A)(l.k.definitions))},u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserMentionTooltipContentQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"userResult"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserMentionTooltipContent_user"}}]}}]}}]}}].concat((0,i.A)(s.definitions))}},15473:(e,n,t)=>{t.d(n,{A4:()=>u,CQ:()=>p,PV:()=>d,nu:()=>m});var i=t(45458),a=t(64467),r=t(55364),o=t.n(r),l=t(98023),c=t.n(l),s=t(67194);function u(e,n){return function(t){var i,r=null===(i=t.counts)||void 0===i?void 0:i[e];return!c()(r)||!n&&r<1?t:o()({},t,{counts:(0,a.A)({},e,n?r+1:r-1)})}}function d(e,n){return function(t){var i=null==t?void 0:t[e];return!c()(i)||0===i&&n<0?t:o()({},t,(0,a.A)({},e,i+n))}}function m(e){return function(n,t){var a=t.readField;return n.users.find((function(n){return a("id",n)===e}))?n:o()({},n,{users:[(0,s.WU)("User:".concat(e))].concat((0,i.A)(n.users))})}}function p(e){return function(n,t){var a=t.readField;return n.collections.find((function(n){return a("id",n)===e}))?n:o()({},n,{collections:[(0,s.WU)("Collection:".concat(e))].concat((0,i.A)(n.collections))})}}},72041:(e,n,t)=>{t.d(n,{P:()=>l});var i=t(95420),a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UndeletePostMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"undeletePost"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPostId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}}}]}]}}]},r=t(51260),o=t(79959),l=function(e,n,t){var l=(0,r.au)()("ShowYourStories",{filterBy:"deleted"}),c=(0,o.ST)(l,{undeletedPost:"true",undeletedPostId:e,undeletedPostTitle:n,tab:t});return(0,i.n)(a,{variables:{targetPostId:e},onCompleted:function(){window.location.replace(c)}})}},5600:(e,n,t)=>{t.d(n,{A:()=>u,G:()=>d});var i=t(96540),a=t(52290),r=t(41299),o=t(39),l=t(12378),c=t(44402),s=t(18642),u=500;function d(e){var n=e.children,t=e.tooltipText,d=e.isVisible,m=void 0===d||d,p=e.onMouseLeave,f=e.placement,g=void 0===f?"top":f,h=e.maxWidth,v=e.targetDistance,k=e.darkTheme,S=void 0===k||k,b=e.mouseEnterDelay,E=void 0===b?u:b,y=e.mouseLeaveDelay,N=void 0===y?0:y,w=e.display,P=(0,c.l)(),O=(0,o.Z)({name:"detail",scale:"S",color:"DARKER"});return i.createElement(r.R,{darkTheme:S,hideOnClick:!0,isVisible:m,noPortal:!0,mouseEnterDelay:E,mouseLeaveDelay:N,placement:g,popoverRenderFn:function(){return i.createElement(a.a,{padding:"8px",maxWidth:h?(0,l.c)(h):void 0,textAlign:"center"},i.createElement("span",{className:P([O,{color:s.ON,whiteSpace:h?void 0:"nowrap"}])},t))},role:"tooltip",targetDistance:v,onMouseLeave:p,display:w},n)}},52290:(e,n,t)=>{t.d(n,{a:()=>x});var i=t(80045),a=t(64467),r=t(80296),o=t(96540),l=function(e,n){var t,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r={};return t=e,i=function(e,n){return r[e]=a(n)},n.forEach((function(e){null!=t[e]&&i(e,t[e])})),r},c=function(e){return["".concat(e,"Bottom"),"".concat(e,"Left"),"".concat(e,"Top"),"".concat(e,"Right")]},s=t(9459),u=t(44402),d=t(38667),m=t(18642),p=t(15578),f=["backgroundColor"],g=["children","tag","ariaHidden","ariaRole","ariaLabel","onClickTracking","playwrightClassName","speechifyIgnore","testId"];function h(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 v(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},t=n.allowFlexProps,i=n.noDefault,a=e.display,r=void 0===a?i?void 0:"block":a,o={display:r,float:e.float};return("flex"===r||"inline-flex"===r||t||(0,s.n_)(r)&&Object.values(r).some((function(e){return"flex"===e||"inline-flex"===e||"none"===e})))&&(o=v(v({},o),l(e,["alignContent","alignItems","flexDirection","justifyContent","flexWrap"]))),o},C=function(e){if(void 0===e.alignSelf&&void 0===e.flexGrow&&void 0===e.flexShrink&&void 0===e.flexBasis&&void 0===e.justifySelf&&void 0===e.order)return{};var n=e.alignSelf,t=e.flexGrow,i=void 0===t?0:t,a=e.flexShrink,o=void 0===a?0:a,l=e.flexBasis,c=void 0===l?"auto":l,u=e.justifySelf,d=e.order;return(0,s.Fv)((function(e){var n=(0,r.A)(e,6),t=n[0],i=n[1],a=n[2],o=n[3],l=n[4],c=n[5];return{alignSelf:t,flex:"".concat(i," ").concat(a," ").concat(o),justifySelf:l,order:c}}),n,i,o,c,u,d)},A=function(e){return function(n){var t={ACCENT_LIGHT:n.colorTokens.background.accent.secondary.hover,ACCENT_NORMAL:n.colorTokens.background.accent.primary.base,ACCENT_DARK:n.colorTokens.background.accent.primary.hover,BASE_LIGHT:n.colorTokens.background.neutral.tertiary.base,BASE_NORMAL:n.colorTokens.background.neutral.secondary.base,BASE_DARK:n.baseColor.background.dark,SAGE_LIGHT:n.colorTokens.background.accent.quaternary.base,SAGE_NORMAL:n.colorTokens.background.accent.primary.base,SAGE_DARK:n.colorTokens.background.accent.primary.base,BACKGROUND:n.backgroundColor,NONE:void 0};return l(e,["backgroundColor"],(function(e){return(0,s.Fv)((function(e){var n;return(n=(0,r.A)(e,1)[0])&&t[n]}),e)}))}},_=function(e){e.backgroundColor;var n=(0,i.A)(e,f);return l(n,["background","backgroundImage","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"])},I=function(e){return l(e,["gap"])},R=function(e){return l(e,["textAlign"])},F=function(e){return l(e,["whiteSpace"])},L=function(e){return l(e,["wordBreak"])};function M(e,n){var t=n[e];return t?function(n){return(0,a.A)({},d[e](n),v(v(v(v(v(v(v(v(v(v(v(v(v(v(v({},y(t)),k(t)(n)),S(t)),b(t)),E(t)),N(t)),w(t)),T(t,{allowFlexProps:!0,noDefault:!0})),C(t)),P(t)),O(t)),R(t)),_(t)),A(t)(n)),F(t)))}:{}}var D=function(e){var n=e.print;return n?function(){return(0,a.A)({},p.yy(),v({},T(n,{allowFlexProps:!0,noDefault:!0})))}:{}},x=o.forwardRef((function(e,n){var t=e.children,a=e.tag,r=void 0===a?"div":a,l=e.ariaHidden,c=e.ariaRole,s=e.ariaLabel,d=e.onClickTracking,m=e.playwrightClassName,p=e.speechifyIgnore,f=e.testId,h=(0,i.A)(e,g),v=(0,u.l)(),x=r,U=[y(h),k(h),S(h),b(h),E(h),N(h),w(h),T(h),C(h),I(h),P(h),O(h),_(h),A(h),R(h),F(h),L(h),M("xs",h),M("sm",h),M("md",h),M("lg",h),M("xl",h),D(h)],B="".concat(v(U));return m&&(B="".concat(m," ").concat(B).trim()),p&&(B="speechify-ignore ".concat(B).trim()),o.createElement(x,{className:B,onClick:d,ref:n,"aria-hidden":l,role:c,"aria-label":s,id:h.id,"data-testid":f},t)}))},99731:(e,n,t)=>{t.d(n,{$n:()=>E,Gk:()=>p,Rc:()=>f});var i=t(58168),a=t(80045),r=t(80296),o=t(96540),l=t(86975),c=t(39),s=t(9459),u=t(44402),d=t(18642),m=["buttonStyle","size","shape","width","loading","padding","displayOnly","onClick","forwardedRef"],p={xs:"100%",sm:"100%",md:"300px",lg:"300px",xl:"300px"},f="8px",g={COMPACT:"0px 8px 1px",SMALL:"5px 12px",REGULAR:"8px 16px",LARGE:"8px 20px",FULL:"12px",BADGE:"4px 0px"},h={BADGE:"auto"},v={COMPACT:"S",BADGE:"M",SMALL:"S",REGULAR:"M",FULL:"M",LARGE:"L"},k={borderWidth:"1px",borderStyle:"solid",boxSizing:"border-box",display:"inline-block",textDecoration:"none",":hover":{cursor:"pointer"},textAlign:"center"},S=function(e){var n,t,d=e.buttonStyle,p=void 0===d?"SUBTLE":d,f=e.size,S=void 0===f?"REGULAR":f,b=e.shape,E=void 0===b?"CIRCLE":b,P=e.width,O=e.loading,T=void 0!==O&&O,C=e.padding,A=e.displayOnly,_=void 0!==A&&A,I=e.onClick,R=e.forwardedRef,F=(0,a.A)(e,m),L=(0,s.Fv)((function(e){var n=(0,r.A)(e,1)[0];return v[n]}),S),M=(0,u.l)(),D=[(0,c.Z)({name:"detail",scale:L,color:"LIGHTER"}),(n=S,t=C,{padding:null!=t?t:(0,s.Fv)((function(e){return n=(0,r.A)(e,1)[0],g[n];var n}),n),margin:(0,s.Fv)((function(e){return n=(0,r.A)(e,1)[0],h[n];var n}),n)}),N[p],w[E],y(P),k];_&&D.push((function(){return{":hover":{cursor:"not-allowed"}}})),T&&D.push((function(e){return{color:e.colorTokens.background.neutral.secondary.base,fill:e.colorTokens.background.neutral.secondary.base,background:e.colorTokens.background.neutral.secondary.base,borderColor:e.colorTokens.border.neutral.primary.base,":hover":{cursor:"wait",color:e.colorTokens.background.neutral.secondary.base,fill:e.colorTokens.background.neutral.secondary.base,background:e.colorTokens.background.neutral.secondary.base,borderColor:e.colorTokens.border.neutral.primary.base}}}));var x=(0,o.useCallback)((function(e){!T&&I&&I(e)}),[T,I]);return o.createElement(l.D,(0,i.A)({className:M(D)},F,{onClick:I&&x,ref:R}))},b=(0,o.forwardRef)((function(e,n){return o.createElement(S,(0,i.A)({},e,{forwardedRef:n}))})),E=(0,o.memo)(b),y=function(e){return function(){return e?{width:e}:{}}},N={SUBTLE:function(e){return{color:e.colorTokens.foreground.neutral.primary.base,fill:e.colorTokens.foreground.neutral.primary.base,background:0,borderColor:e.colorTokens.border.neutral.secondary.base,":hover":{color:e.colorTokens.foreground.neutral.primary.hover,fill:e.colorTokens.foreground.neutral.primary.hover,borderColor:e.colorTokens.border.neutral.secondary.base},":disabled":{cursor:"inherit !important",opacity:.3,":hover":{color:e.colorTokens.foreground.neutral.primary.base,fill:e.colorTokens.foreground.neutral.primary.base,borderColor:e.colorTokens.border.neutral.secondary.base}}}},OBVIOUS:function(e){return{background:0,color:e.colorTokens.foreground.accent.primary.base,fill:e.colorTokens.background.accent.primary.base,borderColor:e.colorTokens.border.accent.primary.base,":hover":{color:e.colorTokens.foreground.accent.primary.hover,fill:e.colorTokens.background.accent.primary.hover,borderColor:e.colorTokens.border.accent.primary.hover},":disabled":{cursor:"inherit !important",opacity:.3,":hover":{color:e.colorTokens.foreground.accent.primary.base,fill:e.colorTokens.background.accent.primary.base,borderColor:e.colorTokens.border.accent.primary.base}}}},STRONG:function(e){return{color:e.colorTokens.background.neutral.primary.base,fill:e.colorTokens.background.neutral.primary.base,background:e.colorTokens.background.accent.primary.base,borderColor:e.colorTokens.border.accent.primary.base,":hover":{background:e.colorTokens.background.accent.primary.hover,borderColor:e.colorTokens.border.accent.primary.hover},":disabled":{cursor:"inherit !important",opacity:.3,":hover":{background:e.colorTokens.background.accent.primary.base,borderColor:e.colorTokens.border.accent.primary.base}}}},BRAND:function(e){return{color:e.backgroundColor,fill:e.backgroundColor,background:e.baseColor.fill.dark,borderColor:e.baseColor.fill.dark,":hover":{background:e.colorTokens.foreground.neutral.primary.hover,borderColor:e.colorTokens.border.neutral.secondary.base},":disabled":{cursor:"inherit !important",opacity:.1,":hover":{background:e.baseColor.fill.dark,borderColor:e.baseColor.fill.dark}}}},ERROR:function(e){return{color:e.backgroundColor,fill:e.backgroundColor,background:e.colorTokens.background.error.primary.base,borderColor:e.colorTokens.border.error.primary.base,":hover":{background:e.colorTokens.foreground.error.primary.hover,borderColor:e.colorTokens.foreground.error.primary.hover},":disabled":{cursor:"inherit !important",opacity:.3,":hover":{background:e.colorTokens.background.error.primary.base,borderColor:e.colorTokens.border.error.primary.base}}}},ERROR_SUBTLE:function(e){return{borderColor:e.colorTokens.border.error.primary.base,color:e.colorTokens.foreground.error.primary.base,background:0,fill:e.colorTokens.foreground.neutral.secondary.base,":hover":{color:e.colorTokens.foreground.error.primary.hover,borderColor:e.colorTokens.foreground.error.primary.hover},":disabled":{cursor:"inherit !important",opacity:.3,":hover":{color:e.colorTokens.foreground.error.primary.base,borderColor:e.colorTokens.border.error.primary.base}}}},WARN:function(e){return{color:e.colorTokens.foreground.neutral.secondary.base,fill:e.colorTokens.foreground.neutral.secondary.base,background:0,borderColor:e.colorTokens.border.neutral.secondary.base,":hover":{borderColor:e.colorTokens.border.error.primary.base,color:e.colorTokens.foreground.error.primary.base}}},FACEBOOK:function(e){return{color:e.backgroundColor,fill:e.backgroundColor,background:d.bJ,borderColor:d.bJ}},SOCIAL:function(e){return{color:e.colorTokens.foreground.neutral.primary.base,background:e.backgroundColor,textAlign:"left",borderColor:e.colorTokens.border.neutral.secondary.base,":hover":{color:e.colorTokens.foreground.neutral.primary.base,borderColor:e.colorTokens.border.neutral.secondary.base}}}},w={RECTANGLE:function(){return{borderRadius:"8px"}},CIRCLE:function(){return{borderRadius:"99em"}}}},86975:(e,n,t)=>{t.d(n,{D:()=>u});var i=t(58168),a=t(80045),r=t(96540),o=t(14596),l=["forwardedRef"];function c(e){var n=e.forwardedRef,t=(0,a.A)(e,l),c="disabled"in t&&!!t.disabled;return function(e){return"href"in e&&!!e.href}(t)&&!c?r.createElement(o.M,(0,i.A)({follow:!0},t,{ref:n})):r.createElement("button",(0,i.A)({},t,{ref:n}))}var s=(0,r.forwardRef)((function(e,n){return r.createElement(c,(0,i.A)({},e,{forwardedRef:n}))})),u=(0,r.memo)(s)},10531:(e,n,t)=>{t.d(n,{H:()=>c});var i=t(6638),a=t.n(i),r=t(96540),o=t(44402),l=t(21202),c=function(e){var n=e.numPlaceholders,t=void 0===n?4:n,i=e.itemPlaceholder,c=(0,o.l)(),s=(0,l.L)();return r.createElement("div",{className:c((function(){return s}))},a()(t,(function(e){return r.createElement(i,{key:"placeholder-".concat(e)})})))}},84569:(e,n,t)=>{t.d(n,{h:()=>o});var i=t(80296),a=t(96540),r=t(44402),o=function(e){var n=e.containerTag,t=void 0===n?"div":n,o=e.children,l=e.onMouseEnter,c=e.onMouseLeave,s=e.leaveOnClick,u=void 0!==s&&s,d=e.mouseEnterDelay,m=void 0===d?0:d,p=e.mouseLeaveDelay,f=void 0===p?0:p,g=e.rules,h=(0,r.l)(),v=a.useState(null),k=(0,i.A)(v,2),S=k[0],b=k[1],E=a.useCallback((function(){S&&clearTimeout(S),b(null)}),[S]),y=a.useCallback((function(e){c&&u&&(E(),c(e))}),[E,c,u]),N=a.useCallback((function(e){l&&(E(),b(setTimeout((function(){return l(e)}),m)))}),[E,l,m]),w=a.useCallback((function(e){c&&(E(),b(setTimeout((function(){return c(e)}),f)))}),[E,c,f]),P=t;return a.createElement(P,{onMouseDown:y,onMouseEnter:N,onMouseLeave:w,className:g?h(g):void 0},o)}},86527:(e,n,t)=>{t.d(n,{N:()=>f});var i=t(64467),a=t(58168),r=t(80045),o=t(96540),l=t(86975),c=t(44402),s=["display","inline","linkStyle","loading","inheritBorder","cursor","wrapLinks","rules","color","forwardedRef"];function u(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 d(e){for(var n=1;n{t.d(n,{A:()=>L,j:()=>I});var i=t(58168),a=t(80296),r=t(64467),o=t(96540),l=t(51036),c=t(49054),s=t(19228),u=t(37661),d=t(33781),m=t(24252),p=t(44402),f=t(11334),g=t(26061),h=t(39160),v=t(18642),k=t(15578),S=t(78693),b=t(74169);function E(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 y(e){for(var n=1;n2&&!k&&!S&&n[1].focus({preventScroll:!0})}}),[m.current]);var b=(0,o.useCallback)((function(e){e.relatedTarget&&v.current&&"tooltip"!==a&&(e.relatedTarget!==f.current&&e.relatedTarget!==g.current||(null==i||i(),v.current.focus()))}),[i,a]),E=(0,o.useCallback)((function(e){var n,t,a=e.target;null!==(n=m.current)&&void 0!==n&&n.contains(a)||null!==(t=v.current)&&void 0!==t&&t.contains(a)||null==i||i()}),[i]),y=(0,o.useCallback)((function(){return null==i?void 0:i()}),[i]);return(0,o.useEffect)((function(){if(s)return document.addEventListener("click",E),function(){return document.removeEventListener("click",E)}}),[s,E]),(0,o.useEffect)((function(){if(u)return document.addEventListener("scroll",y),function(){return document.removeEventListener("scroll",y)}}),[u,y]),o.createElement("div",{id:n,className:d(C(t)),ref:m,onBlur:b},o.createElement("span",{tabIndex:0,ref:f}),r(l),o.createElement("span",{tabIndex:0,ref:g}))};function L(e){var n=e.children,t=e.darkTheme,r=void 0!==t&&t,c=e.disablePortalOverlay,u=void 0!==c&&c,h=e.display,v=e.flip,k=void 0===v||v,S=e.hide,E=e.isVisible,N=e.noArrow,w=void 0!==N&&N,P=e.noPortal,T=void 0!==P&&P,C=e.overflowPadding,A=void 0===C?5:C,I=e.placement,L=void 0===I?"bottom":I,M=e.popoverRenderFn,D=e.popoverTheme,x=e.referenceHeight,U=e.referenceWidth,B=e.refTag,j=void 0===B?"div":B,V=e.setMaxHeight,H=void 0!==V&&V,G=e.shouldAnimateOpen,W=void 0!==G&&G,z=e.targetDistance,Y=void 0===z?5:z,q=e.horizontalTargetDistance,K=e.customZIndex,Q=e.role,X=e.ariaId,Z=e.arrowPadding,$=e.popoverRules,J=e.arrowRules,ee=e.styleOverrides,ne=void 0===ee?{}:ee,te=e.hideOnOutsideClick,ie=e.hideOnScroll,ae=e.fallbackPlacements,re=e.positioningStrategy,oe=(0,s.qt)().baseTheme,le=(0,p.l)(),ce={display:h||"inline-block",height:x,width:U},se=j,ue=(0,o.useCallback)((function(e){var n=e.state,t=n.elements.popper.children[0];if(t&&!k&&("bottom-end"===L||"bottom-start"===L||"bottom"===L||"top-end"===L||"top-start"===L||"top"===L)){var i,a=n.elements.reference.getBoundingClientRect();switch(L){case"bottom-end":case"bottom-start":case"bottom":i=window.innerHeight-(a.y+n.rects.reference.height)-Y-A;break;case"top-end":case"top-start":case"top":i=a.y-Y-A}t.style.overflowY="auto",t.style.maxHeight="".concat(i,"px")}}),[k,b.bb,L,A,Y]),de=(0,o.useState)(null),me=(0,a.A)(de,2),pe=me[0],fe=me[1],ge=(0,o.useState)(null),he=(0,a.A)(ge,2),ve=he[0],ke=he[1],Se=(0,o.useState)(null),be=(0,a.A)(Se,2),Ee=be[0],ye=be[1],Ne=(0,o.useCallback)((function(e){return fe(e)}),[]),we=(0,o.useCallback)((function(e){return ke(e)}),[]),Pe=(0,o.useCallback)((function(e){return ye(e)}),[]),Oe=(0,l.E)(pe,ve,{modifiers:[{name:"arrow",options:{element:Ee,padding:Z}},{name:"flip",enabled:k,options:{padding:Y,fallbackPlacements:ae}},{name:"preventOverflow",enabled:!0,options:{padding:A}},{name:"offset",enabled:!0,options:{offset:[null!=q?q:0,Y]}},{name:"setMaxHeight",enabled:H,fn:ue,phase:"afterWrite"},{name:"hide",data:{isReferenceHidden:!(pe&&!pe.offsetParent)}}],placement:L,strategy:re}),Te=Oe.styles,Ce=Oe.attributes,Ae=Oe.state,_e=Oe.update,Ie=Ae?Ae.placement:L,Re=o.createElement(f.N,{theme:D||oe},o.createElement(g.A,null,(function(e){return o.createElement("div",(0,i.A)({ref:we,style:y(y({},Te.popper),ne),className:e([O(r,K),$])},Ce.popper),o.createElement(R,{placement:Ie,shouldAnimateOpen:W},o.createElement(F,{ariaId:X,darkTheme:r,hide:S,popoverRole:Q,popoverRenderFn:M,update:_e,hideOnOutsideClick:te,hideOnScroll:ie,role:Q}),!w&&o.createElement("div",{className:e([_((Ie||"").split("-")[0],r),J]),ref:Pe,style:Te.arrow})))})));return T||(Re=o.createElement(d.i,{disableOverlay:u,onClick:S?function(e){return(0,m.D)(S,e)}:void 0,onKeyDown:S?function(e){return(0,m.x)(S,e)}:void 0,customZIndex:K},Re)),o.createElement(o.Fragment,null,o.createElement(se,{ref:Ne,className:le(ce),"aria-hidden":E,"aria-describedby":X,"aria-labelledby":X,"aria-haspopup":"tooltip"!==Q?Q:void 0},n),E?Re:null)}},34181:(e,n,t)=>{t.d(n,{r:()=>f});var i=t(58168),a=t(80045),r=t(64467),o=t(96540),l=t(52290),c=t(20239),s=["tag","columns","gutter","centered"];function u(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 d(e){for(var n=1;n{t.d(n,{R:()=>c});var i=t(80296),a=t(89089),r=t(96540),o=t(84569),l=t(24960);function c(e){var n=e.popoverTag,t=e.onMouseEnter,c=e.onMouseLeave,s=e.isVisible,u=void 0===s||s,d=e.darkTheme,m=e.hide,p=e.noArrow,f=void 0!==p&&p,g=e.noPortal,h=void 0===g||g,v=e.disablePortalOverlay,k=void 0!==v&&v,S=e.display,b=e.placement,E=e.targetDistance,y=e.popoverRenderFn,N=e.mouseEnterDelay,w=void 0===N?0:N,P=e.mouseLeaveDelay,O=void 0===P?1e3:P,T=e.hideOnClick,C=void 0!==T&&T,A=e.customZIndex,_=e.referenceWidth,I=e.children,R=e.fallbackPlacements,F=e.hoverableRules,L=r.useState(!1),M=(0,i.A)(L,2),D=M[0],x=M[1],U=r.useCallback((function(e){t&&t(e),x(!0)}),[t,x]),B=r.useCallback((function(e){c&&c(e),x(!1)}),[c,x]),j=(0,a.B)();return r.createElement(o.h,{containerTag:n,leaveOnClick:C,onMouseEnter:U,onMouseLeave:B,mouseEnterDelay:w,mouseLeaveDelay:O,rules:F},r.createElement(l.A,{refTag:n,isVisible:u&&D,darkTheme:d,hide:m,noArrow:f,noPortal:h,disablePortalOverlay:k,display:S,placement:b,popoverRenderFn:y,targetDistance:E,customZIndex:A,role:"tooltip",ariaId:j,referenceWidth:_,fallbackPlacements:R,positioningStrategy:"fixed"},I))}},48198:(e,n,t)=>{t.d(n,{J:()=>p});var i,a=t(96540),r=t(52290),o=t(86527),l=t(44402);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{n:()=>l});var i=t(96540),a=t(36557),r=t(44402),o=function(e,n){return function(t){return{color:n>e?t.colorTokens.foreground.error.primary.base:t.baseColor.text.dark}}},l=function(e){var n=e.count,t=void 0===n?0:n,l=e.limit,c=e.scale,s=void 0===c?"S":c,u=(0,r.l)();return i.createElement(a.kZ,{scale:s},i.createElement("span",{className:u(o(l,t))},t),"/",l)}},46844:(e,n,t)=>{t.d(n,{A:()=>L});var i,a,r=t(58168),o=t(80296),l=t(80045),c=t(96540),s=t(52290),u=t(39),d=t(44402),m=t(8883),p={border:0,flex:1,overflow:"hidden",resize:"none",width:"100%"},f={color:"inherit",background:"inherit",fontStyle:"inherit"},g=function(e){var n=[m.F,p];return e?[].concat(n,[f]):n},h=function(e,n){if(e.current){e.current.rows=1;var t=e.current.scrollHeight/parseInt(getComputedStyle(e.current).lineHeight);e.current.rows=Number.isInteger(t)?Math.max(n,t):n}},v=(0,c.forwardRef)((function(e,n){var t=e.ariaLabel,i=e.autoFocus,a=e.inheritCustomStyleSheet,r=e.initialRows,o=e.isEditable,l=void 0===o||o,s=e.name,u=e.onChange,m=e.placeholder,p=e.testId,f=e.value,v=function(e,n){var t=c.useRef(null);return c.useEffect((function(){[e,n].forEach((function(e){e&&("function"==typeof e?e(t.current):e.current=t.current)}))}),[e,n]),t}((0,c.useRef)(null),n),k=(0,c.useCallback)((function(e){u&&u(e),h(v,r)}),[u,v,r]);(0,c.useEffect)((function(){return h(v,r)}),[f,r]);var S=(0,d.l)();return c.createElement("textarea",{"aria-label":t,autoFocus:i,className:S(g(a)),"data-testid":p,disabled:!l,name:s,onChange:k,placeholder:m,ref:v,rows:r,value:f})})),k=t(5870),S={height:"1em",width:"100%",textAlign:"inherit"},b=function(e){var n=e.characterCount,t=e.characterCountLimit,i=e.characterCountScale,a=e.description,r=e.keepBottomContentSpace,o=e.status,l=e.value,m=(0,d.l)(),p="LIGHTER";switch(o){case"ERROR":p="ERROR";break;case"SUCCESS":p="ACCENT"}var f=(0,u.Z)({name:"detail",scale:"S",color:p});return t||a||r?c.createElement(s.a,{marginTop:"8px",display:"flex",justifyContent:a?"space-between":"flex-end"},c.createElement("span",{className:m([f,S])},a),!!t&&c.createElement(k.n,{count:null!=n?n:null==l?void 0:l.length,limit:t,scale:i})):null},E={flex:"1"},y={number:"[0-9]*",email:".*",tel:"[0-9]{10}"},N=function(e){var n=e.ariaLabel,t=e.autoFocus,i=e.isEditable,a=void 0===i||i,r=e.name,o=e.onChange,l=e.onSubmit,s=e.placeholder,u=e.testId,p=e.type,f=e.value,g=(0,d.l)(),h=(0,c.useCallback)((function(e){"Enter"===e.key&&l&&l(e)}),[l]);return c.createElement("input",{"aria-label":n,autoFocus:t,className:g([[m.F,E]]),"data-testid":u,disabled:!a,name:r,onChange:o,onKeyDown:h,pattern:p&&y[p],placeholder:s,type:p,value:f})},w=t(14852);function P(){return P=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{F:()=>o,a:()=>r});var i=function(e){var n=e.isFocused,t=e.status,i=e.theme;switch(t){case"ERROR":return i.colorTokens.border.error.primary.base;case"SUCCESS":return i.colorTokens.border.accent.primary.base}return n?i.colorTokens.border.neutral.secondary.base:"transparent"},a=function(e){var n=e.theme;return e.isFocused?n.colorTokens.background.neutral.tertiary.base:n.colorTokens.background.neutral.secondary.base},r=function(e){var n=e.isEditable,t=e.isFocused,r=e.status,o=e.width;return function(e){return{display:"flex",width:o||"100%",borderStyle:"solid",borderWidth:"1px",borderRadius:"4px",padding:"8px 12px",borderColor:i({theme:e,isFocused:t,status:r}),backgroundColor:a({theme:e,isFocused:t}),opacity:n?1:.3,"& input, textarea":{padding:"0"}}}},o=function(e){return{backgroundColor:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",textAlign:"inherit",borderWidth:0,outline:0,"::placeholder":{color:e.colorTokens.foreground.neutral.secondary.base}}}},20621:(e,n,t)=>{t.d(n,{E:()=>c});var i=t(80296),a=t(96540),r=t(62561),o=t(9459),l=t(44402),c=(0,a.forwardRef)((function(e,n){var t=e.alignItems,c=void 0===t?"center":t,s=e.children,u=e.direction,d=void 0===u?"row":u,m=e.gutters,p=void 0===m||m,f=e.role,g=(0,l.l)(),h=function(e){var n=e.alignItems,t=e.direction,a=e.gutters;return function(e){var r={xs:e.grid.gutterSteps.xs*e.grid.xStep,sm:e.grid.gutterSteps.sm*e.grid.xStep,md:e.grid.gutterSteps.md*e.grid.xStep,lg:e.grid.gutterSteps.lg*e.grid.xStep,xl:e.grid.gutterSteps.xl*e.grid.xStep},l=a?(0,o.Fv)((function(e){var n=(0,i.A)(e,1)[0];return"-".concat(n/2,"px")}),r):0;return{alignItems:n,display:"flex",flexDirection:t,flexWrap:"wrap",width:a?(0,o.Fv)((function(e){var n=(0,i.A)(e,1)[0];return"calc(100% + ".concat(n,"px)")}),r):"100%",marginLeft:l,marginRight:l}}}({alignItems:c,direction:d,gutters:p});return a.createElement(r.k.Provider,{value:{gutters:p}},a.createElement("div",{className:g(h),role:f,ref:n},s))}))},62561:(e,n,t)=>{t.d(n,{k:()=>i});var i=t(96540).createContext({gutters:!0})},615:(e,n,t)=>{t.d(n,{E:()=>u});var i=t(80296),a=t(96540),r=t(62561),o=t(9459),l=t(44402),c=function(e){return"".concat(Math.round(e/12*1e8)/1e6,"%")},s=function(e){return function(n){var t={xs:n.grid.gutterSteps.xs*n.grid.xStep,sm:n.grid.gutterSteps.sm*n.grid.xStep,md:n.grid.gutterSteps.md*n.grid.xStep,lg:n.grid.gutterSteps.lg*n.grid.xStep,xl:n.grid.gutterSteps.xl*n.grid.xStep},a=e?(0,o.Fv)((function(e){var n=(0,i.A)(e,1)[0];return"".concat(n/2,"px")}),t):"0px";return{paddingLeft:a,paddingRight:a}}},u=(0,a.forwardRef)((function(e,n){var t,u=e.children,d=e.size,m=e.rules,p=(0,a.useContext)(r.k).gutters,f=(0,l.l)(),g=[s(p),(t=d,{flexBasis:(0,o.Fv)((function(e){var n=(0,i.A)(e,1)[0];return c(n)}),t),flexGrow:0,maxWidth:(0,o.Fv)((function(e){var n=(0,i.A)(e,1)[0];return c(n)}),t)}),m];return a.createElement("div",{className:f(g),ref:n},u)}))},28072:(e,n,t)=>{t.d(n,{P:()=>u});var i=t(80296),a=t(96540),r=t(46225),o=t(9459),l=t(44402),c={display:"flex",justifyContent:"center"},s=function(e,n){return"app"===e?(0,r.fI)():function(t){return{margin:null!=n?n:(0,o.Fv)((function(e){var n=(0,i.A)(e,2),a=n[0],r=n[1];return"full"===a?"0":"0 ".concat(r*t.grid.xStep,"px")}),e,t.grid.marginSteps),maxWidth:(0,o.Fv)((function(e){var n=(0,i.A)(e,1)[0];return"full"===n?"100%":"".concat(t.maxWidths[n],"px")}),e),minWidth:"0",width:"100%"}}},u=function(e){var n=e.children,t=e.size,i=void 0===t?"outset":t,r=e.margin,o=e.rules,u=(0,l.l)();return a.createElement("div",{className:u([c,o])},a.createElement("div",{className:u(s(i,r))},n))}},49597:(e,n,t)=>{t.d(n,{X:()=>u});var i=t(96540),a=t(77884),r=t(92901),o=t(23029),l=(0,r.A)((function e(n,t){var i=this;(0,o.A)(this,e),this.timeoutId=void 0,this.resumedAt=void 0,this.duration=void 0,this.elapsed=void 0,this.completed=void 0,this.onComplete=void 0,this.complete=function(){i.pause(),i.completed=!0,i.onComplete()},this.resume=function(){if(!(i.resumedAt||i.timeoutId||i.completed)){var e=i.duration-i.elapsed;e<=0?i.complete():(i.resumedAt=Date.now(),i.timeoutId=setTimeout(i.complete,e))}},this.pause=function(){i.timeoutId&&!i.completed&&(i.elapsed+=Date.now()-i.resumedAt,clearTimeout(i.timeoutId),i.resumedAt=0,delete i.timeoutId)},this.setDuration=function(e){e!==i.duration&&(i.duration=e,i.timeoutId&&(i.pause(),i.resume()))},this.resumedAt=0,this.elapsed=0,this.duration=n,this.completed=!1,this.onComplete=t})),c=t(44402),s=t(78693),u=function(e){var n=e.children,t=e.container,r=e.duration,o=e.onComplete,u=e.rules,d=e.zIndex,m=void 0===d?s.Ay.floating:d,p=e.onTransitionEnd,f=function(e,n){var t=(0,i.useRef)();return(0,i.useEffect)((function(){return function(){var e;null===(e=t.current)||void 0===e||e.pause()}}),[]),(0,i.useEffect)((function(){var i;e&&n&&(t.current?t.current.setDuration(e):(t.current=new l(e,n),null===(i=t.current)||void 0===i||i.resume()))}),[e,n]),t}(r,o),g=(0,c.l)(),h=(0,i.useCallback)((function(){var e;null===(e=f.current)||void 0===e||e.pause()}),[]),v=(0,i.useCallback)((function(){var e;null===(e=f.current)||void 0===e||e.resume()}),[]);return i.createElement(a.Z,{container:t},i.createElement("div",{className:g([u,{zIndex:m}]),onMouseEnter:h,onMouseLeave:v,onTransitionEnd:p},n))}},33781:(e,n,t)=>{t.d(n,{i:()=>p});var i=t(23029),a=t(92901),r=t(85501),o=t(56822),l=t(53954),c=t(96540),s=t(26061),u=t(77884),d=t(78693);var m=function(e,n){return function(){return{position:"absolute",top:"0",bottom:e?"unset":"0",left:"0",right:e?"unset":"0",zIndex:n||d.Ay.metabar,":focus":{outline:"none"}}}},p=function(e){(0,r.A)(p,e);var n,t,d=(n=p,t=function(){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}}(),function(){var e,i=(0,l.A)(n);if(t){var a=(0,l.A)(this).constructor;e=Reflect.construct(i,arguments,a)}else e=i.apply(this,arguments);return(0,o.A)(this,e)});function p(){var e;(0,i.A)(this,p);for(var n=arguments.length,t=new Array(n),a=0;a{t.d(n,{Z:()=>u});var i=t(23029),a=t(92901),r=t(85501),o=t(56822),l=t(53954),c=t(96540),s=t(40961);var u=function(e){(0,r.A)(u,e);var n,t,c=(n=u,t=function(){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}}(),function(){var e,i=(0,l.A)(n);if(t){var a=(0,l.A)(this).constructor;e=Reflect.construct(i,arguments,a)}else e=i.apply(this,arguments);return(0,o.A)(this,e)});function u(e){var n;return(0,i.A)(this,u),(n=c.call(this,e)).portalEl=void 0,n.portalEl=document.createElement("div"),n}return(0,a.A)(u,[{key:"componentDidMount",value:function(){var e=this.props.container;e&&e.appendChild(this.portalEl)}},{key:"componentWillUnmount",value:function(){var e=this.props.container;e&&e.removeChild(this.portalEl)}},{key:"componentDidUpdate",value:function(e){}},{key:"render",value:function(){return s.createPortal(this.props.children,this.portalEl)}}]),u}(c.Component);u.defaultProps={container:"undefined"==typeof document?null:document.body}},64314:(e,n,t)=>{t.d(n,{m:()=>d});var i=t(80296),a=t(96540),r=t(99731),o=t(3005),l=t(52290),c=t(48198),s=t(36557),u=t(18642),d=function(e){var n=e.ariaLabelledBy,t=e.buttonStyle,d=void 0===t?"STRONG":t,m=e.buttonSize,p=void 0===m?"REGULAR":m,f=e.cancelText,g=void 0===f?"Cancel":f,h=e.children,v=e.confirmText,k=e.footer,S=void 0===k?null:k,b=e.hide,E=e.isVisible,y=e.noPortal,N=e.isResponse,w=void 0!==N&&N,P=e.onConfirm,O=e.showCancelButton,T=void 0===O||O,C=e.withCloseButton,A=void 0===C||C,_=e.isDestructiveAction,I=e.disableConfirm,R=void 0!==I&&I,F=e.hideOnConfirm,L=void 0===F||F,M=e.secondaryButton,D=e.customBackgroundColor,x=e.hrefConfirm,U=e.childrenAlign,B=void 0===U?"center":U,j=e.actionsAlign,V=void 0===j?"center":j,H=e.footerAlign,G=void 0===H?"center":H,W=e.testId,z=a.useState(0),Y=(0,i.A)(z,2),q=Y[0],K=Y[1];a.useEffect((function(){q||K(window.innerWidth)}),[]);var Q=a.useCallback((function(e){P&&P(e),L&&(null==b||b())}),[P,b,L]),X=!M&&T?a.createElement(r.$n,{buttonStyle:"SUBTLE",size:p,onClick:b,"data-testid":W?"".concat(W,"CancelButton"):void 0},g):M;return a.createElement(o.l,{ariaLabelledBy:n,isVisible:E,hide:b,noPortal:y,withCloseButton:!1,customBackgroundColor:(0,u.u7)(.94),isResponse:w},a.createElement(l.a,{position:"relative"},a.createElement(l.a,{background:w?"none":D||"white",borderRadius:"4px",display:"flex",flexDirection:"column",alignItems:"center",minHeight:"550px",width:w?"100%":"900px",justifyContent:"space-between",boxShadow:w?"none":"rgba(0, 0, 0, 0.15) 0px 2px 10px",padding:w?"0px":"18px",md:{display:"flex",justifyContent:"center",width:"720px"},sm:{width:"540px"},xs:{width:q<=320?"272px":"320px"}},a.createElement(l.a,{alignItems:"center",display:"flex",flexDirection:"column",flexGrow:"1",justifyContent:"center",md:{display:"flex",width:"100%"},padding:w?"0px":"44px 56px",sm:{padding:"32px 7px"},maxWidth:"680px"},a.createElement(l.a,{display:"flex",flexDirection:"column",alignItems:B},h,a.createElement(l.a,{display:"flex",justifyContent:V,width:"100%"},X,v&&a.createElement(l.a,{paddingLeft:X?"8px":void 0,display:"inline-block"},a.createElement(r.$n,{buttonStyle:_?"ERROR":d,size:p,onClick:Q,disabled:R,href:x,"data-testid":W?"".concat(W,"ConfirmButton"):void 0},v))),S?a.createElement(l.a,{paddingTop:"48px",textAlign:G,width:"100%"},a.createElement(s.kZ,{scale:"M",tag:"span"},S)):null))),A&&a.createElement(c.J,{onClick:b,size:"LARGE",absoluteOffset:"18px",testId:W?"".concat(W,"CloseButton"):void 0})))}},3005:(e,n,t)=>{t.d(n,{l:()=>v});var i=t(80296),a=t(64467),r=t(96540),o=t(19228),l=t(37661),c=t(52290),s=t(48198),u=t(98806),d=t(24252),m=t(44402),p=t(15578),f=function(e){return function(n){return{padding:"".concat(void 0!==e?e:n.grid.columnWidth,"px"),marginTop:"auto",marginBottom:"auto"}}},g={"0%":{opacity:0},"25%":{transform:"scale(.9)"},"100%":{opacity:1,transform:"scale(1)"}},h={"0%":{opacity:1,transform:"scale(1)"},"25%":{opacity:0},"100%":{opacity:0,transform:"scale(.9)"}},v=function(e){var n=e.ariaLabelledBy,t=e.children,v=e.hide,k=e.isVisible,S=e.padding,b=e.customBackgroundColor,E=e.noPortal,y=e.shouldTrapFocus,N=void 0===y||y,w=e.withCloseButton,P=void 0===w||w,O=e.withAnimation,T=void 0!==O&&O,C=e.withPageScroll,A=void 0!==C&&C,_=e.layerRules,I=e.containerRules,R=e.withLayerAnimation,F=void 0===R||R,L=e.onAnimationEnd,M=(0,m.l)(),D=r.useState(k&&T),x=(0,i.A)(D,2),U=x[0],B=x[1];r.useEffect((function(){k&&T&&B(!0)}),[k,T]);var j=r.useCallback((function(){!k&&U&&B(!1),null==L||L()}),[k,U,L]);return k||U?r.createElement(o.Cq,null,r.createElement(u.W,{ariaLabelledBy:n,rules:[_],shouldTrapFocus:N,isVisible:k,onMouseDown:v?function(e){return(0,d.D)(v,e)}:void 0,onKeyDown:v?function(e){return(0,d.x)(v,e)}:void 0,withAnimation:T&&F,noPortal:E,withPageScroll:A,customBackgroundColor:b},T?r.createElement(l.w,{keyframes:{animation:k?g:h}},(function(e){var n,i=e.animation;return r.createElement("div",{className:M([f(S),(n=i,function(){return(0,a.A)({animation:"".concat(n," 300ms forwards cubic-bezier(.25, .1, .25, 1)"),transformOrigin:"bottom center"},(0,p.Oe)("reduce"),{animationDuration:"0.1ms"})}),I]),onAnimationEnd:j},t)})):r.createElement("div",{className:M([f(S),I])},t),P&&r.createElement(c.a,{display:"flex",alignSelf:"flex-start"},r.createElement(c.a,{position:"absolute",top:"100px",right:"200px",sm:{top:"0px",right:"0px"},md:{top:"100px",right:"40px"},lg:{right:"100px"}},r.createElement(s.J,{onClick:v,size:"LARGE"}))))):null}},98806:(e,n,t)=>{t.d(n,{D:()=>f,W:()=>S});var i=t(80296),a=t(64467),r=t(24208),o=t(52697),l=t(96540),c=t(77884),s=t(44402),u=t(98761),d=t(15578),m=t(78693),p=(0,l.createContext)({ref:(0,l.createRef)()}),f=function(){return(0,l.useContext)(p).ref},g={position:"fixed",top:"0",bottom:"0",left:"0",right:"0",zIndex:m.Ay.modal},h={"0%":{opacity:1},"100%":{opacity:0}},v={"0%":{opacity:0},"100%":{opacity:1}},k=function(e){return function(n){return(0,a.A)({display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e||n.baseColor.overlay.dark,overflowX:"hidden",overflowY:"auto"},(0,d.Oe)("no-preference"),{"-webkit-overflow-scrolling":"touch",scrollBehavior:"smooth"})}},S=function(e){var n=e.ariaLabelledBy,t=e.children,m=e.container,f=e.isVisible,S=e.noPortal,b=e.onClick,E=e.onMouseDown,y=e.onKeyDown,N=e.rules,w=e.shouldTrapFocus,P=void 0===w||w,O=e.withAnimation,T=e.withPageScroll,C=e.customBackgroundColor,A=(0,s.l)(),_=(0,u.h)({animation:f?v:h}).animation,I=(0,l.useState)(null),R=(0,i.A)(I,2),F=R[0],L=R[1],M=(0,l.useRef)(null);l.useEffect((function(){var e=M.current;e&&(f&&!T?(0,r.mh)(e):(0,r.fY)(e))}),[f,T]),l.useEffect((function(){return function(){(0,r.qY)()}}),[]),(0,l.useEffect)((function(){var e=M.current;if(e){if(P){if(!F){var n=(0,o.K)(e,{initialFocus:e,fallbackFocus:e});n.activate(),L(n)}return function(){F&&(F.deactivate(),L(null))}}e.contains(document.activeElement)||e.focus()}}),[F,L,P]);var D,x=(0,l.useMemo)((function(){return{ref:M}}),[M]),U=[k(C),N,g],B=l.createElement("div",{role:"dialog","aria-modal":"true","aria-labelledby":n,className:A(O?[U,(D=_,(0,a.A)({},(0,d.Oe)("no-preference"),{animation:"".concat(D," 300ms forwards cubic-bezier(.25, .1, .25, 1)")}))]:U),onClick:b,onKeyDown:y,onMouseDown:E,ref:M,tabIndex:-1},l.createElement(p.Provider,{value:x},t));return S?l.createElement(l.Fragment,null,B):l.createElement(c.Z,{container:m},B)}},77662:(e,n,t)=>{t.d(n,{k:()=>l});var i=t(96540),a=t(98761),r=t(44402),o={from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},l=function(e){var n=e.size,t=void 0===n?"40px":n,l=e.borderWidth,c=void 0===l?"2px":l,s=e.color,u=void 0===s?function(e){return e.colorTokens.border.neutral.secondary.base}:s,d=(0,a.h)({keyframesName:o}).keyframesName,m=(0,i.useMemo)((function(){return function(e,n,t,i){return function(a){return{width:n,height:n,borderRadius:"50%",borderWidth:t,borderStyle:"solid",borderColor:"".concat(i(a)," transparent ").concat(i(a)," ").concat(i(a)),animation:"".concat(e," 2s infinite linear;")}}}(d,t,c,u)}),[d,t,u]),p=(0,r.l)();return i.createElement("div",{className:p(m)})}},46146:(e,n,t)=>{t.d(n,{y:()=>Ve});var i=t(58168),a=t(80296),r=t(96540),o=t(11334),l=t(49597),c=t(82484),s=t(81799),u=t(86527),d=t(72130),m=t(39160),p=t(46879),f=t(52290),g=t(48198),h=t(36557),v=t(20239),k=function(e){var n=e.children,t=e.closeButtonAction,i=e.closeLink,a=e.testId,o=(0,v.D)();return r.createElement(h.kZ,{color:"WHITE",scale:"S",tag:"div"},r.createElement(f.a,{display:"flex",justifyContent:"space-between",xs:{flexDirection:t?"row":"column"},sm:{flexDirection:t?"row":"column"}},r.createElement(f.a,{ariaRole:"alert"},n),(t||i)&&r.createElement(f.a,{alignSelf:"flex-start",xs:{paddingTop:i?"8px":"0"},sm:{paddingTop:i?"8px":"0"},paddingLeft:{xs:i?"0":"16px",sm:i?"0":"16px",md:"16px",lg:"16px",xl:"16px"}},i,t&&r.createElement(g.J,{onClick:t,isPositionAbsolute:!1,iconFillColor:o.colorTokens.foreground.neutral.quaternary.base,testId:a?"".concat(a,"CloseButton"):void 0}))))},S=function(e){var n=e.hide,t=(0,d.$L)(),i=(0,m.d4)((function(e){return e.config.productName}));(0,r.useEffect)((function(){t.event("privacyBanner.shown",{})}),[]);var a=(0,r.useCallback)((function(){n(),s.IY.set(s.mq,1),t.event("privacyBanner.accepted",{}),c.L.setTrackingConsent("granted")}),[n]);return r.createElement(k,{closeButtonAction:a},"To make ",i," work, we log user data. By using ",i,", you agree to our"," ",r.createElement(u.N,{href:p.wuc,inline:!0,linkStyle:"OBVIOUS",target:"_blank"},"Privacy Policy"),", including cookie policy.")},b=function(e){var n=e.hide;return r.createElement(k,{closeLink:r.createElement(u.N,{linkStyle:"OBVIOUS",inline:!0,onClick:n},"Okay, got it")},"We're preparing your list to export. We'll email you a link to download the .zip file soon.")},E=t(1771),y=function(){var e=(0,d.$L)(),n=function(){e.event("user.sendVerificationEmailButterClicked",{})};r.useEffect((function(){e.event("user.sendVerificationEmailButterShown",{})}),[]);var t=r.useMemo((function(){return r.createElement(E.T,null,(function(e){var t=e.mutate;return r.createElement(u.N,{onClick:function(){n(),t()},inline:!0,linkStyle:"OBVIOUS"},"Resend email")}))}),[n]);return r.createElement(k,{closeLink:t},"Verify your email to get full access to your account.")},N=t(27721),w=function(){var e=(0,N.R)().value,n=(0,m.d4)((function(e){return e.config.authDomain})),t=r.useMemo((function(){return r.createElement(u.N,{href:(0,p.USZ)(n),inline:!0,linkStyle:"OBVIOUS",target:"_blank"},"Change email")}),[n]);return r.createElement(k,{closeLink:t},"A verification email has been sent to ",e&&e.unverifiedEmail,".")},P=function(){return r.createElement(k,null,"The following content is under review as a potential violation of our"," ",r.createElement(u.N,{href:"https://medium.com/policy/medium-rules-30e5502c4eb4",inline:!0,linkStyle:"OBVIOUS",target:"_blank"},"rules."))},O=function(e){var n=e.hide;return r.createElement(k,{closeButtonAction:n},r.createElement("strong",null,"An error occured.")," Please try again or"," ",r.createElement(u.N,{href:p.HHm,inline:!0,linkStyle:"OBVIOUS",target:"_blank"},"contact our support team")," ","for help.")},T=t(22805),C=t(51260),A=function(e){var n=e.hide,t=e.newsletterName,i=e.hideEmailSettingsLink,a=e.hideCloseButton,o=(0,C.au)();return r.createElement(k,{closeButtonAction:a?void 0:n},"You have unsubscribed from ",r.createElement("strong",null,t),". Changes will take effect within 24 hours.",!i&&r.createElement(r.Fragment,null," ",r.createElement(u.N,{inline:!0,href:o("ShowSettingsTab",{setting:T.W.Notifications}),linkStyle:"OBVIOUS"},"Manage all my email settings")))},_=t(42976),I=function(e){var n=e.hide,t=e.newsletterName,i=e.newsletterType,a=e.unsubscribeFn,o=(0,m.d4)((function(e){return e.config.authDomain}));return r.createElement(k,{closeButtonAction:n},r.createElement("strong",null,"You're"," ",i===_.$J.NEWSLETTER_TYPE_AUTHOR?"subscribed"+(t&&" to ".concat(t)):"signed up"+(t&&" for ".concat(t)),".")," ","You can"," ",r.createElement(u.N,{onClick:function(){a(),n()},linkStyle:"OBVIOUS",inline:!0},"unsubscribe")," ",i===_.$J.NEWSLETTER_TYPE_COLLECTION&&"from this newsletter ","or manage your"," ",r.createElement(u.N,{href:(0,p.hxZ)(o),linkStyle:"OBVIOUS",inline:!0,target:"_blank"},"email settings")," ","at any time.")},R=function(){return r.createElement(k,null,"Your account was found in violation of the Medium Rules."," ",r.createElement(u.N,{href:p.S6e,inline:!0,linkStyle:"OBVIOUS",target:"_blank"},"Learn more about reasons for suspension."))},F=function(){return r.createElement(k,null,"This story was found in violation of the Medium Rules."," ",r.createElement(u.N,{href:p.S6e,inline:!0,linkStyle:"OBVIOUS",target:"_blank"},"Learn more about reasons for suspension."))},L=t(95420),M=t(79756),D={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"RefetchThreadedPostResponsesQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postResponsesPaging"}},type:{kind:"NamedType",name:{kind:"Name",value:"PagingOptions"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortType"}},type:{kind:"NamedType",name:{kind:"Name",value:"ResponseSortType"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"responsesCount"}},{kind:"Field",name:{kind:"Name",value:"postResponses"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"}}]}},{kind:"Field",name:{kind:"Name",value:"threadedPostResponses"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paging"},value:{kind:"Variable",name:{kind:"Name",value:"postResponsesPaging"}}},{kind:"Argument",name:{kind:"Name",value:"sortType"},value:{kind:"Variable",name:{kind:"Name",value:"sortType"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"pagingInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"next"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limit"}},{kind:"Field",name:{kind:"Name",value:"to"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]}}]}}]},x={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UnhidePostResponseOnParentPost"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"parentPostId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postResponseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"unhidePostResponseOnParentPost"},arguments:[{kind:"Argument",name:{kind:"Name",value:"parentPostId"},value:{kind:"Variable",name:{kind:"Name",value:"parentPostId"}}},{kind:"Argument",name:{kind:"Name",value:"postResponseId"},value:{kind:"Variable",name:{kind:"Name",value:"postResponseId"}}}]}]}}]},U=function(e){var n=e.hide,t=e.parentPostId,i=e.responseId,o=e.sortType,l=(0,L.n)(x,{variables:{postResponseId:i,parentPostId:t},awaitRefetchQueries:!0,refetchQueries:[{query:D,variables:{postId:t,postResponsesPaging:{limit:M.TC},sortType:o}}],onCompleted:n}),c=(0,a.A)(l,2),s=c[0],d=c[1].loading;return r.createElement(k,{closeButtonAction:n},"Response has been hidden from this story."," ",r.createElement(u.N,{linkStyle:"OBVIOUS",inline:!0,disabled:d,onClick:function(){return s()}},"Undo"))},B={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"RefetchThreadedCatalogResponsesQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"catalogId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"catalogResponsesPagingOptions"}},type:{kind:"NamedType",name:{kind:"Name",value:"PagingOptions"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortType"}},type:{kind:"NamedType",name:{kind:"Name",value:"ResponseSortType"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"catalogId"},value:{kind:"Variable",name:{kind:"Name",value:"catalogId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"responsesCount"}},{kind:"Field",name:{kind:"Name",value:"threadedCatalogResponses"},arguments:[{kind:"Argument",name:{kind:"Name",value:"paging"},value:{kind:"Variable",name:{kind:"Name",value:"catalogResponsesPagingOptions"}}},{kind:"Argument",name:{kind:"Name",value:"sortType"},value:{kind:"Variable",name:{kind:"Name",value:"sortType"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pagingInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"next"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"limit"}},{kind:"Field",name:{kind:"Name",value:"to"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"posts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]}}]}}]}}]},j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ShowCatalogResponseOnParent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"parentCatalogId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"catalogResponseId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"showCatalogResponseOnParent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"parentCatalogId"},value:{kind:"Variable",name:{kind:"Name",value:"parentCatalogId"}}},{kind:"Argument",name:{kind:"Name",value:"catalogResponseId"},value:{kind:"Variable",name:{kind:"Name",value:"catalogResponseId"}}}]}]}}]},V=function(e){var n=e.hide,t=e.parentCatalogId,i=e.responseId,o=e.sortType,l={catalogId:t,catalogResponsesPagingOptions:{limit:M.TC},sortType:o},c=(0,L.n)(j,{variables:{parentCatalogId:t,catalogResponseId:i},awaitRefetchQueries:!0,refetchQueries:[{query:B,variables:l}],onCompleted:n}),s=(0,a.A)(c,2),d=s[0],m=s[1].loading,p=r.useCallback((function(){d()}),[]);return r.createElement(k,{closeButtonAction:n},"Response has been hidden from this list."," ",r.createElement(u.N,{linkStyle:"OBVIOUS",inline:!0,disabled:m,onClick:p},"Undo"))},H=function(e){var n=e.name,t=(0,m.d4)((function(e){return e.config.productName}));return r.createElement(k,null,"You are now following ",r.createElement("strong",null,n)," on ",t)},G=function(e){var n=e.name,t=(0,m.d4)((function(e){return e.config.productName}));return r.createElement(k,null,"You're already following ",r.createElement("strong",null,n)," on ",t)},W=function(){return r.createElement(k,null,"Sorry, that didn't work. Click ",r.createElement("strong",null,"Follow")," on the page below to try again.")},z=function(){var e=(0,m.d4)((function(e){return e.config.productName}));return r.createElement(k,null,"You cannot follow yourself on ",e)},Y=t(64467),q=t(53843),K=t(49287);function Q(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 X(e){for(var n=1;n{t.d(n,{B:()=>c});var i=t(23029),a=t(92901),r=t(85501),o=t(56822),l=t(53954);var c=function(e){(0,r.A)(s,e);var n,t,c=(n=s,t=function(){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}}(),function(){var e,i=(0,l.A)(n);if(t){var a=(0,l.A)(this).constructor;e=Reflect.construct(i,arguments,a)}else e=i.apply(this,arguments);return(0,o.A)(this,e)});function s(e){var n;return(0,i.A)(this,s),(n=c.call(this,e)).show=function(){n.setState({isVisible:!0})},n.hide=function(){n.setState({isVisible:!1})},n.toggle=function(){return n.state.isVisible?n.hide():n.show()},n.state={isVisible:e.initialVisibility||!1},n}return(0,a.A)(s,[{key:"render",value:function(){var e=this.show,n=this.hide,t=this.toggle,i=this.state.isVisible;return this.props.children({isVisible:i,show:e,hide:n,toggle:t})}}]),s}(t(96540).Component)},14852:(e,n,t)=>{t.d(n,{a:()=>g});var i,a=t(58168),r=t(80045),o=t(96540),l=t(44402);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n{t.d(n,{V:()=>c});var i=t(58168),a=t(80045),r=t(96540),o=t(52290),l=["xs","sm","md","lg","xl","displayValue","alignItems","children"],c=r.memo((function(e){var n=e.xs,t=e.sm,c=e.md,s=e.lg,u=e.xl,d=e.displayValue,m=e.alignItems,p=e.children,f=(0,a.A)(e,l);return r.createElement(o.a,(0,i.A)({display:{xs:n?d:"none",sm:t?d:"none",md:c?d:"none",lg:s?d:"none",xl:u?d:"none"},alignItems:m},f),p)}))},27049:(e,n,t)=>{var i;t.d(n,{i:()=>i}),function(e){e.xs="xs",e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(i||(i={}))},6482:(e,n,t)=>{t.d(n,{Jz:()=>l,nB:()=>c});var i=t(96540),a=t(39),r=t(44402),o=function(e){return e.colorTokens.foreground.neutral.primary.base},l=function(e){return{color:o(e)}},c=function(e){var n=e.scale,t=e.children,o=e.tag,l=void 0===o?"p":o,c=e.clamp,s=e.leadingTrim,u=(0,r.l)(),d=(0,a.Z)({name:"body",scale:n,clamp:c,leadingTrim:s});return i.createElement(l,{className:u(d)},t)}},95107:(e,n,t)=>{t.d(n,{GG:()=>c,mz:()=>s});var i=t(96540),a=t(39),r=t(44402),o=t(18642),l=function(e){return function(n){var t;return{WHITE:o.ON,DARKER:null!==(t=n.colorTokens.foreground.neutral.primary.hover)&&void 0!==t?t:n.colorTokens.foreground.neutral.primary.base}[e]}},c=function(e){return function(n){return{color:l(e)(n)}}},s=function(e){var n=e.scale,t=e.children,o=e.tag,l=void 0===o?"h2":o,c=e.leadingTrim,s=e.color,u=void 0===s?"DARKER":s,d=e.clamp,m=e.testId,p=(0,r.l)(),f=(0,a.Z)({name:"brand",scale:n,leadingTrim:c,color:u,clamp:d});return i.createElement(l,{className:p(f),"data-testid":m},t)}},36557:(e,n,t)=>{t.d(n,{kZ:()=>s,sQ:()=>c});var i=t(96540),a=t(39),r=t(44402),o=t(18642),l=function(e){return function(n){return{DARKER:n.colorTokens.foreground.neutral.primary.base,LIGHTER:n.colorTokens.foreground.neutral.secondary.base,ACCENT:n.colorTokens.foreground.accent.primary.base,ERROR:n.colorTokens.foreground.error.primary.base,WHITE:o.ON}[e]}},c=function(e){return function(n){return{color:l(e)(n)}}},s=function(e){var n=e.scale,t=e.color,o=void 0===t?"LIGHTER":t,l=e.children,c=e.tag,s=void 0===c?"p":c,u=e.clamp,d=e.leadingTrim,m=e.ariaLabelledById,p=e.ariaHidden,f=e.ariaLabel,g=e.playwrightClassName,h=e.testId,v=(0,r.l)(),k=(0,a.Z)({name:"detail",scale:n,clamp:u,leadingTrim:d,color:o}),S="".concat(v(k));return g&&(S="".concat(g," ").concat(S).trim()),i.createElement(s,{className:S,id:m,"aria-hidden":p,"aria-label":f,"data-testid":h},l)}},56942:(e,n,t)=>{t.d(n,{DZ:()=>s,n6:()=>c});var i=t(96540),a=t(39),r=t(44402),o=function(e){return function(n){return{NORMAL:n.colorTokens.foreground.neutral.primary.base,LIGHTER:n.colorTokens.foreground.neutral.secondary.base,ERROR:n.colorTokens.foreground.error.primary.base}[e]}},l=function(e){return{NORMAL:500,EDITORIAL:700,INLINE:600}[e]},c=function(e,n){return function(t){return{color:o(n)(t),fontWeight:l(e)}}},s=function(e){var n=e.ariaLabelledById,t=e.children,o=e.clamp,l=e.playwrightClassName,c=e.leadingTrim,s=e.scale,u=e.tag,d=void 0===u?"h2":u,m=e.fontWeight,p=void 0===m?"NORMAL":m,f=e.color,g=void 0===f?"NORMAL":f,h=e.testId,v=(0,r.l)(),k=(0,a.Z)({name:"heading",scale:s,clamp:o,leadingTrim:c,fontWeight:p,color:g}),S=l?"".concat(l," ").concat(v(k)):v(k);return i.createElement(d,{className:S,id:n,"data-testid":h?"".concat(h,"Title"):void 0},t)}},33154:(e,n,t)=>{t.d(n,{bz:()=>c,pB:()=>l});var i=t(96540),a=t(39),r=t(44402),o=function(e){return function(n){return{LIGHTER:n.colorTokens.foreground.neutral.secondary.base,ACCENT:n.colorTokens.foreground.accent.primary.base,DARKER:n.colorTokens.foreground.neutral.primary.base}[e]}},l=function(e){return function(n){return{color:o(e)(n),textTransform:"uppercase"}}},c=function(e){var n=e.children,t=e.clamp,o=e.color,l=void 0===o?"LIGHTER":o,c=e.scale,s=void 0===c?"M":c,u=e.tag,d=void 0===u?"p":u,m=e.leadingTrim,p=(0,r.l)(),f=(0,a.Z)({name:"overline",scale:s,clamp:t,color:l,leadingTrim:m});return i.createElement(d,{className:p(f)},n)}},39607:(e,n,t)=>{t.d(n,{ab:()=>c,uC:()=>l});var i=t(96540),a=t(39),r=t(44402),o=function(e){return e.colorTokens.foreground.neutral.secondary.base},l=function(e){return{color:o(e)}},c=function(e){var n=e.scale,t=e.children,o=e.tag,l=void 0===o?"blockquote":o,c=e.leadingTrim,s=(0,r.l)(),u=(0,a.Z)({name:"pullQuote",scale:n,leadingTrim:c});return i.createElement(l,{className:s(u)},t)}},27622:(e,n,t)=>{t.d(n,{$m:()=>l,Pd:()=>c});var i=t(96540),a=t(39),r=t(44402),o=function(e){return function(n){return{DARKER:n.colorTokens.foreground.neutral.primary.base,LIGHTER:n.colorTokens.foreground.neutral.secondary.base}[e]}},l=function(e){return function(n){return{color:o(e)(n)}}},c=function(e){var n=e.scale,t=e.children,o=e.color,l=void 0===o?"LIGHTER":o,c=e.tag,s=void 0===c?"h3":c,u=e.clamp,d=e.leadingTrim,m=(0,r.l)(),p=(0,a.Z)({name:"subtitle",scale:n,clamp:u,leadingTrim:d,color:l});return i.createElement(s,{className:m(p)},t)}},39410:(e,n,t)=>{t.d(n,{hE:()=>c,zU:()=>l});var i=t(96540),a=t(39),r=t(44402),o=function(e){return function(n){var t;return{NORMAL:n.colorTokens.foreground.neutral.primary.base,DARKER:null!==(t=n.colorTokens.foreground.neutral.primary.hover)&&void 0!==t?t:n.colorTokens.foreground.neutral.primary.base}[e]}},l=function(e){return function(n){return{color:o(e)(n)}}},c=function(e){var n=e.scale,t=e.children,o=e.tag,l=void 0===o?"h2":o,c=e.clamp,s=e.leadingTrim,u=e.color,d=void 0===u?"NORMAL":u,m=e.wordBreak,p=e.testId,f=(0,r.l)(),g=(0,a.Z)({name:"title",scale:n,clamp:c,leadingTrim:s,color:d}),h=m?{wordBreak:m}:void 0;return i.createElement(l,{className:f([g,h]),"data-testid":p},t)}},97529:(e,n,t)=>{t.d(n,{S:()=>c});var i=t(64467),a=t(80296),r=t(9459),o=t(20239),l=t(15578),c=function(e){var n=e.clamp,t=e.lineHeight;return function(){var e=(0,o.D)();return(0,i.A)({overflow:"hidden",maxHeight:(0,r.Fv)((function(e){var n=(0,a.A)(e,2),t=n[0],i=n[1];return"".concat(i*t,"px")}),n,t),textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:n,WebkitBoxOrient:"vertical",wordBreak:1===n?"break-all":void 0},(0,l.Ci)(e.breakpoints.lg-.02),{maxHeight:"none"})}}},921:(e,n,t)=>{t.d(n,{U:()=>r});var i=t(80296),a=t(9459),r=function(e){var n=e.fontConfig,t=e.scale;return function(){return{fontSize:(0,a.Fv)((function(e){var t=(0,i.A)(e,1)[0];return"".concat(n.fontSize[t],"px")}),t),lineHeight:(0,a.Fv)((function(e){var t=(0,i.A)(e,1)[0];return"".concat(n.lineHeight[t],"px")}),t)}}}},39:(e,n,t)=>{t.d(n,{Z:()=>v});var i=t(80296),a=t(6482),r=t(95107),o=t(36557),l=t(56942),c=t(33154),s=t(39607),u=t(27622),d=t(39410),m=t(97529),p=t(9459),f=t(921),g=t(20239),h=t(39160),v=function(e){var n=e.name,t=e.scale,v=e.clamp,k=e.leadingTrim,S=(0,g.D)(),b=(0,h.d4)((function(e){return e.debug.shouldHighlightDSType})),E=S.newFonts[n],y={fontFamily:E.family,fontWeight:E.weight},N=(0,f.U)({fontConfig:E,scale:t}),w=(0,p.Fv)((function(e){var n=(0,i.A)(e,1)[0];return E.lineHeight[n]}),t),P=v?(0,m.S)({clamp:v,lineHeight:w}):void 0,O=k?function(e){var n=e.fontConfig,t=e.scale,a=function(e,n){return(0,p.Fv)((function(n){var t=(0,i.A)(n,1)[0];return 0-Math.round((e.lineHeight[t]-e.fontSize[t])/2+e.fontSize[t]*e.topLeadingPct)}),n)}(n,t),r=function(e,n){return(0,p.Fv)((function(n){var t=(0,i.A)(n,1)[0];return 0-Math.round((e.lineHeight[t]-e.fontSize[t])/2+e.fontSize[t]*e.bottomLeadingPct)}),n)}(n,t);return[{":before":(0,p.Fv)((function(e){var n=(0,i.A)(e,1)[0];return{marginBottom:"".concat(n,"px")}}),a),":after":(0,p.Fv)((function(e){var n=(0,i.A)(e,1)[0];return{marginTop:"".concat(n,"px")}}),r)},{":before":{content:'""',display:"table",borderCollapse:"collapse"},":after":{content:'""',display:"table",borderCollapse:"collapse"}}]}({fontConfig:E,scale:t}):void 0,T=E.letterSpacing,C=T?{letterSpacing:(0,p.Fv)((function(e){var n=(0,i.A)(e,1)[0];return T[n]}),t)}:void 0,A=E.fontFeatureSettings,_=[y,N,P,O,C,A?{fontFeatureSettings:A}:void 0,b?{boxShadow:"inset 0 0 10px fuchsia",outline:"3px solid fuchsia"}:void 0];switch(e.name){case"body":_.push(a.Jz);break;case"detail":_.push((0,o.sQ)(e.color));break;case"heading":_.push((0,l.n6)(e.fontWeight,e.color));break;case"brand":_.push((0,r.GG)(e.color));break;case"overline":_.push((0,c.pB)(e.color));break;case"pullQuote":_.push(s.uC);break;case"subtitle":_.push((0,u.$m)(e.color));break;case"title":_.push((0,d.zU)(e.color))}return _}},24252:(e,n,t)=>{t.d(n,{D:()=>i,x:()=>a});var i=function(e,n){n.target===n.currentTarget&&e(n)},a=function(e,n){27===n.keyCode&&e(n)}},12378:(e,n,t)=>{t.d(n,{c:()=>r,z:()=>o});var i=t(36944),a=t.n(i),r=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"".concat(a()(e,n),"px")},o=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(e.grid.columnWidth+e.grid.gutterWidth)*n-e.grid.gutterWidth;return t&&(i+=2*e.grid.gutterWidth),i}},9459:(e,n,t)=>{t.d(n,{DG:()=>v,Fv:()=>k,fc:()=>p,n_:()=>h});var i=t(45458),a=t(80296),r=t(63560),o=t.n(r),l=t(11331),c=t.n(l),s=t(56449),u=t.n(s),d=t(27049),m=t(18721),p=[d.i.xs,d.i.sm,d.i.md,d.i.lg,d.i.xl],f=function(e){return!!d.i[e]},g=function(e){return c()(e)},h=function(e){if(!g(e))return!1;var n=Object.keys(e);return n.length===p.length&&n.every(f)},v=function e(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return h(t)?Object.entries(t).reduce((function(e,t){var r=(0,a.A)(t,2),c=r[0],s=r[1];return o()(e,[m[c](n)].concat((0,i.A)(l)),s)}),r):Object.entries(t).reduce((function(t,r){var c=(0,a.A)(r,2),s=c[0],d=c[1];return!g(d)||u()(d)?o()(t,[].concat((0,i.A)(l),[s]),d):e(n,d,t,[].concat((0,i.A)(l),[s]))}),r)},k=function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i{t.d(n,{NJ:()=>l,ld:()=>o});var i=t(80296),a=t(96540),r=a.createContext(null),o=function(){var e=a.useState(!1),n=(0,i.A)(e,2),t=n[0],o=n[1],l=a.useContext(r);return a.useMemo((function(){return{reportOnce:function(e,n){!t&&l&&(l.report(e,n),o(!0))}}}),[t,l])},l=function(e,n){var t=a.useContext(r);e&&t&&t.report(e,n)}},72130:(e,n,t)=>{t.d(n,{x1:()=>C,$L:()=>A});var i=t(96540),a=function(e,n){var t;if(!e)throw void 0===n?t=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(t=new Error(n)).name="Invariant Violation",t.framesToPop=1,t},r=t(23029),o=t(92901),l=t(85501),c=t(56822),s=t(53954),u=t(46879),d=t(82284),m=t(64467),p=t(10467),f=t(60328),g=t.n(f),h=t(66973);function v(){v=function(){return n};var e,n={},t=Object.prototype,i=t.hasOwnProperty,a=Object.defineProperty||function(e,n,t){e[n]=t.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{s({},"")}catch(e){s=function(e,n,t){return e[n]=t}}function u(e,n,t,i){var r=n&&n.prototype instanceof S?n:S,o=Object.create(r.prototype),l=new R(i||[]);return a(o,"_invoke",{value:C(e,t,l)}),o}function m(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=u;var p="suspendedStart",f="suspendedYield",g="executing",h="completed",k={};function S(){}function b(){}function E(){}var y={};s(y,o,(function(){return this}));var N=Object.getPrototypeOf,w=N&&N(N(F([])));w&&w!==t&&i.call(w,o)&&(y=w);var P=E.prototype=S.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(n){s(e,n,(function(e){return this._invoke(n,e)}))}))}function T(e,n){function t(a,r,o,l){var c=m(e[a],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==(0,d.A)(u)&&i.call(u,"__await")?n.resolve(u.__await).then((function(e){t("next",e,o,l)}),(function(e){t("throw",e,o,l)})):n.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return t("throw",e,o,l)}))}l(c.arg)}var r;a(this,"_invoke",{value:function(e,i){function a(){return new n((function(n,a){t(e,i,n,a)}))}return r=r?r.then(a,a):a()}})}function C(n,t,i){var a=p;return function(r,o){if(a===g)throw new Error("Generator is already running");if(a===h){if("throw"===r)throw o;return{value:e,done:!0}}for(i.method=r,i.arg=o;;){var l=i.delegate;if(l){var c=A(l,i);if(c){if(c===k)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===p)throw a=h,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=g;var s=m(n,t,i);if("normal"===s.type){if(a=i.done?h:f,s.arg===k)continue;return{value:s.arg,done:i.done}}"throw"===s.type&&(a=h,i.method="throw",i.arg=s.arg)}}}function A(n,t){var i=t.method,a=n.iterator[i];if(a===e)return t.delegate=null,"throw"===i&&n.iterator.return&&(t.method="return",t.arg=e,A(n,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),k;var r=m(a,n.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,k;var o=r.arg;return o?o.done?(t[n.resultName]=o.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,k):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,k)}function _(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function I(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function F(n){if(n||""===n){var t=n[o];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var a=-1,r=function t(){for(;++a=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),I(t),k}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var i=t.completion;if("throw"===i.type){var a=i.arg;I(t)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,i){return this.delegate={iterator:F(n),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=e),k}},n}var k=function(){try{if(!window.indexedDB)return!1}catch(e){return!1}return!0}(),S=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.dbName,a=void 0===i?"default":i,o=t.version,l=void 0===o?1:o,c=t.keyPath,s=t.cropIndexKeyPath,u=t.onImportData;(0,r.A)(this,e),this.dbPromise=void 0,this.dbName=void 0,this.version=void 0,this.keyPath=void 0,this.storeName=void 0,this.cropIndexKeyPath=void 0,this.fallbackStorage=void 0,this.fallbackStorage=new h.A(n),this.storeName=n,this.cropIndexKeyPath=s,this.keyPath=null!=c?c:"id",this.dbName=a,this.version=l,this.dbPromise=this.openDB(u)}var n,t,i;return(0,o.A)(e,[{key:"openDB",value:function(e){var n=this;if(k)return new Promise((function(t){try{var i=window.indexedDB.open(n.dbName,n.version);i.onsuccess=function(){i.result.onclose=function(){n.dbPromise=void 0},t(i.result)},i.onupgradeneeded=function(){var t=i.result;if(!t.objectStoreNames.contains(n.storeName)){var a=t.createObjectStore(n.storeName,{keyPath:n.keyPath});n.cropIndexKeyPath&&a.createIndex(n.cropIndexKeyPath,n.cropIndexKeyPath,{unique:!1})}null==e||e(n)},i.onerror=function(){t(void 0)}}catch(e){t(void 0)}}))}},{key:"set",value:function(e){var n=this;return this.transaction("readwrite",(function(n){return n.put(e)}),(function(){var t=e[n.keyPath];return n.fallbackStorage.set(t,e),t}))}},{key:"get",value:function(e){var n=this;return this.transaction("readonly",(function(n){return n.get(e)}),(function(){return n.fallbackStorage.get("".concat(e))}))}},{key:"getAll",value:function(e,n){var t=this;return this.transaction("readonly",(function(t){return t.getAll(e,n)}),(function(){return Object.values(t.fallbackStorage.getItems(n))}))}},{key:"remove",value:function(e){var n=this;return this.transaction("readwrite",(function(n){return n.delete(e)}),(function(){return n.fallbackStorage.remove("".concat(e))}))}},{key:"crop",value:(i=(0,p.A)(v().mark((function e(n){var t,i,a,r,o=this;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getDB();case 2:if(!(t=e.sent)){e.next=9;break}return e.next=6,new Promise((function(e,i){try{var a=t.transaction(o.storeName,"readonly").objectStore(o.storeName).count();a.onsuccess=function(){var r=a.result;if(r<=n)e();else{var l=t.transaction(o.storeName,"readwrite").objectStore(o.storeName),c=o.cropIndexKeyPath?l.index(o.cropIndexKeyPath).openCursor():l.openCursor();c.onsuccess=function(){var t=c.result;!t||r<=n?e():(t.delete(),r--,t.continue())},c.onerror=function(){i(c.error)}}},a.onerror=function(){i(a.error)}}catch(n){e()}}));case 6:return e.abrupt("return",e.sent);case 9:if(i=this.fallbackStorage.getKeys(),!((a=i.length-n)<0)){e.next=13;break}return e.abrupt("return");case 13:for(r=0;r=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),s=i.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),I(t),v}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var i=t.completion;if("throw"===i.type){var a=i.arg;I(t)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,i){return this.delegate={iterator:F(n),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=e),v}},n}function y(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 N(e){for(var n=1;n0&&void 0!==r[0]?r[0]:{beforeUnload:!1}).beforeUnload,e.next=3,this.db.getAll();case 3:if(t=e.sent,i=t.map((function(e){return e.eventId})),t){e.next=7;break}return e.abrupt("return",Promise.resolve());case 7:return this.sending=!0,e.abrupt("return",g()(this.url,N({credentials:"same-origin",method:"POST",headers:{"x-xsrf-token":"1","content-type":"application/json"},body:JSON.stringify(t)},n?{mode:"same-origin",keepalive:!0}:{})).then((function(e){e.ok&&i.forEach((function(e){a.db.remove(e)})),delete a.fetchPromise,a.sending=!1})).catch());case 9:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),e}();w.sendRate=5*b.G1,w.maxQueuedEvents=1e3;var P=function(e){(0,l.A)(a,e);var n,t,i=(n=a,t=function(){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}}(),function(){var e,i=(0,s.A)(n);if(t){var a=(0,s.A)(this).constructor;e=Reflect.construct(i,arguments,a)}else e=i.apply(this,arguments);return(0,c.A)(this,e)});function a(){return(0,r.A)(this,a),i.apply(this,arguments)}return(0,o.A)(a,[{key:"event",value:function(e,n,t){return this.send({key:e,data:n,overrideCommonData:t,type:"e"})}},{key:"getPathname",value:function(){return(0,u.Go6)()}},{key:"getPrefix",value:function(){return"EventReporter"}},{key:"getCommonData",value:function(){var e,n,t,i,a=(null===(e=this.options.reduxStore)||void 0===e?void 0:e.getState()).navigation,r=a.referrer,o=a.queryString,l=new URLSearchParams(o);return{service:"lite",location:null===(n=window)||void 0===n||null===(t=n.location)||void 0===t?void 0:t.href,browserWidth:null===(i=window)||void 0===i?void 0:i.innerWidth,referrer:r&&encodeURI(r),referrerSource:l.get("source")||void 0}}},{key:"getCommonStorageData",value:function(e){return{timestamp:Date.now(),eventId:e}}}]),a}(w),O=i.createContext(null),T=function(e){var n=e.children,t=e.reporter;return i.createElement(O.Provider,{value:t},n)};function C(e){var n=e.children,t=e.reduxStore,a=(0,i.useMemo)((function(){return new P({options:{reduxStore:t}})}),[]);return i.createElement(T,{reporter:a},n)}function A(){var e=i.useContext(O);return function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).valueName;a(!!e,"Expected ".concat(null!=n?n:"value"," not to be null"))}(e,{valueName:"reporter"}),e}},61538:(e,n,t)=>{t.d(n,{Kq:()=>E,a8:()=>b,$L:()=>y});var i=t(23029),a=t(92901),r=t(64467),o=t(60328),l=t.n(o),c=t(96540),s=t(45458),u=new Set(["ready","fcp","lcp","fid","inp","before_domain_lookup","domain_lookup","connect","request","response","load","processing","overall_fcp","client","render"]),d=new Set(["cls"]),m=new Set([].concat((0,s.A)(u),(0,s.A)(d))),p=t(47517),f=t(46879);function g(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 h(e){for(var n=1;n{t.d(n,{Fo:()=>h,Ne:()=>g,PJ:()=>p,W9:()=>k,Zj:()=>S,gX:()=>u,jI:()=>v,wv:()=>m});var i=t(64467),a=t(80296),r=t(52420),o=t.n(r),l=t(96540);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;n{t.d(n,{D:()=>r});var i=t(96540),a=t(26298),r=i.createContext(a.z)},11334:(e,n,t)=>{t.d(n,{N:()=>r});var i=t(96540),a=t(5968),r=function(e){var n=e.theme,t=e.children;return i.createElement(a.D.Provider,{value:n},t)}},26061:(e,n,t)=>{t.d(n,{A:()=>a});var i=t(44402);function a(e){return(0,e.children)((0,i.l)())}},37661:(e,n,t)=>{t.d(n,{w:()=>a});var i=t(98761);function a(e){var n=e.children,t=e.keyframes;return n((0,i.h)(t))}},44402:(e,n,t)=>{t.d(n,{l:()=>u});var i=t(61477),a=t(20239),r=t(45458),o=t(3176),l=t.n(o),c=t(51662),s=t(9459),u=function(){var e=(0,a.D)();return function(e,n){return function(t){var i=l()([t]).filter((function(e){return!!e})).map((function(e){return function(){return(0,s.DG)(n,"function"==typeof e?e(n):e)}})),a=c.A.apply(void 0,(0,r.A)(i));return e.renderRule(a,n)}}((0,i.J)(),e)}},98761:(e,n,t)=>{t.d(n,{h:()=>l});var i=t(73916),a=t.n(i),r=t(61477),o=t(20239);function l(e){var n=(0,o.D)(),t=(0,r.J)();return a()(e,(function(e){var i="function"==typeof e?e:function(){return e};return t.renderKeyframe(i,n)}))}},20239:(e,n,t)=>{t.d(n,{D:()=>r});var i=t(96540),a=t(5968),r=function(){return i.useContext(a.D)}},66305:(e,n,t)=>{t.d(n,{$U:()=>g,R5:()=>h,ZJ:()=>f});var i=t(23029),a=t(92901),r=t(7350),o=t.n(r),l=t(38221),c=t.n(l),s=t(50411),u=t.n(s),d=t(96720),m=100,p=function(){function e(){(0,i.A)(this,e)}return(0,a.A)(e,[{key:"on",value:function(){}},{key:"off",value:function(){}}]),e}(),f=function(){function e(n){var t=this;(0,i.A)(this,e),this._emitter=void 0,this._onScrollEnd=void 0,this._onScrollThrottled=void 0,this._onResizeThrottled=void 0,this._onResizeEnd=void 0,this._resizingTimeout=void 0,this._lastKnownPageYOffset=void 0,this.singularEventsFired={load:!1},this.ref=void 0,this.ref=n||window,this._emitter=new d.A,this._onScrollEnd=c()((function(){t._emitter.emit("scroll_end")}),m),this._onScrollThrottled=o()((function(){t._emitter.emit("scroll_throttled")}),m),this._onResizeThrottled=o()((function(){t._emitter.emit("resize_throttled")}),m),this._onResizeEnd=o()((function(){t._emitter.emit("resize_end")}),m),this._resizingTimeout=null,this.ref.addEventListener("load",this._onLoad.bind(this)),this.ref.addEventListener("scroll",this._onScroll.bind(this)),this.ref.addEventListener("resize",this._onResize.bind(this),{passive:!0})}return(0,a.A)(e,[{key:"on",value:function(e,n){this.singularEventsFired[e]?n():this._emitter.on(e,n)}},{key:"off",value:function(e,n){this._emitter.off(e,n)}},{key:"_onLoad",value:function(){var e=this;this.singularEventsFired.load||setTimeout((function(){e._emitter.emit("load"),e.singularEventsFired.load=!0}),500)}},{key:"_onScroll",value:function(){this._emitter.emit("scroll"),this._onScrollThrottled(),this._onScrollEnd();var e=this.ref instanceof Window?this.ref.pageYOffset:this.ref.scrollTop;"number"==typeof this._lastKnownPageYOffset&&(this._lastKnownPageYOffset>e?this._emitter.emit("scroll_up"):this._emitter.emit("scroll_down")),this._lastKnownPageYOffset=e}},{key:"_onResize",value:function(){var e=this;this._emitter.emit("resize"),this._onResizeThrottled(),this._resizingTimeout&&clearTimeout(this._resizingTimeout),this._resizingTimeout=setTimeout((function(){e._onResizeEnd(),e._resizingTimeout=null}),m)}}]),e}(),g=u().canUseDOM?function(e){return new f(e)}:function(){return new p},h=g()},12790:(e,n,t)=>{t.d(n,{c:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"EntityPresentationRankedModulePublishingTracker_entity"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RankedModulePublishingEntity"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},31104:(e,n,t)=>{t.d(n,{B:()=>r});var i=t(45458),a=t(96540),r=function(e,n){var t=e.onIntersect,r=e.root,o=e.disconnect,l=e.target,c=e.threshold,s=e.rootMargin;a.useEffect((function(){if((!o||!o())&&null!=l&&l.current){var e={root:r?r.current:null,rootMargin:s,threshold:c},n=new IntersectionObserver((function(e){t(e[0])}),e);return n.observe(l.current),function(){n.disconnect()}}}),[].concat((0,i.A)(n),[r,c,s]))}},20698:(e,n,t)=>{t.d(n,{$:()=>i});var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostScrollTracker_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:"collection"},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:"sequenceId"}}]}}]}}]}},79429:(e,n,t)=>{t.d(n,{s:()=>o});var i=t(80296),a=t(96540),r=t(31104),o=function(e){var n=e.onPresentedFn,t=e.intersectionThreshold,o=void 0===t?.25:t,l=a.useState(!1),c=(0,i.A)(l,2),s=c[0],u=c[1],d=a.useRef(null),m=a.useCallback((function(e){!s&&e.isIntersecting&&(u(!0),n(e))}),[n,s]);return(0,r.B)({onIntersect:m,target:d,disconnect:function(){return s},threshold:o},[s,m,d.current,o]),d}},6707:(e,n,t)=>{t.d(n,{P:()=>r});var i=t(80296),a=t(96540);function r(e){var n=a.useState(),t=(0,i.A)(n,2),r=t[0],o=t[1];return a.useEffect((function(){var n=new ResizeObserver((function(e){var n,t,i=null===(n=e[0])||void 0===n||null===(t=n.contentRect)||void 0===t?void 0:t.width;i&&o(i)})),t=document.querySelector(e);return t&&n.observe(t),function(){n.disconnect()}}),[e]),{width:r}}},67033:(e,n,t)=>{t.d(n,{b:()=>s});var i=t(64467),a=t(96540),r=t(72130),o=t(49287),l=t(79429);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}var s=function(e){var n=e.children,t=e.eventData,s=e.tag,u=void 0===s?"div":s,d=(0,r.$L)(),m=(0,o.Zj)(),p=(0,l.s)({onPresentedFn:function(){return d.event("susi.viewed",function(e){for(var n=1;n{var i=t(82284),a=t(64467),r=t(80045),o=t(10467),l=t(96540),c=t(40961),s=t(5338),u=t(80545),d=t(53259),m=t.n(d),p=t(69733),f=t(87599),g=t(10517),h=t(45458),v=t(54239),k=t(47517),S=t(51260),b=t(59036),E=t(13051),y=t(46473),N=t(50684),w={group:E.AN.Control,tags:[],reason:"",error:void 0,loading:!1};function P(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 O(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t=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 r,o=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==t.return||t.return()}finally{if(l)throw r}}}}(c);try{for(d.s();!(s=d.n()).done;){var m=s.value;if(m.loading)return;m.error?k.v.error({message:m.error,pathname:n},"useCacheController error"):u=q(q({},u),{},{tags:[].concat((0,h.A)(u.tags),(0,h.A)(m.tags)),reason:u.reason||m.reason,group:(0,E.tO)(u.group,m.group)})}}catch(e){d.e(e)}finally{d.f()}u.group===E.AN.Disabled&&e((0,b.vW)()),u.group===E.AN.Enabled&&e((0,b.kV)()),e((0,b.H8)(u.reason)),e((0,b.JE)(u.tags))}},X=t(32097),Z=t(55695),$=t(42126),J=function(){return null},ee=function(){var e=(0,G.d4)((function(e){return e.config.branchKey})),n=(0,G.d4)((function(e){return e.client.hydrated})),t=(0,G.Dy)((function(e){return e.navigation.branch})),i=t.blockedByCTA,a=t.hasRendered,r=t.show,o=(0,p.wA)(),c=(0,v.zy)();return l.useEffect((function(){r&&(0,X.tY)()}),[c]),l.useEffect((function(){r&&!i&&(0,X.v4)((function(){}))}),[i]),l.useEffect((function(){n&&!a&&o((0,$.E2)(!0))}),[n,a]),!(0,G.d4)((function(e){return e.client.viewerIsBot}))&&n&&a?l.createElement(Z.Q,{name:"dont_track_user",placeholder:J},(function(n){return l.createElement(u.mg,null,l.createElement("script",{type:"text/javascript"},function(e){var n=e.branchKey,t=String(e.dontTrackUser);return'\n(function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="https://cdn.branch.io/branch-latest.min.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener applyCode autoAppIndex banner closeBanner closeJourney creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode trackCommerceEvent logEvent".split(" "), 0);\nbranch.init(\''.concat(n,"', {metadata: {}, 'no_journeys': true, 'disable_exit_animation': true, 'disable_entry_animation': true, 'tracking_disabled': ").concat(t,"}, function(err, data) {});\n").trim()}({branchKey:e,dontTrackUser:n})))})):null},ne=t(31905),te=function(){return null},ie=m()({loader:function(){return t.e(8930).then(t.bind(t,7453))},modules:["src/components/devtool/Devtool"],webpack:function(){return[7453]},loading:function(){return null},render:(0,ne.X)("Devtool")}),ae=function(){return l.createElement(Z.Q,{name:"enable_devtool",placeholder:te},(function(e){return e?l.createElement(ie,null):null}))},re=t(78968),oe=function(){return l.createElement("script",null,"document.domain = document.domain;")},le=t(75636),ce=t(27721),se=function(){var e=(0,ce.R)().loading,n=(0,le.z)({name:"allow_iframe",placeholder:!0});return e||n?null:l.createElement("div",{dangerouslySetInnerHTML:{__html:'