PageSourceSearch

https://dashboard.thedolcediet.com/_next/static/chunks/reactPlayerYouTube.107a9d3c9d703eaf.js

js thedolcediet.com collected 2026-09-25 02:51:47 UTC 13,832 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4439],{99790:function(e,t,a){var o,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var a in t)r(e,a,{get:t[a],enumerable:!0})})(l,{AUDIO_EXTENSIONS:()=>O,DASH_EXTENSIONS:()=>C,FLV_EXTENSIONS:()=>S,HLS_EXTENSIONS:()=>E,MATCH_URL_DAILYMOTION:()=>g,MATCH_URL_FACEBOOK:()=>h,MATCH_URL_FACEBOOK_WATCH:()=>f,MATCH_URL_KALTURA:()=>v,MATCH_URL_MIXCLOUD:()=>_,MATCH_URL_MUX:()=>d,MATCH_URL_SOUNDCLOUD:()=>p,MATCH_URL_STREAMABLE:()=>m,MATCH_URL_TWITCH_CHANNEL:()=>P,MATCH_URL_TWITCH_VIDEO:()=>w,MATCH_URL_VIDYARD:()=>T,MATCH_URL_VIMEO:()=>y,MATCH_URL_WISTIA:()=>b,MATCH_URL_YOUTUBE:()=>u,VIDEO_EXTENSIONS:()=>A,canPlay:()=>I}),e.exports=(o=l,((e,t,a,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of s(t))i.call(e,l)||l===a||r(e,l,{get:()=>t[l],enumerable:!(o=n(t,l))||o.enumerable});return e})(r({},"__esModule",{value:!0}),o));var c=a(56281);const u=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,p=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,y=/vimeo\.com\/(?!progressive_redirect).+/,d=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,h=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,f=/^https?:\/\/fb\.watch\/.+$/,m=/streamable\.com\/([a-z0-9]+)$/,b=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,w=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,P=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,g=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,_=/mixcloud\.com\/([^/]+\/[^/]+)/,T=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,v=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,O=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,A=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,E=/\.(m3u8)($|\?)/i,C=/\.(mpd)($|\?)/i,S=/\.(flv)($|\?)/i,U=e=>{if(e instanceof Array){for(const t of e){if("string"===typeof t&&U(t))return!0;if(U(t.src))return!0}return!1}return!(!(0,c.isMediaStream)(e)&&!(0,c.isBlobUrl)(e))||(O.test(e)||A.test(e)||E.test(e)||C.test(e)||S.test(e))},I={youtube:e=>e instanceof Array?e.every((e=>u.test(e))):u.test(e),soundcloud:e=>p.test(e)&&!O.test(e),vimeo:e=>y.test(e)&&!A.test(e)&&!E.test(e),mux:e=>d.test(e),facebook:e=>h.test(e)||f.test(e),streamable:e=>m.test(e),wistia:e=>b.test(e),twitch:e=>w.test(e)||P.test(e),dailymotion:e=>g.test(e),mixcloud:e=>_.test(e),vidyard:e=>T.test(e),kaltura:e=>v.test(e),file:U}},85034:function(e,t,a){var o,r=Object.create,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,a,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of i(t))c.call(e,r)||r===a||n(e,r,{get:()=>t[r],enumerable:!(o=s(t,r))||o.enumerable});return e},p=(e,t,a)=>(((e,t,a)=>{t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!==typeof t?t+"":t,a),a),y={};((e,t)=>{for(var a in t)n(e,a,{get:t[a],enumerable:!0})})(y,{default:()=>P}),e.exports=(o=y,u(n({},"__esModule",{value:!0}),o));var d=((e,t,a)=>(a=null!=e?r(l(e)):{},u(!t&&e&&e.__esModule?a:n(a,"default",{value:e,enumerable:!0}),e)))(a(67294)),h=a(56281),f=a(99790);const m=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,w=/youtube-nocookie\.com/;class P extends d.Component{constructor(){super(...arguments),p(this,"callPlayer",h.callPlayer),p(this,"parsePlaylist",(e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(m.test(e)){const[,t]=e.match(m);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}})),p(this,"onStateChange",(e=>{const{data:t}=e,{onPlay:a,onPause:o,onBuffer:r,onBufferEnd:n,onEnded:s,onReady:i,loop:l,config:{playerVars:c,onUnstarted:u}}=this.props,{UNSTARTED:p,PLAYING:y,PAUSED:d,BUFFERING:h,ENDED:f,CUED:m}=window.YT.PlayerState;if(t===p&&u(),t===y&&(a(),n()),t===d&&o(),t===h&&r(),t===f){const e=!!this.callPlayer("getPlaylist");l&&!e&&(c.start?this.seekTo(c.start):this.play()),s()}t===m&&i()})),p(this,"mute",(()=>{this.callPlayer("mute")})),p(this,"unmute",(()=>{this.callPlayer("unMute")})),p(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||m.test(e)?null:e.match(f.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:a,muted:o,playsinline:r,controls:n,loop:s,config:i,onError:l}=this.props,{playerVars:c,embedOptions:u}=i,p=this.getID(e);if(t)return m.test(e)||b.test(e)||e instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(e)):void this.player.cueVideoById({videoId:p,startSeconds:(0,h.parseStartTime)(e)||c.start,endSeconds:(0,h.parseEndTime)(e)||c.end});(0,h.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:p,playerVars:{autoplay:a?1:0,mute:o?1:0,controls:n?1:0,start:(0,h.parseStartTime)(e),end:(0,h.parseEndTime)(e),origin:window.location.origin,playsinline:r?1:0,...this.parsePlaylist(e),...c},events:{onReady:()=>{s&&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=>l(e.data)},host:w.test(e)?"https://www.youtube-nocookie.com":void 0,...u}))}),l),u.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s 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(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return d.default.createElement("div",{style:t},d.default.createElement("div",{ref:this.ref}))}}p(P,"displayName","YouTube"),p(P,"canPlay",f.canPlay.youtube)},56281:function(e,t,a){var o,r=Object.create,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,a,o)=>
1{if(t&&"object"===typeof t||"function"===typeof t)for(let r of i(t))c.call(e,r)||r===a||n(e,r,{get:()=>t[r],enumerable:!(o=s(t,r))||o.enumerable});return e},p=(e,t,a)=>(a=null!=e?r(l(e)):{},u(!t&&e&&e.__esModule?a:n(a,"default",{value:e,enumerable:!0}),e)),y={};((e,t)=>{for(var a in t)n(e,a,{get:t[a],enumerable:!0})})(y,{callPlayer:()=>M,getConfig:()=>U,getSDK:()=>S,isBlobUrl:()=>k,isMediaStream:()=>R,lazy:()=>m,omit:()=>I,parseEndTime:()=>v,parseStartTime:()=>T,queryString:()=>A,randomString:()=>O,supportsWebKitPresentationMode:()=>D}),e.exports=(o=y,u(n({},"__esModule",{value:!0}),o));var d=p(a(67294)),h=p(a(49090)),f=p(a(9996));const m=e=>d.default.lazy((async()=>{const t=await e();return"function"===typeof t.default?t:t.default})),b=/[?&#](?:start|t)=([0-9hms]+)/,w=/[?&#]end=([0-9hms]+)/,P=/(\d+)(h|m|s)/g,g=/^\d+$/;function _(e,t){if(e instanceof Array)return;const a=e.match(t);if(a){const e=a[1];if(e.match(P))return function(e){let t=0,a=P.exec(e);for(;null!==a;){const[,o,r]=a;"h"===r&&(t+=60*parseInt(o,10)*60),"m"===r&&(t+=60*parseInt(o,10)),"s"===r&&(t+=parseInt(o,10)),a=P.exec(e)}return t}(e);if(g.test(e))return parseInt(e)}}function T(e){return _(e,b)}function v(e){return _(e,w)}function O(){return Math.random().toString(36).substr(2,5)}function A(e){return Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&")}function E(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const C={},S=function(e){0;return e}((function(e,t,a=null,o=(()=>!0),r=h.default){const n=E(t);return n&&o(n)?Promise.resolve(n):new Promise(((o,n)=>{if(C[e])return void C[e].push({resolve:o,reject:n});C[e]=[{resolve:o,reject:n}];const s=t=>{C[e].forEach((e=>e.resolve(t)))};if(a){const e=window[a];window[a]=function(){e&&e(),s(E(t))}}r(e,(o=>{o?(C[e].forEach((e=>e.reject(o))),C[e]=null):a||s(E(t))}))}))}));function U(e,t){return(0,f.default)(t.config,e.config)}function I(e,...t){const a=[].concat(...t),o={},r=Object.keys(e);for(const n of r)-1===a.indexOf(n)&&(o[n]=e[n]);return o}function M(e,...t){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}return this.player[e](...t)}function R(e){return"undefined"!==typeof window&&"undefined"!==typeof window.MediaStream&&e instanceof window.MediaStream}function k(e){return/^blob:/.test(e)}function D(e=document.createElement("video")){const t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"===typeof e.webkitSetPresentationMode&&t}},60356:function(e,t,a){var o,r=Object.create,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,a,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let r of i(t))c.call(e,r)||r===a||n(e,r,{get:()=>t[r],enumerable:!(o=s(t,r))||o.enumerable});return e},p=(e,t,a)=>(((e,t,a)=>{t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!==typeof t?t+"":t,a),a),y={};((e,t)=>{for(var a in t)n(e,a,{get:t[a],enumerable:!0})})(y,{default:()=>P}),e.exports=(o=y,u(n({},"__esModule",{value:!0}),o));var d=((e,t,a)=>(a=null!=e?r(l(e)):{},u(!t&&e&&e.__esModule?a:n(a,"default",{value:e,enumerable:!0}),e)))(a(67294)),h=a(38045),f=a(71776);const m=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,w=/youtube-nocookie\.com/;class P extends d.Component{constructor(){super(...arguments),p(this,"callPlayer",h.callPlayer),p(this,"parsePlaylist",(e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(m.test(e)){const[,t]=e.match(m);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}})),p(this,"onStateChange",(e=>{const{data:t}=e,{onPlay:a,onPause:o,onBuffer:r,onBufferEnd:n,onEnded:s,onReady:i,loop:l,config:{playerVars:c,onUnstarted:u}}=this.props,{UNSTARTED:p,PLAYING:y,PAUSED:d,BUFFERING:h,ENDED:f,CUED:m}=window.YT.PlayerState;if(t===p&&u(),t===y&&(a(),n()),t===d&&o(),t===h&&r(),t===f){const e=!!this.callPlayer("getPlaylist");l&&!e&&(c.start?this.seekTo(c.start):this.play()),s()}t===m&&i()})),p(this,"mute",(()=>{this.callPlayer("mute")})),p(this,"unmute",(()=>{this.callPlayer("unMute")})),p(this,"ref",(e=>{this.container=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||m.test(e)?null:e.match(f.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:a,muted:o,playsinline:r,controls:n,loop:s,config:i,onError:l}=this.props,{playerVars:c,embedOptions:u}=i,p=this.getID(e);if(t)return m.test(e)||b.test(e)||e instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(e)):void this.player.cueVideoById({videoId:p,startSeconds:(0,h.parseStartTime)(e)||c.start,endSeconds:(0,h.parseEndTime)(e)||c.end});(0,h.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:p,playerVars:{autoplay:a?1:0,mute:o?1:0,controls:n?1:0,start:(0,h.parseStartTime)(e),end:(0,h.parseEndTime)(e),origin:window.location.origin,playsinline:r?1:0,...this.parsePlaylist(e),...c},events:{onReady:()=>{s&&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=>l(e.data)},host:w.test(e)?"https://www.youtube-nocookie.com":void 0,...u}))}),l),u.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s 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(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return d.default.createElement("div",{style:t},d.default.createElement("div",{ref:this.ref}))}}p(P,"displayName","YouTube"),p(P,"canPlay",f.canPlay.youtube)}}]);

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.