"use strict";(self.webpackChunklite=self.webpackChunklite||[]).push([[6546],{70370:(e,t,n)=>{n.d(t,{B:()=>o,_I:()=>i});var a=n(96540),r={updateWatchedBounds:function(){},watchedBounds:new Map},i=a.createContext(r),o=function(e){var t=e.children,n=e.className,r=e.name,o=e.type,l=e.offset,c=a.useContext(i).updateWatchedBounds,u=a.useRef(null);return a.useEffect((function(){c&&c(r,u,{type:o,offset:l})}),[]),a.createElement("div",{className:n,ref:u},t)}},15706:(e,t,n)=>{n.d(t,{G:()=>E,r:()=>b});var a=n(80296),r=n(64467),i=n(96540),o=n(90280),l=n(77865),c=n(52290),u=n(20239),d=n(44402),s=n(66305),p=n(42976),m=n(39160),f=n(90383);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:y,t=(0,m.d4)((function(e){return e.client.hydrated})),n=h(h({},y),e),r=i.useState("lg"),o=(0,a.A)(r,2),l=o[0],c=o[1];return i.useEffect((function(){var e=function(){window.innerWidth>=n.lg?c("lg"):window.innerWidth>=n.md?c("md"):window.innerWidth>=n.sm?c("sm"):window.innerWidth>=n.xs&&c("xs")};return t&&(e(),s.R5.on("resize",e)),function(){t&&s.R5.off("resize",e)}}),[t,n.lg,n.md,n.sm,n.xs]),l},N=function(e,t,n){return function(a){var r=n&&("xs"===t||"sm"===t),i=r?3*v[t]:k[t],o=1===e?"".concat(r?2*v[t]:v[t],"px"):2===e?"".concat(i,"px"):void 0;return{position:"relative",borderRight:e<2?"".concat(3,"px solid ").concat(a.colorTokens.background.neutral.tertiary.base):void 0,backgroundColor:a.colorTokens.background.neutral.tertiary.base,zIndex:3-e,marginLeft:o,paddingLeft:0===e?"0":"4px"}}},S=function(e){var t,n=e.catalogItem,a=e.width,r=e.height,d=e.isMobile,s=null==n?void 0:n.entity,p=(0,u.D)(),m=i.createElement(c.a,{height:"inherit",minHeight:"".concat(r,"px"),width:"".concat(a,"px"),background:p.colorTokens.background.neutral.secondary.base});return s&&"Post"===s.__typename&&null!==(t=s.previewImage)&&void 0!==t&&t.id&&(m=i.createElement(o.pg,{miroId:s.previewImage.id,alt:s.previewImage.alt||"",width:a,height:r,aspectRatio:d?o.l8.FourToThree:void 0,strategy:f.qY.Crop,loading:l.u.LAZY,rules:d?void 0:{height:"100%"}})),i.createElement(c.a,{height:"100%"},m)},E=function(e){var t=e.catalogItems,n=e.isEmbeded,a=void 0!==n&&n,r=e.coverWidth,o=e.coverHeight,l=e.breakpoints,u=(0,d.l)(),s=b(l),m=t.filter((function(e){var t,n=e.entity;return!("Post"!==(null==n?void 0:n.__typename)||null===(t=n.previewImage)||void 0===t||!t.id||n.visibility===p.dL.UNLISTED)})),f=[m[0],m[1],m[2]],g="sm"===s||"xs"===s,h=function(e,t){return 3*t+v[e]+k[e]+6}(s,r);return i.createElement(c.a,{display:"flex",overflow:"hidden",justifyContent:g?a?"space-between":"flex-start":"flex-end",width:g?"100%":"".concat(h,"px"),height:"100%",borderRadius:g?"0 0 3px 3px":"0 3px 3px 0",position:"relative",flexShrink:"0"},f.map((function(e,t){return i.createElement("div",{key:(null==e?void 0:e.catalogItemId)||t,className:u(N(t,s,a))},i.createElement(S,{isMobile:g,catalogItem:e,height:o,width:r}))})))}},66496:(e,t,n)=>{n.d(t,{V:()=>c});var a=n(45458),r=n(77485),i=n(59265),o=n(73114),l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"EmbedCatalog_user"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"FragmentSpread",name:{kind:"Name",value:"UserAvatar_user"}},{kind:"FragmentSpread",name:{kind:"Name",value:"userUrl_user"}}]}}].concat((0,a.A)(r.R.definitions),(0,a.A)(i.v0.definitions))},c={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"EmbedCatalog_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"predefined"}},{kind:"Field",name:{kind:"Name",value:"postItemsCount"}},{kind:"FragmentSpread",name:{kind:"Name",value:"catalogUrl_catalog"}},{kind:"Field",name:{kind:"Name",value:"creator"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EmbedCatalog_user"}}]}},{kind:"Field",alias:{kind:"Name",value:"listItemsConnection"},name:{kind:"Name",value:"itemsConnection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"pagingOptions"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"10"}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogItemId"}},{kind:"FragmentSpread",name:{kind:"Name",value:"PreviewCatalogCovers_catalogItemV2"}}]}}]}}]}}].concat((0,a.A)(i.Rm.definitions),(0,a.A)(l.definitions),(0,a.A)(o.L.definitions))}},54224:(e,t,n)=>{n.d(t,{DC:()=>N,LO:()=>E,PP:()=>w,W1:()=>S,wS:()=>O});var a=n(55127),r=n.n(a),i=n(96540),o=n(15706),l=n(23393),c=n(52290),u=n(86527),d=n(99731),s=n(36557),p=n(39410),m=n(72130),f=n(49287),g=n(44402),h=n(79429),v=n(39160),k=n(15371),y=n(46879),b={xs:277,sm:277,md:196,lg:196},N={xs:140,sm:195,md:90,lg:194},S={xs:105,sm:105,md:194,lg:194},E={sm:380},O=function(e,t){return function(n){return{display:"flex",backgroundColor:n.colorTokens.background.neutral.tertiary.base,justifyContent:"space-between",flexDirection:e?"column":"row",overflow:"hidden",border:"1px solid",borderColor:n.colorTokens.border.neutral.primary.base,borderRadius:"4px",maxHeight:"".concat(b[t],"px"),maxWidth:"100%",width:e?"100%":void 0,cursor:"pointer"}}},w=function(e){var t=e.catalog,n=(0,g.l)(),a=(0,v.d4)((function(e){return e.config.authDomain})),w=(0,m.$L)(),x=(0,f.jI)(),T=(0,h.s)({onPresentedFn:function(){w.event("list.presented",{listId:t.id,source:x})}}),I=(0,o.r)(E),P="sm"===I||"xs"===I,R=S[I],A=N[I],D=i.useCallback((function(e){e.stopPropagation()}),[]),C=i.useCallback((function(){window.top?window.top.location.href=(0,y.n1u)(t,a):window.location.href=(0,y.n1u)(t,a)}),[t,a]),M=i.useCallback((function(e){"Enter"===e.key&&C()}),[C]);i.useEffect((function(){window.parent.postMessage(JSON.stringify({src:window.location.toString(),context:"iframe.resize",height:b[I]}),"*")}),[I]);var L=i.useMemo((function(){return[t.postItemsCount>0?"".concat(t.postItemsCount," ").concat(r()("story",t.postItemsCount)):null].filter((function(e){return e})).join(", ")}),[t.postItemsCount]);return i.createElement("div",{role:"button",tabIndex:0,onKeyDown:M,onClick:C,className:n(O(P,I))},i.createElement(c.a,{ref:T,padding:"24px"},i.createElement(c.a,{display:"flex",alignItems:"center"},i.createElement(l.H8,{user:t.creator,scale:"XXXS",target:"_top"}),i.createElement(c.a,{padding:"0 8px",flexShrink:"0"},i.createElement(s.kZ,{color:"LIGHTER",scale:"S",clamp:1},i.createElement(u.N,{target:"_top",onClick:D,href:(0,y.EpC)(t.creator,a)},t.creator.name)))),i.createElement(c.a,{marginTop:P?"16px":"24px",marginBottom:P?"16px":"24px",height:P?"20px":"48px"},i.createElement(p.hE,{scale:P?"XS":"S",clamp:P?1:2},t.predefined?(0,k.cm)(t.predefined):t.name)),i.createElement(c.a,{display:"flex",alignItems:"center"},i.createElement(c.a,{flexShrink:"0"},i.createElement(d.$n,{target:"_top",size:"SMALL",buttonStyle:"SUBTLE",href:(0,y.n1u)(t,a)},"View list")),L&&i.createElement(c.a,{paddingLeft:"16px",flexShrink:"0"},i.createElement(s.kZ,{color:"LIGHTER",scale:"S",tag:"span"},L)))),i.createElement(o.G,{coverHeight:R,coverWidth:A,catalogItems:t.listItemsConnection.items,isEmbeded:!0,breakpoints:E}))}},18677:(e,t,n)=>{n.d(t,{f:()=>r});var a=n(34284);function r(e){var t=e.timestamp;return(0,a.A)(t,Date.now(),{addSuffix:!0})}},53057:(e,t,n)=>{n.d(t,{y:()=>m,B:()=>p});var a=n(64467),r=n(80296),i=n(95420),o=n(69733),l=n(72130),c=n(38893),u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"QuoteDeleteMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetQuoteId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteQuote"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPostId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}}},{kind:"Argument",name:{kind:"Name",value:"targetQuoteId"},value:{kind:"Variable",name:{kind:"Name",value:"targetQuoteId"}}}]}]}}]};function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t{n.d(t,{z:()=>r});var a=n(94644),r=function(e){for(var t=null,n=null,r=null,i=null,o=null,l=0;l<=e.length;l++){var c=e[l];if(!c)break;if(null!=t){"H4"===c.type&&(n=l);break}if("H3"===c.type||"H2"===c.type)t=l,o=i;else{if(null!=i)break;if("H4"!==c.type){if("IMG"===c.type){null===r&&(r=l);continue}if("IFRAME"===c.type||"P"===c.type&&"string"==typeof c.text&&(0,a.cw)(c.text))continue;break}i=l}}return{titleIndex:t,subtitleIndex:n,bannerImageIndex:r,kickerIndex:o}}},21874:(e,t,n)=>{n.d(t,{h:()=>a});var a=n(96540).createContext({openSidebarToRespondToHighlight:function(){return null}})},98503:(e,t,n)=>{n.d(t,{R:()=>c,v:()=>u});var a=n(80296),r=n(96540),i=n(2680),o=n(39160),l=(0,r.createContext)({openPrivateNoteId:null,privateNoteSelection:null,setOpenPrivateNoteId:function(){},setPrivateNoteSelection:function(){}}),c=function(e){var t,n,c=e.children,u=(0,o.d4)((function(e){return e.navigation.currentHash}));if(u){var d=u.split("-");t=d[0],n=d[1]}var s=(0,i.u5)().paragraphRefsMappers,p=s.paragraphRefsMap,m=s.paragraphRefsByNameMap,f=(0,r.useState)(null),g=(0,a.A)(f,2),h=g[0],v=g[1],k=(0,r.useState)(null),y=(0,a.A)(k,2),b=y[0],N=y[1];return(0,r.useEffect)((function(){v(n)}),[n]),(0,r.useEffect)((function(){if(t&&!n){var e=m.get(t);e&&setTimeout((function(){return window.scrollTo(0,e.offsetTop)}))}}),[p]),r.createElement(l.Provider,{value:{openPrivateNoteId:h,privateNoteSelection:b,setOpenPrivateNoteId:v,setPrivateNoteSelection:N}},c)},u=function(){return(0,r.useContext)(l)}},16676:(e,t,n)=>{n.d(t,{_:()=>Oe,k:()=>xe});var a=n(80296),r=n(96540),i=n(98503),o=n(2680),l=n(70031),c=n(58168),u=n(64467),d=n(80045),s=n(69733),p=n(45458),m=n(5249),f=n(72130),g=n(38893),h={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"QuoteCreateMutation_highlight"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Quote"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"paragraphs"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"QuoteCreateMutation_paragraph"}}]}},{kind:"Field",name:{kind:"Name",value:"startOffset"}},{kind:"Field",name:{kind:"Name",value:"endOffset"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}].concat((0,p.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"QuoteCreateMutation_paragraph"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Paragraph"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"text"}}]}}]))},v={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"QuoteCreateMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPostVersionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetParagraphNames"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"startOffset"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"endOffset"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"quoteType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StreamItemQuoteType"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createQuote"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPostId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}}},{kind:"Argument",name:{kind:"Name",value:"targetPostVersionId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPostVersionId"}}},{kind:"Argument",name:{kind:"Name",value:"targetParagraphNames"},value:{kind:"Variable",name:{kind:"Name",value:"targetParagraphNames"}}},{kind:"Argument",name:{kind:"Name",value:"startOffset"},value:{kind:"Variable",name:{kind:"Name",value:"startOffset"}}},{kind:"Argument",name:{kind:"Name",value:"endOffset"},value:{kind:"Variable",name:{kind:"Name",value:"endOffset"}}},{kind:"Argument",name:{kind:"Name",value:"quoteType"},value:{kind:"Variable",name:{kind:"Name",value:"quoteType"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"QuoteCreateMutation_highlight"}}]}}]}}].concat((0,p.A)(h.definitions))},k={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"QuoteCreateMutation_postQuotes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"highlights"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"QuoteCreateMutation_highlight"}}]}}]}}]}}].concat((0,p.A)(h.definitions))};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function b(e){for(var t=1;t path":{fill:e.colorTokens.foreground.neutral.quaternary.base}}};function V(e){var t,n=e.action,i=e.actionHandler,o=e.requireLogin,l=void 0===o||o,u=e.susiProps,d=e.viewer,s=(0,P.l)(),p=r.useState(null),m=(0,a.A)(p,2),f=m[0],g=m[1];switch(r.useEffect((function(){g(document&&document.documentElement&&"ontouchstart"in document.documentElement)}),[]),n){case"highlight":t=A;break;case"respond":t=j;break;case"tweet":t=H.A;break;case"privateNote":t=M;break;default:t=function(){return null}}var h=f?function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}:void 0,v=!d&&l?function(e){var t=e.children;return r.createElement("div",{onTouchStart:h},!!u&&r.createElement(T.r,(0,c.A)({susiEntry:"highlight_text"},u),t))}:function(e){var t=e.children;return r.createElement(I.P,{rules:{fill:"inherit"},onClick:function(){return i(n)},onTouchStart:h},t)};return r.createElement(v,null,r.createElement(t,{width:"25px",height:"25px",className:s(_)}))}var B=n(52290),U=n(36557),W=n(49287),G=n(20239),Q=n(11334),q=n(18642),z=n(40064),X=function(e,t){return function(n){return{display:"inline-block",fill:e?n.colorTokens.background.accent.secondary.hover:null,paddingRight:t?"6px":null,":hover":{fill:e?n.colorTokens.background.accent.secondary.hover:null}}}},Y=function(){return{display:"inline-block",fill:q.ON,padding:"8px 0",whiteSpace:"nowrap"}},Z=function(e){return{background:e.baseColor.overlay.lighter,display:"inline-block",height:"25px",width:"1px",verticalAlign:"top"}};function K(e){var t=e.id,n=e.allowNotes,a=e.allowMainActions,i=e.highlightSourceProvider,o=e.rightContent,l=e.isYourHighlight,c=e.hasIconAfterHighlightIcon,u=e.mouseEnter,d=e.mouseLeave,s=e.position,p=e.update,m=e.onAction,f=e.allowResponse,g=e.allowTweet,h=e.highlightSusiProps,v=(0,G.D)(),k=(0,P.l)();r.useEffect((function(){p&&p()}),[u,d,s,p]);var y=r.useCallback((function(e){return r.createElement(V,{action:"highlight",viewer:e,actionHandler:m,susiProps:h})}),[m,h]);return r.createElement(Q.N,{theme:(0,z.a5)(v)},r.createElement(x.c,{nonBlocking:!0},(function(e){return r.createElement("div",{id:t,onMouseEnter:u,onMouseLeave:d},r.createElement("div",{className:k(Y)},a&&r.createElement(r.Fragment,null,r.createElement(B.a,{display:"inline-block",padding:c?"0 12px 0 10px":"0 10px"},r.createElement(r.Fragment,null,r.createElement("div",{className:k(X(l,c))},i?r.createElement(W.Ne,{source:{name:i}},y(e)):y(e)),f&&r.createElement("div",{className:k((s=g,{display:"inline-block",paddingRight:s?"6px":null}))},r.createElement(V,{action:"respond",viewer:e,actionHandler:m})),g&&r.createElement(V,{action:"tweet",viewer:e,requireLogin:!1,actionHandler:m}))),(!!o||n)&&r.createElement("div",{className:k(Z)})),!n&&!!o&&r.createElement(B.a,{display:"inline-block",padding:"0 16px"},r.createElement(U.kZ,{color:"DARKER",scale:"S"},o)),n&&r.createElement(B.a,{display:"inline-block",padding:"0 16px"},r.createElement(V,{action:"privateNote",viewer:e,actionHandler:m}))));var s})))}var J=r.memo(K),$=n(24960),ee=n(78693),te=["visible","position"];function ne(e){var t=e.visible,n=void 0===t||t,a=e.position,i=void 0===a?{left:0,top:0,bottom:0}:a,o=(0,d.A)(e,te),l=i.left,u=i.top,s=i.bottom,p=r.useCallback((function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}),[]),m=r.useCallback((function(e){e.preventDefault()}),[]);return r.createElement("span",{onMouseDown:m,onMouseUp:p,onClick:p,style:{display:"block",position:"absolute",left:l,top:u,height:"".concat(s-u,"px"),width:"0px"}},n&&r.createElement($.A,{darkTheme:!0,disablePortalOverlay:!0,display:"block",isVisible:!0,placement:"top",customZIndex:ee.Ay.selectionMenu,popoverRenderFn:function(e){return r.createElement(J,(0,c.A)({position:i,update:e},o))},referenceHeight:"100%",refTag:"span",shouldAnimateOpen:!0},r.createElement(r.Fragment,null)))}var ae=n(42976),re=n(39160),ie=n(65550),oe=n(79959),le=n(46879),ce=["highlightId","children"];function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function de(e){for(var t=1;t{n.d(t,{aB:()=>c,fc:()=>d,u5:()=>u});var a=n(80296),r=n(96540),i=n(70031),o=r.createContext({paragraphRefsMappers:{paragraphRefsMap:new Map,paragraphTitlesRefsByStyleMap:new Map,paragraphRefsByNameMap:new Map},addParagraphRef:function(){}}),l=function(){return{paragraphRefsMap:new Map,paragraphTitlesRefsByStyleMap:new Map,paragraphRefsByNameMap:new Map}},c=function(e){var t=e.children,n=r.useState(l),i=(0,a.A)(n,2),c=i[0],u=i[1],d=r.useCallback((function(e,t,n){u((function(a){if(!e.current)return a;var r=a.paragraphRefsMap,i=a.paragraphTitlesRefsByStyleMap,o=a.paragraphRefsByNameMap,l=["Title","Subtitle"].includes(n),c=new Map(i);n&&l&&c.set(n,e.current);var u=new Map(r);l||u.set(e.current,t);var d=new Map(o);return t.name&&!l&&d.set(t.name,e.current),{paragraphRefsMap:u,paragraphTitlesRefsByStyleMap:c,paragraphRefsByNameMap:d}}))}),[u]);return r.createElement(o.Provider,{value:{paragraphRefsMappers:c,addParagraphRef:d}},t)},u=function(){return r.useContext(o)},d=function(e,t){var n=r.useContext(o).addParagraphRef,a=r.useRef(null);return r.useEffect((function(){a.current&&(a.current.setAttribute(i.M,""),n(a,e,t))}),[a]),a}},70031:(e,t,n)=>{n.d(t,{M:()=>l,s:()=>c});var a=n(38221),r=n.n(a),i=n(96540),o=n(98503),l="data-selectable-paragraph",c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=(0,o.v)().privateNoteSelection;(0,i.useEffect)((function(){if(!n&&!a){var i=r()((function(){var n=document.getSelection();if(n)if("Range"===n.type){if(!(n.rangeCount>1)){var a=n.getRangeAt(0);if(a){var r=function(e){if(!e.commonAncestorContainer)return null;var t=e.commonAncestorContainer instanceof Element?e.commonAncestorContainer:e.commonAncestorContainer.parentElement;return t?t.closest("[".concat(l,"]")):null}(a);r?e(a,r):t(null)}else t(null)}}else t((function(e){return null!=e&&e.highlightId?e:null}));else t(null)}),100);return document.addEventListener("selectionchange",i,{passive:!0}),function(){return document.removeEventListener("selectionchange",i)}}}),[e,t,n,a])}},6546:(e,t,n)=>{n.d(t,{xl:()=>Oe,_t:()=>we,me:()=>Te});var a=n(64467),r=n(80296),i=n(58168),o=n(96540),l=n(70370),c=n(23029),u=n(92901),d=n(85501),s=n(56822),p=n(53954),m=n(73711),f=n(86322),g=n(52290),h=o.forwardRef((function(e,t){var n=e.height,a=void 0===n?1:n,r=e.width,i=void 0===r?1:r,l=e.backgroundColor,c=void 0===l?"BASE_NORMAL":l,u=e.children,d=(i=i||1)/(a=a||1);return o.createElement(g.a,{position:"relative",margin:"auto",backgroundColor:c,ref:t,overflow:"hidden"},o.createElement(g.a,{paddingBottom:"".concat(100/d,"%"),height:"0"},u))})),v=n(45458),k=n(39),y=n(12378),b=n(44402),N=n(38667),S=function(e){return function(t){return(0,a.A)({marginTop:"10px",textAlign:e,maxWidth:"".concat((0,y.z)(t,8,!0),"px"),marginLeft:"left"===e?"0":"auto",marginRight:"auto"},N.lg(t),{marginLeft:"auto",textAlign:"center"})}},E=function(e){return function(){var t=e&&100*e;return{width:"".concat(t,"%"),position:"relative",left:"calc(".concat(100-t/2,"% - 8px)"),transform:"translateX(-50%)"}}},O=o.forwardRef((function(e,t){var n=e.children,a=e.richTextStyle,r=e.textAlign,i=void 0===r?"center":r,l=e.extendLeftRatio,c=(0,b.l)(),u=(0,k.Z)({name:"detail",scale:"CARD"===a?"S":"M",color:"LIGHTER"});return o.createElement("figcaption",{className:c([S(i),u].concat((0,v.A)(l?[E(l)]:[]))),ref:t},n)}));function w(e){var t=e.children,n=e.figCaption,a=e.className,r=e.figureRef;return o.createElement("figure",{className:a,ref:r},t,n)}var x=n(66305),T=n(31104),I=function(e){var t=e.rootMargin,n=e.children,a=e.target,i=o.useState(!1),l=(0,r.A)(i,2),c=l[0],u=l[1],d=o.useCallback((function(e){!c&&e.isIntersecting&&u(!0)}),[c]);return(0,T.B)({onIntersect:d,target:a,disconnect:function(){return c},rootMargin:t},[c]),"function"==typeof n?o.createElement(o.Fragment,null,n(c)):c?o.createElement(o.Fragment,null,n):null},P=function(){return{width:"1px",minWidth:"100%","*width":"100%"}};function R(e){var t,n=e.src,a=e.title,l=e.height,c=e.width,u=e.allowFullScreen,d=e.frameBorder,s=e.rules,p=e.placeholderRef,m=e.iframeRef,f=(0,b.l)(),g={src:n,allowFullScreen:u,frameBorder:d,height:l,width:c},h=o.useState(!1),v=(0,r.A)(h,2),k=v[0],y=v[1],N=o.useState(!1),S=(0,r.A)(N,2),E=S[0],O=S[1];return E||x.R5.on("load",(function(){return O(!0)})),null!=m&&null!==(t=m.current)&&void 0!==t&&t.parentElement&&m.current.parentElement.offsetWidth0&&(g(i.current.offsetWidth),i.current.contentWindow===n&&d(e.details.height)),"iframe.resize"===e.context&&e.src===t&&e.height>0&&(i.current&&g(i.current.offsetWidth),d(e.height))})).destructor;return function(){e()}}}),[t,n]),[u,m,i]}({src:x,initialHeight:k||0,initialWidth:y||0}),I=(0,r.A)(T,3),P=I[0],M=I[1],L=I[2],F=o.useRef(null);if(o.useEffect((function(){if(c&&s&&s.id&&M&&P){var e="";d.current&&(e=d.current.offsetTop.toString()),c("".concat(s.id,"-").concat(e),d,{type:"image"})}}),[]),!x)return null;var j=t.text?o.createElement(O,{richTextStyle:i},o.createElement(m.O,{paragraph:t,paragraphStyle:n,richTextStyle:i})):null,H=[(0,C.o8)(l)];return H.push((function(){return{clear:"both"}})),"OUTSET_LEFT"===(t.layout||void 0)&&"STREAM"!==i&&"INLINE"!==i&&H.push((function(e){var t;return t={background:e.backgroundColor,borderWidth:e.borderWidthThick+"px",borderStyle:e.borderStyle,borderColor:e.backgroundColor,float:"left",marginLeft:"-150px",marginRight:"30px",width:"75%",padding:"0",paddingBottom:"10px"},(0,a.A)(t,N.md(e),{float:"none",marginLeft:"0",marginRight:"0",width:"100%"}),(0,a.A)(t,"marginBottom","16px"),t})),o.createElement(w,{className:u(H),figCaption:j,figureRef:d},o.createElement(h,{height:P,width:M,backgroundColor:"NONE",ref:F},o.createElement(R,{placeholderRef:F,iframeRef:L,src:x,title:S||"",height:P,width:M,allowFullScreen:!0,frameBorder:"0",rules:D.u})))},L=o.memo(M),F=n(36944),j=n.n(F),H=n(2680),_=n(15324),V=n(9459),B=n(90383),U=function(e){var t=(0,r.A)(e,1)[0];return"number"==typeof t?"".concat(t,"px"):t},W=function(e){var t=(0,r.A)(e,1)[0];return"".concat(t[0],"% ").concat(t[1],"%")},G=function(e){return(0,r.A)(e,1)[0]};function Q(e){var t=e.backgroundImage,n=e.boxShadowRules,a=e.miroId,r=e.height,i=e.width,l=e.minHeight,c=e.minWidth,u=e.imgHeight,d=e.imgWidth,s=e.focusPercent,p=e.strategy,m=void 0===p?B.qY.Resample:p,f=e.freezeGifs,g=(0,b.l)(),h=t;if(!h){var v=(0,B.rP)({miroId:a,height:u,width:d,strategy:m,freezeGifs:f});h="url(".concat(v,")")}var k=(0,V.Fv)(U,r),y=(0,V.Fv)(U,i),N=l&&(0,V.Fv)(U,l),S=c&&(0,V.Fv)(U,c),E=(0,V.Fv)(W,s),O={backgroundImage:(0,V.Fv)(G,h),display:"block",backgroundOrigin:"border-box",backgroundSize:"cover",height:k,width:y,minHeight:N,minWidth:S,backgroundPosition:E,maxWidth:"100%"};return o.createElement("div",{className:g([O,n])})}Q.defaultProps={focusPercent:[50,50]};var q=n(60763),z=function(e){return{backgroundColor:e.colorTokens.background.accent.quaternary.base}},X=function(e,t){var n=(0,B.rP)({freezeGifs:!1,miroId:e,strategy:B.qY.Resample,width:t.breakpoints.sm}),a=(0,B.rP)({freezeGifs:!1,miroId:e,strategy:B.qY.Resample,width:t.breakpoints.md}),r=(0,B.rP)({freezeGifs:!1,miroId:e,strategy:B.qY.Resample,width:t.breakpoints.lg}),i=(0,B.rP)({freezeGifs:!1,miroId:e,strategy:B.qY.Resample,width:t.breakpoints.xl});return{xl:"url('".concat(i,"')"),lg:"url('".concat(i,"')"),md:"url('".concat(r,"')"),sm:"url('".concat(a,"')"),xs:"url('".concat(n,"')")}};function Y(e){var t=e.metadata,n=(0,b.l)();return o.createElement(q.A,null,(function(e){return o.createElement("div",{className:n(z)},o.createElement(Q,{backgroundImage:X(t.id,e),miroId:t.id,height:"60vh",width:"100%",minHeight:{xl:500,lg:400,md:400,sm:300,xs:300},imgHeight:500,imgWidth:2e3,focusPercent:null===t.focusPercentX||void 0===t.focusPercentX||null===t.focusPercentY||void 0===t.focusPercentY?void 0:[t.focusPercentX,t.focusPercentY]}))}))}var Z=n(79501),K=n(77865),J=n(91958),$=n(60561),ee=function(e){var t=e.highlights,n=e.isSequenceCover,l=void 0!==n&&n,c=e.marginTopOverride,u=e.paragraph,d=e.paragraphStyle,s=e.privateNotes,p=e.richTextStyle,f=e.sequenceAspectRatio,h=e.spaceTop,v=e.updateWatchedBounds,k=e.loading,y=void 0===k?K.u.LAZY:k,S=e.marginBottomOverride,E=(0,b.l)(),x=o.useRef(null),T=(0,H.fc)(u,d);return o.useEffect((function(){if(v){var e=u.name,t=u.metadata&&u.metadata.id;if(e&&t){var n="";x.current&&(n=x.current.offsetTop.toString()),v("".concat(e,"-").concat(t,"-").concat(n),x,{type:"image"})}}}),[]),o.useMemo((function(){var e=u.metadata,n=u.layout;if(!e)return null;var v,k=e.id,b=e.originalHeight,I=e.originalWidth,P=e.alt,R=(0,B.dP)(k),A="CARD"===p||"INLINE"===p,D=(0,$.ky)({layout:n,originalWidth:I||0,originalHeight:b||0,sequenceAspectRatio:f,richTextStyle:p}),M=D.width,L=D.height,F=D.strategy;if("OUTSET_ROW_CONTINUE"===n&&I&&b&&f){var H=I/b;v=j()(f/H,2)}var U,W=u.text?o.createElement(O,{ref:T,richTextStyle:p,textAlign:l?"left":"center",extendLeftRatio:v},s&&o.createElement(_.F,{paragraph:u,privateNotes:s}),o.createElement(m.O,{highlights:t,paragraph:u,paragraphStyle:d,richTextStyle:p})):null;if(l)U=o.createElement(Y,{metadata:{id:k,focusPercentX:e.focusPercentX,focusPercentY:e.focusPercentY}});else{var G={alt:P||"",miroId:k,height:L,width:M,rules:[{width:"100%",maxWidth:"100%",height:"auto"}],maxWidth:L?void 0:"100%",strategy:F,freezeGifs:"STREAM"===p||"RESAMPLE"!==F,focusPercentX:e.focusPercentX,focusPercentY:e.focusPercentY,expectedWidth:M,loading:y,webp:!0};if("FULL_WIDTH"===n)U=o.createElement(Z.t,(0,i.A)({},G,{height:e.originalHeight||G.height,width:e.originalWidth||G.width}));else if("OUTSET_LEFT"===n||"INSET_LEFT"===n||"INSET_CENTER"===n&&I||"OUTSET_CENTER"===n&&I){var Q=I&&(R?I/2:I);U=o.createElement(J.pB,{isLinked:!!u.href,width:G.width,height:G.height,originalHeight:e.originalHeight,originalWidth:e.originalWidth,paragraphRef:x},o.createElement("div",{className:E((function(e){return{marginLeft:"auto",marginRight:"auto",maxWidth:"OUTSET_CENTER"===n&&Q&&Q{n.d(t,{C:()=>l});var a=n(96540),r=n(44402),i=n(80890),o=function(e){return{backgroundColor:e.colorTokens.background.neutral.secondary.base,padding:"2px 4px",fontSize:"75%","> strong":{fontFamily:"inherit"}}},l=function(e){var t=e.children,n=(0,r.l)();return a.createElement("code",{className:n([o,(0,i.WL)()])},t)}},4171:(e,t,n)=>{n.d(t,{q:()=>s,u:()=>f});var a=n(64467),r=n(80296),i=n(96540),o=n(16676);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;to?r:e}),null);return a&&a.id},f=function(e){var t=e.children,n=e.highlights,a=e.paragraphs,l=e.viewer,f=n||[],g=i.useMemo((function(){return new Map(f.map((function(e){return[e.id,e]})))}),[f]),h=i.useMemo((function(){return new Map}),[]),v=i.useState(p),k=(0,r.A)(v,2),y=k[0],b=k[1],N=i.useContext(o._),S=N.activeSelection,E=N.setActiveSelection,O=function(e){var t=h.get(e);if(t){var n=Array.from(t).map((function(e){return y.get(e)})).filter(Boolean).reduce((function(e,t){if(!t.ref.current)return e;var n=t.ref.current.getBoundingClientRect(),a=n.left,r=n.top,i=n.right,o=n.bottom,l=a+window.pageXOffset,c=i+window.pageXOffset,u=r+window.pageYOffset,d=o+window.pageYOffset;return(!e.minLeft||le.maxRight)&&(e.maxRight=c),(!e.minTop||u{n.d(t,{O:()=>q});var a=n(45458),r=n(96540),i=n(14596),o=n(42976),l=[o.FU.PQ,o.FU.H4],c=n(44402),u=n(39160),d=n(79959),s=n(61215),p=function(e,t){var n="Kicker"===e||function(e,t){return["Title"].concat((0,a.A)(l)).includes(e)&&("CARD"===t||"INLINE"===t&&"Title"===e)}(e,t)?"none":"underline";return{color:"inherit",textDecoration:n}},m=function(e){var t=e.href,n=e.children,a=e.paragraphStyle,o=e.richTextStyle,l=(0,c.l)(),m=(0,u.d4)((function(e){return e.config.authDomain}));if(!(0,s.M)(t))return n;var f=!(0,d.mk)(t,m);return"STREAM"===o?r.createElement("span",{className:l(p(a,o))},n):r.createElement(i.M,{href:t,className:l(p(a,o)),target:f?"_blank":void 0,disableSourceParam:!0},n)},f=n(18863),g=n(64467),h=n(90280),v=n(20239),k=n(89796),y=n(90383);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var N=3,S=function(e,t){return{display:"block",float:"left",height:"".concat(t,"px"),marginRight:"12px",position:"relative",width:"".concat(e,"px")}},E=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=e.split(P);if(n.length<=1)return e;if(1===e.length&&""===n[0]&&""===n[1])return r.createElement("br",{key:"".concat(t)});""===n[n.length-1]&&n.pop();var a=[];return n.forEach((function(e){a.push(e),a.push("br")})),P.test(e[e.length-1])||a.pop(),r.createElement(r.Fragment,null,a.map((function(e,n){return n%2==0?e||null:r.createElement("br",{key:"".concat(t).concat(n)})})))},A=n(4171),D=function(e,t){return function(n){return{backgroundColor:e&&n.colorTokens.background.accent.secondary.base||t&&n.colorTokens.background.accent.tertiary.base||n.colorTokens.background.accent.quaternary.base,color:"currentColor",cursor:"pointer"}}},C=function(e){var t=e.children,n=e.highlightIds,a=e.segmentId,i=(0,c.l)(),o=r.useRef(null),l=n.some((function(e){return"private-note-selection"===e})),u=r.useContext(A.q),d=u.highlightSegments,s=u.updateHighlightSegments,p=d.get(a),m=p||{},f=m.isActive,g=m.viewerIsOwner,h=m.onClick,v=m.onMouseEnter,k=m.onMouseLeave;return r.useEffect((function(){l||p&&p.ref&&p.ref.current&&n.length===p.highlightIds.length&&n.every((function(e){return p.highlightIds.includes(e)}))||s(a,{highlightIds:n,ref:o})}),[n,o]),r.createElement("mark",{className:i(D(f||l,!!g)),onClick:h,onMouseEnter:v,onMouseLeave:k,ref:o},t)},M=r.memo(C),L=n(60602),F=n(80890),j=function(e,t){return function(n){switch(e){case"P":case"BQ":case"OLI":case"ULI":return t?(0,F.or)()(n):{fontFamily:n.newFonts.body.family,fontWeight:n.newFonts.body.boldWeight};case"PRE":return(0,F.qy)()(n);case"IMG":return{fontFamily:n.newFonts.detail.family,fontWeight:n.newFonts.detail.boldWeight};default:return{fontWeight:"inherit"}}}},H=function(e){var t=e.children,n=e.paragraphStyle,a=(0,c.l)(),i=r.useContext(L.a).threadDepthOnPage;return r.createElement("strong",{className:a(j(n,!!i))},t)},_=n(29977),V=function e(t){var n=t.data,a=t.prefix,i=t.paragraphStyle,o=t.richTextStyle;if("string"==typeof n)return R(n,a);var l=n.children.map((function(t,n){return"string"==typeof t?R(t,"".concat(a).concat(n)):r.createElement(e,{key:n,data:t,paragraphStyle:i,prefix:"".concat(a).concat(n),richTextStyle:o})}));switch(n.type){case"A":return r.createElement(m,{href:n.href,paragraphStyle:i,richTextStyle:o},l);case"CODE":return"PRE"===i?r.createElement(r.Fragment,null,l):r.createElement(f.C,null,l);case"DROPCAP":var c=l[0];return c&&"string"==typeof c?"BQ"===i||"PQ"===i?c:r.createElement(w,{text:c,image:n.dropCapImage}):null;case"EM":return r.createElement(I,{paragraphStyle:i},l);case"QUOTE":return r.createElement(M,{highlightIds:n.highlightIds,segmentId:n.segmentId,key:n.segmentId},l);case"STRONG":return r.createElement(H,{paragraphStyle:i},l);case"USER_MENTION":return r.createElement(_.M,{popoverTag:"span",userId:n.userId,richTextStyle:o},l);case"HLJS_MARKUP":return r.createElement("span",{className:"hljs-"+n.className},l);default:return null}},B=r.memo(V),U="ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİIJĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƏǺǼǾȘȚẀẂẄẞỲΩ∆",W="abcdefghijklmnopqrstuvwxyzµßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıijĵķĸĺļľŀłńņňʼnŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżžſǻǽǿșțȷəẁẃẅỳ",G=new RegExp("^["+U+"]["+W+"\\,\\.](?= )|^["+U+"]’(?=["+W+"])|^[’‘“„”]?["+U+"]|^[0-9]{1,4}\\.?(?![0-9])"),Q=function(e){var t=e.highlights,n=e.paragraph,a=e.paragraphStyle,i=e.richTextStyle,o=e.allowDropCap,l=void 0!==o&&o,c=e.hljsMarkups;return Y(n,i,l,t||[],c).map((function(e,t){return r.createElement(B,{key:t,data:e,paragraphStyle:a,prefix:t.toString(),richTextStyle:i})}))},q=r.memo(Q),z=function(e){return null!=e.type&&null!=e.start&&null!=e.end},X=function(e,t){var n={COMMENT:1,HIGHLIGHT:2,FULL_HIGHLIGHT:3,HIGHLIGHT_SEGMENT:4,QUOTE:5,QUERY:6,CODE:7,A:8,STRONG:9,EM:10,WARNING:11,DROPCAP:12,UNUSED_DETAIL:14,SENTENCE_DEPRECATED:15,HLJS_MARKUP:16};if(null==e.type||null==e.start||null==e.end||null==t.type||null==t.start||null==t.end)throw new Error("Comparing markups requires type, start, and end fields.");var a=n[e.type]-n[t.type];if(0!==a)return a;if("HLJS_MARKUP"===e.type&&"HLJS_MARKUP"===t.type){var r=e.priority-t.priority;if(0!==r)return r}if(0!=(a=e.start-t.start))return a;if(0!=(a=e.end-t.end))return a;var i=JSON.stringify(e),o=JSON.stringify(t);return i>o?1:i=e.trim().length?"":n}(e.text);f.length>0&&(p.add(f.length),m.unshift({type:"DROPCAP",start:0,end:f.length}))}var g=Array.from(p).sort((function(e,t){return e-t})),h=g.map((function(e,t){var n;return{point:e,markups:m.filter((function(t){return t.start<=e&&t.end>e})).reduce((function(a,r){return"FULL_HIGHLIGHT"===r.type?(n||(n={type:"HIGHLIGHT_SEGMENT",highlightIds:[],start:e,end:g[t]-1},a.push(n)),n.highlightIds.push(r.highlightId)):a.push(r),a}),[])}}));if(c){var v=h[0].markups.filter((function(e){return"DROPCAP"===e.type}));if(v.length>0){var k=v[0];h[0].markups=[k]}}return h}(e,t,n,r,i),u=[],d=[];return c.forEach((function(t,n){var a=t.point,r=t.markups,i=(c[n+1]||c[c.length-1]).point,s=(e.text||"").slice(a,i);u=d,d=[];var p=!1,m=l,f=function(e){d.push(e);var t=e.markupNodeData;"string"!=typeof t&&(m=t.children)};r.forEach((function(t,n){var a=u[n];if(!p&&a&&a.markup===t)f({markup:t,markupNodeData:a.markupNodeData});else{p=!0;var r=Z(t,o,e);r&&(m.push(r),f({markup:t,markupNodeData:r}))}})),m.push(s)})),l},Z=function(e,t,n){switch(e.type){case"A":return"LINK"!==e.anchorType&&e.anchorType?"USER"===e.anchorType&&e.userId?{type:"USER_MENTION",userId:e.userId,children:[]}:null:e.href?{type:"A",href:e.href,children:[]}:null;case"CODE":return{type:"CODE",children:[]};case"DROPCAP":return{type:"DROPCAP",dropCapImage:t,children:[]};case"EM":return{type:"EM",children:[]};case"STRONG":return{type:"STRONG",children:[]};case"HIGHLIGHT":return{type:"QUOTE",highlightIds:[],segmentId:"".concat(n.name||"","_").concat(e.start),children:[]};case"HIGHLIGHT_SEGMENT":return{type:"QUOTE",highlightIds:e.highlightIds,segmentId:"".concat(n.name||"","_").concat(e.start),children:[]};case"HLJS_MARKUP":return{type:"HLJS_MARKUP",className:e.className,children:[]};default:return null}}},15324:(e,t,n)=>{n.d(t,{F:()=>me});var a=n(45458),r=n(80296),i=n(96540),o=n(98503),l=n(75121),c=n(19),u=n(69733),d=n(91271),s=n(67476),p=n(18677),m=n(64467),f=n(5249),g={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"NoteDeleteMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetNoteId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteNote"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPostId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPostId"}}},{kind:"Argument",name:{kind:"Name",value:"targetNoteId"},value:{kind:"Variable",name:{kind:"Name",value:"targetNoteId"}}}]}]}}]},h={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"NoteDeleteMutation_postNotes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"postId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"postId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"privateNotes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function k(e){for(var t=1;t{n.d(t,{h:()=>m});var a,r=n(96540),i=n(19228),o=n(52290),l=n(86527),c=n(33154),u=n(36557);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.d(t,{K:()=>p});var a=n(58168),r=n(80296),i=n(96540),o=n(51036),l=n(33781),c=n(24252),u=n(44402),d=function(e){return{background:e.backgroundColor,boxSizing:"border-box",border:"1px solid ".concat(e.colorTokens.border.neutral.primary.base),borderRadius:"".concat(e.borderRadius.regular,"px"),boxShadow:"0 1px 4px ".concat(e.colorTokens.border.neutral.primary.base),maxHeight:"100vh",overflowY:"auto"}},s=function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},p=function(e){var t=e.boundariesElement,n=void 0===t?"viewport":t,p=e.children,m=e.popoverRenderFn,f=e.isVisible,g=e.hide,h=e.placement,v=void 0===h?"right-start":h,k=e.referenceHeight,y=e.reference,b=(0,u.l)(),N={display:"block",height:k},S=i.useState(null),E=(0,r.A)(S,2),O=E[0],w=E[1],x=i.useState(null),T=(0,r.A)(x,2),I=T[0],P=T[1],R=i.useCallback((function(e){return w(e)}),[]),A=i.useCallback((function(e){return P(e)}),[]),D=(0,o.E)(y||O,I,{modifiers:[{name:"flip",enabled:!1},{name:"preventOverflow",options:{altAxis:!0,rootBoundary:n,padding:15}}],placement:v}),C=D.styles,M=D.attributes,L=D.update,F=i.createElement(l.i,{disableOverlay:!1,onClick:function(e){return(0,c.D)(g,e)},onKeyDown:function(e){return(0,c.x)(g,e)}},i.createElement("div",{onClick:s},i.createElement("div",(0,a.A)({ref:A,style:C.popper,className:b(d)},M.popper),i.createElement("div",null,m(L)))));return i.createElement(i.Fragment,null,y?p:i.createElement("span",{ref:R,className:b(N)},p),f?F:null)}},27399:(e,t,n)=>{n.d(t,{P:()=>y,b:()=>v});var a=n(58168),r=n(80296),i=n(96540),o=n(79766),l=n(52764),c=n(23393),u=n(52290),d=n(86527),s=n(36557),p=n(39),m=n(44402),f={border:"none",display:"block",resize:"none",width:"100%",":focus":{outline:"none"}},g=function(e){var t=e.onSubmit,n=e.onCancel,a=e.thresholdMaxChars,g=e.thresholdCharsShowIndicator,h=e.placeholderText,v=e.numTextAreaLines,k=(0,m.l)(),y=i.useState(""),b=(0,r.A)(y,2),N=b[0],S=b[1],E=i.useRef(null);i.useEffect((function(){E.current&&"function"==typeof E.current.focus&&setTimeout((function(){E.current&&E.current.focus()}))})),(0,o.c)({disabled:!N,message:"Note input not empty"});var O=function(e){var t=e.target.value;S(t)},w=(0,p.Z)({name:"detail",scale:"M",color:"DARKER"});return i.createElement(l.c,null,(function(e){return!!e&&i.createElement(u.a,null,i.createElement(u.a,{display:"flex",alignItems:"center",marginBottom:"12px"},i.createElement(u.a,{marginRight:"12px"},i.createElement(c.H8,{scale:"XS",user:e})),i.createElement(s.kZ,{scale:"M",tag:"h5",color:"DARKER",clamp:1},e&&e.name||"")),i.createElement(u.a,{marginBottom:"12px",tag:"label"},i.createElement("textarea",{ref:E,required:!0,placeholder:h,value:N,rows:v,onChange:O,className:k([w,f])}),N.length>=g&&i.createElement(u.a,{marginTop:"4px"},i.createElement(s.kZ,{scale:"XS",color:N.length>a?"ERROR":"LIGHTER"},N.length,"/",a))),i.createElement(s.kZ,{scale:"M",tag:"div"},i.createElement(u.a,{display:"flex",justifyContent:"space-between"},i.createElement(u.a,{display:"flex"},i.createElement(d.N,{disabled:0===N.length||N.length>a,linkStyle:"OBVIOUS",onClick:function(){t(N)}},"Send")),i.createElement(u.a,{display:"flex"},i.createElement(d.N,{linkStyle:"SUBTLE",onClick:n},"Cancel")))))}))},h={thresholdMaxChars:400,thresholdCharsShowIndicator:255,placeholderText:"Write a note…",numTextAreaLines:5},v=function(e){return i.createElement(g,(0,a.A)({},h,e))},k={thresholdMaxChars:200,thresholdCharsShowIndicator:133,placeholderText:"Leave a reply…",numTextAreaLines:3},y=function(e){return i.createElement(g,(0,a.A)({},k,e))}},86322:(e,t,n)=>{function a(e){e&&e.iframe&&e.height&&e.iframe.getAttribute&&"number"==typeof e.height&&o({context:"iframe.resize",height:e.height,src:e.iframe.getAttribute("src")||""})}function r(e){if(e.data&&"string"==typeof e.data){var t;try{t=JSON.parse(e.data)}catch(e){return}o(t,e.source)}}n.d(t,{u:()=>l});var i=[];function o(e,t){i.forEach((function(n){return n(e,t)}))}function l(e){return window._resizeIframe||(window._resizeIframe=a,window.addEventListener("message",r)),i.push(e),{destructor:function(){0===(i=i.filter((function(t){return e!==t}))).length&&"undefined"!=typeof window&&(window._resizeIframe=null,window.removeEventListener("message",r))}}}},64373:(e,t,n)=>{n.d(t,{q:()=>l,Y:()=>o});var a=n(45458),r=n(66496),i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CatalogMixtapeParagraph_catalog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EmbedCatalog_catalog"}}]}}].concat((0,a.A)(r.V.definitions))},o={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"MixtapeParagraph_paragraph"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Paragraph"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"mixtapeMetadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"}},{kind:"Field",name:{kind:"Name",value:"mediaResource"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mediumCatalog"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"GenericMixtapeParagraph_paragraph"}}]}}].concat((0,a.A)([{kind:"FragmentDefinition",name:{kind:"Name",value:"GenericMixtapeParagraph_paragraph"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Paragraph"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"text"}},{kind:"Field",name:{kind:"Name",value:"mixtapeMetadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"}},{kind:"Field",name:{kind:"Name",value:"thumbnailImageId"}}]}},{kind:"Field",name:{kind:"Name",value:"markups"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"start"}},{kind:"Field",name:{kind:"Name",value:"end"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"href"}}]}}]}}]))},l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CatalogMixtapeParagraphQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"catalogId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"catalogById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"catalogId"},value:{kind:"Variable",name:{kind:"Name",value:"catalogId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Catalog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CatalogMixtapeParagraph_catalog"}}]}}]}}]}}].concat((0,a.A)(i.definitions))}},45639:(e,t,n)=>{n.d(t,{i:()=>ae,_:()=>ne});var a=n(80296),r=n(36944),i=n.n(r),o=n(96540),l=n(2680),c=n(73711),u=n(64467),d=function e(t){return"string"==typeof t?t.length:t.children.reduce((function(t,n){return t+e(n)}),0)};function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e){for(var t=1;t{n.d(t,{a:()=>a});var a=n(96540).createContext({inResponseToEntityId:"",isThreadedResponsesVisible:!1,toggleThreadedResponses:function(){},showThreadedResponses:function(){},threadDepthFromRootEntity:0,threadDepthOnPage:0,hideCreateReply:function(){},toggleCreateReply:function(){},loadThreadedResponses:function(){},isThreadedResponsesQueryCalled:!1,isThreadedResponsesQueryLoading:!1,showContinueThisThreadSidebar:function(){}})},79501:(e,t,n)=>{n.d(t,{t:()=>m});var a=n(45458),r=n(64467),i=n(80296),o=n(96540),l=n(77865),c=n(91958),u=n(90383),d=n(60561);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function p(e){for(var t=1;t{n.d(t,{f4:()=>y,pB:()=>b});var a=n(80296),r=n(64467),i=n(96540),o=n(3005),l=n(72130),c=n(44402),u=n(66305),d=n(15578),s=n(78693),p=n(42396);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function f(e){for(var t=1;t40&&t(),a.current=e}),[t]);(0,i.useEffect)((function(){if(e)return n.current=window.scrollY,a.current=window.visualViewport.scale,u.R5.on("scroll",r),function(){u.R5.off("scroll",r)}}),[r,e])}(!!N,F);var j=(0,i.useCallback)((function(){x(window.innerHeight),R(window.innerWidth)}),[x,R]);(0,i.useEffect)((function(){return x(window.innerHeight),R(window.innerWidth),u.R5.on("resize",j),function(){u.R5.off("resize",j)}}),[x,R,j]);var H,_=(0,p.x)((function(){N?F():(L(),S(!0))}),[L,S,N,F]);return i.createElement(i.Fragment,null,i.createElement(k.Provider,{value:N},i.createElement("div",{onClick:_,onKeyDown:_,role:"button",tabIndex:0,ref:M,className:A(N?v(w,P,n,r,C,d,m):(H=N,f(f({},g),{},{cursor:"zoom-in",position:"relative",zIndex:null===H?"auto":s.Ay.floating,width:"100%",":focus":{transform:"scale(1.01)"}}))),onTransitionEnd:function(){N||S(null)}},t),i.createElement(o.l,{shouldTrapFocus:!1,padding:0,withPageScroll:!0,isVisible:!!N,hide:F,withCloseButton:!1},i.createElement(i.Fragment,null))))}},89796:(e,t,n)=>{n.d(t,{u:()=>a});var a=function(){return{position:"absolute",top:0,left:0,height:"100%",width:"100%"}}},48619:(e,t,n)=>{n.d(t,{A9:()=>m,DX:()=>h,GP:()=>k,Hi:()=>c,M6:()=>d,SG:()=>E,Zl:()=>S,gf:()=>b,iY:()=>u,kw:()=>s,l7:()=>f,mb:()=>v,o8:()=>w,op:()=>N,pu:()=>O,rs:()=>g,u$:()=>y,xo:()=>p});var a=n(80296),r=n(64467),i=n(9459);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;return function(t){return{marginTop:(0,i.Fv)((function(e){var t=(0,a.A)(e,1)[0];return"".concat(t,"px")}),e)}}}},42396:(e,t,n)=>{n.d(t,{x:()=>r});var a=n(96540),r=function(e,t){return a.useCallback((function(t){"key"in t&&"Enter"!==t.key&&" "!==t.key||("key"in t&&" "===t.key&&t.preventDefault(),e(t))}),t)}},60561:(e,t,n)=>{n.d(t,{E2:()=>o,Vw:()=>r,ky:()=>l});var a=n(90383),r=2400,i=1e3,o=700,l=function(e){var t=e.layout,n=e.originalWidth,l=e.originalHeight,c=e.sequenceAspectRatio,u=e.richTextStyle,d=a.qY.Resample,s=l&&n?l/n:null,p=n;switch(t){case"CROPPED_HEIGHT_PREVIEW":p=o,s=.3,d=a.qY.Crop;break;case"CONSTRAINED_HEIGHT_PREVIEW":p=o,s&&240/s{n.d(t,{Oi:()=>f,H8:()=>m,Wd:()=>p});var a,r=n(64467),i=n(88055),o=n.n(i);!function(e){e[e.HIGHLIGHT=0]="HIGHLIGHT",e[e.RESPONSE=1]="RESPONSE"}(a||(a={}));var l,c=n(42976);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function d(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=new Array(t);nt&&(a=a.substring(0,l+t)+"…"),i>t){var u=i-t;a="…"+a.substring(u),r=u-1}n.text=a,n.type=c.FU.P,n.markups.unshift({end:l,start:i,type:c.Fi.HIGHLIGHT});var d,p=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(n.markups);try{for(p.s();!(d=p.n()).done;){var m=d.value;m.start-=r,m.end-=r}}catch(e){p.e(e)}finally{p.f()}return n},f=function(e){if(1!==e.paragraphs.length)return null;var t=e.paragraphs[0].text||"",n=e.startOffset||0,a=e.endOffset||t.length,r=t.slice(n,a);return r.length>=185&&(r=r.substring(0,185)+"..."),d(d({},e.paragraphs[0]),{},{text:r,type:c.FU.P,markups:[{end:r.length,start:0,type:c.Fi.HIGHLIGHT,anchorType:null,href:null,linkMetadata:null,userId:null}],hasDropCap:null,dropCapImage:null,codeBlockMetadata:null})}},49728:(e,t,n)=>{n.d(t,{GG:()=>f,Vg:()=>m,Vs:()=>p,em:()=>s,zH:()=>d});var a=n(64467),r=n(79480),i=n(42976),o=n(48619);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3],l=e.paragraphs,c="SERIES"===n?function(e,t){var n=e.paragraphs,a=e.sections,r=o.M6,i=o.DX,l=o.GP,c=-1;return n.map((function(e,n){var u=a[c+1];if(u&&u.startIndex===n)return c++,o.Hi;var d=t[n],s=t[n-1];if("PQ"===s&&"PQ"!==d)return l;switch(d){case"BQ":return"BQ"===s?r:i;case"OLI":return"OLI"===s?r:i;case"ULI":return"ULI"===s?r:i;case"PQ":return"PQ"===s?i:l}return i}))}(e,t):function(e,t,n){var a=e.paragraphs,i=e.sections,l="number"==typeof(0,r.z)(a).titleIndex,c=f(n),u=c?o.gf:o.M6,d=c?o.Zl:o.DX,s=c?o.SG:o.GP,p=-1;return a.map((function(e,n){var r=t[n],m=t[n-1],f=e.layout,g=a[n-1]&&a[n-1].layout,h=i[p+1];if(h&&h.startIndex===n){if(p++,("IMG"===r||"IFRAME"===r)&&!c){if("OUTSET_LEFT"===f)return o.pu;if("INSET_LEFT"===f)return o.Hi;if(0===n)return"FULL_WIDTH"===f?l?o.Hi:o.M6:o.xo}return"Title"===r?o.rs:d}if("PQ"===m)return r===m?d:c?o.SG:o.mb;switch(r){case"Title":switch(m){case"Kicker":return o.kw;case"IMG":return o.A9;default:return d}case"Kicker":return"IMG"===m?o.l7:d;case"Subtitle":return"Title"===m?u:d;case"P":switch(m){case"H1":case"H2":case"H3":case"H4":return u;default:return d}case"H1":case"H2":case"H3":return s;case"OLI":switch(m){case"H1":case"H2":case"H3":case"H4":return u;case"OLI":return o.u$;default:return d}case"ULI":switch(m){case"H1":case"H2":case"H3":case"H4":return u;case"ULI":return o.u$;default:return d}case"IMG":case"IFRAME":switch(m){case"IMG":case"IFRAME":switch(g){case"OUTSET_LEFT":case"INSET_LEFT":return o.Hi;case"OUTSET_CENTER":switch(f){case"OUTSET_CENTER":case"OUTSET_ROW":return o.Hi;case"FULL_WIDTH":return s;default:return d}case"OUTSET_ROW_CONTINUE":switch(f){case"OUTSET_CENTER":case"OUTSET_ROW":return o.Hi;default:return d}case"INSET_CENTER":switch(f){case"INSET_LEFT":return o.Hi;case"OUTSET_LEFT":return o.iY;case"FULL_WIDTH":return s;default:return d}case"FULL_WIDTH":return"FULL_WIDTH"===f?o.Hi:s;default:return d}case"Title":return o.xo;default:return d}case"PRE":return"PRE"===m?o.op:d;case"PQ":switch(m){case"H1":case"H2":case"H3":case"H4":case"P":return d;default:return s}case"MIXTAPE_EMBED":return u}return d}))}(e,t,n),u=function(e,t,n){var a=e.paragraphs;return a.map((function(e,r){var i=t[r],o=t[r-1];if(0===r&&!n)return 24;switch(i){case"Title":switch(o){case"Kicker":return 8;case"IMG":return a[r-1].text?48:32;default:return n?48:24}case"Subtitle":return"Title"===o?18:24;case"P":switch(o){case"Title":return 30;case"Subtitle":return 23;case"H1":case"H2":return 14;case"H3":return 13;case"H4":return 11;case"P":return 42;case"BQ":return 40;case"PQ":return 35;case"IMG":return 32;case"MIXTAPE_EMBED":return 48;default:return}case"H1":case"H2":case"H3":return"P"===o?40:void 0;case"H4":return"P"===o?36:void 0;case"IMG":case"IFRAME":return"Subtitle"===o?31:void 0;case"BQ":return"P"===o?24:void 0;case"PQ":return"P"===o?32:void 0;case"MIXTAPE_EMBED":return"P"===o?40:void 0}}))}(e,t,i),d=[],s=0;s{n.d(t,{M:()=>o,e:()=>l});var a=n(45458),r=new Set(["http:","https:"]),i=new Set([].concat((0,a.A)(r),["mailto:"])),o=function(e){try{var t=new URL(e,"http://example.com");return i.has(t.protocol)}catch(e){return!1}},l=function(e){try{var t=new URL(e,"http://example.com");return r.has(t.protocol)}catch(e){return!1}}}}]); //# sourceMappingURL=https://stats.medium.build/lite/sourcemaps/6546.cd03f950.chunk.js.map