1(()=>{"use strict";function e(e){switch(e){case"play":return"start";case"pause":return"pause";case"buffering":return"buffering";case"ended":return"complete";case"seeked":return"seek";default:return""}}function t({provider:e,status:t,url:n,title:i,currentTime:r,duration:o,percent:a,element:d}){const c=Number(o)||0,u=Number(r)||0;let l=0;"number"==typeof a?l=a:c>0&&(l=Math.floor(u/c*100));const s={"gtm.videoProvider":e,"gtm.videoUrl":n,"gtm.videoTitle":i,"gtm.videoStatus":t,"gtm.videoCurrentTime":Math.floor(u),"gtm.videoDuration":Math.floor(c),"gtm.videoPercent":l},m=function(e){let t=e;if("function"==typeof e)try{t=e()}catch(e){return}if(!t||1!==t.nodeType||!t.isConnected||"function"!=typeof t.getBoundingClientRect)return;const n=t.ownerDocument&&t.ownerDocument.defaultView;if(!n)return;if("hidden"===n.document.visibilityState)return!1;if("function"==typeof n.getComputedStyle){const e=n.getComputedStyle(t);if(e&&("hidden"===e.visibility||"none"===e.display))return!1}const i=t.getBoundingClientRect();if(!i||i.width<=0||i.height<=0)return!1;const r=n.innerHeight||n.document.documentElement.clientHeight||0,o=n.innerWidth||n.document.documentElement.clientWidth||0;return i.top<r&&i.bottom>0&&i.left<o&&i.right>0}(d);return"boolean"==typeof m&&(s["gtm.videoVisible"]=m),s}const n=Object.create(null);var i;i=function(){!function(i,r,o,a){const d=function(r){if(r.closest("[data-gtm4wp-media-wired]"))return;if(!o())return;const a=r.parentNode,d=a?Array.prototype.indexOf.call(a.childNodes,r):-1;r.setAttribute("data-gtm4wp-media-wired","1");try{!function(i){let r;try{r=new URL(i.getAttribute("src"),window.location.href).searchParams}catch(e){return}const o=r.get("channel"),a=r.get("video"),d=r.get("collection");if(!o&&!a&&!d)return;if(!i.parentNode)return;window.gtm4wp_twitch_frame_index=window.gtm4wp_twitch_frame_index||0;const c=document.createElement("div");c.id="gtm4wp-twitch-"+window.gtm4wp_twitch_frame_index++,c.setAttribute("data-gtm4wp-media-wired","1"),i.parentNode.replaceChild(c,i);const u={width:i.getAttribute("width")||"100%",height:i.getAttribute("height")||"100%"};o&&(u.channel=o),a&&(u.video=a),d&&(u.collection=d),function(i,r,o,a,d){const c=o||r||a||"";let u="";o?u="https://www.twitch.tv/videos/"+o:r&&(u="https://www.twitch.tv/"+r);let l=null;const s=function(){const e="function"==typeof i.getCurrentTime?i.getCurrentTime():0;return isNaN(e)?0:e||0},m=function(){const e="function"==typeof i.getDuration?i.getDuration():0;return isNaN(e)?0:e||0},w=function(){return{id:c,author:r||"",title:c,url:u,duration:m()}},f=function(n){window[gtm4wp_datalayer_name].push({event:"gtm4wp.mediaPlayerStateChange",mediaType:"twitch",mediaData:w(),mediaCurrentTime:s(),mediaPlayerState:n,...t({provider:"twitch",status:e(n),url:u,title:c,currentTime:s(),duration:m(),element:d})})},p=function(e){window[gtm4wp_datalayer_name].push({event:"gtm4wp.mediaPlayerEvent",mediaType:"twitch",mediaData:w(),mediaCurrentTime:s(),mediaPlayerEvent:e,...t({provider:"twitch",status:"",url:u,title:c,currentTime:s(),duration:m(),element:d})})},h=function(){const e=m();if(!e)return;
1const i=s(),r=Math.floor(i/e*100);!function(e,t,n,i,r){let o=e[t];Array.isArray(o)||(o=[],e[t]=o);for(let e=0;e<100;e+=10)n>e&&-1===o.indexOf(e)&&(o.push(e),r(e))}(n,c,r,0,function(n){window[gtm4wp_datalayer_name].push({event:"gtm4wp.mediaPlaybackPercentage",mediaType:"twitch",mediaData:w(),mediaCurrentTime:i,mediaPercentage:n,...t({provider:"twitch",status:"progress",url:u,title:c,currentTime:i,duration:e,percent:n,element:d})})})},g=function(){l&&(clearInterval(l),l=null)};i.addEventListener(Twitch.Player.READY,function(){window[gtm4wp_datalayer_name].push({event:"gtm4wp.mediaPlayerReady",mediaType:"twitch",mediaData:w(),mediaCurrentTime:s(),...t({provider:"twitch",status:"",url:u,title:c,currentTime:s(),duration:m(),element:d})})}),i.addEventListener(Twitch.Player.PLAY,function(){f("play"),l||(l=setInterval(h,1e3))}),i.addEventListener(Twitch.Player.PAUSE,function(){f("pause"),g()}),i.addEventListener(Twitch.Player.ENDED,function(){f("ended"),g()}),i.addEventListener(Twitch.Player.SEEK,function(){f("seeked")}),i.addEventListener(Twitch.Player.ONLINE,function(){p("online")}),i.addEventListener(Twitch.Player.OFFLINE,function(){p("offline")})}(new Twitch.Player(c.id,u),o,a,d,c)}(r)}catch(e){}if(a&&d>-1&&r.parentNode!==a){const e=a.childNodes[d];e&&1===e.nodeType&&(e.matches(i)||e.querySelector(i))&&e.setAttribute("data-gtm4wp-media-wired","1")}},c=a;let u=!1;const l=function(){document.querySelectorAll(i).forEach(d)},s=function(){if(u)return;const e=!window.gtm4wp_media_gate_expected||!0===window.gtm4wp_media_sdk_allowed;if(window.gtm4wp_media_sdk_blocked||!e)return u=!0,void(!window.gtm4wp_media_sdk_blocked&&"undefined"!=typeof gtm4wp_console_log&>m4wp_console_log&&window.console&&window.console.warn&&window.console.warn("GTM4WP: a media player library was not requested because gtm4wp-media-gate.js did not run. That is expected if a consent manager or an optimization plugin blocked it. Players already on the page are still tracked; only the events that need this library are missing. Library: "+c));if(u=!0,o())return;let t=null;const n=document.getElementsByTagName("script");for(let e=0;e<n.length;e++)if(n[e].getAttribute("src")===c){t=n[e];break}t||(t=document.createElement("script"),t.async=!0,t.src=c,(document.head||document.documentElement).appendChild(t)),t.addEventListener("load",l)};a&&"function"==typeof a.subscribe&&a.subscribe(l);const m=document.querySelectorAll(i);m.forEach(d),m.length&&s(),window.gtm4wp_media_observe_dynamic&&(window.gtm4wp_media_scanners=(window.gtm4wp_media_scanners||[]).filter(function(e){return e.selector!==i}),window.gtm4wp_media_scanners.push({selector:i,wireOnce:d,ensureSdk:s}),window.gtm4wp_media_observer||(window.gtm4wp_media_observer=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){1===e.nodeType&&window.gtm4wp_media_scanners.forEach(function(t){let n=!1;e.matches(t.selector)&&(t.wireOnce(e),n=!0);const i=e.querySelectorAll(t.selector);i.forEach(t.wireOnce),(n||i.length)&&t.ensureSdk()})})})}),window.gtm4wp_media_observer.observe(document.body||document.documentElement,{childList:!0,subtree:!0})),window.gtm4wp_media_observer)}('iframe[src*="player.twitch.tv"]',0,function(){return"undefined"!=typeof Twitch&&void 0!==Twitch.Player},"https://embed.twitch.tv/embed/v1.js")},"loading"===document.readyState?window.addEventListener("DOMContentLoaded",i):i()})();
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.