1"use strict";!function(e){e.account="qbr-commonwealth-games",e.templates={},e.common={},e.defaultLanguage="EN",e.widgets={},e.siteCode=window.SITE_CODE,e.paths=[{label:"dev",domain:["2030games.cwg.dev.pulselive.com"],cdn:"//2030games.cwg.dev.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api.dev.cwg-qbr.pulselive.com",api:"//api.dev.platform.pulselive.com",sso:{realm:"B2C",id:"2030-web",auth:"https://sso-test.commonwealthsport.com/auth/"}},{label:"cwgproduction",domain:["2030games.cwg.pulselive.com","amdavad2030.commonwealthsport.com"],cdn:"//amdavad2030.commonwealthsport.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api.commonwealthsport.com",api:"//api.commonwealthsport.com",sso:{realm:"B2C",id:"2030-web",auth:"https://sso.commonwealthsport.com/auth/"}},{label:"test",domain:["2030games.cwg.test.pulselive.com"],cdn:"//2030games.cwg.test.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api-test.commonwealthsport.com",api:"//api-test.commonwealthsport.com",sso:{realm:"B2C",id:"2030-web",auth:"https://sso-test.commonwealthsport.com/auth/"}},{label:"cmsdev",domain:["exp.cwg.dev.pulselive.com"],cdn:"//dev.commonwealthsport.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",api:"//api.dev.platform.pulselive.com"},{label:"cmsprod",domain:["exp.cwg.pulselive.com"],cdn:"//www.commonwealthsport.com/resources/{$CGF_RESOURCES_VERSION$}/",api:"//api.commonwealthsport.com"},{label:"cmstest",domain:["exp.cwg.test.pulselive.com"],cdn:"//test.commonwealthsport.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",api:"//api-test.commonwealthsport.com"},{label:"dev",domain:["commonwealthsportfoundation.cwg.dev.pulselive.com"],cdn:"//commonwealthsportfoundation.cwg.dev.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api.dev.cwg-qbr.pulselive.com",api:"//api.dev.platform.pulselive.com",sso:{realm:"B2C",id:"csf-web",auth:"https://sso.cwg.dev.pulselive-id.pulselive.com/auth/"}},{label:"cwgproduction",domain:["commonwealthsportfoundation.cwg.pulselive.com","commonwealthsportfoundation.com"],cdn:"//www.commonwealthsportfoundation.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api.commonwealthsport.com",api:"//api.commonwealthsport.com",sso:{realm:"B2C",id:"csf-web",auth:"https://sso.commonwealthsport.com/auth/"}},{label:"test",domain:["commonwealthsportfoundation.cwg.test.pulselive.com"],cdn:"//commonwealthsportfoundation.cwg.test.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api-test.commonwealthsport.com",api:"//api-test.commonwealthsport.com",sso:{realm:"B2C",id:"csf-web",auth:"https://sso.cwg.dev.pulselive-id.pulselive.com/auth/"}},{label:"dev",domain:["dev.commonwealthsport.pulselive.com"],cdn:"//dev.commonwealthsport.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api.dev.cwg-qbr.pulselive.com",api:"//api.dev.platform.pulselive.com",sso:{realm:"B2C",id:"cws-web",auth:"https://sso.cwg.dev.pulselive-id.pulselive.com/auth/"}},{label:"dev",domain:["youthgames2027.cwg.dev.pulselive.com"],cdn:"//youthgames2027.cwg.dev.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api.dev.cwg-qbr.pulselive.com",api:"//api.dev.platform.pulselive.com",sso:{realm:"B2C",id:"2027-web",auth:"https://sso.cwg.dev.pulselive-id.pulselive.com/auth/"}},{label:"cwgproduction",domain:["youthgames2027.cwg.pulselive.com","malta2027.com"],cdn:"//youthgames2027.cwg.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api.commonwealthsport.com",api:"//api.commonwealthsport.com",sso:{realm:"B2C",id:"2027-web",auth:"https://sso.commonwealthsport.com/auth/"}},{label:"test",domain:["youthgames2027.cwg.test.pulselive.com"],cdn:"//youthgames2027.cwg.test.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api-test.commonwealthsport.com",api:"//api-test.commonwealthsport.com",sso:{realm:"B2C",id:"2027-web",auth:"https://sso.cwg.dev.pulselive-id.pulselive.com/auth/"}},{label:"cwgproduction",domain:["uat.commonwealthsport.pulselive.com","www.commonwealthsport.com"],cdn:"//www.commonwealthsport.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api.commonwealthsport.com",api:"//api.commonwealthsport.com",sso:{realm:"B2C",id:"cws-web",auth:"https://sso.commonwealthsport.com/auth/"}},{label:"test",domain:["test.commonwealthsport.pulselive.com"],cdn:"//test.commonwealthsport.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api-test.commonwealthsport.com",api:"//api-test.commonwealthsport.com",sso:{realm:"B2C",id:"cws-web",auth:"https://sso.cwg.dev.pulselive-id.pulselive.com/auth/"}},{label:"trinbago2023_dev",domain:["dev.trinbago2023.pulselive.com"],cdn:"//dev.trinbago2023.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api.dev.cwg-qbr.pulselive.com",api:"//api.dev.platform.pulselive.com",sso:{realm:"B2C",id:"cws-web",auth:"https://sso.cwg.dev.pulselive-id.pulselive.com/auth/"}},{label:"trinbago2023_production",domain:["uat.trinbago2023.pulselive.com","www.trinbago2023.com"],cdn:"//www.trinbago2023.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api.commonwealthsport.com",api:"//api.commonwealthsport.com",sso:{realm:"B2C",id:"cws-web",auth:"https://sso.commonwealthsport.com/auth/"}},{label:"trinbago2023_test",domain:["test.trinbago2023.pulselive.com"],cdn:"//test.trinbago2023.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api-test.commonwealthsport.com",api:"//api-test.commonwealthsport.com",sso:{realm:"B2C",id:"cws-web",auth:"https://sso.cwg.dev.pulselive-id.pulselive.com/auth/"}},{label:"dev",domain:["dev.victoria2026.pulselive.com"],cdn:"//dev.victoria2026.pulselive.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api.dev.cwg-qbr.pulselive.com",cg2022:{api:"//api.dev.cwg-qbr.pulselive.com",competitionId:"d6ece347-7d85-4157-8aee-6245bec1f596"},api:"//api.dev.platform.pulselive.com",sso:{realm:"B2C",id:"g2026-web",auth:"https://sso-test.commonwealthsport.com/auth/"}},{label:"cwgproduction",domain:["uat.victoria2026.pulselive.com","web.cwg.2026.pulselive.com","www.glasgow2026.com"],schedule:"//api.commonwealthsport.com",cdn:"//www.glasgow2026.com/resources/{$CGF_RESOURCES_VERSION$}/",api:"//api.commonwealthsport.com",sso:{realm:"B2C",id:"g2026-web",auth:"https://sso.commonwealthsport.com/auth/"}},{label:"test",domain:["test.victoria2026.pulselive.com","test.glasgow2026.com"],cdn:"//test.glasgow2026.com/resources/{$CGF_RESOURCES_VERSION$}/",schedule:"//api-test.commonwealthsport.com",api:"//api-test.commonwealthsport.com",cg2022:{api:"//api-test.commonwealthsport.com",competitionId:"be2ca06c-06fe-4455-bbde-270ae039f32d"},sso:{realm:"B2C",id:"g2026-web",auth:"https://sso-test.commonwealthsport.com/auth/"}}].map(e=>(e.cdn=e.cdn.replace("{$CGF_RESOURCES_VERSION$}",window.CGF_RESOURCES_VERSION),e)),e.checkEnvironment=()=>{const o=window.location.hostname;let a;for(let s=0;s<e.paths.length;s++){const l=e.paths[s];if("undefined"!=typeof browsersyncProxy&&("localhost"===o||/^(?=.*[^\.]$)((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.?){4}$/gim.test(o))){browsersyncProxy=browsersyncProxy.replace("https://","");const t=e.paths.findIndex(e=>e.domain.indexOf(browsersyncProxy)>-1);a=e.paths[t],a.cdn="/";break}if(Array.isArray(l.domain)){const e=t(l.domain,o);if(e){l.domain=e,a=l;break}}else if(o===l.domain||o.match(new RegExp(l.domain))){a=l;break}}return a||console.error("There are no app.paths defined for this domain"),a};const t=(e,t)=>{for(let o=0;o<e.length;o++){const a=e[o];if(t===a||t.match(new RegExp(a)))return a}return null};e.environment=e.checkEnvironment();document.addEventListener("DOMContentLoaded",()=>{e.I18N.setup(),e.webView(),e.accessibility.skipLinks("skip-to-main","main-content"),e.accessibility.skipLinks("skip-to-footer","footer"),objectFitImages(),(()=>{const e=window.location.hash;if(e&&"#"!==e&&-1===e.indexOf("#!")){const t=document.getElementById(e.replace("#",""));if(t){const e=t.getBoundingClientRect(),o=170;let a=(window.pageYOffset||document.documentElement.scrollTop)+e.top-o;window.scrollTo({top:a,behavior:"smooth"})}}})()})}(PULSE.app),function(e){e.accessibility={},e.accessibility.skipLinks=(e,t)=>{const o=document.getElementById(t);o&&document.getElementById(e).addEventListener("click",e=>{e.preventDefault(),o.setAttribute("tabindex","-1"),o.focus()})}}(PULSE.app),function(e){e.FilterGroups={};const t=e=>e.map(e=>e.label).join(",");e.FilterGroups.CONTENT=[{fylterConfig:{name:"Category"},getDefaultFromSearchParams:e=>{try{return t(e.tags.tags)}catch(e){console.warn("ContentFilter getOptionsFromSearchParams, could not find tags on searchQuery",e)}return-1},getOptionsFromSearchParams:e=>{let o="";try{o=t(e.tags.tags)}catch(e){console.warn("ContentFilter getOptionsFromSearchParams, could not find tags on searchQuery",e)}const a=[{name:"All",value:-1},{name:"First Team News",value:"news,first team"}];if(a.filter(e=>e.value===o).length||!o)return a;return[...a,{name:o,value:o}]}},{fylterConfig:{name:"Competition",data:()=>[{name:"All",value:-1},{name:"Premier League",value:"FOOTBALL_COMPETITION:1"},{name:"Champions League",value:"FOOTBALL_COMPETITION:2"}]},getDefaultFromSearchParams:e=>e.references&&e.references.length?`${e.references[0].contentType}:${e.references[0].reference}`:-1}],e.FilterGroups.CRICKET=[{fylterConfig:{name:"Date"},getOptionsFromSearchParams:e=>{const t=new Date(e.endDate).getFullYear();return[{name:"All",value:-1},...[t,t-1,t-2,t-3].map(e=>({name:e,value:`01-01-${e}`}))]},getDefaultFromSearchParams:e=>`01-01-${new Date(e.endDate).getFullYear()}`},{fylterConfig:{name:"Match Types",data:()=>[{name:"All",value:"ALL"},{name:"Test",value:"TEST"},{name:"ODI",value:"ODI"},{name:"T20I",value:"T20I"},{name:"IPLT20",value:"IPLT20"},{name:"CLT20",value:"CLT20"},{name:"T20",value:"T20"},{name:"List A",value:"LIST_A"},{name:"First Class",value:"FIRST_CLASS"},{name:"World Cup",value:"CWC"},{name:"Other",value:"OTHER"}]},getDefaultFromSearchParams:e=>e.matchTypes[0]},{fylterConfig:{name:"Team Types",data:()=>[{name:"Mens",value:"m"},{name:"Womens",value:"w"},{name:"Men Youth",value:"my"}]},getDefaultFromSearchParams:e=>e.teamTypes[0]}],e.FilterGroups.FOOTBALL=[{fylterConfig:{name:"Competition",data:()=>"//api.dev.platform.pulselive.com/football/competitions?page=0&pageSize=20&detail=1",middleWares:{beforeOptionUpdate:e=>{const t=e.data.content.map(e=>({name:e.description,value:e.id,extra:e}));return[{name:"All Comps",value:"-1"}].concat(t)}}},getDefaultFromSearchParams:e=>e.comps[0]},{fylterConfig:{name:"CompSeason",dependsOn:["Competition"],data:()=>"//api.dev.platform.pulselive.com/football/competitions/{{Competition}}/compseasons?page=0&pageSize=100",middleWares:{beforeOptionUpdate:e=>{const t=e.data.content.map(e=>({name:e.label,value:e.id}));return[{name:"All CompSeasons",value:"-1"}].concat(t)},decideFilterEnabledState:e=>"-1"!==e[0].getCurrentOption().value}},getDefaultFromSearchParams:e=>e.compSeasons[0]},{fylterConfig:{name:"GameWeeks",dependsOn:["CompSeason"],data:()=>"//api.dev.platform.pulselive.com/football/compseasons/{{CompSeason}}/gameweeks",middleWares:{beforeOptionUpdate:e=>{const t=e.data.gameweeks.map(e=>({name:e.gameweek,value:e.id,extra:e}));return[{name:"All Gameweeks",value:"-1"}].concat(t)},decideFilterEnabledState:e=>"-1"!==e[0].getCurrentOption().value}},getDefaultFromSearchParams:e=>e.gameweeks[0]},{fylterConfig:{name:"HomeAway",data:()=>[{name:"Home",value:"home"},{name:"Away",value:"away"}]}}],e.FilterGroups.FootballFixturesList=[{fylterConfig:{name:"selectteam",middleWares:{beforeOptionUpdate:({data:e})=>e.teams.map(e=>({name:PULSE.I18N.lookup(`label.team.type.${e.teamType}`),value:e.id}))}},getDefaultFromSearchParams:e=>e.footballFilters.teams[0],getOptionsFromSearchParams:t=>{const o=t.footballClubList[0];return`${e.environment.api}/football/clubs/${o.id}?language=${e.language}`}},{fylterConfig:{name:"selectcompetition",dependsOn:["selectteam"],data:()=>`${e.environment.api}
1/football/competitions/?teams={{selectteam}}&pageSize=20`,middleWares:{beforeOptionUpdate:({data:e})=>{const t=e.content.map(e=>({name:e.description,value:e.id}));return[{name:PULSE.I18N.lookup("label.all"),value:-1},...t]}}},getDefaultFromSearchParams:e=>e.footballFilters.comps[0]},{fylterConfig:{name:"selectseason",dependsOn:["selectcompetition"],data:()=>`${e.environment.api}/football/competitions/{{selectcompetition}}/compseasons?pageSize=100`,middleWares:{beforeOptionUpdate:({data:e})=>e.content.map(e=>({name:e.label,value:e.id})),decideFilterEnabledState:e=>"-1"!==e[0].getCurrentId().toString()}},getDefaultFromSearchParams:e=>e.footballFilters.compSeasons[0]}]}(PULSE.app),function(e,t){e.I18N={},e.I18N.setup=()=>{const o=t.localStorage.getStorage("req_language",!0);e.language=o||e.defaultLanguage;const a=new e.I18N.Translator(PULSE.I18N);PULSE.I18N||(PULSE.I18N={}),PULSE.I18N.lookup=function(){return a.lookup.apply(a,arguments)},PULSE.I18N.lookupKey=function(){return a.lookupKey.apply(a,arguments)},void 0!==window.dayjs&&(e.I18N.enOverride(),dayjs.locale(e.language))},e.I18N.enOverride=()=>{dayjs.locale("en-gb",{longDateFormat:{LT:"HH:mm",LTS:"h:mm:ss A",l:"DD/MM",L:"DD/MM/YYYY",ll:"D MMMM",LL:"D MMMM YYYY",lll:"MMM D YYYY LT",LLL:"MMMM D YYYY LT",llll:"ddd MMM D YYYY",LLLL:"dddd, MMMM D YYYY"},yearFirst:!1})},e.I18N.Translator=function(t){this.hasTranslations=!1,this.language=e.language,t?(this.hasTranslations=!0,this.language!==t.language&&(void 0===t.language&&console.warn("Language mismatch! Using "+t.language),this.language=t.language),this.translations=t.translations||{},this.hasTranslations=!0):(this.hasTranslations=!1,this.translations={})},e.I18N.Translator.prototype.lookup=function(e,t={}){if(e&&t){let o=this.lookupKey(e);for(let e in t)if({}.hasOwnProperty.call(t,e)){let a=new RegExp("\\${"+e+"}","gi");o=o.replace(a,t[e])}return o}return""},e.I18N.Translator.prototype.lookupKey=function(e){return this.hasTranslations&&this.translations[e]||e}}(PULSE.app,PULSE.core),PULSE.app.measurements={mobile:400,phablet:640,tablet:840,desktop:1025,desktopmid:1150,wide:1300,extrawide:1500},function(e){e.templating={},e.templating.helper={},e.templating.render=function(o={},a,s){let l="";for(let t in e.templating)e.templating.hasOwnProperty(t)&&(o[t]=e.templating[t]);if(o.environment=e.environment,o.helper.date=e.common.date,o.helper.template=e.common.template,o.helper.image=e.common.image,a){let n=e.templates[a];if(n){try{l=n(o)}catch(e){e.message&&(e.message+=" in template "+a),console.warn(e),console.info("Model given",o)}if(s)return t(l)}else console.warn("No template was rendered. Template not found: "+a)}return l};const t=e=>{let t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}}(PULSE.app),function(e,t){e.webView=function(){const e=t.url.getParam("webview"),o=t.url.getParam("webview_cookie");o&&"true"===o&&t.localStorage.setStorage("webviewCookie",!0,100,!0);const a=t.localStorage.getStorage("webviewCookie",!0);(e&&"true"===e||a&&""!==a)&&t.style.addClass(document.body,"web-view-body")}}(PULSE.app,PULSE.core),function(e){const t=[];e.widgetDeps=(t=document)=>{if(!e.environment)return;[].slice.call(t.querySelectorAll("[data-script]")).forEach(e=>{e.dataset.script.split(",").map(e=>e.trim()).forEach(e=>o(e))})};const o=e=>{if(t.indexOf(e)<0){t.push(e);let o=document.createElement("script");o.type="text/javascript",o.src=a(e),document.body.appendChild(o)}},a=t=>`${e.environment.cdn+"widgets"}/${t}.js`;switch(document.readyState){case"interactive":case"complete":e.widgetDeps();break;default:document.addEventListener("DOMContentLoaded",()=>{e.widgetDeps()})}}(PULSE.app),function(e){const t={root:null,rootMargin:"0px",threshold:[.1,.9]};let o;e.widgetInitialiser={};const a={};e.widgetInitialiser.addWidget=(t,o)=>{let a=o||e[n(t)],s=document.querySelector(`[data-widget="${t}"]`);s&&"true"!==s.dataset.initialized&&l(t,s,a)},e.widgetInitialiser.addMultipleWidgetsByName=(t,o,a)=>{let s=a||document,i=o||e[n(t)],c=s.querySelectorAll(`[data-widget="${t}"]`);for(let e=0;e<c.length;e++)l(t,c[e],i)},e.widgetInitialiser.addWidgets=t=>{let o=(t||document).querySelectorAll("[data-widget]");for(let t=0;t<o.length;t++){let a=o[t].getAttribute("data-constructor"),s=o[t].getAttribute("data-widget");!a&&s&&(a=n(s)),e.hasOwnProperty(a)&&l(s,o[t],e[a])}};const s=t=>{const s=a[t.dataset.observableId];if(s){const l=t.dataset.widget,n=new s(t);"true"===t.dataset.storeReference&&e.widgets[l].push(n),t.setAttribute("data-initialised",!0),delete a[t.dataset.observableId],void 0!==o&&o.unobserve(t)}else console.warn("Observing unexpected widget",t)},l=(l,n,c)=>{if("true"!==n.getAttribute("data-initialised"))if(e.widgets[l]||(e.widgets[l]=[]),"true"===n.dataset.initWhenVisible&&(()=>{if(void 0===o){if("undefined"==typeof IntersectionObserver)return!1;o=new IntersectionObserver(e=>
1{[].slice.call(e).forEach(e=>{const t=e.target;e.isIntersecting&&"true"!==t.dataset.initialized&&s(t)})},t)}return!0})()){const e=i(l);a[e]=c,n.dataset.observableId=e,o.observe(n)}else{const t=new c(n);"true"===n.dataset.storeReference&&e.widgets[l].push(t),n.setAttribute("data-initialised",!0)}},n=e=>e.toLowerCase().replace(/(\b|-)\w/g,function(e){return e.toUpperCase().replace(/-/,"")})+"Widget",i=e=>`${e}_${Date.now()}_${Math.random()}`}(PULSE.app);
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.