1/*! For license information please see reactPlayerYouTube.js.LICENSE.txt */ 2try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b4f12630-ce90-4f4f-8137-008f9088f675",e._sentryDebugIdIdentifier="sentry-dbid-b4f12630-ce90-4f4f-8137-008f9088f675")}()}catch(e){}!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:fewd-flagship":!0})}(),("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"flagship-m6558"},(self.webpackChunk_vsdp_flagship=self.webpackChunk_vsdp_flagship||[]).push([[8446],{39115:(e,t,n)=>{n.r(t),n.d(t,{default:()=>O});var i=n(78090);function s(e,t,n){o(e,t),t.set(e,n)}function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n){return e.set(u(e,t),n),n}function l(e,t){return e.get(u(e,t))}function u(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const d=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})/,h=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/.*?[?&]list=)([\w_-]+)/;function c(e,t={}){const n={src:p(e,t),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return t.config&&(n["data-config"]=JSON.stringify(t.config)),`\n <style>\n :host {\n display: inline-block;\n line-height: 0;\n position: relative;\n min-width: 300px;\n min-height: 150px;\n }\n iframe {\n position: absolute;\n top: 0;\n left: 0;\n }\n </style>\n <iframe${function(e){let t="";for(const n in e){const i=e[n];t+=""===i?` ${M(n)}`:` ${M(n)}="${M(`${i}`)}"`}return t}(n)}></iframe>\n `}function p(e,t){if(!e.src)return;const n=e.src.includes("-nocookie")?"https://www.youtube-nocookie.com/embed":"https://www.youtube.com/embed",i={controls:""===e.controls?null:0,autoplay:e.autoplay,loop:e.loop,mute:e.muted,playsinline:e.playsinline,preload:e.preload??"metadata",enablejsapi:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1,...t.config};if(d.test(e.src)){const t=e.src.match(d);return`${n}/${t&&t[1]}?${L(i)}`}const s=e.src.match(h);return`${n}?${L({listType:"playlist",list:s&&s[1],...i})}`}var f=new WeakMap,v=new WeakMap,g=new WeakMap,y=new WeakMap,m=new WeakMap,w=new WeakMap,b=new WeakMap,E=new WeakSet;class T extends(globalThis.HTMLElement??class{}){constructor(){var e;super(),o(this,e=E),e.add(this),a(this,"loadComplete",new C),s(this,f,void 0),s(this,v,void 0),s(this,g,0),s(this,y,!1),s(this,m,void 0),a(this,"isLoaded",!1),s(this,w,null),s(this,b,null),u(E,this,k).call(this,"config")}get config(){return l(b,this)}set config(e){r(b,this,e)}async load(){if(l(f,this))return;this.shadowRoot||this.attachShadow({mode:"open"});const e=!l(v,this);l(v,this)&&(this.loadComplete=new C,this.isLoaded=!1),r(v,this,!0),await r(f,this,Promise.resolve()),r(f,this,null),r(g,this,0),this.dispatchEvent(new Event("emptied"));let t=this.api;if(this.api=null,!this.src)return void(null==t||t.destroy());this.dispatchEvent(new Event("loadstart"));let n=this.shadowRoot.querySelector("iframe"),i=function(e){let t={};for(let n of e)t[n.name]=n.value;return t}(this.attributes);e&&n&&r(b,this,JSON.parse(n.getAttribute("data-config")||"{}")),(null==n?void 0:n.src)&&n.src===p(i,this)||(this.shadowRoot.innerHTML=c(i,this),n=this.shadowRoot.querySelector("iframe"));const s=await async function(e,t,n){return P[e]?P[e]:t&&self[t]?(await A(0),self[t]):P[e]=new Promise((function(i,s){const o=document.createElement("script");o.src=e;const a=()=>i(self[t]);n&&(self[n]=a),o.onload=()=>!1,o.onerror=s,document.head.append(o)}))}("https://www.youtube.com/iframe_api","YT","onYouTubeIframeAPIReady");this.api=new s.Player(n,{events:{onReady:()=>{r(g,this,1),this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("volumechange")),this.dispatchEvent(new Event("loadcomplete")),this.isLoaded=!0,this.loadComplete.resolve()},onError:e=>{console.error(e),r(w,this,{code:e.data,message:`YouTube iframe player error #${e.data}; visit https://developers.google.com/youtube/iframe_api_reference#onError for the full error message.`}),this.dispatchEvent(new Event("error"))}}});let o=!1;this.api.addEventListener("onStateChange",(e=>{var t;const n=e.data;if(n!==s.PlayerState.PLAYING&&n!==s.PlayerState.BUFFERING||o||(o=!0,this.dispatchEvent(new Event("play"))),n===s.PlayerState.PLAYING)this.seeking&&(r(y,this,!1),null==(t=l(m,this))||t.resolve(),this.dispatchEvent(new Event("seeked"))),r(g,this,3),this.dispatchEvent(new Event("playing"));else if(n===s.PlayerState.PAUSED){const e=Math.abs(this.currentTime-u);!this.seeking&&e>.1&&(r(y,this,!0),this.dispatchEvent(new Event("seeking"))),o=!1,this.dispatchEvent(new Event("pause"))}n===s.PlayerState.ENDED&&(o=!1,this.dispatchEvent(new Event("pause")),this.dispatchEvent(new Event("ended")),this.loop&&this.play())})),this.api.addEventListener("onPlaybackRateChange",(()=>{this.dispatchEvent(new Event("ratechange"))})),this.api.addEventListener("onVolumeChange",(()=>{this.dispatchEvent(new Event("volumechange"))})),this.api.addEventListener("onVideoProgress",(()=>{this.dispatchEvent(new Event("timeupdate"))})),await this.loadComplete;let a,u=0;setInterval((()=>{var e;const t=Math.abs(this.currentTime-u),n=this.buffered.end(this.buffered.length-1);this.seeking&&n>.1?(r(y,this,!1),null==(e=l(m,this))||e.resolve(),this.dispatchEvent(new Event("seeked"))):!this.seeking&&t>.1&&(r(y,this,!0),this.dispatchEvent(new Event("seeking"))),u=this.currentTime}),50);const d=setInterval((()=>{const e=this.buffered.end(this.buffered.length-1);e>=this.duration&&(clearInterval(d),r(g,this,4)),a!=e&&(a=e,this.dispatchEvent(new Event("progress")))}),100)}async attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"src":case"auto
2play":case"controls":case"loop":case"playsinline":this.load()}}async play(){var e,t,n;return r(m,this,null),await this.loadComplete,null==(e=this.api)||e.playVideo(),t=this,(n=(e,n)=>{let i;t.addEventListener(e,i=()=>{t.removeEventListener(e,i),n()})},(...e)=>new Promise((t=>{n(...e,((...e)=>{e.length>1?t(e):t(e[0])}))})))("playing")}async pause(){var e;return await this.loadComplete,null==(e=this.api)?void 0:e.pauseVideo()}get seeking(){return l(y,this)}get readyState(){return l(g,this)}get src(){return this.getAttribute("src")}set src(e){this.src!=e&&this.setAttribute("src",e)}get error(){return l(w,this)}get paused(){var e,t;return this.isLoaded?[-1,0,2,5].includes(null==(t=null==(e=this.api)?void 0:e.getPlayerState)?void 0:t.call(e)):!this.autoplay}get duration(){var e,t;return(null==(t=null==(e=this.api)?void 0:e.getDuration)?void 0:t.call(e))??NaN}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(e){this.autoplay!=e&&this.toggleAttribute("autoplay",Boolean(e))}get buffered(){var e,t;if(!this.isLoaded)return S();const n=(null==(e=this.api)?void 0:e.getVideoLoadedFraction())*(null==(t=this.api)?void 0:t.getDuration());return n>0?S(0,n):S()}get controls(){return this.hasAttribute("controls")}set controls(e){this.controls!=e&&this.toggleAttribute("controls",Boolean(e))}get currentTime(){var e,t;return(null==(t=null==(e=this.api)?void 0:e.getCurrentTime)?void 0:t.call(e))??0}set currentTime(e){this.currentTime!=e&&(r(m,this,new C),this.loadComplete.then((()=>{var t,n;null==(t=this.api)||t.seekTo(e,!0),this.paused&&(null==(n=l(m,this))||n.then((()=>{var e;l(m,this)&&(null==(e=this.api)||e.pauseVideo())})))})))}set defaultMuted(e){this.defaultMuted!=e&&this.toggleAttribute("muted",Boolean(e))}get defaultMuted(){return this.hasAttribute("muted")}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",Boolean(e))}set muted(e){this.muted!=e&&this.loadComplete.then((()=>{var t,n;e?null==(t=this.api)||t.mute():null==(n=this.api)||n.unMute()}))}get muted(){var e,t;return this.isLoaded?null==(t=null==(e=this.api)?void 0:e.isMuted)?void 0:t.call(e):this.defaultMuted}get playbackRate(){var e,t;return(null==(t=null==(e=this.api)?void 0:e.getPlaybackRate)?void 0:t.call(e))??1}set playbackRate(e){this.playbackRate!=e&&this.loadComplete.then((()=>{var t;null==(t=this.api)||t.setPlaybackRate(e)}))}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(e){this.playsInline!=e&&this.toggleAttribute("playsinline",Boolean(e))}get poster(){return this.getAttribute("poster")}set poster(e){this.poster!=e&&this.setAttribute("poster",`${e}`)}set volume(e){this.volume!=e&&this.loadComplete.then((()=>{var t;null==(t=this.api)||t.setVolume(100*e)}))}get volume(){var e;return this.isLoaded?(null==(e=this.api)?void 0:e.getVolume())/100:1}}function k(e){if(Object.prototype.hasOwnProperty.call(this,e)){const t=this[e];delete this[e],this[e]=t}}function M(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}function L(e){return String(new URLSearchParams(function(e){let t={};for(let n in e){let i=e[n];!0===i||""===i?t[n]=1:!1===i?t[n]=0:null!=i&&(t[n]=i)}return t}(e)))}a(T,"getTemplateHTML",c),a(T,"shadowRootOptions",{mode:"open"}),a(T,"observedAttributes",["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"]);const P={},A=e=>new Promise((t=>setTimeout(t,e)));class C extends Promise{constructor(e=()=>{}){let t,n;super(((i,s)=>{e(i,s),t=i,n=s})),this.resolve=t,this.reject=n}}function S(e,t){return Array.isArray(e)?R(e):R(null==e||null==t||0===e&&0===t?[[0,0]]:[[e,t]])}function R(e){return Object.defineProperties(e,{start:{value:t=>e[t][0]},end:{value:t=>e[t][1]}}),e}globalThis.customElements&&!globalThis.customElements.get("youtube-video")&&globalThis.customElements.define("youtube-video",T);var _=T,I=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),N={className:"class",htmlFor:"for"};function W(e){return e.toLowerCase()}function $(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e||"object"==typeof e&&null!==e?void 0:e}function j(e,t,n){var i;e[t]=n,null==n&&t in((null==(i=globalThis.HTMLElement)?void 0:i.prototype)??{})&&e.removeAttribute(t)}var O=function({react:e,tagName:t,elementClass:n,events:i,displayName:s,defaultProps:o,toAttributeName:a=W,toAttributeValue:r=$}){const l=Number.parseInt(e.version)>=19,u=e.forwardRef(((s,u)=>{var d,h;const c=e.useRef(null),p=e.useRef(new Map),f={},v={},g={},y={};for(const[e,t]of Object.entries(s)){if(I.has(e)){g[e]=t;continue}const i=a(N[e]??e);if(n.prototype&&e in n.prototype&&!(e in((null==(d=globalThis.HTMLElement)?void 0:d.prototype)??{}))&&!(null==(h=n.observedAttributes)?void 0:h.some((e=>e===i)))){y[e]=t;continue}if(e.startsWith("on")){f[e]=t;continue}const s=r(t);if(i&&null!=s&&(v[i]=String(s),l||(g[i]=s)),i&&l){const e=$(t);g[i]=s!==e?s:t}}if("undefined"!=typeof window){for(const t in f){const n=f[t],s=t.endsWith("Capture"),o=((null==i?void 0:i[t])??t.slice(2).toLowerCase()).slice(0,s?-7:void 0);e.useLayoutEffect((()=>{const e=null==c?void 0:c.current;if(e&&"function"==typeof n)return e.addEventListener(o,n,s),()=>{e.removeEventListener(o,n,s)}}),[null==c?void 0:c.current,n])}e.useLayoutEffect((()=>
2{if(null===c.current)return;const e=new Map;for(const t in y)j(c.current,t,y[t]),p.current.delete(t),e.set(t,y[t]);for(const[e,t]of p.current)j(c.current,e,void 0);p.current=e}))}if("undefined"==typeof window&&(null==n?void 0:n.getTemplateHTML)&&(null==n?void 0:n.shadowRootOptions)){const{mode:t,delegatesFocus:i}=n.shadowRootOptions,o=e.createElement("template",{shadowrootmode:t,shadowrootdelegatesfocus:i,dangerouslySetInnerHTML:{__html:n.getTemplateHTML(v,s)}});g.children=[o,g.children]}return e.createElement(t,{...o,...g,ref:e.useCallback((e=>{c.current=e,"function"==typeof u?u(e):null!==u&&(u.current=e)}),[u])})}));return u.displayName=s??n.name,u}({react:i,tagName:"youtube-video",elementClass:_,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":W(e)})}}]); 3//# sourceMappingURL=reactPlayerYouTube.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.