bundle.Conversation.1f4d14da.js 371 KB

12
  1. (self.webpackChunk_twitter_responsive_web=self.webpackChunk_twitter_responsive_web||[]).push([["bundle.Conversation","loader.richScribeAction","shared~bundle.Articles~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.B","shared~bundle.AudioSpaceDetail~bundle.AudioSpaceDiscovery~bundle.AudioSpacebarScreen~bundle.Birdwatch~bundle.","shared~loader.Typeahead~loader.DMDrawer~bundle.AudioSpaceDiscovery~bundle.Communities~bundle.Compose~bundle.R","shared~bundle.ReaderMode~bundle.TweetMediaDetail~bundle.ImmersiveMediaViewer"],{35039:(e,t,n)=>{"use strict";var o,r,i={kind:"SplitOperation",metadata:{},name:"TimelineRelay$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"instructions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isTimelineTimelineInstruction"},{alias:"type",args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"TimelineTimelineEntry",kind:"LinkedField",name:"entries",plural:!0,selections:o=[{args:null,fragment:n(9405),kind:"FragmentSpread"}],storageKey:null}],type:"TimelineAddEntries",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"entry_id_to_replace",storageKey:null},r={alias:null,args:null,concreteType:"TimelineTimelineEntry",kind:"LinkedField",name:"entry",plural:!1,selections:o,storageKey:null}],type:"TimelineReplaceEntry",abstractKey:null},{kind:"InlineFragment",selections:[r],type:"TimelinePinEntry",abstractKey:null},{kind:"InlineFragment",selections:[{alias:"moduleItems",args:null,concreteType:"TimelineModuleItem",kind:"LinkedField",name:"module_items",plural:!0,selections:[{alias:"entryId",args:null,kind:"ScalarField",name:"entry_id",storageKey:null},{alias:null,args:null,concreteType:"TimelineTimelineItem",kind:"LinkedField",name:"item",plural:!1,selections:[{args:null,fragment:n(91531),kind:"FragmentSpread"}],storageKey:null}],storageKey:null}],type:"TimelineAddToModule",abstractKey:null}],storageKey:null}]};i.hash="7d0f17590e1c09ad3ae57e9a9d7fabd6",e.exports=i},99996:(e,t,n)=>{"use strict";var o,r,i,a,s,l,c,d,u,p,h,m,g,b,y,f,_,v,w,E={fragment:{argumentDefinitions:[o={defaultValue:null,kind:"LocalArgument",name:"count"},r={defaultValue:null,kind:"LocalArgument",name:"cursor"},i={defaultValue:!1,kind:"LocalArgument",name:"includePromotedContent"},a={defaultValue:null,kind:"LocalArgument",name:"isListMemberTargetUserId"},s={defaultValue:null,kind:"LocalArgument",name:"timelineId"},l={defaultValue:!1,kind:"LocalArgument",name:"withBirdwatchNotes"},c={defaultValue:!1,kind:"LocalArgument",name:"withClientEventToken"},d={defaultValue:!1,kind:"LocalArgument",name:"withCommunity"},u={defaultValue:!1,kind:"LocalArgument",name:"withDmMuting"},p={defaultValue:null,kind:"LocalArgument",name:"withDownvotePerspective"},h={defaultValue:!1,kind:"LocalArgument",name:"withQuickPromoteEligibilityTweetFields"},m={defaultValue:null,kind:"LocalArgument",name:"withReactionsMetadata"},g={defaultValue:null,kind:"LocalArgument",name:"withReactionsPerspective"},b={defaultValue:!1,kind:"LocalArgument",name:"withSafetyModeUserFields"},y={defaultValue:null,kind:"LocalArgument",name:"withSuperFollowsTweetFields"},f={defaultValue:null,kind:"LocalArgument",name:"withSuperFollowsUserFields"},_={defaultValue:!1,kind:"LocalArgument",name:"withVoice"}],kind:"Fragment",metadata:null,name:"managementListsPageTimelineQuery",selections:[{alias:"viewer",args:v=[{kind:"Literal",name:"s",value:"0c09"}],concreteType:"Viewer",kind:"LinkedField",name:"viewer_v2",plural:!1,selections:[{alias:null,args:null,concreteType:"Timeline",kind:"LinkedField",name:"list_management_timeline",plural:!1,selections:[{alias:null,args:w=[{kind:"Literal",name:"cards_platform",value:"Web-12"},{kind:"Variable",name:"count",variableName:"count"},{kind:"Variable",name:"cursor",variableName:"cursor"}],concreteType:"TimelineTimeline",kind:"LinkedField",name:"timeline",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"TimelineRelay"}],storageKey:null}],storageKey:null}],storageKey:'viewer_v2(s:"0c09")'}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[o,r,i,s,l,p,m,g,y,f,u,c,_,a,d,h,b],kind:"Operation",name:"managementListsPageTimelineQuery",selections:[{alias:"viewer",args:v,concreteType:"Viewer",kind:"LinkedField",name:"viewer_v2",plural:!1,selections:[{alias:null,args:null,concreteType:"Timeline",kind:"LinkedField",name:"list_management_timeline",plural:!1,selections:[{alias:null,args:w,concreteType:"TimelineTimeline",kind:"LinkedField",name:"timeline",plural:!1,selections:[{args:null,fragment:n(35039),kind:"FragmentSpread"}],storageKey:null},{alias:null,args:w,filters:null,handle:"timeline",key:"",kind:"LinkedHandle",name:"timeline",handleArgs:[{kind:"Variable",name:"timelineId",variableName:"timelineId"}]},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:'viewer_v2(s:"0c09")'}]},params:{id:"i0xDJ-Ru_Ie-qYgqNmnwrw",metadata:{features:["graphql_is_translatable_rweb_tweet_is_translatable_enabled","interactive_text_enabled","responsive_web_edit_tweet_api_enabled","responsive_web_enhance_cards_enabled","responsive_web_graphql_timeline_navigation_enabled","responsive_web_text_conversations_enabled","responsive_web_twitter_blue_verified_badge_is_enabled","responsive_web_uc_gql_enabled","standardized_nudges_misinfo","tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled","tweetypie_unmention_optimization_enabled","verified_phone_label_enabled","vibe_api_enabled","view_counts_public_visibility_enabled"]},name:"managementListsPageTimelineQuery",operationKind:"query",text:null}};E.hash="b4335628f5b1bee7e769615d81b05192",e.exports=E},18892:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var o=n(7896),r=(n(36728),n(2784)),i=n(25686);function a(e){const{style:t,type:n,...a}=e,c=[s.container,t];return n===l.explore?c.push(s.explore):n===l.transparent&&c.push(s.transparent),r.createElement(i.Z,(0,o.Z)({style:c},a))}const s=n(73186).Z.create((e=>({container:{backgroundColor:e.colors.cellBackground,borderWidth:e.borderWidths.small,borderColor:e.colors.borderColor,borderStyle:"solid",borderRadius:e.borderRadii.xLarge,marginBottom:e.spaces.space16,overflow:"hidden"},explore:{backgroundColor:e.colors.gray0,borderColor:e.colors.gray0},transparent:{backgroundColor:"transparent",borderWidth:0}}))),l=Object.freeze({explore:"explore",transparent:"transparent"})},90876:(e,t,n)=>{"use strict";n.d(t,{Z:()=>M});var o=n(2784),r=n(25686),i=n(54044),a=n(45962),s=n(73186),l=n(16587),c=n(44402),d=n(327),u=n(19313),p=n(85332),h=n(45855),m=n(23803),g=n(76293),b=n(92160);const y=(e,t)=>t.module.selectIsEmptyTimeline(e),f=(e,t)=>t.module.selectInitialFetchStatus(e),_=(e,t)=>{const n=t.module.selectMetadata(e);return null==n?void 0:n.scribeConfig},v=(0,b.Z)().propsFromState((()=>({initialFetchStatus:f,isTimelineEmpty:y,scribeNamespace:_})));const w={...(0,n(44895).G)({isInSidebar:!0})},E=v((e=>{const{initialFetchStatus:t,isTimelineEmpty:n,module:r,scribeNamespace:i}=e;if((t===m.ZP.LOADED||t===m.ZP.FAILED)&&n)return null;const a=o.createElement(g.Z,{entryConfiguration:w,module:r,scroller:p.Z,showLoadingFooter:!1,title:"",withKeyboardShortcuts:!1});return i?o.createElement(h.nO,{namespace:i},a):a})),C=E;n(6886);var T=n(56499);const S=(0,T.Z)({loader:()=>n.e("loader.ExploreSidebar").then(n.bind(n,86421))}),P=(0,T.Z)({loader:()=>n.e("loader.SignupModule").then(n.bind(n,8419))});var Z=n(93983);const I=(0,T.Z)({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("loader.WideLayout")]).then(n.bind(n,82015))});var k=n(77559),x=n(68490),A=n(78772),L=n(62104);var R=n(18892);const D={withSearchBox:!0,withTopicsToFollow:!0,withTrends:!0,withWhoToFollow:!0};function M(e){const t={...D,...e};return o.createElement(r.Z,{style:q.root,testID:t.testID},o.createElement(B,t),o.createElement(F,t),o.createElement(H,t),o.createElement(O,t),o.createElement(V,t))}function O(e){return e.profileUserId?o.createElement(o.Fragment,null,o.createElement(d.O,null),o.createElement(z,e),o.createElement(N,e),o.createElement(U,e)):o.createElement(o.Fragment,null,o.createElement(d.O,null),o.createElement(N,e),o.createElement(z,e),o.createElement(U,e))}function B(e){return(0,k.ZP)()&&e.withSearchBox?o.createElement(o.Fragment,null,o.createElement(i.Z,null,(({windowWidth:e})=>o.createElement(r.Z,{style:[q.searchContainer,x.Z.getSidebarWidthStyle(e)]},o.createElement(Z.Rj,{isInSidebar:!0,shouldHandleSearchShortcut:!0})))),o.createElement(r.Z,{style:q.searchPlaceholder})):null}function F(e){return(0,u.QZ)().loggedInUserId?null:o.createElement(a.Z,{hideOnError:!0},o.createElement(R.g,null,o.createElement(P,null)))}function H(e){return e.children?o.Children.map(e.children,(e=>e?o.createElement(a.Z,{hideOnError:!0},o.createElement(R.g,null,e)):null)):null}function N(e){const t=(0,u.QZ)();return!e.withTrends||t.isRestrictedSession?null:o.createElement(a.Z,{hideOnError:!0},o.createElement(R.g,{type:"explore"},o.createElement(S,{focalTweetId:e.focalTweetId,profileUserId:e.profileUserId})))}function z(e){const t=(0,u.QZ)(),n=e.profileUserId||t.loggedInUserId;return e.withWhoToFollow&&n?o.createElement(a.Z,{hideOnError:!0},o.createElement(R.g,{type:"explore"},o.createElement(I,{userId:n,withProfileHeaderText:!!e.profileUserId}))):null}function U(e){const t=(0,u.QZ)(),n=e.profileUserId||t.loggedInUserId,r=o.useRef((0,l.Z)((e=>(e=>(0,L.Z)({timelineId:`topics-sidebar-graphql-${e}`,network:{getEndpoint:e=>e.Topics.fetchTopicsToFollowSidebar,getEndpointParams:()=>({userId:e})},formatResponse:A.Z,context:"FETCH_TOPICS_SIDEBAR",perfKey:"topics-sidebar-GraphQL"}))(e)))).current;return e.withTopicsToFollow&&n&&!t.isRestrictedSession&&t.featureSwitches.isTrue("responsive_web_sidebar_ttf_enabled")?o.createElement(a.Z,{hideOnError:!0},o.createElement(R.g,{type:"explore"},o.createElement(C,{module:r(n)}))):null}function V(e){return o.createElement(R.g,{type:"transparent"},o.createElement(c.Z,{textColor:"gray700",withOverflow:!0}))}const q=s.Z.create((e=>({root:{paddingBottom:e.spaces.space64,paddingTop:e.spaces.space12},searchContainer:{alignItems:"center",backfaceVisibility:"hidden",backgroundColor:e.colors.cellBackground,flexDirection:"row",height:e.componentDimensions.appBarHeight,marginBottom:e.spaces.space12,minHeight:e.spaces.space32,position:"fixed",top:0,zIndex:e.componentZIndices.appBarZIndex},searchPlaceholder:{height:e.componentDimensions.appBarHeight}})))},53331:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(2784),r=n(72175),i=n(96958),a=n(1778);const s=({children:e,description:t,includeOpenGraphMeta:n=!0,title:s})=>o.createElement(o.Fragment,null,s&&o.createElement(i.Z,{title:s,withMeta:n}),n&&o.createElement(a.Z,{description:t,title:s}),o.createElement(r.ql,null,o.createElement("meta",{description:t,name:"description"})),e),l=o.memo(s)},72983:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=n(7896),r=n(2784),i=n(77799),a=n(68472),s=n(73186),l=n(79404),c=n.n(l),d=n(51405);const u=c().aa6e3300,p=({retryMessage:e,...t},n)=>{const s=i.Z.isOnline();return r.createElement(a.Z,(0,o.Z)({},t,{icon:s?void 0:r.createElement(d.Z,{style:h.icon}),retryMessage:s?e:u}))},h=s.Z.create((e=>({icon:{color:e.colors.gray700,fontSize:e.spaces.space32}}))),m=r.forwardRef(p)},78869:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>b,CM:()=>E,DA:()=>l,FA:()=>h,Jk:()=>p,Kx:()=>y,MH:()=>f,UR:()=>c,VN:()=>v,ZP:()=>T,d0:()=>m,j5:()=>i,jp:()=>C,ly:()=>w,mC:()=>a,oe:()=>_,rL:()=>d,sM:()=>s,ti:()=>g,wi:()=>u});var o=n(79404),r=n.n(o);const i={text:r().b721eb38,visibleLoggedIn:!0,link:"https://about.twitter.com"},a={text:r().f66d24be,link:"https://help.twitter.com"},s={text:r().hdabc3fc,visibleLoggedIn:!0,legal:!0,link:"https://twitter.com/tos"},l={text:r().bc6efc72,visibleLoggedIn:!0,legal:!0,link:"https://twitter.com/privacy"},c={text:r().h3161192,visibleLoggedIn:!0,legal:!0,link:"https://support.twitter.com/articles/20170514"},d={text:r().da137d9a,featureSwitch:"dash_region_specific_de_media_transparency_items_enabled",visibleLoggedIn:!0,legal:!0,neverHidden:!0,link:"https://help.twitter.com/de/using-twitter/twitter-timeline"},u={featureSwitch:"dash_region_specific_de_and_tr_media_transparency_items_enabled",text:r().aeede01a,visibleLoggedIn:!0,legal:!0,link:"https://legal.twitter.com/imprint.html"},p={text:r().e3719c16,visibleLoggedIn:!0,neverHidden:!0,link:"https://help.twitter.com/resources/accessibility"},h={text:r().a7de64de,visibleLoggedIn:!0,legal:!0,link:"https://business.twitter.com/en/help/troubleshooting/how-twitter-ads-work.html?ref=web-twc-ao-gbl-adsinfo&utm_source=twc&utm_medium=web&utm_campaign=ao&utm_content=adsinfo"},m={text:r().jb0a4c36,link:"https://blog.twitter.com"},g={text:r().cf3709da,visibleLoggedIn:!0,link:"https://status.twitterstat.us"},b={text:r().ce6d095a,link:"https://careers.twitter.com"},y={text:r().e0adec82,link:"https://about.twitter.com/press/brand-assets"},f={text:r().a4cf866e,link:"https://ads.twitter.com/?ref=gl-tw-tw-twitter-advertise"},_={text:r().df1b7550,link:"https://marketing.twitter.com"},v={text:r().b97cd51c,visibleLoggedIn:!0,link:"https://business.twitter.com/?ref=web-twc-ao-gbl-twitterforbusiness&utm_source=twc&utm_medium=web&utm_campaign=ao&utm_content=twitterforbusiness"},w={text:r().c6f58084,visibleLoggedIn:!0,link:"https://developer.twitter.com"},E={text:r().d83f18d2,link:"https://twitter.com/i/directory/profiles"},C={text:r().bb081ea2,internal:!0,link:"/settings",excludeOnSettingsPage:!0},T=[i,a,s,l,c,d,u,p,h,m,g,b,y,f,_,v,w,E,C]},44402:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});n(6886);var o=n(2784),r=n(25686),i=n(44487),a=n(36934),s=n(73186),l=n(79404),c=n.n(l),d=n(84793),u=n(72192),p=n(1820),h=n(19313),m=n(78869);const g=c().b7388a56,b=c().h63a5c3c,y=c().jc292da5({year:(new Date).getFullYear()});class f extends o.Component{constructor(...e){super(...e),this._renderMenu=e=>t=>o.createElement(i.Z,{isFixed:!0,items:this._renderOverflowItems(e),onCloseRequested:t}),this._filterFeatureSwitch=({featureSwitch:e})=>!e||this.context.featureSwitches&&this.context.featureSwitches.isTrue(e),this._renderOverflowItems=e=>e.map((e=>{const{internal:t,link:n,text:o}=e;return{text:o,link:{pathname:n,external:!t}}})),this._renderItem=({internal:e,link:t,text:n})=>{const{align:r,textColor:i}=this.props,s=t?{pathname:t,external:!e}:void 0;return o.createElement(a.ZP,{color:i,key:n,link:s,size:"subtext2",style:[_.item,"center"===r&&_.itemAlignCenter]},n)}}render(){const{align:e,itemLayout:t="horizontal",textColor:n,withOverflow:i}=this.props,s=m.ZP.filter(this._filterFeatureSwitch),l=i?s.filter((({visibleLoggedIn:e})=>e)):s,[c,h]=(0,u.Z)(l,(({legal:e,neverHidden:t})=>e||t||!i));return o.createElement(r.Z,{accessibilityLabel:g,accessibilityRole:"navigation",style:[_.root,"center"===e&&_.alignCenter,"vertical"===t&&_.itemLayoutVertical]},c.map(this._renderItem),h.length>0?o.createElement(p.Z,{renderMenu:this._renderMenu(h),style:_.item},o.createElement(a.ZP,{color:n,size:"subtext2",withInteractiveStyling:!0},b,o.createElement(d.Z,{style:_.icon}))):null,o.createElement(a.ZP,{color:n,size:"subtext2",style:[_.item,"center"===e&&_.itemAlignCenter]},y))}}f.contextType=h.rC,f.defaultProps={textColor:"gray700"};const _=s.Z.create((e=>({root:{flexDirection:"row",flexWrap:"wrap",paddingHorizontal:e.componentDimensions.gutterHorizontal},alignCenter:{justifyContent:"center",paddingVertical:e.componentDimensions.gutterVertical},itemLayoutVertical:{flexDirection:"column"},item:{marginVertical:e.spaces.space2,paddingEnd:e.spaces.space12},itemAlignCenter:{marginVertical:e.spaces.space4,paddingEnd:e.spaces.space16},icon:{height:"1em",paddingHorizontal:e.spaces.space2}}))),v=f},82084:(e,t,n)=>{"use strict";n.d(t,{b:()=>v});var o=n(7896),r=n(2784),i=n(25686),a=n(41425),s=n(74054),l=(n(6886),n(56499));const c=r.forwardRef(d);function d(e,t){return r.createElement(u,(0,o.Z)({},e,{ref:t}))}const u=(0,l.Z)({loader:()=>n.e("loader.Confetti").then(n.bind(n,65396)).then((e=>({default:e.Confetti})))}),p=c;var h=n(73186);const m=r.createContext({query:null});var g=n(88609),b=n(35903),y=n.n(b),f=n(99241);function _(){var e,t;const n=(0,f.h)("hashfetti_enabled"),o=(0,f.h)("hashfetti_all_hashflags"),i=(0,f.D)("hashfetti_duration_ms").getNumberValue(4e3),a=(0,f.D)("hashfetti_particle_count").getNumberValue(30),{query:s}=r.useContext(m),l=(0,g.C)();if(!n||!s)return null;const c=y()(s);let d;for(const e of c){const t=l.getBrandedHashtag(e.hashtag);if(t){d=t;break}}const u=null==(e=d)?void 0:e.url,p=(null==(t=d)?void 0:t.hashfetti)||o;return u&&p?{url:u,duration_ms:i,count:a}:null}function v(){const e=_();if(!e)return null;const t=w.container;return r.createElement(a.Z.Hashfetti,null,r.createElement(s.Z,{id:"Hashfetti"},((n,a)=>r.createElement(i.Z,(0,o.Z)({ref:n()},a({style:t})),r.createElement(p,{autoplay:!0,count:e.count,duration:e.duration_ms,image_url:e.url,max_rotation:.125*Math.PI,type:"image"})))))}v.Provider=function(e){const{query:t}=e;return r.createElement(m.Provider,{children:e.children,value:{query:t}},e.children)};const w=h.Z.create((e=>({container:{pointerEvents:"none",position:"fixed",width:"100%",height:"100%",top:0,left:0}})))},1820:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});n(6886);var o=n(2784),r=n(25686),i=n(79404);const a=n.n(i)().h63a5c3c,s=({accessibilityLabel:e=a,children:t,onClick:n,renderMenu:i,shouldMountMenu:s,style:l,testID:c})=>{const[d,u]=o.useState(!1),p=s||d,h=!d;return o.createElement(r.Z,{accessibilityExpanded:!!d,accessibilityHasPopup:"menu",accessibilityLabel:e,accessibilityRole:"button",onClick:function(e){n&&n(e),u(!0)},style:l,testID:c},t,p?i((function(){u(!1)}),h):null)}},43748:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(2784),r=n(72175),i=n(66136),a=n(5714);function s({canonical:e}){const t=(0,a.uF)(e),n=(0,a.Km)(e);return o.createElement(r.ql,null,o.createElement("link",{href:n,hrefLang:"x-default",rel:"alternate"}),i.$n.map((e=>o.createElement("link",{href:t[e],hrefLang:e,key:e,rel:"alternate"}))))}const l=o.memo(s)},67006:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(2784),r=n(72175),i=n(79404),a=n.n(i),s=n(63752);const l=a().d2fb334c,c=({deepLink:e})=>{const t=l;return e?o.createElement(r.ql,null,o.createElement("meta",{content:e,property:"al:ios:url"}),o.createElement("meta",{content:s.AF,property:"al:ios:app_store_id"}),o.createElement("meta",{content:t,property:"al:ios:app_name"}),o.createElement("meta",{content:e,property:"al:android:url"}),o.createElement("meta",{content:"com.twitter.android",property:"al:android:package"}),o.createElement("meta",{content:t,property:"al:android:app_name"})):null}},93125:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(2784),r=n(72175);const i=({featureSwitches:e,loggedInUserId:t,pageType:n,userLanguage:i})=>{const a=!!t,s=i.toUpperCase();return!a&&e.isTrue("responsive_web_open_in_app_prompt_enabled")?o.createElement(r.ql,null,n?o.createElement("meta",{content:n,name:"branch:deeplink:pagetype"}):null,o.createElement("meta",{content:!0,name:`branch:deeplink:${s}`})):null}},1778:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(2784),r=n(72175);const i=e=>{const{canonical:t,description:n,image:i,imageAlt:a,imageH:s,imageType:l,imageW:c,title:d,ttl:u,type:p}=e;return o.createElement(r.ql,{prioritizeSeoTags:!0},p?o.createElement("meta",{content:p,property:"og:type"}):null,t?o.createElement("meta",{content:t,property:"og:url"}):null,d?o.createElement("meta",{content:d,property:"og:title"}):null,n?o.createElement("meta",{content:n,property:"og:description"}):null,i?o.createElement("meta",{content:i,property:"og:image"}):null,l?o.createElement("meta",{content:l,property:"og:image:type"}):null,c?o.createElement("meta",{content:c,property:"og:image:width"}):null,s?o.createElement("meta",{content:s,property:"og:image:height"}):null,a?o.createElement("meta",{content:a,property:"og:image:alt"}):null,u?o.createElement("meta",{content:u,property:"og:ttl"}):null)}},13325:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(2784),r=n(11273),i=n(19313),a=n(34478),s=n(79135);const l=e=>{const{children:t,collectionName:n}=e,l=o.useContext(i.rC);return(0,s.Kx)(l),r.tR?o.createElement(a.Z,{itemScope:!0,itemType:"https://schema.org/Collection"},o.createElement("meta",{content:n,itemProp:"name"}),t):t}},67026:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(2784),r=n(44542),i=n(79404);const a=n.n(i)().b2311b70;function s(){return o.createElement(r.Z,{onRetry:null,title:a})}const l=o.memo(s)},31209:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,C:()=>d});var o=n(7896),r=n(2784),i=(n(6886),n(56499)),a=n(81010);const s=(0,i.Z)({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("loader.AbsolutePower")]).then(n.bind(n,64238)),renderPlaceholder:(e,t)=>r.createElement(a.Z,{hasError:e,onRetry:t})});var l=n(20616);n(85332);const c="stable_sort_index",d=r.forwardRef(((e,t)=>{const n=e.cacheKey;return r.createElement(l.ZP,{identifier:n},r.createElement(s,(0,o.Z)({ref:t},e)))}))},28042:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});function o(e){return"_listHeader"===e||"_listFooter"===e}const r=(e,t,n)=>{const o=e(t),r=e(n);return!o&&r?-1:o&&!r?1:0},i=(e,t,n)=>a(e(n),e(t)),a=(e,t)=>e<t?-1:e>t?1:0,s=(e,t)=>{if(e.length)return e.reduce(((e,n)=>t(n,e)>0?n:e))},l=({nextPos:e,prevPos:t})=>{const n=t.getForViewport(),a=e=>e&&e.doesIntersectWith(n),l=e=>e?Math.abs(n.getTop()-e.getTop()):1/0,c=e.getList().filter((({id:n})=>!o(n)&&t.isRendered(n)&&e.isRendered(n))),d=c.length>0?s(c,((e,n)=>{const o=t.getForItem(e.id),s=t.getForItem(n.id);return r(a,o,s)||i(l,o,s)})):null;return d&&d.id},c={initialScrollHeadroom:e=>e.getRect().getHeight(),offsetToAnchor:(e,t)=>{const{distanceToViewportBottom:n,distanceToViewportTop:o,id:r}=t;if("number"==typeof o){const t=e.getForViewport().getTop()+o;return e.getForItem(r).getTop()-t}if("number"==typeof n){const t=e.getForViewport().getBottom()+n;return e.getForItem(r).getBottom()-t}return 0},scrollHeadroom:e=>{const t=e.getForList().getBottom(),n=e.getForViewport().getBottom();return Math.max(0,n-t)},anchorCandidates:e=>{const t=e.getForViewport().getTop();return e.findVisibleItems().filter((({id:e})=>!o(e))).map((({id:e,rectangle:n})=>({id:e,distanceToViewportTop:n.getTop()-t})))},pinToNewestWhenAtNewest:!1,offsetCorrection(e,t){if(e.getForViewport().getTop()<=e.getForList().getTop()&&this.pinToNewestWhenAtNewest)return 0;const n=l({prevPos:e,nextPos:t});if(n){const o=e.getForItem(n).getTop()-e.getForViewport().getTop();return t.getForItem(n).getTop()-t.getForViewport().getTop()-o}return 0}}},86924:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});n(2784);const o=Object.freeze({Carousel:"Carousel",GridCarousel:"GridCarousel",PagedCarousel:"PagedCarousel",Vertical:"Vertical"})},51507:(e,t,n)=>{"use strict";n.d(t,{$6:()=>a,eY:()=>s,zt:()=>i});var o=n(2784);const r=o.createContext(!1);function i(e){return o.createElement(r.Provider,e)}const a=r.Consumer;function s(){return o.useContext(r)}},43467:(e,t,n)=>{"use strict";n.d(t,{Z:()=>q});var o=n(2784),r=n(25686),i=n(54044),a=n(73186),s=n(79404),l=n.n(s),c=n(96889),d=n(95254),u=n(77559),p=n(7896),h=(n(6886),n(31165)),m=n(27968),g=n(78705),b=n(19313),y=n(8329),f=n(90237),_=n(49059),v=n(93983),w=n(6304);class E extends o.Component{constructor(...e){super(...e),this._handleBackClick=()=>{const{backLocation:e,history:t,onBackClick:n}=this.props;t.goBack({backLocation:e,onGoBack:n})}}componentDidMount(){const{secondaryBar:e}=this.props,t=a.Z.theme.componentDimensions.appBarHeightPx;this.props.viewport.setOffsetTop(t*(e?2:1))}componentWillUnmount(){this.props.viewport.setOffsetTop(0)}render(){const{backButtonType:e,backLocation:t,disjointHeader:n,middleControl:i,onBackClick:a,onTabRefresh:s,rightControl:l,secondaryBar:c,style:d,subtitle:u,title:p,withAppBar:b,withBackButton:y,withSearchBox:f}=this.props,_=y&&(t||a)?o.createElement(h.Z,{backButtonType:e,onClick:this._handleBackClick}):void 0,v=f?void 0:s,E=m.Z.getBackgroundStyles();return o.createElement(o.Fragment,null,o.createElement(r.Z,{style:[C.stickyHeader,d]},o.createElement(r.Z,{style:!!c&&E},b?o.createElement(r.Z,{style:[C.appBarContainer,!!v&&C.cursor]},o.createElement(g.Z,{leftControl:_,middleControl:f?this._renderSearchBox():i,onMiddleControlClick:v,rightControl:l,subtitle:u,title:f?void 0:p,withBackground:!c})):null,c?o.createElement(r.Z,null,c):null),n,o.createElement(w.W_,{id:"NewTweetsPill",zIndex:-1},this._renderPillControl())),o.createElement(w.Wq,null))}_renderSearchBox(){const{customSearchBox:e,searchBoxOptions:t,searchBoxRef:n}=this.props;return o.createElement(r.Z,{style:C.searchContainer},e||o.createElement(v.Rj,(0,p.Z)({},t,{ref:n,shouldHandleSearchShortcut:!0})))}_renderPillControl(){const{withPillControl:e}=this.props;if(!e)return null;const t=this.context.featureSwitches.isTrue("responsive_web_home_new_tweets_pill_v2");return o.createElement(r.Z,{style:C.pillControlContainer},t?o.createElement(_.Z,null):o.createElement(f.Z,null))}}E.contextType=b.rC,E.defaultProps={onTabRefresh:()=>{window.scrollTo(0,0)},withAppBar:!0,withBackButton:!1,withSearchBox:!1};const C=a.Z.create((e=>({stickyHeader:{backfaceVisibility:"hidden",position:"sticky",top:-.5},appBarContainer:{zIndex:e.componentZIndices.appBarZIndex},cursor:{cursor:"pointer"},searchContainer:{flexDirection:"row",flexGrow:1,flexShrink:1,marginHorizontal:e.spaces.space4,alignItems:"center",marginVertical:"unset"},pillControlContainer:{alignItems:"center"}}))),T=(0,y.Z)(E);var S=n(54793),P=n(41441),Z=n(45962),I=n(73036);const k=(0,n(56499).Z)({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("loader.WideLayout")]).then(n.bind(n,93077))});var x=n(27036),A=n(68490),L=n(45855),R=n(51507);const D="primaryColumn",M="sidebarColumn",O={section:"sidebar"};class B extends o.Component{render(){return o.createElement(i.Z,null,(({containerWidth:e})=>{const t=c.Z.isTwoColumnLayout(e),n=!(0,u.ZP)()&&e<=a.Z.theme.breakpoints.medium;return o.createElement(r.Z,{style:F.root},o.createElement(r.Z,{style:this._getContainerStyle(t)},this._renderPrimary(t,n),t?this._renderSidebar(e):null))}))}_renderPrimary(e,t){const{primaryContent:n}=this.props;return o.createElement(P.Z,{style:[F.primaryColumn,(0,u.ZP)()&&H.primaryColumn,t&&F.primaryColumnMobile],testID:D},o.createElement(Z.Z,{showReload:!0},"function"==typeof n?n({isWide:e}):n))}_renderSidebar(e){const{sidebarContent:t}=this.props,n=I.ZP.isFirefox()&&F.firefoxOverflowHidden,i=(0,u.ZP)()?A.Z.getSidebarWidthStyle(e):N.sidebarColumnWidth,a=[F.sidebarColumn,!(0,u.ZP)()&&N.sidebarColumn,i,n];return o.createElement(L.nO,{namespace:O},o.createElement(r.Z,{style:a,testID:M},o.createElement(Z.Z,null,o.createElement(k,{style:i},o.createElement(r.Z,{style:F.safari10NestingFix},o.createElement(R.zt,{value:!0},t))))))}_getContainerStyle(e){return(0,u.ZP)()?[F.container,H.container]:[F.container,N.container,e&&N.containerWide]}}B.contextType=b.rC;const F=a.Z.create((e=>({root:{backfaceVisibility:"hidden",flexGrow:1},container:{alignItems:"stretch",backgroundColor:"transparent",flexDirection:"row",flexGrow:1,minHeight:"100%",width:"100%"},primaryColumn:{backgroundColor:e.colors.cellBackground,borderColor:e.colors.borderColor,borderStartWidth:e.borderWidths.small,borderEndWidth:e.borderWidths.small,borderStyle:"solid",width:x.Z.columnWidths.primary,zIndex:1},primaryColumnMobile:{borderColor:"transparent"},sidebarColumn:{backfaceVisibility:"hidden",marginEnd:x.Z.columnWidths.gutter.right},firefoxOverflowHidden:{overflow:"hidden"},safari10NestingFix:{display:"block"}}))),H=a.Z.create((e=>({container:{justifyContent:"space-between"},primaryColumn:{marginStart:0,marginEnd:0}}))),N=a.Z.create((e=>({container:{marginHorizontal:"auto"},containerWide:{paddingHorizontal:e.spaces.space12,width:x.Z.contentWidths.twoColumn.normal},sidebarColumn:{marginStart:x.Z.columnWidths.gutter.left.small},sidebarColumnWidth:{width:x.Z.columnWidths.secondary.normal}}))),z=B;var U=n(29496);class V extends o.Component{constructor(...e){super(...e),this._handleSkip=e=>{const{skipToRef:t}=this.props;t.current&&t.current.focus&&t.current.focus()}}render(){const{skipLabel:e}=this.props;return o.createElement(U.ZP,{accessibilityLabel:e,onPress:this._handleSkip,style:a.Z.visuallyHidden})}}class q extends o.Component{constructor(e){super(e),this._renderPrimaryContent=({isWide:e})=>{const{backLocation:t,customSearchBox:n,history:i,middleControl:a,onTabRefresh:s,primaryContent:l,primaryContentLabel:c,rightControl:d,searchBoxOptions:p,searchBoxRef:h,secondaryBar:m,subtitle:g,title:b,withBackButton:y,withSearchBox:f}=this.props,_="function"==typeof l?l({isWide:e}):l,v=(b||d||m)&&(0,u.ZP)();return o.createElement(r.Z,{accessibilityLabel:c,focusable:!0,ref:this._primaryContentRef},v?o.createElement(T,{backLocation:t,customSearchBox:n,disjointHeader:this.props.disjointHeader,history:i,middleControl:a,onTabRefresh:s,rightControl:d,searchBoxOptions:p,searchBoxRef:h,secondaryBar:m,style:G.header,subtitle:g,title:b,withBackButton:y,withPillControl:!0,withSearchBox:f}):null,_)},this._primaryContentRef=o.createRef(),this._sidebarContentRef=o.createRef()}render(){const{SideNavButton:e,TabBar:t,backLocation:n,centeredLogo:a,composeOptions:s,customSearchBox:l,documentTitle:d,headerless:p,hideLoginSignupBar:h,logoButton:m,onBackClick:g,onTabRefresh:b,rightControl:y,searchBoxOptions:f,searchBoxRef:_,secondaryBar:v,secondaryContentLabel:w,sidebarContent:E,skipToPrimaryContentLabel:C,skipToSecondaryContentLabel:T,subtitle:P,title:Z,withBottomLoginSignupBar:I,withSearchBox:k,withTweetButton:x}=this.props,A=o.createElement(r.Z,{accessibilityLabel:w,focusable:!0,ref:this._sidebarContentRef},E),L=[o.createElement(V,{skipLabel:C,skipToRef:this._primaryContentRef}),o.createElement(V,{skipLabel:T,skipToRef:this._sidebarContentRef})];return o.createElement(i.Z,null,(({containerWidth:r})=>{const i=c.Z.isTwoColumnLayout(r);return o.createElement(S.Z.Configure,{SideNavButton:e,TabBar:t,backLocation:n,centeredLogo:a,composeOptions:s,customSearchBox:l,disjointHeader:this.props.disjointHeader,documentTitle:d,headerless:p,hideLoginSignupBar:h,logoButton:m,onBackClick:g,onTabRefresh:b,rightControl:y,searchBoxOptions:f,searchBoxRef:_,secondaryBar:i?void 0:v,hasExternalSecondaryBar:Boolean(this.props.secondaryBar),skipButtons:L,subtitle:P,title:Z,withBottomLoginSignupBar:I,withPillControl:!(0,u.ZP)(),withSearchBox:k,withTweetButton:x},o.createElement(z,{primaryContent:this._renderPrimaryContent,sidebarContent:A}))}))}}q.defaultProps={hideLoginSignupBar:!1,skipToPrimaryContentLabel:l().cb80300e,skipToSecondaryContentLabel:l().ea5cd098,primaryContentLabel:l().c67e3fc2,secondaryContentLabel:l().edf7bc2e,withBackButton:!0};const G=a.Z.create((e=>({header:{zIndex:d.R0}})))},85332:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(25686),i=n(7333);class a extends o.Component{scrollToNewest(e){}isAtNewest(){return!0}adjustFocusBy(e){}componentDidMount(){const{onPositionRestored:e}=this.props;e&&e()}componentDidUpdate(e){const{cacheKey:t,onPositionRestored:n}=this.props;t!==e.cacheKey&&n&&n()}_getItemRenderer(e){const{renderer:t}=this.props;return o.createElement(o.Fragment,null,t(e))}render(){const{footer:e,header:t,identityFunction:n,items:i,noItemsRenderer:a}=this.props;return o.createElement(r.Z,null,t,0===i.length?a():i.map((e=>o.cloneElement(this._getItemRenderer(e),{key:n(e)}))),e)}}a.defaultProps={noItemsRenderer:i.Z,footer:null,header:null},a.displayName="SimpleScroller";const s=a},327:(e,t,n)=>{"use strict";n.d(t,{V:()=>l,O:()=>p});n(6886);var o=n(2784),r=n(45962),i=n(56499),a=n(99241),s=n(77559);function l(){const e=(0,a.D)("spaces_2022_h2_spacebar_web_topnavbar");if((0,s.ZP)())return null;return"disabled"===e.getStringValue()?null:o.createElement(r.Z,{hideOnError:!0},o.createElement(c,null))}const c=(0,i.Z)({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("shared~loader.AudioDock~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceReport~bundle.Birdw"),n.e("shared~loader.AudioSpacebar~loader.SidebarSpacebar"),n.e("loader.AudioSpacebar")]).then(n.bind(n,25307)).then((e=>({default:e.AudioSpacebar})))});var d=n(7267),u=n(19313);function p(){const e=(0,a.D)("spaces_2022_h2_spacebar_web_sidebar"),t=(0,u.QZ)(),n=(0,d.k6)();if(!t.loggedInUserId)return null;return"/i/spacebar"===n.location.pathname?null:e.isTrue()?o.createElement(r.Z,{hideOnError:!0},o.createElement(h,null)):null}const h=(0,i.Z)({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("shared~loader.AudioDock~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceReport~bundle.Birdw"),n.e("shared~loader.AudioSpacebar~loader.SidebarSpacebar"),n.e("loader.SidebarSpacebar")]).then(n.bind(n,68930)).then((e=>({default:e.SidebarSpacebar})))})},29744:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=n(79404),r=n.n(o),i=n(6889),a=n(42922);const s=r().a7d8afea,l=r().aa6fcee6,c=r().f0caa1aa,d=r().eaf63156,u=r().d1e92eba,p=r().cf6b3e22,h=r().b7fbb4c0,m=r().d90efe06,g=e=>{const{hideSubtext:t=!1,list:n}=e,o=n.muting,r={text:o?l:s,Icon:o?i.Z:a.Z,onClick:()=>b(e),subText:o?h:d};return t&&(r.text=o?p:c,r.subText=void 0),r},b=e=>{const{addToast:t,list:n,scribe:o,toggleMute:r}=e;if(!n||!n.id_str)return;const{id_str:i,muting:a}=n,s=a?m:u,l=a?"unmute_list":"mute_list";r(i,{mute:!a}).then((()=>{t&&t({text:s})})),o({action:"click",element:l})}},17464:(e,t,n)=>{"use strict";n.d(t,{BH:()=>Z.BH,ZP:()=>D});n(75640);var o=n(2784),r=n(88990),i=n(79404),a=n.n(i),s=n(73036),l=n(1179),c=n(88335),d=n(19313),u=n(25686),p=n(41425),h=n(36934),m=n(29496),g=n(73186);class b extends o.PureComponent{render(){const{onPrimaryButtonClick:e,onSecondaryButtonClick:t,primaryButtonLabel:n,primaryText:r,secondaryButtonLabel:i,secondaryText:a}=this.props;return o.createElement(p.Z.HalfSheet,null,o.createElement(u.Z,{style:y.sheetContent},o.createElement(u.Z,{style:y.content},o.createElement(u.Z,{style:y.header},o.createElement(h.ZP,{color:"white",size:"headline1",weight:"bold"},r)),o.createElement(h.ZP,{color:"white",style:y.secondaryText},a)),o.createElement(u.Z,{style:y.footer},o.createElement(m.ZP,{onPress:t,size:"medium",style:y.button,type:"onMediaOutlined"},o.createElement(h.ZP,{numberOfLines:1},i)),o.createElement(m.ZP,{onPress:e,size:"medium",style:y.button,type:"onMediaWhiteFilled"},o.createElement(h.ZP,{numberOfLines:1},n)))))}}const y=g.Z.create((e=>({content:{padding:e.spaces.space20},footer:{flexDirection:"row",justifyContent:"space-between",paddingBottom:e.spaces.space12,paddingHorizontal:e.spaces.space20,flexWrap:"wrap"},button:{marginBottom:e.spaces.space4},header:{flexDirection:"row"},secondaryText:{paddingTop:e.spaces.space12},sheetContent:{paddingBottom:g.Z.iPhoneOffsetBottom,backgroundColor:e.colors.primary}}))),f=b;var _=n(76238),v=n(92160),w=n(80319),E=n(17943),C=n(67935),T=n(24433),S=n(17341);const P=(0,v.Z)().propsFromState((()=>({featureSwitchImpressions:w.ur,loginPromptShown:T.fj,loginPromptLastShown:S.ne,startLocation:E.Lg}))).propsFromActions((()=>({setLoginPromptShown:T.Af,setLoginReturnPath:C.Jm,updateSettings:T.VP}))).withAnalytics();var Z=n(63143),I=n(92940);const k=a().j49fd4e8,x=a().hd50e064,A=a().a565833e,L=a().e919c3bc;class R extends o.Component{constructor(e,t){super(e,t),this._getFullSheetDisplayElements=Z.Wc.bind(null,this.context.featureSwitches),this._getHalfSheetPrimaryText=Z.sI.bind(null,this.context.featureSwitches),this._getHalfSheetSecondaryText=Z.Qj.bind(null,this.context.featureSwitches),this._isStandaloneApp=l.Z.isStandaloneApp(),this._shouldRenderPrompt=()=>{const{loginPromptLastShown:e,loginPromptShown:t,onlyShowOnce:n,useBottomBanner:o}=this.props,{displayInterval:r}=this.state;if(o&&!this._hasMobileAppStore())return!1;if(n){if(t)return!1;if(r&&Date.now()-e<r)return!1}return!0},this._handleClose=()=>{this._scribeAction("dismiss"),this.props.onClose()},this._handleNotNow=()=>{this._scribeAction("not_now"),this.props.onClose()},this._handleSubmit=e=>{const{onClose:t,postLoginPath:n,setLoginReturnPath:o}=this.props;this._scribeAction("login"),n&&o(n),t()},this._handleSignupButtonClick=e=>{this._scribeAction("signup"),this.props.onClose()},this._handleAppInstallButtonClick=e=>{const{featureSwitches:t}=this.context,{displayMode:n,featureSwitchImpressions:o,startLocation:r,useBottomBanner:i}=this.props,{switchToAppLink:a}=this.state;e.preventDefault(),this._scribeAction("download"),(0,_._)({displayMode:n,downloadAppUrlPath:i?a:I.ri.InterstitialSwitchToApp,startLocation:r,featureSwitches:t,featureSwitchImpressions:o})},this._getSignupState=()=>{const{displayMode:e,tweetId:t,userId:n}=this.props;switch(e){case Z.BH.follow:return{gatedAction:{action:c.qJ.Follow,user_id:n}};case Z.BH.like:return{gatedAction:{action:c.qJ.Favorite,tweet_id:t,user_id:n}};case Z.BH.reply:return{gatedAction:{action:c.qJ.Reply,tweet_id:t,user_id:n}};case Z.BH.retweet:return{gatedAction:{action:c.qJ.Retweet,tweet_id:t,user_id:n}};default:return}},this._getLoginState=()=>{const{postLoginPath:e}=this.props;if(e)return{input:{requested_variant:btoa(JSON.stringify({redirect_after_login:e}))}}},this._hasMobileAppStore=()=>s.ZP.isIOS()||s.ZP.isAndroid();const{useBottomBanner:n}=this.props;this._showTertiaryCTA=this._hasMobileAppStore()&&!this._isStandaloneApp&&this.context.featureSwitches.isTrue("responsive_web_login_signup_sheet_app_install_cta_enabled");const o=this.context.featureSwitches.getNumberValue("rweb_update_fatigue_switch_to_app_day_timeout"),r=this.context.featureSwitches.getStringValue("rweb_update_fatigue_switch_to_app_link");this.state={displayInterval:n?864e5*o:0,switchToAppLink:I.ri[r]}}componentDidMount(){this._shouldRenderPrompt()&&this._scribeAction("impression")}componentWillUnmount(){const{loginPromptShown:e,onlyShowOnce:t,setLoginPromptShown:n,updateSettings:o}=this.props;!e&&t&&(n(!0),o({loginPromptLastShown:Date.now()}))}render(){const{allowBackNavigation:e,customText:t,displayMode:n,hideSignUp:i,isFullHeightOnMobile:a,loginLabel:s,useBottomBanner:l,userFullName:c}=this.props;if(!this._shouldRenderPrompt())return null;const{icon:d,iconStyle:u,subtext:p,text:h}=this._getFullSheetDisplayElements(n),m="function"==typeof h?h({customText:t,userFullName:c}):h,g="function"==typeof p?p({customText:t,userFullName:c}):p,b=i?"":this.props.signupLabel,y={pathname:"/i/flow/login",state:this._getLoginState()},_={pathname:"/i/flow/signup",state:this._getSignupState()};return l?o.createElement(f,{onPrimaryButtonClick:this._handleAppInstallButtonClick,onSecondaryButtonClick:this._handleNotNow,primaryButtonLabel:k,primaryText:this._getHalfSheetPrimaryText(),secondaryButtonLabel:x,secondaryText:this._getHalfSheetSecondaryText()}):o.createElement(r.Z,{actionLabel:s,actionLink:y,allowBackNavigation:e,graphic:d,graphicStyle:u,headline:m||"",isFullHeightOnMobile:a,onAction:this._handleSubmit,onClose:this._handleClose,onSecondaryAction:this._handleSignupButtonClick,onTertiaryAction:this._showTertiaryCTA?this._handleAppInstallButtonClick:void 0,secondaryActionLabel:b,secondaryActionLink:_,subtext:g||"",tertiaryActionLabel:this._showTertiaryCTA?k:void 0,useBrandedActionButtons:!0})}_scribeAction(e){const{analytics:t,displayMode:n,useBottomBanner:o}=this.props,r=o?"half_sheet":n;t.scribe({component:"login_signup_sheet",element:r,action:e})}}R.defaultProps={displayMode:Z.BH.generic,hideSignUp:!1,isFullHeightOnMobile:!0,useBottomBanner:!1,loginLabel:L,signupLabel:A,onlyShowOnce:!1},R.displayMode=Z.BH,R.contextType=d.rC;const D=P(R)},16659:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g,C:()=>y});var o=n(2784),r=n(29496),i=n(73186),a=n(79404),s=n.n(a),l=n(14075),c=n(8716),d=n(19313),u=n(92160);const p=(e,t)=>{var n;const o=t.module.selectMetadata(e);return(null==o||null==(n=o.reader_mode_config)?void 0:n.is_reader_mode_available)||!1},h=(0,u.Z)().propsFromState((()=>({readerModeAvailable:p}))),m=s().b8f3500a,g=({focalTweet:e,isExpanded:t,readerModeAvailable:n})=>{var i;const{featureSwitches:a,userClaims:s}=o.useContext(d.rC),u=a.isTrue("longform_reader_mode_view_in_reader_mode_entry_button_enabled"),p=(0,c.Z)(),h=n&&(null==s?void 0:s.isTrueAndEnabled("subscriptions_feature_1005")),g=null==e?void 0:e.id_str,y=null==e||null==(i=e.user)?void 0:i.screen_name,f=()=>{p.scribe({action:"click",element:t?"view_in_reader_mode_button":"reader_mode_header_icon_enable",page:"thread",section:"reader_mode",data:{tweet_id:g}})};return h?(()=>{if(g&&y){const e=`/${y}/thread/${g}`;return t?u?o.createElement(r.ZP,{link:e,onClick:f,style:b.button,type:"primaryOutlined"},m):null:o.createElement(r.ZP,{icon:o.createElement(l.Z,{style:b.icon}),link:e,onClick:f,type:"brandText"})}return null})():null},b=i.Z.create((e=>({button:{marginTop:e.spaces.space8,marginBottom:e.spaces.space20},icon:{color:e.colors.text,weight:"bold"}}))),y=h((({focalTweet:e,isExpanded:t,readerModeAvailable:n})=>o.createElement(g,{focalTweet:e,isExpanded:t,readerModeAvailable:n})))},22185:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>C,Zq:()=>f});n(6886);var o=n(2784),r=n(94407),i=n(25686),a=n(36934),s=n(27519),l=n(12408),c=n(29496),d=n(88990),u=n(73186),p=n(35235),h=n(35131);const m=n.p+"illustration-toxicity-spam.15a7f91a.png";var g=n(60673);const b="Relevant to you",y="All Replies",f=Object.freeze({relevant:"relevant",all:"all"}),_=Object.freeze({relevant:b,all:y}),v={page:"tweet",component:"tweet"};class w extends o.PureComponent{constructor(...e){super(...e),this.state={isReplyDropdownPopover:!1,showReplyDropdownInfo:!1},this._renderReplyDropdownContent=(e,t)=>{const{replyDropdownSelection:n}=this.props,r=e=>o.createElement(a.ZP,{weight:"bold"},e);return o.createElement(o.Fragment,null,o.createElement(a.ZP,{size:"title3",style:E.header,weight:"heavy"},"Sort replies"),o.createElement(o.Fragment,null,o.createElement(s.Z,{actionSubText:"Replies from people you follow and other replies likely to be most interesting to you",actionText:r(b),isSelected:f.relevant===n,onClick:this._createClickHandler(f.relevant,e),selectable:!0,style:E.menuOption}),o.createElement(s.Z,{actionSubText:"All replies, including those that may be potentially spammy, harmful, or offensive",actionText:r(y),isSelected:f.all===n,onClick:this._createClickHandler(f.all,e),selectable:!0,style:E.menuOption}),o.createElement(a.ZP,{color:"link",onClick:this._createInfoClickHandler(t,e),style:E.link,weight:"bold"},"Get more info")))},this._createClickHandler=(e,t)=>()=>{const{changeDropdownState:n}=this.props;n&&(n(e),this._scribe({element:e===f.relevant?"reply_selector_top_replies":"reply_selector_all_replies",action:"select"}),t())},this._createInfoClickHandler=(e,t)=>()=>{this.setState({isReplyDropdownPopover:"popover"===e,showReplyDropdownInfo:!0}),this._scribe({element:"reply_selector_all_replies_more_info",action:"click"}),t()},this._scribe=e=>{const{analytics:t}=this.props;t.scribe({...v,...e})},this._handleScribeReplySortingOpen=()=>{this._scribe({element:"reply_selection_dropdown",action:"click"})},this._handleScribeReplySortingDismiss=()=>{this._scribe({element:"reply_selector",action:"dismiss"})},this._handleReplyDropdownInfoClose=()=>{this.setState({showReplyDropdownInfo:!1}),this._scribe({element:"reply_selector_education_sheet",action:"dismiss"})},this._handleReplyDropdownShown=()=>this._scribe({element:"reply_selection_dropdown",action:"impression"})}componentDidMount(){this._handleReplyDropdownShown()}render(){const{replyDropdownSelection:e}=this.props,{showReplyDropdownInfo:t}=this.state;return o.createElement(i.Z,{style:E.container},o.createElement(l.Z,{onDismiss:this._handleScribeReplySortingDismiss,renderContent:this._renderReplyDropdownContent},o.createElement(c.ZP,{icon:o.createElement(p.Z,{style:E.filterIcon}),onPress:this._handleScribeReplySortingOpen,type:"onMediaWhiteFilled"},_[e],o.createElement(h.Z,{style:E.arrowIcon})),t?this._renderReplyDropdownInfo():null))}_renderReplyDropdownInfo(){const{isReplyDropdownPopover:e}=this.state,t=o.createElement(i.Z,null,o.createElement(a.ZP,{style:e?E.infoPaddingTop32:E.infoPaddingVertical12},"Replies from people you follow and others likely to be most interesting to you will appear first."),o.createElement(a.ZP,{style:e?E.infoPaddingVertical20:E.infoPaddingVertical8},"You can also view other replies, including those that may be potentially spammy, harmful, or offensive."));return o.createElement(d.Z,{actionLabel:"Got it",graphic:({style:e})=>o.createElement(r.Z,{accessibilityLabel:"",source:m,style:e}),graphicDisplayMode:"illustration",headline:y,onAction:this._handleReplyDropdownInfoClose,onClose:this._handleReplyDropdownInfoClose,subtext:t,withCloseButton:!1})}}w.defaultProps={replyDropdownSelection:f.relevant};const E=u.Z.create((e=>({container:{alignItems:"flex-start",marginStart:e.spaces.space16,marginTop:e.spaces.space16},header:{paddingTop:e.spaces.space32,paddingBottom:e.spaces.space16,paddingStart:e.spaces.space32},menuOption:{paddingHorizontal:e.spaces.space32,paddingVertical:e.spaces.space16},link:{paddingStart:e.spaces.space32,paddingBottom:e.spaces.space32},infoPaddingTop32:{paddingTop:e.spaces.space32},infoPaddingVertical12:{paddingVertical:e.spaces.space12},infoPaddingVertical8:{paddingVertical:e.spaces.space8},infoPaddingVertical20:{paddingVertical:e.spaces.space20},filterIcon:{marginEnd:0,paddingEnd:e.spaces.space8},arrowIcon:{paddingStart:e.spaces.space16}}))),C=(0,g.Z)(w,v)},76444:(e,t,n)=>{"use strict";n.d(t,{Mu:()=>I,ZP:()=>Z});n(6886);var o=n(72192),r=n(28412),i=n(17500),a=n(11469),s=n(19744),l=n(50099),c=n(80017),d=n(59063),u=n(69933),p=n(76831),h=n(44895),m=n(30264),g=n(52612),b=n(34124),y=n(1231),f=n(35089),_=n(37985),v=n(16564),w=n(10897);const E="FocalTweetInlineTombstone",C="More Replies";let T;const S=Object.freeze({Default:"ui_defaultLabel",TransparentCursor:"ui_transparentCursor"}),P={...(0,h.G)({}),[g.ZP.Tweet]:(0,u.Z)({hideConversationControlsEducationText:!0,withMuteConversation:!0})},Z=({changeDropdownState:e,isCurrentUserRootAuthor:t,isReaderMode:n,isTransparentCursorsEnabled:o,replyDropdownSelection:i,rootTweetAuthorId:a,tweetTextSize:u,withFocalTweetMedia:h,withRuxInjections:m})=>(0,r.Z)({},P,{[g.ZP.SelfThreadTweetComposer]:w.Z,[g.ZP.Tweet]:{handlers:{[_.Z.Tweet]:(0,p.Cw)({allowDownvote:!0,hideConversationControlsEducationText:!0,hideExclusivityInfoEducationTextInReplies:!0,hideTrustedFriendsEducationTextInReplies:!0,createAdditionalProps:(e,{applyFeedbackAction:n})=>{var o;const r={};r.withHideReply=t,r.showMidConversationControlEducationText=!0,r.withUnhideReply=!1,r.withViewHiddenReplies=!0;const i=!!(e.content&&e.content.hasModeratedReplies&&e.conversationPosition&&e.conversationPosition.isStart);return r.conversationAnnotation=null==e||null==(o=e.content)?void 0:o.conversation_annotation,r.hasModeratedReplies=i,r.rootTweetAuthorId=a,t&&(r.onTweetDismiss=()=>{n({entry:e,feedbackKeys:[b.qt]})}),r},dismissable:!0,withMuteConversation:!0}),[_.Z.FocalTweet]:(0,p.g6)({allowDownvote:!0,createAdditionalProps:(n,{applyFeedbackAction:o})=>{const{content:{conversation_annotation:r,hasModeratedReplies:s},conversationPosition:l,referringContext:c}=n,{contextTweetId:d,promotedContent:u,socialContext:p,topicFollowPrompt:m}=c||{};return{contextTweetId:d,conversationAnnotation:r,hasModeratedReplies:!!(s&&l&&l.isStart),promotedContent:u,rootTweetAuthorId:a,socialContext:p,topicFollowPrompt:m,withHideReply:t,withInlineMedia:h,...t?{onTweetDismiss:()=>{o({entry:n,feedbackKeys:[b.qt]})}}:{},changeDropdownState:e,replyDropdownSelection:i}},dismissable:!0,divider:e=>({top:!1,bottom:!1})}),[_.Z.ReaderMode]:(0,p.Cw)({hideConversationControlsEducationText:!0,hideExclusivityInfoEducationTextInReplies:!0,hideHighlightedUserLabel:!0,hideTrustedFriendsEducationTextInReplies:!0,isReaderMode:!0,shouldSelfThreadIncludeAvatar:!1,showWithheldBannerOnMyTweets:!1,tweetTextSize:u,withActionsDisabled:!1,withMuteConversation:!1,withRemoveFromBookmarks:!1,withSelfThread:!1,withUserPresence:!1})}},[g.ZP.Tombstone]:{handlers:{[E]:(0,d._n)({isFocalTweet:!0,isReaderMode:n,withHideReply:t}),[f.Z.Inline]:(0,d._n)({isReaderMode:n,tweetDismissFeedbackKey:t?b.qt:void 0,withHideReply:t})}},[g.ZP.Label]:s.ov({selectDisplayType:e=>((e,t)=>t&&e.content.text===C?S.TransparentCursor:S.Default)(e,o),handlers:{[S.TransparentCursor]:v.L,[S.Default]:v.k}}),[g.ZP.TimelineCursor]:(0,l.Z)({withRuxInjections:m}),[g.ZP.ThreadHeader]:c.Z}),I=({contextTweetId:e,contextualClientEventInfo:t,focalTweetId:n,promotedContent:r,showOnlyRelevantReplies:s,socialContext:l,topicFollowPrompt:c})=>{const d=e=>e.type===g.ZP.Tweet&&e.content.id===n||e.type===g.ZP.Tombstone&&!!e.content&&!!e.content.tweet&&e.content.tweet.id===n;return n=>{const u=(0,i.Z)(n,d);let p=!1;const h=((e,t)=>{const n=(0,o.Z)(e,(e=>"0"!==e.sortIndex));return n[0].splice(t+1,0,...n[1]),n[0]})(n,u);let b;return(0,a.Z)(h,((n,o)=>{const i=n.type===g.ZP.TimelineCursor&&(n.content.cursorType===m.CursorType.ShowMoreThreads||n.content.cursorType===m.CursorType.ShowMoreThreadsPrompt),a=n.type===g.ZP.Label&&n.content.text===C;if(s&&(i||a))return void 0===b&&n.content.cursorType===m.CursorType.ShowMoreThreadsPrompt?T=o:void 0===b&&(b=o),!1;if(s&&void 0!==b&&o>=b)return!1;if(s&&void 0===b&&o>=T)return!1;const d=o>u;if(n.type!==g.ZP.Tweet&&n.type!==g.ZP.Tombstone||d)return n.type!==g.ZP.SelfThreadTweetComposer&&n;{const i=!p;if(p=!0,o<u){if(n.type===g.ZP.Tweet)return L(n,i);if(n.type===g.ZP.Tombstone)return R(n,i)}else{if(n.type===g.ZP.Tombstone){const t={isStart:i,isEnd:!0};return n.content.displayType===f.Z.Inline?x({contextTweetId:e,entry:n,socialContext:l,topicFollowPrompt:c,conversationPosition:t}):A({entry:n,conversationPosition:t})}if(n.type===g.ZP.Tweet)return k({originalEntry:n,contextTweetId:e,contextualClientEventInfo:t,socialContext:l,promotedContent:r,topicFollowPrompt:c,conversationPosition:{isStart:i,isEnd:!0,position:"focal",showReplyContext:!1}})}}}))}},k=({contextTweetId:e,contextualClientEventInfo:t,conversationPosition:n,originalEntry:o,promotedContent:r,socialContext:i,topicFollowPrompt:a})=>y.Wf({...o,conversationPosition:n,referringContext:{contextTweetId:e,contextualClientEventInfo:t,socialContext:i,promotedContent:r,topicFollowPrompt:a}},{displayType:_.Z.FocalTweet}),x=({contextTweetId:e,conversationPosition:t,entry:n,socialContext:o,topicFollowPrompt:r})=>y.Wf({...n,conversationPosition:t,referringContext:{contextTweetId:e,socialContext:o}},{displayType:E}),A=({conversationPosition:e,entry:t})=>({...t,conversationPosition:e}),L=(e,t)=>({...e,conversationPosition:{isStart:t,isEnd:!1,position:"ancestor",showReplyContext:!1}}),R=(e,t)=>({...e,conversationPosition:{isStart:t,isEnd:!1,position:"ancestor"}})},73451:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});n(6886);var o=n(2784),r=n(8443),i=n(79404),a=n.n(i),s=n(16587),l=n(67026),c=n(31209),d=n(28042),u=n(19313),p=n(83438),h=n(22185),m=n(76293),g=n(72599),b=n(78149),y=n(1231),f=n(73835),_=n(29022),v=n(92160);const w=(e,t)=>t.module.selectInitialFetchStatus(e),E=(e,t)=>t.module.selectTopFetchStatus(e),C=(e,t)=>{const n=t.module.selectTimeline(e);return!!n&&n.terminatedStatus.atTop},T=(e,t)=>t.location.state&&t.location.state.contextualClientEventInfo,S=(0,v.Z)().propsFromState((()=>({moduleInitialFetchStatus:w,moduleTopFetchStatus:E,isTimelineTerminatedAtTop:C,contextualClientEventInfo:T})));var P=n(76444);const Z=a().d35d74e4,I=e=>{switch(e){case f.Z.NOT_FOUND:return o.createElement(p.Z,null);case f.Z.NOT_ALLOWED:return o.createElement(l.Z,null);default:return(0,g.ZP)(`Unhandled timeline unavailable reason: ${e}`),null}},k=()=>o.createElement(p.Z,null);class x extends o.Component{constructor(...e){super(...e),this.state={replyDropdownSelection:h.Zq.relevant},this._dropdownSelectorEnabled=this.context.featureSwitches.isTrue("responsive_web_deamplification_replies_dropdown_selector_enabled"),this._isInitialFocusEntry=(e,t)=>{var n;const{focalTweetId:o,location:r}=this.props;return!!(null==(n=r.state)||!n.focusComposer)&&e&&e.content&&!!e.content.id&&e.content.id===o},this._changeDropdownState=e=>{this.setState({replyDropdownSelection:e})},this._getMemoizedPreprocessor=(0,s.Z)(((e,t,n,o,r,i,a)=>(0,P.Mu)({focalTweetId:r,contextTweetId:t,contextualClientEventInfo:n,socialContext:e,topicFollowPrompt:i,promotedContent:o,showOnlyRelevantReplies:a}))),this._getPreprocessor=()=>{const{contextTweetId:e,contextualClientEventInfo:t,focalTweetId:n,promotedContent:o,socialContext:r,topicFollowPrompt:i}=this.props,a=this._dropdownSelectorEnabled&&this.state.replyDropdownSelection===h.Zq.relevant;return this._getMemoizedPreprocessor(r,e,t,o,n,i,a)},this._getMemoizedEntryConfig=(0,s.Z)(((e,t,n,o,r)=>{const i=t&&e&&t===e;return(0,P.ZP)({changeDropdownState:this._changeDropdownState,isCurrentUserRootAuthor:!!i,replyDropdownSelection:o,rootTweetAuthorId:e,withFocalTweetMedia:n,withRuxInjections:r})})),this._getEntryConfig=()=>{var e;const t=this.props,n=null==(e=t.rootTweet)?void 0:e.user.id_str,o=this.context.loggedInUserId,r=t.withFocalTweetMedia,i=this.state.replyDropdownSelection,a=t.withRuxInjections;return this._getMemoizedEntryConfig(n,o,r,i,a)}}render(){const{apiErrorHandlerMap:e,fetchOptions:t,focalTweet:n,module:i,moduleInitialFetchStatus:a,moduleTopFetchStatus:s,onEntriesRendered:l}=this.props,c=(null==n?void 0:n.in_reply_to_status_id_str)&&a===b.Z.LOADING||s===b.Z.LOADING;return o.createElement(m.Z,{anchoring:d.Z,apiErrorHandlerMap:e,entryConfiguration:this._getEntryConfig(),fetchOptions:t,header:c?o.createElement(r.Z,null):void 0,isInitialFocusEntry:this._isInitialFocusEntry,module:i,nearStartProximityRatio:2,olderAtTop:!0,onEntriesRendered:l,preprocessEntryList:this._getPreprocessor(),prerollDisplayLocation:_.Nw.OTHER,previewEntries:this._previewEntries(),refreshControl:null,renderEmptyState:k,renderUnavailable:I,title:Z})}_previewEntries(){const{focalTweet:e}=this.props,t=(null==e?void 0:e.id_str)||"";return e?[y.Se({id:t,sortIndex:c.Z})]:void 0}}x.defaultProps={withFocalTweetMedia:!0},x.contextType=u.rC;const A=S(x)},44870:(e,t,n)=>{"use strict";n.d(t,{$:()=>g,C:()=>s});var o=n(79404),r=n.n(o),i=n(25479),a=n(65188);const s=Object.freeze({Pinnable:"Pinnable",Pinned:"Pinned",NotPinnable:"NotPinnable"}),l={headline:r().ae9488dc,label:r().i24ed0de,text:r().c02d5236},c={headline:r().e96a5962,label:r().ec04e6fc,text:r().e374d7b4},d={[s.NotPinnable]:void 0,[s.Pinnable]:l,[s.Pinned]:c},u={[s.NotPinnable]:"",[s.Pinnable]:r().j9aedfdc,[s.Pinned]:r().c034211a},p={[s.NotPinnable]:"",[s.Pinnable]:r().a842ef4e,[s.Pinned]:r().e7c58566},h={[s.NotPinnable]:"",[s.Pinnable]:r().a1d60e26,[s.Pinned]:r().e38fc3ac},m={[s.NotPinnable]:!1,[s.Pinnable]:!0,[s.Pinned]:!0};function g(e,t){var n;const{feedbackAction:o,feedbackEntry:r,feedbackKey:l,pinReply:c,scribe:g,scribeData:b,scribeNamespace:y,unpinReply:f}=t,_=(null==(n=o.richBehavior)?void 0:n.replyPinState)||s.NotPinnable,v=e=>{g({...y,action:"click",component:"pinned_reply",element:e},b)},w={feedbackKey:l,willScribe:!0,skipDefaultAction:!0},E=null!=(C=r)&&null!=(T=C.content)&&T.id&&(0,a.Z)(C.content.id)?C.content.id:null;var C,T;const S=(e=>!!m[e])(_);if(!E||!S||!e.isTrue("responsive_web_pinned_replies_enabled")||e.isTrue("responsive_web_lbm_v2_replies_enabled"))return{...w,excludeFromActionMenu:!0,text:""};const P=_===s.Pinnable?e=>(v("pin"),c(e)):e=>(v("unpin"),f(e)),Z=function(e,{addToast:t,gracefullyReloadTimeline:n,pinReply:o,unpinReply:r}){return({error:o,success:r})=>{!o&&r?(t({text:p[e]}),n()):t({text:h[e]})}}(_,t);return{...w,text:u[_],Icon:i.Z,feedbackKey:l,excludeFromActionMenu:!1,confirmation:{...d[_],onCancel:()=>{v("cancel_"+(_===s.Pinnable?"pin":"unpin"))}},onClick:()=>{P(E).then(Z).catch((e=>Z({error:e,success:!1})))}}}},15604:(e,t,n)=>{"use strict";n.d(t,{N:()=>_,w:()=>f});var o=n(64978),r=n(91922),i=n(53687),a=n(91737),s=n(42269),l=n(16866),c=n(86249),d=n(83882),u=n(73952),p=n(42203),h=n(49511),m=n(34124),g=n(78884);const b={[g.Z.FEEDBACK_CLOSE]:o.Z,[g.Z.FEEDBACK]:r.Z,[g.Z.FROWN]:i.Z,[g.Z.SMILE]:a.Z,[g.Z.MODERATION]:s.Z,[g.Z.TOPIC]:l.Z,[g.Z.TOPIC_CLOSE]:c.Z,[g.Z.FLAG]:d.Z,[g.Z.NO]:u.Z,[g.Z.SPEAKER]:p.Z,[g.Z.SPEAKER_OFF]:h.Z},y={[m.ZP.SeeFewer]:i.Z,[m.ZP.SeeMore]:a.Z,[m.ZP.DontLike]:i.Z},f=e=>{const{feedbackType:t,icon:n}=e;return n&&b[n]||y[t]},_=e=>e&&b[e.toUpperCase()]},23179:(e,t,n)=>{"use strict";n.d(t,{Z:()=>T});n(6886),n(36728),n(92215);var o=n(2784),r=n(66927),i=n(74428),a=n(1206),s=n(72599),l=n(52612),c=n(23803),d=n(19744),u=n(25686),p=n(73186),h=n(7333),m=n(72983);const g=e=>{const{fetchStatus:t,onRequestRetry:n}=e,[r,i]=o.useState(!1);return o.useEffect((()=>{const e=setTimeout((()=>i(!0)),1e3);return()=>{clearTimeout(e)}}),[i]),r||t===c.ZP.FAILED?o.createElement(m.Z,{fetchStatus:t,onRequestRetry:n,render:h.Z}):o.createElement(u.Z,{style:b.placeholder})},b=p.Z.create((e=>({placeholder:{height:50}}))),y=o.memo(g);var f=n(11946),_=n(93865),v=n(95034);const w={[l.no.Divider]:f.Z,[l.no.Tombstone]:_.Z},E=(e,t,n)=>`${e}-${t}-${null!=n&&n.loader?null==n?void 0:n.loaderKey:"handler"}`,C=(new WeakMap,new Map);class T{constructor(e,t){this._initialized=!1,this._subscriptionSet=new r.Z,this._configuration={...w,...e},this._handlerStatusMap=new Map;const n=(e,t)=>{const n=((e,t)=>{if(!t.loader)return;const n=C.get(e);return n?"function"==typeof n?n(t.loaderOptions||{}):n:void 0})(e,t)||t;this._handlerStatusMap.set(e,{handler:n.render?n:void 0,key:e,loader:n.loader?n:void 0,strategy:n.loader?n.strategy:void 0,status:n.render||n.splice||n.isOmitted?c.ZP.LOADED:c.ZP.NONE})};Object.keys(this._configuration).forEach((e=>{Object.keys(this._configuration[e].handlers).forEach((t=>{const o=this._configuration[e].handlers[t],r=E(e,t,o);n(r,o)}))}))}initialize(){this._initialized||(this._loadHandlers(this._getUnloadedHandlersByStrategy(v.C.Critical)),this._loadHandlers(this._getUnloadedHandlersByStrategy(v.C.Preload)),this._initialized=!0,this._subscriptionSet.notify())}getFetchStatus(){const e=this._filterHandlerInfoBy((({strategy:e})=>e===v.C.Critical));let t=!1;for(let n=0;n<e.length;n++){const{status:o}=e[n];if(o===c.ZP.FAILED)return c.ZP.FAILED;if(o===c.ZP.LOADING)return c.ZP.LOADING;o===c.ZP.NONE&&(t=!0)}return t?c.ZP.NONE:c.ZP.LOADED}static TEST_ONLY_clearLoadedHandlersCache(){C.clear()}getPartiallyLoadedConfiguration(){return(0,i.Z)(Object.keys(this._configuration),(e=>e),(e=>{const t=this._configuration[e],n=(0,i.Z)(Object.keys(t.handlers),(e=>e),(n=>{const r=E(e,n,t.handlers[n]),i=this._handlerStatusMap.get(r),a=(null==i?void 0:i.status)===c.ZP.LOADING||(null==i?void 0:i.status)===c.ZP.FAILED;return i&&i.loader&&a?(s=()=>{this._loadHandler(i)},l=i.status,d.lC({isLoadingPlaceholder:!0,render:()=>o.createElement(y,{fetchStatus:l,onRequestRetry:s})})):(null==i?void 0:i.handler)||(null==i?void 0:i.loader)||t.handlers[n];var s,l}));return{...t,handlers:n}}))}subscribe(e){return this._subscriptionSet.subscribe(e)}loadOnDemand(e){e.forEach((e=>{const{type:t}=e,n=this._configuration[t],o=n&&n.selectDisplayType(e),r=E(t,o,null==n?void 0:n.handlers[o]),i=this._handlerStatusMap.get(r);i&&!i.handler&&i.status!==c.ZP.LOADING&&i.loader&&this._loadHandler(i)}))}retryAll(){const e=this._filterHandlerInfoBy((({status:e})=>e===c.ZP.FAILED));this._loadHandlers(e)}_loadHandlers(e){e.map((e=>this._loadHandler(e)))}_loadHandler(e,t){const{handler:n,loader:o,status:r}=e;!n&&o&&r!==c.ZP.LOADING&&(e.status=c.ZP.LOADING,o.loader().then((({default:t})=>{e.status=c.ZP.LOADED,e.handler="function"==typeof t?t(o.loaderOptions||{}):t,C.set(e.key,t),this._subscriptionSet.notify()})).catch((n=>{if(e.status=c.ZP.FAILED,!t)return(0,s.ZP)(`Failed to load URT loader for ${e.key}`,{extra:{error:n}}),this._loadHandler(e,!0);(0,s.ZP)(`Failed to load URT loader for ${e.key} after auto-retry`,{extra:{error:n}}),this._subscriptionSet.notify()})))}_filterHandlerInfoBy(e){const t=[];return this._handlerStatusMap.forEach((n=>{e(n)&&t.push(n)})),t}_getUnloadedHandlersByStrategy(e){return this._filterHandlerInfoBy((({status:t,strategy:n})=>n===e&&(t===c.ZP.NONE||t===c.ZP.FAILED)))}}T.ssrEagerLoad=a.Z},29805:(e,t,n)=>{"use strict";n.d(t,{Z:()=>T});n(6886),n(36728);var o=n(2784),r=n(79404),i=n.n(r),a=n(35193),s=n(16587),l=n(72983),c=n(19313),d=n(72599),u=n(52612),p=n(67661),h=n(23803);const m={},g=({entry:e,feedbackKeys:t})=>({type:u.no.Tombstone,entryId:e.entryId,content:{dismissedEntry:e,feedbackKeys:t},conversationPosition:e.conversationPosition,conversationTreeMetadata:e.conversationTreeMetadata,sortIndex:e.sortIndex||"-1",itemMetadata:{}}),b=Object.values(u.no),y=({dismissedEntries:e,entries:t,handlerRegistry:n,pinnedEntry:o})=>{const r=new v,i=t=>{const o=n.getHandler(t),a=o&&(o.splice||o.render);if(o&&a){let n=o.divider||f;"function"==typeof n&&(n=n(t)),n.top&&r.addDividerFor(t,_.TOP);const a=e[t.entryId];if(a&&a.length)r.addEntry(g({entry:t,feedbackKeys:a}),o),r.getIncrementedPosition();else if(o.splice){const e=o.splice(t),n=r.getIncrementedPosition();e.forEach((e=>i({...e,position:n}))),r.resetPositionCursor()}else o.isEmpty?r.addEmptyEntry(t):(s=t.type,b.includes(s)?r.addEntry(t,o):r.addEntryWithPosition(t,o));n.bottom&&r.addDividerFor(t,_.BOTTOM)}var s};return o&&(i(o),r.addDividerFor(o,_.BOTTOM)),t.forEach(i),r.list},f={top:!1,bottom:!1},_={TOP:"top",BOTTOM:"bottom"};class v{constructor(){this._position=-1,this._cursor=-1,this.list=[],this._pendingDividerEntryId=null,this._pendingDividerOrientation=null,this._previousEntryHasBorder=void 0}addEntry(e,t){this._flushDivider(),this.list.push(e),this._previousEntryHasBorder=t.shouldDisplayBorder&&t.shouldDisplayBorder(e)}addEntryWithPosition(e,t){const n=void 0!==e.position?{...e,cursor:this.getIncrementedPositionCursor()}:{...e,position:this.getIncrementedPosition()};this.addEntry(n,t)}addEmptyEntry(e){this.list.push(e)}addDividerFor(e,t){this.list.length>0&&!this._pendingDividerEntryId&&this._needsDivider()&&(this._pendingDividerEntryId=e.entryId,this._pendingDividerOrientation=t)}getIncrementedPosition(){return this._position+=1,this._position}getIncrementedPositionCursor(){return this._cursor+=1,this._cursor}resetPositionCursor(){this._cursor=-1}_needsDivider(){return!this._previousEntryHasBorder}_flushDivider(){this._pendingDividerEntryId&&this._pendingDividerOrientation&&(this.list.push(this._newDivider(this._pendingDividerEntryId,this._pendingDividerOrientation)),this._pendingDividerEntryId=null,this._pendingDividerOrientation=null)}_newDivider(e,t){return(e=>({itemMetadata:{},sortIndex:"-1",type:u.no.Divider,entryId:e,content:m}))(`$divider-${t}-${e}`)}}class w{constructor(e){this.configuration=e,this._alreadyReported={}}supportsEntryType(e){return this.configuration.hasOwnProperty(e)}getDisplayType(e){const t=this.configuration[e.type];return t?t.selectDisplayType(e):(this._reportMissingEntryType(e.type),null)}getNeedsLoad(e){const t=this.getHandlerOrLoader(e);return!(!t||!t.loader)||!(!t||!t.isLoadingPlaceholder)}getHandlerOrLoader(e){const t=this.configuration[e.type];if(!t)return this._reportMissingEntryType(e.type),null;const n=t.selectDisplayType(e),o=t.handlers[n];return o||(this._reportMissingDisplayType(e.type,n),null)}getHandler(e){const t=this.getHandlerOrLoader(e);return t?t.loader?null:t:null}_reportMissingEntryType(e){this._alreadyReported[e]||(this._alreadyReported[e]={},(0,d.ZP)(`HandlerRegistry: No configuration for entryType=${e}`))}_reportMissingDisplayType(e,t){this._alreadyReported[e]||(this._alreadyReported[e]={}),this._alreadyReported[e][t]||(this._alreadyReported[e][t]=!0,(0,d.ZP)(`HandlerRegistry: No configuration for entryType=${e}, displayType=${t}`))}}var E=n(23179);const C=i().i9028824;class T extends o.Component{constructor(e,t){super(e,t),this._unmounted=!1,this._createAndSubscribeToHandlerRegistryManager=()=>{var e;const{entryConfiguration:t}=this.props;null==(e=this._handlerRegistryManagerSubscription)||e.unsubscribe(),this._handlerRegistryManager=new E.Z(t,this.context),this._handlerRegistryManagerSubscription=this._handlerRegistryManager.subscribe(this._handleConfigurationChanged),this._handlerRegistryManager.initialize(),this._handlerRegistryManager.loadOnDemand(this._getEntriesNeedingLoad())},this._handleConfigurationChanged=(0,a.Z)((()=>{if(!this._unmounted){this.setState({processedEntryConfiguration:this._handlerRegistryManager.getPartiallyLoadedConfiguration(),fetchStatus:this._handlerRegistryManager.getFetchStatus()});const e=this._getEntriesNeedingLoad();e.length&&this._handlerRegistryManager.loadOnDemand(e)}}),100),this._handleRetry=()=>{this._handlerRegistryManager.retryAll()},this._render=()=>{var e,t,n;const{children:o,dismissedEntries:r,entries:i,pinnedEntry:a,prepareEntriesPerformanceSpan:s,preprocessEntryList:l}=this.props;s&&(null==(e=performance)||null==e.mark||e.mark(`${s}-start`));const c=this._getMemoizedHandlerRegistry(this.state.processedEntryConfiguration),d=this._getMemoizedFinalEntries(c,r,i,a,l);this._pendingEntries||(this._pendingEntries=this._getEntriesNeedingLoad());const u=(null==(t=this._pendingEntries)?void 0:t.length)>0;return s&&(null==(n=performance)||null==n.measure||n.measure(`${s}-end`,`${s}-start`)),o(c,d,u)},this._getEntriesNeedingLoad=()=>{const{dismissedEntries:e,entries:t,pinnedEntry:n,preprocessEntryList:o}=this.props,r=this._handlerRegistryManager.getPartiallyLoadedConfiguration(),i=(({dismissedEntries:e,entries:t,handlerRegistry:n,pinnedEntry:o})=>{const r=new Set,i=[],a=e=>{const t=n.getHandlerOrLoader(e);if(t)if(t.splice)t.splice(e).forEach(a);else{if(t.render)return;t.loader&&(r.has(t)||(r.add(t),i.push(e)))}};return o&&a(o),t.forEach((t=>{a(t),t.type===u.ZP.TimelineModule&&t.content.displayType===p.u.VerticalGrid&&t.content.items.forEach(a);const n=e[t.entryId];n&&i.push(g({entry:t,feedbackKeys:n}))})),i})({dismissedEntries:e,handlerRegistry:new w(r),entries:o?o(t):t,pinnedEntry:n});return this._pendingEntries=i,i},this._getMemoizedFinalEntries=(0,s.Z)(((e,t,n,o,r)=>(({dismissedEntries:e,entries:t,handlerRegistry:n,pinnedEntry:o,preprocessEntryList:r})=>y({entries:r(t),handlerRegistry:n,dismissedEntries:e,pinnedEntry:o}))({handlerRegistry:e,entries:n,dismissedEntries:t,pinnedEntry:o,preprocessEntryList:r}))),this._getMemoizedHandlerRegistry=(0,s.Z)((e=>new w(e))),this._createAndSubscribeToHandlerRegistryManager(),this.state={processedEntryConfiguration:this._handlerRegistryManager.getPartiallyLoadedConfiguration(),fetchStatus:this._handlerRegistryManager.getFetchStatus()}}componentWillUnmount(){var e;null==(e=this._handlerRegistryManagerSubscription)||e.unsubscribe(),this._unmounted=!0}componentDidUpdate(e,t){const{dismissedEntries:n,entries:o,entryConfiguration:r}=this.props,{fetchStatus:i}=this.state;e.entryConfiguration!==r&&this._createAndSubscribeToHandlerRegistryManager(),t.fetchStatus!==i&&i===h.ZP.FAILED&&(0,d.ZP)("URT HandlerRegistryProvider: Failed to load critical handlers"),e.entries===o&&e.dismissedEntries===n||this._handlerRegistryManager.loadOnDemand(this._getEntriesNeedingLoad())}render(){const{fetchStatus:e}=this.state;return o.createElement(l.Z,{accessibilityLabel:C,fetchStatus:e,onRequestRetry:this._handleRetry,render:this._render})}}T.contextType=c.rC,T.defaultProps={preprocessEntryList:e=>e}},93512:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o=n(2784).createContext({impressionTracker:void 0})},19744:(e,t,n)=>{"use strict";n.d(t,{KM:()=>Ne,iH:()=>Be,ov:()=>ke,lC:()=>Fe,OZ:()=>Ae,ub:()=>He});var o=n(2784),r=n(1206),i=n(16742),a=n(7896),s=(n(6886),n(76984)),l=n.n(s),c=n(16587),d=n(32307),u=n(19313),p=n(65815),h=n(45855),m=n(52612),g=n(67502),b=n(25686),y=n(93512);class f extends o.Component{constructor(...e){super(...e),this._ref=o.createRef()}componentDidMount(){const{impressionTracker:e}=this.context;e&&e.observe(this._ref.current,this.props.entryId)}componentWillUnmount(){const{impressionTracker:e}=this.context;e&&e.unobserve(this._ref.current,this.props.entryId)}render(){return o.createElement(b.Z,{ref:this._ref},this.props.children)}}f.contextType=y.Z;const _=function(e){const t=g.canUseDOM&&window.IntersectionObserver,n=!(e.entryId.startsWith("impressionPlaceholder")||"newEntriesItem"===e.entryId);return t&&n?o.createElement(f,e):e.children};n(36728);var v=n(11469),w=n(23335),E=n(58343),C=n(72599),T=n(92160),S=n(21906),P=n(19854),Z=n(53392),I=n(30102);const k=Object.freeze({Pin:"pin",Unpin:"unpin"});function x(e){const t=function(e){return{REQUEST:`PINNED_REPLIES/${e}_REQUEST`,SUCCESS:`PINNED_REPLIES/${e}_SUCCESS`,FAILURE:`PINNED_REPLIES/${e}_FAILURE`}}(e);return n=>(o,r,{api:i})=>{const a=i.PinnedReplies[e],s=I.ZP.selectHydrated(r(),n),l=null==s?void 0:s.conversation_id_str;if(!s||!l){const t={tweetId:n,conversationId:l};return(0,C.ZP)(`Pinned Replies: ${e} called with insufficient data.`,{extra:t}),Promise.resolve({error:null,success:!1})}const c=(0,Z._O)(o,{params:{conversationId:l,tweetId:s.id_str},request:e=>a(e).then((({success:e})=>({error:null,success:e})))});return Promise.resolve().then((()=>c({actionTypes:t,context:`PINNED_REPLIES_${e}`}))).catch((e=>({error:e,success:!1})))}}const A=x(k.Pin),L=x(k.Unpin);var R=n(99629),D=n(73738),M=n(97758),O=n(57659);const B=[],F=(e,t)=>{var n,o;const{config:r,entry:i,module:a}=t,s=(null==(n=(r.feedbackEntrySelector?r.feedbackEntrySelector(i):i).itemMetadata)||null==(o=n.feedbackInfo)?void 0:o.feedbackKeys)||B,l=a.selectFeedbackActions(e);return(0,v.Z)(s,(e=>l[e]?e:((0,C.ZP)(`Feedback key has no backing action ${e}`),null)))},H=(e,t)=>{const n=t.module.selectFeedbackActions(e);return F(e,t).map((e=>n[e]))},N=(e,t)=>{let n;return H(e,t).forEach((t=>{var o;null!=(o=t.richBehavior)&&o.toggleMuteList&&(n=P.Z.select(e,t.richBehavior.toggleMuteList.listId))})),n},z=(e,t)=>{let n;return H(e,t).forEach((t=>{var o,r;null!=(o=t.richBehavior)&&o.toggleFollowTopicV2?n=D.Z.select(e,t.richBehavior.toggleFollowTopicV2.topicId):null!=(r=t.richBehavior)&&r.markNotInterestedTopic&&(n=D.Z.select(e,t.richBehavior.markNotInterestedTopic.topicId))})),n},U=(e,t)=>{const n=((e,t)=>{const n=H(e,t),o=[];return n.forEach((e=>{var t;null!=(t=e.richBehavior)&&t.blockUser&&o.push(e.richBehavior.blockUser.userId)})),o})(e,t);return O.ZP.selectMany(e,n)},V=(0,T.Z)().propsFromState((()=>({feedbackActions:(0,E.Z)(F,H,((e,t)=>t.map(((t,n)=>({...t,feedbackKey:e[n]}))))),richFeedbackList:N,richFeedbackTopic:z,richFeedbackUsers:(0,E.Z)(U,(e=>e))}))).propsFromActions((({module:e})=>({addToast:R.fz,applyFeedbackAction:e.applyFeedbackAction,block:O.ZP.block,createLocalApiErrorHandler:(0,w.createLocalApiErrorHandlerWithContextFactory)("FEEDBACK_ACTIONS_ENTRY_CONTAINER"),gracefullyReloadTimeline:()=>(0,M.Z)(e),pinReply:A,scribe:S.richScribeAction,setTopicNotInterested:D.Z.notInterested,toggleListMuting:P.Z.toggleMute,topicFollow:D.Z.follow,topicUnfollow:D.Z.unfollow,unblock:O.ZP.unblock,undoFeedbackAction:e.undoFeedbackAction,undoTopicNotInterested:D.Z.undoNotInterested,unpinReply:L}))).withAnalytics();var q=n(79404),G=n.n(q),j=n(34124),W=n(60917),K=n.n(W),$=n(86249),Q=n(16866),Y=n(29744),X=n(23021),J=n(19565),ee=n(17772),te=n(30841),ne=n(44870);const oe=G().e43138c5,re=G().be65f2e7,ie=G().a649d337,ae=G().e2f2b658,se=G().b51f7edf,le=G().gac366b3,ce=G().gf5e9ea6;var de=n(15604);const ue=G().gf5e9ea6,pe=(e,t,n)=>{const{details:o,entityToken:r,...i}=n||{},{action:a,component:s,element:l}=i;return{page:t.page,section:t.section,component:s||t.component,element:l||t.element||e,action:a||t.action||"click"}},he=e=>{let t;switch(e){case j.ZP.DontLike:t="not_interested_tweet";break;case j.ZP.RichBehavior:t="not_interested_topic";break;default:t="menu_item"}return{viewType:t}},me=(e,{addToast:t,block:n,createLocalApiErrorHandler:o,feedbackActions:r,feedbackEntry:i,feedbackMethods:a,gracefullyReloadTimeline:s,history:l,pinReply:c,richList:d,richTopic:u,richUsers:p,scribe:h,scribeData:g,scribeNamespace:b,setTopicNotInterested:y,toggleListMuting:f,topicFollow:_,topicUnfollow:v,unblock:w,undoTopicNotInterested:E,unpinReply:C})=>r.map((r=>{const{clientEventInfo:T,excludeFromActionMenu:S,feedbackKey:P,feedbackType:Z,prompt:I,subprompt:k}=r,x=((e,t)=>{var n;const{addToast:o,block:r,createLocalApiErrorHandler:i,feedbackAction:a,feedbackEntry:s,feedbackKey:l,history:c,richList:d,richTopic:u,richUsers:p,scribe:h,scribeData:g,scribeNamespace:b,setTopicNotInterested:y,toggleListMuting:f,topicFollow:_,topicUnfollow:v,unblock:w,undoTopicNotInterested:E}=t;if(!a.richBehavior)return K();if(a.richBehavior.replyPinState)return(0,ne.$)(e,t);if(null!=(n=a.richBehavior)&&n.blockUser){var C,T;const e=null==(C=a.richBehavior)||null==(T=C.blockUser)?void 0:T.userId,t=p.find((t=>t.id_str===e));if(!t||!e)return K();const n={user:t,source:X.SC.RICH_FEEDBACK,blockAction:()=>{r(e).catch(i(J.d)),h({...b,action:"block"},g)},blockSubtext:()=>a.subprompt,unblockAction:()=>{w(e).catch(i(ee.D)),h({...b,action:"unblock"},g)}};return{...(0,X.op)(n),feedbackKey:l,willScribe:!0}}if(a.richBehavior.reportList){const{listId:e}=a.richBehavior.reportList,t={pathname:`/i/report/list/${e}`,state:{clientReferer:window.location.pathname,scribeNamespace:b}};return{feedbackKey:l,onClick:()=>c.push(t)}}if(a.richBehavior.toggleMuteList&&d){const{id_str:e}=d;return{...(0,Y.Z)({hideSubtext:!0,list:d,toggleMute:f,scribe:e=>h({...b,...e},g)}),feedbackKey:l,onUndo:()=>{f(e,{mute:!1})},skipDefaultAction:!1,willScribe:!0}}if(a.richBehavior.toggleFollowTopicV2&&u){const{following:e,id:t,name:n}=u;return{text:e?re({name:n}):oe({name:n}),Icon:e?$.Z:Q.Z,onClick:()=>{(e?v(t):_(t)).then((()=>{o({text:e?se({name:n}):le({name:n})}),h({...b,element:e?"feedback_unfollow_topic":"feedback_follow_topic",action:"click"},g)}))},feedbackKey:l,skipDefaultAction:!0,willScribe:!0}}if(a.richBehavior.markNotInterestedTopic&&u){var S;const{id:e,name:t}=u,n=s.type===m.ZP.Topic&&(null==(S=s.content)?void 0:S.topicDisplayType)===te.M6.Pill,r=(0,j.DE)(a,s),i=(0,j.S4)(a,s),c=(0,j.C_)(a,s),d=r?"click":"not_interested",p=()=>{E(e),n&&h({...b,element:i,action:c},g)};return{text:ie({name:t}),Icon:$.Z,onClick:()=>{y(e).then((()=>{h({...b,element:i,action:d},g),n&&o({text:ae,action:{label:ce,onAction:p}})}))},onUndo:p,feedbackKey:l,skipDefaultAction:n,willScribe:!0}}return K()})(e,{addToast:t,block:n,createLocalApiErrorHandler:o,feedbackAction:r,feedbackEntry:i,feedbackKey:P,gracefullyReloadTimeline:s,history:l,pinReply:c,richList:d,richTopic:u,richUsers:p,scribe:h,scribeData:g,scribeNamespace:b,setTopicNotInterested:y,toggleListMuting:f,topicFollow:_,topicUnfollow:v,unblock:w,undoTopicNotInterested:E,unpinReply:C});return{behavioralEventContext:he(r.feedbackType),text:I||"",subText:k,Icon:(0,de.w)(r),excludeFromActionMenu:!!S,...x,onClick:()=>{var e,n;const o=Z!==j.ZP.SeeMore,s={entry:i,feedbackKeys:[P],isDismissibleFeedback:o},l=null==(e=i.itemMetadata)||null==(n=e.feedbackInfo)?void 0:n.clientEventInfo;let c={...T};l&&(c={...l,...T});const d=(0,j.S4)(r,i);if((d||c)&&!x.willScribe){const e=pe(d,b,c);h(e,g)}Z===j.ZP.RichBehavior&&(x.onClick&&x.onClick(),x.skipDefaultAction&&(s.isDismissibleFeedback=!1)),a.applyFeedbackAction(s).then((()=>{if(!o){let e;r.hasUndoAction&&(e={label:ue,onAction:()=>{a.undoFeedbackAction(s)}}),t({action:e,text:r.confirmation||""})}}))}}})),ge=o.createContext({entryId:"",feedbackItems:[],module:void 0}),be=e=>{const{children:t,entryId:n,feedbackItems:r,module:i}=e,a=o.useMemo((()=>({entryId:n,feedbackItems:r,module:i})),[n,r,i]);return o.createElement(ge.Provider,{value:a},t)},ye=o.memo(be),fe={};class _e extends o.Component{constructor(...e){super(...e),this._getMemoizedBehavioralEventContext=(0,c.Z)(((e,t,n,o)=>{let r={viewType:e,token:t};if(n&&o){const e={serversideContextId:n,serversideContextType:o};r={...r,clientEntity:e}}return r})),this._getMemoizedInjectedProps=(0,c.Z)(((e,t,n,o)=>e?e({entry:t,module:n,feedbackItems:o}):void 0)),this._getSynthesizedFeedbackItems=()=>{const{addToast:e,analytics:t,applyFeedbackAction:n,block:o,config:r,createLocalApiErrorHandler:i,entry:a,feedbackActions:s,gracefullyReloadTimeline:l,pinReply:c,richFeedbackList:d,richFeedbackTopic:u,richFeedbackUsers:p,scribe:h,setTopicNotInterested:m,toggleListMuting:g,topicFollow:b,topicUnfollow:y,unblock:f,undoFeedbackAction:_,undoTopicNotInterested:v,unpinReply:w}=this.props,E=r.feedbackEntrySelector?r.feedbackEntrySelector(a):a,C=t.contextualScribeNamespace,T=this._getEntryScribeData(a,r.getScribeDataItem),S=this._getEntryScribeNamespace(C,a,r.defaultScribeNamespace);return this._getMemoizedFeedbackItems(e,n,o,i,s,E,l,c,d,u,p,h,T,S,m,g,b,y,f,_,v,w)},this._getMemoizedFeedbackItems=(0,c.Z)(((e,t,n,o,r,i,a,s,l,c,d,u,p,h,m,g,b,y,f,_,v,w)=>me(this.context.featureSwitches,{addToast:e,block:n,createLocalApiErrorHandler:o,feedbackActions:r,feedbackEntry:i,feedbackMethods:{applyFeedbackAction:t,undoFeedbackAction:_},gracefullyReloadTimeline:a,history:this.context.history,pinReply:s,richList:l,richTopic:c,richUsers:d,scribe:u,scribeData:p,scribeNamespace:h,setTopicNotInterested:m,toggleListMuting:g,topicFollow:b,topicUnfollow:y,unblock:f,undoTopicNotInterested:v,unpinReply:w}))),this._getEntryScribeData=(0,c.Z)(((e,t)=>{const{analytics:n}=this.props,o=n.contextualScribeData;if(t){const n=t(e);return n?{...o,items:[...null!=o&&o.items?o.items:[],n]}:o}})),this._getEntryScribeNamespace=(0,c.Z)(((e,t,n)=>{const o=ve(t);return{...e,...o&&{...o}||n||fe}}))}shouldComponentUpdate(e){const t=this.props;return e.feedbackActions!==this.props.feedbackActions||e.richFeedbackUsers!==this.props.richFeedbackUsers||e.richFeedbackList!==this.props.richFeedbackList||e.richFeedbackTopic!==this.props.richFeedbackTopic||!(0,d.Z)(t.entry,e.entry)||!l()(t.config,e.config)}render(){const e=this._getBehavioralEventContext(),t=this._renderInner();return e?o.createElement(p.Z,{behavioralEventContext:e},t):t}useEntryTypeForBehavioralEvent(e){return![m.UZ.FollowSearch,m.UZ.FollowSearchAction,m.UZ.ScoreEventSummary,m.UZ.TimelineCursor,m.UZ.TopicFollowPrompt,m.no.ModuleFooter,m.no.ModuleHeader].includes(e)}_getBehavioralEventContext(){var e,t,n,o;const{config:r,entry:i}=this.props,a=r.getBehavioralEventContextOverride?r.getBehavioralEventContextOverride(i):{viewType:i.type,token:null==(e=i.itemMetadata)||null==(t=e.clientEventInfo)?void 0:t.entityToken};if(a&&this.useEntryTypeForBehavioralEvent(i.type))return this._getMemoizedBehavioralEventContext(a.viewType,null==a?void 0:a.token,null==a||null==(n=a.clientEntity)?void 0:n.serversideContextId,null==a||null==(o=a.clientEntity)?void 0:o.serversideContextType)}_renderInner(){const{analytics:e,config:t,entry:n,module:r,renderEntry:i}=this.props,s=e.contextualScribeNamespace,l=this._getSynthesizedFeedbackItems(),{component:c}=t,d=this._getInjectedProps();return o.createElement(h.nO,{data:this._getEntryScribeData(n,t.getScribeDataItem),namespace:this._getEntryScribeNamespace(s,n,t.defaultScribeNamespace)},o.createElement(_,{entryId:n.entryId},o.createElement(ye,{entryId:n.entryId,feedbackItems:l,module:r},o.createElement(c,(0,a.Z)({entry:n,feedbackItems:l,module:r,renderEntry:i},d)))))}_getInjectedProps(){const{config:e,entry:t,module:n}=this.props,{injectProps:o}=e,r=this._getSynthesizedFeedbackItems();return this._getMemoizedInjectedProps(o,t,n,r)}}_e.contextType=u.rC;const ve=e=>{const{itemMetadata:t}=e;if(t&&t.clientEventInfo){const{component:e,element:n}=t.clientEventInfo,o={};return e&&(o.component=e),n&&(o.element=n),o.component||o.element?o:null}return null},we=V(_e);var Ee=n(73186),Ce=n(74062),Te=n(86924),Se=n(12599);const Pe=Ee.Z.create((e=>({item:{display:"block"},bottomBorder:{display:"block",borderBottomColor:e.colors.borderColor,borderBottomWidth:1}}))),Ze=({children:e})=>e,Ie=(e,{isClickable:t,isEmpty:n,isFocusable:r,shouldDisplayBorder:i})=>{const a=(0,c.Z)(((e,t)=>({token:e,viewType:t})));return(n,s,l,c)=>{const d=e(n,s);if(!d)return null;const{moduleBehavioralEventView:u}=n,p=r(n)&&l?e=>l(!!e):()=>l&&l(!1),h=o.createElement(Ze,{displayType:c,entry:n},o.createElement(Ce.Z,{style:i(n)?Pe.bottomBorder:Pe.item,viewRef:p,withInteractiveStyling:t(n)},d)),m=null==u?void 0:u.entityToken,g=(null==u?void 0:u.viewType)||"",b=a(m,g),y=[Te.m.GridCarousel,Te.m.PagedCarousel,Te.m.Vertical];return u&&!y.includes(g)?o.createElement(Se.Z,{behavioralEventContext:b},h):h}},ke=({handlers:e,selectDisplayType:t})=>({selectDisplayType:t,handlers:e}),xe="defaultDisplayType",Ae=e=>({selectDisplayType:()=>xe,handlers:{[xe]:e}}),Le=r.Z,Re={top:!1,bottom:!1},De=(0,i.Z)(!1),Me=(0,i.Z)(!1),Oe=(0,i.Z)(!1),Be=({divider:e,shouldDisplayBorder:t=De,isClickable:n=Me,isFocusable:r=Oe,isEmpty:i,...a})=>{const s=e=>{var n,o;return!(null!=(n=e.parentModuleMetadata)&&null!=(o=n.verticalMetadata)&&o.suppressDividers)&&t(e)};return{getHandler:t=>{const l={...a,injectProps:t};return{render:Ie(((e,{module:t,renderEntry:n})=>o.createElement(we,{config:l,entry:e,module:t,renderEntry:n})),{isClickable:n,shouldDisplayBorder:s,isFocusable:r}),splice:void 0,divider:e||Re,getScribeDataItem:a.getScribeDataItem||Le,isEmpty:i,shouldDisplayBorder:s}}}},Fe=({render:e,divider:t,shouldDisplayBorder:n=De,isClickable:o=Me,getScribeDataItem:r=Le,isFocusable:i=Oe,isEmpty:a,isLoadingPlaceholder:s})=>({render:Ie(e,{shouldDisplayBorder:n,isClickable:o,isFocusable:i}),splice:void 0,divider:t||Re,getScribeDataItem:r,isEmpty:a,shouldDisplayBorder:n,isLoadingPlaceholder:s}),He=({splice:e,divider:t,getScribeDataItem:n=Le})=>({render:void 0,splice:e,divider:t||Re,getScribeDataItem:n}),Ne=(0,i.Z)({render:void 0,splice:void 0,divider:Re,getScribeDataItem:Le,isOmitted:!0})},94082:(e,t,n)=>{"use strict";n.d(t,{D:()=>i,R:()=>r});var o=n(2784);const r=o.createContext({prerollDisplayLocation:void 0}),i=({children:e,prerollDisplayLocation:t})=>{const n=o.useMemo((()=>({prerollDisplayLocation:t})),[t]);return o.createElement(r.Provider,{value:n},e)}},50099:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(30264),r=n(19744),i=(n(6886),n(95034));const a={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.GapHandler")]).then(n.bind(n,75484)),loaderKey:"defaultGapLoader",strategy:i.Z.OnDemand},s={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.GapHandler")]).then(n.bind(n,87082)),loaderKey:"showMoreGapLoader",strategy:i.Z.OnDemand},l=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.GapHandler")]).then(n.bind(n,94296)),loaderKey:"showMoreThreadsPromptGapLoader",loaderOptions:e,strategy:i.Z.OnDemand}),c=({withRuxInjections:e})=>{return r.ov({selectDisplayType:e=>e.content.cursorType,handlers:{[o.CursorType.Top]:r.KM(),[o.CursorType.Bottom]:r.KM(),[o.CursorType.Gap]:a,[o.CursorType.ShowMore]:s,[o.CursorType.ShowMoreThreads]:(t={withRuxInjections:!!e},{loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.GapHandler")]).then(n.bind(n,49101)),loaderKey:"showMoreThreadsGapLoader",loaderOptions:t,strategy:i.Z.OnDemand}),[o.CursorType.ShowMoreThreadsPrompt]:l({withRuxInjections:!!e})}});var t}},11946:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(19744);n(6886);const r={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.DividerHandler")]).then(n.bind(n,36097)),loaderKey:"dividerEntryLoader",strategy:n(95034).Z.Critical},i=o.OZ(r)},16564:(e,t,n)=>{"use strict";n.d(t,{L:()=>r,k:()=>i});n(6886);var o=n(95034);const r={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.TransparentLabelHandler")]).then(n.bind(n,60915)),loaderKey:"transparentLabelLoader",strategy:o.Z.OnDemand},i={loader:()=>n.e("ondemand.LabelHandler").then(n.bind(n,45081)),loaderKey:"defaultLabelLoader",strategy:o.Z.OnDemand}},84261:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(52630),r=n(19744),i=(n(6886),n(95034));const a=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~ondemand.EditPinned~ondemand.EventSummaryHandler~ondemand.ListHandler"),n.e("shared~ondemand.EditPinned~ondemand.ListHandler"),n.e("ondemand.ListHandler")]).then(n.bind(n,94661)),loaderKey:"listLoader",loaderOptions:e,strategy:i.Z.OnDemand}),s={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~ondemand.EditPinned~ondemand.EventSummaryHandler~ondemand.ListHandler"),n.e("shared~ondemand.EditPinned~ondemand.ListHandler"),n.e("ondemand.ListHandler")]).then(n.bind(n,24706)),loaderKey:"tileLoader",strategy:i.Z.OnDemand},l=({shouldDisplayPin:e=!1,withDescription:t=!0,withSubscribe:n=!1,...i})=>{const l={shouldDisplayPin:e,withSubscribe:n,withDescription:t,...i};return r.ov({selectDisplayType:e=>e.content.displayType||o.P.List,handlers:{[o.P.ListTile]:s,[o.P.List]:a({...l}),[o.P.ListWithSubscribe]:a({...l,withSubscribe:!0}),[o.P.ListWithPin]:a({...l,shouldDisplayPin:!0})}})}},10897:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(19744);n(6886);const r={loader:()=>Promise.all([n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.selfThreadTweetComposerHandler")]).then(n.bind(n,55002)),loaderKey:"defaultSelfThreadTweetComposerLoader",strategy:n(95034).Z.OnDemand},i=o.OZ(r)},80017:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(19744);n(6886);const r={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.ThreadHeaderHandler")]).then(n.bind(n,46687)),loaderKey:"threadHeaderEntryLoader",strategy:n(95034).Z.OnDemand},i=o.OZ(r)},48491:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(19744);n(6886);const r={loader:()=>n.e("ondemand.CarouselTimelineHandler").then(n.bind(n,15606)),loaderKey:"defaultCarouselTimelineLoader",strategy:n(95034).Z.OnDemand},i=o.OZ(r)},45321:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(19744);n(6886);const r={loader:()=>n.e("ondemand.ConversationGapHandler").then(n.bind(n,92647)),loaderKey:"conversationGapLoader",strategy:n(95034).Z.OnDemand},i=o.OZ(r)},95858:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(19744),r=(n(6886),n(95034));const i=e=>({loader:()=>n.e("ondemand.FooterLoader").then(n.bind(n,39935)),loaderOptions:e,loaderKey:"defaultModuleFooterLoader",strategy:r.Z.OnDemand}),a=({isInSidebar:e})=>o.OZ(i({isInSidebar:e}))},91420:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(19744);n(6886);const r={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.ModuleHeader")]).then(n.bind(n,17707)),loaderKey:"defaultModuleHeaderLoader",strategy:n(95034).Z.OnDemand},i=o.OZ(r)},75939:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(19744);n(6886);const r={loader:()=>n.e("ondemand.ImpressionPlaceholderHandler").then(n.bind(n,22903)),loaderKey:"defaultImpressionPlaceholderLoader",strategy:n(95034).Z.OnDemand},i=o.OZ(r)},56746:(e,t,n)=>{"use strict";n.d(t,{Z:()=>G,I:()=>q});var o=n(86924),r=n(52612),i=n(67661),a=n(19744);n(36728);const s=({displayType:e,entryId:t,itemMetadata:n,items:o,moduleBehavioralEventView:i,shouldCountTowardsAdSpacing:a,sortIndex:s})=>({type:r.no.ModuleCarouselTimeline,entryId:t,sortIndex:s,content:{displayType:e,items:o},shouldCountTowardsAdSpacing:a,itemMetadata:n,moduleBehavioralEventView:i}),l=(e,t,n,o,i)=>({type:r.no.ModuleFooter,entryId:`footer-${e}`,content:t,itemMetadata:n,sortIndex:o,moduleBehavioralEventView:i}),c=(e,t,n,o,i)=>({type:r.no.ModuleHeader,entryId:`header-${e}`,content:{header:t,timelineModule:n},itemMetadata:n.itemMetadata||{},sortIndex:o,moduleBehavioralEventView:i}),d=e=>t=>{var n;const{content:{displayType:o,footer:i,header:a,items:d},entryId:u,itemMetadata:p,shouldCountTowardsAdSpacing:h,sortIndex:m}=t,g=[],b={viewType:o,entityToken:null==(n=p.clientEventInfo)?void 0:n.entityToken};return a&&g.push(c(u,a,t,m,b)),1===d.length&&d[0].type===r.ZP.Message?g.push({...d[0],moduleBehavioralEventView:b}):g.push(s({entryId:u,itemMetadata:p,items:d,sortIndex:m,moduleBehavioralEventView:b,displayType:e,shouldCountTowardsAdSpacing:h})),i&&g.push(l(u,i,p,m,b)),g},u=e=>a.ub({splice:d(e),divider:{top:!0,bottom:!0}});var p=n(48491),h=n(45321),m=n(95858),g=n(91420),b=n(75939),y=n(60427),f=(n(1951),n(17500));n(6886),n(72599);class _{constructor(e){var t,n;this.depth=1,this.isAnchorChild=!1,this.hasAnchorChild=!1,this.isIndented=!1,this.entry=e,this.parent=null,this.children=[],this.id=this.entry.entryId,this.conversationTreeMetadata={ancestorConnector:null,depth:this.depth,descendantConnector:!1,indents:[]},this.isAnchorChild=!(null==(t=e.treeDisplay)||!t.isAnchorChild),this.isIndented=!(null==(n=e.treeDisplay)||!n.indentFromParent)}addChild(e){let t;this.hasAnchorChild=this.hasAnchorChild||e.isAnchorChild,e.isIndented&&this.children.forEach(((e,n)=>{void 0!==t||e.isIndented||(t=n)})),void 0===t?this.children.push(e):this.children.splice(t,0,e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1)}addParent(e){this.depth=e.depth+1,this.parent=e}}class v{constructor({entries:e,isRootEntryPresent:t,maxIndent:n,selectedTweetId:o}){this._roots=[],this._lookup={},this._maxIndent=n,this._isRootEntryPresent=t,e.forEach(((e,t)=>{this._lookup[e.entryId]=new _(e)})),e.forEach(((n,i)=>{const a=(e=>e.treeDisplay&&e.treeDisplay.parentModuleItemEntryId)(n);if(a){const i=this._lookup[a];if(!i)return void this._roots.push(this._lookup[n.entryId]);const s=this._lookup[n.entryId],l=!(e=>e.type===r.ZP.TimelineCursor&&("ShowMoreThreads"===e.content.cursorType||"ShowMoreThreadsPrompt"===e.content.cursorType))(s.entry)||o&&((e,t)=>e.type===r.ZP.Tweet&&e.content.id===t)(i.entry,o)||t&&a===e[0].entryId;l&&(s.addParent(i),i.addChild(s))}else this._roots.push(this._lookup[n.entryId])}))}toArray(){const e=[];return this._roots.forEach((t=>E(t,(n=>{w(n,this._isRootEntryPresent?t:void 0,this._maxIndent),(n.conversationTreeMetadata.indents.length<this._maxIndent||n.conversationTreeMetadata.indents.length===this._maxIndent&&n.parent&&n.parent.conversationTreeMetadata.indents.length<n.conversationTreeMetadata.indents.length)&&e.push(n)})))),e}}const w=(e,t,n)=>{const{entry:o,parent:r}=e,{treeDisplay:i}=o;if(r){if(i){const n=r.children[r.children.length-1]!==e?"line":"gap",o=r.id,{indentFromParent:a,isAnchorChild:s}=i;let l=!0;l="boolean"==typeof a?a:r===t?r.hasAnchorChild:r.children.length>1;const{conversationTreeMetadata:c}=e;c.indents=[...r.conversationTreeMetadata.indents],l?(c.indents.push({parentId:o,displayType:n}),c.ancestorConnector="side"):c.ancestorConnector=r===t?void 0===s?r.hasAnchorChild?"top":null:s?"top":null:"top",e===r.children[0]&&(r.conversationTreeMetadata.descendantConnector=!!c.ancestorConnector),e.conversationTreeMetadata.depth=e.depth}}else if(e!==t){const{conversationTreeMetadata:t,isAnchorChild:n}=e;n&&(t.ancestorConnector="top")}},E=(e,t)=>{t(e),e.children.forEach((e=>E(e,t)))};var C=n(60917),T=n.n(C);const S=({itemMetadata:e,moduleBehavioralEventView:t,moduleEntryId:n,shouldCountTowardsAdSpacing:o,sortIndex:i})=>({type:r.no.ModuleImpressionPlaceholder,entryId:`impressionPlaceholder-${n}`,content:T(),itemMetadata:e,shouldCountTowardsAdSpacing:o,sortIndex:i,moduleBehavioralEventView:t}),P=a.ub({splice:(e,t={})=>{const{content:{items:n},entryId:o,itemMetadata:{clientEventInfo:r,moduleMetadata:i},shouldCountTowardsAdSpacing:a,sortIndex:s}=e,l=i&&i.conversationMetadata&&i.conversationMetadata.allTweetIds||[],c=n.reduceRight(((e,n,o)=>((e.length>0||!t[n.entryId])&&e.unshift(n),e)),[]),d=[];if(0===c.length)return d;d.push(S({moduleEntryId:o,itemMetadata:{clientEventInfo:r},shouldCountTowardsAdSpacing:a,sortIndex:s}));const u=c.some((e=>e.treeDisplay));return d.concat(u?I(c,s):Z(c,l,e))}}),Z=(e,t,n)=>{const o=[],i=n.sortIndex;return e.forEach(((a,s)=>{const l=0===s,c=l?void 0:e[s-1];let d=!1;c&&c.type===r.ZP.Tweet&&a.type===r.ZP.Tweet&&(d=k(c,a,t),d&&o.push(R(n,t,c.content.id)));const u={isStart:l,isEnd:s===e.length-1,position:"descendant",showReplyContext:l||d},p=a.type===r.ZP.Tweet?A({item:a,conversationPosition:u,conversationTreeMetadata:void 0,isFirst:l,sortIndex:i}):x({item:a,conversationPosition:u,sortIndex:i});o.push(p)})),o},I=(e,t)=>{const n=new v({entries:e.map((e=>(e.treeDisplay&&(e.treeDisplay.isAnchorChild=!0),e))),maxIndent:1/0,selectedTweetId:void 0,isRootEntryPresent:!0}),o=[];return n.toArray().forEach(((n,i)=>{const{conversationTreeMetadata:a,entry:s}=n,l=0===i,c={...a,showSmallAvatars:!1},d={isStart:!1,isEnd:i===e.length-1},u=s.type===r.ZP.Tweet?A({isFirst:l,item:s,conversationPosition:d,conversationTreeMetadata:c,sortIndex:t}):x({item:s,conversationPosition:d,conversationTreeMetadata:c,sortIndex:t});o.push(u)})),o},k=(e,t,n)=>{const o=(0,f.Z)(n,(t=>t===e.content.id)),r=o>=0&&o<n.length-1&&n[o+1];return!!r&&r!==t.content.id},x=({conversationPosition:e,conversationTreeMetadata:t,item:n,sortIndex:o})=>({...n,conversationPosition:e,conversationTreeMetadata:t,sortIndex:o}),A=({conversationPosition:e,conversationTreeMetadata:t,isFirst:n,item:o,sortIndex:r})=>{const{socialContext:i,...a}=o.content;return{...o,conversationPosition:e,conversationTreeMetadata:t,content:{...a,...i&&n?{socialContext:i}:null},sortIndex:r}},L={},R=(e,t,n)=>({entryId:`${e.entryId}-gap-${n}`,type:r.no.ConversationModuleGap,content:{allTweetIds:t,focalTweetId:n},itemMetadata:L,sortIndex:e.sortIndex}),D=P;var M=n(20463);const O=(e,t,n,o,i)=>({type:r.no.ModuleShowMore,entryId:`showMore-${e}`,content:{showMore:t,timelineModule:n},itemMetadata:n.itemMetadata||{},sortIndex:o,moduleBehavioralEventView:i}),B=(e,t,n,o,i)=>({type:r.no.ModuleVerticalGridList,sortIndex:t,entryId:`verticalGridList-${e}`,content:{accessibilityOwns:n},itemMetadata:o,moduleBehavioralEventView:i}),F=(e,t,n,o,i,a,s,l,c)=>({type:r.no.ModuleVerticalGridTimelineRow,entryId:`verticalGridRow-${l}-${e}`,sortIndex:o,content:{items:n,entryToFocus:a,moduleEntryId:e,numColumns:s,rowIndex:l,shouldDisplayBorder:c},itemMetadata:t,moduleBehavioralEventView:i}),H=({isWide:e})=>a.ub({splice:t=>{var n;const{content:{displayType:o,footer:r,header:i,items:a,numItemsShown:s,showMore:d},entryId:u,itemMetadata:p,shouldCountTowardsAdSpacing:h,sortIndex:m}=t,g=[],b={viewType:o,entityToken:null==(n=p.clientEventInfo)?void 0:n.entityToken};g.push(S({moduleEntryId:u,itemMetadata:t.itemMetadata,moduleBehavioralEventView:b,shouldCountTowardsAdSpacing:h,sortIndex:m})),i&&g.push(c(u,i,t,m,b));const y=e?3:2,f=s||(null==d?void 0:d.initialItemsCount)||a.length;let _="";for(let e=0;e<f;e++)_+=`verticalGridItem-${e}-${u} `;const v=!!d&&f<a.length;g.push(B(u,m,_,p,b));for(let e=0;e<f;e+=y){const t=e/y,n=a.slice(e,Math.min(f,e+y)),o=v&&e+y>=f;g.push(F(u,p,n,m,b,null==d?void 0:d.entryToFocus,y,t,o))}return d&&v&&g.push(O(u,d,t,m,b)),r&&g.push(l(u,r,t.itemMetadata,m,b)),g},divider:{top:!0,bottom:!0}});var N=n(25525),z=n(28412);const U=a.ub({splice:e=>{var t;const{content:{displayType:n,footer:o,header:r,items:i},entryId:a,itemMetadata:s,shouldCountTowardsAdSpacing:d,sortIndex:u}=e,p=[],h={viewType:n,entityToken:null==(t=s.clientEventInfo)?void 0:t.entityToken};return p.push(S({moduleEntryId:a,itemMetadata:e.itemMetadata,shouldCountTowardsAdSpacing:d,sortIndex:u,moduleBehavioralEventView:h})),r&&p.push(c(a,r,e,u,h)),p.push(...i.map((e=>({...e,sortIndex:u,moduleBehavioralEventView:h,parentModuleMetadata:(0,z.Z)({},s.moduleMetadata)})))),o&&p.push(l(a,o,e.itemMetadata,u,h)),p},divider:e=>{var t,n;return{top:!(null!=(t=e.itemMetadata.moduleMetadata)&&null!=(n=t.verticalMetadata)&&n.suppressDividers),bottom:!0}}}),V=U,q=({isWide:e=!1})=>a.ov({selectDisplayType:e=>e.content.displayType,handlers:{[i.u.Carousel]:u(o.m.Carousel),[i.u.GridCarousel]:u(o.m.GridCarousel),[i.u.PagedCarousel]:u(o.m.PagedCarousel),[i.u.Vertical]:V,[i.u.VerticalConversation]:D,[i.u.VerticalGrid]:H({isWide:e})}}),G=({isInSidebar:e=!1,isWide:t=!1}={})=>({[r.ZP.TimelineModule]:q({isWide:t}),[r.no.ModuleImpressionPlaceholder]:b.Z,[r.no.ModuleHeader]:g.Z,[r.no.ModuleFooter]:(0,m.Z)({isInSidebar:e}),[r.no.ModuleShowMore]:(0,y.Z)({isInSidebar:e}),[r.no.ConversationModuleGap]:h.Z,[r.no.ModuleCarouselTimeline]:p.Z,[r.no.ModuleVerticalGridList]:M.Z,[r.no.ModuleVerticalGridTimelineRow]:N.Z})},60427:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(19744),r=(n(6886),n(95034));const i=e=>({loader:()=>n.e("ondemand.ShowMoreHandler").then(n.bind(n,8012)),loaderOptions:e,loaderKey:"defaultModuleShowMoreLoader",strategy:r.Z.OnDemand}),a=({isInSidebar:e})=>o.OZ(i({isInSidebar:e}))},20463:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(19744);n(6886);const r={loader:()=>n.e("ondemand.VerticalGridListHandler").then(n.bind(n,4155)),loaderKey:"defaultVerticalGridListLoader",strategy:n(95034).Z.OnDemand},i=o.OZ(r)},25525:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(19744);n(6886);const r={loader:()=>n.e("ondemand.VerticalGridRowHandler").then(n.bind(n,14472)),loaderKey:"defaultVerticalGridRowLoader",strategy:n(95034).Z.OnDemand},i=o.OZ(r)},59063:(e,t,n)=>{"use strict";n.d(t,{ZU:()=>i,_n:()=>r,cm:()=>a});n(6886);var o=n(95034);const r=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("shared~loader.AudioDock~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceReport~bundle.Birdw"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.DirectMessages~bundle.DM"),n.e("shared~bundle.Birdwatch~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("shared~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("ondemand.inlineTombstoneHandler")]).then(n.bind(n,98591)),loaderOptions:e,loaderKey:"inlineTombstoneLoader",strategy:o.Z.OnDemand}),i={loader:()=>n.e("ondemand.tweetUnavailableTombstoneHandler").then(n.bind(n,32455)),loaderKey:"tweetUnavailableTombstoneLoader",strategy:o.Z.OnDemand},a={loader:()=>n.e("ondemand.disconnectedRepliesTombstoneHandler").then(n.bind(n,58107)),loaderKey:"disconnectedRepliesTombstoneLoader",strategy:o.Z.OnDemand}},93865:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(19744);n(6886);const r={loader:()=>n.e("ondemand.TombstonedEntryHandler").then(n.bind(n,85661)),loaderKey:"tombstonedEntryLoader",strategy:n(95034).Z.OnDemand},i=o.OZ(r)},69933:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(37985),r=n(19744),i=n(76831);const a=({allowDownvote:e=!1,bookmarkFolderId:t,dismissable:n=!1,displayBlocked:a,hideConversationControlsEducationText:s=!1,hideExclusivityInfoEducationTextInReplies:l=!1,hideHighlightedUserLabel:c=!1,hideTrustedFriendsEducationTextInReplies:d=!1,shouldSelfThreadIncludeAvatar:u=!1,shouldStoreTypeaheadItem:p,showWithheldBannerOnMyTweets:h=!0,withActionsDisabled:m=!1,withMuteConversation:g=!1,withRemoveFromBookmarks:b=!1,withSelfThread:y=!0,withUserPresence:f=!1})=>r.ov({selectDisplayType:e=>e.content.displayType,handlers:{[o.Z.Tweet]:(0,i.Cw)({allowDownvote:e,bookmarkFolderId:t,dismissable:n,displayBlocked:a,hideConversationControlsEducationText:s,hideExclusivityInfoEducationTextInReplies:l,hideTrustedFriendsEducationTextInReplies:d,shouldSelfThreadIncludeAvatar:u,shouldStoreTypeaheadItem:p,showWithheldBannerOnMyTweets:h,withMuteConversation:g,withRemoveFromBookmarks:b,withSelfThread:y,withUserPresence:f}),[o.Z.EmphasizedPromotedTweet]:(0,i.Cw)({displayBlocked:a,dismissable:n,divider:{bottom:!1,top:!1},hideConversationControlsEducationText:s,hideExclusivityInfoEducationTextInReplies:l,hideTrustedFriendsEducationTextInReplies:d}),[o.Z.MomentTimelineTweet]:(0,i.Cw)({displayBlocked:a,dismissable:n,hideConversationControlsEducationText:s,hideExclusivityInfoEducationTextInReplies:l,hideTrustedFriendsEducationTextInReplies:d,shouldSelfThreadIncludeAvatar:u,showWithheldBannerOnMyTweets:h,withActionsDisabled:m,withRemoveFromBookmarks:b,withSelfThread:y,divider:{bottom:!1,top:!1}}),[o.Z.SelfThread]:(0,i.Cw)({displayBlocked:a,dismissable:n,hideConversationControlsEducationText:s,hideExclusivityInfoEducationTextInReplies:l,hideTrustedFriendsEducationTextInReplies:d,shouldStoreTypeaheadItem:p,shouldSelfThreadIncludeAvatar:u,withMuteConversation:g,withSelfThread:y,withUserPresence:f}),[o.Z.CondensedTweet]:(0,i.TK)({}),[o.Z.Media]:(0,i.yA)({})}})},76831:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>a,Cw:()=>r,TK:()=>s,d2:()=>c,g6:()=>i,yA:()=>l});n(6886);var o=n(95034);const r=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("shared~loader.AudioDock~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceReport~bundle.Birdw"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.DirectMessages~bundle.DM"),n.e("shared~bundle.Birdwatch~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("shared~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("ondemand.tweetHandler")]).then(n.bind(n,10866)),loaderOptions:e,loaderKey:"defaultTweetLoader",strategy:o.Z.Critical}),i=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("shared~loader.AudioDock~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceReport~bundle.Birdw"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.DirectMessages~bundle.DM"),n.e("shared~bundle.Birdwatch~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("shared~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("ondemand.tweetHandler")]).then(n.bind(n,99093)),loaderOptions:e,loaderKey:"tweetDetailLoader",strategy:o.Z.Critical}),a=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("shared~loader.AudioDock~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceReport~bundle.Birdw"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.DirectMessages~bundle.DM"),n.e("shared~bundle.Birdwatch~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("shared~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("ondemand.tweetHandler")]).then(n.bind(n,94126)),loaderOptions:e,loaderKey:"quoteTweetLoader",strategy:o.Z.Critical}),s=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("shared~loader.AudioDock~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceReport~bundle.Birdw"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.DirectMessages~bundle.DM"),n.e("shared~bundle.Birdwatch~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("shared~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("ondemand.tweetHandler")]).then(n.bind(n,96750)),loaderOptions:e,loaderKey:"carouselQuoteTweetLoader",strategy:o.Z.Critical}),l=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("shared~loader.AudioDock~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceReport~bundle.Birdw"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.DirectMessages~bundle.DM"),n.e("shared~bundle.Birdwatch~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("shared~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("ondemand.tweetHandler")]).then(n.bind(n,49482)),loaderOptions:e,loaderKey:"carouselMediaTweetLoader",strategy:o.Z.Critical}),c=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("shared~loader.AudioDock~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceReport~bundle.Birdw"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.DirectMessages~bundle.DM"),n.e("shared~bundle.Birdwatch~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("shared~ondemand.inlineTombstoneHandler~ondemand.tweetHandler"),n.e("ondemand.tweetHandler")]).then(n.bind(n,88491)),loaderOptions:e,loaderKey:"selectableTweetLoader",strategy:o.Z.Critical})},71743:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});n(2784);var o=n(34590),r=n(19744),i=(n(6886),n(95034));const a=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.UserHandler")]).then(n.bind(n,86742)),loaderKey:"defaultUserLoader",loaderOptions:e,strategy:i.Z.OnDemand}),s=({cellClickable:e,decoration:t,onClick:n,shouldScribeImpression:i,shouldScribeProfileClick:s,shouldStoreTypeaheadItem:l,withLink:c})=>r.ov({selectDisplayType:e=>e.content.displayType,handlers:{[o.Z.User]:a({decoration:t,displayMode:o.Z.UserDetailed,withLink:c,cellClickable:e,shouldScribeProfileClick:s,shouldScribeImpression:i,onClick:n,shouldStoreTypeaheadItem:l}),[o.Z.ProfileCard]:a({decoration:t}),[o.Z.UserCompact]:a({decoration:t,displayMode:o.Z.UserCompact,withLink:c,cellClickable:e,shouldScribeProfileClick:s,onClick:n}),[o.Z.UserConcise]:a({decoration:t,displayMode:o.Z.UserConcise,withLink:c,cellClickable:e,shouldScribeProfileClick:s,onClick:n}),[o.Z.UserDetailed]:a({decoration:t,displayMode:o.Z.UserDetailed,withLink:c,cellClickable:e,shouldScribeProfileClick:s,onClick:n,shouldStoreTypeaheadItem:l})}})},76293:(e,t,n)=>{"use strict";n.d(t,{Z:()=>me});var o=n(7896),r=(n(6886),n(36728),n(2784)),i=n(26499),a=n(8352),s=n(79404),l=n.n(s),c=n(16587),d=n(1206),u=n(72983),p=n(82084),h=n(31209),m=n(11429),g=n(72985),b=n(15579),y=n(76275),f=n(33988),_=n(19661),v=n(30264),w=n(52612),E=n(76687),C=n(23803),T=n(19313),S=n(23335),P=n(78149),Z=n(92160),I=n(21906),k=n(24142),x=n(74094),A=n(67935),L=n(85699);const R=[],D=(e,{module:t})=>t.selectEntries(e)||R,M=(e,{previewEntries:t})=>t||R,O=(e,{module:t})=>t.selectInitialFetchStatus(e)||P.Z.LOADING,B=(e,{module:t})=>t.selectBottomFetchStatus(e),F=(e,{module:t})=>t.selectTopFetchStatus(e),H=(e,{module:t})=>t.selectCanRefresh(e),N=(e,{module:t})=>t.timelineId,z=(e,{module:t})=>t.selectUnavailableReason(e),U=(e,{module:t})=>t.selectDismissedEntries(e),V=(e,{module:t})=>t.selectPinnedEntry(e),q=(e,{module:t})=>t.selectAlert(e),G=(e,{module:t})=>t.selectActiveCover(e),j=(e,{module:t})=>!!t.selectInitialFetchStatus(e),W=(e,{module:t,newTweetsPillMode:n})=>n===L.Q.CLIENT?t.selectTopUnreadCount(e):0,K=(e,{module:t,pollingIntervalMsOverride:n})=>n||t.selectPollingIntervalMs(e),$=(e,{module:t})=>t.selectDroppedAds(e),Q=(e,{module:t})=>t.selectHasHoistedAnEntry(e),Y=(e,{module:t})=>t.selectNewTweetsBar(e),X=(e,{module:t})=>t.perfKey,J=(0,Z.Z)().propsFromState((()=>({activeCover:G,alert:q,bottomFetchStatus:B,canRefresh:H,dismissedEntries:U,droppedAds:$,entries:D,initialFetchStatus:O,isRestrictedSession:A._S,newTweetsBarContent:Y,perfKey:X,pinnedEntry:V,pollingIntervalMs:K,previewEntries:M,timelineExist:j,timelineId:N,topFetchStatus:F,topUnseenCount:W,unavailableReason:z,wasAtleastOneEntryHoisted:Q}))).adjustStateProps((({bottomFetchStatus:e,entries:t,initialFetchStatus:n,previewEntries:o,unavailableReason:r,...i})=>{const a=n===P.Z.FAILED&&r,s=n!==P.Z.LOADED&&!a&&o.length>0;return{bottomFetchStatus:s?n:e,entries:s?o:t,initialFetchStatus:s?P.Z.LOADED:n,shouldFetchInitialOnBottomRetry:s,unavailableReason:r,...i}})).propsFromActions((({module:e})=>({applyNewTweetsBarInstructions:e.applyNewTweetsBarInstructions,applyReactionInstructions:e.applyReactionInstructions,clearActiveCover:e.clearActiveCover,clearDroppedAds:e.clearDroppedAds,createLocalApiErrorHandler:(0,S.createLocalApiErrorHandlerWithContextFactory)("RICH_TIMELINE"),fetchBottom:e.fetchBottom,fetchInitial:e.fetchInitial,fetchInitialOrTop:e.fetchInitialOrTop,markAllRead:e.markTopEntrySeen,processCallback:e.processCallback,removeAlert:e.removeAlert,richScribeAction:I.richScribeAction,updateInstreamVideoEntries:x.C,updateVoiceEntries:k.Be}))).withAnalytics();var ee=n(94082),te=(n(23179),n(29805)),ne=n(7267),oe=n(17464),re=n(24433);let ie;const ae=(0,Z.Z)().propsFromState((()=>({guestSegment:A.Ph,isLoggedIn:A.Qb}))).propsFromActions((()=>({updateSettings:re.VP})))((({guestSegment:e,isLoggedIn:t,timelineId:n,updateSettings:o})=>{const{featureSwitches:i}=r.useContext(T.rC),a=(0,ne.k6)(),s=(0,ne.TH)(),[l,c]=r.useState(!1);r.useEffect((()=>{const r=i.getValueWithoutScribeImpression("responsive_web_logged_out_gating_non_impressing_member_segments");let a=!1;if(!t&&e&&Array.isArray(r)&&r.indexOf(e)>-1){const t=i.getArrayValue("responsive_web_logged_out_gating_aggressive_segments").includes(e),o=t&&!ie;ie=ie||n;const r=i.getArrayValue("responsive_web_logged_out_gating_less_aggressive_segments").includes(e),s=n!==ie&&(t||r);a=o||s}c(a),a&&o({loginPromptLastShown:Date.now()})}),[i,e,t,n,o]);const d=()=>{var e,t;const o=!(null==s||null==(e=s.state)||!e.fromApp||null!=s&&null!=(t=s.state)&&t.usedFallback);ie!==n&&o?a.goBack():c(!1)};if(l){const e=n!==ie;return r.createElement(oe.ZP,{allowBackNavigation:!0,isFullHeightOnMobile:e,onClose:d})}return null})),se=Object.freeze({BACKGROUND_POLL:"background_poll",FETCH_BOTTOM:"fetch_bottom",FOREGROUND_POLL:"foreground_poll",NEAR_TOP:"near_top",PULL_TO_REFRESH:"pull_to_refresh",TIMELINE_MOUNTING:"timeline_mounting",TIMELINE_SPECIFIC_FETCH_TOP:"timeline_specific_fetch_top"});var le=n(44895);const ce=l().d6e2f9be,de=l().afb4c24a,ue={},pe=(0,le.G)({});class he extends r.PureComponent{constructor(e,t){var n;super(e,t),this._lastRefresh=-1,this._withViewType=(0,c.Z)((e=>({viewType:"timeline",...e}))),this._render=()=>{const{analytics:e,apiErrorHandlerMap:t,bottomFetchStatus:n,createLocalApiErrorHandler:i,dismissedEntries:a,entries:s,entryConfiguration:l,fetchBottom:c,fetchInitial:d,fetchInitialOrTop:u,fetchOptions:h,fetchTopOptions:g,loadingAccessibilityLabel:b,markAllRead:y,olderAtTop:f,onEntriesRendered:_,perfKey:v,pinnedEntry:w,preprocessEntryList:E,processCallback:C,renderUnavailable:T,shouldFetchInitialOnBottomRetry:S,timelineExist:P,timelineRef:Z,unavailableReason:I,updateInstreamVideoEntries:k,withoutHeadroom:x,...A}=this.props;return r.createElement(r.Fragment,null,r.createElement(te.Z,{dismissedEntries:a,entries:s,entryConfiguration:l,pinnedEntry:w||void 0,prepareEntriesPerformanceSpan:`${v}-timeline-prepared`,preprocessEntryList:E},((e,t,i)=>r.createElement(m.Z,(0,o.Z)({},A,{bottomFetchStatus:n||void 0,entries:t,handlerRegistry:e,hasPendingHandlers:i,onAtBottom:this._handleAtBottom,onAtTop:this._handleAtTop,onBottomRetry:this._handleBottomRetry,onEntriesRendered:this._handleEntriesRendered,onNearBottom:this._handleNearBottom,onNearTop:this._handleNearTop,onRef:this._handleTimelineRendererRef,onRefresh:this._handleRefresh,perfKey:v,processCallback:this._processCallback,withoutHeadroom:x})))),r.createElement(p.b,null))},this._processCallback=e=>{const{createLocalApiErrorHandler:t,processCallback:n}=this.props;n(e).catch(t())},this._handleTimelineRendererRef=e=>{this._timelineRenderer=e},this._renderUnavailable=()=>{const{renderUnavailable:e,unavailableReason:t}=this.props;return e&&t?e(t):null},this._handleEntriesRendered=()=>{const{entries:e,initialFetchStatus:t}=this.props;this.props.onEntriesRendered({entries:e,fetchStatus:t})},this._getForegroundPoller=e=>{const{onTimelinePoll:t}=this.props;return new _.Z(e).interval((()=>{"active"===i.Z.currentState&&(this._fetchInitialOrTop({polling:!0},se.FOREGROUND_POLL),t&&t())}))},this._getBackgroundPoller=e=>{const{onTimelinePoll:t}=this.props;return new _.Z(e).interval((()=>{"background"===i.Z.currentState&&(this._fetchInitialOrTop({onlyIfStale:!0,polling:!0},se.BACKGROUND_POLL),t&&t())}))},this._handleInitialRetry=()=>{this._fetchInitial()},this._handleBottomRetry=()=>{const{shouldFetchInitialOnBottomRetry:e}=this.props;e?this._fetchInitial():this._fetchBottom()},this._handleAtTop=()=>{const{markAllRead:e,onAtTop:t}=this.props;t&&t(),e()},this._handleNearTop=()=>{const{olderAtTop:e}=this.props;this._fetchInitialOrTop({onlyIfStale:!e},se.NEAR_TOP)},this._handleAtBottom=()=>{const{analytics:e}=this.props;e.scribeAction("bottom")},this._handleNearBottom=()=>{this._fetchBottom()},this._handleRefresh=()=>{const e=Date.now();this._fetchInitialOrTop({},se.PULL_TO_REFRESH).then((()=>{this._lastRefresh=e}))},this._newTweetsPillV2Enabled=null==(n=this.context.featureSwitches)?void 0:n.isTrue("responsive_web_home_new_tweets_pill_v2"),this._timelineAPI={fetchTop:e=>this._fetchInitialOrTop(e,se.TIMELINE_SPECIFIC_FETCH_TOP),refreshOrGoTop:()=>this._refreshOrGoTop()},m.Z.preload()}componentDidMount(){this._initialize();const{timelineRef:e}=this.props;e(this._timelineAPI)}componentWillUnmount(){const{timelineRef:e}=this.props;e(null),this._cleanupTimelinePolling()}componentDidUpdate(e){const{droppedAds:t,entries:n,isRestrictedSession:o,newTweetsBarContent:r,pollingIntervalMs:i,timelineExist:a,timelineId:s,wasAtleastOneEntryHoisted:l}=this.props;if(s!==e.timelineId||i!==e.pollingIntervalMs||e.timelineExist&&!a||e.isRestrictedSession!==o)this._initialize();else if(n!==e.entries){this._onEntriesUpdated(e.entries);const t=!!e.entries.length&&!!e.newTweetsBarContent.count&&!r.count;t&&!this._newTweetsPillV2Enabled&&this._timelineRenderer&&this._timelineRenderer.scrollAndFocusNewest(),l&&!e.wasAtleastOneEntryHoisted&&this._scribeHoistedEntry(t)}t.length&&t.length!==e.droppedAds.length&&this._scribeAndClearDroppedAds()}behavioralClientEventContext(){}render(){const{behavioralEventContext:e,initialFetchStatus:t,loadingAccessibilityLabel:n,prerollDisplayLocation:o,renderUnavailable:i,timelineId:a,unavailableReason:s,withKeyboardShortcuts:l}=this.props,c=this._withViewType(e);return r.createElement(r.Fragment,null,!1!==l?r.createElement(ae,{timelineId:a}):null,r.createElement(ee.D,{prerollDisplayLocation:o},r.createElement(u.Z,{accessibilityLabel:n,behavioralEventContext:c,fetchStatus:t,onRequestRetry:this._handleInitialRetry,render:this._render,renderFailure:s&&i?this._renderUnavailable:void 0,retryable:!s})))}_initialize(){const{history:e,initialFetchStatus:t,shouldFetchLoadedContentOnMount:n}=this.props,o="POP"===e.action&&t===C.ZP.LOADED;(this.context.featureSwitches.isTrue("responsive_web_timeline_refetching_on_revisit_enabled")?!o:n||t!==C.ZP.LOADED)&&this._fetchInitialOrTop({onlyIfStale:!0},se.TIMELINE_MOUNTING),this._onEntriesUpdated(),this._maybeInitializeTimelinePolling()}_onEntriesUpdated(e){const{entries:t,pinnedEntry:n,prerollDisplayLocation:o,updateInstreamVideoEntries:r,updateVoiceEntries:i}=this.props;o&&r(t,o);const a=[...t];n&&a.push(n),a.length&&i(a)}_maybeInitializeTimelinePolling(){const{pollingIntervalMs:e}=this.props;if(this._cleanupTimelinePolling(),e&&e>0)this._timelinePoller=this._getForegroundPoller(e),this._timelinePoller.start();else{const e=this.context.featureSwitches.getNumberValue("responsive_web_settings_timeline_refresh_background_interval",0);e>5e3&&(this._timelinePoller=this._getBackgroundPoller(e),this._timelinePoller.start())}}_cleanupTimelinePolling(){this._timelinePoller&&this._timelinePoller.stop(),this._timelinePoller=void 0}_fetchInitialOrTop(e,t){const{analytics:n,fetchInitialOrTop:o,fetchOptions:r,fetchTopOptions:i}=this.props;return o({...Object.assign({...e},r),top:i}).then((({cursorType:o,newEntries:r,newTweets:i,performed:a})=>{if(!a)return;const s=o===v.CursorType.Top?"get_newer":"get_initial",l=Date.now();n.scribe({action:s,data:{event_initiator:null!=e&&e.polling?b.Z.EventInitiator.CLIENT_SIDE_APP:b.Z.EventInitiator.CLIENT_SIDE_USER,new_entries:r,new_tweets:i,last_refresh:"get_newer"===s&&this._lastRefresh>0?Math.round((l-this._lastRefresh)/1e3):void 0}}),this._mostRecentRequestType=t}),this._createLocalApiErrorHandler())}_fetchInitial(){const{analytics:e,fetchInitial:t,fetchOptions:n}=this.props;return t(n).then((({newEntries:t,newTweets:n,performed:o})=>{o&&e.scribe({action:"get_initial",data:{new_entries:t,new_tweets:n}})}),this._createLocalApiErrorHandler())}_fetchBottom(){const{analytics:e,fetchBottom:t,fetchOptions:n}=this.props;t(n).then((({newEntries:t,newTweets:n,performed:o})=>{o&&(e.scribe({action:"get_older",data:{new_entries:t,new_tweets:n}}),this._mostRecentRequestType=se.FETCH_BOTTOM)}),this._createLocalApiErrorHandler())}_createLocalApiErrorHandler(){const{apiErrorHandlerMap:e,createLocalApiErrorHandler:t}=this.props,{customErrorHandler:n,defaultToast:o,showToast:r,...i}=e;return t({...i,...{customErrorHandler:n||g.M.customErrorHandler,defaultToast:o||g.M.defaultToast,showToast:r||g.M.showToast}})}_refreshOrGoTop(){this._timelineRenderer?this._timelineRenderer.refreshOrGoTop():this._handleRefresh()}_scribeAndClearDroppedAds(){const{analytics:e,clearDroppedAds:t,droppedAds:n}=this.props;n.forEach((({adDropInfo:t,entry:n})=>{const o=n.type===w.ZP.Tweet?y.Z.getTweetURTEntryItem(n):{id:n.entryId};e.scribe({action:"minimum_spacing_ad_removal",data:{items:[o]}}),e.scribe({action:"minimum_spacing_ad_removal_drop_info",data:{custom_json_payload:JSON.stringify({ad_drop_info:{dropped_id:t.droppedId,retained_id:t.retainedId}})}})})),t()}_scribeHoistedEntry(e){const{analytics:t}=this.props,n=e?"new_tweets_bar":this._mostRecentRequestType;t.scribe({element:n,action:"entry_hoisted"})}}he.defaultProps={apiErrorHandlerMap:{},fetchOptions:ue,fetchTopOptions:ue,entryConfiguration:pe,loadingAccessibilityLabel:ce,olderAtTop:!1,onEntriesRendered:d.Z,preprocessEntryList:e=>e,renderEmptyState:()=>r.createElement(a.Z,{message:de}),scroller:h.C,shouldFetchLoadedContentOnMount:!0,showLoadingFooter:!0,timelineRef:d.Z,withoutHeadroom:!1},he.contextType=T.rC;const me=(0,E.ZP)(J((0,f.Z)(he)))},95034:(e,t,n)=>{"use strict";n.d(t,{C:()=>r,Z:()=>o});const o=Object.freeze({Critical:"critical",OnDemand:"ondemand",Preload:"preload"}),r=o},85699:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});const o=Object.freeze({CLIENT:"CLIENT",URT:"URT"})},44895:(e,t,n)=>{"use strict";n.d(t,{G:()=>He});var o=n(19744),r=(n(6886),n(95034));const i={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Articles~ondemand.ArticleHandler"),n.e("ondemand.ArticleHandler")]).then(n.bind(n,16991)),loaderKey:"defaultArticleLoader",strategy:r.Z.OnDemand},a=o.OZ(i),s={loader:()=>n.e("ondemand.collectionHeaderHandler").then(n.bind(n,11737)),loaderKey:"collectionHeaderLoader",strategy:r.Z.OnDemand},l=o.OZ(s),c={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("shared~bundle.AudioSpacePeek~bundle.Communities~ondemand.CommunityHandler"),n.e("ondemand.CommunityHandler")]).then(n.bind(n,28800)),loaderKey:"communityDefaultLoader",strategy:r.Z.OnDemand},d=o.OZ(c);var u=n(32789);const p=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~bundle.LiveEvent~bundle.Report~bundle.UserMoments~ondemand.EventSummaryHandler~ondemand.MomentSummaryH"),n.e("shared~ondemand.EditPinned~ondemand.EventSummaryHandler~ondemand.ListHandler"),n.e("ondemand.EventSummaryHandler")]).then(n.bind(n,75197)),loaderOptions:e,loaderKey:"eventSummaryDefaultLoader",strategy:r.Z.OnDemand}),h=({shouldStoreTypeaheadItem:e})=>o.ov({selectDisplayType:e=>e.content.displayType,handlers:{[u.Z.Hero]:p({}),[u.Z.Cell]:p({shouldStoreTypeaheadItem:e}),[u.Z.CellWithProminentSocialContext]:p({})}}),m={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.InlinePromptHandler")]).then(n.bind(n,34233)),loaderKey:"defaultInlinePromptLoader",strategy:r.Z.OnDemand},g=o.OZ(m);var b=n(16564);const y=o.OZ(b.k),f={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.MomentAnnotationHandler")]).then(n.bind(n,48982)),loaderKey:"momentAnnoationLoader",strategy:r.Z.OnDemand},_=o.OZ(f),v=()=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.LiveEvent~bundle.Report~bundle.UserMoments~ondemand.EventSummaryHandler~ondemand.MomentSummaryH"),n.e("ondemand.MomentSummaryHandler")]).then(n.bind(n,60115)),loaderOptions:{},loaderKey:"momentSummaryLoader",strategy:r.Z.OnDemand}),w=Object.freeze({Cell:"Cell",PreviewCard:"PreviewCard"}),E={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.newsArticleHandler")]).then(n.bind(n,84471)),loaderKey:"newsCellLoader",strategy:r.Z.OnDemand},C={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.newsPreviewHandler")]).then(n.bind(n,37780)),loaderKey:"newsPreviewCardLoader",strategy:r.Z.OnDemand},T=o.ov({selectDisplayType:e=>e.content.newsDisplayType,handlers:{[w.Cell]:E,[w.PreviewCard]:C}}),S={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("shared~loader.AudioDock~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceReport~bundle.Birdw"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.NotificationHandler")]).then(n.bind(n,23331)),loaderKey:"defaultNotificationLoader",strategy:r.Z.OnDemand},P=o.OZ(S),Z={loader:()=>n.e("ondemand.ScoreEventSummaryHandler").then(n.bind(n,23009)),loaderKey:"defaultScoreEventSummaryLoader",strategy:r.Z.OnDemand},I=o.OZ(Z),k={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.DMDrawer~bundle.Compose~bundle.RichTextCompose~bundle.DirectMessages~bundle.DMRichTextCompose~b"),n.e("shared~loader.DMDrawer~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.DirectMessages~bundle.DM"),n.e("shared~loader.DMDrawer~bundle.Compose~bundle.RichTextCompose~bundle.DirectMessages~bundle.DMRichTextCompose~l"),n.e("ondemand.TimelineCardHandler")]).then(n.bind(n,40008)),loaderKey:"timelineCardDefaultLoader",strategy:r.Z.Critical},x=o.OZ(k);var A=n(30841);const L=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.topicHandler")]).then(n.bind(n,94925)),loaderOptions:e,loaderKey:"topicCellLoader",strategy:r.Z.OnDemand}),R=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.topicHandler")]).then(n.bind(n,69419)),loaderOptions:e,loaderKey:"topicPillLoader",strategy:r.Z.OnDemand}),D=({shouldStoreTypeaheadItem:e})=>o.ov({selectDisplayType:e=>e.content.topicDisplayType||A.M6.Basic,handlers:{[A.M6.Basic]:L({shouldStoreTypeaheadItem:e}),[A.M6.Pill]:R({shouldDisplayBorder:!1}),[A.M6.NoIcon]:L({shouldStoreTypeaheadItem:e}),[A.M6.PillWithoutActionIcon]:R({shouldDisplayBorder:!1})}}),M={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.TopicFollowPromptHandler")]).then(n.bind(n,55583)),loaderKey:"topicFollowPromptDefaultLoader",strategy:r.Z.OnDemand},O=o.OZ(M),B={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.topicLandingHeaderHandler")]).then(n.bind(n,44765)),loaderKey:"topicLandingHeaderLoader",strategy:r.Z.OnDemand},F=o.OZ(B),H=({errorContext:e,withThirdPartyCards:t=!1})=>o.OZ({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("shared~loader.DMDrawer~bundle.Compose~bundle.RichTextCompose~bundle.DirectMessages~bundle.DMRichTextCompose~b"),n.e("shared~loader.DMDrawer~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.DirectMessages~bundle.DM"),n.e("shared~loader.DMDrawer~bundle.Compose~bundle.RichTextCompose~bundle.DirectMessages~bundle.DMRichTextCompose~l"),n.e("ondemand.TrendHandler")]).then(n.bind(n,52327)),loaderKey:"trendDefaultLoader",loaderOptions:{withThirdPartyCards:t,errorContext:e},strategy:r.Z.OnDemand});var N=n(68665),z=n(40666);const U={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.VerticalGridItemHandler")]).then(n.bind(n,24126)),loaderKey:"topicTileLoader",strategy:r.Z.OnDemand},V=o.ov({selectDisplayType:e=>(0,N.Z)(e.content.content)||"",handlers:{[z.NA.TopicTile]:U}});var q=n(52612);const G=Object.freeze({PagedCarouselFeedbackItem:"pagedCarouselFeedbackItem",Message:"message"}),j=e=>({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~loader.DMDrawer~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceRep"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.MessageHandler")]).then(n.bind(n,8295)),loaderKey:"defaultMessageLoader",loaderOptions:e,strategy:r.Z.OnDemand}),W={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.PagedCarouselItemHandler")]).then(n.bind(n,68463)),loaderKey:"feedbackItemLoader",strategy:r.Z.OnDemand},K=o.ov({selectDisplayType:e=>(0,N.Z)(e.content.content)||"",handlers:{[G.PagedCarouselFeedbackItem]:W,[G.Message]:j({withGaps:!1})}}),$={loader:()=>n.e("ondemand.RelatedSearchHandler").then(n.bind(n,97476)),loaderKey:"relatedSearchDefaultLoader",strategy:r.Z.OnDemand},Q=o.OZ($);var Y=n(10897);const X=Object.freeze({Expand:"Expand",Replace:"Replace",Suggest:"Suggest"}),J={loader:()=>n.e("ondemand.spellingHandler").then(n.bind(n,83568)),loaderKey:"spellingExpandLoader",strategy:r.Z.OnDemand},ee={loader:()=>n.e("ondemand.spellingHandler").then(n.bind(n,61324)),loaderKey:"spellingReplaceLoader",strategy:r.Z.OnDemand},te={loader:()=>n.e("ondemand.spellingHandler").then(n.bind(n,23415)),loaderKey:"spellingSuggestLoader",strategy:r.Z.OnDemand},ne=o.ov({selectDisplayType:e=>e.content.spellingAction,handlers:{[X.Expand]:J,[X.Replace]:ee,[X.Suggest]:te}});var oe=n(80017);n(2784);const re=Object.freeze({DigestCard:"digestCard",ScoreCard:"scoreCard",Standard:"standard",Broadcast:"broadcast",CallToAction:"callToAction"}),ie={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.TileHandler")]).then(n.bind(n,99653)),loaderKey:"standardHandlerLoader",strategy:r.Z.OnDemand},ae={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.TileHandler")]).then(n.bind(n,84049)),loaderKey:"broadcastLoader",strategy:r.Z.OnDemand},se={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.TileHandler")]).then(n.bind(n,49275)),loaderKey:"callToActionLoader",strategy:r.Z.OnDemand},le={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.TileHandler")]).then(n.bind(n,48050)),loaderKey:"scoreCardLoader",strategy:r.Z.OnDemand},ce=o.ov({selectDisplayType:e=>(0,N.Z)(e.content.content)||"",handlers:{[re.Standard]:ie,[re.ScoreCard]:le,[re.Broadcast]:ae,[re.CallToAction]:se}});var de=n(50099),ue=n(11946);const pe={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~loader.AudioDock~bundle.AudioSpacePeek~bundle.AudioSpaceAnalytics~bundle.AudioSpaceReport~bundle.Birdw"),n.e("ondemand.IconLabelHandler")]).then(n.bind(n,29042)),loaderKey:"defaultIconLabelLoader",strategy:r.Z.OnDemand},he=o.OZ(pe);var me=n(84261);const ge=({withGaps:e=!0})=>o.OZ(j({withGaps:e})),be={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("ondemand.newsEntriesGapHandler")]).then(n.bind(n,16032)),loaderKey:"defaultNewEntriesGapLoader",strategy:r.Z.OnDemand},ye=({shouldHideNewEntriesBar:e})=>e?o.OZ(o.KM()):o.OZ(be),fe=Object.freeze({EntityFollowPrompt:"entityFollowPrompt",UserFollowPrompt:"userFollowPrompt",RelevancePrompt:"relevancePrompt",OnboardingLikesStartPrompt:"onboardingLikesStartPrompt"}),_e={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.promptHandler")]).then(n.bind(n,25697)),loaderKey:"onboardingLikesStartPromptLoader",strategy:r.Z.OnDemand},ve={loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("shared~bundle.Birdwatch~bundle.Compose~bundle.RichTextCompose~bundle.Settings~bundle.Display~bundle.Ocf~bundl"),n.e("ondemand.promptHandler")]).then(n.bind(n,24566)),loaderKey:"relevancePromptLoader",strategy:r.Z.OnDemand},we=o.ov({selectDisplayType:e=>(0,N.Z)(e.content)||"",handlers:{[fe.RelevancePrompt]:ve,[fe.OnboardingLikesStartPrompt]:_e}});var Ee=n(56746),Ce=n(48491),Te=n(45321),Se=n(95858),Pe=n(91420),Ze=n(75939),Ie=n(60427),ke=n(20463),xe=n(25525),Ae=n(35089),Le=n(59063);const Re=o.ov({selectDisplayType:e=>e.content.displayType,handlers:{[Ae.Z.Inline]:(0,Le._n)({}),[Ae.Z.TweetUnavailable]:Le.ZU,[Ae.Z.DisconnectedRepliesAncestor]:Le.cm,[Ae.Z.DisconnectedRepliesDescendant]:Le.cm}});var De=n(93865),Me=n(69933);const Oe={loader:()=>n.e("ondemand.unsupportedHandler").then(n.bind(n,62426)),loaderKey:"unsupportedDefaultLoader",strategy:r.Z.OnDemand},Be=e=>o.OZ(e?Oe:o.KM());var Fe=n(71743);const He=({allowDownvote:e=!1,bookmarkFolderId:t,displayBlocked:n=!1,errorContext:r="",isInSidebar:i=!1,shouldHideNewEntriesBar:s=!1,shouldSelfThreadIncludeAvatar:c=!1,shouldStoreTypeaheadItem:u,showUnsupportedTombstone:p=!1,showWithheldBannerOnMyTweets:m=!0,tweetDismissable:b=!1,withMessageGaps:f=!0,withMuteConversation:w=!1,withRemoveFromBookmarks:E=!1,withSelfThreadCTA:C=!1,withThirdPartyCards:S=!0,withTweetActionsDisabled:Z=!1,withUserPresence:k=!1})=>({[q.ZP.Article]:a,[q.ZP.Card]:x,[q.ZP.Community]:d,[q.ZP.EventSummary]:h({shouldStoreTypeaheadItem:u}),[q.ZP.FollowSearch]:o.OZ(o.KM()),[q.ZP.FollowSearchAction]:o.OZ(o.KM()),[q.ZP.IconLabel]:he,[q.ZP.Label]:y,[q.ZP.Message]:ge({withGaps:f}),[q.ZP.Moment]:o.OZ(v()),[q.ZP.MomentAnnotation]:_,[q.ZP.News]:T,[q.ZP.Notification]:P,[q.ZP.PagedCarouselItem]:K,[q.ZP.Place]:o.OZ(o.KM()),[q.ZP.Prompt]:we,[q.ZP.RelatedSearch]:Q,[q.ZP.ScoreEventSummary]:I,[q.ZP.SelfThreadTweetComposer]:Y.Z,[q.ZP.Spelling]:ne,[q.ZP.ThreadHeader]:oe.Z,[q.ZP.Tile]:ce,[q.ZP.TimelineCursor]:(0,de.Z)({}),[q.ZP.TimelineModule]:(0,Ee.I)({}),[q.ZP.Tombstone]:Re,[q.ZP.Topic]:D({shouldStoreTypeaheadItem:u}),[q.ZP.TopicFollowPrompt]:O,[q.ZP.TopicLandingHeader]:F,[q.ZP.Trend]:H({withThirdPartyCards:S,errorContext:r}),[q.ZP.Tweet]:(0,Me.Z)({allowDownvote:e,bookmarkFolderId:t,displayBlocked:n,dismissable:b,shouldSelfThreadIncludeAvatar:c,showWithheldBannerOnMyTweets:m,shouldStoreTypeaheadItem:u,withActionsDisabled:Z,withMuteConversation:w,withRemoveFromBookmarks:E,withUserPresence:k}),[q.ZP.TwitterList]:(0,me.Z)({}),[q.ZP.User]:(0,Fe.Z)({shouldStoreTypeaheadItem:u}),[q.ZP.VerticalGridItem]:V,[q.no.CollectionHeader]:l,[q.no.ConversationModuleGap]:Te.Z,[q.no.Divider]:ue.Z,[q.no.ModuleCarouselTimeline]:Ce.Z,[q.no.ModuleFooter]:(0,Se.Z)({isInSidebar:i}),[q.no.ModuleHeader]:Pe.Z,[q.no.ModuleImpressionPlaceholder]:Ze.Z,[q.no.ModuleShowMore]:(0,Ie.Z)({isInSidebar:i}),[q.no.ModuleVerticalGridList]:ke.Z,[q.no.ModuleVerticalGridTimelineRow]:xe.Z,[q.no.NewEntries]:ye({shouldHideNewEntriesBar:s}),[q.no.PushPrompt]:g,[q.no.Tombstone]:De.Z,[q.no.Unsupported]:Be(p)})},11429:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});n(6886);var o=n(2784),r=n(56499),i=n(81010);const a=(0,r.Z)({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("loader.TimelineRenderer")]).then(n.bind(n,30269)),renderPlaceholder:(e,t)=>o.createElement(i.Z,{hasError:e,onRetry:t})})},23021:(e,t,n)=>{"use strict";n.d(t,{$f:()=>S,KV:()=>b,LI:()=>x,Nn:()=>h,SC:()=>T,Vt:()=>_,X_:()=>w,Xs:()=>m,c4:()=>L,ed:()=>A,fX:()=>g,op:()=>P});var o=n(2784),r=n(84292),i=n(79404),a=n.n(i),s=n(73952),l=n(97463),c=n(1206),d=n(66961);const u=a().cfd2f35e,p=a().f9e45cfb,h=a().fcd4d489,m=a().a6450e84,g=a().hb279a11,b=a().a9fd20be,y=a().j546fb79,f=a().c9623eeb,_=a().e133be4e,v=a().h7f25e2c,w=a().ae3e9c81,E=a().e68b09b4,C=a().db2f1008,T=Object.freeze({TWEET_CARET:"tweet_caret",PROFILE:"user_profile",LIST_DETAIL:"list_detail",RICH_FEEDBACK:"rich_feedback",TWEET:"tweet",FOLLOWERS_LIST:"followers_list"}),S=e=>({confirmButtonType:"destructiveFilled",headline:p({screenName:e}),label:m,text:g({screenName:e})}),P=({blockAction:e,blockSubtext:t,source:n,testID:o,unblockAction:r,unblockSubtext:i,user:a})=>{let s,l=c.Z;const u=x(a);switch(n){case T.PROFILE:case T.LIST_DETAIL:case T.FOLLOWERS_LIST:l=()=>{a.smart_blocking||!a.blocking?e(u):r(u)};break;case T.TWEET:case T.TWEET_CARET:case T.RICH_FEEDBACK:s=d.uq.block,l=()=>{a.smart_blocking||!a.blocking?e(u):r(u)}}return{behavioralEventContext:{viewType:a.blocking?"unblock":"block"},confirmation:u,onClick:l,testID:o,shortcutKey:s,Icon:Z(a.blocking,a.smart_blocking),text:k(a),subText:I({user:a,blockSubtext:t,unblockSubtext:i})}},Z=(e,t)=>t||!e?s.Z:l.Z,I=({blockSubtext:e,unblockSubtext:t,user:n})=>!n.smart_blocking&&n.blocking||!e?n.blocking?t:void 0:e(n.screen_name),k=e=>e.smart_blocking||!e.blocking?h({screenName:e.screen_name}):f({screenName:e.screen_name}),x=e=>{return e.smart_blocking||!e.blocking?S(e.screen_name):(t=e.screen_name,{confirmButtonType:"primary",headline:y({screenName:t}),label:_,text:v});var t},A=({confirmation:e,handleConfirm:t,onClose:n})=>{const{confirmButtonType:i,headline:a,label:s,text:l}=e;return o.createElement(r.Z,{cancelButtonLabel:u,confirmButtonLabel:s,confirmButtonType:i,headline:a,onCancel:n,onConfirm:t,text:l})},L=e=>({confirmButtonType:"primary",headline:w({screenName:e}),label:E,text:C})},19565:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var o=n(79404);const r={defaultToast:{text:n.n(o)().b6878b0a},showToast:!0}},75207:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var o=n(1206),r=n(63140),i=n(90437);const a=(e="")=>({[r.ZP.GenericNotFound]:{customAction:o.Z},[r.ZP.NotAuthorizedToViewUser]:{customAction:()=>{(0,i.DR)(`/${e}`,{statusCode:401})}},[r.ZP.StatusViewForbidden]:{customAction:()=>{(0,i.DR)(`/${e}`)}},showToast:!0})},65249:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var o=n(1206),r=n(63140);const i={[r.ZP.OtherUserSuspended]:{customAction:o.Z},[r.ZP.StatusViewForbidden]:{customAction:o.Z}}},17772:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var o=n(79404);const r={defaultToast:{text:n.n(o)().ca96fe6e},showToast:!0}},72985:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var o=n(63140),r=n(90437);const i={[o.ZP.GenericNotFound]:{customAction:r.vv}}},58343:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(76984),r=n.n(o),i=n(24949);const a=(0,i.wN)(i.PW,r())},58711:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});n(71372),n(6886),n(2784);const o=Object.freeze({AlarmClock:"AlarmClock",BabyBirdWithPoolFloat:"BabyBirdWithPoolFloat",Bell:"Bell",Binoculars:"Binoculars",BookInBirdCage:"BookInBirdCage",CalculatorWithEggPaper:"CalculatorWithEggPaper",CrackedEggMicrophones:"CrackedEggMicrophones",Emoji:"Emoji",FallenIceCreamCone:"FallenIceCreamCone",GoldfishWithMailbox:"GoldfishWithMailbox",HatchedBabyChick:"HatchedBabyChick",Hearts:"Hearts",JumperCables:"JumperCables",LongformNote:"LongformNote",MaskedDollHeadWithCamera:"MaskedDollHeadWithCamera",Megaphone:"Megaphone",NoEntrySign:"NoEntrySign",OwlTurnedHead:"OwlTurnedHead",PaintCoveredHand:"PaintCoveredHand",Parrot:"Parrot",PortraitBustWearingSunglasses:"PortraitBustWearingSunglasses",RoosterHead:"RoosterHead",RubberChicken:"RubberChicken",Toaster:"Toaster",Turtle:"Turtle",UnfinishedPotatoHeads:"UnfinishedPotatoHeads",YellowBirdsPowerLine:"YellowBirdsPowerLine",VerificationCheck:"VerificationCheck"}),r=Object.freeze({[o.AlarmClock]:i(["https://abs.twimg.com/responsive-web/client-web/alarm-clock-400x200.v1.da96e5d9.png","https://abs.twimg.com/responsive-web/client-web/alarm-clock-800x400.v1.6c5b3fe9.png","https://abs.twimg.com/responsive-web/client-web/alarm-clock-1200x600.v1.07f8aa49.png"]),[o.BabyBirdWithPoolFloat]:i(["https://abs.twimg.com/responsive-web/client-web/baby-bird-with-pool-float-400x200.v1.9303a249.png","https://abs.twimg.com/responsive-web/client-web/baby-bird-with-pool-float-800x400.v1.ba583f59.png","https://abs.twimg.com/responsive-web/client-web/baby-bird-with-pool-float-1200x600.v1.dbda2759.png"]),[o.Bell]:i(["https://abs.twimg.com/responsive-web/client-web/bell-400x200.v1.87c423e9.png","https://abs.twimg.com/responsive-web/client-web/bell-800x400.v1.04621dc9.png","https://abs.twimg.com/responsive-web/client-web/bell-1200x600.v1.bfc78609.png"]),[o.Binoculars]:i(["https://abs.twimg.com/responsive-web/client-web/binoculars-400x200.v1.e7c0eee9.png","https://abs.twimg.com/responsive-web/client-web/binoculars-800x400.v1.4c5ccd39.png","https://abs.twimg.com/responsive-web/client-web/binoculars-1200x600.v1.45432539.png"]),[o.BookInBirdCage]:i(["https://abs.twimg.com/responsive-web/client-web/book-in-bird-cage-400x200.v1.366bcfc9.png","https://abs.twimg.com/responsive-web/client-web/book-in-bird-cage-800x400.v1.71804389.png","https://abs.twimg.com/responsive-web/client-web/book-in-bird-cage-1200x600.v1.9d481e39.png"]),[o.CalculatorWithEggPaper]:i(["https://abs.twimg.com/responsive-web/client-web/calculator-with-egg-paper-400x200.v1.3f0e1a39.png","https://abs.twimg.com/responsive-web/client-web/calculator-with-egg-paper-800x400.v1.9040af19.png","https://abs.twimg.com/responsive-web/client-web/calculator-with-egg-paper-1200x600.v1.5b11d1c9.png"]),[o.CrackedEggMicrophones]:i(["https://abs.twimg.com/responsive-web/client-web/cracked-egg-microphones-400x200.v1.5f30bbc9.png","https://abs.twimg.com/responsive-web/client-web/cracked-egg-microphones-800x400.v1.1322b879.png","https://abs.twimg.com/responsive-web/client-web/cracked-egg-microphones-1200x600.v1.6367dc89.png"]),[o.Emoji]:i(["https://abs.twimg.com/responsive-web/client-web/emoji-400x200.v1.b40a1ae9.png","https://abs.twimg.com/responsive-web/client-web/emoji-800x400.v1.53505cc9.png","https://abs.twimg.com/responsive-web/client-web/emoji-1200x600.v1.226f9c09.png"]),[o.FallenIceCreamCone]:i(["https://abs.twimg.com/responsive-web/client-web/fallen-ice-cream-cone-400x200.v1.9c39cff9.png","https://abs.twimg.com/responsive-web/client-web/fallen-ice-cream-cone-800x400.v1.b9ed4af9.png","https://abs.twimg.com/responsive-web/client-web/fallen-ice-cream-cone-1200x600.v1.a77c2de9.png"]),[o.GoldfishWithMailbox]:i(["https://abs.twimg.com/responsive-web/client-web/goldfish-with-mailbox-400x200.v1.b35fc9f9.png","https://abs.twimg.com/responsive-web/client-web/goldfish-with-mailbox-800x400.v1.b12e0269.png","https://abs.twimg.com/responsive-web/client-web/goldfish-with-mailbox-1200x600.v1.e2b74449.png"]),[o.HatchedBabyChick]:i(["https://abs.twimg.com/responsive-web/client-web/hatched-baby-chick-400x200.v1.8333cdd9.png","https://abs.twimg.com/responsive-web/client-web/hatched-baby-chick-800x400.v1.a9190cd9.png","https://abs.twimg.com/responsive-web/client-web/hatched-baby-chick-1200x600.v1.0f372129.png"]),[o.Hearts]:i(["https://abs.twimg.com/responsive-web/client-web/hearts-400x200.v1.26884309.png","https://abs.twimg.com/responsive-web/client-web/hearts-800x400.v1.453aab19.png","https://abs.twimg.com/responsive-web/client-web/hearts-1200x600.v1.eae3a789.png"]),[o.JumperCables]:i(["https://abs.twimg.com/responsive-web/client-web/jumper-cables-400x200.v1.81b5deb9.png","https://abs.twimg.com/responsive-web/client-web/jumper-cables-800x400.v1.70cac459.png","https://abs.twimg.com/responsive-web/client-web/jumper-cables-1200x600.v1.af1d0d49.png"]),[o.LongformNote]:i(["https://abs.twimg.com/responsive-web/client-web/longform-note-400x200.v1.d6faf1c9.png","https://abs.twimg.com/responsive-web/client-web/longform-note-800x400.v1.28218739.png","https://abs.twimg.com/responsive-web/client-web/longform-note-1200x600.v1.52a31349.png"]),[o.MaskedDollHeadWithCamera]:i(["https://abs.twimg.com/responsive-web/client-web/masked-doll-head-with-camera-400x200.v1.930b4219.png","https://abs.twimg.com/responsive-web/client-web/masked-doll-head-with-camera-800x400.v1.389166b9.png","https://abs.twimg.com/responsive-web/client-web/masked-doll-head-with-camera-1200x600.v1.b50c1359.png"]),[o.Megaphone]:i(["https://abs.twimg.com/responsive-web/client-web/megaphone-400x200.v1.cd457319.png","https://abs.twimg.com/responsive-web/client-web/megaphone-800x400.v1.c0865659.png","https://abs.twimg.com/responsive-web/client-web/megaphone-1200x600.v1.b3c63979.png"]),[o.NoEntrySign]:i(["https://abs.twimg.com/responsive-web/client-web/no-entry-sign-400x200.v1.7a0779e9.png","https://abs.twimg.com/responsive-web/client-web/no-entry-sign-800x400.v1.981d3819.png","https://abs.twimg.com/responsive-web/client-web/no-entry-sign-1200x600.v1.b06384e9.png"]),[o.OwlTurnedHead]:i(["https://abs.twimg.com/responsive-web/client-web/owl-turned-head-400x200.v1.608590e9.png","https://abs.twimg.com/responsive-web/client-web/owl-turned-head-800x400.v1.1fc48c69.png","https://abs.twimg.com/responsive-web/client-web/owl-turned-head-1200x600.v1.d76fe569.png"]),[o.PaintCoveredHand]:i(["https://abs.twimg.com/responsive-web/client-web/paint-covered-hand-400x200.v1.8f5bf779.png","https://abs.twimg.com/responsive-web/client-web/paint-covered-hand-800x400.v1.1eeb6e59.png","https://abs.twimg.com/responsive-web/client-web/paint-covered-hand-1200x600.v1.bbdbd309.png"]),[o.Parrot]:i(["https://abs.twimg.com/responsive-web/client-web/parrot-400x200.v1.e607e619.png","https://abs.twimg.com/responsive-web/client-web/parrot-800x400.v1.de5767b9.png","https://abs.twimg.com/responsive-web/client-web/parrot-1200x600.v1.c1ce2d59.png"]),[o.PortraitBustWearingSunglasses]:i(["https://abs.twimg.com/responsive-web/client-web/portrait-bust-wearing-sunglasses-400x200.v1.0c222a19.png","https://abs.twimg.com/responsive-web/client-web/portrait-bust-wearing-sunglasses-800x400.v1.6310bab9.png","https://abs.twimg.com/responsive-web/client-web/portrait-bust-wearing-sunglasses-1200x600.v1.46565ee9.png"]),[o.RoosterHead]:i(["https://abs.twimg.com/responsive-web/client-web/rooster-head-400x200.v1.b78f86e9.png","https://abs.twimg.com/responsive-web/client-web/rooster-head-800x400.v1.110bee49.png","https://abs.twimg.com/responsive-web/client-web/rooster-head-1200x600.v1.90a27b69.png"]),[o.RubberChicken]:i(["https://abs.twimg.com/responsive-web/client-web/rubber-chicken-400x200.v1.95f66339.png","https://abs.twimg.com/responsive-web/client-web/rubber-chicken-800x400.v1.3a2d1b19.png","https://abs.twimg.com/responsive-web/client-web/rubber-chicken-1200x600.v1.ead73b39.png"]),[o.Toaster]:i(["https://abs.twimg.com/responsive-web/client-web/toaster-400x200.v1.81163b09.png","https://abs.twimg.com/responsive-web/client-web/toaster-800x400.v1.682f0b59.png","https://abs.twimg.com/responsive-web/client-web/toaster-1200x600.v1.35623559.png"]),[o.Turtle]:i(["https://abs.twimg.com/responsive-web/client-web/turtle-400x200.v1.27184b19.png","https://abs.twimg.com/responsive-web/client-web/turtle-800x400.v1.c9980c59.png","https://abs.twimg.com/responsive-web/client-web/turtle-1200x600.v1.4beb2b79.png"]),[o.UnfinishedPotatoHeads]:i(["https://abs.twimg.com/responsive-web/client-web/unfinished-potato-heads-400x200.v1.668c0839.png","https://abs.twimg.com/responsive-web/client-web/unfinished-potato-heads-800x400.v1.6818f0e9.png","https://abs.twimg.com/responsive-web/client-web/unfinished-potato-heads-1200x600.v1.898694a9.png"]),[o.YellowBirdsPowerLine]:i(["https://abs.twimg.com/responsive-web/client-web/yellow-birds-power-line-400x200.v1.7e3b99f9.png","https://abs.twimg.com/responsive-web/client-web/yellow-birds-power-line-800x400.v1.0891edb9.png","https://abs.twimg.com/responsive-web/client-web/yellow-birds-power-line-1200x600.v1.a15d7819.png"]),[o.VerificationCheck]:i(["https://abs.twimg.com/responsive-web/client-web/verification-check-400x200.v1.46c9cb39.png","https://abs.twimg.com/responsive-web/client-web/verification-check-800x400.v1.52677a99.png","https://abs.twimg.com/responsive-web/client-web/verification-check-1200x600.v1.ef1651f9.png"])});function i(e){if(3!==e.length)throw new Error("url list must be 3 urls for each variant (400x200, 800x400, 1200x600)");const[t,n,o]=e;return[{width:400,height:200,uri:t},{width:800,height:400,uri:n},{width:1200,height:600,uri:o}]}},66961:(e,t,n)=>{"use strict";n.d(t,{OX:()=>u,Od:()=>c,PN:()=>p,uq:()=>l,wR:()=>m});n(6886),n(36728);var o=n(9933),r=n(79404),i=n.n(r),a=n(16587),s=n(73036);const l=Object.freeze({openKeyboardShortcuts:"?",swipeLeft:"left",swipeRight:"right",nextItem:"j",previousItem:"k",refresh:".",nightMode:"z",bookmark:"b",block:"x",mute:"u",newTweet:"n",newMessage:"m",toggleDMDrawer:"i",goHome:"g h",goExplore:"g e",goNotifications:"g n",goMentions:"g r",goProfile:"g p",goLikes:"g l",goLists:"g i",goMessages:"g m",goMomentMaker:"g c",goToDrafts:"g f",goToScheduled:"g t",goSettings:"g s",goToUser:"g u",goBookmarks:"g b",goTopArticles:"g a",goDisplay:"g d",search:"/",audio:{dock:"a d",play:"a space",mute:"a m"},video:{play1:"k",play2:"space",mute:"m"},columns:{createNewColumn:"c n",duplicateColumn:"c d",focusOnReorderButton:"c r",lastColumn:"c 0",nextColumn:"]",nthColumn:"c 1..9",prevColumn:"[",removeColumn:"c backspace",toggleColumnOptions:"c o",undoRemoveColumn:"c u"},decks:{createNewDeck:"d n",editActiveDeck:"d e",lastPinnedDeck:"d 0",manageAllDecks:"d m",nthPinnedDeck:"d 1..9"}}),c=(0,a.Z)(((e,t)=>{const n=t?[{description:i().b7fa0cfe,keys:l.goTopArticles,universal:!1}]:[];return[{description:i().d5696fcc,keys:l.openKeyboardShortcuts,universal:!0},{description:i().e722b9d0,keys:l.nextItem,universal:!0},{description:i().a86b5194,keys:l.previousItem,universal:!0},{description:i().a690c4d0,keys:"Space",universal:!0},{description:i().ed90d9ac,keys:l.refresh,universal:!1},{description:i().ha8209bc,keys:l.goHome,universal:!1},{description:i().fcf3e54c,keys:l.goExplore,universal:!0},{description:i().eb75875e,keys:l.goNotifications,universal:!1},{description:i().cdb53d7a,keys:l.goMentions,universal:!1},{description:i().fa98627a,keys:l.goProfile,universal:!1},{description:i().d4ebc798,keys:l.goToDrafts,universal:!1},{description:i().e4e4e50a,keys:l.goToScheduled,universal:!1},{description:i().d7b8ebaa,keys:l.goLikes,universal:!1},{description:i().b0041756,keys:l.goLists,universal:!1},{description:i().d4986f86,keys:l.goMessages,universal:!1},{description:i().c106055a,keys:l.goMomentMaker,universal:!1},{description:i().bb081ea2,keys:l.goSettings,universal:!0},{description:i().i3145aa0,keys:l.goBookmarks,universal:!1},...n,{description:i().eee2ed92,keys:l.goToUser,universal:!0},{description:i().ee5ccf3e,keys:l.goDisplay,universal:!1}]})),d=s.ZP.isMac()?"⌘":"CTRL",u=(0,a.Z)((e=>{const t=e.isTrue("responsive_web_reactions_enabled")?[{description:i().ib0cb828,keys:o.Z.shortcuts.reactHmm,universal:!1},{description:i().h03c8a84,keys:o.Z.shortcuts.reactSad,universal:!1},{description:i().j055356c,keys:o.Z.shortcuts.reactHaha,universal:!1},{description:i().a849ef88,keys:o.Z.shortcuts.reactCheer,universal:!1},{description:i().d442e6e0,keys:o.Z.shortcuts.reactLike,universal:!1}]:[];return[{description:i().b1547096,keys:l.newTweet,universal:!1},{description:i().j9e025aa,keys:`${d} Enter`,universal:!1},{description:i().e736990a,keys:l.newMessage,universal:!1},{description:i().a9ae1e78,keys:l.search,universal:!0},{description:i().fe731016,keys:o.Z.shortcuts.like,universal:!1},...t,{description:i().d17df548,keys:o.Z.shortcuts.reply,universal:!1},{description:i().bac8f4c2,keys:o.Z.shortcuts.retweet,universal:!1},{description:i().h7755862,keys:o.Z.shortcuts.share,universal:!0},{description:i().gb303814,keys:l.bookmark,universal:!1},{description:i().c03b1126,keys:l.mute,universal:!1},{description:i().ebd2abb2,keys:l.block,universal:!1},{description:i().db1e4288,keys:"Enter",universal:!0},{description:i().eebdef38,keys:o.Z.shortcuts.openMediaModal,universal:!0},{description:i().b488758c,keys:l.toggleDMDrawer,universal:!1}]})),p=(0,a.Z)((e=>{const t=[{description:i().c82314e0,keys:l.video.play1,universal:!0},{description:i().c82314e0,keys:l.video.play2,universal:!0},{description:i().b881560e,keys:l.video.mute,universal:!0}];return t.push({description:i().a94f7302,keys:l.audio.dock,universal:!1},{description:i().a7e604c6,keys:l.audio.play,universal:!1},{description:i().f978c4fc,keys:l.audio.mute,universal:!1}),t})),h=(0,a.Z)(((e,t)=>{const n=c(e,t),o=u(e),r=p(e),i={};return[...o,...r,...n].forEach((({description:e,keys:t})=>i[t]=e)),JSON.stringify(i)})),m=(e,t,n)=>{if(n)return{dataSet:{"at-shortcutkeys":h(e,t)}}}},3978:(e,t,n)=>{"use strict";n.d(t,{It:()=>d,mD:()=>c,sE:()=>s});var o=n(95871),r=n(50984);const i=["da","de","en","en-gb","es","et","eu","fi","fil","fr","ga","gl","ht","hu","id","it","lt","lv","nl","no","ms","pl","pt","sk","sl","sv","tr","vi"],a={"en-gb":"en","en-ss":"en",fil:"tl",he:"iw",id:"in",msa:"ms","xx-lc":"en"},s=e=>{const t=e.toLowerCase();return a[t]||t},l=(e,t)=>{const n=s(e);return!(i.indexOf(n)>-1&&t<20)&&!("und"===e)},c=({displayTextRange:e,entities:t,language:n,text:i})=>{if(!e||!l(n,e[1]-e[0]))return!1;const a=((e,t)=>{let n=o.Z.getTwemojiEntities(e).map((e=>e.indices));for(const e in t)n=n.concat(t[e].map((e=>e.indices)));return n.sort(((e,t)=>e[0]-t[0])),n})(i,t),s=((e,t,n)=>{const{accText:o,lastIndex:r}=n.reduce((({accText:n,lastIndex:o},r)=>r[1]<=o||t[1]<=r[0]?{lastIndex:o,accText:n}:{accText:n+e.slice(o,r[0]),lastIndex:r[1]}),{accText:"",lastIndex:t[0]});return o+e.slice(r,t[1])})(i,e,a);return!(0,r.Z)(s)&&l(n,s.length)},d=e=>{if(e.includes("-"))return e;if(navigator.language&&navigator.language.startsWith(e))return navigator.language;if(window.Intl&&window.Intl.Locale){const{region:t}=new window.Intl.Locale(e).maximize();return`${e}-${t}`}return"ar"===e?"ar-EG":e}},79768:(e,t,n)=>{"use strict";n.d(t,{iA:()=>a,uB:()=>r,zk:()=>i});var o=n(482);const r="quick-promote",i=(e,t,n="promise")=>o.lN(`${r}:${n}:${e}`,t),a=(e,t,n)=>{o.IM(`${r}:promotion:${e}:${t}:value`,{duration_ms:n,event_value:n})}},46110:(e,t,n)=>{"use strict";n.d(t,{D$:()=>a,Du:()=>c,GK:()=>l,Iv:()=>u,pz:()=>p,rl:()=>d});var o=n(2784),r=n(91584),i=n(35210);const a=(e,t,n)=>e.retweeted_status?s(e,t):e.community_id_str&&n?l(e,n):void 0,s=(e,t)=>{if(e.retweeted_status)return{contextType:i.Z.Retweet,isSelfRetweet:e.user.id_str===t,name:e.user.name,screenName:e.user.screen_name}},l=(e,t)=>({contextType:i.Z.Community,landingUrl:{url:`https://twitter.com/i/communities/${t.id_str}`,urlType:"ExternalUrl"},text:t.name}),c=({isCellWithProminentSocialContext:e,socialContext:t,topic:n})=>{if(null!=t&&t.topicContext){const o=t.topicContext;return{contextType:e?i.Z.TextOnly:i.Z.Topic,landingUrl:{url:`twitter://topics_timeline?id=${o.topicId}`,urlType:"DeepLink"},text:null==n?void 0:n.name,topicContext:o}}if(null!=t&&t.generalContext)return{...t.generalContext}},d=e=>{const{contextType:t,landingUrl:n,text:o}=e;return{link:n?(0,r.s9)(n):void 0,text:o,contextType:t}},u={contextType:i.Z.Pin,text:""},p=o.createContext(void 0)},32789:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o=Object.freeze({Cell:"Cell",Hero:"Hero",CellWithProminentSocialContext:"CellWithProminentSocialContext"})},37985:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const o=Object.freeze({FocalTweet:"FocalTweet"}),r=Object.freeze({...o,DeprecatedMediaFocus:"DeprecatedMediaFocus",EmphasizedPromotedTweet:"EmphasizedPromotedTweet",MapCardPromotedTweet:"MapCardPromotedTweet",Media:"Media",MomentTimelineTweet:"MomentTimelineTweet",QuotedTweet:"QuotedTweet",ReaderMode:"ReaderMode",ReaderModeRoot:"ReaderModeRoot",SelfThread:"SelfThread",Tweet:"Tweet",TweetFollowOnly:"TweetFollowOnly",TweetWithoutCard:"TweetWithoutCard",CondensedTweet:"CondensedTweet"}),i=r},34590:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o=Object.freeze({User:"User",ProfileCard:"ProfileCard",UserCompact:"UserCompact",UserConcise:"UserConcise",UserDetailed:"UserDetailed",PendingFollowUser:"PendingFollowUser"})},78884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o=Object.freeze({ARROW_RIGHT:"ARROW_RIGHT",BALLOON_STROKE:"BALLOON_STROKE",BOOKMARK:"BOOKMARK",CALENDAR:"CALENDAR",DEBUG:"DEBUG",ERROR:"ERROR",EYE_OFF:"EYE_OFF",FEEDBACK_CLOSE:"FEEDBACK_CLOSE",FEEDBACK:"FEEDBACK",FLAG:"FLAG",FOLLOW:"FOLLOW",FROWN:"FROWN",HELP:"HELP",LINK:"LINK",LOCATION_STROKE:"LOCATION_STROKE",LOGO:"LOGO",MESSAGE:"MESSAGE",MODERATION:"MODERATION",MOMENT:"MOMENT",NO:"NO",NOTIFICATIONS_FOLLOW:"NOTIFICATIONS_FOLLOW",OUTGOING:"OUTGOING",PERSON_STROKE:"PERSON_STROKE",PERSON:"PERSON",PIN:"PIN",RETWEET:"RETWEET",SAFETY:"SAFETY",SMILE:"SMILE",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER:"SPEAKER",TOPIC_CLOSE:"TOPIC_CLOSE",TOPIC_FILLED:"TOPIC_FILLED",TOPIC:"TOPIC",TRASHCAN:"TRASHCAN",UNFOLLOW:"UNFOLLOW"})},40666:(e,t,n)=>{"use strict";n.d(t,{NA:()=>o,pI:()=>r,sv:()=>i});const o=Object.freeze({TopicTile:"topicTile"}),r=Object.freeze({SingleStateDefault:"SingleStateDefault",DoubleStateDefault:"DoubleStateDefault"}),i=Object.freeze({Pivot:"Pivot",Recommendation:"Recommendation"})},21906:(e,t,n)=>{"use strict";n.r(t),n.d(t,{richScribeAction:()=>d});var o=n(53223),r=n(15579),i=n(76275),a=n(30102),s=n(57659);const l=[],c=Object.freeze({}),d=(e,t=c)=>(n,r,{scribe:i})=>{const a=r(),s=Array.isArray(t.items)?(0,o.Z)(t.items.map((e=>p(e,a)))):l,c={...t,items:s};i.log(e,c)},u=e=>{if(e.disclosure_type&&e.impression_id)return{disclosure_type:e.disclosure_type,impression_id:e.impression_id}},p=(e,t)=>{if(!e.id)return e;switch(e.item_type){case r.Z.ItemType.USER:{const n=s.ZP.select(t,e.id),o=u(e);return n?{...e,...i.Z.getUserItem(n,o)}:e}case r.Z.ItemType.TWEET:{const n=a.ZP.selectHydrated(t,e.id),o=u(e);return n?{...e,...i.Z.getTweetItem(n,o,void 0,void 0,e)}:null}default:return e}}},29022:(e,t,n)=>{"use strict";n.d(t,{A7:()=>r,Nw:()=>i,Yf:()=>o});const o="instreamVideo",r=`rweb/${o}`,i=Object.freeze({TIMELINE_HOME:"TIMELINE_HOME",SEARCH_TWEETS:"SEARCH_TWEETS",PROFILE_TWEETS:"PROFILE_TWEETS",OTHER:"OTHER"})},74094:(e,t,n)=>{"use strict";n.d(t,{jc:()=>C,Q3:()=>P,C:()=>S});n(71372),n(36728);var o=n(13313),r=n(52612),i=n(26853),a=n(23803),s=n(30102),l=n(29022),c=n(22685),d=n(81133);function u(e){if(null==e)return null;const t=function(e){var t;const{card:n,extended_entities:o={}}=e,r=!(null==(t=o.media)||!t.length)&&o.media.some((e=>{const t=e.additional_media_info;return t&&t.monetizable})),i=c.Z.hasMixedMedia(e);return{hasMonetizableMedia:r,hasMultipleMediaItems:i,hasAmplifyCard:!!n&&n.name===d.Z.CardNames.AMPLIFY&&!0===d.Z.getBindingValue(n.binding_values,"dynamic_ads"),hasPeriscopeCard:(null==n?void 0:n.name)===d.Z.CardNames.PERISCOPE_BROADCAST,hasBroadcastCard:(null==n?void 0:n.name)===d.Z.CardNames.BROADCAST,hasEventCard:!!n&&n.name===d.Z.CardNames.LIVE_EVENT&&("video"===d.Z.getBindingValue(n.binding_values,"media_type")||"broadcast"===d.Z.getBindingValue(n.binding_values,"media_type"))}}(e),n=(o=t).hasMonetizableMedia||o.hasAmplifyCard||o.hasPeriscopeCard||o.hasBroadcastCard||o.hasEventCard;var o;const r=n&&function(e){const t=e.hasAmplifyCard||e.hasPeriscopeCard||e.hasBroadcastCard||e.hasEventCard;return e.hasMonetizableMedia&&!t}(t),{hasMultipleMediaItems:i}=t;return{hasMultipleMediaItems:i,legacy:n,redesign:r}}n(6886);var p=n(1206),h=n(63140),m=n(23335),g=n(53392);const b="FETCH_PREROLLS",y=(0,g.dg)(l.A7,b);function f(e){const t={},n={};return Array.isArray(e.video_analytics_scribe)&&e.video_analytics_scribe.length&&e.video_analytics_scribe.forEach((e=>{t[e.tweet_id]=e.video_analytics_scribe_passthrough})),Array.isArray(e.prerolls)&&e.prerolls.length&&e.prerolls.forEach((e=>{e.media_info&&(n[e.tweet_id]={...e,videoAnalyticsScribePassthrough:t[e.tweet_id]})})),n}function _(e,t,n,o,r){if(!Array.isArray(e)||0===e.length)return Promise.resolve();let i=[];const a=[i];return e.forEach((e=>{10===i.length&&(i=[],a.push(i)),i.push(e)})),Promise.all(a.map((e=>function(e,t,n,o,r){if(!Array.isArray(e)||0===e.length)return Promise.resolve();const i={eligibleTweets:e,prerollDisplayLocation:r};t&&(i.trigger_preroll=t);const a=(0,g._O)(n,{request:o.Prerolls.fetch,params:i}),s=n((0,m.createLocalApiErrorHandlerWithContextFactory)(b)({showToast:!1,[h.ZP.AccessDeniedByBouncer]:{customAction:p.Z}}));return a({actionTypes:y,context:"FETCH_PREROLLS"}).catch(s)}(e,t,n,o,r)))).then((e=>{let t={};e.forEach((e=>{e&&e.prerolls&&(t={...t,...f(e)})}));const o={type:C,payload:{...{dynamicIVCollection:t},prerollDisplayLocation:r}};n(o)}))}const v={fetchStatus:a.ZP.NONE,eligibleTweets:[],promotedMetadataCollection:{},prerollMetadataCollection:{},dynamicIVCollection:{},prerollEligibilityCollection:{}},w="rweb/instreamVideo/DYNAMIC_RESET",E="rweb/instreamVideo/STORE_METADATA",C="rweb/instreamVideo/DYNAMIC_STORE",T={[l.Nw.OTHER]:v};i.Z.register({[l.Yf]:function(e=T,t){switch(t.type){case E:if(t.payload){const{eligibleTweets:n,prerollDisplayLocation:o,prerollEligibilityCollection:r,prerollMetadataCollection:i,promotedMetadataCollection:a}=t.payload;return{...e,[o]:{...v,...e[o],eligibleTweets:n,prerollMetadataCollection:i,promotedMetadataCollection:a,prerollEligibilityCollection:r}}}break;case C:if(t.payload){const{dynamicIVCollection:n,prerollDisplayLocation:o}=t.payload;return{...e,[o]:{...v,...e[o],dynamicIVCollection:n}}}break;case w:if(t.payload){const{prerollDisplayLocation:n}=t.payload;return{...e,[n]:{...v,...e[n],dynamicIVCollection:{}}}}break;default:return e}return e}});function S(e,t=l.Nw.OTHER){return(n,o,{api:i,featureSwitches:a})=>{if(!Array.isArray(e))throw new Error("unable to fetch prerolls without timeline entries");if(e.length<1)return Promise.resolve();const l=o(),c=[],d={},p={},h={};e.forEach((e=>{var t;if(!e.content||e.type!==r.ZP.Tweet)return;const n=e.content,o=s.ZP.selectHydrated(l,n.id);if(!o)return;const i=o,{prerollMetadata:a,promotedMetadata:m}=n;if(m){const{adMetadataContainer:e,disclosureType:t,impressionId:n}=m;i.promoted_content={adMetadataContainer:e,disclosure_type:t,impression_id:n},p[i.id_str]=m}const g=u(i),b=g&&g.hasMultipleMediaItems;h[i.id_str]=g,null!=a&&null!=(t=a.preroll)&&t.mediaInfo&&!b&&(d[i.id_str]=a),null!=g&&g.legacy&&!b&&c.push(i)}));n({type:E,payload:{...{eligibleTweets:c,prerollMetadataCollection:d,promotedMetadataCollection:p,prerollEligibilityCollection:h,prerollDisplayLocation:t}}});return _(c.filter((e=>void 0===d[e.id_str])),null,n,i,t)}}function P(e,t=l.Nw.OTHER){return(n,r,{api:i,featureSwitches:a})=>{if(e){const a=((e,t)=>e[l.Yf][t]||v)(r(),t),{dynamicIVCollection:s,eligibleTweets:c,prerollEligibilityCollection:d,prerollMetadataCollection:u,promotedMetadataCollection:p}=a,h=s[e],m=p[e],g=d[e];if(h){n({type:w,payload:{prerollDisplayLocation:t}});const{dynamic_preroll_type:e,preroll_id:r}=h;return _(c,{preroll_id:r,dynamic_preroll_type:e},n,i,t),function(e,t,n,r){const i={adId:t.preroll_id,advertiserName:null,advertiserProfileImageUrl:null,mediaInfo:{call_to_action:null,duration_millis:t.media_info.duration_millis,publisher_id_str:t.media_info.publisher_id_str,variants:t.media_info.variants},promotedContent:{impressionId:void 0,disclosureType:void 0},videoAnalyticsScribePassthrough:t.videoAnalyticsScribePassthrough};if(t.promoted_content&&!n&&(i.promotedContent.impressionId=t.promoted_content.impression_id,i.promotedContent.disclosureType=t.promoted_content.disclosure_type),t.media_info.call_to_action){const{type:e,url:r}=t.media_info.call_to_action,a=(0,o.b)(r,null==n?void 0:n.clickTrackingInfo),s=null!=n&&n.clickTrackingInfo?{original_url:r,embedded_url:a,click_tracking_info:n.clickTrackingInfo,embed_status:(0,o.R)(r,n.clickTrackingInfo)}:void 0;i.mediaInfo.call_to_action={type:e,url:a,click_tracking_embed_details:s}}if(t.media_info.render_ad_by_advertiser_name){const{advertiser_name:e,advertiser_profile_image_url:n}=t.media_info;i.advertiserName=e,i.advertiserProfileImageUrl=n}if(null!=r&&r.redesign){i.shouldAutoAdvance=!1,i.useRedesignedPrerollUx=!0;const{advertiser_name:e,advertiser_profile_image_url:n}=t.media_info;i.advertiserName=e,i.advertiserProfileImageUrl=n}return i}(0,h,m,g)}const b=u[e];if(b){const e=function(e,t,n,r){if(!t.preroll||!t.preroll.mediaInfo)return null;const{mediaInfo:i,prerollId:a}=t.preroll,s=i.videoVariants.map((e=>({url:e.url,content_type:e.contentType,bitrate:e.bitrate}))),l={adId:a,advertiserName:null,advertiserProfileImageUrl:null,mediaInfo:{call_to_action:void 0,duration_millis:i.durationMillis,publisher_id_str:i.publisherId,variants:s},promotedContent:{impressionId:void 0,disclosureType:void 0},videoAnalyticsScribePassthrough:null};if(i.callToAction){const{type:e,url:t}=i.callToAction,r=(0,o.b)(t,null==n?void 0:n.clickTrackingInfo),a=null!=n&&n.clickTrackingInfo?{original_url:t,embedded_url:r,click_tracking_info:n.clickTrackingInfo,embed_status:(0,o.R)(t,n.clickTrackingInfo)}:void 0;l.mediaInfo.call_to_action={type:e,url:r,click_tracking_embed_details:a}}if(i.renderAdByAdvertiserName){const{advertiserName:e,advertiserProfileImageUrl:t}=i;l.advertiserName=e,l.advertiserProfileImageUrl=t}if(null!=r&&r.redesign){l.shouldAutoAdvance=!1,l.useRedesignedPrerollUx=!0;const{advertiserName:e,advertiserProfileImageUrl:t}=i;l.advertiserName=e,l.advertiserProfileImageUrl=t}return l}(0,b,m,g);if(e)return e}}return{}}}},19854:(e,t,n)=>{"use strict";n.d(t,{Z:()=>F});n(6886),n(71372),n(36728);var o=n(24949),r=n(90867),i=n(53223),a=n(72610),s=n(24630),l=n(5255),c=n(52612),d=n(1231),u=n(52630),p=n(53392),h=n(51670),m=n(29122),g=n(91191),b=n(90308),y=n(33689),f=n(67935),_=n(25637),v=n(85171),w=n(95525),E=n(94769),C=n(63953),T=n(57659),S=n(34958);const P=p.dg("lists","UPLOAD_MEDIA"),Z=p.dg("lists","UPDATE_MEDIA"),I=(0,m.ZP)({namespace:"lists"}),k=(0,m.tb)(I,{context:"FETCH_LIST",endpoint:e=>e.Lists.fetchList,params:([e],t)=>{if(e)return{list_id:e};if(t.slug&&t.screenName)return{slug:t.slug,owner_screen_name:t.screenName};throw new Error("listId or screenName and slug required to fetch list")}}),x=e=>d.WE({displayType:u.P.List,id:e,sortIndex:Date.now().toString()}),A=e=>d.$0({id:e,sortIndex:Date.now().toString()}),L=(e,t)=>t&&t.entities?[(0,h.dP)(t.entities)]:[],R=(0,o.P1)(I.select,(e=>e),((e,t)=>{if(e){const{full_name:n,user:o}=e;if(n)return n.split("/")[0].substr(1);if(o){const e=T.ZP.select(t,o);return null==e?void 0:e.screen_name}}})),D={selectByKey:(0,o.P1)(I.selectAll,((e,t)=>t),(e=>e),((e,t,n)=>e?(0,r.Z)(e).find((e=>{if(e){const o=B.selectListAuthorScreenName(n,e.id_str);return(o&&(0,a.Z)(o,e.slug))===t}})):void 0)),selectListKeyById:(0,o.P1)(I.select,R,((e,t)=>e&&t&&(0,a.Z)(t,e.slug))),selectLocalMediaId:(0,o.P1)(I.select,(e=>null==e?void 0:e.mediaId))},M={addMultipleUsersToList:(0,m.Tx)(I,"addMultipleUsersToList",{getParams:(e,{userIds:t}={})=>({list_id:e,user_id:t.join(",")}),getApiMethod:e=>e.Lists.addMultipleToList,context:"ADD_MULTIPLE_USERS_TO_LIST",mapResponseToActions:(e,t,n)=>o=>{if(o){const o=I.select(n(),e),r=(0,v.Z)(e),a=x(d.Re(e)),s=[];return t.userIds.forEach((t=>{s.push(S.Hi({addTo:t,itemsToAdd:[e]})),s.push((0,w.Z)(t).injectEntry(a)),s.push(r.injectEntry(A(t)))})),o&&s.push(I.updateOne(e,{member_count:o.member_count+t.userIds.length})),(0,i.Z)(s)}}}),addUserToList:(0,m.Tx)(I,"addUserToList",{getParams:(e,{userId:t}={})=>({list_id:e,user_id:t}),getApiMethod:e=>e.Lists.addToList,context:"ADD_USER_TO_LIST",mapResponseToActions:(e,{shouldInjectURTEntry:t=!0,userId:n},o)=>r=>{const i=B.select(o(),e);if(null==r||!r.entities||!i)return[];const a=x(d.Re(e)),s=(0,v.Z)(e),l=(0,w.Z)(n),c=[I.updateOne(e,{member_count:i.member_count+1}),S.Hi({addTo:n,itemsToAdd:[e]}),l.injectEntry(a)];if(t){const e=A(n);c.push(s.injectEntry(e))}return c}}),deleteList:(0,m.Tx)(I,"deleteList",{getParams:e=>({list_id:e}),getApiMethod:e=>e.Lists.deleteList,context:"DELETE_LIST",mapResponseToActions:(e,t,n)=>t=>{const o=n(),r=(0,s.qP)(o),i=I.select(o,e),a=(0,f.o1)(o);if(!i||!a)return[];const l=d.Re(e),c=(0,E.Z)(a,a);return[...(0,y.Ah)(i,n),c.removeEntry(l),(0,_.uh)(r,"ownedSubscribedListModule",e)]}}),deleteListMedia:(0,m.Tx)(I,"deleteListMedia",{getParams:e=>({listId:e}),getApiMethod:e=>e.Lists.deleteBannerImage,context:"DELETE_LIST_MEDIA",mapResponseToActions:(e,t,n)=>t=>t&&t.entities?[I.updateOne(e,{customBanner:void 0})]:[]}),editList:(0,m.Tx)(I,"editList",{getParams:(e,{description:t,mode:n,name:o}={})=>({description:t,list_id:e,mode:n,name:o}),getApiMethod:e=>e.Lists.editList,context:"EDIT_LIST",mapResponseToActions:(e,t,n)=>e=>L(0,e)}),removeUserFromList:(0,m.Tx)(I,"removeUserFromList",{getParams:(e,{userId:t}={})=>({list_id:e,user_id:t}),getApiMethod:e=>e.Lists.removeFromList,context:"REMOVE_USER_FROM_LIST",mapResponseToActions:(e,{shouldRemoveURTEntry:t=!0,userId:n},o)=>r=>{if(null!=r&&r.entities){const r=I.select(o(),e),i=(0,v.Z)(e),a=(0,w.Z)(n),s=[S.pO({removeFrom:n,itemToRemove:e}),a.removeEntry(d.Re(e))];return r&&s.push(I.updateOne(e,{member_count:r.member_count-1})),t&&s.push(i.removeEntry(d._Y(n))),s}return[]}}),subscribe:(0,m.Tx)(I,"subscribe",{getParams:e=>({list_id:e}),getApiMethod:e=>e.Lists.createSubscribers,canPerformAction:(e={})=>e&&!e.following,context:"SUBSCRIBE_TO_LIST",mapResponseToActions:(e,t,n)=>t=>{const o=n(),r=(0,s.qP)(o),i=I.select(o,e),a=(0,f.o1)(o);if(!i||!a||null==t||!t.entities)return[];const l=A(a),c=(0,C.Z)(e);return[I.updateOne(e,{following:!0,subscriber_count:i.subscriber_count+1}),c.injectEntry(l),(0,_.s8)(r,"ownedSubscribedListModule",e)]}}),toggleMute:(0,m.Tx)(I,"toggleMute",{getParams:(e,{mute:t}={})=>({listId:e,mute:t}),getApiMethod:e=>e.Lists.toggleMute,canPerformAction:(e={})=>!!e,context:"LIST_TOGGLE_MUTE",mapResponseToActions:(e,t,n)=>o=>{const r=n(),i=I.select(r,e),a=(0,f.o1)(r);return i&&a&&i.muting!==t.mute&&o?[I.updateOne(e,{muting:t.mute})]:[]}}),togglePinList:(0,m.Tx)(I,"togglePinList",{getParams:(e,{isPinned:t}={})=>({listId:e,isPinned:t}),getApiMethod:e=>e.Lists.togglePinList,canPerformAction:e=>!!e,context:"TOGGLE_PINNED_LIST",mapResponseToActions:(e,t,n)=>o=>{const r=n(),i=(0,s.qP)(r),a=I.select(r,e),l=(0,f.o1)(r),c=[];if(a&&l&&o){const o=t.isPinned;c.push(I.updateOne(e,{pinning:!o}));const s=(0,y.Hm)(r)||0;o?c.push(...(0,y.Ah)(a,n)):(c.push((0,y.OP)([...(0,y.Vm)(r),e])),c.push((0,y.tx)(s+1)),c.push((0,_.s8)(i,_.tN.pinnedListModule,e)))}return c}}),unsubscribe:(0,m.Tx)(I,"unsubscribe",{getParams:e=>({list_id:e}),getApiMethod:e=>e.Lists.destroySubscribers,canPerformAction:(e={})=>e&&!!e.following,context:"UNSUBSCRIBE_FROM_LIST",mapResponseToActions:(e,t,n)=>t=>{const o=n(),r=(0,s.qP)(o),i=I.select(o,e),a=(0,f.o1)(o);if(!i||!a||null==t||!t.entities)return[];const l=(0,C.Z)(e);return[...(0,y.Ah)(i,n),(0,_.uh)(r,"ownedSubscribedListModule",e),I.updateOne(e,{following:!1,subscriber_count:i.subscriber_count-1,pinning:!1}),l.removeEntry(d._Y(a))]}})},O={addLocalMediaId:({listId:e,mediaId:t})=>(n,o,{api:r})=>{n((0,h.dP)({lists:{[e]:{mediaId:t}}}))},createList:e=>(t,n,{api:o,featureSwitches:r})=>p._O(t,{request:o.Lists.createList,params:e})({actionTypes:I.actionTypes.CREATE,context:"CREATE_LIST"},(e=>{const t=(0,f.o1)(n());if(e&&t){const{result:n}=e,o=x(n),a=(0,E.Z)(t,t);return(0,i.Z)([e.entities&&(0,h.dP)(e.entities),a.injectEntry(o),(0,_.s8)(r,"ownedSubscribedListModule",n)])}return[]})).then((e=>{var t;return(null==e||null==(t=e.entities)?void 0:t.lists)&&e.entities.lists[e.result]})),editListMedia:({iconCrop:e,listId:t,mediaId:n})=>(o,r,{api:i})=>{const a=e?(0,l.U$)(e):void 0;o({type:P.REQUEST});const s=b.$i(n,{extraInitParams:a});return o(s).then((([e])=>{const n=e.uploadId;if(n){o([{type:P.SUCCESS},{type:Z.REQUEST}]);const e=e=>L(0,e);return p._O(o,{request:i.Lists.editBannerImage,params:{listId:t,mediaId:n}})({actionTypes:I.actionTypes.OPTIMISTIC_UPDATE,context:"EDIT_LIST_MEDIA"},e)}return o({type:P.FAILURE}),Promise.reject(new Error("List media upload failed - no uploadId"))}),(e=>(o({type:P.FAILURE}),Promise.reject(e))))},removeLocalMediaId:e=>(t,n)=>{t(I.updateOne(e,{mediaId:void 0}))},toggleIsMember:({listId:e,targetUserId:t})=>(n,o,{api:r})=>{const i=o(),a=(0,f.o1)(i);if(!a)return;const s=(0,E.Z)(a,t),l=s.selectEntries(i),u=d.Re(e),p=l.find((e=>e.entryId===u));if(p&&p.type===c.ZP.TwitterList){const e=p.content.isMember;return n(s.updateEntry(u,{isMember:!e}))}}},B={...I,...k,selectListAuthorScreenName:R,...D,...M,...O},F=g.Z.register(B)},34958:(e,t,n)=>{"use strict";n.d(t,{Hi:()=>f,NU:()=>v,pO:()=>_,g$:()=>y});n(6886);var o=n(3614),r=n(26853),i=n(53392),a=n(23803),s=n(51670),l=n(16025);const c=Object.freeze({REQUEST:"rweb/lists/FETCH_LISTMEMBERSHIPS_REQUEST",SUCCESS:"rweb/lists/FETCH_LISTMEMBERSHIPS_SUCCESS",FAILURE:"rweb/lists/FETCH_LISTMEMBERSHIPS_FAILURE"}),d="rweb/lists/LISTMEMBERSHIPS_ADD_UPDATE",u="rweb/lists/LISTMEMBERSHIPS_REMOVE_UPDATE",p="listMemberships",h=[],m=Object.freeze({}),g=Object.freeze({data:{lists:[]},error:null,fetchStatus:{[l.Yj.BOTTOM]:a.ZP.NONE,[l.Yj.TOP]:a.ZP.NONE}});const b=(e,t)=>e.listMemberships[t],y=(e,t)=>{var n;const o=b(e,t);return(null==o||null==(n=o.data)?void 0:n.lists)||h},f=({addTo:e,itemsToAdd:t})=>({payload:{key:e,items:t},type:d}),_=({itemToRemove:e,removeFrom:t})=>({payload:{key:t,item:e},type:u}),v=(e,t)=>(n,o)=>{const r=o(),d=b(r,e),u=((e,t)=>{const n=b(e,t),o=y(e,t);return n?(0,a.ke)(n.fetchStatus,!!o.length):a.ZP.NONE})(r,e);return!d||u!==a.ZP.LOADING&&u!==a.ZP.LOADED?n(((e,t)=>(n,o,{api:r})=>(0,i._O)(n,{params:t,request:r.Lists.fetchMemberships})({actionTypes:c,context:"LIST_MEMBERSHIPS",meta:{direction:t.cursor?l.Yj.BOTTOM:l.Yj.TOP,key:e}},(e=>{if(e){const{entities:t}=e;return t?[(0,s.dP)(t)]:void 0}})))(e,t)):Promise.resolve()};r.Z.register({[p]:function(e=m,t){switch(t.type){case c.REQUEST:{const{direction:n,key:o}=t.meta,r=e[o]||g,i={...r.fetchStatus};return i[n]=a.ZP.LOADING,{...e,[o]:{...r,fetchStatus:i}}}case c.SUCCESS:{var n,r,i;const{direction:s,key:l}=t.meta,c=e[l]||g,d={...c.fetchStatus};d[s]=a.ZP.LOADED;const u=(null==(n=t.payload)||null==(r=n.result)?void 0:r.lists)||[],p=(0,o.Z)([...c.data.lists,...u]);return{...e,[l]:{...c,data:{...Object.assign({},null==(i=t.payload)?void 0:i.result,c.data),lists:p},error:null,fetchStatus:d}}}case c.FAILURE:{const{direction:n,key:o}=t.meta,r={...(e[o]||g).fetchStatus};return r[n]=a.ZP.FAILED,{...e,[o]:{...e[o],error:t.payload,fetchStatus:r}}}case d:{const{items:n,key:r}=t.payload||{},i=e[r]||g,a=i.data&&i.data.lists||[],s=(0,o.Z)([...n,...a]);return{...e,[r]:{...i,data:{...i.data,lists:s}}}}case u:{const{item:n,key:o}=t.payload||{},r=e[o]||g,i=r.data&&r.data.lists||[];return{...e,[o]:{...r,data:{...r.data,lists:i.filter((e=>n!==e))}}}}default:return e}}})},33689:(e,t,n)=>{"use strict";n.d(t,{Ah:()=>Z,Cs:()=>P,Hm:()=>m,OP:()=>I,Pu:()=>b,Rj:()=>_,Vm:()=>g,c9:()=>y,tx:()=>S});n(6886),n(36728);var o=n(53223),r=n(24630),i=n(52612),a=n(26853),s=n(53392),l=n(23803),c=n(51670),d=n(25637);const u="pinnedLists",p=Object.freeze([]),h=Object.freeze({REQUEST:"rweb/pinnedLists/FETCH_REMOTE_PINS_REQUEST",SUCCESS:"rweb/pinnedLists/FETCH_REMOTE_PINS_SUCCESS",FAILURE:"rweb/pinnedLists/FETCH_REMOTE_PINS_FAILURE"}),m=e=>e.pinnedLists.count,g=e=>e.pinnedLists.remote||p,b=()=>(e,t)=>{var n;const o=t(),a=(0,r.qP)(o),s=(0,d.ZP)(a).selectEntries(o).filter((e=>e.entryId===d.tN.pinnedListModule))[0],l=s.type===i.ZP.TimelineModule&&(null==s||null==(n=s.content)?void 0:n.items);if(l){const t=l.map((e=>e.type===i.ZP.TwitterList?e.content.id:void 0)).filter(Boolean);e(I(t)),e(T({count:t.length}))}},y=e=>m(e),f=Object.freeze({remote:void 0,count:0,fetchStatus:l.ZP.NONE});const _=()=>(e,t)=>{const n=t().pinnedLists.fetchStatus;return n===l.ZP.LOADING||n===l.ZP.LOADED?Promise.resolve():e(((e,t,{api:n})=>s._O(e,{request:n.Lists.fetchPins})({actionTypes:h,context:"FETCH_REMOTE_PINS"},(e=>e?(0,o.Z)([e.entities&&(0,c.dP)(e.entities),I(e.result),e.result&&T({count:e.result.length})]):[E({remote:null})]))))},v=s.dg("rweb/pinnedLists","PIN_MANY_REMOTE_LISTS"),w="rweb/pinnedLists/UPDATE_PINNED_LIST",E=e=>({payload:e,type:w}),C="rweb/pinnedLists/SET_COUNT",T=e=>({payload:e,type:C}),S=e=>T({count:e}),P=e=>(t,n)=>t((e=>(t,n,{api:r,featureSwitches:i})=>s._O(t,{request:r.Lists.pinManyLists,params:{listIds:e}})({actionTypes:v,context:"PIN_MANY_REMOTE_LISTS"},(t=>{const n=e.map((e=>(0,d.uh)(i,d.tN.pinnedListModule,e))),r=e.map((e=>(0,d.s8)(i,d.tN.pinnedListModule,e)));return t?(0,o.Z)([...n,t.entities&&(0,c.dP)(t.entities),I(t.result),...r]):[]})))(e)),Z=(e,t)=>{const n=t(),o=(0,r.qP)(n),i=e.id_str,a=[];if(e.pinning){const e=((e,t)=>e.filter((e=>t!==e)))(g(n),i),t={remote:e},r=m(n);a.push(E(t)),a.push((0,d.uh)(o,d.tN.pinnedListModule,i)),r&&a.push(S(r-1))}return a},I=e=>E({remote:e});a.Z.register({[u]:function(e=f,t){switch(t.type){case h.REQUEST:return{...e,fetchStatus:l.ZP.LOADING};case h.FAILURE:return{...e,error:t.payload,fetchStatus:l.ZP.FAILED};case h.SUCCESS:return{...e,error:null,fetchStatus:l.ZP.LOADED};case w:return{...e,...t.payload,fetchStatus:l.ZP.LOADED};case C:return{...e,...t.payload};default:return e}}})},14854:(e,t,n)=>{"use strict";n.d(t,{$L:()=>d.$L,A_:()=>re,Co:()=>ye,DA:()=>ve,DY:()=>j,Dg:()=>ee,E6:()=>d.E6,Ek:()=>d.Ek,Ik:()=>be,Jk:()=>d.Jk,Ku:()=>fe,LK:()=>d.LK,L_:()=>V,P6:()=>Q,PU:()=>pe,QE:()=>U,Uc:()=>K,Um:()=>ue,WS:()=>d.WS,XJ:()=>q,Yr:()=>W,Yv:()=>J,_B:()=>he,au:()=>Y,b2:()=>ie,br:()=>d.br,fN:()=>d.fN,g_:()=>le,gp:()=>d.gp,hI:()=>te,hs:()=>$,k6:()=>X,kb:()=>d.kb,kn:()=>me,l$:()=>oe,mS:()=>_e,ni:()=>ae,oE:()=>d.oE,oo:()=>G,pY:()=>de,p_:()=>se,qA:()=>ge,qL:()=>d.qL,rS:()=>ce,rb:()=>we,sN:()=>d.sN,yW:()=>d.c7,zu:()=>ne});n(6886);var o=n(71768),r=n(24797),i=n(26853),a=n(53392),s=n(23803),l=n(67935),c=n(90465),d=n(10531);const u={account:{adsAccount:null,accountDataFetchStatus:s.ZP.NONE,fundingInstruments:[],selectedFundingInstrument:null,campaigns:null},targeting:{initialTargetedLocationsFetchStatus:s.ZP.NONE,targetedLocations:[],locationQuery:"",ageBucket:c.s.AGE_OVER_13,gender:c.Y0.Any},budget:{errorMessage:null,dailyBudget:100,durationDays:5,availableBudgets:null,availableBudgetsFetchStatus:s.ZP.NONE,currency:null},eligibility:{},coupons:void 0,couponsFetchStatus:s.ZP.NONE,enrollCouponStatus:s.ZP.NONE,enrollCouponErrorCode:null,firstLoad:!1,paymentMethods:[],selectedPaymentMethod:null,paymentMethodsFetchStatus:s.ZP.NONE,promoteStatus:s.ZP.NONE,promoteErrorCode:null,objective:c.CH.Engagements},p="rweb/quickPromote/account/set",h="rweb/quickPromote/account/setAdsAccount",m="rweb/quickPromote/account/setFundingInstruments",g="rweb/quickPromote/account/setCampaigns",b="rweb/quickPromote/account/setSelectedFundingInstrument",y="rweb/quickPromote/account/setAccountDataFetchStatus",f="rweb/quickPromote/targeting/set",_="rweb/quickPromote/targeting/setLocationQuery",v="rweb/quickPromote/targeting/setInitialTargetedLocationsFetchStatus",w="rweb/quickPromote/targeting/setTargetedLocations",E="rweb/quickPromote/targeting/setTargetedAgeBucket",C="rweb/quickPromote/targeting/setTargetedGender",T="rweb/quickPromote/budget/set",S="rweb/quickPromote/budget/setAvailableBudgetsFetchStatus",P="rweb/quickPromote/budget/setAvailableBudgets",Z="rweb/quickPromote/budget/setDailyBudget",I="rweb/quickPromote/budget/setBudgetDuration",k="rweb/quickPromote/budget/setBudgetErrorMessage",x="rweb/quickPromote/budget/setObjective",A="rweb/quickPromote/setCouponsFetchStatus",L="rweb/quickPromote/setCoupons",R="rweb/quickPromote/setEnrollCouponStatus",D="rweb/quickPromote/setEnrollCouponErrorCode",M="rweb/quickPromote/eligibility",O="rweb/quickPromote/setPromoteFetchStatus",B="rweb/quickPromote/setPromoteErrorCode",F="rweb/quickPromote/paymentMethods",H="rweb/quickPromote/setPaymentMethodsFetchStatus",N=Object.freeze({REQUEST:"rweb/quickPromote/eligibilityRequest",SUCCESS:"rweb/quickPromote/eligibilitySuccess",FAILURE:"rweb/quickPromote/eligibilityFailure"}),z=Object.freeze({REQUEST:"rweb/quickPromote/promoteRequest",SUCCESS:"rweb/quickPromote/promoteSuccess",FAILURE:"rweb/quickPromote/promoteFailure"}),U=e=>{var t,n;const o=(null==(t=e.quickPromote.account)||null==(n=t.adsAccount)?void 0:n.country_code)||(0,l.GG)(e)||"US";return"XX"===o?"US":o.toUpperCase()},V=e=>{const{targeting:{targetedLocations:[{targeting_value:t}],...n},budget:{currency:r,dailyBudget:i},objective:a}=e.quickPromote,s=(0,o.Z)(n,["initialTargetedLocationsFetchStatus","locationQuery"]);return JSON.stringify({...s,location:t,dailyBudget:i,currency:r,objective:a})},q=(e,t)=>{var n;return null==(n=e.quickPromote.eligibility[t])?void 0:n.eligibility},G=(e,t)=>{var n;return(null==(n=e.quickPromote.eligibility[t])?void 0:n.eligibilityFetchStatus)||s.ZP.NONE},j=e=>e.quickPromote.selectedPaymentMethod?e.quickPromote.selectedPaymentMethod:(0,r.Z)(e.quickPromote.paymentMethods)?null:e.quickPromote.paymentMethods.find((e=>e.isDefault))||e.quickPromote.paymentMethods.find((e=>"Active"===e.cardStatus))||null,W=e=>({type:f,payload:{targeting:e}}),K=e=>({type:T,payload:{budget:e}}),$=e=>({type:h,payload:{adsAccount:e}}),Q=e=>({type:g,payload:{campaigns:e}}),Y=e=>({type:m,payload:{fundingInstruments:e}}),X=e=>({type:b,payload:{selectedFundingInstrument:e}}),J=e=>({type:y,payload:{fetchStatus:e}}),ee=e=>({type:v,payload:{fetchStatus:e}}),te=e=>({type:w,payload:{targetedLocations:e}}),ne=e=>({type:_,payload:{locationQuery:e}}),oe=e=>({type:E,payload:{ageBucket:e}}),re=e=>({type:C,payload:{gender:e}}),ie=e=>({type:S,payload:{fetchStatus:e}}),ae=(e,t)=>({type:P,payload:{availableBudgets:e,currency:t}}),se=e=>({type:Z,payload:{dailyBudget:e}}),le=e=>({type:I,payload:{durationDays:e}}),ce=e=>({type:k,payload:{errorMessage:e}}),de=e=>(t,n,{api:o})=>(0,a._O)(t,{request:o.QuickPromote.getQuickPromoteEligibility,params:e})({actionTypes:N,context:"FETCH_ELIGIBILITY",meta:e}),ue=(e,t)=>({type:M,payload:{eligibility:t,tweetId:e}}),pe=e=>({type:A,payload:{fetchStatus:e}}),he=e=>({type:L,payload:{coupons:e}}),me=e=>({type:R,payload:{enrollCouponStatus:e}}),ge=e=>({type:D,payload:{enrollCouponErrorCode:e}}),be=e=>({type:O,payload:{promoteFetchStatus:e}}),ye=e=>({type:B,payload:{promoteErrorCode:e}}),fe=e=>(t,n,{api:o})=>(0,a._O)(t,{request:o.QuickPromote.createPromotion,params:e})({actionTypes:z,context:"FETCH_PROMOTE"}),_e=e=>({type:x,payload:{objective:e}}),ve=e=>({type:F,payload:{paymentMethods:e}}),we=e=>({type:H,payload:{fetchStatus:e}});i.Z.register({quickPromote:(e=u,t)=>{switch(t.type){case p:if(t.payload){const{account:n}=t.payload;return{...e,account:{...e.account,...n}}}break;case f:if(t.payload){const{targeting:n}=t.payload;return{...e,targeting:{...e.targeting,...n}}}break;case T:if(t.payload){const{budget:n}=t.payload;return{...e,budget:{...e.budget,...n}}}break;case h:if(t.payload){const{adsAccount:n}=t.payload;return{...e,account:{...e.account,adsAccount:n}}}break;case g:if(t.payload){const{campaigns:n}=t.payload;return{...e,account:{...e.account,campaigns:n}}}break;case m:if(t.payload){const{fundingInstruments:n}=t.payload;return{...e,account:{...e.account,fundingInstruments:n}}}break;case b:if(t.payload){const{selectedFundingInstrument:n}=t.payload;return{...e,account:{...e.account,selectedFundingInstrument:n}}}break;case y:if(t.payload){const{fetchStatus:n}=t.payload;return{...e,account:{...e.account,accountDataFetchStatus:n}}}break;case v:if(t.payload){const{fetchStatus:n}=t.payload;return{...e,targeting:{...e.targeting,initialTargetedLocationsFetchStatus:n}}}break;case _:if(t.payload){const{locationQuery:n}=t.payload;return{...e,targeting:{...e.targeting,locationQuery:n}}}break;case w:if(t.payload){const{targetedLocations:n}=t.payload;return{...e,targeting:{...e.targeting,targetedLocations:n}}}break;case E:if(t.payload){const{ageBucket:n}=t.payload;return{...e,targeting:{...e.targeting,ageBucket:n}}}break;case C:if(t.payload){const{gender:n}=t.payload;return{...e,targeting:{...e.targeting,gender:n}}}break;case S:if(t.payload){const{fetchStatus:n}=t.payload;return{...e,budget:{...e.budget,availableBudgetsFetchStatus:n}}}break;case P:if(t.payload){const{availableBudgets:n,currency:o}=t.payload;return{...e,budget:{...e.budget,availableBudgets:n,currency:o}}}break;case Z:if(t.payload){const{dailyBudget:n}=t.payload;return{...e,budget:{...e.budget,dailyBudget:n}}}break;case I:if(t.payload){const{durationDays:n}=t.payload;return{...e,budget:{...e.budget,durationDays:n}}}break;case k:if(t.payload){const{errorMessage:n}=t.payload;return{...e,budget:{...e.budget,errorMessage:n}}}break;case M:if(t.payload){const{eligibility:n,tweetId:o}=t.payload;return{...e,eligibility:{[o]:{...e.eligibility[o],eligibility:n}}}}break;case N.REQUEST:{const{tweetId:n}=t.meta;return{...e,eligibility:{...e.eligibility,[n]:{eligibilityFetchStatus:s.ZP.LOADING}}}}case N.FAILURE:{const{tweetId:n}=t.meta;return{...e,eligibility:{...e.eligibility,[n]:{eligibilityFetchStatus:s.ZP.FAILED}}}}case N.SUCCESS:{const{tweetId:n}=t.meta;return{...e,eligibility:{...e.eligibility,[n]:{eligibilityFetchStatus:s.ZP.LOADED,eligibility:t.payload}}}}case A:if(t.payload){const{fetchStatus:n}=t.payload;return{...e,couponsFetchStatus:n}}break;case L:if(t.payload){const{coupons:n}=t.payload;return{...e,coupons:n}}break;case x:if(t.payload){const{objective:n}=t.payload;return{...e,objective:n}}break;case O:if(t.payload){const{promoteFetchStatus:n}=t.payload;return{...e,promoteStatus:n}}break;case B:if(t.payload){const{promoteErrorCode:n}=t.payload;return{...e,promoteErrorCode:n}}break;case R:if(t.payload){const{enrollCouponStatus:n}=t.payload;return{...e,enrollCouponStatus:n}}break;case D:if(t.payload){const{enrollCouponErrorCode:n}=t.payload;return{...e,enrollCouponErrorCode:n}}break;case F:if(t.payload){const{paymentMethods:n}=t.payload;return{...e,paymentMethods:n}}break;case H:if(t.payload){const{fetchStatus:n}=t.payload;return{...e,paymentMethodsFetchStatus:n}}break;case z.REQUEST:return{...e,promoteStatus:s.ZP.LOADING};case z.FAILURE:return{...e,promoteStatus:s.ZP.FAILED};case z.SUCCESS:return{...e,promoteStatus:s.ZP.LOADED};default:return t.type,e}return e}})},10531:(e,t,n)=>{"use strict";n.d(t,{kb:()=>B,gp:()=>Y,br:()=>$,Ek:()=>V,WS:()=>W,fN:()=>K,c7:()=>j,qL:()=>F,E6:()=>U,Jk:()=>z,oE:()=>N,sN:()=>G,$L:()=>X,LK:()=>O});n(6886),n(36728),n(85940),n(71372);var o=n(79404),r=n.n(o),i=n(14854),a=n(72599),s=n(73036);function l(){const e=s.ZP.getTwitterAppVersion(),t=/TwitterAndroid/.test(s.ZP.userAgent);return!!(!t&&e&&e.major>=8&&e.minor>=84)||(!!(t&&e&&e.major>=9&&e.minor>=13)||!e)}var c=n(79768),d=n(74081),u=n(26853),p=n(53392),h=n(23803),m=n(18619);const g=Object.freeze({});function b(e,t){const n=(0,m.d)("rweb/ads/typeahead",e);return{typeaheadApiActionTypes:n,getTypeaheadResults:(o,r)=>(i,a,{api:s})=>{const l=a().ads.typeahead[e][o];if(null!=l&&l.result)return Promise.resolve(l.result);return(0,p._O)(i,{request:t(s),params:r})({actionTypes:n,context:`ADS_TYPEAHEAD_${e}`,meta:{query:o}})},reducer:(e=g,t)=>{switch(t.type){case n.REQUEST:{const{query:n}=t.meta;return{...e,[n]:{fetchStatus:h.ZP.LOADING}}}case n.FAILURE:{const{error:n,meta:{query:o}}=t;return{...e,[o]:{fetchStatus:h.ZP.FAILED,error:n}}}case n.SUCCESS:{const{meta:{query:n},payload:o}=t;return{...e,[n]:{fetchStatus:h.ZP.LOADED,result:o}}}default:return e}}}}const y=b("targetingLocation",(e=>e.AaProxy.getQueriedTargetableLocations)),f=b("forecastAudience",(e=>e.QuickPromote.getAudienceEstimate)),_={targetingLocation:y.reducer,forecastAudience:f.reducer},v={typeahead:(0,d.UY)(_)},w=(0,d.UY)(v);u.Z.register({ads:w});var E=n(30102),C=n(57659),T=n(23791),S=n(67935),P=n(99629),Z=n(90465);const I=["Eligible","EligibleWithPreviousCampaign","ReplyTweet"],k=["IneligibleNotProfessional","IneligibleNotProfessionalAndAdAccountEligible","IneligibleNotProfessionalAndAdAccountIneligible","IneligibleNotProfessionalAndPendingPayment"],x=[...I,"IneligibleCampaignPaused","IneligibleCampaignRunning","IneligibleBoostCampaignRunning","IneligibleCampaignUnderReview","IneligibleTweet"],A=e=>k.includes(e),L={NonExclusiveIo:"INSERTION_ORDER",NonExclusiveRevolvingIo:"CREDIT_LINE",AgencyCreditLine:"AGENCY_CREDIT_LINE",PartnerManaged:"PARTNER_MANAGED",CreditCard:"CREDIT_CARD"},R=r().i976aff4,D=r().ef4602ec,M="NetworkError",O=[h.ZP.LOADING,h.ZP.LOADED],B=(e,t,n,o,r)=>(a,s,{api:l,featureSwitches:d})=>{var u,p;const h=H(s()),{session:{user_id:m},quickPromote:{targeting:{ageBucket:g,gender:b,targetedLocations:[{targeting_value:y}]},budget:{currency:f,dailyBudget:_,durationDays:v},account:{selectedFundingInstrument:w},objective:C,coupons:S}}=s(),P=null==(u=s().quickPromote.account.adsAccount)?void 0:u.country_code,Z=null==(p=s().quickPromote.account.adsAccount)?void 0:p.id,I=null==w?void 0:w.id;if(O.includes(s().quickPromote.promoteStatus))return Promise.resolve();if(!Z||!m)return(0,T.hq)(r)(T.Ur.promotionError("Unauthorized")),a((0,i.Co)("Unauthorized")),Promise.resolve();if(!I)return(0,T.hq)(r)(T.Ur.promotionError("MissingFundingInstrument")),a((0,i.Co)("MissingFundingInstrument")),Promise.resolve();a((0,i.Co)(null));const k=Math.round(1e6*_),x=k*v,A=!(null==S||!S.existing_balance.length);return(0,T.hq)(r)(T.Ur.promotionCall({dailyBudgetMicros:k,totalBudgetMicros:x,ageBucket:g,gender:b,location:y,objective:C,withCoupon:A})),(0,c.zk)("fetchPromote",a((0,i.Ku)({userId:m,adsAccountId:Z,fundingInstrumentId:I,tweetId:n,budget:{daily_local_micros:`${k}`,total_local_micros:`${x}`},targeting:h,objective:C}))).catch((()=>(a((0,i.Co)(M)),(0,T.hq)(r)(T.Ur.promotionError(M)),{type:"fail"}))).then((s=>{var l,d,u;if("fail"!==s.type){var p;if("QuickPromoteError"===(null==(l=s.quick_promote_campaign_v3)?void 0:l.__typename))return a((0,i.Co)(s.quick_promote_campaign_v3.error_code)),(0,T.hq)(r)(T.Ur.promotionError((null==(p=s.quick_promote_campaign_v3)?void 0:p.error_code)||"QuickPromoteError")),a(V(m,r,!0));if("PromotionIneligible"===(null==(d=s.quick_promote_campaign_v3)?void 0:d.response_code))(0,T.hq)(r)(T.Ur.promotionError("PromotionIneligible")),a((0,i.Co)("PromotionIneligible"));else if(null!=(u=s.quick_promote_campaign_v3)&&u.response_code){const l=s.quick_promote_campaign_v3.campaign;return(0,T.hq)(r)(T.Ur.promotionSuccess(null==l?void 0:l.rest_id)),(0,c.iA)(null!=P?P:"NOWHERE",null!=f?f:"UNKNOWN-CURR",x),e.push((0,T.WS)(t,n,o,T.MN.Done)),a(E.ZP.setTweetPromotionRunning(n)),void a((0,i.Um)(n,"IneligibleCampaignRunning"))}}}))},F=(e,t)=>(n,o,{api:r})=>{var a,s;const{objective:l}=o().quickPromote,{currency:d,dailyBudget:u}=o().quickPromote.budget,p=(0,i.L_)(o()),{user_id:h}=o().session,m=null==(a=o().quickPromote.account.adsAccount)?void 0:a.id,{ageBucket:g,gender:b,targetedLocations:[{targeting_value:y}]}=o().quickPromote.targeting;if(O.includes(null==(s=o().ads.typeahead.forecastAudience[p])?void 0:s.fetchStatus)||!h||!g)return Promise.resolve();const _=Math.round(1e6*u),v=_,w=H(o());return(0,T.hq)(t)(T.Ur.audienceEstimateCall({dailyBudgetMicros:_,totalBudgetMicros:v,ageBucket:g,gender:b,location:y,objective:l})),(0,c.zk)("forecastAudience",n(f.getTypeaheadResults(p,{userId:h,adAccountId:parseInt(m,10).toString(36),tweetId:e,dailyBudgetMicros:`${_}`,totalBudgetMicros:`${v}`,currency:null!=d?d:"USD",targeting:w,objective:l}))).then((()=>{var e,n;const r=null==(e=o().ads.typeahead.forecastAudience[p])||null==(n=e.result)?void 0:n.estimatedImpressions;r?(0,T.hq)(t)(T.Ur.audienceEstimateSuccess({dailyBudgetMicros:_,totalBudgetMicros:v,ageBucket:g,gender:b,location:y,estimatedImpressions:r,objective:l})):(0,T.hq)(t)(T.Ur.audienceEstimateFail({dailyBudgetMicros:_,totalBudgetMicros:v,ageBucket:g,gender:b,location:y,objective:l}))}))};function H(e){const{ageBucket:t,gender:n,targetedLocations:o}=e.quickPromote.targeting;return{geos:o.map((({targeting_value:e})=>({location_id:e}))),age_buckets:[{age_bucket:t}],gender:{gender:n}}}const N=e=>(t,n,{userPersistence:o})=>{const{quickPromote:r}=n(),{budget:{currency:i,dailyBudget:a,durationDays:s},objective:l,targeting:{ageBucket:c,gender:d,targetedLocations:u}}=r;return o.set("rweb.quickPromoteRedirectBack",e?{platformType:e,ageBucket:c,gender:d,targetedLocations:u,dailyBudget:a,durationDays:s,objective:l,lastPersisted:(new Date).getTime(),currency:i}:null)},z=(e,t,n,o,r,a,s)=>(c,d,{featureSwitches:u,userPersistence:p})=>p.get("rweb.quickPromoteRedirectBack").catch((()=>{})).then((p=>{if(l()){const{eligibility:o}=d().quickPromote.eligibility[t]||{eligibilityFetchStatus:h.ZP.NONE,eligibility:void 0};if(A(o)){if("true"===a.pa_signup_complete)return(0,T.hq)(s)(T.Ur.professionalAccountsNotRetrieved()),void r.replace((0,T.gC)(e,t));{(0,T.hq)(s)(T.Ur.professionalAccountsSignup());const e={requested_variant:`qp-${t}-${n===T.ZV.Webview?"true":"false"}`},o=encodeURIComponent(JSON.stringify(e));return void r.replace(`/i/flow/convert_to_professional?input_flow_data=${o}`)}}if((e=>!I.includes(e))(o))return(0,T.hq)(s)(T.Ur.professionalAccountsIneligible()),void r.replace((0,T.gC)(e,t));(0,T.hq)(s)(T.Ur.professionalAccountsEligible())}if(p&&p.platformType&&p.lastPersisted&&(new Date).getTime()-p.lastPersisted<36e5){const{ageBucket:n,currency:o,dailyBudget:a,durationDays:s,gender:l,objective:u,platformType:h,targetedLocations:m}=p,{currency:g}=d().quickPromote.budget;c((0,i.mS)(u)),c((0,i.Yr)({ageBucket:n,gender:l,targetedLocations:m})),o===g?(c((0,i.Uc)({dailyBudget:a,durationDays:s})),r.replace((0,T.WS)(e,t,h,T.MN.Review))):(c((0,i.Uc)({errorMessage:R})),r.replace((0,T.WS)(e,t,h,T.MN.BudgetSelect)))}else{var m;const i=null==(m=d().quickPromote.account.campaigns)?void 0:m.length,a=u.isTrue("responsive_web_qp_intro_experiment_enabled");a&&i&&o!==T.MN.Objective?r.replace((0,T.WS)(e,t,n,T.MN.Objective)):a&&(!a||i)||o===T.MN.Intro||r.replace((0,T.WS)(e,t,n,T.MN.Intro)),i&&(0,T.hq)(s)(T.Ur.qpExperimentIntro(a))}})),U=({statusId:e})=>(t,n,{api:o,featureSwitches:r})=>{const{eligibility:a,eligibilityFetchStatus:s}=n().quickPromote.eligibility[e]||{eligibilityFetchStatus:h.ZP.NONE,eligibility:void 0};if(s===h.ZP.LOADING)return Promise.resolve();if(s===h.ZP.LOADED){const e=C.ZP.selectLoggedInUser(n()),t=!(null!=e&&e.professional),o=!(null==e||!e.professional);if(t===A(a)||o&&(e=>x.includes(e))(a))return Promise.resolve()}return(0,c.zk)("fetchQuickPromoteEligibility",t((0,i.pY)({tweetId:e})),"shared-promise")},V=(e,t,n)=>(e,t,{api:o,featureSwitches:r})=>!n&&O.includes(t().quickPromote.account.accountDataFetchStatus)?Promise.resolve():(e((0,i.Yv)(h.ZP.LOADING)),Promise.resolve().then((()=>(0,c.zk)("fetchAdsAccountForUserGraphQl",q(o)).then((t=>{if(!t)return;const{adsAccount:n,campaigns:o,fundingInstruments:r}=t;return e((0,i.hs)(n)),e((0,i.au)(r)),e((0,i.k6)(r[0]||null)),e((0,i.P6)(o)),n.isHousingAndUrbanDevelopmentLimitations&&e((0,i.l$)(Z.s.AGE_OVER_18)),Promise.resolve(e(Q(!0)))})))).then((()=>e((0,i.Yv)(h.ZP.LOADED)))).catch((t=>{throw e((0,i.Yv)(h.ZP.FAILED)),t}))),q=e=>e.QuickPromote.getAdAccounts({}).then((e=>{var t,n,o,r,i,a,s,l,c,d,u;const p=null==(t=e.quick_promote_advertiser_accounts)?void 0:t.items.filter((e=>e.country_code&&e.timezone))[0];if(!p||!p.country_code||!p.timezone)return;const{campaigns:h,country_code:m,funding_sources:g,permissions:b,perspective:y,quick_promote_needs_vat:f,rest_id:_,timezone:v}=p,w={country_code:m,id:_,timezone:v,needs_vat:!!f,isCanWriteBilling:null==(n=null==b?void 0:b.permission_set.includes("AccountAdmin"))||n,isHousingAndUrbanDevelopmentLimitations:null!=(o=null==y?void 0:y.features.includes("HousingAndUrbanDevelopmentLimitations"))&&o},E=null!=(r=null==g||null==(i=g.slice)||null==(a=i.items)||null==(s=a.map((e=>{const{credit_limit:t,currency:n,description:o,is_able_to_fund:r,is_in_app_purchase:i,rest_id:a,type:s}=e,l=(e=>{if(e)return L[e]})(s);if(a&&n&&l&&o&&r&&!1===i&&!/no payment method/.test(o)&&("CREDIT_CARD"!==l||t&&!(t<=0)))return{credit_limit_local_micro:null!=t?t:null,currency:n,description:o,id:a,type:l}})))?void 0:s.filter(Boolean))?r:[];return{adsAccount:w,fundingInstruments:E,campaigns:null!=(l=null==h||null==(c=h.slice)||null==(d=c.items)||null==(u=d.map((e=>{if(e.rest_id)return{id:e.rest_id}})))?void 0:u.filter(Boolean))?l:[]}})),G=e=>(t,n)=>{t((0,i.zu)(e));const o=(0,S.VT)(n());return(0,c.zk)("targetingLocation",t(y.getTypeaheadResults(e,{query:e,lang:o})))},j=()=>(e,t,{api:n,scribe:o})=>{if(O.includes(t().quickPromote.targeting.initialTargetedLocationsFetchStatus)||t().quickPromote.targeting.targetedLocations.length)return Promise.resolve();const r=(0,S.GG)(t())||"US",s=(0,S.VT)(t());return e((0,i.Dg)(h.ZP.LOADING)),(0,c.zk)("fetchCurrentTargetingLocation",n.AaProxy.getTargetableLocations({countryCode:r,lang:s,locationType:"COUNTRIES"}).then((e=>e.length?e:n.AaProxy.getTargetableLocations({countryCode:"US",lang:s,locationType:"COUNTRIES"}))).then((n=>{if(!n.length){const e=Error("Could not find targetable country for US!");throw(0,a.ZP)(e),e}if(t().quickPromote.targeting.targetedLocations.length)return Promise.resolve();e((0,i.hI)(n)),e((0,i.Dg)(h.ZP.LOADED))}))).catch((t=>{throw e((0,i.Dg)(h.ZP.FAILED)),t}))},W=()=>(e,t,{api:n})=>{if(O.includes(t().quickPromote.budget.availableBudgetsFetchStatus))return Promise.resolve();e((0,i.b2)(h.ZP.LOADING));const o=(0,i.QE)(t());return(0,c.zk)("fetchAvailableBudgets",n.QuickPromote.getBudgets({countryCode:o})).then((({budgets:t,currencyCode:n,defaultBudget:o})=>{e((0,i.ni)(t,n)),e((0,i.p_)(o)),e((0,i.b2)(h.ZP.LOADED))})).catch((t=>{throw e((0,i.b2)(h.ZP.FAILED)),t}))},K=e=>(t,n,{api:o,featureSwitches:r})=>{const{couponsFetchStatus:a}=n().quickPromote;return O.includes(a)?Promise.resolve():(t((0,i.PU)(h.ZP.LOADING)),(0,c.zk)("fetchCoupons",o.QuickPromote.getCoupons({}).then((n=>{t((0,i._B)(n)),t((0,i.PU)(h.ZP.LOADED)),(0,T.hq)(e)(T.Ur.fetchCouponSuccess(null==n?void 0:n.eligible_coupon))})).catch((n=>{t((0,i._B)()),t((0,i.PU)(h.ZP.LOADED)),(0,T.hq)(e)(T.Ur.fetchCouponFailed(n))}))))};const $=e=>(t,n,{api:o,featureSwitches:r})=>{const{enrollCouponStatus:a}=n().quickPromote;return O.includes(a)?Promise.resolve():(t((0,i.kn)(h.ZP.LOADING)),(0,c.zk)("enrollCoupon",o.QuickPromote.enrollCoupon({}).then((n=>{const o=n.quick_promote_enroll_coupons;if("QuickPromoteCouponEnrollmentError"===(null==o?void 0:o.__typename)){const{error_code:n}=o;t((0,i.qA)(n)),(0,T.hq)(e)(T.Ur.enrollCouponFail(n))}else if("QuickPromoteCouponEnrollmentDetails"===(null==o?void 0:o.__typename)){const r=o.available_balance,a=function(e){const t=e.quick_promote_enroll_coupons;let n;if(null!=t&&t.enrolled_coupon_v2)switch(t.enrolled_coupon_v2.__typename){case"QuickPromoteConditionalCoupon":n={type:"ConditionalCoupon",currency_code:t.enrolled_coupon_v2.currency_code,credit_amount:t.enrolled_coupon_v2.credit_amount,spend_amount:t.enrolled_coupon_v2.spend_amount};break;case"QuickPromoteStandardCoupon":n={type:"StandardCoupon",currency_code:t.enrolled_coupon_v2.currency_code,total_amount:t.enrolled_coupon_v2.total_amount};break;default:t.enrolled_coupon_v2.__typename}else null!=t&&t.enrolled_coupon&&t.enrolled_coupon.total_amount&&t.enrolled_coupon.currency_code&&(n={type:"StandardCoupon",total_amount:t.enrolled_coupon.total_amount,currency_code:t.enrolled_coupon.currency_code});return n}(n),s="ConditionalCoupon"===(null==a?void 0:a.type)?a:void 0;t((0,i._B)({existing_balance:r,pending_coupon:s})),t((0,i.qA)(null)),(0,T.hq)(e)(T.Ur.enrollCouponSuccess(a))}t((0,i.kn)(h.ZP.LOADED))})).catch((n=>{throw t((0,i.qA)(M)),(0,T.hq)(e)(T.Ur.enrollCouponFail(M)),t((0,i.kn)(h.ZP.FAILED)),n}))))},Q=e=>(t,n,{api:o,featureSwitches:r})=>{const{account:{adsAccount:a},paymentMethodsFetchStatus:s}=n().quickPromote;if(!r.isTrue("responsive_web_qp_payment_select_enabled")||!e&&O.includes(s))return Promise.resolve();if(null==a||!a.id)throw t((0,i.rb)(h.ZP.FAILED)),Error("Missing ads account id");return t((0,i.rb)(h.ZP.LOADING)),(0,c.zk)("fetchPaymentMethods",o.QuickPromote.getPaymentMethods({ads_account_id:parseInt(a.id,10).toString(36)}).then((e=>{t((0,i.DA)(e)),t((0,i.rb)(h.ZP.LOADED))})).catch((e=>{throw t((0,i.rb)(h.ZP.FAILED)),e})))},Y=e=>(t,n,{api:o})=>(0,c.zk)("deletePaymentMethod",o.QuickPromote.deletePaymentMethod({payment_method_id:e}).then((e=>{var n,o;if(e&&(null==(n=e.delete_payment_method)||!n.success))throw Error(`Error deleting payment method ${(null==(o=e.delete_payment_method)?void 0:o.reason)||""}`);return t(Q(!0))})).catch((e=>{throw t((0,P.fz)({text:D})),e}))),X=e=>(t,n,{api:o})=>(0,c.zk)("setDefaultPaymentMethod",o.QuickPromote.setDefaultPaymentMethod({payment_method_id:e}).then((n=>{var o,r;if(n&&(null==(o=n.set_payment_method_as_default)||!o.changed))throw Error(`Error setting payment method ${e} as default because ${(null==(r=n.set_payment_method_as_default)?void 0:r.reason)||""}`);return t(Q(!0))})).catch((e=>{throw t((0,P.fz)({text:D})),e})))},90465:(e,t,n)=>{"use strict";n.d(t,{CH:()=>s,E4:()=>a,Y0:()=>o,gT:()=>i,s:()=>r});const o=Object.freeze({Any:"AnyGender",Male:"Male",Female:"Female"}),r=Object.freeze({AGE_13_TO_24:"Age13To24",AGE_13_TO_34:"Age13To34",AGE_13_TO_49:"Age13To49",AGE_13_TO_54:"Age13To54",AGE_18_TO_24:"Age18To24",AGE_18_TO_34:"Age18To34",AGE_18_TO_49:"Age18To49",AGE_18_TO_54:"Age18To54",AGE_21_TO_34:"Age21To34",AGE_21_TO_49:"Age21To49",AGE_21_TO_54:"Age21To54",AGE_25_TO_49:"Age25To49",AGE_25_TO_54:"Age25To54",AGE_35_TO_49:"Age35To49",AGE_35_TO_54:"Age35To54",AGE_OVER_13:"AgeOver13",AGE_OVER_18:"AgeOver18",AGE_OVER_21:"AgeOver21",AGE_OVER_25:"AgeOver25",AGE_OVER_35:"AgeOver35",AGE_OVER_50:"AgeOver50"}),i=Object.freeze({[r.AGE_13_TO_24]:{minAge:"13",maxAge:"24"},[r.AGE_13_TO_34]:{minAge:"13",maxAge:"34"},[r.AGE_13_TO_49]:{minAge:"13",maxAge:"49"},[r.AGE_13_TO_54]:{minAge:"13",maxAge:"54"},[r.AGE_18_TO_24]:{minAge:"18",maxAge:"24"},[r.AGE_18_TO_34]:{minAge:"18",maxAge:"34"},[r.AGE_18_TO_49]:{minAge:"18",maxAge:"49"},[r.AGE_18_TO_54]:{minAge:"18",maxAge:"54"},[r.AGE_21_TO_34]:{minAge:"21",maxAge:"34"},[r.AGE_21_TO_49]:{minAge:"21",maxAge:"49"},[r.AGE_21_TO_54]:{minAge:"21",maxAge:"54"},[r.AGE_25_TO_49]:{minAge:"25",maxAge:"49"},[r.AGE_25_TO_54]:{minAge:"25",maxAge:"54"},[r.AGE_35_TO_49]:{minAge:"35",maxAge:"49"},[r.AGE_35_TO_54]:{minAge:"35",maxAge:"54"},[r.AGE_OVER_13]:{minAge:"13"},[r.AGE_OVER_18]:{minAge:"18"},[r.AGE_OVER_21]:{minAge:"21"},[r.AGE_OVER_25]:{minAge:"25"},[r.AGE_OVER_35]:{minAge:"35"},[r.AGE_OVER_50]:{minAge:"50"}}),a=Object.freeze({13:{24:r.AGE_13_TO_24,34:r.AGE_13_TO_34,49:r.AGE_13_TO_49,54:r.AGE_13_TO_54,over:r.AGE_OVER_13},18:{24:r.AGE_18_TO_24,34:r.AGE_18_TO_34,49:r.AGE_18_TO_49,54:r.AGE_18_TO_54,over:r.AGE_OVER_18},21:{34:r.AGE_21_TO_34,49:r.AGE_21_TO_49,54:r.AGE_21_TO_54,over:r.AGE_OVER_21},25:{49:r.AGE_25_TO_49,54:r.AGE_25_TO_54,over:r.AGE_OVER_25},35:{49:r.AGE_35_TO_49,54:r.AGE_35_TO_54,over:r.AGE_OVER_35},50:{over:r.AGE_OVER_50}}),s=Object.freeze({Engagements:"Engagements",Followers:"Followers",WebsiteClicks:"WebsiteClicks"})},41624:(e,t,n)=>{"use strict";n.d(t,{BV:()=>i,Xx:()=>c});var o=n(26853);const r=Object.freeze({});const i=(e,t)=>{var n,o,r;return null==(n=e.ssrExperiments.matchedExperiments)||null==(o=n[t])||null==(r=o.bucket)?void 0:r.bucketName},a="rweb/ssrExperiments/SET_MATCHED_EXPERIMENTS",s="rweb/ssrExperiments/SET_PAGE_ID",l="rweb/ssrExperiments/SET_SSR_EXPERIMENT_STATE",c=e=>({payload:e,type:l});o.Z.register({ssrExperiments:function(e=r,t){switch(t.type){case a:{const n=t.payload;return{...e,matchedExperiments:n}}case s:{var n;const{hashedPageId:o,rawPageId:r}=null!=(n=t.payload)?n:{};return{...e,hashedPageId:o,rawPageId:r}}case l:{const e=t.payload;return null!=e?e:r}default:return e}}})},73738:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(6886);var o=n(29122),r=n(91191);const i=(0,o.ZP)({namespace:"topics"}),a=(0,o.tb)(i,{context:"FETCH_TOPIC",endpoint:e=>e.Topics.fetchOneTopic,params:([e],t)=>({topicId:e})}),s={updateFollowingStatus:(e,t)=>(n,o)=>(n(i.updateOne(e,{following:t})),Promise.resolve())},l=(e,t,n)=>{const{entityId:o}=t.meta,r=e.entities[o];return r?((e,t,n,o)=>/_REQUEST$/.test(t.type)?{...e,entities:{...e.entities,[n.id]:{...n,...o()}}}:e)(e,t,r,n):e},c={follow:(0,o.Tx)(i,"follow",{getParams:e=>({topicId:e}),getApiMethod:e=>e.Topics.follow,reducer:(e,t)=>l(e,t,(()=>({following:!0,not_interested:!1}))),context:"FOLLOW_TOPIC"}),unfollow:(0,o.Tx)(i,"unfollow",{getParams:e=>({topicId:e}),getApiMethod:e=>e.Topics.unfollow,reducer:(e,t)=>l(e,t,(()=>({following:!1}))),context:"UNFOLLOW_TOPIC"}),notInterested:(0,o.Tx)(i,"notInterested",{getParams:e=>({topicId:e}),getApiMethod:e=>e.Topics.notInterested,reducer:(e,t)=>l(e,t,(()=>({following:!1,not_interested:!0}))),context:"NOT_INTERESTED_TOPIC"}),undoNotInterested:(0,o.Tx)(i,"undoNotInterested",{getParams:e=>({topicId:e}),getApiMethod:e=>e.Topics.undoNotInterested,reducer:(e,t)=>l(e,t,(()=>({not_interested:!1}))),context:"UNDO_NOT_INTERESTED_TOPIC"})},d={...i,...a,...s,...c,customActionTypes:(0,o.X7)(c)},u=r.Z.register(d)},25637:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>g,s8:()=>b,tN:()=>c,uh:()=>y});n(85488);var o,r=n(83175),i=n(78772),a=n(1231),s=n(52630),l=n(62104);const c={listToFollowModule:"listToFollowModule",ownedSubscribedListModule:"ownedSubscribedList",pinnedListModule:"pinnedListModule",listsManagementPageTimelineId:"listsManagementPage"},d=(e,t)=>`${e}-${t}`,u=(e,t,n=s.P.List,o=Date.now().toString())=>a.WE({id:e,customEntryId:t,displayType:n,sortIndex:o}),p=(0,l.Z)({context:"FETCH_LISTS_MANAGEMENT_PAGE_TIMELINE",formatResponse:i.Z,network:{getEndpoint:e=>e.Lists.fetchListsManagementPageTimeline,getEndpointParams:({count:e,cursor:t})=>({count:e,cursor:"string"==typeof t?t:void 0})},initialFetchCount:100,perfKey:"listsManagementPageGraphQL",timelineId:"listsManagementPage"}),h=(0,l.Z)({context:"FETCH_LISTS_MANAGEMENT_PAGE_TIMELINE",formatResponse:i.Z,network:{query:void 0!==o?o:o=n(99996),variables:({count:e,cursor:t},n)=>({count:e,cursor:"string"==typeof t?t:void 0,isListMemberTargetUserId:"0",timelineId:"listsManagementPage",...(0,r.d)(n.apiClient.getFeatureSwitches())})},initialFetchCount:100,perfKey:"listsManagementPageGraphQL",timelineId:"listsManagementPage"}),m=e=>e.isTrue("responsive_web_timeline_relay_lists_management_enabled")?h:p,g=m,b=(e,t,n)=>{const o=d(c[t],n),r=t===c.pinnedListModule,i=r?u(n,o,s.P.ListTile,"-1"):u(n,o,s.P.ListWithPin),a=!r;return m(e).injectTimelineModuleEntry(i,t,{atTop:a})},y=(e,t,n)=>{const o=d(c[t],n);return m(e).removeEntry(o,!0)}},85171:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,Z:()=>a});n(6886);var o=n(78772),r=n(1231),i=n(62104);const a=e=>(0,i.Z)({timelineId:`listMembersGraphQL-${e}`,network:{getEndpoint:e=>e.Lists.fetchMembersGraphQL,getEndpointParams:({count:t,cursor:n})=>({count:t,cursor:"string"==typeof n?n:void 0,listId:e})},context:"FETCH_MEMBERS",perfKey:"membersGraphQL",formatResponse:o.Z}),s=(e,t)=>(n,o)=>{n([...t].map((t=>e.removeEntry((0,r._Y)(t)))))}},95525:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(78772),r=n(62104);const i=e=>(0,r.Z)({timelineId:`listMembershipsGraphQL-${e}`,network:{getEndpoint:e=>e.Lists.fetchMembershipsGraphQL,getEndpointParams:({count:t,cursor:n})=>({count:t,cursor:"string"==typeof n?n:void 0,userId:e})},context:"FETCH_MEMBERSHIPS",perfKey:"membershipsGraphQL",formatResponse:o.Z})},94769:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(78772),r=n(62104);const i=(e,t)=>(0,r.Z)({timelineId:`listOwnershipsGraphQL-${t}`,network:{getEndpoint:e=>e.Lists.fetchOwnershipsGraphQL,getEndpointParams:({count:n,cursor:o})=>({count:n,cursor:"string"==typeof o?o:void 0,userId:e,targetUserId:t})},context:"FETCH_OWNERSHIPS",perfKey:"ownershipsGraphQL",formatResponse:o.Z})},63953:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(78772),r=n(62104);const i=e=>(0,r.Z)({timelineId:`listSubscribersGraphQL-${e}`,network:{getEndpoint:e=>e.Lists.fetchSubscribersGraphQL,getEndpointParams:({count:t,cursor:n})=>({count:t,cursor:"string"==typeof n?n:void 0,listId:e})},context:"FETCH_SUBSCRIBERS",perfKey:"subscribersGraphQL",formatResponse:o.Z})},97758:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(78149);const r=(e,t)=>(n,r,i)=>{if(e.selectInitialFetchStatus(r())===o.Z.LOADING)return Promise.resolve();const a=e.selectTimeline(r());return n(e.deleteTimeline()),n(e.fetchInitial(t)).then((()=>{a&&n(e.restoreInjections(a.injections,a.timelineModuleInjections))})).catch((t=>{if(!a||e.selectUnavailableReason(r()))return Promise.reject(t);n(e.restoreTimeline(a))}))}},24930:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConversationScreen:()=>Tt,default:()=>Pt});n(36728),n(6886),n(85940);var o=n(2784),r=n(67502),i=n(72175),a=n(25686),s=n(36934),l=n(37800),c=n(88990),d=n(73186),u=n(79404),p=n.n(u),h=n(16587),m=n(32307),g=n(29496),b=n(73036),y=n(76238),f=n(92940),_=n(1179),v=n(60673);const w=p().af9c8a3e,E=({featureSwitches:e,scribeNamespace:t,startLocation:n,userId:r})=>{const i=(0,v.z)(),a=!!r&&b.ZP.isMobileOS()&&!_.Z.isStandaloneApp(),s=b.ZP.isIOS()?f.ri.CrossLogin:f.ri.InterstitialSwitchToApp,l=o.useCallback((o=>{o.preventDefault(),i.scribe({...t,element:"open_app_button",action:"click"}),(0,y._)({downloadAppUrlPath:s,startLocation:n,featureSwitches:e,userId:r})}),[i,s,e,t,n,r]);return a&&e.isTrue("responsive_web_open_app_appbar_button_enabled")?o.createElement(g.ZP,{accessibilityLabel:w,children:w,onPress:l,size:"small",type:"primaryOutlined"}):null};var C=n(62230),T=n(90876),S=n(53331),P=n(43748),Z=n(67006),I=n(93125),k=n(1778),x=n(13325),A=n(43467),L=n(46253),R=n(16659),D=n(73451);const M=(0,n(56499).Z)({loader:()=>Promise.all([n.e("shared~bundle.Conversation"),n.e("loader.WideLayout")]).then(n.bind(n,66767)),renderPlaceholder:(e,t)=>null});var O=n(75207),B=n(45925),F=n(91584),H=n(36094),N=n(45855),z=n(76275),U=n(46110),V=n(33988),q=n(52612),G=n(35210),j=n(72504),W=n(23803),K=n(23335),$=n(48580),Q=n(92160),Y=n(72314),X=n(19953),J=n(38429),ee=n(17943),te=n(67935),ne=n(41624),oe=n(30102),re=n(97758),ie=n(57659);const ae=(e,t)=>e.location&&e.location.state&&e.location.state[t],se=(e,t)=>"PUSH"===t.history.action,le=(e,t)=>{const n=ae(t,"focal");return n||ce(e,t)},ce=(e,t)=>{const{location:n,match:o}=t;return o.params&&o.params.statusId?o.params.statusId:n.query&&n.query.tweet_id&&"string"==typeof n.query.tweet_id?n.query.tweet_id:""},de=(e,t)=>t.match.params.screenName,ue=(e,t)=>ae(t,"socialContext"),pe=(e,t)=>ae(t,"topicFollowPrompt"),he=(e,t)=>ae(t,"contextTweetId"),me=(e,t)=>ae(t,"promotedContent"),ge=(e,t)=>ae(t,"overflow"),be=(e,t)=>ae(t,"contextualClientEventInfo"),ye=(e,t)=>{const n=ae(t,"referrer"),o=le(e,t);return!!n&&n.includes(`/i/topics/tweet/${o}`)},fe=(e,t)=>oe.ZP.selectHydrated(e,le(e,t)),_e=(e,t)=>{const n=le(e,t),o=oe.ZP.selectHydrated(e,n);return o&&o.conversation_id_str?oe.ZP.selectHydrated(e,o.conversation_id_str):null},ve=(e,t)=>oe.ZP.selectFetchStatus(e,le(e,t)),we=(e,t)=>t.location.query&&"string"==typeof t.location.query.cxt?t.location.query.cxt:void 0;function Ee(e,t){const n=fe(e,t),o=n?(0,Y.z0)(e,n):void 0;return n&&o?(0,U.GK)(n,o):void 0}const Ce=(e,t)=>{const n=fe(e,t),o=n?n.conversation_id_str:null,r=o?(0,X.Ln)(e,o):[];return r?ie.ZP.selectMany(e,r):[]},Te=(e,t)=>(0,ne.BV)(e,"seo_rweb_tweets_metatags_14920"),Se=(e,t)=>(0,ne.BV)(e,"share_rweb_tweet_image_opengraph_copy_15208"),Pe=(e,t)=>(0,ne.BV)(e,"share_video_poster_play_icon_overlay_rweb_14643"),Ze=(e,t)=>(0,ne.BV)(e,"share_rweb_tweet_video_opengraph_copy_15219"),Ie=(e,t)=>"render_rux_injections"===(0,ne.BV)(e,"seo_rweb_ssr_enable_rux_injections_15432"),ke=(0,Q.Z)().propsFromState((()=>({canGoBack:$.q,communitySocialContextOfFocalTweet:Ee,contextTweetId:he,contextualClientEventInfo:be,conversationFollowNudgeUsers:Ce,focalTweet:fe,initialFetchStatus:ve,isForwardNavigation:se,isReferredFromExploreTopics:ye,userLanguage:te.VT,loggedInUser:ie.ZP.selectLoggedInUser,openGraphImageTweetBucket:Se,openGraphPlayIconBucket:Pe,openGraphVideoTweetBucket:Ze,overflowCount:ge,promotedContent:me,richLandingContextId:we,rootTweet:_e,screenName:de,selectedTweetId:ce,socialContext:ue,startLocation:ee.Lg,statusId:le,topicFollowPrompt:pe,tweetDetailNav:J.wZ,tweetMetatagsBucket:Te,shouldRenderRuxInjectionsForVerifiedCrawler:Ie}))).propsFromActions((()=>({createLocalApiErrorHandler:(0,K.createLocalApiErrorHandlerWithContextFactory)("CONVERSATION_SCREEN"),clearTimelineCache:(e,t)=>(0,re.Z)(e,t)}))).withAnalytics({page:"tweet"});var xe=n(79150);const Ae=p().f0c37ddb,Le=p().a98f3d0f,Re=p().j3da85c1,De=p().d0681155,Me=p().be59fddf,Oe=p().b357b2ad,Be=p().aba12f5d,Fe=p().b9184ae3,He=p().e44c7ea1,Ne=p().d0e26387,ze=p().cd869707,Ue=p().jade381b,Ve=p().f9e9679f,qe=Object.freeze({CONTROL:0,VARIANT_1:1,VARIANT_2:2,VARIANT_3:3,VARIANT_4:4,VARIANT_5:5,VARIANT_6:6,VARIANT_7:7,VARIANT_8:8}),Ge=e=>{switch(e){case"title_1":return{title:qe.VARIANT_1,description:qe.CONTROL};case"title_2":return{title:qe.VARIANT_2,description:qe.CONTROL};case"title_3":return{title:qe.VARIANT_3,description:qe.CONTROL};case"title_4":return{title:qe.VARIANT_4,description:qe.CONTROL};case"title_5":return{title:qe.VARIANT_5,description:qe.CONTROL};case"title_6":return{title:qe.VARIANT_6,description:qe.CONTROL};case"title_7":return{title:qe.VARIANT_7,description:qe.CONTROL};case"title_8":return{title:qe.VARIANT_8,description:qe.CONTROL};default:return{title:qe.CONTROL,description:qe.CONTROL}}},je=p().ad666301,We=p().g132f681,Ke=p().bc6bb295,$e=p().hf327f6b,Qe=p().f522ae65,Ye=p().d58c1576,Xe=p().bdc49424,Je=p().e38c0975,et=p().ie816cb4,tt=p().e3521fcd,nt="linkedinbot",ot="http://www.linkedin.com",rt=Object.freeze({Text:0,Image:1,Video:2,Other:3});function it(e){return`“${e}”`}function at(e){if(null==e)return!1;const t=e.userAgent.toLowerCase();return t.includes(nt)||t.includes(ot)}function st(e,t,n,o){var r,i,a,s,l,c,d;const u=function(e){let t=0,n=0;for(const i of null!=(o=null==(r=e.extended_entities)?void 0:r.media)?o:[]){var o,r;"video"===i.type||"vine"===i.type?n+=1:t+=1}return 0===t&&0===n?rt.Text:t>=1&&0===n?rt.Image:0===t&&1===n?rt.Video:rt.Other}(e),p=null==(r=e.entities)||null==(i=r.media)||null==(a=i[0])?void 0:a.url,h=je({fullName:e.user.name}),m=it(null!=(s=e.full_text)?s:""),g=null==p?m:m.replace(` ${p}`,""),b=null==e||null==(l=e.entities)||null==(c=l.media)||null==(d=c[0])?void 0:d.media_url_https,y=null==b||at(t)?b:`${b}:large`,f={ogTitle:h,ogDescription:g,ogImage:y};if(u===rt.Image&&n.getValue("responsive_web_opengraph_image_tweet_copy_1",!0)){if("treatment_1"===o.share_rweb_tweet_image_opengraph_copy_15208)return{...f,ogTitle:We({screenName:e.user.screen_name})};if("treatment_2"===o.share_rweb_tweet_image_opengraph_copy_15208)return{...f,ogTitle:Ke({screenName:e.user.screen_name}),ogDescription:it(Xe)};if("treatment_3"===o.share_rweb_tweet_image_opengraph_copy_15208)return{...f,ogTitle:$e({screenName:e.user.screen_name}),ogDescription:it(Je({screenName:e.user.screen_name}))}}if(u===rt.Video){if("treatment"===o.share_video_poster_play_icon_overlay_rweb_14643&&n.getValue("responsive_web_opengraph_play_icon_overlay",!0)){const e=n.getStringValue("media_infra_play_icon_version_number"),o=at(t)||null==b||""===e?y:`${b}:large_${e}`;return{...f,ogImage:o}}if(n.getValue("responsive_web_opengraph_video_tweet_copy_1",!0)){if("treatment_1"===o.share_rweb_tweet_video_opengraph_copy_15219)return{...f,ogTitle:Ke({screenName:e.user.screen_name}),ogDescription:it(et)};if("treatment_2"===o.share_rweb_tweet_video_opengraph_copy_15219)return{...f,ogTitle:Qe({screenName:e.user.screen_name}),ogDescription:it(et)};if("treatment_3"===o.share_rweb_tweet_video_opengraph_copy_15219)return{...f,ogTitle:Ye,ogDescription:it(tt({screenName:e.user.screen_name}))}}}return f}const lt=p().ea831526,ct=p().a90e1e67({noun:""}),dt=p().c299a6c0,ut=p().c2ed3314,pt=p().cfe877ca,ht=p().e06b864c,mt=p().f5b3dc1e,gt=p().a078ff70,bt={page:"tweet"},yt={page:"tweet",section:"landing"},ft={serversideContextType:"tweet"},_t=(0,h.Z)((e=>(0,O.i)(e))),vt=(0,h.Z)(((e,t,n,o,r)=>{var i,a;return{referrer:e,controller_data:e&&(null==t||null==(i=t.details)||null==(a=i.timelinesDetails)?void 0:a.controllerData),overflowCount:n,with_rux_injections:o,rux_context:r}})),wt=(0,h.Z)(((e,t,n)=>(0,j.ZP)({focalTweetId:e,fetchOptions:t,featureSwitches:n}))),Et=[G.Z.Community];function Ct({context:e}){if(!e)return null;if(e.contextType===G.Z.Community){const t=e.landingUrl?(0,F.s9)(e.landingUrl):void 0;return o.createElement(s.ZP,{link:t},e.text)}return null}class Tt extends o.Component{constructor(e,t){super(e,t),this._getScribeData=(0,h.Z)(((e,t)=>({items:[z.Z.forTweet(e,t)],tweet_id:e}))),this._getFollowNudgeAvatars=()=>{const{conversationFollowNudgeUsers:e}=this.props,t=e.map((e=>e.profile_image_url_https));return o.createElement(l.Z,{borderWidth:"medium",userAvatarSize:"jumbo",userAvatarUrls:t})},this._handleShowFollowNudge=()=>{this.setState({shouldShowFirstStateFollowNudge:!0})},this._handleShowSecondStateFollowNudge=()=>{const{history:e,screenName:t,statusId:n}=this.props;this.setState({shouldShowFirstStateFollowNudge:!1});const o=t?`/${t.toLowerCase()}/status/${n}/follow_in_thread`:"";return e.push(o)},this._handleCloseFollowNudge=()=>{this.setState({shouldShowFirstStateFollowNudge:!1})},this._getMetadata=()=>{const{focalTweet:e,tweetMetatagsBucket:t}=this.props;if(null==(null==e?void 0:e.user))return{};const n=`https://twitter.com${this._getCanonicalPath()||""}`,o=`twitter://status?id=${e.id_str}`,r=this._showExperimentalTweetMetatags?t:"control",i=((e,t)=>{if(!t)return"";switch(Ge(e).title){case qe.VARIANT_1:return Le({screenName:t.user.screen_name,tweetText:t.full_text});case qe.VARIANT_2:return Re({screenName:t.user.screen_name,tweetText:t.full_text});case qe.VARIANT_3:return De({fullName:t.user.name,tweetText:t.full_text});case qe.VARIANT_4:return Me({screenName:t.user.screen_name,tweetText:t.full_text});case qe.VARIANT_5:return Oe({screenName:t.user.screen_name,tweetText:t.full_text,date:Ue(new Date(t.created_at))});case qe.VARIANT_6:return Be({fullName:t.user.name,screenName:t.user.screen_name,tweetText:t.full_text});case qe.VARIANT_7:return Fe({fullName:t.user.name,screenName:t.user.screen_name});case qe.VARIANT_8:return He({fullName:t.user.name,screenName:t.user.screen_name,date:Ue(new Date(t.created_at))});default:return Ae({fullName:t.user.name,tweetText:t.full_text})}})(r,e);return{canonical:n,deepLink:o,description:((e,t)=>{const n=Ge(e).description;return t&&1===n?Ne({date:Ue(new Date(t.created_at)),tweetText:(0,xe.A)(t.text),likeCount:Ve(t.favorite_count),retweetCount:Ve(t.retweet_count),replyCount:Ve(t.reply_count)}):t&&2===n?ze({date:Ue(new Date(t.created_at)),likeCount:Ve(t.favorite_count),retweetCount:Ve(t.retweet_count),replyCount:Ve(t.reply_count)}):""})(r,e),title:i}},this._getOpenGraphMetadata=()=>{const{featureSwitches:e,userAgent:t}=this.context,{focalTweet:n,openGraphImageTweetBucket:o,openGraphPlayIconBucket:r,openGraphVideoTweetBucket:i}=this.props;return null==(null==n?void 0:n.user)?{}:st(n,t,e,{share_video_poster_play_icon_overlay_rweb_14643:r,share_rweb_tweet_image_opengraph_copy_15208:o,share_rweb_tweet_video_opengraph_copy_15219:i})},this._getFabState=()=>{const{promotedContent:e,statusId:t}=this.props;return{inReplyToStatusId:t,promotedContent:e}},this._getNavigationParams=()=>{const{contextualClientEventInfo:e,overflowCount:t,richLandingContextId:n,tweetDetailNav:o}=this.props,r=this._shouldRenderRuxInjections();return vt(o,e,t,r,n)},this._getModule=()=>{const{statusId:e}=this.props,{featureSwitches:t}=this.context,n=this._getNavigationParams();return wt(e,n,t)},this._handleEntriesRendered=({entries:e,fetchStatus:t})=>{const{recordTTFL:n}=this.props;if(t===W.ZP.FAILED&&(this._shouldRecordTTFL=!1),this._shouldRecordTTFL&&e.length){const t=e.some((({type:e})=>e===q.ZP.Tweet));this._shouldRecordTTFL=!1,t&&n&&n("permalink")}},this._shouldRedirectToCanonical=()=>{var e;const{focalTweet:t,screenName:n,selectedTweetId:o,statusId:r}=this.props;return!(o!==r||null==t||null==(e=t.user)||!e.screen_name)&&(n&&t&&n.toLowerCase()!==t.user.screen_name.toLowerCase())},this._redirectToCanonical=()=>{const{history:e,location:t}=this.props;e.replace({pathname:this._getCanonicalPath(),query:t.query,state:t.state})},this._getCanonicalPath=()=>{const{focalTweet:e}=this.props;return e?`/${e.user.screen_name}/status/${e.id_str}`:"/"},this._getPathForTweetId=(e,t)=>`/${t||"i"}/status/${e}`,this._getScribeNamespace=()=>this._shouldRenderRuxInjections()?yt:bt,this.state={shouldShowFirstStateFollowNudge:!1},this._shouldRecordTTFL=!0,this._downvoteEnabled=this.context.featureSwitches.isTrue("rweb_reply_downvote_enabled"),this._followNudgeConversationEnabled=this.context.featureSwitches.isTrue("follow_nudge_conversation_enabled"),this._isSSRVerifiedCrawlerRUXInjectionsEnabled=this.context.featureSwitches.isTrue("responsive_web_ssr_verified_crawler_rux_injections_enabled"),this._showExperimentalTweetMetatags=this.context.featureSwitches.isTrue("responsive_web_seo_tweet_metatags_experiment_enabled")}shouldComponentUpdate(e,t){return!(0,m.Z)(e,this.props)||!(0,m.Z)(this.state,t)}componentDidMount(){const{isForwardNavigation:e}=this.props;e&&this._clearTimelineCache()}componentWillUnmount(){this.context.setBackgroundClickHandler(null)}componentDidUpdate(e){const{conversationFollowNudgeUsers:t}=this.props;this._shouldRedirectToCanonical()?this._redirectToCanonical():this.props.statusId!==e.statusId&&this.props.isForwardNavigation&&this._clearTimelineCache();const n=t.length!==e.conversationFollowNudgeUsers.length,o=t.length&&7===t.length;this._followNudgeConversationEnabled&&n&&o&&this._handleShowFollowNudge()}render(){const{loggedInUserId:e}=this.context,{communitySocialContextOfFocalTweet:t,focalTweet:n,history:r,promotedContent:a,selectedTweetId:s,socialContext:l,statusId:d,userLanguage:u}=this.props,{canonical:p,deepLink:h,description:m,title:g}=this._getMetadata(),{ogDescription:b,ogImage:y,ogTitle:f}=this._getOpenGraphMetadata(),_=null==n?void 0:n.possibly_sensitive,v=function(...e){return e.find((e=>e&&Et.includes(e.contextType)))}(l,t),w=v&&o.createElement(Ct,{context:v}),E={...ft,serversideContextId:s};return o.createElement(N.nO,{data:this._getScribeData(d,a),namespace:this._getScribeNamespace()},o.createElement(L.Z,{behavioralEventClientEntity:E,behavioralEventViewType:"tweet_details"},_?o.createElement(i.ql,null,o.createElement("meta",{content:"adult",name:"rating"})):null,p?o.createElement(i.ql,null,o.createElement("link",{href:p,rel:"canonical"}),o.createElement("link",{href:`https://publish.twitter.com/oembed?url=${p}`,rel:"alternate",title:g,type:"application/json+oembed"})):null,o.createElement(k.Z,{canonical:p,description:b,image:y,title:f,type:"article"}),o.createElement(I.Z,{featureSwitches:this.context.featureSwitches,loggedInUserId:e,userLanguage:u}),o.createElement(Z.Z,{deepLink:h}),p?o.createElement(P.Z,{canonical:p}):null,o.createElement(U.pz.Provider,{value:null==v?void 0:v.contextType},o.createElement(A.Z,{backLocation:"/",documentTitle:g,history:r,primaryContent:this._renderTimeline(),rightControl:this._renderRightControl(),sidebarContent:this._renderSidebarContent(),subtitle:w,title:v&&(C=v,C&&C.contextType===G.Z.Community?ut:null)||(n&&n.self_thread?dt:ct)}),this.state.shouldShowFirstStateFollowNudge?o.createElement(c.Z,{actionLabel:pt,graphic:this._getFollowNudgeAvatars,graphicDisplayMode:"illustration",headline:ht,onAction:this._handleShowSecondStateFollowNudge,onClose:this._handleCloseFollowNudge,onSecondaryAction:this._handleCloseFollowNudge,secondaryActionLabel:mt,subtext:gt,withCloseButton:!0}):null),o.createElement(S.Z,{description:m,includeOpenGraphMeta:!1,title:g})));var C}_renderRightControl(){const{featureSwitches:e,loggedInUserId:t}=this.context,{focalTweet:n,startLocation:r}=this.props;return o.createElement(a.Z,{style:St.mobileAppBarRightControl},o.createElement(E,{featureSwitches:e,scribeNamespace:this._getScribeNamespace(),startLocation:r,userId:t}),o.createElement(R.C,{focalTweet:n,module:this._getModule()}))}_renderSidebarContent(){const{focalTweet:e}=this.props;return e&&e.user.id_str?o.createElement(T.Z,{focalTweetId:null==e?void 0:e.id_str,withTopicsToFollow:!1,withWhoToFollow:!1},o.createElement(M,{focalTweetId:e.id_str})):null}_renderTimeline(){const{contextTweetId:e,focalTweet:t,location:n,promotedContent:r,rootTweet:i,screenName:a,selectedTweetId:s,socialContext:l,statusId:c,topicFollowPrompt:d}=this.props,u={selectedTweetId:s};return o.createElement(x.Z,{collectionName:lt},o.createElement(D.Z,{apiErrorHandlerMap:_t(a),contextTweetId:e,fetchOptions:this._getNavigationParams(),focalTweet:t,focalTweetId:c,location:n,module:this._getModule(),onEntriesRendered:this._handleEntriesRendered,promotedContent:r,rootTweet:i||void 0,selectedTweet:u,socialContext:l,topicFollowPrompt:d,withRuxInjections:this._shouldRenderRuxInjections()}))}_canVerifiedCrawlerRenderRuxInjections(){const{shouldRenderRuxInjectionsForVerifiedCrawler:e}=this.props;return e&&this._isSSRVerifiedCrawlerRUXInjectionsEnabled}_shouldRenderRuxInjections(){const{featureSwitches:e}=this.context,{canGoBack:t,isReferredFromExploreTopics:n,richLandingContextId:o}=this.props;return this._canVerifiedCrawlerRenderRuxInjections()||!!o||n||function(e,t){if(!r.canUseDOM)return!1;const n=B.zI({emptyIfServerRendered:!1,featureSwitches:t,httpReferer:!e&&document.referrer||""});return B.bi(n)}(t,e)}_clearTimelineCache(e=this._getModule(),t=this._getNavigationParams()){const{clearTimelineCache:n,createLocalApiErrorHandler:o,screenName:r}=this.props;n(e,t).catch(o(_t(r)))}}Tt.contextType=C.Z,Tt.defaultProps={recordTTFL:H.k$};const St=d.Z.create((e=>({mobileAppBarRightControl:{flexDirection:"row",alignItems:"center",height:e.componentDimensions.appBarHeightPx}}))),Pt=ke((0,V.Z)(Tt))},950:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConversationHiddenRepliesScreen:()=>M,default:()=>O});var o=n(2784),r=n(36934),i=n(8352),a=n(79404),s=n.n(a),l=n(16587),c=n(90876),d=n(43467),u=n(46253),p=n(76293),h=n(58711),m=n(3326),g=n(23335),b=n(92160),y=n(97758),f=n(57659);const _=(e,t)=>t.match.params.statusId,v=(e,t)=>t.match.params.screenName,w=(e,t)=>"PUSH"===t.history.action,E=(0,b.Z)().propsFromState((()=>({screenName:v,statusId:_,isForwardNavigation:w,loggedInUser:f.ZP.selectLoggedInUser}))).adjustStateProps((e=>{const{loggedInUser:t,...n}=e;return{loggedInScreenName:t?t.screen_name:void 0,...n}})).propsFromActions((()=>({createLocalApiErrorHandler:(0,g.createLocalApiErrorHandlerWithContextFactory)("HIDDEN_REPLIES_PAGE"),clearTimelineCache:e=>(0,y.Z)(e)}))).withAnalytics({page:"tweet",section:"moderated_replies"});var C=n(28412),T=n(76831),S=n(44895),P=n(52612),Z=n(37985);const I=({withUnhideReply:e})=>(0,C.Z)({},(0,S.G)({}),{[P.ZP.Tweet]:{handlers:{[Z.Z.Tweet]:(0,T.Cw)({createAdditionalProps:()=>({withUnhideReply:e}),displayBlocked:!0,divider:{top:!0,bottom:!0}})}}}),k=s().d806aa1a,x=s().d80c77dc,A=s().ef939f4b,L=s().efb9a9e0,R=o.createElement(s().I18NFormatMessage,{$i18n:"c9927419"},o.createElement(r.ZP,{link:"https://help.twitter.com/using-twitter/mentions-and-replies#hidden-reply"},s().b20c41ff)),D=()=>o.createElement(i.Z,{header:L,imageVariants:h.P.Turtle,message:R});class M extends o.Component{constructor(e){super(e),this._getMemoizedModule=(0,l.Z)((e=>(0,m.Z)(e))),this._getModule=()=>{const{statusId:e}=this.props;return this._getMemoizedModule(e)},this._clearTimelineCache()}render(){const{history:e,loggedInScreenName:t,screenName:n,statusId:r}=this.props;return n&&r?o.createElement(u.Z,null,o.createElement(d.Z,{backLocation:`/${n.toLowerCase()}/status/${r}`,history:e,primaryContent:this._renderPrimaryContent(),sidebarContent:o.createElement(c.Z,null),subtitle:n===t?x:A({screenName:n}),title:k})):null}_renderPrimaryContent(){const{loggedInScreenName:e,screenName:t}=this.props;return o.createElement(p.Z,{entryConfiguration:I({withUnhideReply:t===e}),module:this._getModule(),renderEmptyState:D,title:k})}_clearTimelineCache(e=this._getModule()){const{clearTimelineCache:t,createLocalApiErrorHandler:n,isForwardNavigation:o}=this.props;o&&t(e).catch(n({}))}}const O=E(M)},52474:(e,t,n)=>{"use strict";n.r(t),n.d(t,{QuickPromoteScreen:()=>Si,default:()=>Zi});n(6886),n(85940),n(21515),n(71372);var o=n(2784),r=n(25686),i=n(7267),a=n(22685),s=n(44542),l=n(78705),c=n(31165),d=n(5252),u=n(29496),p=n(73186),h=n(79404),m=n.n(h),g=n(7333),b=n(72983),y=n(292),f=n(19313),_=n(65249);function v(e){throw new Error("Not reachable section reached!")}var w=n(79768),E=n(23803),C=(n(36728),n(23791)),T=n(84292),S=n(65526),P=n(482);const Z=e=>{(0,S.q)((()=>{const t=P.P_(),n=()=>{t.resume()},o=()=>{t.pause()};return window.addEventListener("focus",n),window.addEventListener("blur",o),()=>{P.IM(`${w.uB}:dwell:${e}`,t.end()),window.removeEventListener("focus",n),window.removeEventListener("blur",o)}}))},I=({screenType:e})=>(Z(e),null),k="introButton",x="nextButton",A="objectiveScreen",L="targetingScreen",R=e=>`objectiveScreenObjective${e}`,D="targetingLocationScreen",M="targetingGenderScreen",O="budgetSelectScreen",B="reviewScreen",F="reviewButton",H="reviewObjectiveDescription",N="reviewTargetingDescription",z="reviewBudgetAndDurationDescription",U="reviewPaymentPivot",V="reviewPromotionTotalDescription",q="targetingLocationPivot",G="targetingGenderPivot",j="backButton",W="targetingLocationSearch",K="targetingLocationItem",$=e=>`targetingGenderScreenGender${e}`,Q="paymentMethodSelect",Y="dropoffScreen",X=({analytics:e,cancelButtonLabel:t,confirmButtonLabel:n,headline:r,onCancel:i,onConfirm:a,subtext:s})=>(Z("drop_off_screen"),o.createElement(T.Z,{cancelButtonLabel:t,confirmButtonLabel:n,confirmButtonType:"primary",headline:r,onCancel:i,onConfirm:a,testID:Y,text:s})),J=m().iee9167a,ee=m().ff6a9aaa,te=m().cfd2f35e,ne=m().g8844150,oe=({analytics:e,children:t,history:n,qpRouteParams:r,screensAllowedToNavigate:i})=>{const[a,s]=o.useState(null),l=o.useMemo((()=>{const{quickPromotePlatform:e,screenName:t,statusId:n}=r;return Object.keys(C.MN).map((o=>(0,C.WS)(t,n,e,C.MN[o])))}),[r]),c=o.useMemo((()=>{const{quickPromotePlatform:e,screenName:t,statusId:n}=r;return i?i.map((o=>(0,C.WS)(t,n,e,o))):[]}),[r,i]),d=o.useCallback(((e,t)=>{const o=n.location,r=l.some((t=>e.pathname.includes(t))),i=c.some((e=>o.pathname.includes(e)));return!!(a||r||i)||(s({nextLocation:e,action:t,currentLocation:o}),!1)}),[n.location,l,c,a]);o.useEffect((()=>n.block(d)),[d,n]);const u=o.useCallback((()=>{(0,C.hq)(e)(C.Ur.dropOffScreenCancel()),s(null)}),[s,e]),p=o.useCallback((()=>{if((0,C.hq)(e)(C.Ur.dropOffScreenConfirm()),null==a)return;const{action:t,nextLocation:o}=a;switch(t){case"PUSH":n.push(o);break;case"REPLACE":n.replace(o);break;case"POP":n.goBackThroughModals()}}),[a,n,e]);return a?o.createElement(X,{analytics:e,cancelButtonLabel:te,confirmButtonLabel:ne,headline:J,onCancel:u,onConfirm:p,subtext:ee}):t};var re=n(7896),ie=n(23507),ae=n(50329),se=n(36934),le=n(91974),ce=n(6733);const de=({children:e,description:t,descriptionDir:n,descriptionTestID:i,label:a,withBottomBorder:s=!0,withDisabledText:l=!1,withPaddingHorizontal:c=!1})=>{const d=o.useMemo((()=>[ue.descriptionItem,s?ue.bottomBorder:void 0,c&&ue.paddingHorizontal]),[s,c]),u=o.useMemo((()=>[ue.descriptionContainer,l?ue.disabled:void 0]),[l]);return o.createElement(r.Z,{style:d},!!a&&o.createElement(se.ZP,{style:l?ue.disabled:void 0,weight:"bold"},a),!!t&&o.createElement(r.Z,{style:u},o.createElement(se.ZP,{color:"gray700",dir:n,size:"subtext2",style:ue.descriptionContainer,testID:i},t)),e)},ue=p.Z.create((e=>({descriptionItem:{backgroundColor:e.colors.cellBackground,paddingVertical:e.componentDimensions.gutterVertical},descriptionContainer:{marginTop:e.spaces.space2},bottomBorder:{borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:e.colors.borderColor},disabled:{opacity:.5},paddingHorizontal:{paddingHorizontal:e.componentDimensions.gutterHorizontal}})));var pe=n(54044);const he=({callout:e,primaryLabel:t,style:n,subtitle:i,title:a})=>o.createElement(pe.Z,null,(({windowWidth:s})=>{const l=s<p.Z.theme.breakpoints.small;return o.createElement(r.Z,{style:[l?me.mobileTitleContainer:me.titleContainer,e?me.withCallout:null,n]},o.createElement(se.ZP,{accessibilityLevel:1,accessibilityRole:"heading",align:"left",size:"title4",weight:"heavy"},a),!!t&&o.createElement(r.Z,{style:me.primaryLabelContainer},o.createElement(se.ZP,{align:"left",color:"primary",size:"title4"},t)),!!i&&o.createElement(r.Z,{style:me.subtitleContainer},o.createElement(le.Z,{align:"left",color:"gray700"},i)),!!e&&o.createElement(r.Z,{style:me.calloutContainer},e))})),me=p.Z.create((e=>({titleContainer:{paddingVertical:e.spaces.space24},mobileTitleContainer:{paddingVertical:e.spaces.space40},primaryLabelContainer:{marginTop:e.spaces.space28},subtitleContainer:{marginTop:e.spaces.space12},withCallout:{paddingBottom:e.spaces.space16},calloutContainer:{marginTop:e.spaces.space16,marginHorizontal:e.spaces.space16}})));var ge=n(3978);const be=e=>o.createElement(pe.Z,null,(({windowWidth:t})=>{const n=t<p.Z.theme.breakpoints.small;return e(n?"space32":"space80")})),ye=e=>o.createElement(pe.Z,null,(({windowWidth:t})=>{const n=t<p.Z.theme.breakpoints.small;return e(n?fe.mobileContainer:fe.webContainer)})),fe=p.Z.create((e=>({webContainer:{paddingHorizontal:e.spaces.space80},mobileContainer:{paddingHorizontal:e.spaces.space32}}))),_e=({children:e})=>o.createElement(pe.Z,null,(({windowWidth:t})=>{const n=t<p.Z.theme.breakpoints.small;return o.createElement(r.Z,{style:n?fe.mobileContainer:fe.webContainer},e)}));var ve=n(27218),we=n(72599);const Ee=m().e8702feb,Ce=m().e44dc579,Te=m().hd8df545,Se=m().f1d32e41,Pe=m().c4d0434b,Ze=m().dc4a9413,Ie=m().bad70c09,ke=m().c133a39b,xe=m().ee5da8f5,Ae=m().g4bf9cb7,Le=m().gc3ce5d9,Re=m().c1778029,De=m().f1d32e41,Me=m().a4ab12b9,Oe=m().cb51c854,Be=m().bb7b39e2,Fe=m().eb9466d0,He=m().c21037d0,Ne=m().b07cc9f2,ze=m().ce309bee,Ue=m().c6c16a52,Ve=m().cc49d030,qe=m().c3fca124,Ge=m().d4f57cce,je=m().c6daa762;function We(e){switch(e){case"AnyGender":return Oe;case"Male":return Be;case"Female":return Fe;default:return(0,we.ZP)(`Unknown gender: ${e}`),e}}function Ke(e){switch(e){case"COUNTRIES":return He;case"REGIONS":return Ne;case"METROS":return ze;case"CITIES":return Ue;case"POSTAL_CODES":return Ve;default:return(0,we.ZP)(`Unknown targeting locationType: ${e}`),e}}function $e({amount:e,currency:t,fractionDigits:n,lang:o}){return e.toLocaleString((0,ge.It)(o),{currency:t,style:"currency",maximumFractionDigits:void 0!==n?n:2,minimumFractionDigits:void 0!==n?n:2})}function Qe({couponAmount:e,currency:t,lang:n}){const o=$e({amount:e,lang:n,currency:t,fractionDigits:0});return Ee({couponAmount:o})}function Ye({numLocations:e}){const t=m().ia24dc8d(e);return Ie({numLocations:t})}function Xe({durationDays:e}){const t=m().ia24dc8d(e);return Ae({durationDays:t})}function Je(e){switch(e){case"Engagements":return qe;case"Followers":return Ge;case"WebsiteClicks":return je;default:throw v()}}var et=n(23335),tt=n(92160),nt=n(14854),ot=n(67935);const rt=e=>e.quickPromote.budget.dailyBudget,it=e=>e.quickPromote.budget.durationDays,at=e=>e.quickPromote.budget.errorMessage,st=e=>e.quickPromote.budget.availableBudgets||(e=>{throw new Error(e)})("No budgets found"),lt=e=>e.quickPromote.budget.currency||"USD",ct=(e,t)=>{var n,o;const r=(0,nt.L_)(e);return null==(n=e.ads.typeahead.forecastAudience[r])||null==(o=n.result)?void 0:o.estimatedImpressions},dt=e=>e.quickPromote.coupons,ut=(0,tt.Z)().propsFromState((()=>({dailyBudget:rt,durationDays:it,availableBudgets:st,lang:ot.VT,currency:lt,audience:ct,errorMessage:at,coupons:dt}))).propsFromActions((()=>({createLocalApiErrorHandler:(0,et.createLocalApiErrorHandlerWithContextFactory)("QUICK_PROMOTE_BUDGET_SELECT_SCREEN"),setDailyBudget:nt.p_,setBudgetDuration:nt.g_,fetchForecastedAudienceIfNeeded:nt.qL,setBudgetErrorMessage:nt.rS}))).withAnalytics({page:"quick_promote"}),pt=m().i3656b52,ht=m().e7eb3684,mt=m().d9f6e3ce,gt=m().d9d6e10e,bt=m().b3954eca,yt=m().ce665a60,ft=m().i0c3b95c,_t=Array(30).fill(null).map(((e,t)=>t+1));class vt extends o.PureComponent{constructor(...e){super(...e),this._fetchForecastedAudienceIfNeeded=()=>{const{analytics:e,createLocalApiErrorHandler:t,fetchForecastedAudienceIfNeeded:n,match:{params:{statusId:o}}}=this.props;n(o,e).catch(t())},this._getSliderProps=(e,t)=>({max:e.length-1,min:0,value:e.indexOf(t)}),this._handleDurationSlider=e=>{const{analytics:t,durationDays:n,setBudgetDuration:o}=this.props,r=_t[e];n!==r&&((0,C.hq)(t)(C.Ur.setBudgetDuration(`${r}`)),o(r),this._fetchForecastedAudienceIfNeeded())},this._handleBudgetSlider=e=>{const{analytics:t,availableBudgets:n,dailyBudget:o,setDailyBudget:r}=this.props,i=n[e];o!==i&&((0,C.hq)(t)(C.Ur.setDailyBudget(`${i}`)),r(i),this._fetchForecastedAudienceIfNeeded())},this._getCouponCalloutVariables=({coupons:e,currency:t,lang:n})=>{var o,r,i,a,s,l,c,d;const u="ConditionalCouponExperiment"===(null==e?void 0:e.eligible_coupon_experiment)&&(null==e||null==(o=e.eligible_coupon)?void 0:o.credit_amount)&&(null==e||null==(r=e.eligible_coupon)?void 0:r.spend_amount),p=(null==e||null==(i=e.pending_coupon)?void 0:i.credit_amount)&&(null==e?void 0:e.pending_coupon.spend_amount),h=u?"eligibleCoupon":"pendingCoupon",m=function({calloutType:e,couponAmount:t,currency:n,lang:o,spendAmount:r}){const i=$e({amount:t,lang:o,currency:n,fractionDigits:0}),a=$e({amount:r,lang:o,currency:n,fractionDigits:0});return"eligibleCoupon"===e?De({couponAmount:i,spendAmount:a}):Me({couponAmount:i,spendAmount:a})}({calloutType:h,couponAmount:(u&&null!=e&&null!=(a=e.eligible_coupon)&&a.credit_amount?e.eligible_coupon.credit_amount:null==e||null==(s=e.pending_coupon)?void 0:s.credit_amount)||0,spendAmount:(u&&null!=e&&null!=(l=e.eligible_coupon)&&l.spend_amount?null==e||null==(c=e.eligible_coupon)?void 0:c.spend_amount:null==e||null==(d=e.pending_coupon)?void 0:d.spend_amount)||0,currency:t,lang:n});return{showCouponCallout:u||p,couponCalloutHeadline:"eligibleCoupon"===h?ft:void 0,couponCalloutText:m}}}componentDidMount(){const{analytics:e}=this.props;(0,C.hq)(e)(C.Ur.budgetSelectPageLoad()),this._fetchForecastedAudienceIfNeeded()}componentWillUnmount(){const{setBudgetErrorMessage:e}=this.props;e(null)}render(){const{audience:e,availableBudgets:t,coupons:n,currency:i,dailyBudget:a,durationDays:s,errorMessage:l,lang:c}=this.props,d=a.toLocaleString((0,ge.It)(c),{currency:i,style:"currency",maximumFractionDigits:0,minimumFractionDigits:0}),u=t[0].toLocaleString((0,ge.It)(c),{currency:i,style:"currency",maximumFractionDigits:0,minimumFractionDigits:0}),p=t.slice(-1)[0].toLocaleString((0,ge.It)(c),{currency:i,style:"currency",maximumFractionDigits:0,minimumFractionDigits:0}),h=e?function({high:e,low:t}){const n=m().cf8abf59(t),o=m().cf8abf59(e);return Le({audienceLow:n,audienceHigh:o})}(e):" ",g=Xe({durationDays:s}),b=Xe({durationDays:_t[0]}),y=Xe({durationDays:_t.slice(-1)[0]}),f=this._getSliderProps(t,a),_=this._getSliderProps(_t,s),v=function({currency:e,durationDays:t,lang:n,totalBudgetNum:o}){const r=$e({amount:o,lang:n,currency:e,fractionDigits:0});return Ze({totalBudget:r,durationLabel:Xe({durationDays:t})})}({totalBudgetNum:a*s,durationDays:s,lang:c,currency:i}),{couponCalloutHeadline:w,couponCalloutText:E,showCouponCallout:T}=this._getCouponCalloutVariables({coupons:n,lang:c,currency:i});return o.createElement(r.Z,{style:wt.qpContainer,testID:O},o.createElement(I,{screenType:C.MN.BudgetSelect}),o.createElement(_e,null,l&&o.createElement(r.Z,{style:wt.gutterVertical},o.createElement(ie.Z,{text:l,type:"danger"})),o.createElement(he,{callout:T&&o.createElement(ie.Z,{Icon:ce.Z,headline:w,text:E}),primaryLabel:v,style:wt.titleContainer,subtitle:h,title:pt}),o.createElement(de,{label:ht},o.createElement(r.Z,{style:wt.childSpacing},o.createElement(ae.Z,(0,re.Z)({accessibilityLabel:mt,accessibilityLabelValueText:`"${d}"`},f,{maxIcon:o.createElement(se.ZP,{style:wt.iconText},p),minIcon:o.createElement(se.ZP,{style:wt.iconText},u),onChange:this._handleBudgetSlider,thumbLabel:d})))),o.createElement(de,{label:gt},o.createElement(r.Z,{style:wt.childSpacing},o.createElement(ae.Z,(0,re.Z)({accessibilityLabel:bt,accessibilityLabelValueText:`"${g}"`},_,{maxIcon:o.createElement(se.ZP,{style:wt.iconText},y),minIcon:o.createElement(se.ZP,{style:wt.iconText},b),onChange:this._handleDurationSlider,thumbLabel:g})))),o.createElement(r.Z,{style:wt.disclaimer},o.createElement(le.Z,{align:"left",color:"gray700",size:"subtext2"},yt))))}}vt.contextType=f.rC;const wt=p.Z.create((e=>({qpContainer:{flex:1,overflowY:"auto"},titleContainer:{paddingBottom:e.spaces.space32},disclaimer:{marginVertical:e.componentDimensions.gutterVertical},gutterVertical:{paddingVertical:e.componentDimensions.gutterVertical},childSpacing:{marginTop:e.spaces.space4},iconText:{textAlignVertical:"text-bottom"}}))),Et=ut(vt);var Ct=n(30102);const Tt=(e,t)=>t.match.params.statusId,St=(e,t)=>Ct.ZP.selectHydrated(e,Tt(0,t)),Pt=(e,t)=>(0,E.h1)(Ct.ZP.selectFetchStatus(e,Tt(0,t)),e.quickPromote.budget.availableBudgetsFetchStatus,e.quickPromote.targeting.initialTargetedLocationsFetchStatus,e.quickPromote.account.accountDataFetchStatus,e.quickPromote.couponsFetchStatus),Zt=(e,t)=>e.quickPromote.promoteStatus,It=(e,t)=>e.quickPromote.promoteErrorCode,kt=(e,t)=>e.quickPromote.account.campaigns,xt=(0,tt.Z)().propsFromState((()=>({statusId:Tt,fetchStatus:Pt,tweet:St,campaigns:kt,promoteFetchStatus:Zt,promoteErrorCode:It}))).propsFromActions((e=>({createLocalApiErrorHandler:(0,et.createLocalApiErrorHandlerWithContextFactory)("QUICK_PROMOTE_SCREEN"),fetchTweetIfNeeded:Ct.ZP.fetchOneIfNeeded,fetchCurrentTargetingLocationIfNeeded:nt.yW,fetchAvailableBudgetsIfNeeded:nt.WS,fetchAdsAccountDataIfNeeded:nt.Ek,fetchQuickPromoteEligibilityIfNeeded:nt.E6,fetchCouponsIfNeeded:nt.fN,handleFirstLoad:()=>(e=>{const{analytics:t,history:n,location:o,match:r}=e,{quickPromotePlatform:i,quickPromoteScreenName:a,screenName:s,statusId:l}=r.params,c={pa_signup_complete:o.query.pa_signup_complete||""};return(0,nt.Jk)(s,l,i,a,n,c,t)})(e),setPromoteFetchStatus:nt.Ik}))).withAnalytics(C.EP);var At=n(88990);const Lt=(0,tt.Z)().withAnalytics(C.EP),Rt=m().e1bca506,Dt=m().e4a4c608,Mt=m().a219e218;class Ot extends o.PureComponent{constructor(...e){super(...e),this._handleGoToAnalytics=()=>{const{history:e,match:t}=this.props,{quickPromotePlatform:n,screenName:o,statusId:r}=t.params;(0,C.YZ)(e)(o,r,n)},this._handleClose=()=>{const{history:e}=this.props;e.goBackThroughModals()}}componentDidMount(){const{analytics:e}=this.props;(0,C.hq)(e)(C.Ur.donePageLoad())}render(){return o.createElement(o.Fragment,null,o.createElement(I,{screenType:C.MN.Done}),o.createElement(At.Z,{actionLabel:Mt,headline:Rt,isFullHeightOnMobile:!0,onAction:this._handleGoToAnalytics,onClose:this._handleClose,subtext:Dt,withCloseButton:!1}))}}Ot.contextType=f.rC;const Bt=Lt(Ot);n(14121),n(60523);const Ft=e=>!!e.quickPromote.account.selectedFundingInstrument,Ht=e=>e.quickPromote.coupons,Nt=e=>e.quickPromote.budget.currency||"USD",zt=(0,tt.Z)().propsFromState((()=>({hasFundingInstrument:Ft,coupons:Ht,lang:ot.VT,currency:Nt}))).withAnalytics(C.EP),Ut=n.p+"mobile_header_image_sm.1de0deca.png",Vt=n.p+"mobile_header_image_xs.a6014e9a.png";var qt=n(35953),Gt=n(44329);const jt=n.p+"desktop_header_image.0fe2a91a.png";function Wt({style:e}){return o.createElement(r.Z,{style:e},o.createElement(qt.Z,{accessibilityLabel:"",aspectMode:Gt.Z.exact(600/406),image:jt}))}function Kt({headerImage:e,style:t}){return o.createElement(r.Z,{style:t},o.createElement(qt.Z,{accessibilityLabel:"",aspectMode:Gt.Z.COVER,image:e}))}function $t({style:e}){return o.createElement(pe.Z,null,(({windowHeight:t,windowWidth:n})=>n>p.Z.theme.breakpoints.medium?o.createElement(Wt,{style:e}):o.createElement(Kt,{headerImage:n<=375?Vt:Ut,style:e})))}const Qt=m().dcfb0332,Yt=m().db841200,Xt=m().hc67be9e,Jt=m().dcfb0332;class en extends o.PureComponent{constructor(...e){super(...e),this._handleGoToNextPage=()=>{const{history:e,match:t}=this.props,{quickPromotePlatform:n,screenName:o,statusId:r}=t.params;e.push((0,C.WS)(o,r,n,C.MN.Objective))},this._handleClose=()=>{const{history:e}=this.props;e.goBackThroughModals()},this._getCouponVariables=({coupons:e,currency:t,lang:n})=>{var o,r,i,a;const s=(null==e||null==(o=e.eligible_coupon)?void 0:o.total_amount)||(null==e||null==(r=e.eligible_coupon)?void 0:r.credit_amount)||0,l=(null==e||null==(i=e.eligible_coupon)?void 0:i.currency_code)||t,c=null==e?void 0:e.experiment_end_date;let d=null;switch(null==e?void 0:e.eligible_coupon_experiment){case"ConditionalCouponExperiment":d=function({coupon:e,lang:t}){const n=$e({amount:e.credit_amount,lang:t,currency:e.currency_code,fractionDigits:0}),o=$e({amount:e.spend_amount,lang:t,currency:e.currency_code,fractionDigits:0});return Se({couponAmount:n,spendAmount:o})}({coupon:{type:"ConditionalCoupon",credit_amount:s,spend_amount:(null==e||null==(a=e.eligible_coupon)?void 0:a.spend_amount)||0,currency_code:l},lang:n});break;case"WelcomeCouponExperiment":c&&(d=function({coupon:e,enrolByDate:t,lang:n}){const o=$e({amount:e.total_amount,lang:n,currency:e.currency_code,fractionDigits:0});return Ce({couponAmount:o,date:m().ba2e82a1(t)})}({coupon:{type:"StandardCoupon",total_amount:s,currency_code:l},lang:n,enrolByDate:c}));break;case"WinBackCouponExperiment":c&&(d=function({coupon:e,enrolByDate:t,lang:n}){const o=$e({amount:e.total_amount,lang:n,currency:e.currency_code,fractionDigits:0});return Te({couponAmount:o,date:m().ba2e82a1(t)})}({coupon:{type:"StandardCoupon",total_amount:s,currency_code:l},lang:n,enrolByDate:c}))}return{withCoupons:s>0&&!!d,couponScreenTitle:Qe({couponAmount:s,currency:l,lang:n}),couponScreenSubtitle:d,couponButtonLabel:Jt}}}componentDidMount(){var e,t,n;const{analytics:o,coupons:r,hasFundingInstrument:i,location:a,match:s}=this.props,{screenName:l,statusId:c}=s.params,d=function(e,t,n){if(!e)return"none";{const o=new URL(e,window.location.origin);if(o.pathname===`/${t}`)return"me";if(o.pathname===`/${t}/status/${n}`)return"tweet";if(o.pathname===`/${t}/status/${n}/analytics`)return"analytics";if("/i/flow/convert_to_professional"===o.pathname)return"ptt"}return"other"}(null==(e=a.state)?void 0:e.previousPath,l,c),u="other"===d?null==(t=a.state)?void 0:t.previousPath:void 0,p=((null==r||null==(n=r.eligible_coupon)?void 0:n.total_amount)||0)>0;(0,C.hq)(o)(C.Ur.introPageLoad({hasFundingInstrument:i,entryPoint:d,otherEntryPoint:u,withCoupon:p}))}render(){const{coupons:e,currency:t,lang:n,match:r}=this.props,{quickPromotePlatform:i}=r.params,a=i===C.ZV.Rweb,{couponButtonLabel:s,couponScreenSubtitle:l,couponScreenTitle:c,withCoupons:d}=this._getCouponVariables({coupons:e,currency:t,lang:n}),u=d?c:Qt,p=d?l:Yt,h=d?s:Xt;return o.createElement(o.Fragment,null,o.createElement(I,{screenType:C.MN.Intro}),o.createElement(At.Z,{actionLabel:h,graphic:$t,graphicDisplayMode:"illustrationFullWidth",headline:u,isFullHeightOnMobile:!0,onAction:this._handleGoToNextPage,onClose:this._handleClose,primaryButtonTestID:k,subtext:p,withCloseButton:a}))}}en.contextType=f.rC;const tn=zt(en);function nn(e){(new Image).src=e}function on(){return o.createElement(pe.Z,null,(({windowHeight:e,windowWidth:t})=>(nn(t>p.Z.theme.breakpoints.medium?jt:t<=375?Vt:Ut),null)))}var rn=n(24921),an=n(1206),sn=n(74062),ln=n(54484);const cn=p.Z.create((e=>({root:{overflow:"hidden",flexDirection:"row",justifyContent:"space-between",gap:e.spaces.space16,backgroundColor:e.colors.elevatedBackground,padding:e.spaces.space16,boxShadow:"0px 2px 12px rgba(15, 20, 25, 0.12)"},withMarginTop:{marginTop:e.spaces.space20},border:{borderRadius:e.borderRadii.large,borderColor:e.colors.transparent,borderWidth:e.borderWidths.medium},checked:{borderColor:e.colors.primary},interactive:{cursor:"pointer"},iconContainer:{alignSelf:"flex-start",flexDirection:"column",justifyContent:"center",width:e.spaces.space40,height:e.spaces.space40},labelContainer:{flexDirection:"column",justifyContent:"center",flex:1},inlineCalloutContainer:{marginTop:e.spaces.space8},description:{marginTop:e.spaces.space4}}))),dn={...p.Z.absoluteFillObject,cursor:"inherit",height:"100%",margin:0,opacity:0,padding:0,width:"100%"},un=({accessibilityLabel:e,accessibilityPosInSet:t,accessibilitySetSize:n,checked:i,description:a,disabled:s,illustration:l,inlineCallout:c,label:d,name:u,onChange:p,testID:h})=>{const m=(0,ln.b)(),g=(0,ln.b)();return o.createElement(sn.Z,{disabled:s,style:[cn.root,1!==t&&cn.withMarginTop,cn.border,i&&cn.checked,!s&&cn.interactive],testID:h},!!l&&o.createElement(r.Z,{style:cn.iconContainer,testID:"illustration"},l),o.createElement(r.Z,{style:cn.labelContainer},o.createElement(se.ZP,{accessibilityRole:"label",nativeID:m,size:"headline2",weight:"bold"},d),!!a&&o.createElement(se.ZP,{color:"gray700",nativeID:g,size:"subtext1",style:cn.description,testID:"description"},a),i&&!!c&&o.createElement(r.Z,{style:cn.inlineCalloutContainer,testID:"inlineCallout"},c)),o.createElement("input",{"aria-describedby":g,"aria-label":e,"aria-labelledby":m,"aria-posinset":t,"aria-setsize":n,checked:i,disabled:s,name:u,onChange:i?an.Z:p,style:dn,type:"radio"}))},pn=e=>{const t=o.useCallback((({value:e,...t})=>o.createElement(un,(0,re.Z)({},t,{key:e}))),[]);return o.createElement(rn.Z,(0,re.Z)({},e,{renderSelector:t}))};var hn=n(90465);const mn=(e,t)=>e.quickPromote.objective,gn=(e,t)=>Ct.ZP.selectHydrated(e,((e,t)=>t.match.params.statusId)(0,t)),bn=(0,tt.Z)().propsFromState((()=>({selectedObjective:mn,tweet:gn}))).propsFromActions((()=>({setObjective:nt.mS}))).withAnalytics(C.EP);var yn=n(73487);const fn=n.p+"engagements_icon.14baf75a.png";function _n(){return o.createElement(yn.Z,{accessibilityLabel:"",source:fn,style:p.Z.absoluteFill})}const vn=n.p+"followers_icon.80e5851a.png";function wn(){return o.createElement(yn.Z,{accessibilityLabel:"",source:vn,style:p.Z.absoluteFill})}const En=n.p+"website_clicks_icon.82f641fa.png";function Cn(){return o.createElement(yn.Z,{accessibilityLabel:"",source:En,style:p.Z.absoluteFill})}const Tn=m().fcc839b6,Sn=(m().c1a1817c,m().c9a73b7c),Pn=m().b0583654,Zn=m().a2d37164,In=p.Z.create((e=>({titleContainer:{paddingBottom:e.spaces.space28},qpContainer:{flex:1,overflowY:"auto"}}))),[kn,xn,An]=[{label:Je(hn.CH.Engagements),value:hn.CH.Engagements,description:Sn,illustration:o.createElement(_n,null),testID:R(hn.CH.Engagements)},{label:Je(hn.CH.Followers),value:hn.CH.Followers,description:Pn,illustration:o.createElement(wn,null),testID:R(hn.CH.Followers)},{label:Je(hn.CH.WebsiteClicks),value:hn.CH.WebsiteClicks,description:Zn,illustration:o.createElement(Cn,null),testID:R(hn.CH.WebsiteClicks)}];const Ln=bn((e=>{var t,n,i,s,l,c;const{analytics:d,selectedObjective:u,setObjective:p,tweet:h}=e,m=h?a.Z.getOriginalTweet(h):h,g=null!=(null==m||null==(t=m.entities)||null==(n=t.media)?void 0:n.length)&&(null==m||null==(i=m.entities)||null==(s=i.media)?void 0:s.length)>0,b=1===(null==m||null==(l=m.entities)||null==(c=l.urls)?void 0:c.length),y=!!(null!=m&&m.in_reply_to_status_id_str||null!=m&&m.in_reply_to_name||null!=m&&m.in_reply_to_screen_name||null!=m&&m.in_reply_to_user_id_str||null!=m&&m.in_reply_to_user);o.useEffect((()=>{(0,C.hq)(d)(C.Ur.goalSelectionPageLoad())}),[]);const f=o.useMemo((()=>function({selectedObjective:e,tweetContainsLinks:t,tweetHasMedia:n,tweetIsReply:o}){return[kn,...o?[]:[xn],{...An,disabled:!t}]}({tweetHasMedia:g,tweetContainsLinks:b,selectedObjective:u,tweetIsReply:y})),[g,b,u,y]),_=o.useCallback(((e,t)=>{p(t),(0,C.hq)(d)(C.Ur.setPromoteGoal(t))}),[d,p]);return o.createElement(r.Z,{style:In.qpContainer,testID:A},o.createElement(I,{screenType:C.MN.Objective}),o.createElement(_e,null,o.createElement(he,{style:In.titleContainer,title:Tn}),o.createElement(pn,{name:"objective-picker",onChange:_,options:f,value:u})))})),Rn=Ln;function Dn(e){(new Image).src=e}function Mn(){return Dn(fn),Dn(vn),Dn(En),o.createElement(o.Fragment,null)}var On=n(14983),Bn=n.n(On),Fn=n(88769),Hn=n(76275),Nn=n(39581),zn=n(10531);const Un=(e,t)=>t.match.params.statusId,Vn=(e,t)=>Ct.ZP.selectHydrated(e,Un(0,t)),qn=(e,t)=>Ct.ZP.selectFetchStatus(e,Un(0,t)),Gn=(e,t)=>e.quickPromote.account.adsAccount,jn=(e,t)=>e.quickPromote.account.selectedFundingInstrument,Wn=(0,tt.Z)().propsFromState((()=>({fetchStatus:qn,tweet:Vn,adsAccount:Gn,fundingInstrument:jn,selectedPaymentMethod:nt.DY}))).propsFromActions((e=>({createLocalApiErrorHandler:(0,et.createLocalApiErrorHandlerWithContextFactory)("QUICK_PROMOTE_PAYMENT_SCREEN"),fetchTweetIfNeeded:Ct.ZP.fetchOneIfNeeded,scribeAction:Nn.n9,savePlatformRedirectBackState:()=>(0,zn.oE)(e.match.params.quickPromotePlatform),fetchAdsAccountDataIfNeeded:zn.Ek}))).withAnalytics(C.EP);class Kn extends o.PureComponent{constructor(...e){super(...e),this.isPaymentSelectEnabled=this.context.featureSwitches.isTrue("responsive_web_qp_payment_select_enabled")}componentDidMount(){const{adsAccount:e,analytics:t,fundingInstrument:n,match:o,savePlatformRedirectBackState:r}=this.props,{quickPromotePlatform:i,statusId:a}=o.params;r();const s=$n(this.props),l=(0,C.lg)(i,e,a,n,s);s&&(0,C.hq)(t)(C.Ur.paymentPageLoadAddingCard()),(0,C.hq)(t)(C.Ur.paymentPageLoad(l.url)),l.isSameHost||window.location.assign(l.url)}render(){const{adsAccount:e,fundingInstrument:t,match:n}=this.props,r=$n(this.props),{quickPromotePlatform:i,statusId:s}=n.params,l=(0,C.lg)(i,e,s,t,r);return l.isSameHost?o.createElement(o.Fragment,null,o.createElement(I,{screenType:C.MN.Payment}),o.createElement(Fn.Z,{dangerouslyDisableSandbox:!0,onMessage:(c=this.props,d=this.context,u=this.isPaymentSelectEnabled,e=>{const{analytics:t,tweet:n}=c,o=$n(c);if(e&&"quick_promote"===e.name)if("scribe"===e.type){const o=n&&a.Z.getOriginalTweet(n)||void 0,r=o?[Hn.Z.getTweetItem(o)]:[],i=e.scribeData||{},s="string"==typeof i.component?i.component:"quick_promote",l="string"==typeof i.uiEvent?i.uiEvent:"";t.scribe({component:s,action:l,data:{items:r}})}else if("navigation"===e.type){const{createLocalApiErrorHandler:e,fetchAdsAccountDataIfNeeded:n,history:r,match:i}=c,{quickPromotePlatform:a,screenName:s,statusId:l}=i.params;Bn()(!!d.loggedInUserId,"loggedInUserId must be defined"),n(d.loggedInUserId,t,!0).catch(e()),r.push(`/${s}/status/${l}/${a}/${u&&o?C.MN.PaymentSelect:C.MN.Review}`)}}),reportError:we.ZP,src:l.url,style:Qn.iframe,title:"Payment Form"})):null;var c,d,u}}function $n(e){const t=function(e,t){const{location:{search:n}}=e;return new URLSearchParams(n).get(t)}(e,"isAddingPayment");return!!t&&"true"===t}Kn.contextType=f.rC;const Qn=p.Z.create((e=>({iframe:{flexGrow:1,paddingTop:0}}))),Yn=Wn(Kn);var Xn=n(19874),Jn=n(11839),eo=n(44487),to=n(25301),no=n(44173),oo=n(73206),ro=n(79866),io=n(45784),ao=n(62119),so=n(24797);const lo=e=>e.quickPromote.paymentMethods,co=(0,tt.Z)().propsFromState((()=>({paymentMethods:lo,selectedPaymentMethod:nt.DY}))).propsFromActions((()=>({setSelectedPaymentMethod:nt.$L,deletePaymentMethod:nt.gp}))).withAnalytics(C.EP),uo=m().de43b660,po=m().hb4773a0,ho=m().aa2a3dd4,mo=m().b1c5b63c,go=m().affb5878,bo=m().cfd2f35e,yo=(e,t,n,r)=>e.map((e=>({label:o.createElement(fo,{deletePaymentMethodHandler:n,id:e.id,imgSrcUrl:e.imgSrcUrl,isSelected:t===e.id,lastFourDigits:e.lastFourDigits,status:e.cardStatus}),value:e.id,containerStyle:[wo.paymentMethodRadioContainer,wo.bottomBorder,r]}))),fo=e=>{const t=e.deletePaymentMethodHandler?t=>o.createElement(eo.Z,{items:[{Icon:ao.Z,text:ho,onClick:()=>{t(),e.deletePaymentMethodHandler&&e.deletePaymentMethodHandler(e.id)},isEmphasized:!0,disabled:e.isSelected}],onCloseRequested:t}):void 0;return o.createElement(r.Z,{style:wo.paymentMethod},o.createElement(r.Z,{style:[wo.descriptionItemContainer,e.paymentDescriptionStyle]},e.imgSrcUrl?o.createElement(r.Z,{style:wo.cardImageContainer},o.createElement(yn.Z,{source:e.imgSrcUrl,style:wo.cardImage})):o.createElement(se.ZP,{size:"body"},"Card"),o.createElement(r.Z,{style:wo.descriptionContainer},o.createElement(se.ZP,{color:"gray700",size:"subtext1"},`${mo} ${e.lastFourDigits}`)),("Expired"===e.status||"Invalid"===e.status)&&o.createElement(r.Z,{style:wo.statusBadgeContainer},o.createElement(to.ZP,{style:wo.expiredBadge},o.createElement(se.ZP,{size:"subtext3",style:wo.expiredBadge,weight:"bold"},e.status)))),e.deletePaymentMethodHandler&&o.createElement(no.Z,{renderActionMenu:t}))},_o=e=>{const{cancelDeletePaymentMethodHandler:t,confirmDeletePaymentMethodHandler:n}=e;return o.createElement(oo.Z,{onMaskClick:t,type:"bottom",withMask:!0},o.createElement(r.Z,{style:wo.deleteCardConfirmContainer},o.createElement(u.ZP,{icon:o.createElement(ao.Z,null),onPress:n,style:wo.modalButton,type:"destructiveOutlined"},go),o.createElement(u.ZP,{onPress:t,style:wo.modalButton,type:"primaryOutlined"},bo)))},vo=ro.Z.generate({backgroundColor:p.Z.theme.colors.transparent,color:p.Z.theme.colors.primary,insetFocusRing:!0}),wo=p.Z.create((e=>({qpContainer:{flex:1,overflow:"auto"},paymentMethod:{flexDirection:"row",justifyContent:"space-between"},descriptionItemContainer:{backgroundColor:e.colors.cellBackground,paddingVertical:e.spaces.space8,marginStart:e.spaces.space12},statusBadgeContainer:{margin:e.spaces.space2},descriptionContainer:{margin:e.spaces.space2},paymentMethodRadioContainer:{flexDirection:"row-reverse",paddingVertical:e.spaces.space8,marginStart:`-${e.spaces.space24}`},bottomBorder:{borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:e.colors.borderColor},deleteCardConfirmContainer:{justifyContent:"flex-end",padding:e.spaces.space8},titleContainer:{paddingTop:e.spaces.space32,paddingBottom:e.spaces.space20,paddingStart:e.spaces.space20},addPaymentMethodContainer:{backgroundColor:e.colors.cellBackground},addPaymentMethodInteractiveContainer:{flexDirection:"row",minHeight:e.spaces.space48,paddingVertical:e.spaces.space16},plusIcon:{color:e.colors.primary,marginEnd:e.spaces.space16},expiredBadge:{backgroundColor:e.colors.red50,color:e.colors.red900},cardImageContainer:{height:"20px",flexDirection:"row",width:"32px",margin:e.spaces.space2},cardImage:{resizeMode:"contain",flex:1},modalButton:{margin:e.spaces.space8}}))),Eo=co((e=>{const{analytics:t,deletePaymentMethod:n,history:i,match:{params:{quickPromotePlatform:a,screenName:s,statusId:l}},paymentMethods:c,selectedPaymentMethod:u,setSelectedPaymentMethod:p}=e;Z(C.MN.PaymentSelect);const h=u?u.id:"",[m,g]=o.useState(!1),[b,y]=o.useState(null),f=(e,n)=>{if((0,so.Z)(c))return;const o=c.find((e=>e.id===n))||null;o&&"Invalid"===o.cardStatus||(g(!0),p(n).catch((e=>{(0,C.hq)(t)(C.Ur.paymentMethodChanged(e))})).finally((()=>{g(!1)})),(0,C.hq)(t)(C.Ur.paymentMethodChanged()))};return o.useEffect((()=>{(0,C.hq)(t)(C.Ur.paymentSelectPageLoad())}),[t]),o.createElement(o.Fragment,null,o.createElement(r.Z,{style:wo.qpContainer,testID:Q},m?o.createElement(d.Z,{indeterminate:!0}):null,o.createElement(_e,null,o.createElement(he,{title:uo})),ye((e=>o.createElement(Xn.Z,{disabled:m,name:uo,onChange:f,options:yo(c,h,(e=>y(e)),e),value:h}))),ye((e=>o.createElement(r.Z,{style:wo.addPaymentMethodContainer},o.createElement(Jn.Z,{disabled:m,interactive:m,interactiveStyles:vo,onPress:()=>i.push(`${(0,C.WS)(s,l,a,C.MN.Payment)}?isAddingPayment=true`),style:[wo.addPaymentMethodInteractiveContainer,e]},o.createElement(io.Z,{style:wo.plusIcon}),o.createElement(se.ZP,{align:"left",color:"primary"},po))))),b&&o.createElement(_o,{cancelDeletePaymentMethodHandler:()=>y(null),confirmDeletePaymentMethodHandler:()=>{b&&(y(null),g(!0),n(b).catch((e=>{(0,C.hq)(t)(C.Ur.paymentMethodDeleted(e))})).finally((()=>{g(!1)})),(0,C.hq)(t)(C.Ur.paymentMethodDeleted()))}})))})),Co=Eo;var To=n(15686),So=n(10364);const Po=e=>e.quickPromote.objective,Zo=(e,t)=>e.quickPromote.targeting.targetedLocations,Io=(e,t)=>e.quickPromote.targeting.ageBucket,ko=(e,t)=>e.quickPromote.targeting.gender,xo=(e,t)=>e.quickPromote.budget.dailyBudget,Ao=(e,t)=>e.quickPromote.budget.durationDays,Lo=e=>e.quickPromote.budget.currency||"USD",Ro=e=>e.quickPromote.account.selectedFundingInstrument,Do=e=>e.quickPromote.account.adsAccount,Mo=e=>e.quickPromote.promoteStatus,Oo=e=>e.quickPromote.promoteErrorCode,Bo=e=>e.quickPromote.coupons,Fo=e=>e.quickPromote.enrollCouponErrorCode,Ho=({history:e,match:t})=>n=>{const{quickPromotePlatform:o,screenName:r,statusId:i}=t.params;return(0,nt.kb)(e,r,i,o,n)},No=(0,tt.Z)().propsFromState((()=>({objective:Po,targetedLocations:Zo,ageBucket:Io,gender:ko,dailyBudget:xo,durationDays:Ao,lang:ot.VT,country:nt.QE,currency:Lo,fundingInstrument:Ro,adsAccount:Do,promoteStatus:Mo,promoteErrorCode:Oo,coupons:Bo,enrollCouponErrorCode:Fo,selectedPaymentMethod:nt.DY}))).propsFromActions((e=>({createLocalApiErrorHandler:(0,et.createLocalApiErrorHandlerWithContextFactory)("QUICK_PROMOTE_REVIEW_SCREEN"),clearPersistedRedirectBackState:()=>(0,nt.oE)(),createPromotion:Ho(e),enrollCoupon:nt.br}))).withAnalytics(C.EP),zo=m().db443ae2,Uo=m().a96f811e,Vo=m().b069d89c,qo=m().fbd44e96,Go=m().e36bce64,jo=m().c602f5b8,Wo=m().ia83756c,Ko=m().cc217a04,$o=m().c602f5b8,Qo=m().g4f2b588,Yo=m().i41612da,Xo=m().cdae1af0,Jo=m().ed8bb5a0,er=m().fc640c20,tr=m().be2dc078,nr=m().iaefd4de,or=m().e5e42640,rr=m().da2805d2,ir=m().ef4602ec,ar=m().a4db098c,sr=m().ef7e3916;class lr extends o.PureComponent{constructor(...e){super(...e),this._getPaymentDescription=(e,t)=>{const{adsAccount:n}=this.props;return n&&n.timezone&&n.country_code?e?Xo:t?er:Jo:t?nr:tr},this._handlePromote=()=>{const{analytics:e,createPromotion:t}=this.props;(0,C.hq)(e)(C.Ur.promotionClick()),t(e)},this._handleEnrollCoupon=()=>{const{analytics:e,coupons:t,enrollCoupon:n,fundingInstrument:o}=this.props,r=this._getCouponErrorMessage();o&&null!=t&&t.eligible_coupon&&!r&&n(e)},this._getPromoteErrorMessage=()=>{const{promoteErrorCode:e,promoteStatus:t}=this.props;if(!e)return t===E.ZP.LOADED?rr:null;switch(e){case"MissingFundingInstrument":case"InvalidPaymentMethod":return sr;case"CampaignCreationFailed":case"PromotionIneligible":return ar;default:return ir}},this._getCouponErrorMessage=()=>{const{enrollCouponErrorCode:e}=this.props;return e?or:null},this._getCouponVariables=({coupons:e,currency:t,lang:n})=>{var o;const r=null!=e&&e.existing_balance.length?e.existing_balance.find((e=>e.currency_code===t)):null,i=!(null==r||!r.total_amount)&&r.total_amount>0,a=!(null==e||!e.eligible_coupon),s=!(null==e||null==(o=e.pending_coupon)||!o.credit_amount||null==e||!e.pending_coupon.spend_amount),l=s||"ConditionalCouponExperiment"===(null==e?void 0:e.eligible_coupon_experiment)?"conditionalCoupon":i||a?"standardCoupon":void 0,c=this._getCouponErrorMessage();return{existingCouponBalance:r,hasCouponCredit:i,isEligibleForCoupon:a,showCouponTerms:(s||i||a)&&!c,couponType:l,couponErrorMessage:c}},this._getCouponCalloutVariables=({coupons:e,currency:t,lang:n})=>{var o,r,i,a,s,l,c,d;const{enrollCouponErrorCode:u}=this.props,p="ConditionalCouponExperiment"===(null==e?void 0:e.eligible_coupon_experiment)&&(null==e||null==(o=e.eligible_coupon)?void 0:o.credit_amount)&&(null==e||null==(r=e.eligible_coupon)?void 0:r.spend_amount)&&!u,h=(null==e||null==(i=e.pending_coupon)?void 0:i.credit_amount)&&(null==e?void 0:e.pending_coupon.spend_amount),m=function({calloutType:e,couponAmount:t,currency:n,lang:o,spendAmount:r}){const i=$e({amount:t,lang:o,currency:n,fractionDigits:0}),a=$e({amount:r,lang:o,currency:n,fractionDigits:0});return Me({couponAmount:i,spendAmount:a})}({calloutType:p?"eligibleCoupon":"pendingCoupon",couponAmount:(p&&null!=e&&null!=(a=e.eligible_coupon)&&a.credit_amount?e.eligible_coupon.credit_amount:null==e||null==(s=e.pending_coupon)?void 0:s.credit_amount)||0,spendAmount:(p&&null!=e&&null!=(l=e.eligible_coupon)&&l.spend_amount?null==e||null==(c=e.eligible_coupon)?void 0:c.spend_amount:null==e||null==(d=e.pending_coupon)?void 0:d.spend_amount)||0,currency:t,lang:n});return{showCouponCallout:p||h,couponCalloutText:m}}}componentDidMount(){const{analytics:e,clearPersistedRedirectBackState:t,fundingInstrument:n}=this.props;t();const o=!!n;(0,C.hq)(e)(C.Ur.reviewPageLoad({hasFundingInstrument:o})),this._handleEnrollCoupon()}render(){var e;const{adsAccount:t,ageBucket:n,country:i,coupons:a,currency:s,dailyBudget:l,durationDays:c,fundingInstrument:d,gender:p,lang:h,match:g,objective:b,promoteStatus:y,selectedPaymentMethod:f,targetedLocations:_}=this.props,v=null==t?void 0:t.needs_vat,w=(null==(e=null==t?void 0:t.isCanWriteBilling)||e)&&this.context.featureSwitches.isTrue("responsive_web_qp_payment_select_enabled"),E=function({maxAge:e,minAge:t}){return e?ke({minAge:t,maxAge:e}):xe({minAge:t})}(hn.gT[n]),T=Je(b),S=function({formattedAge:e,gender:t,locations:n}){const o=n.length;return Re({newlinePlaceholder:"\n",locations:(0,ve.Z)(n),locationsHeading:Ye({numLocations:o}),formattedAge:e,gender:t})}({locations:_.map((({localized_name:e})=>e)),formattedAge:E,gender:We(p)}),{couponErrorMessage:P,couponType:Z,existingCouponBalance:k,hasCouponCredit:x,isEligibleForCoupon:A,showCouponTerms:L}=this._getCouponVariables({coupons:a,currency:s,lang:h}),R=function({currency:e,dailyBudgetNum:t,durationDays:n,lang:o}){const r=$e({amount:t,lang:o,currency:e,fractionDigits:0});return Pe({dailyBudget:r,durationLabel:Xe({durationDays:n})})}({dailyBudgetNum:l,durationDays:c,lang:h,currency:s}),D=x?"":$e({amount:l*c,lang:h,currency:s}),{quickPromotePlatform:M,screenName:O,statusId:q}=g.params,G=this._getPromoteErrorMessage(),j=!!d,{couponCalloutText:W,showCouponCallout:K}=this._getCouponCalloutVariables({coupons:a,currency:s,lang:h});return o.createElement(o.Fragment,null,o.createElement(I,{screenType:C.MN.Review}),o.createElement(r.Z,{style:cr.qpContainer,testID:B},o.createElement(_e,null,G&&o.createElement(r.Z,{style:cr.gutter},o.createElement(ie.Z,{text:G,type:"danger"})),P&&o.createElement(r.Z,{style:cr.gutter},o.createElement(ie.Z,{text:P,type:"warning"})),o.createElement(he,{title:zo}),o.createElement(de,{description:T,descriptionTestID:H,label:Uo,withBottomBorder:!1}),o.createElement(de,{description:S,descriptionTestID:N,label:Vo,withBottomBorder:!1}),o.createElement(To.Z,null,(({direction:e})=>o.createElement(de,{children:K&&o.createElement(ie.Z,{style:cr.couponCallout,text:W}),description:R,descriptionDir:e,descriptionTestID:z,label:qo,withBottomBorder:!1})))),be((e=>w?o.createElement(So.Z,{description:"CREDIT_CARD"===(null==d?void 0:d.type)&&f&&!v?o.createElement(fo,{id:f.id,imgSrcUrl:f.imgSrcUrl,lastFourDigits:f.lastFourDigits,paymentDescriptionStyle:cr.paymentDescription,status:f.cardStatus}):d&&!v?d.description:o.createElement(se.ZP,{color:"primary",size:"subtext2"},this._getPaymentDescription(j,A)),label:o.createElement(se.ZP,{weight:"bold"},Go),link:!d||v?(0,C.WS)(O,q,M,C.MN.Payment):"CREDIT_CARD"===(null==d?void 0:d.type)?(0,C.WS)(O,q,M,C.MN.PaymentSelect):void 0,paddingHorizontal:e,testID:U}):o.createElement(So.Z,{description:d&&!v?d.description:o.createElement(se.ZP,{color:"primary",size:"subtext2"},this._getPaymentDescription(j,A)),label:o.createElement(se.ZP,{weight:"bold"},Go),link:!d||v?(0,C.WS)(O,q,M,C.MN.Payment):void 0,paddingHorizontal:e,testID:U})))),o.createElement(r.Z,{style:cr.bottomElements},o.createElement(_e,null,o.createElement(de,{description:D,descriptionTestID:V,label:jo,withBottomBorder:!1},x?function({balance:e,currency:t,lang:n,subtotal:i}){const a=$e({amount:i,currency:t,lang:n}),s=$e({amount:Math.min(i,e),currency:t,lang:n}),l=$e({amount:Math.max(0,i-e),currency:t,lang:n}),c=e>i?$e({amount:e-i,currency:t,lang:n}):null;return o.createElement(o.Fragment,null,o.createElement(r.Z,{style:cr.promotionTotalRow},o.createElement(se.ZP,{color:"gray700",size:"subtext2"},Wo),o.createElement(se.ZP,{color:"gray700",size:"subtext2"},a)),o.createElement(r.Z,{style:cr.promotionTotalRow},o.createElement(se.ZP,{color:"blue500",size:"subtext2"},Ko),o.createElement(se.ZP,{color:"blue500",size:"subtext2"},"-",s)),o.createElement(r.Z,{style:cr.promotionTotalRow},o.createElement(se.ZP,{color:"gray700",size:"subtext2",weight:"bold"},$o),o.createElement(se.ZP,{color:"gray700",size:"subtext2",testID:V,weight:"bold"},l)),c&&o.createElement(r.Z,{style:cr.promotionTotalRow},o.createElement(se.ZP,{color:"gray700",size:"subtext2"},Qo),o.createElement(se.ZP,{color:"gray700",size:"subtext2"},c)))}({subtotal:l*c,balance:(null==k?void 0:k.total_amount)||0,currency:s,lang:h}):null),o.createElement(le.Z,{align:"left",style:cr.terms},function(e,t,n,r){return n?o.createElement(m().I18NFormatMessage,{$i18n:"cace9785"},o.createElement(se.ZP,{link:(0,C.s0)(e)},m().eb44cb19),o.createElement(se.ZP,{link:(0,C.bx)(t,r)},m().fc0d6d0d)):o.createElement(m().I18NFormatMessage,{$i18n:"c99d7101"},o.createElement(se.ZP,{link:(0,C.s0)(e)},m().ca5cd8c7))}(i,h,L,Z)),o.createElement(u.ZP,{disabled:!d||v||nt.LK.includes(y),onPress:this._handlePromote,size:"xLarge",testID:F,type:"primaryFilled"},Yo))))}}lr.contextType=f.rC;const cr=p.Z.create((e=>({qpContainer:{flex:1,overflow:"auto"},bottomElements:{marginTop:e.spaces.space12,marginBottom:e.spaces.space20},couponCallout:{marginTop:e.spaces.space12},childContainer:{paddingHorizontal:0},terms:{textAlign:"start",color:e.colors.gray700,fontSize:e.fontSizes.subtext3,paddingBottom:e.spaces.space24},gutter:{paddingHorizontal:e.componentDimensions.gutterHorizontal,paddingVertical:e.componentDimensions.gutterVertical},promotionTotalRow:{marginTop:e.spaces.space2,justifyContent:"space-between",flexDirection:"row"},paymentDescription:{flexDirection:"row",marginStart:void 0,marginVertical:void 0,backgroundColor:void 0}}))),dr=No(lr);var ur=n(65597),pr=n(30318);const hr=e=>{const{direction:t}=(0,pr.Z)();return o.createElement(ur.Z,(0,re.Z)({},e,{languageWritingDirection:t}))};var mr=n(24208),gr=n(90867),br=n(32307);const yr=(e,t)=>{var n,o;return null!=(n=null==(o=e.quickPromote.account.adsAccount)?void 0:o.isHousingAndUrbanDevelopmentLimitations)&&n},fr=(e,t)=>e.quickPromote.targeting.targetedLocations,_r=(e,t)=>e.quickPromote.targeting.gender,vr=(e,t)=>e.quickPromote.targeting.ageBucket,wr=(0,tt.Z)().propsFromState((()=>({lang:ot.VT,isHousingAndUrbanDevelopmentLimitations:yr,targetedLocations:fr,selectedGender:_r,selectedAgeBucket:vr}))).propsFromActions((()=>({setTargetedAgeBucket:nt.l$,setTargetedGender:nt.A_}))).withAnalytics(C.EP),Er=m().c672105a,Cr=m().e1efbeae,Tr=m().c6ff7c10,Sr=m().b555fb46,Pr=m().a8d0108e,Zr=m().j2c03e12,Ir=["13","18","21","25","35","50"],kr=[void 0,void 0,void 0,"24","34","49","54"],xr=(0,mr.Z)((0,gr.Z)(hn.gT),(e=>e.maxAge||"over")),Ar=kr.length;function Lr(e,t){var n;if(e&&t)return null==(n=hn.E4[e])?void 0:n[t]}class Rr extends o.PureComponent{componentDidMount(){const{analytics:e}=this.props;(0,C.hq)(e)(C.Ur.targetingPageLoad())}render(){const{isHousingAndUrbanDevelopmentLimitations:e,lang:t,match:n,selectedAgeBucket:i,selectedGender:a,targetedLocations:s}=this.props,{quickPromotePlatform:l,screenName:c,statusId:d}=n.params,u=Ye({numLocations:s.length}),{maxAge:p,minAge:h}=hn.gT[i],m=Dr(i),g=p||Zr;return o.createElement(r.Z,{style:Br.qpContainer,testID:L},o.createElement(I,{screenType:C.MN.Targeting}),o.createElement(_e,null,o.createElement(he,{callout:e?o.createElement(Or,{lang:t}):void 0,style:Br.titleContainer,title:Er})),be((t=>{return o.createElement(r.Z,{style:Br.targetingContainer},o.createElement(So.Z,{description:(0,ve.Z)(s.map((({localized_name:e})=>e))),label:o.createElement(se.ZP,{weight:"bold"},u),link:(0,C.WS)(c,d,l,C.MN.TargetingLocation),paddingHorizontal:t,testID:q}),o.createElement(_e,null,o.createElement(de,{label:Cr,withBottomBorder:!1,withDisabledText:e,withPaddingHorizontal:!1},o.createElement(hr,{disabled:e,endThumbAccessibilityLabel:Sr,endThumbAccessibilityLabelValueText:`"${g}"`,endThumbLabel:g,max:Ar,min:0,onChange:(n=this.props,([e,t],o)=>{const{analytics:r,selectedAgeBucket:i,setTargetedAgeBucket:a}=n,s=Dr(i);if(!(0,br.Z)(s,[e,t]))if(o){const o=Ir[e];if(!o)return;const i=t===Ar?"over":kr[t],s=Lr(o,i);if(s)(0,C.hq)(r)(C.Ur.setTargetingAgeBucket(s)),a(s);else{const e=Object.keys(hn.E4[o])[0];Mr({minAge:o,maxAge:e,props:n})}}else{const o=t===Ar?"over":kr[t];if(!o)return;const i=Ir[e],s=Lr(i,o);if(s)(0,C.hq)(r)(C.Ur.setTargetingAgeBucket(s)),a(s);else{const{minAge:e}=xr[o].slice(-1)[0];Mr({minAge:e,maxAge:o,props:n})}}}),startThumbAccessibilityLabel:Tr,startThumbAccessibilityLabelValueText:`"${h}"`,startThumbLabel:h,value:m}))),o.createElement(So.Z,{description:We(a),disabled:e,label:o.createElement(se.ZP,{weight:"bold"},Pr),link:(0,C.WS)(c,d,l,C.MN.TargetingGender),paddingHorizontal:t,testID:G}));var n})))}}function Dr(e){const{maxAge:t,minAge:n}=hn.gT[e];return[Ir.indexOf(n),t?kr.indexOf(t):Ar]}function Mr({maxAge:e,minAge:t,props:n}){const{analytics:o,setTargetedAgeBucket:r}=n,i=hn.E4[t][e||"over"];if(!i)throw new Error(`Age bucket not found for minAge: "${t}", maxAge: "${e||"<empty>"}"`);(0,C.hq)(o)(C.Ur.setTargetingAgeBucket(i)),r(i)}function Or({lang:e}){const t=(0,C.C0)(e),n=o.useMemo((()=>({termsLink:o.createElement(se.ZP,{link:t})})),[t]);return o.createElement(ie.Z,{text:o.createElement(m().I18NFormatMessage,{$i18n:"a063fb4b"},o.cloneElement(n.termsLink,null,m().b1f8ee00))})}Rr.contextType=f.rC;const Br=p.Z.create((e=>({qpContainer:{flex:1,overflowY:"visible"},titleContainer:{paddingBottom:e.spaces.space16},targetingContainer:{flexDirection:"column",gap:e.spaces.space16}}))),Fr=wr(Rr);var Hr=n(18626);const Nr=(e,t)=>e.quickPromote.targeting.gender,zr=(e,t)=>e.quickPromote.account.campaigns,Ur=(0,tt.Z)().propsFromState((()=>({selectedGender:Nr,campaigns:zr}))).propsFromActions((()=>({setTargetedGender:nt.A_}))).withAnalytics(C.EP),Vr=[hn.Y0.Any,hn.Y0.Female,hn.Y0.Male].map((e=>({label:We(e),value:e,testID:$(e)}))),qr=m().df8d4fa0,Gr=({children:e,onBack:t})=>{const n=o.useMemo((()=>o.createElement(c.Z,{onClick:t})),[t]);return o.createElement(r.Z,{style:jr.qpContainer,testID:M},o.createElement(l.Z,{leftControl:n,style:jr.appBar,title:qr}),e)},jr=p.Z.create((e=>({qpContainer:{flex:1},appBar:{borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:e.colors.borderColor,paddingStart:e.spaces.space8},selectionGroupContainer:{paddingTop:e.spaces.space16}}))),Wr=Ur((({analytics:e,selectedGender:t,setTargetedGender:n,...i})=>{const a=o.useContext(f.rC),s=o.useCallback((()=>{const{campaigns:e,history:t,location:n,match:o}=i,{quickPromotePlatform:r,quickPromoteScreenName:s,screenName:l,statusId:c}=o.params,d=a.featureSwitches.isTrue("responsive_web_qp_intro_experiment_enabled")&&!(null==e||!e.length);(0,C.Mi)(t,n)(l,c,r,s,d)}),[a.featureSwitches,i]),l=o.useCallback(((t,o)=>{n(o),(0,C.hq)(e)(C.Ur.setTargetingGender(o)),s()}),[e,n,s]);return Z(C.MN.TargetingGender),o.createElement(Gr,{onBack:s},o.createElement(_e,null,o.createElement(r.Z,{style:jr.selectionGroupContainer},o.createElement(Hr.Z,{name:"gender",onChange:l,options:Vr,value:t}))))})),Kr=Wr;var $r=n(68472),Qr=n(50384),Yr=n(22150),Xr=n(54170),Jr=n(58955),ei=n(51461),ti=n(65188);const ni=(e,t)=>{if((0,ei.Z)(e)&&(0,ei.Z)(t)){if(e>t)return 1;if(e<t)return-1}else if((0,ti.Z)(e)&&(0,ti.Z)(t)){if(e>t)return 1;if(e<t)return-1}return 0},oi=(e,t,n)=>{const o=(0,ti.Z)(n)?Array(t.length).fill(n):n,r=t.map((e=>(0,ti.Z)(e)?t=>{const n="object"==typeof t?null==t?void 0:t[e]:void 0;return(0,ti.Z)(n)||(0,ei.Z)(n)?n:void 0}:e));return e.concat().sort(((e,t)=>(n,o)=>{for(let r=0;r<e.length;r++){const i=e[r],a=t[r]||"asc",s=ni(i(n),i(o));if(0!==s)return"desc"===a?-1*s:s}return 0})(r,o))},ri=(e,t)=>{const n=ai(e,t);return e.ads.typeahead.targetingLocation[n]},ii=(e,t)=>{var n;const o=ai(e,t);return null==(n=e.ads.typeahead.targetingLocation[o])?void 0:n.fetchStatus},ai=(e,t)=>e.quickPromote.targeting.locationQuery,si=(e,t)=>e.quickPromote.targeting.targetedLocations,li=(e,t)=>e.quickPromote.account.campaigns,ci=(e,t)=>{var n,o;return null!=(n=null==(o=e.quickPromote.account.adsAccount)?void 0:o.isHousingAndUrbanDevelopmentLimitations)&&n},di=(0,tt.Z)().propsFromState((()=>({targetingLocationQuery:ai,targetingLocations:ri,targetedLocations:si,fetchStatus:ii,userCountry:ot.GG,campaigns:li,isHousingAndUrbanDevelopmentLimitations:ci}))).propsFromActions((()=>({setTargetedLocations:nt.hI,setAndFetchTargetingLocationQuery:nt.sN,setTargetingLocationQuery:nt.zu,createLocalApiErrorHandler:(0,et.createLocalApiErrorHandlerWithContextFactory)("QUICK_PROMOTE_TARGETING_LOCATION_SCREEN")}))).withAnalytics(C.EP),ui=m().cc642518,pi=m().i0e8c3c6,hi=m().deaf5b16,mi=m().f69ad048,gi=Object.freeze({COUNTRIES:0,REGIONS:1,METROS:2,CITIES:3,POSTAL_CODES:4}),bi=Object.freeze({[C.cU.CurrentCountryMatch]:0,[C.cU.Match]:1,[C.cU.NoMatch]:2});class yi extends o.PureComponent{constructor(...e){super(...e),this.state={errorMessage:null},this._renderSearch=()=>{const{fetchStatus:e,targetingLocationQuery:t}=this.props;return o.createElement(fi,{onBack:this._handleGoBack,onChange:this._handleTargetingLocationChange,onClear:this._handleClear,targetingLocationQuery:t},o.createElement(r.Z,{style:_i.border},o.createElement(_e,null,o.createElement(se.ZP,{style:_i.headingText,weight:"heavy"},pi))),o.createElement($r.Z,{fetchStatus:e,render:this._renderSearchList,retryMessage:hi}))},this._handleClear=()=>{const{setTargetingLocationQuery:e}=this.props;e("")},this._renderSearchList=()=>{const{targetedLocations:e}=this.props,t=(0,Jr.Z)(e.map((({targeting_value:e})=>e))),n=this._getTargetingLocationOptions();return o.createElement(r.Z,{style:_i.overflow},o.createElement(_e,null,n.map((({localized_name:e,location_type:n,targeting_value:r})=>o.createElement(Qr.Z,{checked:t.has(r),helpText:Ke(n),key:r,label:e,name:r,onChange:this._handleSearchSelect,testID:K,withPaddingHorizontal:!1})))))},this._getTargetingLocationOptions=()=>{var e,t,n;const{isHousingAndUrbanDevelopmentLimitations:o,targetingLocationQuery:r,targetingLocations:i,userCountry:a}=this.props,s=null!=(e=null==i||null==(t=i.result)||null==(n=t[0])?void 0:n.locations)?e:[],l=(0,C.Jy)(a||"US"),c=s.filter((({country_code:e,localized_name:t,location_type:n})=>{if(o&&"POSTAL_CODES"===n)return!1;return l(t,e,r)!==C.cU.NoMatch}));return oi(c,[({country_code:e,localized_name:t})=>{const n=l(t,e,r);return bi[n]},({localized_name:e,location_type:t})=>{var n;return null!=(n=gi[t])?n:(e=>{(0,we.ZP)(`Quick Promote: Unknown location type: ${e}. Expected one of {${Object.keys(gi).join(", ")}}`)})(t)||Object.keys(gi).length},({localized_name:e})=>e],"asc")},this._handleSearchSelect=(e,t)=>{const{analytics:n,setTargetedLocations:o,setTargetingLocationQuery:r}=this.props;if(t){this.setState({errorMessage:null});const t=this._getTargetingLocationOptions().find((({targeting_value:t})=>t===e));t?((0,C.hq)(n)(C.Ur.setTargetingLocation({id:t.targeting_value,locationType:t.location_type,countryCode:t.country_code})),o([t]),this._handleGoBack()):(0,we.ZP)(`Quick Promote: could not find "${e}" in list of targeting options`)}else(0,C.hq)(n)(C.Ur.targetingLocationInvalid()),this.setState({errorMessage:mi});r("")},this._renderSelected=()=>{const{targetedLocations:e,targetingLocationQuery:t}=this.props,{errorMessage:n}=this.state;return o.createElement(fi,{onBack:this._handleGoBack,onChange:this._handleTargetingLocationChange,onClear:this._handleClear,targetingLocationQuery:t},o.createElement(r.Z,null,n&&o.createElement(_e,null,o.createElement(r.Z,{style:_i.gutterVertical},o.createElement(ie.Z,{text:n,type:"danger"}))),o.createElement(r.Z,{style:_i.border},o.createElement(_e,null,o.createElement(se.ZP,{style:_i.headingText,weight:"heavy"},Ye({numLocations:e.length}))))),o.createElement(_e,null,e.map((({localized_name:e,location_type:t,targeting_value:n})=>o.createElement(Qr.Z,{checked:!0,helpText:Ke(t),key:n,label:e,name:n,onChange:this._handleSearchSelect,testID:K,withPaddingHorizontal:!1})))))},this._handleGoBack=()=>{const{campaigns:e,history:t,location:n,match:o}=this.props,{quickPromotePlatform:r,quickPromoteScreenName:i,screenName:a,statusId:s}=o.params,l=this.context.featureSwitches.isTrue("responsive_web_qp_intro_experiment_enabled")&&!(null==e||!e.length);(0,C.Mi)(t,n)(a,s,r,i,l)},this._handleTargetingLocationChange=e=>{const t=e.target.value,{analytics:n,createLocalApiErrorHandler:o,setAndFetchTargetingLocationQuery:r}=this.props;(0,C.hq)(n)(C.Ur.targetingLocationSearch(t)),r(t).catch(o())}}componentDidMount(){const{analytics:e}=this.props;(0,C.hq)(e)(C.Ur.targetingLocationPageLoad())}componentWillUnmount(){this._handleClear()}render(){const{targetingLocationQuery:e}=this.props;return o.createElement(o.Fragment,null,o.createElement(I,{screenType:C.MN.TargetingLocation}),e?this._renderSearch():this._renderSelected())}}yi.contextType=f.rC;const fi=({children:e,onBack:t,onChange:n,onClear:i,targetingLocationQuery:a})=>o.createElement(r.Z,{style:_i.qpContainer,testID:D},o.createElement(l.Z,{leftControl:o.createElement(c.Z,{onClick:t}),middleControl:o.createElement(pe.Z,null,(({windowWidth:e})=>{const t=e<p.Z.theme.breakpoints.small;return o.createElement(r.Z,{style:t?_i.mobileInputContainer:_i.inputContainer},o.createElement(Yr.Z,{Icon:Xr.Z,autoFocus:!0,name:"locationTargetingInput",onChange:n,onClear:i,placeholder:ui,style:_i.input,testID:W,value:a,withClearButton:!0}))}))}),e),_i=p.Z.create((e=>({qpContainer:{flex:1},inputContainer:{paddingStart:e.spaces.space8,paddingEnd:e.spaces.space64},mobileInputContainer:{paddingEnd:e.spaces.space16},input:{marginVertical:e.spaces.space12},border:{borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:e.colors.borderColor,borderTopWidth:1,borderTopStyle:"solid",borderTopColor:e.colors.borderColor},headingText:{fontSize:e.fontSizes.headline1,paddingVertical:e.componentDimensions.gutterVertical},gutterVertical:{paddingVertical:e.componentDimensions.gutterVertical},overflow:{flexGrow:1,flexShrink:1,flexBasis:"200px",overflowY:"auto"}}))),vi=di(yi),wi=m().a065172e,Ei=m().cfcdb4a2,Ci=m().dcfb0332,Ti=m().c1df579e;class Si extends o.PureComponent{constructor(...e){super(...e),this.state={isLoaded:!1},this._getRetweetOrTweet=()=>{const{tweet:e}=this.props;return e?a.Z.getOriginalTweet(e):e},this._render=()=>{const{history:e}=this.props,t=this._getRetweetOrTweet();return!t||t&&t.user.id_str!==this.context.loggedInUserId?o.createElement(y.Z,{history:e,onBackClick:this._handleGoBack,title:Ci},o.createElement(s.Z,{onRetry:null,title:wi})):this._renderPage()},this._renderHeader=g.Z,this._renderPage=()=>{const{history:e,match:t,promoteErrorCode:n,promoteFetchStatus:o}=this.props,{quickPromotePlatform:r,quickPromoteScreenName:i,screenName:a,statusId:s}=t.params,l=this.context.featureSwitches.isTrue("responsive_web_qp_payment_select_enabled"),c=e=>(0,C.WS)(a,s,r,e);switch(i){case"intro":case"done":return this._renderSplashPage();case"objective":{const e=c(C.MN.Targeting);return this._renderProgressPage(C.D_.Objective,e)}case"targeting":{const e=c(C.MN.BudgetSelect);return this._renderProgressPage(C.D_.Targeting,e)}case"budget_select":{const e=c(C.MN.Review);return this._renderProgressPage(C.D_.BudgetSelect,e)}case"review":{const e=[E.ZP.LOADING,E.ZP.LOADED].includes(o)&&!n;return this._renderProgressPage(e?C.D_.Finish:C.D_.Review)}case"payment":return this._renderProgressPage(C.D_.Review);case"targeting_location":case"targeting_gender":return this._renderPopupPage();case"payment_select":return l||e.replace((0,C.WS)(a,s,r,C.MN.Review)),this._renderNavigationPage();default:throw v()}},this._renderProgressPage=(e,t)=>{const{history:n}=this.props;return o.createElement(y.Z,{documentTitle:Ci,history:n,renderHeader:this._renderHeader},o.createElement(l.Z,{leftControl:o.createElement(c.Z,{autofocus:!0,onClick:this._handleGoBack,testID:j})}),o.createElement(d.Z,{progress:e,style:Pi.progressBar}),o.createElement(r.Z,{style:Pi.noScrollView},this._renderRoutes(),t&&o.createElement(_e,null,o.createElement(u.ZP,{link:t,size:"xLarge",style:Pi.nextButton,testID:x,type:"primaryFilled"},Ti))))},this._renderNavigationPage=()=>{const{history:e}=this.props;return o.createElement(y.Z,{documentTitle:Ci,history:e,renderHeader:this._renderHeader},o.createElement(l.Z,{leftControl:o.createElement(c.Z,{autofocus:!0,onClick:this._handleGoBack,testID:j})}),o.createElement(r.Z,{style:Pi.noScrollView},this._renderRoutes()))},this._renderPopupPage=()=>{const{history:e}=this.props;return o.createElement(y.Z,{documentTitle:Ci,history:e,renderHeader:this._renderHeader},this._renderRoutes())},this._renderSplashPage=()=>this._renderRoutes(),this._renderRoutes=()=>{const{match:e}=this.props,{quickPromoteScreenName:t}=e.params;switch(t){case"intro":return o.createElement(i.AW,{component:tn});case"objective":return o.createElement(i.AW,{component:Rn});case"targeting":return o.createElement(i.AW,{component:Fr});case"targeting_location":return o.createElement(i.AW,{component:vi});case"targeting_gender":return o.createElement(i.AW,{component:Kr});case"budget_select":return o.createElement(i.AW,{component:Et});case"review":return o.createElement(i.AW,{component:dr});case"payment":return o.createElement(i.AW,{component:Yn});case"payment_select":return o.createElement(i.AW,{component:Co});case"done":return o.createElement(i.AW,{component:Bt});default:throw v()}},this._handleGoBack=()=>{const{analytics:e,campaigns:t,history:n,location:o,match:r}=this.props,{quickPromotePlatform:i,quickPromoteScreenName:a,screenName:s,statusId:l}=r.params,c=this.context.featureSwitches.isTrue("responsive_web_qp_intro_experiment_enabled")&&!(null==t||!t.length);(0,C.hq)(e)(C.Ur.back(a)),(0,C.Mi)(n,o)(s,l,i,a,c)},this._handleRequestRetry=()=>{const{analytics:e,match:t}=this.props,{quickPromoteScreenName:n}=t.params;(0,C.hq)(e)(C.Ur.reload(n)),window.location.reload()}}componentDidMount(){const{analytics:e,createLocalApiErrorHandler:t,fetchAdsAccountDataIfNeeded:n,fetchAvailableBudgetsIfNeeded:o,fetchCouponsIfNeeded:r,fetchCurrentTargetingLocationIfNeeded:i,fetchQuickPromoteEligibilityIfNeeded:a,fetchTweetIfNeeded:s,match:l,promoteFetchStatus:c,setPromoteFetchStatus:d,statusId:u}=this.props,{quickPromoteScreenName:p}=l.params,h=this.context.loggedInUserId;return h?(E.ZP.LOADED===c&&p!==C.MN.Done&&d(E.ZP.NONE),(0,w.zk)("initial-load",Promise.all([s(u),i(),n(h,e),r(e),a({statusId:u})]).then((()=>o())).then((()=>{const{handleFirstLoad:e}=this.props;return e()}))).catch((n=>{t(_.c)(n),(0,C.hq)(e)(C.Ur.pageLoadFail(n.message))})).finally((()=>{this.setState({isLoaded:!0})}))):Promise.resolve()}render(){const{analytics:e,fetchStatus:t,history:n,match:r}=this.props,i=[C.MN.Done];if(!this.context.loggedInUserId)return this._render();const a=(0,E.h1)(t,this.state.isLoaded?E.ZP.LOADED:E.ZP.LOADING);if(a===E.ZP.NONE)throw new Error("Quick Promote: should never have none state");return a!==E.ZP.LOADED?o.createElement(y.Z,{documentTitle:Ci,history:n,renderHeader:this._renderHeader},o.createElement(on,null),o.createElement(Mn,null),o.createElement(b.Z,{fetchStatus:a,onRequestRetry:this._handleRequestRetry,render:this._render,retryMessage:Ei})):o.createElement(oe,{analytics:e,history:n,qpRouteParams:r.params,screensAllowedToNavigate:i},o.createElement(b.Z,{fetchStatus:a,onRequestRetry:this._handleRequestRetry,render:this._render,retryMessage:Ei}))}}Si.contextType=f.rC;const Pi=p.Z.create((e=>({progressBar:{backgroundColor:e.colors.gray50},noScrollView:{overflowX:"hidden",flex:1},nextButton:{marginBottom:e.spaces.space20,marginTop:e.spaces.space12}}))),Zi=xt(Si)},96818:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var o=n(7896),r=n(2784),i=n(90601),a=n(59030),s=n(25686),l=n(7066),c=n(36934),d=n(35094),u=n(79866),p=n(11839),h=n(73186);let m=1;class g extends r.Component{blur(){this._checkboxElement&&a.Z.blur(this._checkboxElement)}focus(){this._checkboxElement&&a.Z.focus(this._checkboxElement)}constructor(){super(),this._handleChange=e=>{const{onChange:t}=this.props;t&&t(e.nativeEvent.target.checked)},this._setCheckboxRef=e=>{this._checkboxElement=e},this._labelId=`CHECKBOX_${m}_LABEL`,m+=1}render(){const{checked:e,disabled:t,helpText:n,label:a,onChange:m,style:g,...y}=this.props,f=u.Z.generate({backgroundColor:h.Z.theme.colors.transparent,color:h.Z.theme.colors.primary,withFocusWithinFocusRing:!0}),_=u.Z.generate({backgroundColor:h.Z.theme.colors.transparent,color:h.Z.theme.colors.gray700,withFocusWithinFocusRing:!0}),v=e?f:_,w=(0,i.Z)("input",{accessibilityDescribedBy:this._labelId,checked:e,disabled:t,onChange:this._handleChange,ref:this._setCheckboxRef,style:[b.nativeControl,b.cursorInherit],type:"checkbox"}),E=r.createElement(d.Z,{disabled:t},(n=>r.createElement(s.Z,(0,o.Z)({accessibilityRole:"label"},y,{style:[g,!t&&b.interactive]}),r.createElement(s.Z,{style:b.topContainer},a?r.createElement(c.ZP,null,a):null,r.createElement(s.Z,{style:b.checkboxContainer},(n=>r.createElement(p.Z,{interactiveStyles:v,interactivityState:n,style:b.fakeControlInteractiveStyles},r.createElement(s.Z,{style:[b.fakeControl,e&&b.fakeControlChecked,t&&b.fakeControlDisabled,e&&t&&b.fakeControlCheckedAndDisabled]},e?r.createElement(l.Z,{style:b.icon}):null)))(n),w)))));return n?r.createElement(s.Z,null,E,r.createElement(c.ZP,{color:"gray700",nativeID:this._labelId,size:"subtext2",style:b.helpText},n)):E}}g.defaultProps={checked:!1,disabled:!1};const b=h.Z.create((e=>({interactive:{cursor:"pointer"},topContainer:{alignItems:"center",flexDirection:"row",justifyContent:"space-between",flexGrow:1,gap:e.spaces.space8},cursorInherit:{cursor:"inherit"},checkboxContainer:{userSelect:"none"},helpText:{paddingTop:e.spaces.space4},fakeControlInteractiveStyles:{padding:e.spaces.space8,margin:`-${e.spaces.space8}`,borderRadius:e.borderRadii.infinite},fakeControl:{alignItems:"center",backgroundColor:e.colors.cellBackground,borderColor:e.colors.gray700,borderRadius:e.borderRadii.small,borderStyle:"solid",borderWidth:e.borderWidths.medium,height:e.spaces.space20,justifyContent:"center",width:e.spaces.space20},fakeControlChecked:{backgroundColor:e.colors.primary,borderColor:e.colors.primary},fakeControlDisabled:{borderColor:e.colors.gray200},fakeControlCheckedAndDisabled:{backgroundColor:e.colors.gray300,borderColor:e.colors.gray300},nativeControl:{...h.Z.absoluteFillObject,cursor:"inherit",height:"100%",margin:0,opacity:0,padding:0,width:"100%"},icon:{...h.Z.absoluteFillObject,color:e.colors.whiteOnColor,height:e.spaces.space20,margin:"auto"}}))),y=g},84292:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});n(6886);var o=n(2784),r=n(25686),i=n(79404),a=n.n(i),s=n(36934),l=n(29496),c=n(50829),d=n(54484),u=n(54044),p=n(71791),h=n(73206),m=n(73186);const g="confirmationSheetDialog",b=a().e23b20a0,y=a().bb5d8cd2,f={viewType:"cancel"};class _ extends o.Component{constructor(...e){super(...e),this.sheetLabelledById=(0,d.F)(),this._handleConfirmPress=e=>t=>{const{onConfirm:n,withForwardFocusOnConfirm:o}=this.props;o&&e(),n(t)},this._handleButtonRefUpdate=e=>{e&&!this._wasFocused&&(e.focus(),this._wasFocused=!0)},this._renderLearnMoreLink=()=>{const{learnMoreLink:e,learnMoreText:t}=this.props;return e&&t?o.createElement(s.ZP,{link:e},t):null}}render(){const{Icon:e,allowBackNavigation:t,cancelButtonLabel:n,cancelButtonLink:i,confirmButtonDisabled:a,confirmButtonLabel:d,confirmButtonLink:m,confirmButtonType:b,confirmationBehavioralEventViewType:y,enableMaskForDismiss:w,headline:E,iconStyle:C,onCancel:T,onMaskClick:S,testID:P,text:Z,withCancelButton:I}=this.props,k=this._renderLearnMoreLink(),x={viewType:null!=y?y:"confirm"};return o.createElement(u.Z,null,(({screenWidth:u})=>o.createElement(h.Z,{accessibilityLabelledBy:this.sheetLabelledById,accessibilityRole:"alertdialog",allowBackNavigation:t,enableMaskForDismiss:w,onMaskClick:S||T,style:p.Z.isNarrowScreenWidth(u)?v.narrowScreenContainer:v.container,testID:P||g,type:"center",withMask:!0},e?o.createElement(e,{style:[v.icon,C]}):null,E&&o.createElement(s.ZP,{accessibilityLevel:1,accessibilityRole:"header",align:"left",nativeID:this.sheetLabelledById,size:"headline1",style:!(!Z&&!k)&&v.bottomMargin,weight:"bold"},E),Z||k?o.createElement(s.ZP,{align:"left",color:"gray700",size:"body",style:v.labelText},Z," ",k):null,o.createElement(r.Z,{style:I?v.stackedButtons:v.buttons},o.createElement(c.Z.Context.Consumer,null,(({disableFocusingPreviousActiveElement:e})=>o.createElement(l.ZP,{behavioralEventContext:x,disabled:a,link:m,onPress:this._handleConfirmPress(e),ref:this._handleButtonRefUpdate,size:"large",style:I?v.stackedButton:v.button,testID:_.testIDs.confirm,type:"destructiveFilled"!==b?"primaryFilled":b},d))),I&&o.createElement(l.ZP,{behavioralEventContext:f,link:i,onPress:T,size:"large",style:I?v.stackedButton:v.button,testID:_.testIDs.cancel,type:"primaryOutlined"},n)))))}}_.defaultProps={cancelButtonLabel:b,confirmButtonLabel:y,confirmButtonType:"primary",enableMaskForDismiss:!0,withCancelButton:!0,withForwardFocusOnConfirm:!1},_.testIDs={confirm:"confirmationSheetConfirm",cancel:"confirmationSheetCancel"};const v=m.Z.create((e=>({container:{alignItems:"left",padding:e.spaces.space32},narrowScreenContainer:{alignItems:"left",padding:e.spaces.space28},icon:{marginBottom:e.spaces.space16,fontSize:e.spaces.space32,color:e.colors.text},bottomMargin:{marginBottom:e.spaces.space8},labelText:{width:"100%"},buttons:{flexDirection:"row",flexWrap:"wrap-reverse",marginBottom:`calc(${e.spaces.space12} * -1)`,marginTop:e.spaces.space24,marginEnd:`calc(${e.spaces.space12} * -1)`,width:"100%"},stackedButtons:{flexDirection:"column",marginBottom:`calc(${e.spaces.space12} * -1)`,marginTop:e.spaces.space24,marginEnd:`calc(${e.spaces.space12} * -1)`,width:"100%"},button:{flexGrow:1,marginBottom:e.spaces.space12,marginEnd:e.spaces.space12,overflow:"hidden",textOverflow:"ellipsis",width:e.spaces.space80,whiteSpace:"nowrap"},stackedButton:{flexGrow:1,marginBottom:e.spaces.space12,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}))),w=_},91974:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(25686),i=n(36934),a=n(73186);const s=({align:e="center",equiTextTestID:t,...n})=>{const a=o.useRef(null);return o.createElement(r.Z,{style:"center"===e?l.centerElement:null,testID:t},o.createElement(r.Z,{ref:e=>{a.current=e,a.current&&function(e){e.style.width="";try{const{height:t}=e.getBoundingClientRect();let n=e.offsetWidth,o=n/2;e.style.width=`${o}px`;const{height:r}=e.getBoundingClientRect();if(r===t)return void(e.style.width="");for(let r=0;r<15;++r){const r=(n+o)/2;e.style.width=`${r}px`;const{height:i}=e.getBoundingClientRect();if(i===t?n=r:o=r,n-o<1)return void(e.style.width=`${Math.ceil(n)+1}px`)}e.style.width=""}catch{e.style.width=""}}(a.current)}},o.createElement(i.ZP,n)))};const l=a.Z.create((e=>({centerElement:{alignItems:"center"}})))},22150:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var o=n(7896),r=(n(6886),n(2784)),i=n(25686),a=n(79404),s=n.n(a),l=n(28045),c=n(6405),d=n(16587),u=n(73036),p=n(36934),h=n(29496),m=n(73186),g=n(32070);const b="clearButton",y="pill",f=s().ae7f7656,_={viewType:"clear"};class v extends r.Component{constructor(...e){super(...e),this._textFieldAPI=r.createRef(),this.state={hasContent:!1,isFocused:!1},this.getInvisibleBorderStyle=()=>{const{invalid:e}=this.props,{isFocused:t}=this.state;return[!e&&!t&&E.transparent]},this.getContainerStyle=()=>{const{editable:e,invalid:t,multiline:n,styleType:o}=this.props,{isFocused:r}=this.state;switch(o){case"legacyPill":return[!t&&!r&&E.transparent,!r&&Z.legacyFadedGrayColor,!n&&w.infinite,Z.root,t&&E.invalid,!t&&r&&E.legacyFocused,r&&Z.legacyPilltransparentColor,n&&w.legacyRound,!e&&Z.legacyDisabled];case y:return[!t&&!r&&E.unfocused,!r&&Z.fadedGrayColor,!n&&w.infinite,Z.root,Z.pillRoot,t&&E.invalid,!t&&r&&E.focused,r&&Z.backgroundColor,n&&w.round,!e&&Z.disabled];default:return[E.none,Z.root,Z.selectionBackground]}},this._renderUnfocusedPlaceholder=()=>{const{appTextSize:e}=this.props;return r.createElement(i.Z,{style:Z.placeholderView},r.createElement(p.ZP,{numberOfLines:1,size:e,style:this.getUnfocusedStyles()},this._isInputEmpty()?this.props.placeholder:this.getValue()))},this.getUnfocusedStyles=()=>{const{Icon:e}=this.props,{isFocused:t}=this.state;return[C.placeholderRoot,e&&C.iconPadding,t&&C.focused,!this._isInputEmpty()&&C.textColor]},this._getTextInputStyle=(0,d.Z)((e=>[this._getInputRootStyle(),e])),this._getInputRootStyle=()=>{const{Icon:e,isCompact:t,multiline:n,styleType:o}=this.props,{isFocused:r}=this.state;return o===y?[C.pillRoot,e&&C.iconPadding,r&&C.focused,!n&&C.safariFirefoxNoMargin]:[C.root,t&&C.compact]},this._handleLexicalChange=e=>{var t,n;const{isFocused:o}=this.state;this.setState({hasContent:e.length>0}),o||this.setState({isFocused:!0}),this.props.lexicalInputContext&&(null==(t=(n=this.props).onChange)||t.call(n,e))},this._handleBlur=()=>{const{onBlur:e}=this.props;this.setState({isFocused:!1}),e&&e()},this._handleClear=e=>{var t;this.props.focusOnClear&&this.focus(),null==(t=this._textFieldAPI.current)||t.clear()},this._handlePlainChange=e=>{var t,n;const{isFocused:o}=this.state;this.setState({hasContent:this.getValue().length>0}),this.props.richTextInputContext||this.props.lexicalInputContext||(o||this.setState({isFocused:!0}),null==(t=(n=this.props).onChange)||t.call(n,e))},this._handleRichChange=e=>{var t,n;const{isFocused:o}=this.state;this.setState({hasContent:this.getValue().length>0}),this.props.richTextInputContext&&(o||this.setState({isFocused:!0}),null==(t=(n=this.props).onChange)||t.call(n,e))},this._handleFocus=()=>{const{onFocus:e}=this.props;this.setState({isFocused:!0}),e&&e()},this._handleKeyPress=e=>{const{multiline:t,onKeyPress:n,onSubmitEditing:o}=this.props;n&&n(e),e.isDefaultPrevented()||"Enter"!==e.key||e.shiftKey||t||!o||(e.preventDefault(),o(e))},this._handleKeyDown=e=>{const{onKeyDown:t}=this.props;t&&t(e)},this._handleKeyUp=e=>{const{onKeyUp:t}=this.props;t&&t(e)}}render(){const{appTextSize:e,contentAbove:t,contentBelow:n,emojiPickerButton:o,leftAligned:a,leftContent:s,lexicalInputContext:l,onLayout:c,richTextInputContext:d,style:u,styleType:h,testID:g,withClearButton:b}=this.props,{isFocused:f}=this.state;return r.createElement(i.Z,{onBlur:this._handleBlur,onFocus:this._handleFocus,onLayout:c,style:[this.getContainerStyle(),u]},r.createElement(i.Z,{style:h===y&&this.getInvisibleBorderStyle()},t,r.createElement(i.Z,{style:Z.textInputBox},a?s:null,r.createElement(i.Z,{accessibilityRole:"label",style:[Z.textInput,this._isCentered()&&Z.pillTextInput],testID:g&&`${g}_label`},this._renderIcon(),r.createElement(i.Z,{style:[Z.fitText,this._isCentered()?null:Z.appTextLeft]},r.createElement(p.ZP,{size:e,style:[Z.appText,f?null:this._isCentered()?C.hiddenStyle:null]},l?this._renderLexicalInput():d?this._renderRichTextInput():this._renderTextInput()),f?null:this._isCentered()?this._renderUnfocusedPlaceholder():null),r.createElement(i.Z,{style:[P.root,!!o&&P.withEmojiPicker,this._isCentered()&&m.Z.visuallyHidden]},this._renderCloseButton(),this._renderEmojiPicker(),b&&this._renderClearButton()))),n))}_isInputEmpty(){return 0===this.getValue().length}_isCentered(){const{leftAligned:e,styleType:t}=this.props,{isFocused:n}=this.state;return t===y&&!e&&!n}_renderIcon(){const{Icon:e,iconStyle:t,styleType:n}=this.props,{isFocused:o}=this.state,a=[T.legacyRoot,o&&T.legacyFocused,t],s=[T.root,o&&T.focused,t];return e?r.createElement(i.Z,{style:P.leftIcon},r.createElement(e,{style:n===y?s:a})):null}_renderTextInput(){const{Icon:e,appTextSize:t,closeButton:n,contentAbove:i,contentBelow:a,emojiPickerButton:s,focusOnClear:l,handleReturn:c,iconStyle:d,inputStyle:p,invalid:h,isCompact:b,keyBindingFn:y,keyCommandHandlers:f,leftAligned:_,leftContent:v,lexicalInputContext:w,onLayout:E,onSubmitEditing:T,placeholderTextColor:S,richTextInputContext:P,style:Z,styleType:I,withClearButton:k,...x}=this.props;return r.createElement(r.Fragment,null,u.ZP.isEdge()?r.createElement("style",null,"input[type=text]::-ms-clear { display: none; }"):null,r.createElement(g.Z,(0,o.Z)({},x,{onBlur:this._handleBlur,onChange:this._handlePlainChange,onFocus:this._handleFocus,onKeyDown:this._handleKeyDown,onKeyPress:this._handleKeyPress,onKeyUp:this._handleKeyUp,placeholderTextColor:S||m.Z.theme.colors.gray700,ref:this._textFieldAPI,style:[this._getTextInputStyle(p),C.fullWidth]})))}_renderRichTextInput(){const{appTextSize:e,ariaActiveDescendant:t,ariaAutocomplete:n,ariaControls:o,ariaLabel:a,autoFocus:s,handleReturn:l,inputStyle:c,isCompact:d,keyBindingFn:u,keyCommandHandlers:p,maxNumberOfLines:h,multiline:g,numberOfLines:b,onFilesAdded:f,placeholder:_,placeholderTextColor:v,positionCursorAtBeginning:w,positionCursorAtEnd:E,richTextInputContext:T,spellCheck:S,styleType:P,testID:Z}=this.props,{blockRenderMap:I,blockRendererFn:k,blockStyleFn:x,dismissComposerCommandName:A,dragPlaceholder:L,editorState:R,element:D,sendTweetCommandName:M,stripPastedStyles:O,withMaxHeight:B}=T||{},F=[C.root,C.rich,P===y&&C.richRoot];return D&&R?r.createElement(i.Z,{style:[C.richContainer,d&&C.compact,c]},r.createElement(D,{appTextSize:e,ariaActiveDescendant:t,ariaAutocomplete:n,ariaControls:o,ariaLabel:a,autoFocus:s,blockRenderMap:I,blockRendererFn:k,blockStyleFn:x,dismissComposerCommandName:A,dragPlaceholder:L,editorState:R,handleReturn:l,keyBindingFn:u,keyCommandHandlers:p,maxNumberOfLines:h,multiline:g,numberOfLines:b,onBlur:this._handleBlur,onChange:this._handleRichChange,onFilesAdded:f,onFocus:this._handleFocus,onKeyDown:this._handleKeyDown,onKeyPress:this._handleKeyPress,onKeyUp:this._handleKeyUp,placeholder:_,placeholderTextColor:v||m.Z.theme.colors.gray700,positionCursorAtBeginning:w,positionCursorAtEnd:E,ref:this._textFieldAPI,sendTweetCommandName:M,spellCheck:S,stripPastedStyles:O,style:F,testID:Z,withMaxHeight:B})):null}_renderLexicalInput(){const{ariaActiveDescendant:e,ariaAutocomplete:t,ariaControls:n,ariaLabel:o,autoFocus:a,inputStyle:s,isCompact:l,lexicalInputContext:c,multiline:d,onFilesAdded:u,placeholder:p,spellCheck:h,testID:m}=this.props,{element:g,withDebug:b}=c||{},y=g;return r.createElement(i.Z,{style:[C.richContainer,l&&C.compact,s]},r.createElement(y,{ariaActiveDescendant:e,ariaAutocomplete:t,ariaControls:n,ariaLabel:o,autoFocus:a,multiline:d,onChange:this._handleLexicalChange,onFilesAdded:u,onFocus:this._handleFocus,placeholder:p,ref:this._textFieldAPI,spellCheck:h,testID:m,withDebug:b}))}_renderClearButton(){const{styleType:e}=this.props,t=e===y?r.createElement(l.Z,{style:S.icon}):r.createElement(c.Z,{style:S.legacyIcon}),n=r.createElement(h.ZP,{accessibilityLabel:f,behavioralEventContext:_,focusable:!0,icon:t,onPress:this._handleClear,size:"smallCompact",style:S.root,testID:b,type:e===y?void 0:"brandFilled"});return this.getValue()?n:r.createElement(i.Z,null)}_renderEmojiPicker(){const{emojiPickerButton:e}=this.props;return e?r.createElement(i.Z,null,e):null}_renderCloseButton(){const{closeButton:e}=this.props;return e?r.createElement(i.Z,{style:P.closeButton},e):null}applyFinalValue(e){this.focus(),window.requestAnimationFrame((()=>{this.blur(),e(this.getValue())}))}blur(){var e;null==(e=this._textFieldAPI.current)||e.blur()}focus(){var e;null==(e=this._textFieldAPI.current)||e.focus()}clear(){var e;null==(e=this._textFieldAPI.current)||e.clear()}getValue(){var e;const{value:t}=this.props;return(null==(e=this._textFieldAPI.current)?void 0:e.getValue())||t||""}getTextInputHeight(){var e;const{richTextInputContext:t}=this.props,n=2*m.Z.theme.spacesPx.space12,o=2*m.Z.theme.borderWidthsPx.small;return((null==(e=this._textFieldAPI.current)?void 0:e.getOffsetHeight())||0)+(t?n:0)+o}}v.defaultProps={appTextSize:"body",autoComplete:"on",styleType:y,autoCorrect:!0,editable:!0,focusOnClear:!0,withClearButton:!1},v.propTypes={};const w=m.Z.create((e=>({infinite:{borderRadius:e.borderRadii.infinite},legacyRound:{borderRadius:e.borderRadii.xLarge},round:{borderRadius:"20px"},none:{borderRadius:e.borderRadii.none}}))),E=m.Z.create((e=>({transparent:{borderColor:e.colors.transparent,borderStyle:"solid",borderWidth:e.borderWidths.small},legacyFocused:{borderColor:e.colors.primary,borderStyle:"solid",borderWidth:e.borderWidths.small},invalid:{borderColor:e.colors.red500,borderStyle:"solid",borderWidth:e.borderWidths.small},none:{borderWidth:e.borderWidths.none},unfocused:{borderColor:e.colors.gray200,borderStyle:"solid",borderWidth:e.borderWidths.small},focused:{borderColor:e.colors.primary,borderStyle:"solid",borderWidth:e.borderWidths.medium}}))),C=m.Z.create((e=>({root:{backgroundColor:"transparent",borderRadius:e.borderRadii.none,borderWidth:e.borderWidths.none,boxSizing:"border-box",color:"inherit",outlineStyle:"none",fontFamily:"inherit",fontSize:"inherit",padding:e.spaces.space12,textAlign:"inherit"},compact:{paddingVertical:e.spaces.space4},hiddenStyle:{position:"absolute",start:"-9999px"},safariFirefoxNoMargin:{marginTop:"0px",marginBottom:"0px",paddingTop:"0px",paddingBottom:"0px"},pillRoot:{backgroundColor:"transparent",borderRadius:e.borderRadii.none,borderWidth:e.borderWidths.none,boxSizing:"border-box",color:"inherit",outlineStyle:"none",fontFamily:"inherit",fontSize:e.fontSizes.subtext1,minHeight:e.spaces.space40,paddingStart:e.spaces.space16,paddingEnd:e.spaces.space16,paddingTop:e.spaces.space12,paddingBottom:e.spaces.space12,lineHeight:e.lineHeights.subtext1,caretColor:e.colors.primary},placeholderRoot:{backgroundColor:"transparent",borderRadius:e.borderRadii.none,borderWidth:e.borderWidths.none,boxSizing:"border-box",outlineStyle:"none",fontSize:e.fontSizes.subtext1,minHeight:e.spaces.space40,paddingStart:e.spaces.space16,paddingEnd:e.spaces.space16,paddingTop:e.spaces.space12,paddingBottom:e.spaces.space12,lineHeight:e.lineHeights.subtext1,caretColor:e.colors.primary,color:e.colors.gray700},textColor:{color:e.colors.text},focused:{paddingEnd:e.spaces.space4},iconPadding:{paddingStart:e.spaces.space4},richContainer:{width:"100%",padding:e.spaces.space12},rich:{padding:0},richRoot:{fontSize:e.fontSizes.subtext1,caretColor:e.colors.primary},fullWidth:{width:"100%"}}))),T=m.Z.create((e=>({legacyRoot:{color:e.colors.gray700,minWidth:e.spaces.space32,paddingStart:e.spaces.space12},root:{boxSizing:"content-box",color:e.colors.gray700,paddingStart:e.spaces.space12,height:e.spaces.space16,width:e.spaces.space16},legacyFocused:{color:e.colors.primary},focused:{color:e.colors.gray700}}))),S=m.Z.create((e=>({root:{borderWidth:e.borderWidths.none,marginEnd:e.spaces.space12},legacyIcon:{width:"10px",height:"10px",color:e.colors.cellBackground},icon:{color:e.colors.buttonBlack}}))),P=m.Z.create((e=>({root:{display:"flex",justifyContent:"center"},withEmojiPicker:{display:"flex",justifyContent:"flex-end",flexDirection:"column"},closeButton:{flexGrow:1},leftIcon:{display:"flex",justifyContent:"center",cursor:"default"}}))),Z=m.Z.create((e=>({root:{flexDirection:"column",flexGrow:1,flexShrink:1,justifyContent:"center"},pillRoot:{minHeight:e.spaces.space40},legacyDisabled:{cursor:"default",opacity:.8},legacyFadedGrayColor:{backgroundColor:e.colors.gray50},selectionBackground:{backgroundColor:e.colors.cellBackground},legacyPilltransparentColor:{backgroundColor:"transparent"},textInputBox:{flexDirection:"row",alignItems:"center"},textInput:{flexDirection:"row",cursor:"text",flex:1},appText:{display:"flex"},pillTextInput:{justifyContent:"center"},backgroundColor:{backgroundColor:e.colors.navigationBackground},appTextLeft:{flexGrow:1},placeholderView:{flexGrow:1},fitText:{flexShrink:1},fadedGrayColor:{backgroundColor:e.colors.navigationBackground},disabled:{cursor:"default",opacity:.5}})))},88769:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var o=n(7896),r=(n(6886),n(2784)),i=n(67502),a=n(90601),s=n(25686),l=n(70451),c=n(73186);class d extends r.Component{constructor(...e){super(...e),this._ref=r.createRef(),this._handleRef=e=>{this._ref.current=e,this.props.forwardedRef&&("function"==typeof this.props.forwardedRef?this.props.forwardedRef(e):this.props.forwardedRef.current=e)},this._handleMessage=e=>{var t,n;const{onMessage:o,reportError:r}=this.props;if(!o||"string"==typeof e.data&&0===e.data.indexOf("setImmediate$"))return;if(e.origin!==`${window.location.protocol}//${window.location.host}`)return r?r(`Invalid cross-origin postMessage from ${e.origin}`):null;if((null==(t=this._ref)||null==(n=t.current)?void 0:n.contentWindow)!==e.source)return;let i;if(e.stopImmediatePropagation(),"string"==typeof e.data&&"undefined"!==e.data){try{i=JSON.parse(e.data)}catch(t){return void(r&&r(`Invalid postMessage data from ${e.origin}: ${e.data}`))}o(i)}}}componentDidMount(){var e;this.props.onMessage&&(e=this._handleMessage,i.canUseDOM&&window.addEventListener("message",e,!1))}componentWillUnmount(){var e;this.props.onMessage&&(e=this._handleMessage,i.canUseDOM&&window.removeEventListener("message",e,!1))}render(){const{allowForms:e,dangerouslyDisableSandbox:t,src:n,style:o,title:i}=this.props,{isModal:l}=this.context,c=(0,a.Z)("iframe",{allow:"autoplay; fullscreen; web-share",allowFullScreen:!0,ref:this._handleRef,src:n,style:u.iframe,title:i,...t?null:{sandbox:"allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"+(e?" allow-forms":"")}});return r.createElement(s.Z,{style:l?[u.root,u.modalPadding,o]:[u.root,o]},c)}}d.contextType=l.t,d.propTypes={};const u=c.Z.create((e=>({root:{overflow:"auto",WebkitOverflowScrolling:"touch"},modalPadding:{paddingTop:e.componentDimensions.appBarHeight},iframe:{borderWidth:0,flexGrow:1}}))),p=r.forwardRef(((e,t)=>r.createElement(d,(0,o.Z)({forwardedRef:t},e))))},34923:(e,t,n)=>{"use strict";n.d(t,{W:()=>l,Z:()=>s});var o=n(2784),r=n(25686),i=n(36934),a=n(73186);const s=e=>{const{containerStyle:t,decoration:n,description:a,label:s,testID:c}=e,d="string"==typeof s?o.createElement(i.ZP,{weight:"bold"},s):s,u=a?"string"==typeof a?o.createElement(i.ZP,{color:"gray700",style:l.description},a):a:null;return o.createElement(r.Z,{accessibilityRole:"listitem",style:[l.root,t],testID:c},n?o.createElement(r.Z,{style:l.decorationContainer},n):null,o.createElement(r.Z,{style:l.content},d,u))},l=a.Z.create((e=>({root:{alignItems:"flex-start",justifyContent:"space-between",paddingVertical:e.componentDimensions.gutterVertical,paddingHorizontal:e.spaces.space32,flexDirection:"row",flexGrow:1,minHeight:`calc(${a.Z.theme.lineHeights.headline1} + 2 * ${e.componentDimensions.gutterVertical})`},content:{alignSelf:"center",flexGrow:1,flexShrink:1},description:{marginTop:e.spaces.space4},decorationContainer:{justifyContent:"center"}})))},19874:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(7896),r=n(2784),i=n(24921),a=n(77096);const s=e=>r.createElement(i.Z,(0,o.Z)({},e,{renderSelector:({value:e,...t})=>r.createElement(a.Z,(0,o.Z)({},t,{key:e}))}))},23507:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});n(6886),n(36728);var o=n(2784),r=n(25686),i=n(79404),a=n.n(i),s=n(18958),l=n(11711),c=n(16587),d=n(36934),u=n(77934),p=n(29496),h=n(73186),m=n(38749);const g="icon",b="thumbnail",y=a().af8fa2ae,f=Object.freeze({primary:{accessibilityLiveRegion:"polite"},exclusive:{accessibilityLiveRegion:"polite"},danger:{accessibilityLiveRegion:"assertive"},success:{accessibilityLiveRegion:"polite"},warning:{accessibilityLiveRegion:"polite"}});class _ extends o.Component{constructor(...e){super(...e),this.state={contentMidpoint:void 0},this._getMemoizedBehavioralEventContext=(0,c.Z)((e=>({viewType:e}))),this._handleLayout=()=>{if(this._contentNode){const{left:e,width:t}=this._contentNode.getBoundingClientRect(),n=e+t/2;this.setState({contentMidpoint:n})}},this._setContentNode=e=>{this._contentNode=e}}render(){const{Icon:e,behavioralEventContext:t,headline:n,onClose:i,style:a,type:c,withCloseButton:d,withRightArrow:h,withThumbnail:m}=this.props,_=f[c],{accessibilityLiveRegion:C}=_,T=null==t?void 0:t.viewType,S=this._getMemoizedBehavioralEventContext(T),P=m&&e?b:e&&n?g:null;return o.createElement(o.Fragment,null,o.createElement(u.zt,{behavioralEventContext:S},o.createElement(r.Z,{accessibilityLiveRegion:C,accessibilityRole:"status",onLayout:this._handleLayout,ref:this._setContentNode,style:[v.root,w[c],a]},o.createElement(r.Z,{style:v.contentContainer,testID:P},this._renderIconOrThumbnail(),o.createElement(r.Z,{style:v.contentTextContainer},this._renderHeadline(),this._renderSubtext())),d&&i?o.createElement(p.ZP,{accessibilityLabel:y,icon:o.createElement(s.Z,null),onPress:i,size:"smallCompact",type:"brandText"}):null),h?o.createElement(l.Z,{style:[{transform:[{rotate:"90deg"}],position:"absolute"},E[c],this._getSideArrowStyle()]}):null))}_renderIconOrThumbnail(){const{Icon:e,action:t,headline:n,withThumbnail:r}=this.props,i=n||t;if(e){if(r)return o.createElement(m.Z,{Icon:e,color:this._getThumbnailColor(),size:i?"large":"medium",style:[v.thumbnail,i&&v.thumbnailLargeMargin]});if(n)return o.createElement(d.ZP,{align:"center"},o.createElement(e,{style:v.headlineIcon}))}}_renderHeadline(){const{headline:e,text:t}=this.props;if(e)return o.createElement(d.ZP,{style:t&&v.headlineMarginBottom,weight:"bold"},e)}_renderSubtext(){const{nativeID:e,text:t,textStyle:n}=this.props;return o.createElement(o.Fragment,null,o.createElement(d.ZP,{nativeID:e,size:"subtext1",style:n},t),this._renderActionLabel())}_renderActionLabel(){const{action:e,onAction:t}=this.props;if(e)return o.createElement(d.ZP,{children:e.label,color:"text",link:e.link,onPress:t,size:"subtext1",style:v.actionText,weight:"bold",withInteractiveStyling:!0,withUnderline:!0})}_getThumbnailColor(){const{type:e}=this.props;return"exclusive"===e?"exclusive":"danger"===e?"danger":"warning"===e?"warning":"success"===e?"success":void 0}_getSideArrowStyle(){if(this._contentNode){const{bottom:e,left:t,right:n,top:o}=this._contentNode.getBoundingClientRect(),r=[],i=n-t,a=(e-o)/2;return r.push({bottom:a-8,start:i-8}),r}}}_.defaultProps={type:"primary",withCloseButton:!1,withThumbnail:!1};const v=h.Z.create((e=>({root:{borderRadius:e.borderRadii.medium,display:"flex",flexDirection:"row",paddingHorizontal:e.spaces.space16,paddingVertical:e.spaces.space12,width:"100%"},thumbnail:{alignSelf:"start",flexBasis:"auto",marginEnd:e.spaces.space12},thumbnailLargeMargin:{marginEnd:e.spaces.space16},headlineMarginBottom:{marginBottom:e.spaces.space4},actionText:{marginTop:e.spaces.space12,whiteSpace:"nowrap",flexShrink:0,textUnderlineOffset:e.spaces.space2,paddingBottom:e.spaces.space4},arrow:{marginBottom:`-${e.spaces.space16}`,top:`calc(-${e.spaces.space4} - ${e.spaces.space1})`},contentContainer:{flex:1,flexDirection:"row"},contentTextContainer:{flex:1,justifyContent:"center",alignItems:"flex-start"},headlineIcon:{marginEnd:e.spaces.space8}}))),w=h.Z.create((e=>({primary:{backgroundColor:e.colors.primary0},exclusive:{backgroundColor:e.colors.plum0},danger:{backgroundColor:e.colors.red0},success:{backgroundColor:e.colors.green0},warning:{backgroundColor:e.colors.orange0}}))),E=h.Z.create((e=>({primary:{color:e.colors.primary0},exclusive:{color:e.colors.plum0},danger:{color:e.colors.red50},success:{backgroundColor:e.colors.green50},warning:{backgroundColor:e.colors.orange50}}))),C=_},88990:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=n(7896),r=n(2784),i=n(34411),a=n(54044),s=n(73206),l=n(73186);const c=l.Z.create((e=>({roundedBorders:{borderRadius:e.borderRadii.xLarge}}))),d=e=>{const{accessibilityRole:t,allowBackNavigation:n,graphicDisplayMode:d,isFullHeightOnMobile:u=!1,onClose:p,...h}=e;return r.createElement(a.Z,null,(({windowHeight:e,windowWidth:a})=>{const m=a>l.Z.theme.breakpoints.medium,g=e<l.Z.theme.breakpoints.small;return r.createElement(s.Z,{accessibilityRole:t,allowBackNavigation:n,enableMaskForDismiss:!0,onMaskClick:p,style:m&&c.roundedBorders,type:u?"full":"bottom",withMask:!0},r.createElement(i.Z,(0,o.Z)({graphicDisplayMode:g?"none":d,onClose:p,withBottomPadding:m||u},h)))}))}},57038:(e,t,n)=>{"use strict";n.d(t,{C:()=>r,Z:()=>i});var o=n(67502);class r{constructor(){this._cache={}}get(e){return this._cache[e]}check(e){const t=this._load(e);return!(t instanceof Promise)&&!!t}reset(){this._cache={}}_loadCache(e,t){if(this._cache[e])return this._cache[e];const n=t().then((t=>{this._cache[e]=t}));return this._cache[e]||(this._cache[e]=n),this._cache[e]}_load(e){return this._loadCache(e,(()=>new Promise((t=>{o.canUseDOM&&window.fetch?fetch(e).then((e=>e.json())).then(t).catch((()=>t(!1))):t(!0)}))))}}const i=new r},31099:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>b});n(6886),n(71372);var o=n(2784),r=n(25686),i=n(73186),a=n(79404),s=n.n(a),l=n(78525),c=n(61339),d=n(36934),u=n(29496),p=n(50329);const h=s().jcf3e7a2;function m({animation:e,autoplay:t}){const[n,i]=o.useState(t),[a,s]=o.useState(0);return o.useEffect((()=>{e.addEventListener("enterFrame",(e=>{e&&s(Math.round(e.currentTime))}))}),[e]),o.createElement(r.Z,{style:g.container},o.createElement(u.ZP,{accessibilityLabel:n?"Pause":"Play",icon:n?o.createElement(l.Z,null):o.createElement(c.Z,null),onClick:function(){n?(e.pause(),i(!1)):(e.play(),i(!0))},type:"primaryText"}),o.createElement(d.ZP,{style:g.frames},`${a}/${e.totalFrames}`),o.createElement(r.Z,{style:g.slider},o.createElement(p.Z,{accessibilityLabel:h,max:e.totalFrames,min:0,onChange:function(t){e.goToAndStop(t,!0),i(!1)},value:a})))}const g=i.Z.create((e=>({container:{width:"100%",flexDirection:"row",alignItems:"center"},frames:{marginStart:e.spaces.space12},slider:{flex:1,marginStart:e.spaces.space12}})));function b(e){const{autoplay:t=!0,loop:n=!1,onAnimationEnd:i,onAnimationStart:a,onError:s,withControls:l}=e,c=o.useRef(void 0),d=o.useRef({animationLoaded:!1}),u=o.useRef(null),[p,h]=o.useState(!1);return o.useEffect((()=>{function o(e,t){"function"==typeof i&&i(t),e&&e.destroy()}const{animationLoaded:r}=d.current;r||(d.current.animationLoaded=!0,y.load().then((r=>{if(r&&u.current){const i={container:u.current,renderer:"svg",loop:n,autoplay:!1,..."object"==typeof e.animation?{animationData:e.animation}:{path:e.animation}},l=r.loadAnimation(i);c.current=l,l.onError=e=>{const t=new f(e);"function"==typeof s&&s(t),o(l,t)},l.addEventListener("DOMLoaded",(()=>{h(!0),t&&(l.play(),a&&a())})),l.addEventListener("complete",(()=>{o(l)}))}})))}),[e.animation,t,n,i,a,s,l]),o.useEffect((()=>function(){c.current&&c.current.destroy()}),[c]),o.createElement(r.Z,null,o.createElement(r.Z,{style:[e.animationContainerStyle,_.centerAnimation]},o.createElement("div",{ref:u,style:e.animationStyle}),l&&c.current&&p&&o.createElement(m,{animation:c.current,autoplay:t})))}b.Prepare=function(){return o.useEffect((()=>{y.load()}),[]),null};const y={load:()=>n.e("ondemand.LottieWeb").then(n.t.bind(n,48888,23))};class f extends Error{constructor(e,...t){super(...t),Error.captureStackTrace&&Error.captureStackTrace(this,f),this.name="LottieAnimationError",this.lottieError=e}}const _=i.Z.create((e=>({centerAnimation:{alignItems:"center",justifyContent:"center"}})))},44173:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=n(2784),r=n(79404),i=n.n(r),a=n(84793),s=n(32291);const l=i().gaeb997e,c={viewType:"menu_control"};const d=function({activeColor:e,label:t=l,Icon:n=a.Z,iconSize:r="normal",isDisabled:i,onClick:d,preventFocusShift:u,renderActionMenu:p,style:h,testID:m,withDarkBackground:g=!1}){const b=o.useCallback((e=>{e&&e.preventDefault(),d&&d(e)}),[d]),y=o.useMemo((()=>({label:t})),[t]);return o.createElement(s.ZP,{Icon:n,accessibilityLabel:t,activeColor:e||(g?"white":void 0),backgroundColor:g?"translucentBlack77":"transparent",behavioralEventContext:c,color:g?"white":"gray700",hoverLabel:y,iconSize:r,isDisabled:i,onPress:b,preventFocusShift:u,renderMenu:p,style:h,testID:m})}},10364:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=n(2784),r=n(25686),i=n(77920),a=n(33363),s=n(36934),l=n(74062),c=n(73186);const d=e=>{const{accessibilityRole:t="tab",description:n,disabled:d=!1,isActive:p=!1,label:h,link:m,onPress:g,paddingHorizontal:b,renderRightContent:y,testID:f="pivot",thumbnail:_,thumbnailSize:v,withoutArrow:w=!1}=e,E=[u.thumbnailContainer,"medium"===v&&u.thumbnailContainerMedium],C="string"==typeof h?o.createElement(s.ZP,null,h):h,T="object"==typeof m&&m.external&&!m.openInSameFrame,S=n?"string"==typeof n?o.createElement(s.ZP,{color:"gray700",size:"subtext2",testID:`${f}-description`},n):n:null,P=o.useMemo((()=>"space0"===b?{paddingHorizontal:0}:{paddingHorizontal:b?c.Z.theme.spaces[b]:c.Z.theme.componentDimensions.gutterHorizontal}),[b]);return o.createElement(l.Z,{accessibilityRole:t,accessibilitySelected:"tab"===t?p:null,disabled:d,link:d?void 0:m,onPress:g,style:[u.root,P,d&&u.disabled],testID:f,withInteractiveStyling:!!m},o.createElement(r.Z,{style:u.contentContainer},_?o.createElement(r.Z,{style:E},_):null,o.createElement(r.Z,{style:u.content},C,S),y?y():null,!m||d||w?null:T?o.createElement(i.Z,{style:u.icon}):o.createElement(a.Z,{style:u.icon})))},u=c.Z.create((e=>({root:{justifyContent:"space-between",minHeight:`calc(${c.Z.theme.lineHeights.headline1} + 2 * ${e.componentDimensions.gutterVertical})`,paddingVertical:e.componentDimensions.gutterVertical},disabled:{opacity:.5},contentContainer:{alignItems:"center",flexDirection:"row",flexGrow:1},content:{flexGrow:1,flexShrink:1},icon:{color:e.colors.gray700,paddingStart:e.spaces.space12,flexShrink:0},thumbnailContainer:{alignItems:"center",justifyContent:"center",height:e.spaces.space48,width:e.spaces.space48,marginEnd:e.spaces.space16},thumbnailContainerMedium:{height:e.spaces.space32,width:e.spaces.space32}})))},18626:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=n(2784),r=n(25686),i=(n(6886),n(90601)),a=n(7066),s=n(36934),l=n(35094),c=n(79866),d=n(11839),u=n(54484),p=n(73186);class h extends o.Component{constructor(...e){super(...e),this.labelId=(0,u.F)(),this.descriptionId=(0,u.F)(),this._handleChange=e=>{const{checked:t,onChange:n}=this.props;n&&!t&&n(e.nativeEvent.target.checked)},this._setRef=e=>{this._ref=e}}render(){const{accessibilityPosInSet:e,accessibilitySetSize:t,checked:n,disabled:u,helpText:h,label:g,name:b,testID:y}=this.props,f=c.Z.generate({backgroundColor:p.Z.theme.colors.transparent,color:p.Z.theme.colors.primary,withFocusWithinFocusRing:!0}),_=c.Z.generate({backgroundColor:p.Z.theme.colors.transparent,color:p.Z.theme.colors.gray700,withFocusWithinFocusRing:!0}),v=n?f:_;return o.createElement(l.Z,{disabled:u},(l=>o.createElement(r.Z,{accessibilityRole:"label",style:[m.root,!u&&m.interactive],testID:y},o.createElement(r.Z,{style:m.topContainer},o.createElement(s.ZP,{nativeID:this.labelId},g),o.createElement(r.Z,{style:m.radioContainer},o.createElement(d.Z,{interactiveStyles:v,interactivityState:l,style:m.radioBackground},o.createElement(r.Z,{style:[m.circle,n&&m.circleActive,u&&m.circleDisabled,n&&u&&m.circleCheckedAndDisabled]},n?o.createElement(a.Z,{style:m.checkMark}):null)),(0,i.Z)("input",{accessibilityPosInSet:e,accessibilitySetSize:t,accessibilityDescribedBy:this.descriptionId,accessibilityLabelledBy:this.labelId,checked:n,disabled:u,name:b,onChange:this._handleChange,ref:this._setRef,style:[m.nativeControl],type:"radio"}))),h?o.createElement(s.ZP,{color:"gray700",nativeID:this.descriptionId,size:"subtext2",style:m.helpText},h):null)))}focus(){this._ref&&this._ref.focus()}}h.defaultProps={disabled:!1,checked:!1},h.propTypes={};const m=p.Z.create((e=>({root:{paddingVertical:e.spaces.space4},topContainer:{alignItems:"center",flexDirection:"row",justifyContent:"space-between",flexGrow:1},interactive:{cursor:"pointer"},circleDisabled:{borderColor:e.colors.gray200},circleCheckedAndDisabled:{backgroundColor:e.colors.gray300,borderColor:e.colors.gray300},radioContainer:{userSelect:"none",marginStart:e.spaces.space20},radioBackground:{borderRadius:e.borderRadii.infinite,margin:`-${e.spaces.space8}`,padding:e.spaces.space8},circle:{alignItems:"center",backgroundColor:e.colors.cellBackground,borderColor:e.colors.gray700,borderStyle:"solid",borderWidth:e.borderWidths.medium,borderRadius:e.spaces.space32,height:e.spaces.space20,justifyContent:"center",width:e.spaces.space20},circleActive:{borderColor:e.colors.primary,backgroundColor:e.colors.primary},checkMark:{width:"18px",height:"18px",color:e.colors.whiteOnColor},nativeControl:{...p.Z.absoluteFillObject,cursor:"inherit",height:"100%",margin:0,opacity:0,padding:0,width:"100%"},helpText:{paddingTop:e.spaces.space4}}))),g=h,b="radioGroup";let y=1;class f extends o.Component{constructor(){super(),this._radioRefs={},this._handleItemChanged=e=>()=>{const{name:t,onChange:n}=this.props;n(t,e)},this._setRadioRef=(e,t)=>n=>{this._radioRefs[e]=n,t&&(this._radioRefs.checked=e)},this.focus=()=>{const e=this._radioRefs.checked,t=e?this._radioRefs[e]:this._radioRefs[0];t&&t.focus()},this._labelId=`RADIO_GROUP_${y}_LABEL`,y+=1}render(){const{accessibilityLabel:e,description:t,disabled:n,label:i,name:a,options:l,value:c}=this.props;return o.createElement(r.Z,{accessibilityLabel:e,accessibilityLabelledBy:i&&!e?this._labelId:void 0,accessibilityRole:"radiogroup",style:n&&_.disabled,testID:`${b}${a}`},i?o.createElement(r.Z,{accessibilityRole:"label",nativeID:this._labelId,style:_.header},o.createElement(s.ZP,{style:_.label,weight:"bold"},i),t?o.createElement(s.ZP,{color:"gray700",size:"subtext2"},t):null):null,l.map(((e,t)=>o.createElement(g,{accessibilityPosInSet:t+1,accessibilitySetSize:l.length,checked:e.value===c,disabled:n,helpText:e.helpText,key:e.value,label:e.label,name:a,onChange:this._handleItemChanged(e.value),ref:this._setRadioRef(t,e.value===c),testID:e.testID}))))}}f.defaultProps={disabled:!1};const _=p.Z.create((e=>({header:{alignItems:"flex-start"},label:{paddingTop:e.spaces.space12,paddingBottom:e.spaces.space4},disabled:{opacity:.5}})))},50384:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});n(6886);var o=n(2784),r=n(25686),i=n(79404),a=n.n(i),s=n(36934),l=n(96818),c=n(73186),d=n(84714);const u=a().d7e50a66;class p extends o.Component{constructor(...e){super(...e),this._handleChange=e=>{const{disabled:t,name:n,onChange:o}=this.props;t||o(n,e)},this._renderHelpText=()=>{const{helpText:e,learnMoreLabel:t,learnMoreLink:n}=this.props;if(!n)return e;const r=t||u,i=o.createElement(s.ZP,{key:"learnMoreText",link:n},r);return[e,i?" ":null,i]}}render(){const{checked:e,disabled:t,helpText:n,label:i,testID:a,type:c,withBackground:u,withPaddingHorizontal:p}=this.props,m=!!t;return o.createElement(r.Z,{style:[h.root,u&&h.background,p&&h.paddingHorizontal,m&&h.disabled]},o.createElement(r.Z,{style:h.labelContainer},"checkbox"===c?o.createElement(l.Z,{checked:!!e,disabled:m,helpText:this._renderHelpText(),label:i,onChange:this._handleChange,testID:a}):o.createElement(r.Z,{accessibilityRole:"label"},o.createElement(r.Z,{style:h.switchContainer},o.createElement(s.ZP,null,i),o.createElement(d.Z,{onValueChange:this._handleChange,value:!!e})),n?o.createElement(s.ZP,{color:"gray700",size:"subtext2",style:h.switchHelpText},this._renderHelpText()):null)))}}p.defaultProps={type:"checkbox",withBackground:!0,withPaddingHorizontal:!0};const h=c.Z.create((e=>({paddingHorizontal:{paddingHorizontal:e.componentDimensions.gutterHorizontal},background:{backgroundColor:e.colors.cellBackground},root:{paddingVertical:e.spaces.space16},labelContainer:{justifyContent:"space-between"},switchContainer:{flexDirection:"row",justifyContent:"space-between",flexGrow:1},switchHelpText:{paddingTop:e.spaces.space12},disabled:{opacity:.5}})))},50329:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(2784),r=n(65597),i=n(30318);const a=({accessibilityLabel:e,accessibilityLabelValueText:t,onChange:n,onDarkBackground:a,thumbLabel:s,value:l,...c})=>{const{direction:d}=(0,i.Z)(),u={...c,endThumbAccessibilityLabel:e,endThumbAccessibilityLabelValueText:t,endThumbLabel:s,onDarkBackground:a,value:[c.min,l],onChange:e=>n(e[1]),isSingleSlider:!0,languageWritingDirection:d};return o.createElement(r.Z,u)}},74673:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>g});n(6886);var o=n(2784),r=n(25686),i=n(51461),a=n(63142),s=n(36934),l=n(73186);const c="up",d="down",u=(e,t,n)=>{n((n=>{const o=(0,i.Z)(e)?e>(n.count||0)?c:d:c;return{...n,count:e,oldText:n.text,pendingCount:null,pendingText:null,text:t,transitionDirection:o}}))},p={};[c,d].forEach((e=>{const t="0.3s";p[e]={active:{transitionProperty:"transform",transitionDuration:t,transform:"translate3d(0, 0, 0)"},pre:{transform:`translate3d(0, ${e===c?"100%":"-100%"}, 0)`},post:{transform:`translate3d(0, ${e===c?"-100%":"100%"}, 0)`,transitionProperty:"transform",transitionDuration:t}}}));const h={position:"absolute"},m=l.Z.create({root:{overflow:"hidden"}}),g=e=>{const{children:t,containerStyle:n,count:l,...d}=e,[g,b]=o.useState({animating:!1,count:e.count,pendingCount:null,text:e.children,oldText:null,pendingText:null,transitionDirection:c}),y=o.useRef(!1);return o.useEffect((()=>(y.current=!0,function(){y.current=!1})),[]),o.useEffect((()=>{if(y.current)if(a.Z.reducedMotionEnabled)b((n=>({...n,oldText:null,text:t,pendingText:null,pendingCount:null,count:e.count})));else if(t!==g.pendingText){t===g.text||(0,i.Z)(e.count)&&g.count===e.count?b((e=>({...e,pendingCount:null,pendingText:null}))):(b((n=>({...n,pendingCount:e.count,pendingText:t}))),g.animating||u(e.count,t,b))}}),[t]),o.useEffect((()=>{y.current&&!1===g.animating&&(g.oldText?window.requestAnimationFrame((()=>window.requestAnimationFrame((()=>{y.current&&b((e=>({...e,animating:!0})))})))):g.pendingText&&u(g.pendingCount,g.pendingText,b))}),[g.animating,g.oldText]),o.useMemo((()=>{const e=p[g.transitionDirection],t=g.oldText&&!a.Z.reducedMotionEnabled,i=!g.animating&&g.oldText&&!a.Z.reducedMotionEnabled,l={...h,...g.animating?e.post:e.active},c={...i?e.pre:e.active};return o.createElement(r.Z,{style:[m.root,n]},t?o.createElement("span",{style:l},o.createElement(s.ZP,d,g.oldText)):null,o.createElement("span",{"data-testid":"app-text-transition-container",onTransitionEnd:()=>((e,t)=>{e&&t((e=>({...e,animating:!1,oldText:null})))})(y.current,b),style:c},o.createElement(s.ZP,d,g.text)))}),[n,d,g,y,b])}},84714:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var o=n(7896),r=(n(6886),n(2784)),i=n(28316),a=n(90601),s=n(92034),l=n(68737),c=n(25686);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},h.apply(this,arguments)}var m={},g="0px 1px 3px rgba(0,0,0,0.5)",b="#D5D5D5",y="#BDBDBD",f=r.forwardRef((function(e,t){var n=e.accessibilityLabel,o=e.activeThumbColor,i=e.activeTrackColor,d=e.disabled,u=void 0!==d&&d,p=e.onValueChange,f=e.style,v=void 0===f?m:f,w=e.thumbColor,E=e.trackColor,C=e.value,T=void 0!==C&&C,S=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,["accessibilityLabel","activeThumbColor","activeTrackColor","disabled","onValueChange","style","thumbColor","trackColor","value"]),P=r.useRef(null);function Z(e){var t="focus"===e.nativeEvent.type?"0px 1px 3px rgba(0,0,0,0.5), 0 0 0 10px rgba(0,0,0,0.1)":g;null!=P.current&&(P.current.style.boxShadow=t)}var I=l.Z.flatten(v),k=I.height,x=I.width,A=k||"20px",L=(0,s.Z)(A,2),R=x>L?x:L,D=(0,s.Z)(A,.5),M=!0===T?null!=E&&"object"==typeof E?E.true:null!=i?i:"#A3D3CF":null!=E&&"object"==typeof E?E.false:null!=E?E:"#939393",O=T?null!=o?o:"#009688":null!=w?w:"#FAFAFA",B=A,F=B,H=[_.root,v,u&&_.cursorDefault,{height:A,width:R}],N=!0===T?"string"==typeof i&&null!=i||"object"==typeof E&&null!=E&&E.true?M:b:"string"==typeof E&&null!=E||"object"==typeof E&&null!=E&&E.false?M:b,z=!0===T?null==o?y:O:null==w?y:O,U=[_.track,{backgroundColor:u?N:M,borderRadius:D}],V=[_.thumb,T&&_.thumbActive,{backgroundColor:u?z:O,height:B,marginStart:T?(0,s.Z)(F,-1):0,width:F}],q=(0,a.Z)("input",{accessibilityLabel:n,checked:T,disabled:u,onBlur:Z,onChange:function(e){null!=p&&p(e.nativeEvent.target.checked)},onFocus:Z,ref:t,style:[_.nativeControl,_.cursorInherit],type:"checkbox",role:"switch"});return r.createElement(c.Z,h({},S,{style:H}),r.createElement(c.Z,{style:U}),r.createElement(c.Z,{ref:P,style:V}),q)}));f.displayName="Switch";var _=l.Z.create({root:{cursor:"pointer",userSelect:"none"},cursorDefault:{cursor:"default"},cursorInherit:{cursor:"inherit"},track:u(u({forcedColorAdjust:"none"},l.Z.absoluteFillObject),{},{height:"70%",margin:"auto",transitionDuration:"0.1s",width:"100%"}),thumb:{forcedColorAdjust:"none",alignSelf:"flex-start",borderRadius:"100%",boxShadow:g,start:"0%",transform:[{translateZ:0}],transitionDuration:"0.1s"},thumbActive:{start:"100%"},nativeControl:u(u({},l.Z.absoluteFillObject),{},{height:"100%",margin:0,opacity:0,padding:0,width:"100%"})});const v=f;var w=n(73186);class E extends r.Component{constructor(...e){super(...e),this._updateStyles=e=>{if(e){const t=i.findDOMNode(e);t&&[...t.childNodes].forEach((e=>{e instanceof HTMLElement&&(e.style.borderColor="transparent",e.style.borderWidth="1px")}))}}}render(){const{colors:e}=w.Z.theme;return r.createElement(v,(0,o.Z)({activeThumbColor:e.primary,activeTrackColor:e.lightPrimary,ref:this._updateStyles},this.props))}}const C=E},32070:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var o=n(7896),r=(n(6886),n(2784)),i=n(14983),a=n.n(i),s=n(28316),l=n(90601),c=n(31461),d=n(80753),u=n(81665),p=!!document.documentElement.currentStyle,h={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},m=["letter-spacing","line-height","font-family","font-weight","font-size","font-style","tab-size","text-rendering","text-transform","width","text-indent","padding-top","padding-right","padding-bottom","padding-left","border-top-width","border-right-width","border-bottom-width","border-left-width","box-sizing"],g={},b=document.createElement("textarea"),y=function(e){Object.keys(h).forEach((function(t){e.style.setProperty(t,h[t],"important")}))};function f(e,t,n,o,r){void 0===n&&(n=!1),void 0===o&&(o=null),void 0===r&&(r=null),null===b.parentNode&&document.body.appendChild(b);var i=function(e,t,n){void 0===n&&(n=!1);if(n&&g[t])return g[t];var o=window.getComputedStyle(e);if(null===o)return null;var r=m.reduce((function(e,t){return e[t]=o.getPropertyValue(t),e}),{}),i=r["box-sizing"];if(""===i)return null;p&&"border-box"===i&&(r.width=parseFloat(r.width)+parseFloat(o["border-right-width"])+parseFloat(o["border-left-width"])+parseFloat(o["padding-right"])+parseFloat(o["padding-left"])+"px");var a=parseFloat(r["padding-bottom"])+parseFloat(r["padding-top"]),s=parseFloat(r["border-bottom-width"])+parseFloat(r["border-top-width"]),l={sizingStyle:r,paddingSize:a,borderSize:s,boxSizing:i};n&&(g[t]=l);return l}(e,t,n);if(null===i)return null;var a=i.paddingSize,s=i.borderSize,l=i.boxSizing,c=i.sizingStyle;Object.keys(c).forEach((function(e){b.style[e]=c[e]})),y(b),b.value=e.value||e.placeholder||"x";var d=-1/0,u=1/0,h=b.scrollHeight;"border-box"===l?h+=s:"content-box"===l&&(h-=a),b.value="x";var f=b.scrollHeight-a,_=Math.floor(h/f);return null!==o&&(d=f*o,"border-box"===l&&(d=d+a+s),h=Math.max(d,h)),null!==r&&(u=f*r,"border-box"===l&&(u=u+a+s),h=Math.min(u,h)),{height:h,minHeight:d,maxHeight:u,rowCount:Math.floor(h/f),valueRowCount:_}}b.setAttribute("tab-index","-1"),b.setAttribute("aria-hidden","true"),y(b);var _=function(){},v=0,w=function(e){function t(t){var n;return(n=e.call(this,t)||this)._onRef=function(e){n._ref=e;var t=n.props.inputRef;"function"!=typeof t?t.current=e:t(e)},n._onChange=function(e){n._controlled||n._resizeComponent(),n.props.onChange(e,(0,d.Z)(n))},n._resizeComponent=function(e){void 0===e&&(e=_);var t=f(n._ref,n._uid,n.props.useCacheForDOMMeasurements,n.props.minRows,n.props.maxRows);if(null!==t){var o=t.height,r=t.minHeight,i=t.maxHeight,a=t.rowCount,s=t.valueRowCount;n.rowCount=a,n.valueRowCount=s,n.state.height===o&&n.state.minHeight===r&&n.state.maxHeight===i?e():n.setState({height:o,minHeight:r,maxHeight:i},e)}else e()},n.state={height:t.style&&t.style.height||0,minHeight:-1/0,maxHeight:1/0},n._uid=v++,n._controlled=void 0!==t.value,n._resizeLock=!1,n}(0,u.Z)(t,e);var n=t.prototype;return n.render=function(){var e=this.props,t=(e.inputRef,e.maxRows,e.minRows,e.onHeightChange,e.useCacheForDOMMeasurements,(0,c.Z)(e,["inputRef","maxRows","minRows","onHeightChange","useCacheForDOMMeasurements"]));return t.style=(0,o.Z)({},t.style,{height:this.state.height}),Math.max(t.style.maxHeight||1/0,this.state.maxHeight)<this.state.height&&(t.style.overflow="hidden"),(0,r.createElement)("textarea",(0,o.Z)({},t,{onChange:this._onChange,ref:this._onRef}))},n.componentDidMount=function(){var e=this;this._resizeComponent(),this._resizeListener=function(){e._resizeLock||(e._resizeLock=!0,e._resizeComponent((function(){e._resizeLock=!1})))},window.addEventListener("resize",this._resizeListener)},n.componentDidUpdate=function(e,t){e!==this.props&&this._resizeComponent(),this.state.height!==t.height&&this.props.onHeightChange(this.state.height,this)},n.componentWillUnmount=function(){window.removeEventListener("resize",this._resizeListener),function(e){delete g[e]}(this._uid)},t}(r.Component);w.defaultProps={inputRef:_,onChange:_,onHeightChange:_,useCacheForDOMMeasurements:!1};const E=w;var C=n(77934),T=n(73186);const S=["text","search","url","tel","password"],P=r.forwardRef(((e,t)=>{const n=C.wL(),{onFocus:i}=e,a=r.useCallback((e=>{i&&i(),n("focus")}),[i,n]);return r.createElement(Z,(0,o.Z)({},e,{onFocus:a,ref:t}))}));class Z extends r.PureComponent{constructor(...e){super(...e),this._onPaste=e=>{const{onFilesAdded:t,onPaste:n}=this.props;if(t){const n=e.nativeEvent&&e.nativeEvent.clipboardData||{};let o=[];if(n.items){o=Array.prototype.slice.call(n.items).filter((e=>"file"===e.kind)).map((e=>e.getAsFile()))}else n.files&&(o=Array.prototype.slice.call(n.files));if(o.length>0)return e.preventDefault(),t(o)}return n&&n(e)},this._setTextInputRef=e=>{this._textInputRef=e},this._checkForRenderProps=()=>{const e=!Object.keys(this.props).some((e=>e.includes("render")));a()(e,"Must have no render props. See comment at top of file and RWEB-23660 for details.")}}componentDidMount(){const{autoFocus:e,positionCursorAtBeginning:t,positionCursorAtEnd:n,type:o}=this.props,r=this._getTextInputDOMNode();if(e&&r){r.focus();const e=S.indexOf(o)>-1;if(n&&e){const e=r.value.length;r.setSelectionRange(e,e)}else t&&e&&r.setSelectionRange(0,0)}this._checkForRenderProps()}componentDidUpdate(){this._checkForRenderProps()}render(){const{ariaActiveDescendant:e,ariaAutocomplete:t,ariaControls:n,ariaExpanded:o,ariaLabel:r,ariaOwns:i,ariaRole:a,autoCapitalize:s,autoComplete:c,autoCorrect:d,autoFocus:u,defaultValue:p,editable:h,inputMode:m,max:g,maxLength:b,maxNumberOfLines:y,min:f,multiline:_,name:v,numberOfLines:w,onBlur:C,onChange:T,onFocus:S,onInput:P,onKeyDown:Z,onKeyPress:k,onKeyUp:x,pattern:A,placeholder:L,placeholderTextColor:R,returnKeyType:D,spellCheck:M,style:O,testID:B,type:F,useCacheForDOMMeasurements:H,value:N}=this.props,z={"aria-activedescendant":e,"aria-autocomplete":t,"aria-controls":n,"aria-expanded":o,"aria-label":r,"aria-owns":i,autoCapitalize:s,autoComplete:c,autoCorrect:d?"on":"off",autoFocus:u,defaultValue:p,disabled:!h,inputMode:m,max:g,maxLength:b,min:f,name:v,onBlur:C,onChange:T,onFocus:S,onInput:P,onKeyDown:Z,onKeyPress:k,onKeyUp:x,pattern:A,placeholder:L,role:a,spellCheck:M,style:O,testID:B,value:N},U={maxRows:y||w,minRows:w,useCacheForDOMMeasurements:H},V=[I.alignLeft],q={enterKeyHint:D,type:F},G=[I.alignLeft],j=_?U:q,W=_?V:G,K=Object.assign({},{...z,...j,dir:"auto",onChange:T,onPaste:this._onPaste,ref:this._setTextInputRef,style:[I.root,O,{placeholderTextColor:R},...W]}),$=_?E:"input";return(0,l.Z)($,K)}_getTextInputDOMNode(){if(!this.textInputNode){const e=s.findDOMNode(this._textInputRef);this.textInputNode=e&&(e instanceof window.HTMLInputElement||e instanceof window.HTMLTextAreaElement)?e:void 0}return this.textInputNode}blur(){const e=this._getTextInputDOMNode();e&&e.blur()}focus(){const e=this._getTextInputDOMNode();e&&e.focus()}clear(){const{onClear:e}=this.props;(this._getTextInputDOMNode()||{}).value="",e&&e()}getValue(){const e=this._getTextInputDOMNode(),{value:t=""}=e||{};return t}getOffsetHeight(){const e=this._getTextInputDOMNode();return e&&e.offsetHeight||0}}Z.defaultProps={autoComplete:"off",autoCapitalize:"sentences",editable:!0,numberOfLines:2,spellCheck:"true",type:"text",useCacheForDOMMeasurements:!0};const I=T.Z.create((e=>({root:{appearance:"none",boxSizing:"border-box",resize:"none",width:"100%"},alignLeft:{textAlign:"start"}})))},32291:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>C,U7:()=>T});n(6886);var o=n(2784),r=n(25686),i=n(16587),a=n(63142),s=n(36934),l=n(77934),c=n(79866),d=n(11839),u=n(15686),p=n(31099),h=n(73186),m=n(83853),g=n(79404),b=n.n(g),y=n(10013),f=n(54044),_=n(74673);const v=b().e8d93005,w=h.Z.create((e=>({count:{paddingHorizontal:e.spacesPx.space12,minWidth:`calc(1em + 2 * ${e.spaces.space12})`},narrowCount:{paddingHorizontal:e.spacesPx.space8,minWidth:`calc(1em + 2 * ${e.spaces.space8})`}}))),E=({color:e,count:t})=>o.createElement(f.Z,null,(({containerWidth:n})=>{return o.createElement(_.ZP,{color:e,count:t,size:"subtext2",style:[w.count,(r=n,r<h.Z.theme.breakpoints.small&&w.narrowCount)]},t>0?(e=>e<320)(n)?v(t):(0,y.wl)(t):void 0);var r}));class C extends o.PureComponent{constructor(...e){super(...e),this._getMemoizedBehavioralEventContext=(0,i.Z)(((e,t,n)=>({token:e,viewState:t,viewType:n}))),this._renderContent=(e,t)=>{const{activeColor:n,color:i,decoration:a}=this.props;return o.createElement(u.Z,null,(({direction:l})=>o.createElement(s.ZP,{color:e?n:i,dir:l,style:[P.inner,e&&"blue500"===n&&P.blue500]},o.createElement(r.Z,{ref:this.props.actionIconContainerRef},t?this._renderButton(t):null,this._renderIcon()),a,this._renderCount())))},this._renderButton=e=>{const{activeColor:t,backgroundColor:n,hoverLabel:r,iconSize:i,isActive:a,isDisabled:s,showBackgroundWhenActive:l}=this.props,u=c.Z.generate({backgroundColor:h.Z.theme.colors[n],color:h.Z.theme.colors[t],insetFocusRing:!0}),p=l&&a&&!(null!=e&&e.isHovered);return o.createElement(d.Z,{hoverLabel:r,interactiveStyles:u,interactivityState:e,style:[h.Z.absoluteFill,S[p?"haloBackground":n],!s&&P.iconBackground,"small"===i&&P.iconSmallBoundingBox,p&&P.haloBoundingBox]})},this._renderIcon=()=>{const{ActiveIcon:e,iconSize:t,isActive:n,isDisabled:r,isFaded:i,onAnimationEnd:s,onAnimationStart:l,onError:c,showAnimation:d,transitionAnimationUrl:u}=this.props;if(!h.Z.theme.highContrastEnabled&&!a.Z.reducedMotionEnabled&&e&&d)return o.createElement(p.ZP,{animation:u||m.Bf,animationContainerStyle:T[t],animationStyle:I,onAnimationEnd:s,onAnimationStart:l,onError:c});{const a=n&&e?e:this.props.Icon;return o.createElement(a,{style:[T[t],!r&&i&&P.iconFaded]})}},this._renderCount=()=>{const{count:e,withCount:t}=this.props;return t?o.createElement(E,{count:e}):null},this._handlePress=e=>{const{onPress:t,renderWrapper:n}=this.props;n||(e.stopPropagation(),t&&t(e))}}render(){const{accessibilityLabel:e,focusable:t,behavioralEventContext:n,enableKeyboardShortcuts:i,isActive:s,isDisabled:c,isPresentational:u,keyboardShortcut:m,link:g,preventFocusShift:b,renderMenu:y,renderWrapper:f=o.Fragment,style:_,testID:v}=this.props,w=!h.Z.theme.highContrastEnabled&&!a.Z.reducedMotionEnabled,E=null==n?void 0:n.token,C=null==n?void 0:n.viewState,T=null==n?void 0:n.viewType,S=this._getMemoizedBehavioralEventContext(E,C,T);return o.createElement(l.zt,{behavioralEventContext:S},o.createElement(r.Z,{style:[P.root,_]},o.createElement(f,null,u?this._renderContent(s):o.createElement(d.Z,{accessibilityHasPopup:y?"menu":void 0,accessibilityLabel:e,disabled:c,enableKeyboardShortcuts:i,focusable:t,interactiveStyles:null,keyboardShortcut:m,link:g,onClick:this._handlePress,preventFocusShift:b,renderMenu:y,style:[P.triggerAreaRoot,P.outlineNone],testID:v},(e=>{const{isFocused:t,isHovered:n,isPressed:o}=e,r=s||n||o||t;return this._renderContent(r,e)}))),w?o.createElement(p.ZP.Prepare,null):null))}}C.defaultProps={activeColor:"blue500",backgroundColor:"transparent",color:"gray700",count:0,isDisabled:!1,iconSize:"normal"};const T=h.Z.create((e=>({small:{height:"1em",width:"1em"},normal:{height:"1.25em",width:"1.25em"},large:{height:"1.5em",width:"1.5em"}}))),S=h.Z.create((e=>({transparent:{backgroundColor:e.colors.transparent},translucentBlack77:{backgroundColor:e.colors.translucentBlack77},haloBackground:{backgroundColor:e.colors.activeBlack}}))),P=h.Z.create((e=>({root:{flexDirection:"row",justifyContent:"flex-start"},triggerAreaRoot:{justifyContent:"center",minHeight:e.lineHeights.body,overflow:"visible",userSelect:"none"},inner:{alignItems:"center",display:"flex",justifyContent:"flex-start",transitionProperty:"color",transitionDuration:"0.2s",whiteSpace:"nowrap"},iconFaded:{opacity:.4},iconBackground:{borderRadius:e.borderRadii.infinite,margin:-8},iconSmallBoundingBox:{margin:-6},outlineNone:{outlineStyle:"none"},blue500:{color:e.colors.blue500},white:{color:e.colors.white},haloBoundingBox:{margin:-6}}))),Z="224.5%",I={width:Z,height:Z}},83853:(e,t,n)=>{"use strict";n.d(t,{Bf:()=>r,ZP:()=>a});var o=n(57038);const r="https://abs.twimg.com/sticky/animations/like.4.json";class i extends o.C{check(e){return super.check(null!=e?e:r)}}const a=new i},77096:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var o=n(2784),r=n(25686),i=n(7066),a=n(1206),s=n(36934),l=n(34923),c=n(79866),d=n(11839),u=n(73186);const p=e=>{const{accessibilityLabel:t,accessibilityPosInSet:n,accessibilitySetSize:p,checked:g,containerStyle:b,decoration:y,description:f,disabled:_,label:v,name:w,onChange:E,testID:C}=e,T="string"==typeof v?o.createElement(s.ZP,{weight:"bold"},v):v,S="string"==typeof f,P=f?S?o.createElement(s.ZP,{color:"gray700",style:l.W.description},f):o.createElement(r.Z,{style:h.descriptionComponent},f):null,Z=c.Z.generate({backgroundColor:u.Z.theme.colors.transparent,color:u.Z.theme.colors.primary,customHoverBackgroundColor:u.Z.theme.colors.transparent,customPressedBackgroundColor:u.Z.theme.colors.transparent}),I=c.Z.generate({backgroundColor:u.Z.theme.colors.transparent,color:g?u.Z.theme.colors.primary:u.Z.theme.colors.gray700,withFocusWithinFocusRing:!0});return o.createElement(o.Fragment,null,o.createElement(d.Z,{accessibilityRole:"label",disabled:_,interactiveStyles:Z,style:[l.W.root,b],testID:C},(e=>o.createElement(o.Fragment,null,y?o.createElement(r.Z,{style:l.W.decorationContainer},y):null,o.createElement(r.Z,{style:l.W.content},T,S&&P),o.createElement(r.Z,{style:h.radioContainer},o.createElement(d.Z,{disabled:_,interactiveStyles:I,interactivityState:e,style:h.radioBackground},o.createElement(r.Z,{style:[h.circle,g&&h.circleActive,_&&h.circleDisabled,g&&_&&h.circleCheckedAndDisabled]},g?o.createElement(i.Z,{style:h.checkMark}):null)),o.createElement("input",{"aria-label":t,"aria-posinset":n,"aria-setsize":p,checked:g,disabled:_,name:w,onChange:g?a.Z:E,style:m,type:"radio"}))))),S?null:P)},h=u.Z.create((e=>({radioBackground:{borderRadius:e.borderRadii.infinite,margin:`-${e.spaces.space8}`,padding:e.spaces.space8},radioContainer:{userSelect:"none",marginStart:e.spaces.space24},nativeControl:{...u.Z.absoluteFillObject,cursor:"inherit",height:"100%",margin:0,opacity:0,padding:0,width:"100%"},circleDisabled:{borderColor:e.colors.gray200},circleCheckedAndDisabled:{backgroundColor:e.colors.gray300,borderColor:e.colors.gray300},circle:{alignItems:"center",backgroundColor:e.colors.cellBackground,borderColor:e.colors.gray700,borderStyle:"solid",borderWidth:e.borderWidths.medium,borderRadius:e.spaces.space32,height:e.spaces.space20,justifyContent:"center",width:e.spaces.space20},circleActive:{borderColor:e.colors.primary,backgroundColor:e.colors.primary},checkMark:{width:"18px",height:"18px",color:e.colors.whiteOnColor},descriptionComponent:{marginHorizontal:e.spaces.space32}}))),m={...u.Z.absoluteFillObject,cursor:"inherit",height:"100%",margin:0,opacity:0,padding:0,width:"100%"}},24921:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(2784),r=n(25686),i=n(36934),a=n(73186);let s=1;const l=a.Z.create((e=>({header:{alignItems:"flex-start"},label:{paddingTop:e.spaces.space12,paddingBottom:e.spaces.space4},disabled:{opacity:.5}}))),c=e=>{const{accessibilityLabel:t,description:n,disabled:a,label:c,name:d,onChange:u,options:p,renderSelector:h,value:m}=e,g=(()=>{const e=o.useRef("");return o.useEffect((()=>{e.current=`CONTROL_${s}_LABEL`,s+=1}),[]),e})(),b=e=>()=>{u(d,e)};return o.createElement(r.Z,{accessibilityLabel:t,accessibilityLabelledBy:c&&!t?g.current:void 0,accessibilityRole:"radiogroup",style:a&&l.disabled},c?o.createElement(r.Z,{accessibilityRole:"label",nativeID:g.current,style:l.header},o.createElement(i.ZP,{style:l.label,weight:"bold"},c),n?o.createElement(i.ZP,{color:"gray700",size:"subtext2"},n):null):null,p.map(((e,t)=>h({accessibilityPosInSet:t+1,accessibilitySetSize:p.length,checked:e.value===m,disabled:a,name:d,onChange:b(e.value),...e}))))}},65597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var o=n(7896),r=(n(6886),n(2784)),i=n(28316),a=n(52661),s=n(25686),l=n(36934),c=n(30525),d=n(81682),u=n(35094),p=n(79866),h=n(11839),m=n(73186),g=n(27931),b=n(62014),y=n(46737);const f=Object.freeze({START:"start",END:"end"}),_=b.Z.spaces.space16,v=b.Z.spacesPx.space16,w=b.Z.spaces.space32,E=(b.Z.spacesPx.space32-v)/2;class C extends r.Component{constructor(e,t){super(e,t),this._sliderVisibleLength=1,this._activeThumb=null,this._keyPressValueDelta=1,this._renderInteractiveMarkers=({cssColor:e,dimmedBackgroundColorStyle:t,positionStyleDirection:n,solidBackgroundColorStyle:o})=>{const i=p.Z.generate({backgroundColor:m.Z.theme.colors.transparent,color:e}),a=this._shouldOverrideRTL(),l=this._getThumbButtonStyles(a),c=this._getMarkers(n,o,t);return r.createElement(r.Fragment,null,c.map((e=>r.createElement(h.Z,{accessibilityRole:"none",hoverLabel:e.hoverLabel?{label:e.hoverLabel}:void 0,interactiveStyles:i,key:e.value,style:[l,e.style]},r.createElement(s.Z,{style:[T.markerThumb,e.thumbStyle]})))))},this._renderIcon=e=>{const{endThumbLabel:t,isVertical:n,maxIcon:o,minIcon:i,startThumbLabel:a}=this.props;if(!i&&!o)return null;const l=e?n?o:i:n?i:o,c=e?T.maxIconVerticalMargin:T.minIconVerticalMargin,d=e?T.minIconHorizontalMarginOverrideRTL:T.maxIconHorizontalMarginOverrideRTL,u=this._shouldOverrideRTL()?d:e?T.minIconHorizontalMargin:T.maxIconHorizontalMargin,p=[n?c:u,n||!a&&!t?null:T.horizontalIconWithThumbLabel];return r.createElement(s.Z,{style:p},l)},this._renderThumb=(e,{isTrackHovered:t,solidBackgroundColorStyle:n})=>{const{hoverLabels:o,startThumbAccessibilityLabel:i,startThumbAccessibilityLabelValueText:a,endThumbAccessibilityLabel:c,endThumbAccessibilityLabelValueText:d,min:u,max:g,value:[b,y],color:_,withHidingThumb:v,isVertical:w,startThumbLabel:E,endThumbLabel:C,onDarkBackground:S,isSingleSlider:P,disabled:Z}=this.props;if(P&&e)return null;const I=e?a:d,k=e?i:c,x=e?b:y,A=this._shouldOverrideRTL(),L=m.Z.theme.colors[_],R=p.Z.generate({backgroundColor:m.Z.theme.colors.transparent,color:L}),D=w?"bottom":A?"end":"start",M=(this.state.focusedThumb||this._activeThumb)===(e?f.START:f.END),O=this._isRTL(),B=v&&!t&&!M,F=this._getThumbButtonStyles(A),{positionStyle:H}=this._getPositionStyleForValue({value:x,positionStyleDirection:D}),N=e?E:C,z=e?this._handleFocusRingGainedStart:this._handleFocusRingGainedEnd;return r.createElement(h.Z,{accessibilityLabel:k,accessibilityRole:"adjustable",accessibilityValueMax:g,accessibilityValueMin:u,accessibilityValueNow:x,accessibilityValueText:I||x.toString(),focusable:!Z,hoverLabel:o?{label:o[x]}:void 0,interactive:!Z,interactiveStyles:R,onFocusRingGained:z,onFocusRingLost:this._handleFocusRingLost,onKeyUp:this._handleKeyUp,onMouseDown:this._handleMouseDown,ref:this._handleThumbRef(e),style:[F,H]},r.createElement(s.Z,{style:[T.thumb,B&&T.thumbHidden,M&&T.thumbActive,n]}),N?r.createElement(l.ZP,{color:S?"white":void 0,size:"subtext2",style:[T.thumbLabel,O?T.thumbLabelLeftRTL:T.thumbLabelLeft]},N):null)},this._getPositionStyleForValue=({positionStyleDirection:e,value:t})=>{const{max:n,min:o}=this.props,r=(t-o)/(n-o),i={};return i[e]=`calc(${100*r}% - ${_} * ${r})`,{valuePosition:r,positionStyle:i}},this._markerValueIsInsideRange=e=>{const{value:t}=this.props,[n,o]=t;return e>=n&&e<=o},this._getThumbButtonStyles=e=>{const{disabled:t,isVertical:n}=this.props;return[T.thumbButton,n?T.verticalThumbButton:e?T.horizontalThumbButtonOverrideRTL:T.horizontalThumbButton,t&&T.thumbButtonDisabled]},this._shouldOverrideRTL=()=>this._isLanguageRTL()&&this.props.keepLTR,this._isLanguageRTL=()=>"rtl"===this.props.languageWritingDirection,this._isRTL=()=>this._isLanguageRTL()&&!this.props.keepLTR,this._handleRootRef=e=>{e&&(this._removeTouchMoveToScrollListener&&this._removeTouchMoveToScrollListener(),this._removeTouchMoveToScrollListener=(0,g.O)(e,this._handleTouchMoveToScroll,!1))},this._handleThumbRef=e=>t=>{this._removeHandlerIfExists(e,e?this._startThumbRef:this._endThumbRef),e?this._startThumbRef=t:this._endThumbRef=t;const n=i.findDOMNode(t);n&&(e?(this._existingKeyDownStartHandler=this._handleKeyDown(e),n.addEventListener("keydown",this._existingKeyDownStartHandler)):(this._existingKeyDownEndHandler=this._handleKeyDown(e),n.addEventListener("keydown",this._existingKeyDownEndHandler)))},this._removeHandlerIfExists=(e,t)=>{if(!t)return;const n=i.findDOMNode(t);if(n){const t=e?this._existingKeyDownStartHandler:this._existingKeyDownEndHandler;n.removeEventListener("keydown",t)}},this._existingKeyDownStartHandler=null,this._existingKeyDownEndHandler=null,this._handleLayout=e=>{const{isVertical:t}=this.props;this._sliderVisibleLength=e.nativeEvent.layout[t?"height":"width"]},this._resetKeyPressValueDelta=()=>{const{max:e,min:t,step:n}=this.props;this._keyPressValueDelta="number"==typeof n?n:.001*(e-t)},this._handleKeyUp=e=>{this._resetKeyPressValueDelta()},this._handleKeyDown=e=>t=>{const{keyboardStep:n,max:o,min:r,step:i,value:a}=this.props,[s,l]=a,c=e?s:l,{altKey:d,ctrlKey:u,metaKey:p}=t;if(d||u||p)return;const h=this._isRTL(),m=t.key===y.Z.ArrowUp||t.key===(h?y.Z.ArrowLeft:y.Z.ArrowRight),g=t.key===y.Z.ArrowDown||t.key===(h?y.Z.ArrowRight:y.Z.ArrowLeft);if(m||g){let s=a;if(n)s=this._normalizeValue(c+n*(m?1:-1));else{let e=.05*(o-r);"number"==typeof i&&e<i&&(e=i);const t=Math.min(this._keyPressValueDelta,e)*(m?1:-1);this._keyPressValueDelta*=1.4,s=this._normalizeValue(c+t)}this._triggerChange(e,s),s!==r&&s!==o||this._resetKeyPressValueDelta(),t.preventDefault()}},this._handleMouseDown=e=>{e.preventDefault()},this._normalizeValue=e=>{const{max:t,min:n}=this.props,o=this._roundToMultipleOfStep(e);return Math.max(n,Math.min(o,t))},this._roundToMultipleOfStep=e=>{const{step:t}=this.props;return"number"==typeof t?t*Math.round(e/t):e},this._triggerChange=(e,t)=>{const{onChange:n}=this.props;n(this._getNewRangeValues(e,t),e)},this._getNewRangeValues=(e,t)=>{const{value:n}=this.props,[o,r]=n,[i,a]=this._calculateNewRangeValuesWithoutConstraint(e,t,[o,r]);return[Math.min(i,r),Math.max(o,a)]},this._calculateNewRangeValuesWithoutConstraint=(e,t,n)=>{const[o,r]=n,i=this._normalizeValue(t);return e?[i,r]:[o,i]},this._handleStartShouldSetPanResponder=(e,t)=>{const{disabled:n}=this.props;return!n},this._handleMoveShouldSetPanResponder=(e,t)=>{const{disabled:n}=this.props;return!n},this._handlePanResponderGrant=(e,t)=>{const{disabled:n,isVertical:o,min:r}=this.props;if(n)return;const i=o?this._getLocationY(e):this._getLocationX(e),a=this._normalizeValue(r+this._scaleLengthByMinMaxRatio(i)),s=this._isValueClosestToRangeStart(a);this._setPanResponderSelected(s),this._triggerChange(s,a),this._valueOnGrant=a,this._setActive(!0,s)},this._getSliderInteractiveLength=()=>this._sliderVisibleLength-v,this._scaleLengthByMinMaxRatio=e=>{const{max:t,min:n}=this.props;return e/this._getSliderInteractiveLength()*(t-n)},this._getLocationX=e=>{const t=e.currentTarget,n="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:0},o=e.nativeEvent.pageX-window.pageXOffset-(n&&n.left||0)-E;return this._isRTL()?this._getSliderInteractiveLength()-o:o},this._getLocationY=e=>{const t=e.currentTarget,n="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{top:0},o=e.nativeEvent.pageY-window.pageYOffset-(n&&n.top||0)-E;return this._getSliderInteractiveLength()-o},this._setActive=(e,t)=>{const{onActive:n}=this.props;this._activeThumb=e?t?f.START:f.END:null,n&&n(!!this._activeThumb)},this._setPanResponderSelected=e=>{this._panResponderFocusedRangeStart=e},this._handleTouchMoveToScroll=e=>{e.preventDefault()},this._handlePanResponderChange=e=>{const{disabled:t,isVertical:n}=this.props;if(t)return;let o=0;o=n?-1*e.dy:(this._isRTL()?-1:1)*e.dx,this._triggerChange(this._panResponderFocusedRangeStart,this._valueOnGrant+this._scaleLengthByMinMaxRatio(o))},this._handlePanResponderMove=(e,t)=>{this._handlePanResponderChange(t)},this._handlePanResponderEnd=(e,t)=>{this._handlePanResponderChange(t),this._setActive(!1,!1)},this._handleFocusRingGainedStart=()=>{this.setState({focusedThumb:f.START})},this._handleFocusRingGainedEnd=()=>{this.setState({focusedThumb:f.END})},this._handleFocusRingLost=()=>{this.setState({focusedThumb:null})},this.state={focusedThumb:null},this._resetKeyPressValueDelta(),this._panResponder=a.Z.create({onStartShouldSetPanResponder:this._handleStartShouldSetPanResponder,onMoveShouldSetPanResponder:this._handleMoveShouldSetPanResponder,onPanResponderGrant:this._handlePanResponderGrant,onPanResponderMove:this._handlePanResponderMove,onPanResponderRelease:this._handlePanResponderEnd,onPanResponderTerminate:this._handlePanResponderEnd})}componentDidMount(){const{autoFocus:e,isSingleSlider:t}=this.props;var n,o;e&&(t?null==(n=this._endThumbRef)||n.focus():null==(o=this._startThumbRef)||o.focus())}componentWillUnmount(){this._removeTouchMoveToScrollListener&&this._removeTouchMoveToScrollListener()}render(){const{color:e,disabled:t,endThumbLabel:n,isVertical:i,startThumbLabel:a,value:l,withGrayBackground:p,withHidingThumb:h}=this.props,[g,b]=l,y=m.Z.theme.colors[e],f=(0,d.xO)(p?m.Z.theme.colors.gray200:y),_=(0,c.oL)({color:f,percent:.33,replace:!0}),v=(0,d.rb)(_),w="white"===e?(0,c._j)({color:f,coefficient:.4}):(0,c.$n)({color:f,coefficient:.5}),E=(0,d.rb)(w),C={backgroundColor:y},S={backgroundColor:E},P={backgroundColor:v},Z=this._shouldOverrideRTL(),I=this.props.isVertical?"bottom":Z?"end":"start";return r.createElement(s.Z,{style:[T.root,i&&T.verticalRoot,Z&&T.ltr,t&&T.disabled]},this._renderIcon(!0),r.createElement(u.Z,null,(({isHovered:l})=>{const c=this.state.focusedThumb||this._activeThumb,d=h&&!l&&!c,{valuePosition:u}=this._getPositionStyleForValue({value:g,positionStyleDirection:I}),{valuePosition:p}=this._getPositionStyleForValue({value:b,positionStyleDirection:I}),m={flexGrow:u},f={flexGrow:p-u};return r.createElement(s.Z,(0,o.Z)({},this._panResponder.panHandlers,{onLayout:this._handleLayout,ref:this._handleRootRef,style:[T.slider,i?T.verticalSlider:T.horizontalSlider,i||!a&&!n?null:T.horizontalSliderWithLabel,t&&T.sliderDisabled]}),r.createElement(s.Z,{style:[T.track,i?T.verticalTrack:T.horizontalTrack,d&&(i?T.verticalTrackWithHiddenThumb:T.horizontalTrackWithHiddenThumb),"white"===e?P:S]},r.createElement(s.Z,{style:[T.hiddenTrack,m]}),r.createElement(s.Z,{style:[T.progress,C,f]}),this._renderThumb(!0,{solidBackgroundColorStyle:C,isTrackHovered:l}),this._renderThumb(!1,{solidBackgroundColorStyle:C,isTrackHovered:l}),this._renderInteractiveMarkers({cssColor:y,positionStyleDirection:I,solidBackgroundColorStyle:C,dimmedBackgroundColorStyle:S})))})),this._renderIcon(!1))}_getMarkers(e,t,n){const{hoverLabels:o,isSingleSlider:r,max:i,min:a,step:s,value:l,withMarkers:c}=this.props;if(!c||"number"!=typeof s)return[];const d=i-a/s+1;return Array.from({length:d}).map(((e,t)=>t*s+a)).filter((e=>r?l[1]!==e:!l.includes(e))).map((r=>{const{positionStyle:i}=this._getPositionStyleForValue({value:r,positionStyleDirection:e}),a=this._markerValueIsInsideRange(r)?t:n;return{hoverLabel:o&&o[r],value:r,style:i,thumbStyle:a}}))}_isValueClosestToRangeStart(e){const{isSingleSlider:t,value:n}=this.props,[o,r]=n;if(t)return!1;if(o===r&&o===this.props.min)return!1;if(o===r&&e===this.props.max)return!0;if(e<o)return!0;if(e>r)return!1;return Math.abs(e-o)<Math.abs(e-r)}}C.defaultProps={color:"primary",step:1};const T=m.Z.create((e=>({root:{userSelect:"none",flexDirection:"row",alignItems:"center"},disabled:{opacity:.5},ltr:{writingDirection:"ltr"},verticalRoot:{flexDirection:"column",flexGrow:1},minIconHorizontalMargin:{marginEnd:e.spaces.space12},maxIconHorizontalMargin:{marginStart:e.spaces.space12},minIconHorizontalMarginOverrideRTL:{marginStart:e.spaces.space12},maxIconHorizontalMarginOverrideRTL:{marginEnd:e.spaces.space12},horizontalIconWithThumbLabel:{marginTop:e.spaces.space16},maxIconVerticalMargin:{marginBottom:e.spaces.space12},minIconVerticalMargin:{marginTop:e.spaces.space12},slider:{cursor:"pointer",flexGrow:1,alignItems:"center"},sliderDisabled:{cursor:"auto"},verticalSlider:{width:e.spaces.space20,flexDirection:"column"},horizontalSlider:{height:e.spaces.space20,flexDirection:"row"},horizontalSliderWithLabel:{marginTop:e.spaces.space16},track:{backgroundColor:e.colors.gray200,borderRadius:e.borderRadii.medium,flexGrow:1,alignItems:"center"},verticalTrack:{width:e.spaces.space4,flexDirection:"column-reverse",justifyContent:"flex-start"},horizontalTrack:{height:e.spaces.space4,flexDirection:"row"},hiddenTrack:{opacity:0},verticalTrackWithHiddenThumb:{width:`calc(${e.spaces.space4} / 2)`},horizontalTrackWithHiddenThumb:{height:`calc(${e.spaces.space4} / 2)`},progress:{backgroundColor:e.colors.primary,borderRadius:e.borderRadii.medium,alignSelf:"stretch"},thumbButton:{borderRadius:e.borderRadii.infinite,cursor:"pointer",height:w,width:w,alignItems:"center",justifyContent:"center",position:"absolute"},thumbButtonDisabled:{cursor:"auto"},verticalThumbButton:{marginBottom:`calc(-1 * ${E}px)`},horizontalThumbButton:{marginStart:`calc(-1 * ${E}px)`},horizontalThumbButtonOverrideRTL:{marginEnd:`calc(-1 * ${E}px)`},thumb:{backgroundColor:e.colors.white,height:_,width:_,borderRadius:e.borderRadii.infinite,transitionProperty:"transform",transitionDuration:"0.1s",transform:[{scale:1}],boxShadow:e.boxShadows.xSmall},thumbLabel:{position:"absolute",top:E-e.spacesPx.space4+"px",transform:"translate(-50%,-100%)",whiteSpace:"nowrap",pointerEvents:"none"},thumbLabelLeft:{start:"50%"},thumbLabelLeftRTL:{end:"50%"},markerThumb:{height:12,width:12,borderRadius:e.borderRadii.infinite,boxShadow:e.boxShadows.xSmall},thumbActive:{transform:[{scale:1.2}]},thumbHidden:{transform:[{scale:0}]}}))),S=C},62014:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(73757);const r=(0,n(38519).Z)({palette:o.CV.light,key:"light-blue-normal",highContrastEnabled:!1,chirpFontEnabled:!1,scale:"normal"})},77920:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(2784),r=n(90601),i=n(93987),a=n(73569);const s=(e={})=>{const t=o.useContext(i.Z);return(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[a.Z.root,e.style,t&&a.Z.iconRTL],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M8 6h10v10h-2V9.41L5.957 19.46l-1.414-1.42L14.586 8H8V6z"}))})};s.metadata={width:24,height:24};const l=s},14075:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M1.002 4h7.764c1.23 0 2.386.49 3.236 1.32.85-.83 2.006-1.32 3.236-1.32h7.764v16h-8.146c-.839 0-1.488.51-1.959 1.45h-1.789l-.171-.34C10.598 20.43 9.906 20 9.148 20H1.002V4zm10 3.26C10.53 6.48 9.685 6 8.766 6H3.002v12h6.146c.658 0 1.292.16 1.854.46V7.26zm2 11.21c.527-.29 1.143-.47 1.854-.47h6.146V6h-5.764c-.918 0-1.764.48-2.236 1.26v11.21zM19 11h-4V9h4v2zm0 4h-4v-2h4v2z"}))});a.metadata={width:24,height:24};const s=a},6889:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 3.75c-4.56 0-8.25 3.69-8.25 8.25s3.69 8.25 8.25 8.25 8.25-3.69 8.25-8.25S16.56 3.75 12 3.75zM1.75 12C1.75 6.34 6.34 1.75 12 1.75S22.25 6.34 22.25 12 17.66 22.25 12 22.25 1.75 17.66 1.75 12zM16.4 9.28l-5.21 7.15-4.1-3.27 1.25-1.57 2.47 1.98 3.97-5.47 1.62 1.18z"}))});a.metadata={width:24,height:24};const s=a},35131:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M3.543 8.96l1.414-1.42L12 14.59l7.043-7.05 1.414 1.42L12 17.41 3.543 8.96z"}))});a.metadata={width:24,height:24};const s=a},42922:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 3.75c-4.56 0-8.25 3.69-8.25 8.25s3.69 8.25 8.25 8.25 8.25-3.69 8.25-8.25S16.56 3.75 12 3.75zM1.75 12C1.75 6.34 6.34 1.75 12 1.75S22.25 6.34 22.25 12 17.66 22.25 12 22.25 1.75 17.66 1.75 12zm8.84 0l-2.3-2.29 1.42-1.42 2.29 2.3 2.29-2.3 1.42 1.42-2.3 2.29 2.3 2.29-1.42 1.42-2.29-2.3-2.29 2.3-1.42-1.42 2.3-2.29z"}))});a.metadata={width:24,height:24};const s=a},28045:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 1.75C6.34 1.75 1.75 6.34 1.75 12S6.34 22.25 12 22.25 22.25 17.66 22.25 12 17.66 1.75 12 1.75zm3.71 12.54l-1.42 1.42-2.29-2.3-2.29 2.3-1.42-1.42 2.3-2.29-2.3-2.29 1.42-1.42 2.29 2.3 2.29-2.3 1.42 1.42-2.3 2.29 2.3 2.29z"}))});a.metadata={width:24,height:24};const s=a},6405:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 15 15",children:o.createElement("g",null,o.createElement("path",{d:"M6.09 7.5L.04 1.46 1.46.04 7.5 6.09 13.54.04l1.42 1.42L8.91 7.5l6.05 6.04-1.42 1.42L7.5 8.91l-6.04 6.05-1.42-1.42L6.09 7.5z"}))});a.metadata={width:15,height:15};const s=a},64978:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M20 12h2v4.5c0 1.381-1.119 2.5-2.5 2.5h-4.13l-3.38 2.793L8.65 19H4.5C3.119 19 2 17.881 2 16.5v-11C2 4.119 3.119 3 4.5 3H13v2H4.5c-.276 0-.5.224-.5.5v11c0 .276.224.5.5.5h4.88L12 19.183 14.65 17h4.85c.276 0 .5-.224.5-.5V12zm2.121-10.536L20 3.585l-2.121-2.121-1.414 1.414 2.121 2.121-2.121 2.121 1.414 1.414L20 6.413l2.121 2.121 1.414-1.414-2.121-2.121 2.121-2.121-1.414-1.414zM8 12.25c.69 0 1.25-.56 1.25-1.25S8.69 9.75 8 9.75s-1.25.56-1.25 1.25.56 1.25 1.25 1.25zm4-2.5c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25c.42 0 .773-.221 1-.539.146-.204.25-.441.25-.711s-.104-.507-.25-.711c-.227-.318-.58-.539-1-.539zM16.711 12c.318-.227.539-.58.539-1 0-.69-.56-1.25-1.25-1.25s-1.25.56-1.25 1.25c0 .42.221.773.539 1 .204.146.441.25.711.25s.507-.104.711-.25z"}))});a.metadata={width:24,height:24};const s=a},91922:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M19.5 3h-15C3.119 3 2 4.119 2 5.5v11C2 17.881 3.119 19 4.5 19h4.15l3.34 2.793L15.37 19h4.13c1.381 0 2.5-1.119 2.5-2.5v-11C22 4.119 20.881 3 19.5 3zm.5 13.5c0 .276-.224.5-.5.5h-4.85L12 19.183 9.38 17H4.5c-.276 0-.5-.224-.5-.5v-11c0-.276.224-.5.5-.5h15c.276 0 .5.224.5.5v11zM9.25 11c0 .69-.56 1.25-1.25 1.25S6.75 11.69 6.75 11 7.31 9.75 8 9.75s1.25.56 1.25 1.25zm4 0c0 .69-.56 1.25-1.25 1.25s-1.25-.56-1.25-1.25.56-1.25 1.25-1.25 1.25.56 1.25 1.25zm4 0c0 .69-.56 1.25-1.25 1.25s-1.25-.56-1.25-1.25.56-1.25 1.25-1.25 1.25.56 1.25 1.25z"}))});a.metadata={width:24,height:24};const s=a},35235:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M14 6V3h2v8h-2V8H3V6h11zm7 2h-3.5V6H21v2zM8 16v-3h2v8H8v-3H3v-2h5zm13 2h-9.5v-2H21v2z"}))});a.metadata={width:24,height:24};const s=a},83882:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M3 2h18.61l-3.5 7 3.5 7H5v6H3V2zm2 12h13.38l-2.5-5 2.5-5H5v10z"}))});a.metadata={width:24,height:24};const s=a},53687:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M9.5 7c.828 0 1.5 1.119 1.5 2.5S10.328 12 9.5 12 8 10.881 8 9.5 8.672 7 9.5 7zm5 0c.828 0 1.5 1.119 1.5 2.5s-.672 2.5-1.5 2.5S13 10.881 13 9.5 13.672 7 14.5 7zM12 22.25C6.348 22.25 1.75 17.652 1.75 12S6.348 1.75 12 1.75 22.25 6.348 22.25 12 17.652 22.25 12 22.25zm0-18.5c-4.549 0-8.25 3.701-8.25 8.25s3.701 8.25 8.25 8.25 8.25-3.701 8.25-8.25S16.549 3.75 12 3.75zM8.947 17.322l-1.896-.638C7.101 16.534 8.322 13 12 13s4.898 3.533 4.949 3.684l-1.897.633c-.031-.09-.828-2.316-3.051-2.316s-3.021 2.227-3.053 2.322z"}))});a.metadata={width:24,height:24};const s=a},42269:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M19 14h2v3h-2v-3zM3 14H1v3h2v-3zm.5 7c-.276 0-.5-.225-.5-.5V19H1v1.5C1 21.879 2.122 23 3.5 23H5v-2H3.5zM10 5V3H7v2h3zm-7 .5c0-.275.224-.5.5-.5H5V3H3.5C2.122 3 1 4.121 1 5.5V7h2V5.5zM12 21v2h3v-2h-3zm-5 0v2h3v-2H7zm12-.5c0 .275-.224.5-.5.5H17v2h1.5c1.378 0 2.5-1.121 2.5-2.5V19h-2v1.5zM3 9H1v3h2V9zm3 9h5v-2H6v2zM18-.1c3.364 0 6.1 2.736 6.1 6.1s-2.736 6.1-6.1 6.1-6.1-2.736-6.1-6.1S14.636-.1 18-.1zm0 2c-2.261 0-4.1 1.839-4.1 4.1s1.839 4.1 4.1 4.1 4.1-1.839 4.1-4.1-1.839-4.1-4.1-4.1zm.5 3.1H15v2h6V5h-2.5zM6 10h4V8H6v2zm0 4h7v-2H6v2z"}))});a.metadata={width:24,height:24};const s=a},6733:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M23 3v14h-2V5H5V3h18zM1 7h18v14H1V7zm13.5 2c0 1.38 1.12 2.5 2.5 2.5V9h-2.5zm0 10H17v-2.5c-1.38 0-2.5 1.12-2.5 2.5zM8 14c0 1.66.9 3 2 3s2-1.34 2-3-.9-3-2-3-2 1.34-2 3zm-5-2.5c1.38 0 2.5-1.12 2.5-2.5H3v2.5zM3 19h2.5c0-1.38-1.12-2.5-2.5-2.5V19z"}))});a.metadata={width:24,height:24};const s=a},73952:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 3.75c-4.55 0-8.25 3.69-8.25 8.25 0 1.92.66 3.68 1.75 5.08L17.09 5.5C15.68 4.4 13.92 3.75 12 3.75zm6.5 3.17L6.92 18.5c1.4 1.1 3.16 1.75 5.08 1.75 4.56 0 8.25-3.69 8.25-8.25 0-1.92-.65-3.68-1.75-5.08zM1.75 12C1.75 6.34 6.34 1.75 12 1.75S22.25 6.34 22.25 12 17.66 22.25 12 22.25 1.75 17.66 1.75 12z"}))});a.metadata={width:24,height:24};const s=a},97463:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M12 3.75c-4.55 0-8.25 3.69-8.25 8.25 0 1.92.66 3.68 1.75 5.08l2.8-2.79 1.41 1.42-2.79 2.79c1.4 1.1 3.16 1.75 5.08 1.75 4.56 0 8.25-3.69 8.25-8.25 0-1.92-.65-3.68-1.75-5.08l-2.79 2.79-1.41-1.42 2.79-2.79C15.68 4.4 13.92 3.75 12 3.75zM1.75 12C1.75 6.34 6.34 1.75 12 1.75S22.25 6.34 22.25 12 17.66 22.25 12 22.25 1.75 17.66 1.75 12z"}))});a.metadata={width:24,height:24};const s=a},25479:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M17 9.76V4.5C17 3.12 15.88 2 14.5 2h-5C8.12 2 7 3.12 7 4.5v5.26L3.88 16H11v5l1 2 1-2v-5h7.12L17 9.76zM7.12 14L9 10.24V4.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5v5.74L16.88 14H7.12z"}))});a.metadata={width:24,height:24};const s=a},45784:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M11 11V4h2v7h7v2h-7v7h-2v-7H4v-2h7z"}))});a.metadata={width:24,height:24};const s=a},91737:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M8 9.5C8 8.119 8.672 7 9.5 7S11 8.119 11 9.5 10.328 12 9.5 12 8 10.881 8 9.5zm6.5 2.5c.828 0 1.5-1.119 1.5-2.5S15.328 7 14.5 7 13 8.119 13 9.5s.672 2.5 1.5 2.5zM12 16c-2.224 0-3.021-2.227-3.051-2.316l-1.897.633c.05.15 1.271 3.684 4.949 3.684s4.898-3.533 4.949-3.684l-1.896-.638c-.033.095-.83 2.322-3.053 2.322zm10.25-4.001c0 5.652-4.598 10.25-10.25 10.25S1.75 17.652 1.75 12 6.348 1.75 12 1.75 22.25 6.348 22.25 12zm-2 0c0-4.549-3.701-8.25-8.25-8.25S3.75 7.451 3.75 12s3.701 8.25 8.25 8.25 8.25-3.701 8.25-8.25z"}))});a.metadata={width:24,height:24};const s=a},11711:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M22 17H2L12 6l10 11z"}))});a.metadata={width:24,height:24};const s=a},42203:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M18 1.2v21.6L8.71 17H5.5C4.12 17 3 15.88 3 14.5v-5C3 8.12 4.12 7 5.5 7h3.21L18 1.2zM8 9H5.5c-.28 0-.5.22-.5.5v5c0 .28.22.5.5.5H8V9zm2 6.45l6 3.75V4.8l-6 3.75v6.9z"}))});a.metadata={width:24,height:24};const s=a},49511:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M18 6.59V1.2L8.71 7H5.5C4.12 7 3 8.12 3 9.5v5C3 15.88 4.12 17 5.5 17h2.09l-2.3 2.29 1.42 1.42 15.5-15.5-1.42-1.42L18 6.59zm-8 8V8.55l6-3.75v3.79l-6 6zM5 9.5c0-.28.22-.5.5-.5H8v6H5.5c-.28 0-.5-.22-.5-.5v-5zm6.5 9.24l1.45-1.45L16 19.2V14l2 .02v8.78l-6.5-4.06z"}))});a.metadata={width:24,height:24};const s=a},86249:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M15 10H9V8h6v2zm-2 4H9v-2h4v2zm-.847 8.99c4.215-.652 8.988-5.523 9.097-11.469l-2-.037c-.083 4.574-3.395 8.102-6.25 9.211v-2.292l-1.786-.191C7.528 17.815 4.75 14.714 4.75 11c0-3.998 3.252-7.25 7.25-7.25v-2c-5.101 0-9.25 4.149-9.25 9.25 0 4.738 3.546 8.693 8.25 9.2v2.969l1.153-.179zm4.39-16.95l1.414 1.42L20 5.41l2.043 2.05 1.414-1.42L21.414 4l2.043-2.04L22.043.54 20 2.59 17.957.54l-1.414 1.42L18.586 4l-2.043 2.04z"}))});a.metadata={width:24,height:24};const s=a},62119:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2784),r=n(90601),i=n(73569);const a=(e={})=>(0,r.Z)("svg",{...e,accessibilityRole:e.accessibilityLabel?e.accessibilityRole||"img":void 0,accessibilityHidden:void 0===e.accessibilityLabel,style:[i.Z.root,e.style],viewBox:"0 0 24 24",children:o.createElement("g",null,o.createElement("path",{d:"M16 6V4.5C16 3.12 14.88 2 13.5 2h-3C9.11 2 8 3.12 8 4.5V6H3v2h1.06l.81 11.21C4.98 20.78 6.28 22 7.86 22h8.27c1.58 0 2.88-1.22 3-2.79L19.93 8H21V6h-5zm-6-1.5c0-.28.22-.5.5-.5h3c.27 0 .5.22.5.5V6h-4V4.5zM11 17H9v-6h2v6zm4 0h-2v-6h2v6z"}))});a.metadata={width:24,height:24};const s=a},72192:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(36728);const o=(e,t)=>e.reduce(((n,o,r)=>{const i=t?t(o,r,e):!!o;return i&&n[0].push(o),!i&&n[1].push(o),n}),[[],[]])},92215:(e,t,n)=>{var o=n(23103),r=n(9859),i=n(54555);o({global:!0},{Reflect:{}}),i(r.Reflect,"Reflect",!0)},52661:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var o=n(35620),r={centroidDimension:function(e,t,n,o){var i=e.touchBank,a=0,s=0,l=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==l)l.touchActive&&l.currentTimeStamp>t&&(a+=o&&n?l.currentPageX:o&&!n?l.currentPageY:!o&&n?l.previousPageX:l.previousPageY,s=1);else for(var c=0;c<i.length;c++){var d=i[c];if(null!=d&&d.touchActive&&d.currentTimeStamp>=t){a+=o&&n?d.currentPageX:o&&!n?d.currentPageY:!o&&n?d.previousPageX:d.previousPageY,s++}}return s>0?a/s:r.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,t){return r.centroidDimension(e,t,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,t){return r.centroidDimension(e,t,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,t){return r.centroidDimension(e,t,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,t){return r.centroidDimension(e,t,!1,!1)},currentCentroidX:function(e){return r.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return r.centroidDimension(e,0,!1,!0)},noCentroid:-1};const i=r;var a=i.currentCentroidXOfTouchesChangedAfter,s=i.currentCentroidYOfTouchesChangedAfter,l=i.previousCentroidXOfTouchesChangedAfter,c=i.previousCentroidYOfTouchesChangedAfter,d=i.currentCentroidX,u=i.currentCentroidY,p={_initializeGestureState:function(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove:function(e,t){e.numberActiveTouches=t.numberActiveTouches,e.moveX=a(t,e._accountsForMovesUpTo),e.moveY=s(t,e._accountsForMovesUpTo);var n=e._accountsForMovesUpTo,o=l(t,n),r=a(t,n),i=c(t,n),d=s(t,n),u=e.dx+(r-o),p=e.dy+(d-i),h=t.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(u-e.dx)/h,e.vy=(p-e.dy)/h,e.dx=u,e.dy=p,e._accountsForMovesUpTo=t.mostRecentTimeStamp},create:function(e){var t={handle:null,shouldCancelClick:!1,timeout:null},n={stateID:Math.random(),moveX:0,moveY:0,x0:0,y0:0,dx:0,dy:0,vx:0,vy:0,numberActiveTouches:0,_accountsForMovesUpTo:0};return{panHandlers:{onStartShouldSetResponder:function(t){return null!=e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(t,n)},onMoveShouldSetResponder:function(t){return null!=e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(t,n)},onStartShouldSetResponderCapture:function(t){return 1===t.nativeEvent.touches.length&&p._initializeGestureState(n),n.numberActiveTouches=t.touchHistory.numberActiveTouches,null!=e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(t,n)},onMoveShouldSetResponderCapture:function(t){var o=t.touchHistory;return n._accountsForMovesUpTo!==o.mostRecentTimeStamp&&(p._updateGestureStateOnMove(n,o),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(t,n))},onResponderGrant:function(r){return t.handle||(t.handle=o.Z.createInteractionHandle()),t.timeout&&function(e){clearTimeout(e.timeout)}(t),t.shouldCancelClick=!0,n.x0=d(r.touchHistory),n.y0=u(r.touchHistory),n.dx=0,n.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(r,n),null==e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder(r,n)},onResponderReject:function(o){h(t,e.onPanResponderReject,o,n)},onResponderRelease:function(o){h(t,e.onPanResponderRelease,o,n),m(t),p._initializeGestureState(n)},onResponderStart:function(t){var o=t.touchHistory;n.numberActiveTouches=o.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(t,n)},onResponderMove:function(t){var o=t.touchHistory;n._accountsForMovesUpTo!==o.mostRecentTimeStamp&&(p._updateGestureStateOnMove(n,o),e.onPanResponderMove&&e.onPanResponderMove(t,n))},onResponderEnd:function(o){var r=o.touchHistory;n.numberActiveTouches=r.numberActiveTouches,h(t,e.onPanResponderEnd,o,n)},onResponderTerminate:function(o){h(t,e.onPanResponderTerminate,o,n),m(t),p._initializeGestureState(n)},onResponderTerminationRequest:function(t){return null==e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(t,n)},onClickCapture:function(e){!0===t.shouldCancelClick&&(e.stopPropagation(),e.preventDefault())}},getInteractionHandle:function(){return t.handle}}}};function h(e,t,n,r){e.handle&&(o.Z.clearInteractionHandle(e.handle),e.handle=null),t&&t(n,r)}function m(e){e.timeout=setTimeout((function(){e.shouldCancelClick=!1}),250)}const g=p},80753:(e,t,n)=>{"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>o})}}]);
  2. //# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/bundle.Conversation.1f4d14da.js.map