PageSourceSearch

https://www.thepowerplant.org/_next/static/chunks/reactPlayerTwitch.4a4e990c813e60d2.js

js thepowerplant.org collected 2026-09-24 08:54:00 UTC 3,019 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d2f435d4-5745-4399-8ffa-36337808c228",e._sentryDebugIdIdentifier="sentry-dbid-d2f435d4-5745-4399-8ffa-36337808c228")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6216],{4422:function(e,t,r){let s,a,l;var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,d=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,u=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y=(e,t,r,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of p(t))h.call(e,a)||a===r||i(e,a,{get:()=>t[a],enumerable:!(s=o(t,a))||s.enumerable});return e},c=(e,t,r)=>(u(e,"symbol"!=typeof t?t+"":t,r),r),f={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(f,{default:()=>P}),e.exports=y(i({},"__esModule",{value:!0}),f);var b=(l=null!=(s=r(1248))?n(d(s)):{},y(!a&&s&&s.__esModule?l:i(l,"default",{value:s,enumerable:!0}),s)),m=r(8375),g=r(4197);class P extends b.Component{constructor(){super(...arguments),c(this,"callPlayer",m.callPlayer),c(this,"playerID",this.props.config.playerId||`twitch-player-${(0,m.randomString)()}`),c(this,"mute",()=>{this.callPlayer("setMuted",!0)}),c(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,t){let{playsinline:r,onError:s,config:a,controls:l}=this.props,n=g.MATCH_URL_TWITCH_CHANNEL.test(e),i=n?e.match(g.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(g.MATCH_URL_TWITCH_VIDEO)[1];if(t){n?this.player.setChannel(i):this.player.setVideo("v"+i);return}(0,m.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then(t=>{this.player=new t.Player(this.playerID,{video:n?"":i,channel:n?i:"",height:"100%",width:"100%",playsinline:r,autoplay:this.props.playing,muted:this.props.muted,controls:!!n||l,time:(0,m.parseStartTime)(e),...a.options});let{READY:s,PLAYING:o,PAUSE:p,ENDED:d,ONLINE:h,OFFLINE:u,SEEK:y}=t.Player;this.player.addEventListener(s,this.props.onReady),this.player.addEventListener(o,this.props.onPlay),this.player.addEventListener(p,this.props.onPause),this.player.addEventListener(d,this.props.onEnded),this.player.addEventListener(y,this.props.onSeek),this.player.addEventListener(h,this.props.onLoaded),this.player.addEventListener(u,this.props.onLoaded)},s)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,t=!0){this.callPlayer("seek",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){return b.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}c(P,"displayName","Twitch"),c(P,"canPlay",g.canPlay.twitch),c(P,"loopOnEnded",!0)}}]);

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.