PageSourceSearch

https://www.25ans.jp/_assets/fre/scopes/hdm/_next/static/chunks/87704-3e0933795d6bc570.js

js 25ans.jp collected 2026-09-24 17:19:56 UTC 43,881 bytes, 3 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[87704],{4579:(e,t,i)=>{"use strict";function s(e,t){try{return window.sessionStorage.getItem(e)||t}catch(s){let{warn:i}=console;return i(`Failed to get ${e} from session storage`,s),t}}function n(e,t){try{return window.sessionStorage.setItem(e,t),!0}catch(s){let{warn:i}=console;return i(`Failed to set key ${e} and value ${t} from session storage`,s),!1}}i.d(t,{A:()=>l});var a="vTotal",r="vVideoCount",o=i(73932),l=class{constructor(e,t){(0,o.a)(this,"videoPlayer"),(0,o.a)(this,"viewTimerLimit"),(0,o.a)(this,"_totalTime"),(0,o.a)(this,"timerEnabled"),(0,o.a)(this,"videoStrategyEnabled"),(0,o.a)(this,"adEveryNVideos"),(0,o.a)(this,"_videoCount"),(0,o.a)(this,"lastCountedVideoId"),(0,o.a)(this,"firstSuccessfulAdRequestMade"),(0,o.a)(this,"logger"),(0,o.a)(this,"startTime"),(0,o.a)(this,"startTracking",()=>{this.startTime||this.firstSuccessfulAdRequestMade&&(this.logger.log("Ad Throttler: starting tracking"),this.startTime=new Date().getTime())}),(0,o.a)(this,"updateTracking",()=>{if(!this.startTime||this.totalTime>=this.viewTimerLimit)return;this.logger.log("Ad Throttler: updating tracking time");let e=(new Date().getTime()-this.startTime)/1e3;this.updateTotal(e),this.startTime=null,this.videoPlayer.isPaused()||this.startTracking()}),this.videoPlayer=e,this.logger=e.logger,this.videoStrategyEnabled="video"===t.strategy,this.viewTimerLimit="number"==typeof t.viewTimerLimit?t.viewTimerLimit:90,this.adEveryNVideos="number"==typeof t.adEveryNVideos&&t.adEveryNVideos>0?t.adEveryNVideos:1,this._videoCount=0,this.lastCountedVideoId=null,this._totalTime=0,this.startTime=null,this.timerEnabled=!this.videoStrategyEnabled&&this.viewTimerLimit>0,this.logger.log("Ad Throttler: Is timer enabled:",this.timerEnabled),this.logger.log("Ad Throttler: Is video strategy enabled:",this.videoStrategyEnabled),this.firstSuccessfulAdRequestMade=!1,this.setupSession(),this.setupListeners(),this.logger.log("Ad Throttler: View Timer Limit initialized")}get totalTime(){return this._totalTime}get videoCount(){return this._videoCount}permitAd(){return this.videoStrategyEnabled?this.permitAdByGlobalVideoCount():this.timerEnabled?this.firstSuccessfulAdRequestMade?(this._totalTime=this.retrieveSessionTotal(this._totalTime),this.totalTime>=this.viewTimerLimit?(this.logger.log(`Ad Throttler: Ad permitted totalTime: ${this.totalTime} >= limit: ${this.viewTimerLimit}`),!0):(this.logger.log(`Ad Throttler: Ad not permitted, totalTime: ${this.totalTime} < limit: ${this.viewTimerLimit}`),!1)):(this.logger.log("Ad Throttler: first ad permitted"),!0):(this.logger.log("Ad Throttler: timer disabled, ad permitted"),!0)}permitAdByGlobalVideoCount(){this.ensureVideoCounted();let e=this._videoCount>0&&this._videoCount%this.adEveryNVideos==0;return this.logger.log(`Ad Throttler: global video count ${this._videoCount}, adEveryNVideos ${this.adEveryNVideos}, permitted: ${e}`),e}ensureVideoCounted(){let e=this.getCurrentVideoIdentity();e&&e!==this.lastCountedVideoId&&(this.lastCountedVideoId=e,this._videoCount=Math.max(this._videoCount,this.retrieveVideoCount())+1,this.saveVideoCount(this._videoCount),this.logger.log(`Ad Throttler: counted video ${e}, global count ${this._videoCount}`))}getCurrentVideoIdentity(){let e=this.videoPlayer.getCurrentVideo?.();return e?.id==null?null:String(e.id)}retrieveVideoCount(){let e=parseInt(s(r,"0"),10);return Number.isFinite(e)&&e>=0?e:0}saveVideoCount(e){n(r,String(e))}reset(){this.logger.log("Ad Throttler: reset"),this.startTime=null,this._totalTime=0,this.firstSuccessfulAdRequestMade||(this.firstSuccessfulAdRequestMade=!0),this.saveSessionTotal(this._totalTime.toFixed(2))}setupSession(){if(this.videoStrategyEnabled){this._videoCount=this.retrieveVideoCount();return}this.timerEnabled&&(this._totalTime=this.retrieveSessionTotal(0),this.totalTime>0&&(this.logger.log(`Ad Throttler: session exists: ${this.viewTimerLimit}, ${this.totalTime}`),this.firstSuccessfulAdRequestMade=!0))}retrieveSessionTotal(e){return parseFloat(s(a,e.toString()))}saveSessionTotal(e){n(a,e)}setupListeners(){if(!this.videoStrategyEnabled&&this.timerEnabled){this.videoPlayer.events.on("playing",this.startTracking),this.videoPlayer.events.on("pause",this.updateTracking),this.videoPlayer.events.on("seeked",this.updateTracking),this.videoPlayer.events.on("ended",this.updateTracking),this.videoPlayer.events.on("abort",this.updateTracking),this.videoPlayer.events.on("emptied",this.updateTracking);let e=this.videoPlayer.events.on("playing",()=>{e&&(this.videoPlayer.events.unsubscribe(e),window.setInterval(this.updateTracking,5e3))});window.addEventListener("visibilitychange",this.updateTracking),this.videoPlayer.events.on("ads-ima-impression",()=>{this.reset()})}}updateTotal(e){let t=this.retrieveSessionTotal(this.totalTime);this._totalTime=t+e,this.saveSessionTotal(this.totalTime.toFixed(2))}}},11317:(e,t,i)=>{"use strict";i.d(t,{a:()=>n});var s=i(75602);function n(){return(0,s.a)(e=>e.nitehawk??null)}},22380:(e,t,i)=>{"use strict";let s,n,a;i.d(t,{a:()=>y});var r=Object.defineProperty,o=(e,t,i)=>{let s;return(s="symbol"!=typeof t?t+"":t)in e?r(e,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[s]=i},l=((s=l||{}).DOMAIN="domain",s.FULL="full",s.LIMITED="limited",s),d=i(94602),h=i(71055),u=i(55837),c=((n=c||{}).default="left-aligned-variant",n.variant_one="apple-esque-variant",n.variant_two="gradient-variant",n.variant_three="left-aligned-variant",n),g=class{constructor(e,t,i,s){o(this,"videoPlayer"),o(this,"logger"),o(this,"adApi"),o(this,"controlBarElements"),o(this,"interactiveElements"),o(this,"clickTroughPanel"),o(this,"countdownInterval"),o(this,"skipInterval"),o(this,"progressBarInterval"),o(this,"state"),o(this,"cssVariant"),o(this,"customAdUiSettings"),o(this,"adTypes",["preroll","midroll","postroll"]),o(this,"updateCountdown",()=>{let e=this.getCountdownText();this.controlBarElements.countdown.innerText=e,this.controlBarElements.countdown.style.display=e?"flex":"none"}),o(this,"updateSkip",()=>{let e=this.adApi.getAdDuration(),t=this.adApi.getSkipTimeOffset(),i=this.adApi.getRemainingTime();if(e&&t&&i){let s=Math.ceil(t-(e-i));s>0?(this.interactiveElements.skipButton.innerText=`Skip in ${s}...`,this.interactiveElements.skipButton.style.cursor="default"):(this.interactiveElements.skipButton.innerText="Skip ad",this.interactiveElements.skipButton.style.cursor="pointer",this.skipInterval&&window.clearInterval(this.skipInterval))}}),o(this,"updateProgressBar",()=>{let e=this.adApi.getRemainingTime(),t=this.adApi.getAdDuration();t&&e&&(this.controlBarElements.progressBar.style.width=`${(t-e)/t*100}%`)}),this.videoPlayer=e,this.adApi=t,this.logger=s,this.countdownInterval=null,this.skipInterval=null,this.progressBarInterval=null,this.state={isControlBarSetup:!1,isInteractiveElementsSetup:!1,isInteractiveElementsActive:!1},this.customAdUiSettings={enableControlBar:!0,enableInteractiveElements:!0,...i},this.cssVariant=function(e="default"){let t=Array.isArray(e)?e.pop():e,i=Object.keys(c).find(e=>e===t);return typeof i>"u"?"":c[i]}(this.adApi?.settings?.adUiVariant),this.controlBarElements=this.createControlBarElements(),this.interactiveElements=this.createInteractiveElements(),this.clickTroughPanel=this.createClickThroughPanel()}
1init(){this.adTypes.forEach(e=>{let t="preroll"===e?"":`${e}-`;this.videoPlayer.events.on(`ads-ima-${t}start`,()=>{let e=this.adApi.isUiDisabled();this.updateSoundIcon(),this.customAdUiSetup(),this.startCountdownTimer(),e&&this.showCustomUi()}),this.videoPlayer.events.on(`ads-ima-${t}complete`,()=>{0===this.adApi.getVolume()?this.videoPlayer.mute():this.videoPlayer.unmute(),this.hideCustomUi()}),this.videoPlayer.events.on(`ads-ima-${t}skip`,()=>{0===this.adApi.getVolume()?this.videoPlayer.mute():this.videoPlayer.unmute(),this.state.isInteractiveElementsActive&&this.hideCustomUi()}),this.videoPlayer.events.on(`ads-ima-${t}adError`,()=>{this.hideCustomUi()})}),this.videoPlayer.events.on("ads-ima-contentResumeRequested",()=>{this.hideCustomUi()}),this.videoPlayer.events.on("unmutechangeUser",()=>{this.updateSoundIcon(1)}),this.videoPlayer.events.on("mutechangeUser",()=>{this.updateSoundIcon(0)})}showCustomUi(){this.state.isInteractiveElementsActive=!0,!0===this.adApi.isAdSkippable()?(this.interactiveElements.skipButton.style.display="block",this.skipInterval=window.setInterval(this.updateSkip,300)):this.interactiveElements.skipButton.style.display="none",this.adApi.adContainer&&(this.adApi.adContainer.style.display="block")}hideCustomUi(){this.state.isInteractiveElementsActive=!1,this.stopCountdownTimer(),this.skipInterval&&window.clearInterval(this.skipInterval),this.progressBarInterval&&(window.clearInterval(this.progressBarInterval),this.controlBarElements.progressBar.style.width="0"),this.adApi.adContainer&&(this.adApi.adContainer.style.display="none")}customAdUiSetup(){try{let e=this.adApi.isUiDisabled();this.state.isControlBarSetup||(this.controlBarDomSetup(),this.controlBarEventSetup(),this.state.isControlBarSetup=!0),this.customAdUiSettings.enableInteractiveElements&&!this.state.isInteractiveElementsSetup&&e&&(this.interactiveElementsDOMSetup(),this.interactiveElementsEventSetup(),this.state.isInteractiveElementsSetup=!0),this.perAdEventSetup()}catch(e){this.logger.error("Failed to setup custom ad ui",e)}}createControlBarElements(){let e=document.createElement("div"),t=document.createElement("button");t.type="button";let i=document.createElement("button");i.type="button";let s=document.createElement("button");s.type="button";let n=document.createElement("div"),a=document.createElement("div"),r=document.createElement("div"),o=new Image,l=new Image,d=new Image,h=new Image,u=new Image,c=new Image;return o.alt="Play",l.alt="Pause",d.alt="Unmute",h.alt="Enter Fullscreen",u.alt="Exit Fullscreen",c.alt="Mute",o.width=20,o.height=20,l.width=20,l.height=20,d.width=20,d.height=20,h.width=20,h.height=20,u.width=20,u.height=20,c.width=20,c.height=20,e.className=`ima-control-bar-container playing ${this.cssVariant}`,o.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23ffffff" viewBox="0 0 256 256">%0A%09<path d="M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z">%0A</path></svg>',o.className="icon play-icon",l.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23ffffff" viewBox="0 0 256 256">%0A%09<path d="M216,48V208a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V48a16,16,0,0,1,16-16h40A16,16,0,0,1,216,48ZM96,32H56A16,16,0,0,0,40,48V208a16,16,0,0,0,16,16H96a16,16,0,0,0,16-16V48A16,16,0,0,0,96,32Z"></path>%0A</svg>%0A',l.className="icon pause-icon",d.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="%23ffffff" viewBox="0 0 256 256">%0A%09<path d="M213.92,210.62a8,8,0,1,1-11.84,10.76L160,175.09v48.6a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56l-65.55-51A4,4,0,0,1,80,176.18V87.09L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-27.21-55.46a8,8,0,0,0,11.29-.7,40,40,0,0,0,0-52.88,8,8,0,1,0-12,10.57,24,24,0,0,1,0,31.72A8,8,0,0,0,186.71,
1155.16Zm40.92-80.49a8,8,0,1,0-11.92,10.66,64,64,0,0,1,0,85.34,8,8,0,1,0,11.92,10.66,80,80,0,0,0,0-106.66ZM153,119.87a4,4,0,0,0,7-2.7V32.25a8.27,8.27,0,0,0-2.88-6.4,8,8,0,0,0-10-.16L103.83,59.33a4,4,0,0,0-.5,5.85ZM60,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H60a4,4,0,0,0,4-4V84A4,4,0,0,0,60,80Z"></path>%0A</svg>',d.className="icon mute-icon",c.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="%23ffffff" viewBox="0 0 256 256">%0A%09<path d="M160,32.25V223.69a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56l-65.57-51A4,4,0,0,1,80,176.16V79.84a4,4,0,0,1,1.55-3.15l65.57-51a8,8,0,0,1,10,.16A8.27,8.27,0,0,1,160,32.25ZM60,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H60a4,4,0,0,0,4-4V84A4,4,0,0,0,60,80Zm126.77,20.84a8,8,0,0,0-.72,11.3,24,24,0,0,1,0,31.72,8,8,0,1,0,12,10.58,40,40,0,0,0,0-52.88A8,8,0,0,0,186.74,100.84Zm40.89-26.17a8,8,0,1,0-11.92,10.66,64,64,0,0,1,0,85.34,8,8,0,1,0,11.92,10.66,80,80,0,0,0,0-106.66Z"></path>%0A</svg>',c.className="icon unmute-icon",h.src='data:image/svg+xml,<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M4.0415 7.79134H1.6665V1.83301H7.62484V4.20801H4.0415V7.79134ZM1.6665 12.5413H4.0415V16.1247H7.62484V18.4997H1.6665V12.5413ZM15.9582 4.20801H12.3748V1.83301H18.3332V7.79134H15.9582V4.20801ZM12.3748 18.4997V16.1247H15.9582V12.5413H18.3332V18.4997H12.3748Z" fill="white"/>%0A</svg>%0A',h.className="icon fullscreen-icon",u.src='data:image/svg+xml,<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M1.6665 5.73794H5.23794V2.1665H7.6189V8.1189H1.6665V5.73794ZM5.23794 15.2617H1.6665V12.8808H7.6189V18.8332H5.23794V15.2617ZM12.3808 2.1665H14.7617V5.73794H18.3332V8.1189H12.3808V2.1665ZM14.7617 15.2617V18.8332H12.3808V12.8808H18.3332V15.2617H14.7617Z" fill="white"/>%0A</svg>%0A',u.className="icon minimize-icon",t.className="ima-button ima-play",n.className="ima-countdown",n.setAttribute("aria-label","Ad countdown"),s.className="ima-button ima-volume",i.className="ima-button ima-fullscreen",a.className="ima-seek-bar",r.className="ima-progress-bar",a.appendChild(r),t.appendChild(o),t.appendChild(l),s.appendChild(d),s.appendChild(c),i.appendChild(h),i.appendChild(u),{playPauseButton:t,fullscreenButton:i,countdown:n,seekbar:a,progressBar:r,volumeButton:s,controlBarContainer:e}}createClickThroughPanel(){let e=document.createElement("div"),t=["clickThroughPanel",...this.cssVariant?[this.cssVariant]:[]];return e.classList.add(...t),e}createInteractiveElements(){let e=document.createElement("button");e.type="button";let t=document.createElement("button");return t.type="button",e.className="flatGrey adClick",e.innerText="Learn More",t.className="flatGrey skipButton",{learnMore:e,skipButton:t}}interactiveElementsDOMSetup(){let e=this.adApi.adContainer,{controlBarContainer:t}=this.controlBarElements,i=document.createElement("div");i.className="interactiveAdControls",i.innerHTML=`
2            <div class="adText"><span>Ad</span></div>
3    `,i.appendChild(this.interactiveElements.learnMore),i.appendChild(this.interactiveElements.skipButton),e.insertBefore(this.clickTroughPanel,e.firstChild),t.insertBefore(i,t.firstChild)}controlBarDomSetup(){let{controlBarContainer:e}=this.controlBarElements,t=document.createElement("div"),i=this.adApi.adContainer;t.className="ima-controls",e.appendChild(this.controlBarElements.seekbar),i.appendChild(this.controlBarElements.countdown),t.appendChild(this.controlBarElements.playPauseButton),t.appendChild(this.controlBarElements.volumeButton),t.appendChild(this.controlBarElements.fullscreenButton),e.appendChild(t),i.appendChild(e)}getCountdownText(){let e=this.adApi.getRemainingTime();if(null===e||!Number.isFinite(e)||e<0)return"";let t=this.adApi.totalAds(),i=this.adApi.getAdPosition();return`Ad ${t&&t>1&&i?`${i}/${t} `:""}(${Math.ceil(e)}s)`}startCountdownTimer(){this.stopCountdownTimer(),!0===this.adApi.isAdLinear()&&(this.updateCountdown(),this.countdownInterval=window.setInterval(this.updateCountdown,500))}stopCountdownTimer(){null!==this.countdownInterval&&(window.clearInterval(this.countdownInterval),this.countdownInterval=null),this.controlBarElements.countdown.innerText="",this.controlBarElements.countdown.style.display="none"}onAdPause(){this.adApi.pauseAd(),this.controlBarElements.controlBarContainer.classList.remove("playing"),this.controlBarElements.controlBarContainer.classList.add("paused")}onAdPlay(){this.adApi.playAd(),this.controlBarElements.controlBarContainer.classList.remove("paused"),this.controlBarElements.controlBarContainer.classList.add("playing")}perAdEventSetup(){this.adApi?.adsManager?.addEventListener(window.google.ima.AdEvent.Type.PAUSED,()=>{this.onAdPause()}),this.adApi?.adsManager?.addEventListener(window.google.ima.AdEvent.Type.RESUMED,()=>{this.onAdPlay()}),this.progressBarInterval=window.setInterval(this.updateProgressBar,250)}controlBarEventSetup(){this.controlBarElements.playPauseButton.addEventListener("click",()=>{this.adApi.isAdPlaying()?this.adApi.pauseAd():this.adApi.playAd()}),this.controlBarElements.volumeButton.addEventListener("click",()=>{0===this.adApi.getVolume()?(this.adApi.setVolume(1),this.videoPlayer.unmute(),this.controlBarElements.volumeButton.classList.add("ima-unmuted")):(this.adApi.setVolume(0),this.videoPlayer.mute(),this.controlBarElements.volumeButton.classList.remove("ima-unmuted"))}),this.controlBarElements.fullscreenButton.addEventListener("click",()=>{this.adApi.toggleFullscreen()}),document.addEventListener("fullscreenchange",()=>{this.controlBarElements.fullscreenButton.classList.toggle("fullscreen")}),this.adApi.adContainer.addEventListener("mousemove",()=>{this.showControlBarContainer()}),this.adApi.adContainer.addEventListener("mouseleave",()=>{this.hideControlBarContainer()}),this.controlBarElements.controlBarContainer.addEventListener("focusin",()=>{this.showControlBarContainer()})}showControlBarContainer(){setTimeout(()=>{this.controlBarElements.controlBarContainer.classList.add("ima-showing")},0)}hideControlBarContainer(){this.controlBarElements.controlBarContainer.classList.remove("ima-showing")}interactiveElementsEventSetup(){let e=e=>{e.stopPropagation(),this.adApi.learnMoreClicked(),this.adApi.pauseAd()};this.interactiveElements.skipButton.addEventListener("click",()=>{this.adApi.getAdSkippableState()&&this.adApi.skipAd()}),this.interactiveElements.learnMore.addEventListener("click",t=>{e(t)}),this.clickTroughPanel.addEventListener("click",()=>{this.adApi.isAdPlaying()?this.adApi.pauseAd():this.adApi.playAd()});let t=i=>{e(i),this.clickTroughPanel.removeEventListener("click",t)};this.clickTroughPanel.addEventListener("click",t)}updateSoundIcon(e){let t=void 0!==e?e:+!this.videoPlayer?.isMuted();this.adApi.setVolume(t),0===t?this.controlBarElements.volumeButton.classList.remove("ima-unmuted"):this.controlBarElements.volumeButton.classList.add("ima-unmuted")}},m=((a=m||{}).Preroll="preroll",a.Midroll="midroll",a.Postroll="postroll",a);async function v(){let e=document.createElement("script");e.type="text/javascript",e.defer=!0,e.src="//imasdk.googleapis.com/js/sdkloader/ima3.js";let t=new Promise((t,i)=>{e.addEventListener("load",()=>{t()}),e.addEventListener("error",()=>{i()})});return document.head.appendChild(e),t}function p(){let e=/iPhone|iPad|iPod/i.test(navigator.userAgent),t=/Macintosh/i.test(navigator.userAgent)&&navigator.maxTouchPoints>1;return e||t}var A=class e{constructor(t,i,s){o(this,"videoPlayer"),o(this,"_adsManager"),o(this,"_settings"),o(this,"_adContainer"),o(this,"adDisplayContainer"),o(this,"logger"),o(this,"adsLoader"),o(this,"state"),o(this,"adFullscreenCleanup",null),o(this,"wasFullscreenBeforeAd",!1),o(this,"currentAd"),o(this,"onAdsManagerLoaded",e=>{let{element:t}=this.videoPlayer,i=new window.google.ima.AdsRenderingSettings;i.enablePreloading=!0,this.settings.customAdUi?.enableCustomAdUi?i.disableUi=!0:i.useStyledLinearAds=!0,this.adsManager=e.getAdsManager(this.videoPlayer.element,i),this.videoPlayer.events.emit("ads-ima-adsManagerLoaded",{adsManager:this.adsManager});let s=this.setupResizeObservers(),n=function(e){var t,i={},s=i.noTrailing,n=void 0!==s&&s,a=i.noLeading,r=void 0!==a&&a,o=i.debounceMode,l=void 0===o?void 0:o,d=!1,h=0;function u(){t&&clearTimeout(t)}function c(){for(var i=arguments.length,s=Array(i),a=0;a<i;a++)s[a]=arguments[a];var o=this,c=Date.now()-h;function g(){h=Date.now(),e.apply(o,s)}function m(){t=void 0}!d&&(r||!l||t||g(),u(),void 0===l&&c>1e3?r?(h=Date.now(),n||(t=setTimeout(l?m:g,1e3))):g():!0!==n&&(t=setTimeout(l?m:g,void 0===l?1e3-c:1e3)))}return c.cancel=function(e){var t=(e||{}).upcomingOnly;u(),d=!(void 0!==t&&t)},c}(()=>{this.resizeAds(t)});this.adsManager.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,e=>{this.onAdError(e),s&&s.disconnect(),window.removeEventListener("resize",n)}),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,()=>{this.videoPlayer.events.emit("ads-ima-contentPauseRequested"),this.state.adsActive=!0,this.setAdActiveClass(!0),this.state.isAdLoading=!1,this.handleAsyncOperation(this.videoPlayer.pause(),"Could not pause content for ad playback:"),this.videoPlayer.setPlayerVisibility(!1);let e=document.fullscreenElement;this.wasFullscreenBeforeAd=!!this.settings.fullscreenTarget&&!!e&&(e===this.settings.fullscreenTarget||this.settings.fullscreenTarget.contains(e))}),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,()=>{if(this.videoPlayer.events.emit("ads-ima-contentResumeRequested"),this.state.adsActive=!1,this.setAdActiveClass(!1),this.videoPlayer.setPlayerVisibility(!0),this.handleAsyncOperation(this.videoPlayer.play(),"Could not resume content after ad playback:"),this.wasFullscreenBeforeAd&&!document.fullscreenElement){let e=this.settings.fullscreenTarget;e&&this.handleAsyncOperation(e.requestFullscreen(),"Could not restore fullscreen after ad playback:")}this.wasFullscreenBeforeAd=!1}),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,()=>{this.exitiPhoneFullscreen()}),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED,()=>{this.state.isAdPlaying=!1,this.videoPlayer.events.emit("ads-ima-complete"),this.adContainer.style.display="none",this.setAdActiveClass(!1),this.destroyAdsManager(),this.state.adsLoaded=!1}),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.STARTED,e=>{this.adContainer.style.display="block",this.setAdActiveClass(!0),this.currentAd=e.getAd(),this.videoPlayer.events.emit("ads-ima-start"),this.state.isAdPlaying=!0,this.logger.isLogAllLevel()&&this.debugLogging()}),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.AD_CAN_PLAY,()=>{this.videoPlayer.events.emit("ads-ima-adCanPlay"),s&&s.observe(this.videoPlayer.element),window.addEventListener("resize",n,{passive:!0})}),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CLICK,()=>{this.videoPlayer.events.emit("ads-ima-click")}),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.SKIPPED,()=>{this.videoPlayer.events.emit("ads-ima-skip")}),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.IMPRESSION,e=>{this.currentAd=e.getAd(),this.videoPlayer.events.emit("ads-ima-impression")}),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.FIRST_QUARTILE,()=>{this.videoPlayer.events.emit("ads-ima-firstquartile")}),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.MIDPOINT,()=>{this.videoPlayer.events.emit("ads-ima-midpoint")}),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.THIRD_QUARTILE,()=>{this.videoPlayer.events.emit("ads-ima-thirdquartile")}),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,()=>{this.currentAd=null,this.state.isAdPlaying=!1,this.videoPlayer.events.emit("ads-ima-complete"),s&&s.disconnect(),window.removeEventListener("resize",n)}),document.addEventListener("fullscreenchange",()=>{setTimeout(()=>{this.resizeAds(this.adContainer)},1e3)}),this.startAdPlayback()}),o(this,"onAdError",e=>{this.adFullscreenCleanup?.(),this.adFullscreenCleanup=null,this.wasFullscreenBeforeAd=!1,this.logger.error("Ad Error:",e.getError()),this.videoPlayer.events.emit("ads-ima-adError",{error:e.getError()}),this.state.isAdLoading=!1,this.state.isAdPlaying=!1,this.state.adsActive=!1,this.state.adsLoaded=!1,this.setAdActiveClass(!1),this.destroyAdsManager(),this.adDisplayContainer&&(this.adContainer.style.display="none"),this.videoPlayer.setPlayerVisibility(!0),this.videoPlayer.isPaused()&&this.videoPlayer.play().catch(e=>{this.logger.warn("Could not auto-resume playback after ad error:",e)})}),e.setVersion(),this.videoPlayer=t,this._adContainer=document.createElement("div"),this._settings=i,this.logger=s,this.state={isAdPlaying:!1,isAdLoading:!1,adsLoaded:!1,adsActive:!1},this.currentAd=null}static setVersion(){"u">typeof window&&window.videoPlayerManager?.setVersion("AdApi",e.VERSION)}get adsManager(){return this._adsManager}set adsManager(e){this._adsManager=e}get adContainer(){return this._adContainer}set adContainer(e){this._adContainer=e}get settings(){return this._settings}set settings(e){this._settings={...this._settings,...e}}async setup(){window?.google?.ima||await v(),this.adContainer.className="ima-ad-container",this.adContainer.style.display="none",this.videoPlayer.element.insertAdjacentElement("afterend",this.adContainer),window.google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0),this.adDisplayContainer=new window.google.ima.AdDisplayContainer(this.adContainer,this.videoPlayer.element),this.settings.customAdUi?.enableCustomAdUi&&new g(this.videoPlayer,this,this.settings.customAdUi||{},this.logger).init()}initializeIMA(){this.adsLoader||(this.adsLoader=new window.google.ima.AdsLoader(this.adDisplayContainer)),this.adsLoader.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded,!1),this.adsLoader.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1)}setupResizeObservers(){let e=null,{element:t}=this.videoPlayer;if("ResizeObserver"in window){let i={height:t.offsetHeight,width:t.offsetWidth};e=new ResizeObserver(e=>
3{e.forEach(e=>{let{contentBoxSize:s,contentRect:n}=e;s?(s[0].blockSize!==i.height||s[0].inlineSize!==i.width)&&(i.height=s[0].blockSize,i.width=s[0].inlineSize,this.resizeAds(t)):n&&(n.height!==i.height||n.width!==i.width)&&(i.height=n.height,i.width=n.width,this.resizeAds(t))})})}return e}requestAds(e){let{element:t}=this.videoPlayer,{omidOptions:i}=this.settings,s=new window.google.ima.AdsRequest;s.adTagUrl=e??this.settings.adTag,i&&Object.entries(i).forEach(([e,t])=>{s.omidAccessModeRules[e]=t}),s.linearAdSlotWidth=t.clientWidth,s.linearAdSlotHeight=t.clientHeight,s.nonLinearAdSlotWidth=t.clientWidth,s.nonLinearAdSlotHeight=t.clientHeight/3,s.setAdWillPlayMuted(this.getWillAdPlayMuted()),this.state.isAdLoading=!0,this.adsLoader.requestAds(s)}requestAdsWithVastXml(e){let{element:t}=this.videoPlayer,{omidOptions:i}=this.settings,s=new window.google.ima.AdsRequest;s.adsResponse=e,i&&Object.entries(i).forEach(([e,t])=>{s.omidAccessModeRules[e]=t}),s.linearAdSlotWidth=t.clientWidth,s.linearAdSlotHeight=t.clientHeight,s.nonLinearAdSlotWidth=t.clientWidth,s.nonLinearAdSlotHeight=t.clientHeight/3,s.setAdWillPlayMuted(this.getWillAdPlayMuted()),this.state.isAdLoading=!0,this.adsLoader.requestAds(s)}startAdPlayback(){if(this.state.adsLoaded)return;let{element:e}=this.videoPlayer;this.state.adsLoaded=!0,this.adDisplayContainer.initialize();let t=e.clientWidth,i=e.clientHeight;try{this.adsManager.init(t,i,window.google.ima.ViewMode.NORMAL),this.adsManager.start(),this.adContainer.style.display="initial"}catch(e){this.logger.error("AdsManager could not be started",e),this.setAdActiveClass(!1),this.videoPlayer.setPlayerVisibility(!0),this.videoPlayer.play().catch(e=>{this.logger.warn("Could not resume playback after ad error (autoplay may be blocked by the browser):",e)})}}resizeAds(e){if(this.adsManager){let t=e.clientWidth,i=e.clientHeight;this.adsManager.resize(t,i,window.google.ima.ViewMode.NORMAL)}}pauseAd(){this.adsManager&&(this.adsManager.pause(),this.state.isAdPlaying=!1,this.videoPlayer.events.emit("ads-ima-pause"))}playAd(){this.adsManager&&(this.adsManager.resume(),this.state.isAdPlaying=!0,this.videoPlayer.events.emit("ads-ima-resume"))}isAdPlaying(){return this.state.isAdPlaying}isAdActive(){return this.state.adsActive}isAdLoading(){return this.state.isAdLoading}setAdActiveClass(e){this.videoPlayer.videoWrapper.classList.toggle("ima-ad-active",e)}totalAds(){return this.currentAd?this.currentAd.getAdPodInfo().getTotalAds():null}getAdPosition(){return this.currentAd?this.currentAd.getAdPodInfo().getAdPosition():null}getRemainingTime(){return this.adsManager?this.adsManager.getRemainingTime():null}getAdDuration(){return this.currentAd?this.currentAd.getDuration():null}isAdSkippable(){return this.currentAd?-1!==this.currentAd.getSkipTimeOffset():null}getAdSkippableState(){return this.adsManager?this.adsManager.getAdSkippableState():null}skipAd(){this.adsManager&&this.adsManager.skip()}learnMoreClicked(){this.adsManager.clicked()}isUiDisabled(){return this.currentAd?.isUiDisabled()}getSkipTimeOffset(){return this.currentAd?this.currentAd.getSkipTimeOffset():null}isAdLinear(){return this.currentAd?this.currentAd.isLinear():null}setVolume(e){this.adsManager&&this.adsManager.setVolume(e)}getVolume(){return this.adsManager?this.adsManager.getVolume():null}contentCompleted(){this.adsLoader?.contentComplete()}destroyAdsManager(){this.adsManager&&(this.adsManager.destroy(),this.adsManager=null)}handleAsyncOperation(e,t){Promise.resolve(e).catch(e=>{this.logger.warn(t,e)})}fullscreen(){let t=this.settings.fullscreenTarget&&!p()?this.settings.fullscreenTarget:this.adContainer;if(t.requestFullscreen)return void this.handleAsyncOperation(t.requestFullscreen(),"Could not enter fullscreen:");if(t.mozRequestFullScreen)return void this.handleAsyncOperation(t.mozRequestFullScreen(),"Could not enter fullscreen:");if(t.webkitRequestFullscreen)return void this.handleAsyncOperation(t.webkitRequestFullscreen(),"Could not enter fullscreen:");if(t.msRequestFullscreen)return void this.handleAsyncOperation(t.msRequestFullscreen(),"Could not enter fullscreen:");let i=t?.querySelector(e.visibleAdSelector);i&&i.webkitEnterFullscreen&&i.webkitEnterFullscreen()}exitiPhoneFullscreen(){this.adFullscreenCleanup?.(),this.adFullscreenCleanup=null;let t=this.adContainer?.querySelector(e.visibleAdSelector);if(!t)return;let i=this.videoPlayer.element;if(p()&&t.webkitDisplayingFullscreen&&"function"==typeof i.webkitEnterFullscreen){let e=()=>{this.adFullscreenCleanup=null;try{i.webkitEnterFullscreen?.()}catch{}};t.addEventListener("webkitendfullscreen",e,{once:!0}),this.adFullscreenCleanup=()=>t.removeEventListener("webkitendfullscreen",e)}"function"==typeof t.webkitExitFullscreen&&t.webkitExitFullscreen()}getWillAdPlayMuted(){let{adWillPlayMuted:e}=this.settings;return void 0!==e?e:this.videoPlayer.isMuted()}minimize(){document.exitFullscreen?this.handleAsyncOperation(document.exitFullscreen(),"Could not exit fullscreen:"):document.mozCancelFullScreen?this.handleAsyncOperation(document.mozCancelFullScreen(),"Could not exit fullscreen:"):document.webkitExitFullscreen?this.handleAsyncOperation(document.webkitExitFullscreen(),"Could not exit fullscreen:"):document.msExitFullscreen&&this.handleAsyncOperation(document.msExitFullscreen(),"Could not exit fullscreen:")}isFullscreen(){return!!document.fullscreenElement||!!document.webkitFullscreenElement||!!document.mozFullScreenElement||!!document.msFullscreenElement}toggleFullscreen(){this.isFullscreen()?this.minimize():this.fullscreen()}debugLogging(){try{let e={"1. currentAd.isUIDisabled":this.isUiDisabled(),"2. currentAd.isAdSippable":this.isAdSkippable()};this.isAdLinear()&&this.currentAd&&(e["3. Ad Information"]={adTag:this.settings.adTag,adId:this.currentAd.getAdId(),creativeId:this.currentAd.getCreativeId(),dealId:this.currentAd.getDealId(),adSystem:this.currentAd.getAdSystem(
3)}),this.logger.log("Ad Debug Information",e)}catch(e){this.logger.error("Failed to log ad debug message",e)}}};function y(e){let{adTag:t,adUiVariant:i,customAdUi:s,omidOptions:n,adWillPlayMuted:a,requestOnInit:r=!0,requestOnTagChange:o=!1}=e,l=(0,u.p)(),c=(0,u.q)(),g=(0,u.r)(),{_syncState:m}=(0,u.y)(),[v,p]=(0,h.useState)(!1),y=(0,h.useRef)(null),w=(0,h.useRef)(!1),f=(0,h.useRef)(t),E=(0,h.useCallback)(e=>{m(e)},[m]),C=(0,h.useCallback)(()=>{l&&(l.events.on("ads-ima-start",()=>{E({isAdPlaying:!0})}),l.events.on("ads-ima-pause",()=>{E({isAdPlaying:!1})}),l.events.on("ads-ima-resume",()=>{E({isAdPlaying:!0})}),l.events.on("ads-ima-complete",()=>{E({isAdPlaying:!1,isAdActive:!1})}),l.events.on("ads-ima-contentPauseRequested",()=>{E({isAdActive:!0,isAdLoading:!1})}),l.events.on("ads-ima-contentResumeRequested",()=>{E({isAdPlaying:!1,isAdLoading:!1,isAdActive:!1})}),l.events.on("ads-ima-adError",e=>{E({isAdPlaying:!1,isAdLoading:!1,isAdActive:!1,adError:e?.error??Error("Ad playback error")})}),l.events.on(d.a.Ended,()=>{y.current?.contentCompleted()}))},[l,E]),b=(0,h.useCallback)(e=>{if(!y.current)return void l?.logger.warn("AdApi not initialized, cannot request ads");let t=l?.store.getState();t.isAdActive||t.isAdLoading?l?.logger.warn("Skipping ad request - ads already loading or active"):(E({isAdLoading:!0}),y.current.requestAds(e))},[l,E]),P=(0,h.useCallback)(e=>{if(!y.current)return void l?.logger.warn("AdApi not initialized, cannot request ads with VAST XML");let t=l?.store.getState();t.isAdActive||t.isAdLoading?l?.logger.warn("Skipping ad request - ads already loading or active"):(E({isAdLoading:!0}),y.current.requestAdsWithVastXml(e))},[l,E]),T=(0,h.useCallback)(()=>{y.current?y.current.contentCompleted():l?.logger.warn("AdApi not initialized, cannot signal content completed")},[l]);return(0,h.useEffect)(()=>{l&&c&&!w.current&&(async()=>{w.current=!0;let e=new A(l,{adTag:t,adUiVariant:i,customAdUi:s??{enableCustomAdUi:!1},omidOptions:n,adWillPlayMuted:a},l.logger);l.registerPlugin("adApi",e),y.current=e,E({adApi:e,isAdPlaying:!1,isAdLoading:!1,isAdActive:!1}),C(),await e.setup(),e.initializeIMA(),r&&b(),p(!0)})().catch(e=>{w.current=!1,l.logger.error("Failed to initialize IMA ads",e)})},[l,c,t,i,s,n,a,r,g?.id,E,C,b]),(0,h.useEffect)(()=>{y.current&&w.current&&f.current!==t&&(f.current=t,y.current.settings={adTag:t},o&&b())},[t,o,b]),(0,h.useEffect)(()=>()=>{y.current&&(y.current.destroyAdsManager(),y.current=null),E({adApi:null,isAdPlaying:!1,isAdLoading:!1,isAdActive:!1}),w.current=!1},[E]),{requestAds:b,requestAdsWithVastXml:P,contentCompleted:T,adApi:y.current,isAdApiReady:v}}o(A,"visibleAdSelector",':not([style="display:none"]) video'),o(A,"VERSION","1.8.7")},22470:(e,t,i)=>{"use strict";function s(e){window.__tcfapi("removeEventListener",2,()=>{},e)}async function n(e=2e3){let t=Date.now();return new Promise(i=>{let s=setInterval(()=>{"u">typeof window.__tcfapi?(clearInterval(s),i({success:!0})):Date.now()-t>e&&(clearInterval(s),i({success:!1,message:`__tcfapi failed to load after ${e} seconds`}))},100)})}function a(e,t){try{return new URL(e).searchParams.get(t)}catch{let i=decodeURI(e),s=i.indexOf("?");return -1===s?null:new URLSearchParams(i.substring(s)).get(t)}}function r(e){return Object.assign(Error("videoPlayer.ads-error"),{detail:e})}async function o(e,t){let i=!1,o={binaryConsent:window.CMP_CONSENT,isGDPR:window.GDPR,tcfApi:typeof window?.__tcfapi,gdpr_consent:a(e,"gdpr_consent"),addtl_consent:a(e,"addtl_consent")};try{let e=!1,a="",l={message:a,...o,preventAdCall:!0,pingReturn:{cmpStatus:""}};if(!window.__tcfapi){let i=await n(t);if(e=i.success,l.message=(a=i.message)||"",!e)throw r(l)}window.__tcfapi&&window.__tcfapi("ping",2,e=>{if(e?.cmpStatus!=="loaded"){let t={message:"__tcfapi ping not yet loaded",...o,pingReturn:e};throw r(t)}}),await new Promise((e,t)=>{let n=setTimeout(()=>{i||(i=!0,t(r({message:"addEventListener did not complete within 500ms",...o})))},500);window.__tcfapi("addEventListener",2,(a,l)=>{if(!i){if(clearTimeout(n),i=!0,!a)return t(r({message:"No data returned to call to __tcfapi",...o,listenerSuccess:l,tcData:a}));if(!l||a?.eventStatus!=="tcloaded"&&a?.eventStatus!=="useractioncomplete")return t(r({message:"call to __tcfapi failed",...o,listenerSuccess:l,tcData:a}));if(!a?.purpose?.consents?.[1]||!a?.vendor?.consents?.[755])return t(r({message:"Incorrect consent purpose or google IMA vendor not approved",...o,listenerSuccess:l,tcData:a,purposeConsents:a?.purpose?.consents,vendorConsentGoogle:a?.vendor?.consents?.[755],vendorConsents:a?.vend
3or?.consents,preventAdCall:!0}));if(!a?.tcString||a?.tcString==="tcunavailable")return t(r({message:"TCF Consent string came back as tcunavailable",...o,listenerSuccess:l,tcString:a?.tcString}));s(a?.listenerId),e()}})})}catch(t){let e=t.detail??{message:`Miscellaneous error: ${t.message}`,...o};if(t?.detail?.tcData?.listenerId&&s(t?.detail?.tcData?.listenerId),window.dispatchEvent(new CustomEvent("videoPlayer.ads-error",{detail:e})),console.error(t,e),t.detail?.preventAdCall)return!0}return!1}i.d(t,{Ay:()=>o}),i(73932)},43690:(e,t,i)=>{"use strict";i.d(t,{A:()=>l,d:()=>a});var s=Object.defineProperty,n=(e,t,i)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?s(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i};let a=["en-us","es-es","it-it","ja-jp","nl-nl","zh-cn","zh-tw"],r={"hearst-player-provider":{"en-us":async()=>i.e(92481).then(i.bind(i,92481)),"es-es":async()=>i.e(94514).then(i.bind(i,94514)),"it-it":async()=>i.e(31168).then(i.bind(i,31168)),"ja-jp":async()=>i.e(3708).then(i.bind(i,3708)),"nl-nl":async()=>i.e(6025).then(i.bind(i,6025)),"zh-cn":async()=>i.e(14910).then(i.bind(i,14910)),"zh-tw":async()=>i.e(70951).then(i.bind(i,70951))},"video-player-addons":{"en-us":async()=>i.e(98141).then(i.bind(i,98141)),"es-es":async()=>i.e(59258).then(i.bind(i,59258)),"it-it":async()=>i.e(28417).then(i.bind(i,28417)),"ja-jp":async()=>i.e(14086).then(i.bind(i,14086)),"nl-nl":async()=>i.e(53658).then(i.bind(i,53658)),"zh-cn":async()=>i.e(64601).then(i.bind(i,64601)),"zh-tw":async()=>i.e(59638).then(i.bind(i,59638))},"video-player-react":{"en-us":async()=>i.e(87984).then(i.bind(i,87984)),"es-es":async()=>i.e(39286).then(i.bind(i,39286)),"it-it":async()=>i.e(86581).then(i.bind(i,86581)),"ja-jp":async()=>i.e(43855).then(i.bind(i,43855)),"nl-nl":async()=>i.e(93395).then(i.bind(i,93395)),"zh-cn":async()=>i.e(99582).then(i.bind(i,99582)),"zh-tw":async()=>i.e(26270).then(i.bind(i,26270))}},o=class e{static async loadModules(t){let i=(t||e.getCurrentLocale())?.toLowerCase();return Promise.all(Object.entries(r).map(([t,s])=>(s[i]||s["en-us"])().then(i=>e.modules.set(t,i))))}static async load(t,i){return(await Promise.all([t,e.loadModules(i)]))[0]}static getModule(t){return e.modules.get(t)}static getCurrentLocale(){return e.language}static setCurrentLocale(t){e.language=t}};n(o,"language","en-us"),n(o,"modules",new Map);var l=o},49814:(e,t,i)=>{"use strict";i.d(t,{a:()=>n});var s=Object.defineProperty,n=(e,t,i)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?s(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i}},52904:(e,t,i)=>{"use strict";function s(e,t,i){var s,n=i||{},a=n.noTrailing,r=void 0!==a&&a,o=n.noLeading,l=void 0!==o&&o,d=n.debounceMode,h=void 0===d?void 0:d,u=!1,c=0;function g(){s&&clearTimeout(s)}function m(){for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var o=this,d=Date.now()-c;function m(){c=Date.now(),t.apply(o,n)}function v(){s=void 0}!u&&(l||!h||s||m(),g(),void 0===h&&d>e?l?(c=Date.now(),r||(s=setTimeout(h?v:m,e))):m():!0!==r&&(s=setTimeout(h?v:m,void 0===h?e-d:e)))}return m.cancel=function(e){var t=(e||{}).upcomingOnly;g(),u=!(void 0!==t&&t)},m}i.d(t,{n:()=>s})},55502:()=>{},59891:(e,t,i)=>{"use strict";i.d(t,{a:()=>a,b:()=>o,c:()=>l,d:()=>d});var s=Object.defineProperty,n=e=>{throw TypeError(e)},a=(e,t,i)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?s(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},r=(e,t,i)=>t.has(e)||n("Cannot "+i),o=(e,t,i)=>(r(e,t,"read from private field"),i?i.call(e):t.get(e)),l=(e,t,i)=>t.has(e)?n("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),d=(e,t,i,s)=>(r(e,t,"write to private field"),s?s.call(e,i):t.set(e,i),i)},70736:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var s=i(71055),n=i(55837),a=i(7751),r={position:"absolute",width:"100%",height:"100%",objectFit:"cover",top:0,left:0,zIndex:20},o={width:"100%",height:"100%",objectFit:"cover"},l={height:"64px",width:"64px",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",border:"none",background:"none"},d=(0,s.memo)(function({ImgComponent:e,alt:t,...i}){return(0,a.Y)(e,{...i,alt:t||"Video poster",style:o})}),h=function({imgComponent:e,isVisible:t,onClick:i,className:s="",showPlayButton:h=!0,...u}){let c=(0,n.p)(),g=(0,n.c)(),m=(0,n.j)(),v=()=>{"function"==typeof i?i():c&&c.play().catch(e=>{c.logger.error("Unable to start playback from the poster",e)})};return(0,a.FD)("div",{style:{visibility:("boolean"==typeof t?t:!g&&null===m)?"visible":"hidden",...r},className:s,onClick:h?v:void 0,children:[h?(0,a.Y)("button",{type:"button",onClick:v,style:l,children:(0,a.Y)("img",{src:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23ffffff" viewBox="0 0 256 256">%0A%09<path d="M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z">%0A</path></svg>',width:60,height:60,alt:"Play video"})}):null,e?(0,a.Y)(d,{ImgComponent:e,...u}):(0,a.Y)("img",{decoding:"async",loading:"lazy",fetchPriority:"low",...u,alt:u.alt||"Video poster",className:"poster-image",style:o})]})}},73932:(e,t,i)=>{"use strict";i.d(t,{a:()=>n});var s=Object.defineProperty,n=(e,t,i)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?s(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i}},85272:(e,t,i)=>{"use strict";async function s({videoElement:e,logger:t},i){let n=e[i];if(!n)throw Error("Method does not exist");if("function"==typeof n)try{let t=Reflect.apply(n,e,[]);await Promise.resolve(t)}catch(e){t.error(e)}}function n(e,t,i){let s=e.getElementsByClassName(i)[0];s.classList.add(t),s.classList.remove(i)}function a(e){return e<10?`0${e}`:e.toString()}function r(e){if("number"!=typeof e||Number.isNaN(e))return"";let t=Math.floor(e/3600),i=Math.floor(e%3600/60),s=Math.floor(e%60);return t>0?`${t}:${a(i)}:${a(s)}`:`${i}:${a(s)}`}i.d(t,{a:()=>s,b:()=>n,c:()=>r})},86171:(e,t,i)=>{"use strict";let s;i.d(t,{lZ:()=>n});var n=((s=n||{}).Abort="abort",s.CanPlay="canplay",s.CanPlayThrough="canplaythrough",s.DurationChange="durationchange",s.Emptied="emptied",s.Ended="ended",s.Error="error",s.LoadedData="loadeddata",s.LoadedMetadata="loadedmetadata",s.LoadStart="loadstart",s.Pause="pause",s.Play="play",s.Playing="playing",s.RateChange="ratechange",s.Resize="resize",s.Seeked="seeked",s.Seeking="seeking",s.Stalled="stalled",s.Suspend="suspend",s.VolumeChange="volumechange",s.Waiting="waiting",s.TimeUpdate="timeupdate",s);Object.values(n),i(83061)},91039:(e,t,i)=>{"use strict";var s;function n(e){return new Promise((t,i)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>i(e.error)})}function a(e,t){let i;return(s,a)=>(()=>
3{if(i)return i;let s=indexedDB.open(e);return s.onupgradeneeded=()=>s.result.createObjectStore(t),(i=n(s)).then(e=>{e.onclose=()=>i=void 0},()=>{i=void 0}),i})().then(e=>a(e.transaction(t,s).objectStore(t)))}function r(){return s||(s=a("keyval-store","keyval")),s}async function o(e){let t=await function(e=r()){return e("readonly",e=>{var t;if(e.getAllKeys)return n(e.getAllKeys());let i=[];return(t=e=>i.push(e.key),e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},n(e.transaction)).then(()=>i)})}(e);return t.length>50?(await function(e=r()){return e("readwrite",e=>(e.clear(),n(e.transaction)))}(e),null):new Set(t.filter(e=>"string"==typeof e))}async function l(e,t){var i;if(!e?.length)return[];let s=await o(t);if(!s)return e;let n=(i=e=>e,e.reduce((e,t)=>{var n;return s.has((n=i(t),`video/viewedVideos/${n}`))?e.viewed.push(t):e.unwatched.push(t),e},{viewed:[],unwatched:[]}));return[...n.unwatched,...n.viewed]}function d(){return a("video-db","watched-videos-store")}i.d(t,{mD:()=>d,$N:()=>l}),i(49814)},93348:(e,t,i)=>{"use strict";i.d(t,{a3:()=>s.c,ku:()=>s.b,zq:()=>s.a});var s=i(85272);i(59891)}}]);

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.