1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[728],{24644:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/videos/[slug]",function(){return n(40207)}])},40207:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>w,default:()=>k});var r=n(37876),l=n(14232),o=n(45105),s=n.n(o),c=(n(13380),n(86220)),i=n(18488),a=n(15271),u=n.n(a),d=n(28173),p=n(22084),h=n(56209),m=n(72224);let v=new Set,y=e=>(e||"").replace(/<[^>]+>/g,"").replace(/ /gi," ").replace(/Â /g," ").replace(/\s+/g," ").trim().toLowerCase();function g(e){var t,n;let{postData:o}=e,a=(0,i.su)(o),g=(0,i.if)(a.categories,a.title,a.primary_category,a.postType,a.customBreadcrumbs,a.identityHomepage),f=(0,i.O5)(null==o?void 0:o.post_content_array),_=(null==o?void 0:o.youtube_url)||(null==o?void 0:o.vimeo_url)||"";(null==o?void 0:o.is_video)===!0||(null==o?void 0:o.youtube_url)||null==o||o.vimeo_url;let b=(null==o?void 0:o.is_vertical_video)===!0,x=null!=(t=null==o?void 0:o.vertical_video_full_post)?t:null,j=x?{...x,link:null!=(n=x.link)?n:x.post_name?"/video/".concat(x.post_name):null}:null,w=f.hasPostContentArray&&f.postContentArray.some(e=>"brightcove-video"===e.type),[k,I]=(0,l.useState)(w),{fadeOut:N,onPlaybackStart:S}=(0,p.q)(),T=(0,l.useRef)(null),H=(0,l.useRef)(null),A=(0,l.useRef)(!1),E=()=>{let e=window.videojs;if(e&&H.current){let t=e.getPlayer(H.current);if(t)try{t.muted(!1),t.play()}catch(e){}}A.current=!0,I(!1)},L=(0,l.useRef)(null),[C,P]=(0,l.useState)(null);return(0,l.useEffect)(()=>{if(!w||!C)return;let e=new IntersectionObserver(e=>{e.forEach(e=>{let t=T.current;if(t)if(e.isIntersecting&&e.intersectionRatio>.2)try{A.current||"function"!=typeof t.muted||t.muted(!0);let e="function"==typeof t.play?t.play():null;if(S(),A.current&&"function"==typeof t.muted){let n=()=>{try{t.muted(!1),t.volume(1)}catch(e){}};e&&"function"==typeof e.then?e.then(n).catch(()=>{}):n()}A.current||I(!0)}catch(e){}else try{"function"==typeof t.pause&&t.pause()}catch(e){}})},{threshold:[0,.2,.5,1]});return e.observe(C),()=>{e.disconnect()}},[w,S,C]),(0,l.useEffect)(()=>{if(!w)return;let e=0,t=null,n=()=>{t&&I(t.muted())},r=setInterval(()=>{e++;let l=window.videojs,o=window.bc;(l||o)&&L.current&&L.current.querySelectorAll("[data-account]").forEach(e=>{let s=e.getAttribute("id");if(!s||t)return;let c=l&&"function"==typeof l.getPlayer?l.getPlayer(s):null;if(!c&&o&&"function"==typeof o)try{c=o(s)}catch(e){}c&&(clearInterval(r),t=c,T.current=c,H.current=s,c.ready(function(){this.on("volumechange",n),(0,p.U)(this,S),this.one("loadedmetadata",function(){let e=this.textTracks();for(let t=0;t<e.length;t++){let n=e[t];if("captions"===n.kind||"subtitles"===n.kind){n.mode="showing";break}}})}))}),e>=50&&clearInterval(r)},200);return()=>{if(clearInterval(r),t){try{t.off("volumechange",n),t.dispose()}catch(e){}t=null}T.current=null,H.current=null}},[w,S]),(0,r.jsx)(c.o,{title:a.title,displayDate:a.displayDate,authors:a.authors,tags:a.tags,breadcrumbItems:g.breadcrumbItems,currentBreadcrumbItem:g.currentBreadcrumbItem,postType:a.postType,children:(0,r.jsxs)(r.Fragment,{children:[_&&(0,r.jsx)("div",{style:{position:"relative",width:"100%",paddingBottom:"56.25%",height:0,overflow:"hidden",borderRadius:"8px",background:"#000",marginBottom:"24px"},children:(0,r.jsx)("iframe",{src:(e=>{var t,n;if(e.includes("youtube.com")||e.includes("youtu.be")){if(e.includes("youtu.be")){let n=null==(t=e.split("/").pop())?void 0:t.split("?")[0];return"https://www.youtube.com/embed/".concat(n)}if(e.includes("embed"))return e;let n=e.match(/[?&]v=([^&]+)/);return n?"https://www.youtube.com/embed/".concat(n[1]):e}if(e.includes("vimeo.com")){let t=null==(n=e.split("/").pop())?void 0:n.split("?")[0];return"https://player.vimeo.com/video/".concat(t)}return e})(_),style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",border:"none"},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"Video: ".concat(a.title),referrerPolicy:"strict-origin-when-cross-origin"})}),(0,r.jsx)("div",{children:f.hasPostContentArray?(0,r.jsx)("div",{id:"post_content",ref:L,children:(()=>
1{if(!f.hasPostContentArray)return null;let e=f.postContentArray,t=0,n=[],l=(0,h.Ch)(e);return e.forEach((o,c)=>{var i,p,g,f;if(!(0,h.b0)(c,e)&&!("html"===o.type&&(i=o.content,p=a.title,i&&p&&/^<h[1-6][^>]*>[\s\S]*<\/h[1-6]>$/i.test(i.trim())&&y(i)===y(p))))switch(o.type){case"html":{let s=t;t++;let i=(0,m.cE)(o.content);if((0,h.W7)(c,l)){c===l.start&&n.push((0,h.n2)(e,l,u()["html-content-block"],u().gatedPreview));break}if(!((i.match(/<p[^>]*>/gi)||[]).length>=3)||0!==s)n.push((0,r.jsx)("div",{className:"".concat(u()["html-content-block"]," single_post_content"),children:(0,r.jsx)("div",{className:"html-content",dangerouslySetInnerHTML:{__html:i},suppressHydrationWarning:!0})},c));else{let e=i.split(/<\/p>/i);if(e.length>=3){let t=e.slice(0,3).join("</p>")+"</p>",l=e.slice(3).join("</p>");n.push((0,r.jsx)("div",{className:"".concat(u()["html-content-block"]," single_post_content"),children:(0,r.jsx)("div",{className:"html-content",dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})},c)),l&&n.push((0,r.jsx)("div",{className:"".concat(u()["html-content-block"]," single_post_content"),children:(0,r.jsx)("div",{className:"html-content",dangerouslySetInnerHTML:{__html:l},suppressHydrationWarning:!0})},"".concat(c,"-second")))}else n.push((0,r.jsx)("div",{className:"".concat(u()["html-content-block"]," single_post_content"),children:(0,r.jsx)("div",{className:"html-content",dangerouslySetInnerHTML:{__html:i},suppressHydrationWarning:!0})},c))}break}case"brightcove-video":{let e=o.src?"brightcove-script-".concat(o.src):"",t=!1;"undefined"!=typeof document&&o.src&&(t=!!document.querySelector('script[src="'.concat(o.src,'"]')));let l=o.src&&!v.has(e)&&!t;l&&e&&v.add(e);let i=(0,d.Ys)(a.video_tag);n.push((0,r.jsxs)("div",{style:{marginBottom:"20px",clear:"both"},className:"".concat(u().videoPostContainer).concat(b?" ".concat(u().verticalVideo):""),ref:P,children:[(0,r.jsx)(d.T9,{icon:i.icon,label:i.label,className:u().videoBadge,fadeOut:N}),(0,r.jsx)("div",{className:"html-content ".concat(u()["video-content"]),dangerouslySetInnerHTML:{__html:(0,m.cE)(null!=(f=null==(g=o.content)?void 0:g.replace(/<h[1-6][^>]*>[\s\S]*?<\/h[1-6]>/gi,""))?f:"")}}),k&&(0,r.jsxs)("button",{className:u().unmuteButton,onClick:E,"aria-label":"Unmute video",children:[(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M16.5 12A4.5 4.5 0 0 0 14 7.97v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51A8.796 8.796 0 0 0 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06A8.99 8.99 0 0 0 17.73 18l2 2L21 18.73 4.27 3zM12 4L9.91 6.09 12 8.18V4z"})}),(0,r.jsx)("span",{children:"Tap to Unmute"})]}),b&&(null==j?void 0:j.link)&&(0,r.jsx)("a",{href:j.link,className:u().watchFullVideoLink,children:"Watch Full Video"}),o.src&&l&&!t&&(0,r.jsx)(s(),{src:o.src,strategy:"afterInteractive",id:"brightcove-video-".concat(c)})]},c));break}case"aga-article-link":n.push((0,h.Cd)(o,c));break;default:o.content&&n.push((0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,m.cE)(o.content)},style:{marginBottom:"18px",marginTop:"40px"}},c))}}),(0,r.jsx)(r.Fragment,{children:n})})()}):(0,r.jsx)(r.Fragment,{children:(()=>{let{firstPart:e,secondPart:t}=(0,i.sV)(a.content);return(0,r.jsxs)("div",{id:"post_content",children:[e&&(0,r.jsx)("div",{className:u()["article-content"],dangerouslySetInnerHTML:{__html:(0,m.cE)(e)},suppressHydrationWarning:!0}),!1,t&&(0,r.jsx)("div",{className:u()["article-content"],dangerouslySetInnerHTML:{__html:(0,m.cE)(t)},suppressHydrationWarning:!0})]})})()})})]})})}var f=n(47650),_=n(32137),b=n(58448),x=n(60348);function j(e){var t;let{postData:n,preview:l}=e;return null==n||n.site_navs,(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g,{postData:n}),(null==n?void 0:n.related_posts)&&n.related_posts.length>0&&(0,r.jsx)(f.A,{relatedPosts:n.related_posts,title:"Recommended For You",currentId:null==n?void 0:n.ID}),((null==n?void 0:n.primary_category)||(null==n||null==(t=n.categories)?void 0:t.length)>0)&&(0,r.jsx)(f.A,{category:n.primary_category||n.categories[0],currentId:null==n?void 0:n.ID})]})}var w=!0;function k(e){let{postData:t,preview:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.A,{}),(0,r.jsx)(_.A,{sitenavs:null==t?void 0:t.site_navs,preview:n,pageData:t,pageLayout:"three_column",children:(0,r.jsx)(b.A,{children:(0,r.jsx)(j,{postData:t,preview:n})})})]})}}},e=>{e.O(0,[588,265,322,545,636,593,792],()=>e(e.s=24644)),_N_E=e.O()}]);
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.