1(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[74659],{901157(e,t,a){let l,s;var r=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,c=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,y=(e,t,a,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of n(t))p.call(e,s)||s===a||i(e,s,{get:()=>t[s],enumerable:!(l=o(t,s))||l.enumerable});return e},u=(e,t,a)=>{let l;return(l="symbol"!=typeof t?t+"":t)in e?i(e,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[l]=a,a},h={},d={default:()=>T};for(var P in d)i(h,P,{get:d[P],enumerable:!0});e.exports=y(i({},"__esModule",{value:!0}),h);var m=(s=null!=(l=a(933578))?r(c(l)):{},y(l&&l.__esModule?s:i(s,"default",{value:l,enumerable:!0}),l)),g=a(9624),b=a(587846);let f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,w=/user\/([a-zA-Z0-9_-]+)\/?/,k=/youtube-nocookie\.com/;class T extends m.Component{constructor(){super(...arguments),u(this,"callPlayer",g.callPlayer),u(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){let[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(w.test(e)){let[,t]=e.match(w);return{listType:"user_uploads",list:t}}return{}}),u(this,"onStateChange",e=>{let{data:t}=e,{onPlay:a,onPause:l,onBuffer:s,onBufferEnd:r,onEnded:i,onReady:o,loop:n,config:{playerVars:c,onUnstarted:p}}=this.props,{UNSTARTED:y,PLAYING:u,PAUSED:h,BUFFERING:d,ENDED:P,CUED:m}=window.YT.PlayerState;if(t===y&&p(),t===u&&(a(),r()),t===h&&l(),t===d&&s(),t===P){let e=!!this.callPlayer("getPlaylist");n&&!e&&(c.start?this.seekTo(c.start):this.play()),i()}t===m&&o()}),u(this,"mute",()=>{this.callPlayer("mute")}),u(this,"unmute",()=>{this.callPlayer("unMute")}),u(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(b.MATCH_URL_YOUTUBE)[1]}load(e,t){let{playing:a,muted:l,playsinline:s,controls:r,loop:i,config:o,onError:n}=this.props,{playerVars:c,embedOptions:p}=o,y=this.getID(e);t?f.test(e)||w.test(e)||e instanceof Array?this.player.loadPlaylist(this.parsePlaylist(e)):this.player.cueVideoById({videoId:y,startSeconds:(0,g.parseStartTime)(e)||c.start,endSeconds:(0,g.parseEndTime)(e)||c.end}):((0,g.getSDK)("https://www.youtube.com/iframe_api","YT","onYouTubeIframeAPIReady",e=>e.loaded).then(t=>{this.container&&(this.player=new t.Player(this.container,{width:"100%",height:"100%",videoId:y,playerVars:{autoplay:+!!a,mute:+!!l,controls:+!!r,start:(0,g.parseStartTime)(e),end:(0,g.parseEndTime)(e),origin:window.location.origin,playsinline:+!!s,...this.parsePlaylist(e),...c},events:{onReady:()=>{i&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:e=>this.props.onPlaybackRateChange(e.data),onPlaybackQualityChange:e=>this.props.onPlaybackQualityChange(e),onStateChange:this.onStateChange,onError:e=>n(e.data)},host:k.test(e)?"https://www.youtube-nocookie.com":void 0,...p}))},n),p.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayerâs callback props instead, eg onReady, onPlay, onPause"))}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),t||this.props.playing||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){let{display:e}=this.props;return m.default.createElement("div",{style:{width:"100%",height:"100%",display:e}},m.default.createElement("div",{ref:this.ref}))}}u(T,"displayName","YouTube"),u(T,"canPlay",b.canPlay.youtube)}}]); 2//# sourceMappingURL=/packs/js/reactPlayerYouTube-272c7fa895a66762.chunk.js.map
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.