PageSourceSearch

https://seekingalpha.com/samw/static/js/c.20956.e9fe4e396.js

js seekingalpha.com collected 2026-09-24 07:15:56 UTC 26,099 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunksamw=globalThis.webpackChunksamw||[]).push([[20956],{559919(e,t,n){n.d(t,{h:()=>F});var i=n(205544),o=n(243375),a=n(618831),r=n(511341),s=n(296540),l=n(856103),c=n(928145),u=n(195304),d=n(221170),p=n(658700),h=n(9753),v=n(514977),m=n(839149),g=n(864295),b=n(203189),f=n(2179),y=n(731501),k=n(634164),x=n(218634),w=n(474848);const C=e=>(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-hidden":"true",...e,children:(0,w.jsx)("path",{d:"M5.5 12.792q.291-.146.594-.22.302-.072.656-.072H7v-9h-.25q-.52 0-.885.365a1.2 1.2 0 0 0-.365.885zm3-.292h6v-9h-6zM6.75 18a2.65 2.65 0 0 1-1.945-.805A2.65 2.65 0 0 1 4 15.25V4.77q0-1.147.805-1.959A2.64 2.64 0 0 1 6.75 2h7.75q.619 0 1.06.44.44.442.44 1.06v9.896a.66.66 0 0 1-.146.417.96.96 0 0 1-.396.291q-.334.146-.52.459a1.3 1.3 0 0 0-.188.687q0 .375.198.688t.49.437q.27.105.416.313a.8.8 0 0 1 .146.479.9.9 0 0 1-.198.583.64.64 0 0 1-.531.25zm0-1.5h6.792a3 3 0 0 1-.22-.583 2.7 2.7 0 0 1-.072-.652q0-.339.083-.656t.23-.609H6.75q-.542 0-.896.365a1.22 1.22 0 0 0-.354.885q0 .542.354.896t.896.354"})}),P=e=>{let t=e.seconds,n=e.rootClassName,i=e.onClick;return(0,w.jsx)("div",{className:"fixed bottom-36 right-0 z-fixed",children:(0,w.jsx)(x.m,{message:{id:"P5naV1"},placement:"right",type:"info",children:(0,w.jsxs)("button",{className:(0,k.$)(n,"o0io6","ml-10 h-52 rounded-l-12 border border-r-0 border-black-10 bg-share-card-bg px-12 py-16 shadow dark:border-black-30/40"),type:"button",onClick:i,children:[t,(0,w.jsx)(C,{className:"size-20 fill-share-text-3"})]})})})};var _=n(42744),E=n(427443),j=n(307976),S=n(385929);const N="premium_how_to_videos",z=e=>{let t=e.page;S.c.trackEvent({action:"manual_stop",source:N,type:`in_context_videos:${t}`})};var R=n(285917),A=n(508129);const M=e=>(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none","aria-hidden":"true",...e,children:(0,w.jsx)("path",{fill:"currentColor",d:"M3.5 16q-.62 0-1.06-.44A1.45 1.45 0 0 1 2 14.5v-4.25q0-.319.214-.534a.72.72 0 0 1 .532-.216q.316 0 .535.216a.72.72 0 0 1 .219.534v4.25h13v-9h-6.25a.73.73 0 0 1-.534-.214.72.72 0 0 1-.216-.532q0-.316.216-.535A.72.72 0 0 1 10.25 4h6.25q.62 0 1.06.44.44.442.44 1.06v9.006q0 .62-.44 1.056A1.45 1.45 0 0 1 16.5 16zm9-4.437 1.417 1.416q.229.23.53.219a.77.77 0 0 0 .532-.24.733.733 0 0 0 0-1.062L13.563 10.5h.687q.3
119 0 .534-.214A.72.72 0 0 0 15 9.754a.73.73 0 0 0-.216-.535A.72.72 0 0 0 14.25 9h-2.5a.73.73 0 0 0-.534.216.73.73 0 0 0-.216.534v2.5q0 .319.214.534a.72.72 0 0 0 .532.216q.316 0 .535-.216a.72.72 0 0 0 .219-.534zM2.75 8a.73.73 0 0 1-.534-.216A.73.73 0 0 1 2 7.25v-2.5q0-.319.216-.534A.73.73 0 0 1 2.75 4h4.5q.319 0 .534.216A.73.73 0 0 1 8 4.75v2.5q0 .319-.216.534A.73.73 0 0 1 7.25 8z"})}),$=e=>(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-hidden":"true",...e,children:(0,w.jsx)("path",{d:"M4.756 10.75a.74.74 0 0 1-.537-.214.7.7 0 0 1-.219-.532q0-.316.215-.535a.72.72 0 0 1 .535-.219h10.494q.318 0 .537.214t.219.532-.215.535a.72.72 0 0 1-.535.219z"})});var q="g0j6r";const T=e=>{let t=e.widgetDimensions,n=e.shouldShowWidget,i=e.isPlayerLoaded,o=e.isDismissing,a=e.title,r=e.videoElementRef,s=e.onOpenFullScreen,l=e.onCloseWidget,c=e.onButtonClick,u=e.onMinimize,d=e.videoSrc;const p=(0,R.uB)()._;return(0,w.jsxs)("div",{className:(0,k.$)(q,"relative select-none overflow-hidden bg-black-80 transition-opacity duration-300 ease-in-out",n?"opacity-100":"opacity-0"),style:{width:`${n?t.width:0}px`,height:`${n?t.height:0}px`},children:[(0,w.jsx)("div",{className:"absolute inset-x-0 top-0",style:{bottom:"52px"},children:(0,w.jsx)("div",{className:(0,k.$)("size-full transition-opacity duration-300 ease-in-out",i?"opacity-100":"opacity-0"),children:d&&r?(0,w.jsx)("iframe",{allowFullScreen:!0,allow:"autoplay; fullscreen; picture-in-picture",height:"100%",ref:r,src:d,title:"video-widget",width:"100%"}):null})}),(0,w.jsxs)("div",{className:"absolute inset-x-0 bottom-0 box-border flex items-center justify-between bg-white px-20 py-0 dark:bg-black-95",style:{height:"52px"},children:[(0,w.jsx)("div",{className:"mr-12 truncate text-large-b text-black dark:text-white",children:a}),(0,w.jsxs)("div",{className:"flex items-center gap-12",children:[(0,w.jsx)("button",{className:"flex cursor-pointer items-center justify-center",title:p({id:"Alx2_L"}),type:"button",onClick:e=>c(e,s),onPointerDown:e=>e.stopPropagation(),children:(0,w.jsx)(M,{className:"size-20 text-black-50 dark:text-black-30"})}),(0,w.jsx)("button",{className:"flex cursor-pointer items-center justify-center",title:p({id:"bs-uxz"}),type:"button",onClick:e=>c(e,u),onPointerDown:e=>e.stopPropagation(),children:(0,w.jsx)($,{className:"size-20 fill-black-50 dark:fill-black-30"})}),(0,w.jsx)("button",{className:"flex cursor-pointer items-center justify-center p-4",disabled:o,title:p({id:"R005og"}),type:"button",onClick:e=>c(e,l),onPointerDown:e=>e.stopPropagation(),children:(0,w.jsx)(A.A,{className:"size-12 text-black-50 dark:text-black-30"})})]})]})]})},D=e=>{let t=e.position,n=e.isMinimized,i=e.children;const a=(0,s.useRef)(null),r=(0,o.PM)({id:"video-widget"}),l=r.attributes,c=r.listeners,u=r.setNodeRef,d=r.transform,p=r.isDragging,h={left:Math.round(d?t.xCoordinate+d.x:t.xCoordinate),top:Math.round(d?t.yCoordinate+d.y:t.yCoordinate),zIndex:1050+(p?10:0)},v={...c,onPointerDown:e=>{var t;e.currentTarget.setPointerCapture(e.pointerId),null==c||null===(t=c.onPointerDown)||void 0===t||t.call(c,e)},onPointerUp:e=>{var t;e.currentTarget.releasePointerCapture(e.pointerId),null==c||null===(t=c.onPointerUp)||void 0===t||t.call(c,e)}},m=(0,s.useCallback)(e=>{a.current=e,u(e)},[u]);return(0,s.useEffect)(()=>{const e=a.current;if(!e)return;const t=e=>{e.preventDefault()},n=e=>{e.preventDefault()};return e.addEventListener("selectstart",t),e.addEventListener("dragstart",n),()=>{e.removeEventListener("selectstart",t),e.removeEventListener("dragstart",n)}},[]),(0,w.jsx)("div",{className:(0,k.$)("pointer-events-auto fixed touch-none select-none rounded-16 border border-solid border-black-10 dark:border-black-30/40",p?"cursor-grabbing":"cursor-grab",p?"will-change-transform":"will-change-auto",n&&"pointer-events-none h-0 border-0 opacity-0"),ref:m,style:h,...v,...l,children:i})};n(269112),n(533110),n(962953),n(803296),n(527208),n(548408),n(814603),n(147566),n(198721);var I=n(603),L=n(251301);const W="how_to_video_position",V=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,L.C3)()?{width:200,height:110}:e&&(0,L.Xb)()?{width:400,height:220}:{width:400,height:272}},H=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=V(t),i=n.width,o=n.height;let a=36;(0,L.C3)()?a=18:t&&(0,L.Xb)()&&(a=20);const r=e?a+72:a,s=Math.max(a,(0,u.zk)().innerWidth-i-a),l=Math.max(a,(0,u.zk)().innerHeight-o-r);return{xCoordinate:Number.isNaN(s)?100:s,yCoordinate:Number.isNaN(l)?100:l}},O=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=V(n),o=i.width,a=i.height;let r=36;(0,L.C3)()?r=18:n&&(0,L.Xb)()&&(r=20);const s=t?r+72:r,l=Math.max(r,Math.min((0,u.zk)().innerWidth-o-r,e.xCoordinate)),c=Math.max(r,Math.min((0,u.zk)().innerHeight-a-s,e.yCoordinate));return{xCoordinate:Number.isNaN(l)?100:l,yCoordinate:Number.isNaN(c)?100:c}},U=e=>{I.E.setItem(W,JSON.stringify(e))},Y=e=>(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none","aria-hidden":"true",...e,children:(0,w.jsx)("path",{fill:"#fff",d:"M5.25 12.5h7.494a.74.74 0 0 0 .537-.215.72.72 0 0 0 .219-.534V7.256a.74.74 0 0 0-.215-.537.72.72 0 0 0-.534-.219H5.256a.74.74 0 0 0-.537.215.72.72 0 0 0-.219.534v4.495q0 .318.215.537a.72.72 0 0 0 .534.219M3.5 16q-.62 0-1.06-.44A1.45 1.45 0 0 1 2 14.5V5.493q0-.62.44-1.056A1.45 1.45 0 0 1 3.5 4h13q.62 0 1.06.44.44.442.44 
11.06v9.006q0 .62-.44 1.056A1.45 1.45 0 0 1 16.5 16zm0-1.5h13v-9h-13z"})}),B=e=>{let t=e.widgetDimensions,n=e.shouldShowWidget,i=e.isPlaying,o=e.isControlsVisible,a=e.isDismissing,r=e.videoElementRef,s=e.onShowControls,l=e.onOpenFullScreen,c=e.onCloseWidget,u=e.onPlayPause,d=e.onButtonClick;const p=(e=>{if(!e)return e;const t=new URL(e);return t.searchParams.set("controls","0"),t.searchParams.set("keyboard","0"),t.searchParams.set("pip","0"),t.href})(e.videoSrc);return(0,w.jsx)("div",{className:(0,k.$)(q,"pointer-events-none relative overflow-hidden bg-black-80 transition-opacity duration-300 ease-in-out",n?"opacity-100":"hidden opacity-0"),style:{width:`${t.width}px`,height:`${t.height}px`},children:(0,w.jsxs)("div",{className:(0,k.$)("pointer-events-none relative size-full overflow-hidden",i&&!o?"cursor-none":"cursor-default"),children:[(0,w.jsx)("div",{className:"pointer-events-none absolute size-full",ref:r}),p&&r?(0,w.jsx)("iframe",{allowFullScreen:!0,allow:"autoplay; fullscreen; picture-in-picture",className:"pointer-events-none absolute size-full",frameBorder:"0",height:"100%",ref:r,src:p,title:"mobile-video-widget",width:"100%"}):null,(0,w.jsx)("div",{className:(0,k.$)("pointer-events-none absolute inset-0",o?"bg-black/40":"bg-transparent")}),!o&&(0,w.jsx)("div",{className:"pointer-events-auto absolute inset-0",onClick:e=>{e.stopPropagation(),s()},onPointerDown:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation()}),(0,w.jsxs)("div",{className:(0,k.$)("ease absolute inset-x-0 top-8 flex items-center justify-between px-8 py-0 transition-opacity duration-300",o?"pointer-events-auto":"pointer-events-none",o?"opacity-100":"opacity-0"),children:[(0,w.jsx)("button",{className:"flex size-24 cursor-pointer items-center justify-center",type:"button",onClick:e=>{d(e,l)},onPointerDown:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),children:(0,w.jsx)(Y,{className:"size-20"})}),(0,w.jsx)("button",{className:"flex size-24 cursor-pointer items-center justify-center",disabled:a,type:"button",onClick:e=>{d(e,c)},onPointerDown:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),children:(0,w.jsx)(A.A,{className:"size-12 text-white"})})]}),(0,w.jsx)("div",{className:(0,k.$)("ease absolute left-1/2 -translate-x-1/2 -translate-y-1/2 transition-opacity duration-300","uSYcK",o?"pointer-events-auto":"pointer-events-none",o?"opacity-100":"opacity-0"),children:(0,w.jsx)("button",{className:(0,k.$)("flex size-28 cursor-pointer items-center justify-center rounded-full",o?"bg-white/90":"bg-black/70"),type:"button",onClick:e=>{d(e,u)},onPointerDown:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),children:i?(0,w.jsxs)("div",{className:"flex size-12 items-center justify-center gap-2",children:[(0,w.jsx)("div",{className:(0,k.$)("h-12 w-2",o?"bg-black":"bg-white")}),(0,w.jsx)("div",{className:(0,k.$)("h-12 w-2",o?"bg-black":"bg-white")})]}):(0,w.jsx)("div",{className:(0,k.$)("size-0 border-y-transparent","iFxRT",o?"border-l-black":"border-l-white")})})})]})})},F=e=>{let t=e.title,n=e.videoSrc,k=e.onClose,x=e.dismissibleId,C=e.biPageType,R=e.videoHubSrc;const A=(0,s.useState)(!1),M=(0,i.A)(A,2),$=M[0],q=M[1],Y=(0,c.$)().showPlayer,F=(0,E.G)().isMdScreen,X=(0,p.Zp)(),G=(0,L.Xb)(),J=F,Q=V(J),Z=(0,d.U)().modals,K=(0,s.useRef)(null),ee=(0,s.useState)(!1),te=(0,i.A)(ee,2),ne=te[0],ie=te[1],oe=(0,s.useState)(!1),ae=(0,i.A)(oe,2),re=ae[0],se=ae[1],le=(0,s.useState)(!0),ce=(0,i.A)(le,2),ue=ce[0],de=ce[1],pe=(0,s.useRef)(!1),he=(0,s.useRef)(!1),ve=(0,s.useRef)(!1),me=(0,s.useRef)(!1),ge=(0,s.useRef)(0),be=(0,s.useRef)(!0),fe=(0,s.useRef)(!0),ye=(0,m.l)(),ke=ye.width,xe=ye.height,we=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;const o="widget_previous_page",a=(0,s.useState)(()=>localStorage.getItem(o)||void 0),r=(0,i.A)(a,2),l=r[0],c=r[1],d=(0,s.useRef)(!1),p=(0,s.useState)(()=>function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=I.E.getItem(W);if(n){const i=JSON.parse(n);return O(i,e,t)}return H(e,t)}
1(e,t)),v=(0,i.A)(p,2),m=v[0],g=v[1],b=(0,s.useState)(()=>{var e;return(null===(e=screen.orientation)||void 0===e?void 0:e.type)||"unknown"}),f=(0,i.A)(b,2),y=f[0],k=f[1],x=(0,s.useCallback)(()=>{if(!j.I.isWrapper)return;d.current=!0;const n=H(e,t),i=O(n,e,t);g(i),U(i),d.current=!1},[e,t]);return(0,h.x)({handleHidden:x}),(0,s.useEffect)(()=>{d.current||g(n=>{const i=O(n,e,t);return i.xCoordinate!==n.xCoordinate||i.yCoordinate!==n.yCoordinate?i:n})},[e,t]),(0,s.useEffect)(()=>{if(n&&l&&n!==l){d.current=!0;const i=H(e,t),a=O(i,e,t);g(a),U(a),c(n),localStorage.setItem(o,n),d.current=!1}else n&&!l&&(c(n),localStorage.setItem(o,n))},[n,l,e,t]),(0,s.useEffect)(()=>{const n=()=>{g(()=>{var n;const i=(null===(n=screen.orientation)||void 0===n?void 0:n.type)||"unknown";let o;((0,u.zk)().innerWidth<=768||t)&&i!==y&&"unknown"!==y?(o=H(e,t),k(i)):o=H(e,t);const a=O(o,e,t);return U(a),a})},i=()=>{var e;const t=(null===(e=screen.orientation)||void 0===e?void 0:e.type)||"unknown";k(()=>t),setTimeout(()=>{n()},200)};return(0,u.zk)().addEventListener("resize",n),(0,u.zk)().addEventListener("orientationchange",i),screen.orientation&&screen.orientation.addEventListener("change",i),()=>{(0,u.zk)().removeEventListener("resize",n),(0,u.zk)().removeEventListener("orientationchange",i),screen.orientation&&screen.orientation.removeEventListener("change",i)}},[e,y,t]),{position:m,updatePosition:(0,s.useCallback)(n=>{const i=O(n,e,t);return g(i),U(i),i},[e,t])}}(Y,J,C),Ce=we.position,Pe=we.updatePosition,_e=(0,y.m)(),Ee=_e.isDismissing,je=_e.dismissWithLocalUpdate,Se=(0,l.z)(),Ne=Se.pause,ze=Se.addListener,Re=(0,o.MS)(o.cA,{activationConstraint:{distance:8}}),Ae=(0,o.MS)(o.IG,{activationConstraint:{delay:100,tolerance:8}}),Me=(0,o.FR)(Re,Ae);(0,f.P)(K),(0,s.useEffect)(()=>{(e=>{let t=e.page,n=e.typePrefix;S.c.trackEvent({action:"shown",source:N,type:`${n}:${t}`})})({page:C,typePrefix:ue?"book_icon":"in_context_videos"})},[C,ue]);const $e=(0,b.R)({videoRef:K}),qe=$e.listenToEvent,Te=$e.emitVimeoEvent,De=(0,s.useCallback)(()=>{G&&(Te({method:"setMuted",value:!1}),Te({method:"setVolume",value:1})),Te({method:"play"}),se(!0),me.current=!0,Ne()},[Te,G,Ne]),Ie=(0,s.useCallback)(()=>{Te({method:"pause"}),se(!1),me.current=!1},[Te]),Le=(0,s.useCallback)(()=>{ne&&(re?Ie():De())},[ne,re,Ie,De]),We=(0,s.useCallback)(()=>{ie(!0),Te({method:"setMuted",value:!0}),Te({method:"setVolume",value:0}),["play","pause","ended"].forEach(e=>{qe(e)})},[Te,qe]),Ve=(0,s.useCallback)(()=>{Ne(),(e=>{let t=e.page;S.c.trackEvent({action:"manual_play",source:N,type:`in_context_videos:${t}`})})({page:C}),se(!0),me.current=!0},[Ne,C]),He=(0,s.useCallback)(e=>{var t;if(se(!1),me.current=!1,!pe.current&&!he.current)if(null!=e&&e.data&&void 0!==(null===(t=e.data)||void 0===t?void 0:t.percent)){const t=e.data.percent;0!==t&&1!==t&&z({page:C})}else z({page:C});pe.current=!1,he.current=!1},[C]),Oe=(0,s.useCallback)(()=>{se(!1),me.current=!1,(e=>{let t=e.page;S.c.trackEvent({action:"played_to_end",source:N,type:`in_context_videos:${t}`})})({page:C}),pe.current=!1,he.current=!1},[C]),Ue=(0,s.useCallback)(e=>{var t;if(!ue&&null!=e&&e.data&&void 0!==(null===(t=e.data)||void 0===t?void 0:t.muted)){if(be.current===e.data.muted)return;be.current=e.data.muted;const t=e.data.muted?"mute":"unmute";(e=>{let t=e.page,n=e.action;S.c.trackEvent({action:n,source:N,type:`in_context_videos:${t}`})})({page:C,action:t})}},[C,ue]),Ye=(0,s.useCallback)(e=>{var t;if(!ue&&null!=e&&e.data&&void 0!==(null===(t=e.data)||void 0===t?void 0:t.kind)){const t="string"==typeof e.data.kind;if(fe.current===t)return;fe.current=t;const n=fe.current?"enable":"disable";(e=>{let t=e.page,n=e.action;S.c.trackEvent({action:n,source:N,type:`in_context_videos:${t}:closed_captions`})})({page:C,action:n})}},[C,ue]),Be=(0,s.useCallback)(e=>{switch(e.event){case"play":Ve();break;case"pause":He(e);break;case"ended":Oe();break;case"volumechange":Ue(e);break;case"texttrackchange":Ye(e)}},[Ve,He,Oe,Ue,Ye]),Fe=(0,s.useCallback)(()=>{j.I.isWrapper&&re&&Ie()},[re,Ie]);(0,g.I)({videoRef:K,onReady:We,onEvent:Be}),(0,h.x)({handleHidden:Fe}),(0,s.useEffect)(()=>{Z.length>0&&j.I.isWrapper?me.current&&(ve.current=!0,he.current=!0,Ie()):ve.current=!1},[Z.length,Ie,ne]),(0,s.useEffect)(()=>{const e=()=>{re&&(pe.current=!0,Ie())};return["play","playing","start","audio-play"].forEach(t=>{ze(t,e)}),()=>{pe.current=!1}},[ze,re,Ie]);const Xe=(0,s.useRef)(()=>{re&&(pe.current=!0,Ie())});(0,s.useEffect)(()=>{Xe.current=()=>{re&&(pe.current=!0,Ie())}},[re,Ie]),(0,s.useEffect)(()=>{const e=()=>{Xe.current()};ze("play",e),ze("playing",e)},[ze]);const Ge=(e=>
1{const t=(0,s.useState)(!0),n=(0,i.A)(t,2),o=n[0],a=n[1],r=(0,s.useRef)(null),l=(0,s.useCallback)(()=>{a(!0),r.current&&clearTimeout(r.current),e&&(r.current=setTimeout(()=>a(!1),1e3))},[e]);return(0,s.useEffect)(()=>{e?(r.current&&clearTimeout(r.current),r.current=setTimeout(()=>a(!1),1e3)):(a(!0),r.current&&clearTimeout(r.current))},[e]),(0,s.useEffect)(()=>()=>{r.current&&clearTimeout(r.current)},[]),{isControlsVisible:o,showControls:l}})(re),Je=Ge.isControlsVisible,Qe=Ge.showControls,Ze=(0,s.useCallback)(()=>{(e=>{let t=e.page;S.c.trackEvent({action:"minimize",source:N,type:`in_context_videos:${t}`})})({page:C}),re&&Ie(),de(!0)},[C,re,Ie]),Ke=(0,s.useCallback)(()=>{(e=>{let t=e.page;S.c.trackEvent({action:"click",source:N,type:`book_icon:${t}`})})({page:C}),de(!1),G||(0===ge.current&&De(),ge.current=ge.current+1)},[C,G,De]),et=(0,s.useCallback)(e=>{if(e.delta){if(Ce.xCoordinate+e.delta.x+Q.width/2>ke)return void Ze();const t={xCoordinate:Math.round(Ce.xCoordinate+e.delta.x),yCoordinate:Math.round(Ce.yCoordinate+e.delta.y)},n=(e=>{let t=e.position,n=e.screenHeight,i=e.screenWidth,o=e.widgetDimensions;const a=t.xCoordinate,r=t.yCoordinate,s=t.xCoordinate+o.width;return`${r<n-(t.yCoordinate+o.height)?"top":"bottom"}_${a<i-s?"left":"right"}`})({position:Pe(t),screenHeight:xe,screenWidth:ke,widgetDimensions:Q});(e=>{let t=e.page,n=e.videoPosition;S.c.trackEvent({action:"position_change",source:N,type:`in_context_videos:${t}`,data:{video_position:n}})})({page:C,videoPosition:n})}},[Ce,Q,ke,Pe,xe,C,Ze]),tt=(0,s.useCallback)(()=>{null==k||k(),(e=>{let t=e.page;S.c.trackEvent({action:"dismiss",source:N,type:`in_context_videos:${t}`})})({page:C}),x&&!Ee&&je(x,v.v.TYPE)},[x,Ee,je,k,C]),nt=(0,s.useCallback)(()=>{if((e=>{let t=e.page;S.c.trackEvent({action:"expand",source:N,type:`in_context_videos:${t}`})})({page:C}),re&&Ie(),R)if(j.I.isWrapper)X(R);else{const e=`${(0,u.zk)().location.origin}${R}`;(0,u.zk)().open(e,"_blank","noopener,noreferrer")}},[R,C,re,Ie,X]),it=(0,s.useCallback)((e,t)=>{e.stopPropagation(),e.preventDefault(),t()},[]);(0,s.useEffect)(()=>{const e=setTimeout(()=>{q(!0)},50);return()=>clearTimeout(e)},[]);const ot={widgetDimensions:Q,shouldShowWidget:!ue&&$,isDismissing:Ee,videoElementRef:K,onOpenFullScreen:nt,onCloseWidget:tt,onButtonClick:it,videoSrc:G?n:(0,r.a)(n,{texttrack:"en"})},at={...ot,isPlaying:re,isControlsVisible:Je,onShowControls:Qe,onPlayPause:Le},rt={...ot,isPlayerLoaded:ne,title:t,onPlayPause:Le,onMinimize:Ze};return(0,w.jsxs)(_.Z,{children:[ue?(0,w.jsx)(P,{onClick:Ke}):null,(0,w.jsx)(o.Mp,{autoScroll:!1,...!G&&{modifiers:[a.Q_]},sensors:Me,onDragEnd:et,children:(0,w.jsx)(D,{isMinimized:ue,position:Ce,children:G?(0,w.jsx)(B,{...at}):(0,w.jsx)(T,{...rt})})})]})}},514977(e,t,n){n.d(t,["v",0,{TYPE:"inContextVideo",PAGES:{HOME:"-11",SYMBOL:"-12",PORTFOLIO:"-13",SCREENERS:"-14"}}])},235554(e,t,n){n.d(t,{E:()=>v});var i=n(205544),o=(n(218111),n(720116),n(962953),n(548408),n(814603),n(147566),n(198721),n(25560)),a=n(47402),r=n(296540),s=n(317876),l=n(308879);const c=l.Ikc({page_url:l.YjP(),video_url:l.YjP(),start_at:l.aig(),title:l.YjP(),video_hub_url:l.YjP()}),u=l.Ikc({base_url:l.YjP()});var d=n(129042),p=n(658700),h=n(514977);const v=e=>{let t=e.baseUrl,n=e.enabled,l=void 0===n||n,v=e.dismissibleId;const m=(0,d.I)(),g=m.dismissibles,b=m.isInPaidTrial,f=m.isPremiumSubscriber,y=m.isNewProUser,k=m.showCreatePortfolioPopup,x=m.showCustomizeHpPopup,w=(0,r.useState)(null),C=(0,i.A)(w,2),P=C[0],_=C[1],E=(0,r.useState)(!1),j=(0,i.A)(E,2),S=j[0],N=j[1],z=(0,r.useState)(null),R=(0,i.A)(z,2),A=R[0],M=R[1],$=(0,p.zy)().search,q=(0,r.useMemo)(()=>"true"===new URLSearchParams($).get("hideVideo"),[$]),T=(0,r.useMemo)(()=>{const e=(b&&f||y&&f)&&l,t=((e,t)=>{if(null==e||!e.length)return!0;const n=e.find(e=>String(e.dismissibleId)===t&&e.dismissibleType===h.v.TYPE);if(null==n||!n.createdAt)return!0;if((null==n?void 0:n.updatedAt)!==(null==n?void 0:n.createdAt))return!1;const i=new Date(n.createdAt),r=(0,o.f)(i,2),s=new Date;return(0,a.d)(s,r)})(g,v);return{shouldShowData:e&&!q&&t&&!k&&!x}},[b,f,y,l,g,v,q,k,x]);return(0,r.useEffect)(()=>
1{if(!T.shouldShowData)return _(null),M(null),void N(!1);(async()=>{try{N(!0),M(null);const e=await(async e=>{let t=e.baseUrl;return(await s.W.get("in_context_videos",{query:{base_url:t},schema:{query:u,response:c}})).body})({baseUrl:t});_(e)}catch(e){M(e),_(null)}finally{N(!1)}})()},[t,T.shouldShowData]),{data:P,isLoading:S,error:A}}},301825(e,t,n){n.d(t,{D:()=>l});var i=n(296540),o=n(385929),a=n(924777),r=n(241199),s=n(295257);const l=e=>{let t=e.videoRef,n=e.playerSettings;return(0,i.useCallback)((e,i)=>{if(!t.current||!n.current)return;const l=n.current.isPip;var c;o.c.trackEvent({type:"video",source:(0,a.ju)(),action:e,data:{provider:String("VimeoPlayer"),video_id:(c=t.current.src,(0,r.$)((0,s.H)(c.split("/")).split("?"))),video_unit:l?"pip":"in_stream",...i}})},[n,t])}},559682(e,t,n){n(517642),n(658004),n(733853),n(845876),n(432475),n(515024),n(731698),n(962953);var i=n(635277),o=n(296540),a=n(293259),r=n(366483),s=n(301825),l=n(438624);n.d(t,["k",0,e=>{let t=e.videoRef,n=e.playerSettings,c=e.isPlayerReady,u=e.disableCompleteProgressTrackerStep;const d=(0,s.D)({videoRef:t,playerSettings:n}),p=(0,r.l)().setIsCompleted,h=(0,o.useRef)(new Set),v=(0,o.useCallback)(()=>{d("manual_play"),u||p(a.pW.WatchAVideo)},[u,p,d]),m=(0,o.useCallback)(e=>{let t=e.percent;0!==t&&1!==t&&d("manual_stop")},[d]),g=(0,o.useCallback)(()=>{d("played_to_end")},[d]),b=(0,o.useCallback)(e=>{let t=e.fullscreen;d("interaction",t?{button_name:"fullscreen"}:{button_name:"exit_fullscreen"})},[d]),f=(0,o.useCallback)(()=>{d("interaction",{button_name:"quality"})},[d]),y=(0,o.useCallback)(()=>{d("interaction",{button_name:"playback_rate"})},[d]),k=(0,o.useMemo)(()=>(0,i.s)(()=>{d("interaction",{button_name:"cc"})},100,{trailing:!0}),[d]),x=(0,o.useMemo)(()=>(0,i.s)(e=>{let t=e.volume;n.current&&(0===t?(d("interaction",{button_name:"mute"}),n.current.muted=!0):n.current.muted?(d("interaction",{button_name:"unmute"}),n.current.muted=!1):d("interaction",{button_name:"volume"}))},100,{trailing:!0}),[n,d]),w=(0,o.useCallback)(()=>{d("interaction",{button_name:"seek"})},[d]),C=(0,o.useCallback)(()=>{n.current&&(d("interaction",{button_name:"PiP"}),n.current.isPip=!0,d("shown"))},[n,d]),P=(0,o.useCallback)(()=>{n.current&&(d("interaction",{button_name:"PiP"}),n.current.isPip=!1)},[n,d]),_=(0,o.useCallback)(e=>{let t=e.percent;if(void 0===t)return;const n=100*t;[{threshold:25,action:"played_25"},{threshold:50,action:"played_50"},{threshold:75,action:"played_75"}].forEach(e=>{let t=e.threshold,i=e.action;n>=t&&!h.current.has(t)&&(h.current.add(t),d(i))})},[d]),E=(0,o.useMemo)(()=>({play:v,pause:m,ended:g,fullscreenchange:b,qualitychange:f,playbackratechange:y,texttrackchange:k,timeupdate:_,volumechange:x,seeked:w,enterpictureinpicture:C,leavepictureinpicture:P}),[g,C,b,P,m,v,y,f,w,k,_,x]),j=(0,o.useCallback)(e=>{var t;let n=e.event,i=e.data;null===(t=E[n])||void 0===t||t.call(E,i)},[E]),S=(0,l.g)({videoRef:t});(0,o.useEffect)(()=>{S&&c&&d("shown")},[S,c,d]);const N=(0,o.useCallback)(()=>{h.current.clear()},[]);return{processVimeoEvent:j,canProcessEvents:Object.keys(E),resetTrackedMilestones:N}}])},438624(e,t,n){var i=n(205544),o=n(296540),a=n(185692);n.d(t,["g",0,e=>{let t=e.videoRef;const n=(0,a.Wx)({triggerOnce:!0}),r=(0,i.A)(n,2),s=r[0],l=r[1];return(0,o.useEffect)(()=>{s(t.current)},[s,t]),l}])},864295(e,t,n){n(874423);var i=n(296540),o=n(195304),a=n(72580),r=n(841127);n.d(t,["I",0,e=>{let t=e.videoRef,n=e.onReady,s=e.onEvent;const l=(0,i.useCallback)(e=>{var i;const o="string"==typeof e?null!==(i=(0,r.j)(e))&&void 0!==i?i:{}:e,a=o.event,l=o.method,c=o.data;if("ready"===a)return void n();const u=Boolean(l);t.current&&!u&&s({event:a,data:c})},[s,n,t]);(0,i.useEffect)(()=>{const e=(0,o.zk)();return(0,a.X)(e,"message",e=>{let t=e.data;e.origin.includes("vimeo.com")&&l(t)})},[l])}])},203189(e,t,n){var i=n(296540);n.d(t,["R",0,e=>{let t=e.videoRef;const n=(0,i.useCallback)(e=>{var n;t.current&&(null===(n=t.current.contentWindow)||void 0===n||n.postMessage(e,"*"))},[t]);return{listenToEvent:(0,i.useCallback)(e=>{n({method:"addEventListener",value:e})},[n]),emitVimeoEvent:n}}])},2179(e,t,n){var i=n(205544),o=(n(218111),n(607588),n(296540)),a=n(559682),r=n(864295),s=n(203189);n.d(t,["P",0,(e,t)=>{const n=(0,o.useRef)({isPip:!1,muted:!1}),l=(0,o.useState)(!1),c=(0,i.A)(l,2),u=c[0],d=c[1],p=(0,a.k)({videoRef:e,playerSettings:n,isPlayerReady:u,disableCompleteProgressTrackerStep:t}),h=p.processVimeoEvent,v=p.canProcessEvents,m=(0,s.R)({videoRef:e}).listenToEvent,g=(0,o.useCallback)(()=>
1{v.forEach(e=>{m(e)}),d(!0)},[v,m]);(0,r.I)({videoRef:e,onReady:g,onEvent:h})}])},731501(e,t,n){var i=n(205544),o=(n(209391),n(296540)),a=n(276985),r=n(976772),s=n(612844),l=n(320597);n.d(t,["m",0,()=>{const e=(0,o.useState)(!1),t=(0,i.A)(e,2),n=t[0],c=t[1],u=(0,s.Q)().mutate;return{isDismissing:n,dismissWithLocalUpdate:(0,o.useCallback)((e,t)=>(c(!0),(0,a.X)(e,t).then(n=>{var i,o,a;return u((0,r.y)({id:null!==(i=null==n?void 0:n.id)&&void 0!==i?i:e,type:null!==(o=null==n?void 0:n.type)&&void 0!==o?o:"dismissible",dismissibleId:String(null!==(a=null==n?void 0:n.dismissibleId)&&void 0!==a?a:e),dismissibleType:t,createdAt:null==n?void 0:n.createdAt,updatedAt:null==n?void 0:n.updatedAt})),n}).catch(l.v.error).finally(()=>{c(!1)})),[u])}}])}}]);

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