CINXE.COM

Andy's Safari Make A Picture - CBeebies - BBC

<!DOCTYPE html> <html lang="en" id="ng-app" class="no-js b-header--white--black b-footer--transparent--dark-grey b-reith-sans-font"> <head prefix="og: http://ogp.me/ns#"><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("https://www.bbc.co.uk/cbeebies/makes/andys-safari-adventures-make-a-picture","20191108214155","https://web.archive.org/","web","/_static/", "1573249315"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <link rel="schema.DCTERMS" href="https://purl.org/dc/terms/"> <script type="text/javascript"> window['optimizely'] = window['optimizely'] || []; window['optimizely'].push({'type': 'holdEvents'}); </script> <script src="https://web.archive.org/web/20191108214155js_/https://cdn.optimizely.com/public/4621041136/s/childrens_prod.js"></script> <title>Andy&#x27;s Safari Make A Picture - CBeebies - BBC</title> <meta name="DCTERMS.title" content="Andy's Safari Make A Picture - CBeebies - BBC"/> <meta name="description" content="Get creative and join Andy to make your own super safari inspired pictures! "/> <meta name="DCTERMS.description" content="Get creative and join Andy to make your own super safari inspired pictures! "/> <meta property="og:title" content="Andy's Safari Adventures - Andy's Safari Make A Picture "/> <meta property="og:description" content="Get creative and join Andy to make your own super safari inspired pictures! "/> <meta property="og:image" content="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/720/1x/cbeebies/Andys_Safari_MAP_Content_Card.jpg"/> <meta property="og:url" content="https://web.archive.org/web/20191108214155/http://www.bbc.co.uk/cbeebies/makes/andys-safari-adventures-make-a-picture"/> <meta property="fb:pages" content="194575130577797"/> <meta property="fb:pages" content="7397061762"/> <meta property="fb:pages" content="7833211321"/> <meta property="fb:pages" content="129044383774217"/> <meta property="fb:pages" content="401538510458"/> <meta property="fb:pages" content="8251776107"/> <meta property="fb:pages" content="273726292719943"/> <meta property="fb:pages" content="107909022566650"/> <meta property="fb:pages" content="21750735380"/> <meta property="fb:pages" content="1477945425811579"/> <meta property="fb:pages" content="944295152308991"/> <meta property="fb:pages" content="154344434967"/> <meta property="fb:pages" content="8244244903"/> <meta property="fb:pages" content="512423982152360"/> <meta property="fb:pages" content="156060587793370"/> <meta property="fb:pages" content="215504865453262"/> <meta property="fb:pages" content="260967092113"/> <meta property="fb:pages" content="1392506827668140"/> <meta property="fb:pages" content="128645453843827"/> <meta property="fb:pages" content="7519460786"/> <meta property="fb:pages" content="1143803202301544"/> <meta property="fb:pages" content="1470145583204829"/> <meta property="fb:pages" content="470911516262605"/> <meta property="fb:pages" content="413132078795966"/> <meta property="fb:pages" content="118883634811868"/> <meta property="fb:pages" content="130593816777"/> <meta property="fb:pages" content="228735667216"/> <meta property="fb:pages" content="80758950658"/> <meta property="fb:pages" content="260212261199"/> <meta property="fb:pages" content="294662213128"/> <meta property="fb:pages" content="1086451581439054"/> <meta property="fb:pages" content="283348121682053"/> <meta property="fb:pages" content="295830058648"/> <meta property="fb:pages" content="239931389545417"/> <meta property="fb:pages" content="304314573046"/> <meta property="fb:pages" content="310719525611571"/> <meta property="fb:pages" content="647687225371774"/> <meta property="fb:pages" content="1159932557403143"/> <meta property="fb:pages" content="286567251709437"/> <meta property="fb:pages" content="1731770190373618"/> <meta property="fb:pages" content="125309456546"/> <meta property="fb:pages" content="742734325867560"/> <meta property="fb:pages" content="168895963122035"/> <meta property="fb:pages" content="292291897588734"/> <meta property="fb:pages" content="658551547588605"/> <meta property="fb:pages" content="156400551056385"/> <meta property="fb:pages" content="185246968166196"/> <meta property="fb:pages" content="1411916919051820"/> <meta property="fb:pages" content="958681370814419"/> <meta property="fb:pages" content="317278538359186"/> <meta property="fb:pages" content="8585725981"/> <meta property="fb:pages" content="1436581493296609"/> <meta property="fb:pages" content="163571453661989"/> <meta property="fb:pages" content="751471531641341"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="DCTERMS.created" content="2018-02-21T12:30:00.000Z"/> <meta name="DCTERMS.modified" content="2018-03-19T09:52:38.035Z"/> <link rel="canonical" href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/cbeebies/makes/andys-safari-adventures-make-a-picture"/> <script type="text/javascript"> var _sf_startpt = (new Date()).getTime() </script> <link rel="copyright" href="https://web.archive.org/web/20191108214155/http://www.bbc.co.uk/terms/" title="Terms of Use"/> <link href="/web/20191108214155im_/https://www.bbc.co.uk/cbeebies/assets/images/favicons/apple-touch-icon.png" rel="apple-touch-icon"/> <link href="/web/20191108214155im_/https://www.bbc.co.uk/cbeebies/assets/images/favicons/favicon.ico" rel="icon" type="image/x-icon"/> <link href="/web/20191108214155im_/https://www.bbc.co.uk/cbeebies/assets/images/favicons/favicon.ico" rel="shortcut icon" type="image/x-icon"/> <link rel="stylesheet" type="text/css" href="https://web.archive.org/web/20191108214155cs_/https://static.bbci.co.uk/gelstyles/0.11.0/style/core.css"/> <link rel="stylesheet" type="text/css" href="https://web.archive.org/web/20191108214155cs_/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/stylesheets/cbeebies.min.css"/> <!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/stylesheets/cbeebies.ie8.min.css"/> <![endif]--> <link rel="stylesheet" type="text/css" href="/web/20191108214155cs_/https://www.bbc.co.uk/cbeebies/stylesheets/immersive/brand/1540375219/699119d/andys-safari-adventures.css"/> <script type="text/javascript"> var allForwardSlashes = /\//g; var anythingNotAWordOrFullStop = /[^\w^\.]/g; var allMultipleUnderscores = /_+/g; var fullStopAtEnd = /\.$/; var pageDescriptor = window.location.pathname.substring(1) .replace(allForwardSlashes, '.') .replace(anythingNotAWordOrFullStop, '_') .replace(allMultipleUnderscores, '_') .replace(fullStopAtEnd, ''); window.istats_countername = pageDescriptor.toLowerCase() + '.page'; </script> <!-- Nav Env: live --> <!-- Analytics Web Module: 0.0.1-352.83f6fa0 --> <!-- NavID Web Module: 0.2.0-92.e536e2f --> <!-- Detectview Web Module: 0.0.1-352.83f6fa0 --> <!-- Searchbox Web Module: 3.0.0-31.1df75ca --> <!-- Promo Web Module: 3.0.0-46.715bbe4 --> <meta name="viewport" content="width=device-width, initial-scale=1.0"><meta property="fb:admins" content="100004154058350"><link rel="stylesheet" href="https://web.archive.org/web/20191108214155cs_/https://nav.files.bbci.co.uk/orbit/3.0.0-730.71803d18/css/orb-ltr.min.css"><!--[if (lt IE 9) & (!IEMobile)]> <link rel="stylesheet" href="https://nav.files.bbci.co.uk/orbit/3.0.0-730.71803d18/css/orb-ie-ltr.min.css"> <![endif]--><script type="text/javascript">/*<![CDATA[*/ window.orb = { lang: 'en', bbcBaseUrl: 'https://web.archive.org/web/20191108214155/https://www.bbc.co.uk', bbcUrlPrefix: 'https://web.archive.org/web/20191108214155/https://www.', staticHost: 'https://web.archive.org/web/20191108214155/https://nav.files.bbci.co.uk/orbit/3.0.0-730.71803d18', figUrl: 'https://web.archive.org/web/20191108214155/https://fig.bbc.co.uk/frameworks/fig/2/fig.js', partialCookieOvenUrl: 'https://web.archive.org/web/20191108214155/https://cookie-oven.api.bbc' }; document.documentElement.className += (document.documentElement.className? ' ' : '') + 'orb-js'; window.orb.worldwideNavlinks = ''; /*]]>*/</script><script>// Promise polyfill from https://github.com/bramstein/promis (function(){'use strict';var f,g=[];function l(a){g.push(a);1==g.length&&f()}function m(){for(;g.length;)g[0](),g.shift()}f=function(){setTimeout(m)};function n(a){this.a=p;this.b=void 0;this.f=[];var b=this;try{a(function(a){q(b,a)},function(a){r(b,a)})}catch(c){r(b,c)}}var p=2;function t(a){return new n(function(b,c){c(a)})}function u(a){return new n(function(b){b(a)})}function q(a,b){if(a.a==p){if(b==a)throw new TypeError;var c=!1;try{var d=b&&b.then;if(null!=b&&"object"==typeof b&&"function"==typeof d){d.call(b,function(b){c||q(a,b);c=!0},function(b){c||r(a,b);c=!0});return}}catch(e){c||r(a,e);return}a.a=0;a.b=b;v(a)}} function r(a,b){if(a.a==p){if(b==a)throw new TypeError;a.a=1;a.b=b;v(a)}}function v(a){l(function(){if(a.a!=p)for(;a.f.length;){var b=a.f.shift(),c=b[0],d=b[1],e=b[2],b=b[3];try{0==a.a?"function"==typeof c?e(c.call(void 0,a.b)):e(a.b):1==a.a&&("function"==typeof d?e(d.call(void 0,a.b)):b(a.b))}catch(h){b(h)}}})}n.prototype.g=function(a){return this.c(void 0,a)};n.prototype.c=function(a,b){var c=this;return new n(function(d,e){c.f.push([a,b,d,e]);v(c)})}; function w(a){return new n(function(b,c){function d(c){return function(d){h[c]=d;e+=1;e==a.length&&b(h)}}var e=0,h=[];0==a.length&&b(h);for(var k=0;k<a.length;k+=1)u(a[k]).c(d(k),c)})}function x(a){return new n(function(b,c){for(var d=0;d<a.length;d+=1)u(a[d]).c(b,c)})};window.Promise||(window.Promise=n,window.Promise.resolve=u,window.Promise.reject=t,window.Promise.race=x,window.Promise.all=w,window.Promise.prototype.then=n.prototype.c,window.Promise.prototype["catch"]=n.prototype.g);}()); // Polyfill Event constructor for IE ref: https://jira.dev.bbc.co.uk/browse/ORBITEN-919 // see: https://stackoverflow.com/questions/26596123 (function () { if (typeof window.CustomEvent === "function") { return false; } function CustomEvent(event, params) { params = params || { bubbles: false, cancelable: false, detail: undefined }; var evt = document.createEvent('CustomEvent'); evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); return evt; } CustomEvent.prototype = window.Event.prototype; window.Event = CustomEvent; })(); //Element.prototype.matches polyfill //from https://developer.mozilla.org/en-US/docs/Web/API/Element/matches#Polyfill if (!Element.prototype.matches) { Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector; } //NodeList.forEach Polyfill //from https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach#Polyfill if (window.NodeList && !NodeList.prototype.forEach) { NodeList.prototype.forEach = Array.prototype.forEach; } // Object.assign polyfill from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill if (typeof Object.assign != 'function') { // Must be writable: true, enumerable: false, configurable: true Object.defineProperty(Object, "assign", { value: function assign(target, varArgs) { // .length of function is 2 'use strict'; if (target == null) { // TypeError if undefined or null throw new TypeError('Cannot convert undefined or null to object'); } var to = Object(target); for (var index = 1; index < arguments.length; index++) { var nextSource = arguments[index]; if (nextSource != null) { // Skip over if undefined or null for (var nextKey in nextSource) { // Avoid bugs when hasOwnProperty is shadowed if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) { to[nextKey] = nextSource[nextKey]; } } } } return to; }, writable: true, configurable: true }); } // window.fetch polyfill https://github.com/github/fetch/blob/v0.11.0/fetch.js - chosen for IE9 compatibility if(typeof window.fetch !== 'function') { (function(self){"use strict";if(self.fetch){return}function normalizeName(name){if(typeof name!=="string"){name=String(name)}if(/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)){throw new TypeError("Invalid character in header field name")}return name.toLowerCase()}function normalizeValue(value){if(typeof value!=="string"){value=String(value)}return value}function Headers(headers){this.map={};if(headers instanceof Headers){headers.forEach(function(value,name){this.append(name,value)},this)}else if(headers){Object.getOwnPropertyNames(headers).forEach(function(name){this.append(name,headers[name])},this)}}Headers.prototype.append=function(name,value){name=normalizeName(name);value=normalizeValue(value);var list=this.map[name];if(!list){list=[];this.map[name]=list}list.push(value)};Headers.prototype["delete"]=function(name){delete this.map[normalizeName(name)]};Headers.prototype.get=function(name){var values=this.map[normalizeName(name)];return values?values[0]:null};Headers.prototype.getAll=function(name){return this.map[normalizeName(name)]||[]};Headers.prototype.has=function(name){return this.map.hasOwnProperty(normalizeName(name))};Headers.prototype.set=function(name,value){this.map[normalizeName(name)]=[normalizeValue(value)]};Headers.prototype.forEach=function(callback,thisArg){Object.getOwnPropertyNames(this.map).forEach(function(name){this.map[name].forEach(function(value){callback.call(thisArg,value,name,this)},this)},this)};function consumed(body){if(body.bodyUsed){return Promise.reject(new TypeError("Already read"))}body.bodyUsed=true}function fileReaderReady(reader){return new Promise(function(resolve,reject){reader.onload=function(){resolve(reader.result)};reader.onerror=function(){reject(reader.error)}})}function readBlobAsArrayBuffer(blob){var reader=new FileReader;reader.readAsArrayBuffer(blob);return fileReaderReady(reader)}function readBlobAsText(blob){var reader=new FileReader;reader.readAsText(blob);return fileReaderReady(reader)}var support={blob:"FileReader"in self&&"Blob"in self&&function(){try{new Blob;return true}catch(e){return false}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};function Body(){this.bodyUsed=false;this._initBody=function(body){this._bodyInit=body;if(typeof body==="string"){this._bodyText=body}else if(support.blob&&Blob.prototype.isPrototypeOf(body)){this._bodyBlob=body}else if(support.formData&&FormData.prototype.isPrototypeOf(body)){this._bodyFormData=body}else if(!body){this._bodyText=""}else if(support.arrayBuffer&&ArrayBuffer.prototype.isPrototypeOf(body)){}else{throw new Error("unsupported BodyInit type")}if(!this.headers.get("content-type")){if(typeof body==="string"){this.headers.set("content-type","text/plain;charset=UTF-8")}else if(this._bodyBlob&&this._bodyBlob.type){this.headers.set("content-type",this._bodyBlob.type)}}};if(support.blob){this.blob=function(){var rejected=consumed(this);if(rejected){return rejected}if(this._bodyBlob){return Promise.resolve(this._bodyBlob)}else if(this._bodyFormData){throw new Error("could not read FormData body as blob")}else{return Promise.resolve(new Blob([this._bodyText]))}};this.arrayBuffer=function(){return this.blob().then(readBlobAsArrayBuffer)};this.text=function(){var rejected=consumed(this);if(rejected){return rejected}if(this._bodyBlob){return readBlobAsText(this._bodyBlob)}else if(this._bodyFormData){throw new Error("could not read FormData body as text")}else{return Promise.resolve(this._bodyText)}}}else{this.text=function(){var rejected=consumed(this);return rejected?rejected:Promise.resolve(this._bodyText)}}if(support.formData){this.formData=function(){return this.text().then(decode)}}this.json=function(){return this.text().then(JSON.parse)};return this}var methods=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function normalizeMethod(method){var upcased=method.toUpperCase();return methods.indexOf(upcased)>-1?upcased:method}function Request(input,options){options=options||{};var body=options.body;if(Request.prototype.isPrototypeOf(input)){if(input.bodyUsed){throw new TypeError("Already read")}this.url=input.url;this.credentials=input.credentials;if(!options.headers){this.headers=new Headers(input.headers)}this.method=input.method;this.mode=input.mode;if(!body){body=input._bodyInit;input.bodyUsed=true}}else{this.url=input}this.credentials=options.credentials||this.credentials||"omit";if(options.headers||!this.headers){this.headers=new Headers(options.headers)}this.method=normalizeMethod(options.method||this.method||"GET");this.mode=options.mode||this.mode||null;this.referrer=null;if((this.method==="GET"||this.method==="HEAD")&&body){throw new TypeError("Body not allowed for GET or HEAD requests")}this._initBody(body)}Request.prototype.clone=function(){return new Request(this)};function decode(body){var form=new FormData;body.trim().split("&").forEach(function(bytes){if(bytes){var split=bytes.split("=");var name=split.shift().replace(/\+/g," ");var value=split.join("=").replace(/\+/g," ");form.append(decodeURIComponent(name),decodeURIComponent(value))}});return form}function headers(xhr){var head=new Headers;var pairs=xhr.getAllResponseHeaders().trim().split("\n");pairs.forEach(function(header){var split=header.trim().split(":");var key=split.shift().trim();var value=split.join(":").trim();head.append(key,value)});return head}Body.call(Request.prototype);function Response(bodyInit,options){if(!options){options={}}this.type="default";this.status=options.status;this.ok=this.status>=200&&this.status<300;this.statusText=options.statusText;this.headers=options.headers instanceof Headers?options.headers:new Headers(options.headers);this.url=options.url||"";this._initBody(bodyInit)}Body.call(Response.prototype);Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})};Response.error=function(){var response=new Response(null,{status:0,statusText:""});response.type="error";return response};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(url,status){if(redirectStatuses.indexOf(status)===-1){throw new RangeError("Invalid status code")}return new Response(null,{status:status,headers:{location:url}})};self.Headers=Headers;self.Request=Request;self.Response=Response;self.fetch=function(input,init){return new Promise(function(resolve,reject){var request;if(Request.prototype.isPrototypeOf(input)&&!init){request=input}else{request=new Request(input,init)}var xhr=new XMLHttpRequest;function responseURL(){if("responseURL"in xhr){return xhr.responseURL}if(/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())){return xhr.getResponseHeader("X-Request-URL")}return}xhr.onload=function(){var status=xhr.status===1223?204:xhr.status;if(status<100||status>599){reject(new TypeError("Network request failed"));return}var options={status:status,statusText:xhr.statusText,headers:headers(xhr),url:responseURL()};var body="response"in xhr?xhr.response:xhr.responseText;resolve(new Response(body,options))};xhr.onerror=function(){reject(new TypeError("Network request failed"))};xhr.open(request.method,request.url,true);if(request.credentials==="include"){xhr.withCredentials=true}if("responseType"in xhr&&support.blob){xhr.responseType="blob"}request.headers.forEach(function(value,name){xhr.setRequestHeader(name,value)});xhr.send(typeof request._bodyInit==="undefined"?null:request._bodyInit)})};self.fetch.polyfill=true})(typeof self!=="undefined"?self:this); } if (typeof window.CustomEvent !== 'function') { function CustomEvent(event, params) { params = params || { bubbles: false, cancelable: false, detail: null }; var evt = document.createEvent('CustomEvent'); evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); return evt; } CustomEvent.prototype = window.Event.prototype; window.CustomEvent = CustomEvent; } (function() { var language = 'en'; language = 'en'; var modal = false; var istatsLabels = {name: 'cbeebies.makes.andys_safari_adventures_make_a_picture.page' || undefined}; istatsLabels['app_name'] = 'cbeebies'; istatsLabels['app_type'] = 'responsive'; function getMetaValue(propertyName) { var metaTag = document.querySelector( "meta[property='" + propertyName + "'], " + "meta[name='" + propertyName + "']"); if (metaTag) { return metaTag.getAttribute("content"); } else { throw new Error('No meta tag called: ' + propertyName) } } function generateCountername() { var pathName = window.location.pathname .replace(/\/$/, "") .replace(/^\//, "") .replace(/\//g, '.'); return pathName + '.page'; } var additionalPageProperties = {}; additionalPageProperties['custom_var_1'] = 'andys-safari-adventures'; additionalPageProperties['custom_var_2'] = 'false'; additionalPageProperties['custom_var_3'] = 'false'; additionalPageProperties['custom_var_4'] = 'exciting-wildlife-adventures-and-dinosaur-fun'; additionalPageProperties['custom_var_5'] = 'gid-map2-andys-safari-adventures'; additionalPageProperties['custom_var_6'] = '2018-02-21T12:30:16.646Z'; additionalPageProperties['custom_var_7'] = '2018-03-19T09:52:38.035Z'; additionalPageProperties['custom_var_10'] = 'none'; additionalPageProperties['app_name'] = 'cbeebies'; var page = { name: '' || istatsLabels.name || generateCountername(), destination: 'cbeebies' || null, producer: 'cbeebies' || null, section: 'makes' || null, site: '' || istatsLabels.bbc_site || istatsLabels.app_name || istatsLabels.prod_name || null, contentId: 'urn:bbc:isite2:bc0efc26-376d-4629-9050-c07d1e638798' || null, contentType: 'article' || null, edition: '' || null, additionalProperties: additionalPageProperties }; function updatePageData(newData) { page = Object.assign(page, newData); } document.addEventListener('bbc-page-reset', function(event) { if (event.detail && event.detail.page) { updatePageData(event.detail.page); } document.dispatchEvent(new Event('bbc-page-updated')); }); window.bbcpage = { loadModule: function(deps) { return new Promise(function (resolve, reject) { window.require(deps, function () { resolve.apply(this, arguments); }, function (error) { reject(error); }); }) }, loadCSS: function (url, timeout) { return window.bbcpage.loadModule(['orb/lib/_$']) .then(function($) { return new Promise(function(resolve, reject) { var stylesheet = loadCSS(url); $.onloadCSS(stylesheet, function() { resolve(); }); if (timeout) { setTimeout(function () { reject(); }, timeout); } }); }); }, isModal: function () { return modal; }, getLanguage: function () { return new Promise(function(resolve, reject) { resolve(language); }); }, trackRegion: function (region, labels) { return window.bbcpage.loadModule(['istats-1']) .then(function(istats) { var trackLabels = { region: region }; for (var label in labels) { trackLabels[label] = labels[label]; } var linkType = labels.linkType || 'internal'; istats.track(linkType, trackLabels); }); }, getName: function() { return Promise.resolve(page.name); }, getDestination: function() { return Promise.resolve(page.destination); }, getProducer: function() { return Promise.resolve(page.producer); }, getSite: function() { return Promise.resolve(page.site); }, getSection: function() { return Promise.resolve(page.section); }, getContentType: function() { return Promise.resolve(page.contentType); }, getContentId: function() { return Promise.resolve(page.contentId); }, getEdition: function() { return new Promise(function (resolve, reject) { if (page.edition) { resolve(page.edition); return; } try { resolve(getMetaValue('x-audience').toLowerCase()); } catch (err){ // This property is related to Chartbeat; see http://support.chartbeat.com/docs/ if (window._sf_async_config) { resolve(window._sf_async_config.region || null); } } resolve(null); }); }, getReferrer: function() { return Promise.resolve(window.orb && window.orb.referrer ? window.orb.referrer : document.referrer); }, getAdditionalProperties: function() { return Promise.resolve(page.additionalProperties); } }; var USERINFO_URL = ""; var USERINFO_PREFIX = "www." || "www."; function initUserCache(orbitUser) { var availableAttr = [ 'X-Country', 'X-Ip_is_advertise_combined', 'X-Ip_is_uk_combined' ]; var userCache = availableAttr.reduce(function(user, curr, i) { if (!orbitUser[curr]) { return user; } var res = Object.assign({}, user); res[curr] = orbitUser[curr]; return res; }, {}); if (Object.keys(userCache).length !== availableAttr.length) { userCache._partial = true; } return userCache; } var user = initUserCache({ }); function checkStatus(response) { if (response.status >= 200 && response.status < 300) { return response; } else { var error = new Error(response.statusText); error.response = response; throw error; } } function parseJSON(response) { return response.json(); } var supportsCors = function() { return typeof XMLHttpRequest !== 'undefined' && 'withCredentials' in new XMLHttpRequest(); }; var getUserInfoFallback = function() { return window.bbcpage.loadModule(['orb/fig']) .then(function(orbFig) { return new Promise(function(resolve, reject) { orbFig.load(function(fig) { var getCountryFallback = function() { if (fig.geo.isUK()) { return 'GB'; } else if (fig.geo.isEU()) { return 'EU'; } }; resolve({ 'X-Country': user.country || getCountryFallback(), 'X-Ip_is_uk_combined': fig().uk ? 'yes' : 'no', 'X-Ip_is_advertise_combined': fig().ad ? 'yes' : 'no' }); }, function () { reject('Error determining country. Timeout?'); }); }); }); }; var _userInfoRequest; var getUserInfo = function() { const host = window.location.host.toString().match(/bbc\.com$/) ? 'bbc.com' : 'bbc.co.uk'; const userInfoUrl = USERINFO_URL || window.location.protocol + "//" + USERINFO_PREFIX + host + '/userinfo'; if (!user._partial) { return Promise.resolve(user); } if (!_userInfoRequest) { if (typeof window.fetch === 'undefined' || !supportsCors()) { _userInfoRequest = getUserInfoFallback(); } else { _userInfoRequest = window.fetch(userInfoUrl, { credentials: 'same-origin' }) .then(checkStatus) .then(parseJSON) .then(function(userInfo) { user = userInfo; return user; }); } } return _userInfoRequest; }; window.bbcuser = { getHashedId: function() { return window.bbcpage.loadModule(['idcta-v2/idcta-1']) .then(function(idcta) { return idcta.getCookieInstance().getHidFromCookie(); }); }, getCountry: function() { if (user['X-Country']) { return Promise.resolve(user['X-Country']); } return getUserInfo().then(function(userInfo) { return userInfo['X-Country'] || 'GB'; }); }, isUKCombined: function() { return getUserInfo().then(function(userInfo) { if (!userInfo['X-Ip_is_uk_combined']) { throw new Error('missing isUKCombined from userinfo response'); } return userInfo['X-Ip_is_uk_combined'].toLowerCase() === 'yes'; }) }, canSeeAdverts: function() { return getUserInfo().then(function(userInfo) { if (!userInfo['X-Ip_is_advertise_combined']) { throw new Error('missing canSeeAdverts from userinfo response'); } return userInfo['X-Ip_is_advertise_combined'].toLowerCase() === "yes"; }); }, isSignedIn: function() { return window.bbcpage.loadModule(['idcta-v2/idcta-1']) .then(function(idcta) { return (idcta && idcta.getCookieInstance().hasCookie()); }); }, allowsPerformanceCookies: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { return !!bbccookies.cookiesEnabled() && !!bbccookies.readPolicy('performance'); }); }, allowsFunctionalCookies: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { return !!bbccookies.cookiesEnabled() && !!bbccookies.readPolicy('personalisation'); }); }, getCookieValue: function(cookieName) { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { return bbccookies.get(cookieName); }); }, resetCookiesPreferences: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { bbccookies.setDefaultCookiesSingleDomain(); }); }, hasCookiesEnabled: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { return !!bbccookies.cookiesEnabled(); }); }, hasSeenCookieBanner: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function (bbccookies) { return !!bbccookies.isCookiePolicySet(); }); }, logEvent: function (verb, noun, extraLabels) { return window.bbcuser.hasCookiesEnabled() .then(function(allowsCookies) { if (allowsCookies) { return window.bbcpage.loadModule(['istats-1']) .then(function(istats) { istats.log(verb, noun, extraLabels); }); } else { throw new Error('User cannot be tracked due to cookies preferences.'); } }); }, }; }());</script><script src="https://web.archive.org/web/20191108214155js_/https://nav.files.bbci.co.uk/orbit/3.0.0-730.71803d18/js/require.min.js"></script> <script src="https://web.archive.org/web/20191108214155js_/https://nav.files.bbci.co.uk/orbit-webmodules/0.0.1-352.83f6fa0/cookie-banner/cookie-library.min.js"></script><script type="text/javascript">if (window.define !== undefined) { define('orb/cookies', function() { return window.bbccookies; }); }</script> <script src="https://web.archive.org/web/20191108214155js_/https://nav.files.bbci.co.uk/orbit/3.0.0-730.71803d18/js/api.min.js"></script><script type="text/javascript">window.bbcFlagpoles_istats="ON",require.config({paths:{"istats-1":"https://web.archive.org/web/20191108214155/https://nav.files.bbci.co.uk/orbit-webmodules/0.0.1-352.83f6fa0/istats/istats-1"}}),require(["istats-1","orb/cookies"],function(a,t){if(t.isAllowed("s1")){var e=(o=document.location.href.match(/^(?:https|http):\/\/\w*\.(?:(int|test|stage|live|)\.)?bbc\.(?:co\.uk|com)/))?void 0===o[1]||""===o[1]||"live"===o[1]?"//web.archive.org/web/20191108214155/https://sa.bbc.co.uk/bbc/bbc/s":"//web.archive.org/web/20191108214155/https://sa.bbc.co.uk/bbc/"+o[1]+"/s":"//web.archive.org/web/20191108214155/https://sa.bbc.co.uk/bbc/test/s";a.addCollector({name:"default",url:e,separator:"&"});var s="cbeebies.makes.andys_safari_adventures_make_a_picture.page";a.setCountername(s),window.istats_countername&&a.setCountername(window.istats_countername),a.addLabels("ml_name=webmodule&ml_version=0.0.1-352.83f6fa0&blq_e=orbit&blq_r=orbit&blq_s=orbit&blq_v=cbeebies&language=en&app_name=cbeebies&app_type=responsive")}var o});</script><link rel="stylesheet" href="https://web.archive.org/web/20191108214155cs_/https://mybbc.files.bbci.co.uk/s/id/account-idcta/1.23.4/style/id-cta.css"><!--[if IE 8]><link href="https://mybbc.files.bbci.co.uk/s/id/account-idcta/1.23.4/style/ie8.css" rel="stylesheet"/> <![endif]--><script type="text/javascript">(function() {if (!window.require) {throw new Error('idcta: could not find require module');}if (typeof(map) == 'undefined') {var map = {};}if (!!document.createElementNS && !!document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect) {document.documentElement.className += ' id-svg';}var ptrt = new RegExp("[\\?&]ptrt=([^&]*)").exec(document.location.href);var ENDPOINT_URL = 'https://web.archive.org/web/20191108214155/https://idcta.api.bbc.co.uk';var ENDPOINT_CONFIG = ('/idcta/config?callback=&ptrt=' + encodeURIComponent((ptrt ? ptrt[1] : document.location.href))).replace(/\&amp;/g, '&');var ENDPOINT_TRANSLATIONS = '/idcta/translations?callback=';function hasPromise() {var P = window.Promise;var promiseToString = null;if (P) {try {promiseToString = Object.prototype.toString.call(P.resolve());} catch(e) {/*silently ignored*/}}return (promiseToString === '[object Promise]' && !P.cast);}if (hasPromise()) {define('idcta/es6-promise', function() {return window.Promise;});define('idcta-v2/es6-promise', function() {return window.Promise;});}map['idcta-v2'] = 'https://web.archive.org/web/20191108214155/https://mybbc.files.bbci.co.uk/s/id/account-idcta/1.23.4/modules/idcta-v2';map['idcta-v2/config'] = ENDPOINT_URL + ENDPOINT_CONFIG;map['idcta-v2/translations'] = ENDPOINT_URL + ENDPOINT_TRANSLATIONS;map['idcta'] = 'https://web.archive.org/web/20191108214155/https://mybbc.files.bbci.co.uk/s/id/account-idcta/1.8.2/modules/idcta';map['idcta-v2/idcta-1'] = 'https://web.archive.org/web/20191108214155/https://mybbc.files.bbci.co.uk/s/id/account-idcta/1.23.4/modules/idcta-v2/dist/idcta-1.min';const idctaShim = {deps: ['idcta-v2/idcta-1'],};require({shim: {'idcta-v2/statusbar': idctaShim,'idcta-v2/id-config': idctaShim},map: {'*': {'idcta/idcta-1': 'idcta-v2/idcta-1','idcta': 'idcta-v2',}},paths: map});window.idctaBaseUrl = ENDPOINT_URL;define('idcta/config', ['idcta-v2/config'], function(data) {return data;});define('idcta/translations', ['idcta-v2/translations'], function(data) {return data;});})();</script> <!-- BBCDOTCOM head --><script type="text/javascript">/*<![CDATA[*/ var _sf_startpt = (new Date()).getTime(); /*]]>*/</script><style type="text/css">.bbccom_display_none{display:none;}</style><script type="text/javascript">/*<![CDATA[*/ var bbcdotcomConfig, googletag = googletag || {}; googletag.cmd = googletag.cmd || [], bbcdotcomScripts = [], tp = window.tp || []; var bbcdotcom = false; (function(){ if(typeof require !== 'undefined') { require({ paths:{ "bbcdotcom":"https://web.archive.org/web/20191108214155/https://static.bbc.co.uk/bbcdotcom/3.0.0/script" } }); } })(); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ var bbcdotcom = { adverts: { keyValues: { set: function() {} } }, advert: { write: function () {}, show: function () {}, isActive: function () { return false; }, layout: function() { return { reset: function() {} } } }, config: { init: function() {}, isActive: function() {}, setSections: function() {}, isAdsEnabled: function() {}, setAdsEnabled: function() {}, isAnalyticsEnabled: function() {}, setAnalyticsEnabled: function() {}, setAssetPrefix: function() {}, setFlagpoles: function() {}, setVersion: function () {}, setJsPrefix: function() {}, setSwfPrefix: function() {}, setCssPrefix: function() {}, setConfig: function() {}, getAssetPrefix: function() {}, getJsPrefix: function () {}, getSwfPrefix: function () {}, getCssPrefix: function () {}, isOptimizelyEnabled: function() {} }, survey: { init: function(){ return false; } }, data: {}, init: function() {}, objects: function(str) { return false; }, locale: { set: function() {}, get: function() {} }, setAdKeyValue: function() {}, utils: { addEvent: function() {}, addHtmlTagClass: function() {}, log: function () {} }, addLoadEvent: function() {} }; /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function(){ if (typeof orb !== 'undefined' && typeof orb.fig === 'function') { if (orb.fig('ad') && orb.fig('uk') == 0) { bbcdotcom.data = { ads: (orb.fig('ad') ? 1 : 0), stats: (orb.fig('uk') == 0 ? 1 : 0), statsProvider: orb.fig('ap') }; } } else { document.write('<script type="text/javascript" src="https://web.archive.org/web/20191108214155/https://www.bbc.com/wwscripts/data">\x3C/script>'); } })(); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function(){ if (typeof orb === 'undefined' || typeof orb.fig !== 'function') { bbcdotcom.data = { ads: bbcdotcom.data.a, stats: bbcdotcom.data.b, statsProvider: bbcdotcom.data.c }; } if (bbcdotcom.data.ads == 1) { document.write('<script type="text/javascript" src="https://web.archive.org/web/20191108214155/https://www.bbc.com/wwscripts/flag">\x3C/script>'); } })(); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function(){ if (window.bbcdotcom && (typeof bbcdotcom.flag == 'undefined' || (typeof bbcdotcom.data.ads !== 'undefined' && bbcdotcom.flag.a != 1))) { bbcdotcom.data.ads = 0; } if (/[?|&]ads/.test(window.location.href) || /(^|; )ads=on; /.test(document.cookie) || /; ads=on(; |$)/.test(document.cookie)) { bbcdotcom.data.ads = 1; bbcdotcom.data.stats = 1; } if (window.bbcdotcom && (bbcdotcom.data.ads == 1 || bbcdotcom.data.stats == 1)) { bbcdotcom.assetPrefix = "https://web.archive.org/web/20191108214155/https://static.bbc.co.uk/bbcdotcom/3.0.0/"; if (/(sandbox|int)(.dev)*.bbc.co*/.test(window.location.href) || /[?|&]ads-debug/.test(window.location.href) || document.cookie.indexOf('ads-debug=') !== -1) { document.write('<script type="text/javascript" src="https://web.archive.org/web/20191108214155/https://static.bbc.co.uk/bbcdotcom/3.0.0/script/dist/bbcdotcom.dev.js">\x3C/script>'); } else { document.write('<script type="text/javascript" src="https://web.archive.org/web/20191108214155/https://static.bbc.co.uk/bbcdotcom/3.0.0/script/dist/bbcdotcom.js">\x3C/script>'); } } })(); /*]]>*/</script><script type="text/javascript">if (window.bbcdotcom && bbcdotcom.data.stats == 1) { document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20191108214155/https://secure-us.imrworldwide.com/">'); document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20191108214155/https://me-cdn.effectivemeasure.net/">'); document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20191108214155/https://ssc.api.bbc.com/">'); } if (window.bbcdotcom && bbcdotcom.data.ads == 1) { document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20191108214155/https://www.googletagservices.com/">'); document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20191108214155/https://bbc.gscontxt.net/">'); document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20191108214155/https://tags.crwdcntrl.net/">'); document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20191108214155/https://ad.crwdcntrl.net/">'); }</script><script type="text/javascript">if (window.bbcdotcom && bbcdotcom.data.ads == 1) { document.write('<meta name="google-site-verification" content="auTeTTwSt_KBY_4iDoR00Lwb7-qzx1IgzJy6ztaWgEI" />'); }</script><script type="text/javascript">/*<![CDATA[*/ (function(){ var GDPR_COUNTRIES = ['AT', 'BE', 'BG', 'HR', 'CY', 'CZ', 'DK', 'EE', 'FI', 'FR', 'DE', 'GR', 'HU', 'IE', 'IT', 'LV', 'LT', 'LU', 'MT', 'NL', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'SE', 'IS', 'LI', 'NO', 'CH']; if (window.bbcdotcom && (bbcdotcom.data.ads == 1 || bbcdotcom.data.stats == 1)) { bbcdotcomConfig = {"adFormat":"standard","adKeyword":"","adMode":"smart","adsEnabled":true,"appAnalyticsSections":"","asyncEnabled":true,"disableInitialLoad":false,"advertInfoPageUrl":"https:\/\/web.archive.org\/web\/20191108214155\/https:\/\/www.bbc.com\/privacy\/cookies\/international\/","advertisementText":"Advertisement","analyticsEnabled":true,"sherlockEnabled":false,"appName":"cbeebies","assetPrefix":"https:\/\/web.archive.org\/web\/20191108214155\/https:\/\/static.bbc.co.uk\/bbcdotcom\/3.0.0\/","customAdParams":[],"customStatsParams":[],"headline":"","id":"","inAssociationWithText":"in association with","keywords":"","language":"","orbTransitional":false,"optimizelyEnabled":true,"palEnv":"live","productName":"cbeebies","sections":[],"comScoreEnabled":true,"comscoreSite":"bbc","comscoreID":"19293874","comscorePageName":"","slots":"","sponsoredByText":"is sponsored by","adsByGoogleText":"Ads by Google","summary":"","type":"","features":{"testfeature":{"name":"testfeature","envs":["sandbox","int","test"],"on":true,"options":{},"override":null},"lxadverts":{"name":"lxadverts","envs":[],"on":true,"options":{},"override":null}},"staticBase":"\/bbcdotcom","staticHost":"https:\/\/web.archive.org\/web\/20191108214155\/https:\/\/static.bbc.co.uk","staticVersion":"3.0.0","staticPrefix":"https:\/\/web.archive.org\/web\/20191108214155\/https:\/\/static.bbc.co.uk\/bbcdotcom\/3.0.0","dataHttp":"tps.bbc.com","dataHttps":"www.bbc.com","flagHttp":"www.bbc.co.uk","flagHttps":"www.bbc.co.uk","analyticsHttp":"sa.bbc.com","analyticsHttps":"ssa.bbc.com"}; bbcdotcom.config.init(bbcdotcomConfig, bbcdotcom.data, window.location, window.document); bbcdotcom.config.setFlagpoles(bbcdotcom.flag || {}); bbcdotcom.config.setAssetPrefix("https://web.archive.org/web/20191108214155/https://static.bbc.co.uk/bbcdotcom/3.0.0/"); bbcdotcom.config.setVersion("3.0.0"); if (window.bbcuser && window.bbcuser.getCountry && typeof(window.bbcuser.getCountry) === 'function') { window.bbcuser.getCountry().then(function(countryCode) { var isEU = countryCode ? GDPR_COUNTRIES.indexOf(countryCode.toUpperCase()) !== -1 : false; bbcdotcom.config.setEU(isEU); }); } else if (window.orb && window.orb.fig && typeof(window.orb.fig) === 'function') { bbcdotcom.config.setEU(window.orb.fig('eu')); } document.write('<!--[if IE 7]><script type="text/javascript">bbcdotcom.config.setIE7(true);\x3C/script><![endif]-->'); document.write('<!--[if IE 8]><script type="text/javascript">bbcdotcom.config.setIE8(true);\x3C/script><![endif]-->'); document.write('<!--[if IE 9]><script type="text/javascript">bbcdotcom.config.setIE9(true);\x3C/script><![endif]-->'); if (/[?|&]ex-dp/.test(window.location.href) || document.cookie.indexOf('ex-dp=') !== -1) { bbcdotcom.utils.addHtmlTagClass('bbcdotcom-ex-dp'); } } })(); /*]]>*/</script><script type="text/javascript">var initOptimizely = (function(isEnabled){ if(!isEnabled) return; var logger = window.bbcdotcom.Logger('bbcdotcom:head:optimizely'); /* Allow Optimizely in these paths */ var allowPaths = ['/', '/wwhp']; /* Only run on optimizely on homepage */ if (bbcdotcom.utils && allowPaths.indexOf(window.location.pathname) !== -1){ /* set correct OptimizelyURL for prod or sandbox */ var optimizelyURL = "https://web.archive.org/web/20191108214155/https://cdn.optimizely.com/public/4621041136/s/bbccom_sandbox.js"; if(window.location.hostname === 'www.bbc.com') { optimizelyURL = "https://web.archive.org/web/20191108214155/https://cdn.optimizely.com/public/4621041136/s/bbccom_prod.js"; } /* Set cookie to 1 year */ window['optimizely'] = window['optimizely'] || []; window['optimizely'].push({ "type": "cookieExpiration", "cookieExpirationDays": 365 }); document.write('<script type="text/javascript" src="'+optimizelyURL+'">\x3C/script>'); } })( bbcdotcom.config.isOptimizelyEnabled() );</script><script type="text/javascript">/*<![CDATA[*/ if ( window.bbcdotcom && bbcdotcom.data && bbcdotcom.data.ads && bbcdotcom.data.ads == 1 && bbcdotcom.config && bbcdotcom.config.isGrapeshotEnabled && bbcdotcom.config.isGrapeshotEnabled() && bbcdotcom.config.isWorldService && !bbcdotcom.config.isWorldService() ) { var gs_channels="DEFAULT"; (function () { var gsurl = window.location.href.split("?")[0]; bbcdotcomScripts.push({src:'https://web.archive.org/web/20191108214155/https://bbc.gscontxt.net/?url='+encodeURIComponent(gsurl)}); })(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.config && bbcdotcom.config.isLotameActive && bbcdotcom.config.isLotameActive()&& bbcdotcom.config.isLotameEnabled && bbcdotcom.config.isLotameEnabled()){ (function () { var clientId, lotameUrl, lotameAudienceUrl; clientId = (bbcdotcom.config.isWorldService && bbcdotcom.config.isWorldService()) ? '10826' : '10816'; lotameUrl = 'https://web.archive.org/web/20191108214155/https://tags.crwdcntrl.net/c/'+clientId+'/cc.js?ns='+clientId; lotameAudienceUrl = 'https://web.archive.org/web/20191108214155/https://ad.crwdcntrl.net/5/c=10815/pe=y/var=ccauds'; bbcdotcomScripts.push({src:lotameUrl,id:"LOTCC"+clientId}); bbcdotcomScripts.push({src:lotameAudienceUrl}); })(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ /** * ASYNC waits to make any gpt requests until the bottom of the page */ if ( window.bbcdotcom && bbcdotcom.data && bbcdotcom.data.ads && bbcdotcom.data.ads == 1 && bbcdotcom.config && bbcdotcom.config.isAsync && bbcdotcom.config.isAsync() ) { (function () { bbcdotcomScripts.push({src:'https://web.archive.org/web/20191108214155/https://securepubads.g.doubleclick.net/tag/js/gpt.js'}); })(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ /* Load Lotame, Grapeshot and GPT without blocking rendering but executing in order */ if ( bbcdotcomScripts && bbcdotcomScripts.length > 0 ) { (function () { bbcdotcomScripts.forEach(function(item) { var script = document.createElement('script'); script.async = false; if(item.id) script.id = item.id; script.src = item.src; document.head.appendChild(script); }); })(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function() { window.bbcdotcom.head = true; }()); /*]]>*/</script><script type="text/javascript">// Globally available search context window.SEARCHBOX={"variant":"cbeebies","locale":"en","feature":"akamai-idcta","navSearchboxStaticPrefix":"https://web.archive.org/web/20191108214155/https://nav.files.bbci.co.uk/searchbox/3.0.0-31.1df75ca","searchboxAppStaticPrefix":"https://web.archive.org/web/20191108214155/https://nav.files.bbci.co.uk/searchbox/3.0.0-31.1df75ca/drawer","searchFormHtml":"<div tabindex=\"-1\" data-reactroot=\"\" data-reactid=\"1\" data-react-checksum=\"729995048\"><div data-reactid=\"2\"><section class=\"se-searchbox-panel\" data-reactid=\"3\"><div class=\"se-g-wrap\" data-reactid=\"4\"><div class=\"se-g-layout\" data-reactid=\"5\"><div class=\"se-g-layout__item se-searchbox-title\" aria-hidden=\"true\" data-reactid=\"6\">search</div><div class=\"se-g-layout__item se-searchbox\" data-reactid=\"7\"><form accept-charset=\"utf-8\" id=\"searchboxDrawerForm\" method=\"get\" action=\"https://search.bbc.co.uk/search\" data-reactid=\"8\"><label class=\"se-searchbox__input\" for=\"se-searchbox-input-field\" data-reactid=\"9\"><span class=\"se-sr-only\" data-reactid=\"10\">Search Term</span><input type=\"text\" name=\"q\" value=\"\" id=\"se-searchbox-input-field\" class=\"se-searchbox__input__field\" maxlength=\"512\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" tabindex=\"0\" data-reactid=\"11\"/></label><input type=\"hidden\" name=\"scope\" value=\"\" data-reactid=\"12\"/><button type=\"submit\" class=\"se-searchbox__submit\" tabindex=\"0\" data-reactid=\"13\">Search</button><button type=\"button\" class=\"se-searchbox__clear se-searchbox__clear--visible\" tabindex=\"0\" data-reactid=\"14\">Close</button></form></div></div></div></section><div aria-live=\"polite\" aria-atomic=\"true\" class=\"se-suggestions-container\" data-reactid=\"15\"><section class=\"se-g-wrap\" data-reactid=\"16\"></section></div></div></div>","searchScopePlaceholder":"<input type=\"hidden\" name=\"scope\" id=\"orb-search-scope\" value=\"cbeebies\">","searchScopeParam":"?scope=cbeebies","searchScopeTemplate":"cbeebies","searchPlaceholderWrapperStart":"","searchPlaceholderWrapperEnd":""}; window.SEARCHBOX.suppress = false; window.SEARCHBOX.searchScope = SEARCHBOX.searchScopeTemplate.split('-')[0];</script><link rel="stylesheet" href="https://web.archive.org/web/20191108214155cs_/https://nav.files.bbci.co.uk/searchbox/3.0.0-31.1df75ca/css/main.css"><!--[if IE 8]> <script type="text/javascript" src="https://nav.files.bbci.co.uk/searchbox/3.0.0-31.1df75ca/script/html5shiv.min.js"></script> <script type="text/javascript">window['searchboxIEVersion'] = 8;</script> <link rel="stylesheet" href="https://nav.files.bbci.co.uk/searchbox/3.0.0-31.1df75ca/css/ie8.css"> <![endif]--><!--[if IE 9]> <script type="text/javascript">window['searchboxIEVersion'] = 9;</script> <![endif]--><script type="text/javascript">require.config({ "paths": { "orb/async/_footerpromo": 'https://web.archive.org/web/20191108214155/https://nav.files.bbci.co.uk/navpromo/3.0.0-46.715bbe4/js/async/_footerpromo' } });</script> <script type="text/javascript">"use strict";!function(){window.__reverb={},window.__reverb.__reverbLoadedPromise=new Promise(function(e,n){window.__reverb.__resolveReverbLoaded=e,window.__reverb.__rejectReverbLoaded=n}),window.__reverb.__reverbTimeout=setTimeout(function(){window.__reverb.__rejectReverbLoaded()},5e3);var n=function(r,d){window.__reverb.__reverbLoadedPromise.then(function(e){if(r&&r.detail){var n=r.detail.label,t=r.detail.type,i=r.detail.elem,o=r.detail.originalEvent;r.detail.isClick&&(d=r.detail.isClick),e.userActionEvent(t,n,r.detail,i,o,d)}},function(){console.log("Reverb failed to load. Event not sent")})};document.addEventListener("bbc-user-event",function(e){n(e,!1)}),document.addEventListener("bbc-user-click",function(e){n(e,!0)}),document.addEventListener("bbc-page-updated",function(){window.__reverb.__reverbLoadedPromise.then(function(e){e.initialise().then(function(){return e.viewEvent()})},function(){console.log("Reverb failed to load. Event not sent")})})}();</script><script type="text/javascript" src="https://web.archive.org/web/20191108214155js_/https://mybbc-analytics.files.bbci.co.uk/reverb-client-js/reverb-1.1.0.js" async=""></script> <script> require.config({ paths: { 'optimizely-ati': ['https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/stats/optimizely-ati'] } }); require(['optimizely-ati'], function (optimizelyATI) { window['optimizely'] = window['optimizely'] || []; window['optimizely'].push({'type': 'sendEvents'}); optimizelyATI.init(); }); </script> <script type="text/javascript"> require(['orb/fig'], function(orbFig) { orbFig.load(function(fig) { if (!fig.geo.isUK()) { window.location = "https://web.archive.org/web/20191108214155/http://www.cbeebies.com"; } }); }); </script> <script type="text/javascript" src="https://web.archive.org/web/20191108214155js_/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/libraries/modernizr.js"></script> <script> define('modernizr', [], Modernizr); </script> <script type="text/javascript" src="https://web.archive.org/web/20191108214155js_/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/libraries/matchMedia.js"></script> <script>window.Morph = {}</script> <script type="text/javascript">Morph.markPerformance = function(label) { if(window.performance && window.performance.mark) { window.performance.mark(label); } }; Morph.versions = {}; Morph.modules = {}; Morph.config = { cdn: "m.files.bbci.co.uk", pushEnv: "live" }; Morph.styles = {}; Morph.styleSrc = []; Morph.toInit = {bundles: [], registers: [], payloads: []}; Morph.initStyles = function() { if (!Morph.enhanced) { var eles = Array.prototype.slice.call(document.getElementsByTagName('noscript')); for (var i = 0, len = eles.length; i<len; i++) { if (eles[i].className === 'morph-core-style') { document.write(eles[i].innerText); eles[i].parentNode.removeChild(eles[i]); } } return; } for (var j = 0, jLen = Morph.styleSrc.length; j<jLen; j++) { document.write(Morph.styleSrc[j]); } Morph.styleSrc = []; };</script> <script type="text/javascript">Morph.forceCore = window.location.search.indexOf('morph-disable-enhanced=1')>-1; Morph.modernBrowser = ( 'addEventListener' in window && 'querySelector' in document && 'localStorage' in window ); Morph.isOperaMini = ( window.navigator.userAgent.indexOf('Opera Mini/')>-1 && window.navigator.userAgent.indexOf('Presto/')>-1 ); Morph.enhanced = (!Morph.forceCore && Morph.modernBrowser && !Morph.isOperaMini);</script> <!--[if gt IE 8]><!--><noscript class="morph-core-style"><!--<![endif]--><style>@import url("https://web.archive.org/web/20191108214155cs_/https://gel.files.bbci.co.uk/r2.302/bbc-reith.css");body{margin:0}.game-wrapper{position:relative;width:100%;height:101%;padding-bottom:56.25%;background-color:#000}#fullscreen-game-embed .game-wrapper{padding-bottom:0}.game-wrapper--fixedsize{position:relative;margin:0 auto}@keyframes rotating{from{-ms-transform:translate(-50%, -50%) rotate(0deg);-moz-transform:translate(-50%, -50%) rotate(0deg);-webkit-transform:translate(-50%, -50%) rotate(0deg);-o-transform:translate(-50%, -50%) rotate(0deg);transform:translate(-50%, -50%) rotate(0deg)}to{-ms-transform:translate(-50%, -50%) rotate(360deg);-moz-transform:translate(-50%, -50%) rotate(360deg);-webkit-transform:translate(-50%, -50%) rotate(360deg);-o-transform:translate(-50%, -50%) rotate(360deg);transform:translate(-50%, -50%) rotate(360deg)}}.game-wrapper__loading-spinner{position:absolute;left:50%;top:50%;animation:rotating 1.5s linear infinite}.game-wrapper__loading-spinner path{fill:#fff}.game-wrapper__cta{position:absolute;height:100%;width:100%;cursor:pointer;background-color:#000}.game-wrapper__cta img{width:100%;height:100%}.game-wrapper__cta:hover .game-holder__cta-button{background-color:rgba(186,26,23,0.75)}.game-wrapper__cta-button{position:absolute;bottom:0;left:0;width:80px;height:80px;background-color:rgba(0,0,0,0.75)}.game-wrapper__cta-icon{position:absolute;top:16px;left:16px;width:49px;height:39px}.game-wrapper__iframe{position:absolute;width:100%;height:100%}.game-wrapper__game{position:fixed;width:100%;height:100%}.game-wrapper__iframe--fixedsize{position:absolute;margin:0 auto}.cage-rotate-screen{position:fixed;display:block;overflow:visible;left:0;top:0;width:100%;height:100%;margin-left:auto;z-index:2147483647;color:#fff;background-color:#000}.cage-rotate-screen__icon{position:absolute;width:40%;height:40%;top:30%;right:20%}.cage-rotate-screen__path{fill:#fff}.cage-rotate-screen__text{position:absolute;width:100%;top:50%;right:20%;text-align:center;font:bold 7vmin Helvetica, sans-serif}.rotate-90{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.cage-overlay{position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;background:rgba(0,0,0,0.4)}.cage-overlay__modal{top:25%;width:50%;min-width:325px;height:50%;min-height:150px;overflow:hidden;background-color:#fff;z-index:1;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;font-size:110%}.cage-overlay__title{position:relative;margin:0 auto;padding:0;text-align:center;border-bottom:1px solid #B7BBBB}.cage-overlay__title-text{padding:1.1em 3em;text-align:center;font:bold 1.3em arial,sans-serif;color:#3F3E4A;outline:0}.cage-overlay__close-button{position:absolute;right:10px;top:10px;padding:2px 2px 0;border:0;background-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-backface-visibility:hidden}.cage-overlay__close-button:hover .cage-settings__close-icon-circle{fill:#B3B3B5}.cage-overlay__close-button:focus{-webkit-focus-ring-color:#bfbfc2}.cage-overlay__close-icon-circle{transition:200ms;transition-timing-function:ease-in-out;-webkit-transition:200ms;-webkit-transition-timing-function:ease-in-out;fill:#F0F0F4}.cage-overlay__subheading{padding:1em 2.2em;font:bold 0.9em arial,sans-serif;text-transform:uppercase;color:#939397;background-color:#F0F0F4}.cage-overlay__content{height:calc(100% - 68px);overflow-y:auto;outline:0}.cage-overlay__content::-webkit-scrollbar{-webkit-appearance:none}.cage-overlay__content::-webkit-scrollbar:vertical{width:12px}.cage-overlay__content::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,0.5);border-radius:10px;border:2px solid #fff}.cage-overlay__content::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}@media (max-width: 410px){.cage-overlay__modal{top:5%;width:90%;height:90%;font-size:85%}.cage-overlay__content{height:calc(100% - 53px)}.cage-overlay__close-button{top:8px;right:8px}.cage-overlay__close-icon{width:36px;height:36px}.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 450px) and (min-width: 411px){.cage-overlay__modal{top:5%;width:90%;height:90%;font-size:85%}.cage-overlay__content{height:calc(100% - 53px)}.cage-overlay__close-button{top:8px;right:8px}.cage-overlay__close-icon{width:36px;height:36px}.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 580px) and (min-width: 451px){.cage-overlay__modal{top:5%;width:80%;height:90%;font-size:90%}.cage-overlay__content{height:calc(100% - 56px)}.cage-overlay__close-icon{width:36px;height:36px}.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 780px) and (min-width: 581px){.cage-overlay__modal{top:10%;width:80%;height:80%;font-size:90%}.cage-overlay__content{height:calc(100% - 56px)}.cage-overlay__close-icon{width:36px;height:36px}.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 980px) and (min-width: 781px){.cage-overlay__modal{top:15%;width:70%;height:70%}}@media (max-width: 1470px) and (min-width: 981px){.cage-overlay--mobile{width:80%}.cage-overlay--mobile .cage-settings__modal{height:70%}}.cage-achievements{display:block;top:10%;height:80%;width:52%;padding-bottom:5px;font-family:ReithSans,Arial,Helvetica,freesans,sans-serif;background-color:#2a205c;opacity:1}.cage-achievements .cage-overlay__content{padding:0 10px;margin-right:10px;height:calc(100% - 61px)}.cage-achievements .cage-overlay__modal{border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px}.cage-achievements .cage-overlay__content::-webkit-scrollbar:vertical{width:10px}.cage-achievements .cage-overlay__content::-webkit-scrollbar-thumb{background-color:#fff;border-radius:3px}.cage-achievements .cage-overlay__content::-webkit-scrollbar-track{border-radius:3px;background-color:#746d93}.cage-achievements .cage-overlay__title{border-bottom:none}.cage-achievements .cage-overlay__title-text{padding:16px 0px 15px 0px;line-height:100%;text-align:center;font:bold 20px ReithSans,Arial,Helvetica,freesans,sans-serif;color:#fff}.cage-achievement{display:flex;margin-bottom:8px;padding:6px;min-height:58px;border-radius:3px;font-size:13px;line-height:16px;color:#3b3b3b;background-color:#fff}.cage-achievement svg{float:left;width:13px;height:13px;margin-right:4px;margin-top:5px;fill:#FFD130}.cage-achievement--locked{background-color:#EAE9EE}.cage-achievement--locked svg{fill:#B4B4B4}.cage-achievement:last-child{margin-bottom:0}.cage-achievement__icon{width:58px;height:58px;min-width:58px;margin-right:6px;border-radius:2px}.cage-achievement__inner{width:80%}.cage-achievement__title{margin:2px 0 0;line-height:18px;font-size:15px;font-weight:bold;color:#222}.cage-achievement__description{margin:4px 0 2px 0}.cage-achievement__hintline-prefix{font-weight:bold}.cage-achievement__hintline-text{font-style:italic}.cage-achievement progress{border:none;border-radius:5px;background-color:#d6d6d6}.cage-achievement progress::-ms-fill{background-color:#00d2a9;border:none;border-radius:5px}.cage-achievement progress[value]{-webkit-appearance:none;appearance:none;width:170px;height:10px;margin-right:6px;position:relative;bottom:2px}.cage-achievement progress[value]::-webkit-progress-bar{background-color:#d6d6d6;border-radius:5px;overflow:hidden}.cage-achievement progress::-moz-progress-bar{background:#00d2a9;border-radius:5px}.cage-achievement progress[value]::-webkit-progress-value{background:#00d2a9;border-radius:5px}.cage-overlay__modal{width:75%;height:calc(100% - 4vw)}@media (min-width: 769px){.cage-overlay__modal{width:744px;height:86%;max-height:623px}.cage-achievements .cage-overlay__content::-webkit-scrollbar:vertical{width:16px}.cage-achievements .cage-overlay__content{padding:0 16px;margin-right:16px;height:calc(100% - 81px)}.cage-achievements .cage-overlay__title{border-bottom:none}.cage-achievements .cage-overlay__title-text{padding:20px 0px 22px 0px;line-height:100%;text-align:center;font:bold 26px ReithSans,Arial,Helvetica,freesans,sans-serif;color:#fff}.cage-achievement{display:flex;margin-bottom:10px;padding:8px;min-height:74px;border-radius:3px;font-size:15px;line-height:22px}.cage-achievement progress[value]{-webkit-appearance:none;appearance:none;width:216px;height:10px;margin-right:6px;position:relative;bottom:3px}.cage-achievement svg{float:left;width:16px;height:16px;margin-right:6px;margin-top:6px}.cage-achievement__icon{width:74px;height:74px;min-width:74px;margin-right:10px;border-radius:2px}.cage-achievement__title{margin:2px 0 0;line-height:22px;font-size:18px;font-weight:bold;color:#222}.cage-achievement__description{margin:4px 0 2px 0}.cage-achievement__hintline-prefix{font-weight:bold}.cage-achievement__hintline-text{font-style:italic}}.cage-setting{position:relative;padding:1em 2.2em;border-bottom:1px solid #F0F0F4}.cage-setting:last-child{border-bottom:0}.cage-setting__info{display:block;padding-right:86px;font:normal 1em arial,sans-serif}.cage-setting__title{padding-bottom:0.3em;font-weight:bold;color:#323232}.cage-setting__description{font-size:1em;color:#939397}.cage-setting__toggle{position:absolute;right:1.8em;top:10px}.cage-setting__toggle_button{margin-top:0.4em;padding:0.4em 0.4em 0.2em;border:0;background-color:rgba(0,0,0,0);-webkit-backface-visibility:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.cage-setting__toggle_button:active,.cage-setting__toggle_button:focus{background-color:rgba(0,0,0,0);-webkit-focus-ring-color:#bfbfc2}.cage-setting__toggle_button .cage-setting__toggle-slider,.cage-setting__toggle_button .cage-setting__toggle-outline{transition:200ms;transition-timing-function:ease-in-out;-webkit-transition:200ms;-webkit-transition-timing-function:ease-in-out}.cage-setting__toggle_button--on .cage-setting__toggle-outline{fill:#44D6DA}.cage-setting__toggle_button--off .cage-setting__toggle-outline{fill:#D8D8D8}@media (max-width: 410px){.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 450px) and (min-width: 411px){.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 580px) and (min-width: 451px){.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 780px) and (min-width: 581px){.cage-setting__toggle-icon{width:42px;height:26px}}.game-wrapper__error{padding-top:5%;background-color:#000;color:#fff;font-family:Arial, Helvetica, sans-serif;text-align:center;font-size:26px}.game-wrapper__error a{color:#fff;text-decoration:underline;font-weight:bold}@media screen and (min-width: 400px){.game-wrapper__error h1{margin:8px 70px}.game-wrapper__error p{margin:8px 70px}}@media screen and (min-width: 600px){.game-wrapper__error h1{margin:16px 96px;font-size:20px}.game-wrapper__error p{margin:16px 96px;font-size:18px}}@media screen and (min-width: 770px){.game-wrapper__error h1{margin:16px 126px;font-size:26px}.game-wrapper__error p{margin:16px 126px;font-size:20px}}@media screen and (min-width: 1008px){.game-wrapper__error h1{margin:16px 246px}.game-wrapper__error p{margin:16px 246px}}.game-wrapper #brim{display:none}.cage-brim#cage-brim{position:absolute;width:100%;height:1000%}.cage-brim__message{position:fixed;top:0;left:0;width:100%;height:100%;z-index:2147483647;background-color:#000000;touch-action:manipulation}.cage-brim--disabled{display:none}.cage-brim__text{position:absolute;top:54vmin;left:0px;right:0px;color:#FFFFFF;text-align:center;font:bold 7vmin Helvetica, sans-serif}@keyframes hand-movement{21%{transform:rotate(-20deg);visibility:hidden;left:50%;top:27vmin}50%{transform:rotate(-5deg);visibility:hidden;left:50%;top:7vmin}}@keyframes hand-tap-swipe{20%{transform:rotate(-20deg);visibility:hidden;top:27vmin}50%{transform:rotate(-5deg);visibility:visible;top:7vmin}51%{visibility:hidden;top:7vmin}}@keyframes arrow-swipe{20%{opacity:0;top:26vmin}30%{opacity:1}50%{opacity:1;top:7vmin}100%{opacity:0;top:7vmin}}.cage-brim__hand{position:absolute;left:50%;top:24vmin;width:30vmin;height:30vmin;animation:hand-movement 2.2s ease infinite;transform:translate(10vmin);transform-origin:bottom right}.cage-brim__hand-tap{position:absolute;left:50%;top:27vmin;width:30vmin;height:30vmin;visibility:hidden;animation:hand-tap-swipe 2.2s ease infinite;transform-origin:bottom right}.cage-brim__arrow{position:absolute;left:50%;top:26vmin;width:40vmin;height:40vmin;opacity:0;animation:arrow-swipe 2.2s ease infinite;transform:translate(-30vmin)}.cage-achievement-notification{position:fixed;left:50%;bottom:45px;margin-left:-215px;width:430px;height:100px;pointer-events:none;font-family:ReithSans,Arial,Helvetica,freesans,sans-serif}.cage-achievement-toast__container{position:relative;left:50%;margin-left:-215px;width:430px;height:100px;opacity:1;transform:translateZ(0);backface-visibility:hidden;background-size:100%;background-position:0 0;animation:achievement-animateBoxIn 1.93s steps(58, end) 1 forwards,achievement-animateBoxOut 1s steps(30, end) 6s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.cage-achievement-toast__icon{position:absolute;top:21px;left:42px;width:58px;height:58px;opacity:0;border-radius:2px;animation:achievement-scrollIn 0.2s ease-out 2.22s forwards, achievement-fadeOut 0.2s ease-in 6s forwards;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.cage-achievement-toast__inner{position:absolute;top:21px;left:111px;width:282px}.cage-achievement-toast__title{position:absolute;top:6px;font-size:22px;line-height:22px;font-weight:bold;opacity:0;animation:achievement-scrollIn 0.2s ease-out 2s forwards, achievement-scrollOut 0.2s ease-in 4s forwards;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.cage-achievement-toast__name{position:absolute;top:31px;font-size:18px;line-height:22px;height:22px;overflow:hidden;opacity:0;animation:achievement-scrollIn 0.2s ease-out 2.32s forwards, achievement-scrollOut 0.2s ease-in 4s forwards;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.cage-achievement-toast__name svg{float:left;margin-right:5px;margin-top:4px;width:16px;height:16px;fill:#FFD130}.cage-achievement-toast__description{position:absolute;top:8px;height:44px;font-size:18px;line-height:22px;opacity:0;overflow:hidden;animation:achievement-scrollIn 0.2s ease-out 4.2s forwards, achievement-scrollOut 0.2s ease-in 6s forwards;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@keyframes achievement-animateBoxIn{from{background-position:0 0}to{background-position:0 -5800px}}@keyframes achievement-animateBoxOut{from{background-position:0 -5800px}to{background-position:0 -8800px}}@keyframes achievement-scrollIn{from{margin-top:5px;opacity:0}to{margin-top:0;opacity:1}}@keyframes achievement-scrollOut{from{margin-top:0;opacity:1}to{margin-top:-5px;opacity:0}}@keyframes achievement-fadeIn{from{opacity:0}to{opacity:1}}@keyframes achievement-fadeOut{from{opacity:1}to{opacity:0}}@media screen and (max-width: 769px){.cage-achievement-notification{width:344px;height:80px;bottom:16px;margin-left:-172px}.cage-achievement-toast__container{width:344px;height:80px;margin-left:-172px;opacity:1}.cage-achievement-toast__inner{top:19px;left:83px;width:237px}.cage-achievement-toast__icon{top:19px;left:31px;width:42px;height:42px}.cage-achievement-toast__title{top:0;font-size:16px;line-height:20px}.cage-achievement-toast__name{top:21px;height:18px;font-size:14px;line-height:18px}.cage-achievement-toast__name svg{width:12px;height:12px}.cage-achievement-toast__description{top:2px;font-size:14px;line-height:18px;height:36px}@keyframes achievement-animateBoxIn{from{background-position:0 0}to{background-position:0 -4640px}}@keyframes achievement-animateBoxOut{from{background-position:0 -4640px}to{background-position:0 -7040px}}} </style><!--[if gt IE 8]><!--></noscript><!--<![endif]--><script>if (Morph.enhanced) { Morph.styles["bbc-morph-childrens-games-view/6.0.1"]=true; Morph.styleSrc.push("<style>@import url(\"https://gel.files.bbci.co.uk/r2.302/bbc-reith.css\");body{margin:0}.game-wrapper{position:relative;width:100%;height:101%;padding-bottom:56.25%;background-color:#000}#fullscreen-game-embed .game-wrapper{padding-bottom:0}.game-wrapper--fixedsize{position:relative;margin:0 auto}@keyframes rotating{from{-ms-transform:translate(-50%, -50%) rotate(0deg);-moz-transform:translate(-50%, -50%) rotate(0deg);-webkit-transform:translate(-50%, -50%) rotate(0deg);-o-transform:translate(-50%, -50%) rotate(0deg);transform:translate(-50%, -50%) rotate(0deg)}to{-ms-transform:translate(-50%, -50%) rotate(360deg);-moz-transform:translate(-50%, -50%) rotate(360deg);-webkit-transform:translate(-50%, -50%) rotate(360deg);-o-transform:translate(-50%, -50%) rotate(360deg);transform:translate(-50%, -50%) rotate(360deg)}}.game-wrapper__loading-spinner{position:absolute;left:50%;top:50%;animation:rotating 1.5s linear infinite}.game-wrapper__loading-spinner path{fill:#fff}.game-wrapper__cta{position:absolute;height:100%;width:100%;cursor:pointer;background-color:#000}.game-wrapper__cta img{width:100%;height:100%}.game-wrapper__cta:hover .game-holder__cta-button{background-color:rgba(186,26,23,0.75)}.game-wrapper__cta-button{position:absolute;bottom:0;left:0;width:80px;height:80px;background-color:rgba(0,0,0,0.75)}.game-wrapper__cta-icon{position:absolute;top:16px;left:16px;width:49px;height:39px}.game-wrapper__iframe{position:absolute;width:100%;height:100%}.game-wrapper__game{position:fixed;width:100%;height:100%}.game-wrapper__iframe--fixedsize{position:absolute;margin:0 auto}.cage-rotate-screen{position:fixed;display:block;overflow:visible;left:0;top:0;width:100%;height:100%;margin-left:auto;z-index:2147483647;color:#fff;background-color:#000}.cage-rotate-screen__icon{position:absolute;width:40%;height:40%;top:30%;right:20%}.cage-rotate-screen__path{fill:#fff}.cage-rotate-screen__text{position:absolute;width:100%;top:50%;right:20%;text-align:center;font:bold 7vmin Helvetica, sans-serif}.rotate-90{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.cage-overlay{position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;background:rgba(0,0,0,0.4)}.cage-overlay__modal{top:25%;width:50%;min-width:325px;height:50%;min-height:150px;overflow:hidden;background-color:#fff;z-index:1;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;font-size:110%}.cage-overlay__title{position:relative;margin:0 auto;padding:0;text-align:center;border-bottom:1px solid #B7BBBB}.cage-overlay__title-text{padding:1.1em 3em;text-align:center;font:bold 1.3em arial,sans-serif;color:#3F3E4A;outline:0}.cage-overlay__close-button{position:absolute;right:10px;top:10px;padding:2px 2px 0;border:0;background-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-backface-visibility:hidden}.cage-overlay__close-button:hover .cage-settings__close-icon-circle{fill:#B3B3B5}.cage-overlay__close-button:focus{-webkit-focus-ring-color:#bfbfc2}.cage-overlay__close-icon-circle{transition:200ms;transition-timing-function:ease-in-out;-webkit-transition:200ms;-webkit-transition-timing-function:ease-in-out;fill:#F0F0F4}.cage-overlay__subheading{padding:1em 2.2em;font:bold 0.9em arial,sans-serif;text-transform:uppercase;color:#939397;background-color:#F0F0F4}.cage-overlay__content{height:calc(100% - 68px);overflow-y:auto;outline:0}.cage-overlay__content::-webkit-scrollbar{-webkit-appearance:none}.cage-overlay__content::-webkit-scrollbar:vertical{width:12px}.cage-overlay__content::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,0.5);border-radius:10px;border:2px solid #fff}.cage-overlay__content::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}@media (max-width: 410px){.cage-overlay__modal{top:5%;width:90%;height:90%;font-size:85%}.cage-overlay__content{height:calc(100% - 53px)}.cage-overlay__close-button{top:8px;right:8px}.cage-overlay__close-icon{width:36px;height:36px}.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 450px) and (min-width: 411px){.cage-overlay__modal{top:5%;width:90%;height:90%;font-size:85%}.cage-overlay__content{height:calc(100% - 53px)}.cage-overlay__close-button{top:8px;right:8px}.cage-overlay__close-icon{width:36px;height:36px}.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 580px) and (min-width: 451px){.cage-overlay__modal{top:5%;width:80%;height:90%;font-size:90%}.cage-overlay__content{height:calc(100% - 56px)}.cage-overlay__close-icon{width:36px;height:36px}.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 780px) and (min-width: 581px){.cage-overlay__modal{top:10%;width:80%;height:80%;font-size:90%}.cage-overlay__content{height:calc(100% - 56px)}.cage-overlay__close-icon{width:36px;height:36px}.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 980px) and (min-width: 781px){.cage-overlay__modal{top:15%;width:70%;height:70%}}@media (max-width: 1470px) and (min-width: 981px){.cage-overlay--mobile{width:80%}.cage-overlay--mobile .cage-settings__modal{height:70%}}.cage-achievements{display:block;top:10%;height:80%;width:52%;padding-bottom:5px;font-family:ReithSans,Arial,Helvetica,freesans,sans-serif;background-color:#2a205c;opacity:1}.cage-achievements .cage-overlay__content{padding:0 10px;margin-right:10px;height:calc(100% - 61px)}.cage-achievements .cage-overlay__modal{border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px}.cage-achievements .cage-overlay__content::-webkit-scrollbar:vertical{width:10px}.cage-achievements .cage-overlay__content::-webkit-scrollbar-thumb{background-color:#fff;border-radius:3px}.cage-achievements .cage-overlay__content::-webkit-scrollbar-track{border-radius:3px;background-color:#746d93}.cage-achievements .cage-overlay__title{border-bottom:none}.cage-achievements .cage-overlay__title-text{padding:16px 0px 15px 0px;line-height:100%;text-align:center;font:bold 20px ReithSans,Arial,Helvetica,freesans,sans-serif;color:#fff}.cage-achievement{display:flex;margin-bottom:8px;padding:6px;min-height:58px;border-radius:3px;font-size:13px;line-height:16px;color:#3b3b3b;background-color:#fff}.cage-achievement svg{float:left;width:13px;height:13px;margin-right:4px;margin-top:5px;fill:#FFD130}.cage-achievement--locked{background-color:#EAE9EE}.cage-achievement--locked svg{fill:#B4B4B4}.cage-achievement:last-child{margin-bottom:0}.cage-achievement__icon{width:58px;height:58px;min-width:58px;margin-right:6px;border-radius:2px}.cage-achievement__inner{width:80%}.cage-achievement__title{margin:2px 0 0;line-height:18px;font-size:15px;font-weight:bold;color:#222}.cage-achievement__description{margin:4px 0 2px 0}.cage-achievement__hintline-prefix{font-weight:bold}.cage-achievement__hintline-text{font-style:italic}.cage-achievement progress{border:none;border-radius:5px;background-color:#d6d6d6}.cage-achievement progress::-ms-fill{background-color:#00d2a9;border:none;border-radius:5px}.cage-achievement progress[value]{-webkit-appearance:none;appearance:none;width:170px;height:10px;margin-right:6px;position:relative;bottom:2px}.cage-achievement progress[value]::-webkit-progress-bar{background-color:#d6d6d6;border-radius:5px;overflow:hidden}.cage-achievement progress::-moz-progress-bar{background:#00d2a9;border-radius:5px}.cage-achievement progress[value]::-webkit-progress-value{background:#00d2a9;border-radius:5px}.cage-overlay__modal{width:75%;height:calc(100% - 4vw)}@media (min-width: 769px){.cage-overlay__modal{width:744px;height:86%;max-height:623px}.cage-achievements .cage-overlay__content::-webkit-scrollbar:vertical{width:16px}.cage-achievements .cage-overlay__content{padding:0 16px;margin-right:16px;height:calc(100% - 81px)}.cage-achievements .cage-overlay__title{border-bottom:none}.cage-achievements .cage-overlay__title-text{padding:20px 0px 22px 0px;line-height:100%;text-align:center;font:bold 26px ReithSans,Arial,Helvetica,freesans,sans-serif;color:#fff}.cage-achievement{display:flex;margin-bottom:10px;padding:8px;min-height:74px;border-radius:3px;font-size:15px;line-height:22px}.cage-achievement progress[value]{-webkit-appearance:none;appearance:none;width:216px;height:10px;margin-right:6px;position:relative;bottom:3px}.cage-achievement svg{float:left;width:16px;height:16px;margin-right:6px;margin-top:6px}.cage-achievement__icon{width:74px;height:74px;min-width:74px;margin-right:10px;border-radius:2px}.cage-achievement__title{margin:2px 0 0;line-height:22px;font-size:18px;font-weight:bold;color:#222}.cage-achievement__description{margin:4px 0 2px 0}.cage-achievement__hintline-prefix{font-weight:bold}.cage-achievement__hintline-text{font-style:italic}}.cage-setting{position:relative;padding:1em 2.2em;border-bottom:1px solid #F0F0F4}.cage-setting:last-child{border-bottom:0}.cage-setting__info{display:block;padding-right:86px;font:normal 1em arial,sans-serif}.cage-setting__title{padding-bottom:0.3em;font-weight:bold;color:#323232}.cage-setting__description{font-size:1em;color:#939397}.cage-setting__toggle{position:absolute;right:1.8em;top:10px}.cage-setting__toggle_button{margin-top:0.4em;padding:0.4em 0.4em 0.2em;border:0;background-color:rgba(0,0,0,0);-webkit-backface-visibility:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.cage-setting__toggle_button:active,.cage-setting__toggle_button:focus{background-color:rgba(0,0,0,0);-webkit-focus-ring-color:#bfbfc2}.cage-setting__toggle_button .cage-setting__toggle-slider,.cage-setting__toggle_button .cage-setting__toggle-outline{transition:200ms;transition-timing-function:ease-in-out;-webkit-transition:200ms;-webkit-transition-timing-function:ease-in-out}.cage-setting__toggle_button--on .cage-setting__toggle-outline{fill:#44D6DA}.cage-setting__toggle_button--off .cage-setting__toggle-outline{fill:#D8D8D8}@media (max-width: 410px){.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 450px) and (min-width: 411px){.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 580px) and (min-width: 451px){.cage-setting__toggle-icon{width:42px;height:26px}}@media (max-width: 780px) and (min-width: 581px){.cage-setting__toggle-icon{width:42px;height:26px}}.game-wrapper__error{padding-top:5%;background-color:#000;color:#fff;font-family:Arial, Helvetica, sans-serif;text-align:center;font-size:26px}.game-wrapper__error a{color:#fff;text-decoration:underline;font-weight:bold}@media screen and (min-width: 400px){.game-wrapper__error h1{margin:8px 70px}.game-wrapper__error p{margin:8px 70px}}@media screen and (min-width: 600px){.game-wrapper__error h1{margin:16px 96px;font-size:20px}.game-wrapper__error p{margin:16px 96px;font-size:18px}}@media screen and (min-width: 770px){.game-wrapper__error h1{margin:16px 126px;font-size:26px}.game-wrapper__error p{margin:16px 126px;font-size:20px}}@media screen and (min-width: 1008px){.game-wrapper__error h1{margin:16px 246px}.game-wrapper__error p{margin:16px 246px}}.game-wrapper #brim{display:none}.cage-brim#cage-brim{position:absolute;width:100%;height:1000%}.cage-brim__message{position:fixed;top:0;left:0;width:100%;height:100%;z-index:2147483647;background-color:#000000;touch-action:manipulation}.cage-brim--disabled{display:none}.cage-brim__text{position:absolute;top:54vmin;left:0px;right:0px;color:#FFFFFF;text-align:center;font:bold 7vmin Helvetica, sans-serif}@keyframes hand-movement{21%{transform:rotate(-20deg);visibility:hidden;left:50%;top:27vmin}50%{transform:rotate(-5deg);visibility:hidden;left:50%;top:7vmin}}@keyframes hand-tap-swipe{20%{transform:rotate(-20deg);visibility:hidden;top:27vmin}50%{transform:rotate(-5deg);visibility:visible;top:7vmin}51%{visibility:hidden;top:7vmin}}@keyframes arrow-swipe{20%{opacity:0;top:26vmin}30%{opacity:1}50%{opacity:1;top:7vmin}100%{opacity:0;top:7vmin}}.cage-brim__hand{position:absolute;left:50%;top:24vmin;width:30vmin;height:30vmin;animation:hand-movement 2.2s ease infinite;transform:translate(10vmin);transform-origin:bottom right}.cage-brim__hand-tap{position:absolute;left:50%;top:27vmin;width:30vmin;height:30vmin;visibility:hidden;animation:hand-tap-swipe 2.2s ease infinite;transform-origin:bottom right}.cage-brim__arrow{position:absolute;left:50%;top:26vmin;width:40vmin;height:40vmin;opacity:0;animation:arrow-swipe 2.2s ease infinite;transform:translate(-30vmin)}.cage-achievement-notification{position:fixed;left:50%;bottom:45px;margin-left:-215px;width:430px;height:100px;pointer-events:none;font-family:ReithSans,Arial,Helvetica,freesans,sans-serif}.cage-achievement-toast__container{position:relative;left:50%;margin-left:-215px;width:430px;height:100px;opacity:1;transform:translateZ(0);backface-visibility:hidden;background-size:100%;background-position:0 0;animation:achievement-animateBoxIn 1.93s steps(58, end) 1 forwards,achievement-animateBoxOut 1s steps(30, end) 6s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.cage-achievement-toast__icon{position:absolute;top:21px;left:42px;width:58px;height:58px;opacity:0;border-radius:2px;animation:achievement-scrollIn 0.2s ease-out 2.22s forwards, achievement-fadeOut 0.2s ease-in 6s forwards;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.cage-achievement-toast__inner{position:absolute;top:21px;left:111px;width:282px}.cage-achievement-toast__title{position:absolute;top:6px;font-size:22px;line-height:22px;font-weight:bold;opacity:0;animation:achievement-scrollIn 0.2s ease-out 2s forwards, achievement-scrollOut 0.2s ease-in 4s forwards;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.cage-achievement-toast__name{position:absolute;top:31px;font-size:18px;line-height:22px;height:22px;overflow:hidden;opacity:0;animation:achievement-scrollIn 0.2s ease-out 2.32s forwards, achievement-scrollOut 0.2s ease-in 4s forwards;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.cage-achievement-toast__name svg{float:left;margin-right:5px;margin-top:4px;width:16px;height:16px;fill:#FFD130}.cage-achievement-toast__description{position:absolute;top:8px;height:44px;font-size:18px;line-height:22px;opacity:0;overflow:hidden;animation:achievement-scrollIn 0.2s ease-out 4.2s forwards, achievement-scrollOut 0.2s ease-in 6s forwards;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@keyframes achievement-animateBoxIn{from{background-position:0 0}to{background-position:0 -5800px}}@keyframes achievement-animateBoxOut{from{background-position:0 -5800px}to{background-position:0 -8800px}}@keyframes achievement-scrollIn{from{margin-top:5px;opacity:0}to{margin-top:0;opacity:1}}@keyframes achievement-scrollOut{from{margin-top:0;opacity:1}to{margin-top:-5px;opacity:0}}@keyframes achievement-fadeIn{from{opacity:0}to{opacity:1}}@keyframes achievement-fadeOut{from{opacity:1}to{opacity:0}}@media screen and (max-width: 769px){.cage-achievement-notification{width:344px;height:80px;bottom:16px;margin-left:-172px}.cage-achievement-toast__container{width:344px;height:80px;margin-left:-172px;opacity:1}.cage-achievement-toast__inner{top:19px;left:83px;width:237px}.cage-achievement-toast__icon{top:19px;left:31px;width:42px;height:42px}.cage-achievement-toast__title{top:0;font-size:16px;line-height:20px}.cage-achievement-toast__name{top:21px;height:18px;font-size:14px;line-height:18px}.cage-achievement-toast__name svg{width:12px;height:12px}.cage-achievement-toast__description{top:2px;font-size:14px;line-height:18px;height:36px}@keyframes achievement-animateBoxIn{from{background-position:0 0}to{background-position:0 -4640px}}@keyframes achievement-animateBoxOut{from{background-position:0 -4640px}to{background-position:0 -7040px}}}\n</style>"); }</script> <script type="text/javascript">Morph.initStyles(); /* u6668907226676463 */</script> <!--[if gt IE 8]><!--><noscript class="morph-core-style"><!--<![endif]--><style>.reactions-styleguide__section{background-color:#fff;margin-bottom:32px}@media (min-width: 37.5em){.reactions-styleguide__section{padding:16px}}.reactions-styleguide__heading{background-color:#FFD201;margin-left:-16px;margin-right:-16px;padding:16px}.reactions-styleguide__heading:first-of-type{margin-top:-16px}.reactions-styleguide__heading,.reactions-styleguide__subheading{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;font-weight:bold;margin-bottom:16px;margin-top:32px}#reactions-list li{list-style:none}.reactions__standalone .content-item-description{*zoom:1}.reactions__standalone .content-item-description:before,.reactions__standalone .content-item-description:after{content:" ";display:table}.reactions__standalone .content-item-description:after{clear:both}.reactions__standalone{max-width:864px}.reactions__standalone::before{position:relative;content:"";display:block;width:100%;background-color:black;padding-top:56.25%;z-index:999}.reactions__standalone .content-item-description{color:palette("text-dark");padding:16px 8px}@media (min-width: 37.5em){.reactions__standalone .content-item-description{padding:16px}}.reactions__standalone .reactions-container{width:calc(100% + 16px);margin-top:-16px;margin-right:-16px;margin-bottom:16px;margin-left:-8px}.content-item--riddle-content .reactions__standalone .reactions-container{margin-top:0}@media (min-width: 37.5em){.reactions__standalone .reactions-container{width:calc(100% + 32px);margin-left:-16px}}.reactions__standalone .content-item-description .reactions-cta{float:right;padding-left:16px;padding-right:4px}@media (min-width: 25em){.reactions__standalone .content-item-description .reactions-cta{padding-right:8px}}@media (min-width: 37.5em){.reactions__standalone .content-item-description .reactions-cta{padding-right:16px}}.reactions__standalone .content-item-description .reactions-cta--open{margin-top:0}.reactions__standalone .content-item-description .reactions-tray__reactions{z-index:999}.reactions-module{pointer-events:none;position:relative}.reactions .reactions-tray{margin-top:-36px;position:relative;z-index:999;pointer-events:none}.reactions .reactions-tray::before{display:block;height:20px;content:''}.reactions .reactions-tray__reactions-container{display:block;position:relative;padding:0 3px;max-height:0;height:auto;transition:max-height 300ms 120ms;background-color:#FDF6FF}@media (min-width: 37.5em){.reactions .reactions-tray__reactions-container{justify-content:center;-ms-flex-pack:center;-webkit-justify-content:center}}@media (prefers-reduced-motion: reduce){.reactions .reactions-tray__reactions-container{transition:none;max-height:0}}.reactions .reactions-tray__reactions-container:after{content:"";position:absolute;width:100%;height:5px;left:0;background:linear-gradient(rgba(43,31,90,0), rgba(43,31,90,0.2));bottom:0;visibility:hidden;transition:visibility 1ms 300ms}.reactions .reactions-tray__reactions-container li{padding-bottom:0;visibility:hidden;transition:visibility 0ms linear 300ms}.reactions .reactions-tray__reactive-prompt{font-size:12px;font-size:.75rem;line-height:16px;line-height:1rem;text-transform:uppercase;color:#333;opacity:0;padding-bottom:16px;text-align:center;text-transform:uppercase;transition:opacity 300ms,visibility 0s linear 200ms;visibility:hidden}.reactions .reactions-tray__reactions-container--open{display:block;max-height:124px;pointer-events:all;transition:max-height 300ms}@media (min-width: 37.5em){.reactions .reactions-tray__reactions-container--open{max-height:154px}}.reactions .reactions-tray__reactions-container--open:after{visibility:visible;transition:visibility 1ms}.reactions .reactions-tray__reactions-container--open li{visibility:visible;transition:visibility 0ms linear 0ms}.reactions .reactions-tray__reactions-container--open .reactions-tray__reactive-prompt{visibility:visible;opacity:1}.reactions .reactions-cta{border:0;position:relative;overflow:visible;cursor:pointer;background-color:transparent;margin:8px 0;pointer-events:auto;z-index:999}.reactions .reactions-cta:hover .cta-cbbc-icon,.reactions .reactions-cta:hover .cta-cbeebies-icon{animation-play-state:paused}@media (min-width: 37.5em){.reactions .reactions-cta:hover .cta-cbbc-icon svg,.reactions .reactions-cta:hover .cta-cbeebies-icon svg{transition:all 500ms ease;transform:scale(1.1)}}.reactions .reactions-cta:not(.reactions-cta--clicked) .cta-cbbc-icon,.reactions .reactions-cta:not(.reactions-cta--clicked) .cta-cbeebies-icon{display:block;animation-name:wiggle;animation-duration:7s;animation-delay:5s;animation-iteration-count:3}.reactions .cta-icon svg{width:54px}@keyframes wiggle{0%{transform:scale(1) rotate(0deg)}10%{transform:scale(1.05) rotate(0deg)}11%{transform:scale(1.05) rotate(-5deg)}13%{transform:scale(1.05) rotate(5deg)}15%{transform:scale(1.05) rotate(-5deg)}17%{transform:scale(1.05) rotate(5deg)}19%{transform:scale(1.05) rotate(-5deg)}20%{transform:scale(1.05) rotate(0deg)}30%{transform:scale(1) rotate(0deg)}}.reactions .reactions-cta-image{display:-webkit-flex;display:-ms-flexbox;display:flex;align-items:center;-ms-flex-align:center;font-size:15px;font-size:.9375rem;line-height:18px;line-height:1.125rem;font-weight:bold;color:#2B1F5A;position:relative}.reactions .reactions-count-container{position:absolute;top:58%;left:-90%;height:25px;line-height:25px;width:80px;text-align:right;vertical-align:middle}.reactions .reactions-cta--open .cta-arrow-icon{transform:rotate(180deg)}.reactions .reaction-button{transition:opacity 200ms ease-in-out;opacity:0;outline:none;overflow:visible;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media (hover: hover), (-ms-high-contrast: none){.reactions .reaction-button:hover svg{height:44px;width:44px;top:-2px;left:-2px;transform:rotate(-10deg);transform-origin:center center}}@media (hover: hover) and (min-width: 37.5em), (-ms-high-contrast: none) and (min-width: 37.5em){.reactions .reaction-button:hover svg{height:66px;width:66px;top:-3px;left:-3px}}@-moz-document url-prefix(){.reactions .reaction-button:hover svg{height:44px;width:44px;top:-2px;left:-2px;transform:rotate(-10deg);transform-origin:center center}@media (min-width: 37.5em){.reactions .reaction-button:hover svg{height:66px;width:66px;top:-3px;left:-3px}}}.reactions .reaction-button:focus .reaction-focus-line{background-color:#2B1F5A}.reactions .reaction-button.reaction-button--selected .reaction-icon{top:-8px}@media (min-width: 37.5em){.reactions .reaction-button.reaction-button--selected .reaction-icon{top:-12px}}.reactions .reaction-button.reaction-button--selected .reaction-icon svg{transform:rotate(20deg);transform-origin:center center;height:56px;width:56px;top:-8px;left:-8px}@media (min-width: 37.5em){.reactions .reaction-button.reaction-button--selected .reaction-icon svg{height:84px;width:84px;top:-12px;left:-12px}}.reactions .animation-playing .reaction-button--selected{position:relative;z-index:1020}.reactions .animation-playing .reaction-button--selected .reaction-icon svg{z-index:1030;height:104px;width:104px;top:-32px;left:-32px}@media (min-width: 37.5em){.reactions .animation-playing .reaction-button--selected .reaction-icon svg{height:156px;width:156px;top:-48px;left:-48px}}.reactions .reaction-button--show{transition:opacity 43ms cubic-bezier(0, 0.94, 0.46, 0.85) 80ms;opacity:1}@media (prefers-reduced-motion: reduce){.reactions .reaction-button{transition:none}}.reactions .reaction-icon{display:block;position:relative;height:40px;width:40px;margin:4px auto;top:0}@media (min-width: 37.5em){.reactions .reaction-icon{height:60px;width:60px;margin-bottom:8px;margin-top:0}}.reactions .reaction-icon svg{position:absolute;top:0;left:0;height:40px;width:40px;transition:width 43ms ease-out,height 43ms ease-out,transform 43ms ease-out,top 43ms ease-out,left 43ms ease-out}@media (min-width: 37.5em){.reactions .reaction-icon svg{height:60px;width:60px}}.reactions .reaction-label,.reactions .reaction-count{display:block;position:relative;color:#2B1F5A}.reactions .reaction-label{font-size:12px;font-size:.75rem;line-height:16px;line-height:1rem;text-transform:uppercase;font-weight:bold}@media (min-width: 37.5em){.reactions .reaction-label{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;font-weight:bold}}.reactions .reaction-count{font-size:12px;font-size:.75rem;line-height:16px;line-height:1rem;text-transform:uppercase;font-size:11px;padding-bottom:3px}@media (min-width: 25em){.reactions .reaction-count{font-size:12px;font-size:.75rem;line-height:16px;line-height:1rem;text-transform:uppercase}}.reactions .reaction-focus-line{width:12px;height:3px;margin:0 auto;position:relative}.reactions .gel-icon{position:relative}.reactions .reactions-cookie-warning{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;background-color:#FFD201;text-align:center}.reactions .reactions-cookie-warning__inner{display:inline-block}.reactions .reactions-cookie-warning__icon{width:60px;height:50px;float:right;position:relative;overflow:hidden}.reactions .reactions-cookie-warning__icon svg{transform:rotate(15deg);position:absolute;top:-7.5px;left:0}.reactions .reactions-cookie-warning__text{text-align:left;padding:16px;-webkit-text-size-adjust:100%}@media (min-width: 37.5em){.reactions .reactions-cookie-warning__text{padding-right:60px;padding-left:60px}}.reactions .reactions-cookie-warning__link{color:#000;text-decoration:none;font-weight:bold;white-space:nowrap}.reactions .reactions-cookie-warning__link:hover{text-decoration:underline}.reactions .reactions-sprite-animation-wrapper{position:fixed;width:100%;height:100%;top:0;left:0;overflow:hidden;z-index:1000}.reactions .reactions-sprite-animation{position:absolute;overflow:hidden;pointer-events:none;width:150vw;height:150vh;margin-left:-75vw;margin-top:-67.5vh}.reactions .reactions-sprite-animation svg{width:100%;height:100%;max-height:100%;position:relative}.reactions .reactions-sprite__layer{visibility:hidden}.reactions .reactions-sprite-animation__slide--1 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--2 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--2 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--3 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--3 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--3 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--4 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--4 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--4 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--4 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--5 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--5 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--5 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--5 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--5 .reactions-sprite__layer--5{visibility:visible}.reactions .reactions-sprite-animation__slide--6 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--6 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--6 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--6 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--6 .reactions-sprite__layer--5{visibility:visible}.reactions .reactions-sprite-animation__slide--6 .reactions-sprite__layer--6{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--5{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--6{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--7{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--5{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--6{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--7{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--8{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--5{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--6{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--7{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--8{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--9{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--5{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--6{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--7{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--8{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--9{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--10{visibility:visible}.reactions .reactions-list{display:flex;display:-webkit-flex;display:-ms-flexbox;margin-bottom:10px;width:100%;justify-content:space-between;-ms-flex-pack:space-between;-webkit-justify-content:space-between}@media (min-width: 25em){.reactions .reactions-list{justify-content:center;-ms-flex-pack:center;-webkit-justify-content:center}}@media (min-width: 37.5em){.reactions .reactions-list{justify-content:center;-ms-flex-pack:center;-webkit-justify-content:center;margin:0 auto 10px;padding:8px 0 0}}.reactions .reactions-list li{flex-direction:row;padding:0 2px}@media (min-width: 25em){.reactions .reactions-list li{padding:0 4px}}@media (min-width: 37.5em){.reactions .reactions-list li{padding:0 5px}}.reactions .reactions-error-message{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;background-color:#FD3726;text-align:center;color:#fff}.reactions .reactions-error-message__inner{display:inline-block}.reactions .reactions-error-message__text{text-align:left;padding:16px}@media (min-width: 37.5em){.reactions .reactions-error-message__text{padding-right:60px;padding-left:60px}} </style><!--[if gt IE 8]><!--></noscript><!--<![endif]--><script>if (Morph.enhanced) { Morph.styles["bbc-morph-childrens-reactions/1.4.7"]=true; Morph.styleSrc.push("<style>.reactions-styleguide__section{background-color:#fff;margin-bottom:32px}@media (min-width: 37.5em){.reactions-styleguide__section{padding:16px}}.reactions-styleguide__heading{background-color:#FFD201;margin-left:-16px;margin-right:-16px;padding:16px}.reactions-styleguide__heading:first-of-type{margin-top:-16px}.reactions-styleguide__heading,.reactions-styleguide__subheading{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;font-weight:bold;margin-bottom:16px;margin-top:32px}@media (min-width: 37.5em){.reactions-styleguide__heading,.reactions-styleguide__subheading{font-size:21px;font-size:1.3125rem;line-height:24px;line-height:1.5rem}.no-touch .reactions-styleguide__heading,.no-touch .reactions-styleguide__subheading{font-size:20px;font-size:1.25rem}}#reactions-list li{list-style:none}.reactions__standalone .content-item-description{*zoom:1}.reactions__standalone .content-item-description:before,.reactions__standalone .content-item-description:after{content:\" \";display:table}.reactions__standalone .content-item-description:after{clear:both}.reactions__standalone{max-width:864px}.reactions__standalone::before{position:relative;content:\"\";display:block;width:100%;background-color:black;padding-top:56.25%;z-index:999}.reactions__standalone .content-item-description{color:palette(\"text-dark\");padding:16px 8px}@media (min-width: 37.5em){.reactions__standalone .content-item-description{padding:16px}}.reactions__standalone .reactions-container{width:calc(100% + 16px);margin-top:-16px;margin-right:-16px;margin-bottom:16px;margin-left:-8px}.content-item--riddle-content .reactions__standalone .reactions-container{margin-top:0}@media (min-width: 37.5em){.reactions__standalone .reactions-container{width:calc(100% + 32px);margin-left:-16px}}.reactions__standalone .content-item-description .reactions-cta{float:right;padding-left:16px;padding-right:4px}@media (min-width: 25em){.reactions__standalone .content-item-description .reactions-cta{padding-right:8px}}@media (min-width: 37.5em){.reactions__standalone .content-item-description .reactions-cta{padding-right:16px}}.reactions__standalone .content-item-description .reactions-cta--open{margin-top:0}.reactions__standalone .content-item-description .reactions-tray__reactions{z-index:999}.reactions-module{pointer-events:none;position:relative}.reactions .reactions-tray{margin-top:-36px;position:relative;z-index:999;pointer-events:none}.reactions .reactions-tray::before{display:block;height:20px;content:''}.reactions .reactions-tray__reactions-container{display:block;position:relative;padding:0 3px;max-height:0;height:auto;transition:max-height 300ms 120ms;background-color:#FDF6FF}@media (min-width: 37.5em){.reactions .reactions-tray__reactions-container{justify-content:center;-ms-flex-pack:center;-webkit-justify-content:center}}@media (prefers-reduced-motion: reduce){.reactions .reactions-tray__reactions-container{transition:none;max-height:0}}.reactions .reactions-tray__reactions-container:after{content:\"\";position:absolute;width:100%;height:5px;left:0;background:linear-gradient(rgba(43,31,90,0), rgba(43,31,90,0.2));bottom:0;visibility:hidden;transition:visibility 1ms 300ms}.reactions .reactions-tray__reactions-container li{padding-bottom:0;visibility:hidden;transition:visibility 0ms linear 300ms}.reactions .reactions-tray__reactive-prompt{font-size:12px;font-size:.75rem;line-height:16px;line-height:1rem;text-transform:uppercase;color:#333;opacity:0;padding-bottom:16px;text-align:center;text-transform:uppercase;transition:opacity 300ms,visibility 0s linear 200ms;visibility:hidden}@media (min-width: 37.5em){.reactions .reactions-tray__reactive-prompt{font-size:13px;font-size:.8125rem}.no-touch .reactions .reactions-tray__reactive-prompt{font-size:12px;font-size:.75rem}}.reactions .reactions-tray__reactions-container--open{display:block;max-height:124px;pointer-events:all;transition:max-height 300ms}@media (min-width: 37.5em){.reactions .reactions-tray__reactions-container--open{max-height:154px}}.reactions .reactions-tray__reactions-container--open:after{visibility:visible;transition:visibility 1ms}.reactions .reactions-tray__reactions-container--open li{visibility:visible;transition:visibility 0ms linear 0ms}.reactions .reactions-tray__reactions-container--open .reactions-tray__reactive-prompt{visibility:visible;opacity:1}.reactions .reactions-cta{border:0;position:relative;overflow:visible;cursor:pointer;background-color:transparent;margin:8px 0;pointer-events:auto;z-index:999}.reactions .reactions-cta:hover .cta-cbbc-icon,.reactions .reactions-cta:hover .cta-cbeebies-icon{animation-play-state:paused}@media (min-width: 37.5em){.reactions .reactions-cta:hover .cta-cbbc-icon svg,.reactions .reactions-cta:hover .cta-cbeebies-icon svg{transition:all 500ms ease;transform:scale(1.1)}}.reactions .reactions-cta:not(.reactions-cta--clicked) .cta-cbbc-icon,.reactions .reactions-cta:not(.reactions-cta--clicked) .cta-cbeebies-icon{display:block;animation-name:wiggle;animation-duration:7s;animation-delay:5s;animation-iteration-count:3}.reactions .cta-icon svg{width:54px}@keyframes wiggle{0%{transform:scale(1) rotate(0deg)}10%{transform:scale(1.05) rotate(0deg)}11%{transform:scale(1.05) rotate(-5deg)}13%{transform:scale(1.05) rotate(5deg)}15%{transform:scale(1.05) rotate(-5deg)}17%{transform:scale(1.05) rotate(5deg)}19%{transform:scale(1.05) rotate(-5deg)}20%{transform:scale(1.05) rotate(0deg)}30%{transform:scale(1) rotate(0deg)}}.reactions .reactions-cta-image{display:-webkit-flex;display:-ms-flexbox;display:flex;align-items:center;-ms-flex-align:center;font-size:15px;font-size:.9375rem;line-height:18px;line-height:1.125rem;font-weight:bold;color:#2B1F5A;position:relative}@media (min-width: 37.5em){.reactions .reactions-cta-image{line-height:20px;line-height:1.25rem}.no-touch .reactions .reactions-cta-image{font-size:14px;font-size:.875rem;line-height:18px;line-height:1.125rem}}.reactions .reactions-count-container{position:absolute;top:58%;left:-90%;height:25px;line-height:25px;width:80px;text-align:right;vertical-align:middle}.reactions .reactions-cta--open .cta-arrow-icon{transform:rotate(180deg)}.reactions .reaction-button{transition:opacity 200ms ease-in-out;opacity:0;outline:none;overflow:visible;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media (hover: hover), (-ms-high-contrast: none){.reactions .reaction-button:hover svg{height:44px;width:44px;top:-2px;left:-2px;transform:rotate(-10deg);transform-origin:center center}}@media (hover: hover) and (min-width: 37.5em), (-ms-high-contrast: none) and (min-width: 37.5em){.reactions .reaction-button:hover svg{height:66px;width:66px;top:-3px;left:-3px}}@-moz-document url-prefix(){.reactions .reaction-button:hover svg{height:44px;width:44px;top:-2px;left:-2px;transform:rotate(-10deg);transform-origin:center center}@media (min-width: 37.5em){.reactions .reaction-button:hover svg{height:66px;width:66px;top:-3px;left:-3px}}}.reactions .reaction-button:focus .reaction-focus-line{background-color:#2B1F5A}.reactions .reaction-button.reaction-button--selected .reaction-icon{top:-8px}@media (min-width: 37.5em){.reactions .reaction-button.reaction-button--selected .reaction-icon{top:-12px}}.reactions .reaction-button.reaction-button--selected .reaction-icon svg{transform:rotate(20deg);transform-origin:center center;height:56px;width:56px;top:-8px;left:-8px}@media (min-width: 37.5em){.reactions .reaction-button.reaction-button--selected .reaction-icon svg{height:84px;width:84px;top:-12px;left:-12px}}.reactions .animation-playing .reaction-button--selected{position:relative;z-index:1020}.reactions .animation-playing .reaction-button--selected .reaction-icon svg{z-index:1030;height:104px;width:104px;top:-32px;left:-32px}@media (min-width: 37.5em){.reactions .animation-playing .reaction-button--selected .reaction-icon svg{height:156px;width:156px;top:-48px;left:-48px}}.reactions .reaction-button--show{transition:opacity 43ms cubic-bezier(0, 0.94, 0.46, 0.85) 80ms;opacity:1}@media (prefers-reduced-motion: reduce){.reactions .reaction-button{transition:none}}.reactions .reaction-icon{display:block;position:relative;height:40px;width:40px;margin:4px auto;top:0}@media (min-width: 37.5em){.reactions .reaction-icon{height:60px;width:60px;margin-bottom:8px;margin-top:0}}.reactions .reaction-icon svg{position:absolute;top:0;left:0;height:40px;width:40px;transition:width 43ms ease-out,height 43ms ease-out,transform 43ms ease-out,top 43ms ease-out,left 43ms ease-out}@media (min-width: 37.5em){.reactions .reaction-icon svg{height:60px;width:60px}}.reactions .reaction-label,.reactions .reaction-count{display:block;position:relative;color:#2B1F5A}.reactions .reaction-label{font-size:12px;font-size:.75rem;line-height:16px;line-height:1rem;text-transform:uppercase;font-weight:bold}@media (min-width: 37.5em){.reactions .reaction-label{font-size:13px;font-size:.8125rem}.no-touch .reactions .reaction-label{font-size:12px;font-size:.75rem}}@media (min-width: 37.5em){.reactions .reaction-label{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;font-weight:bold}}@media (min-width: 37.5em) and (min-width: 20em){.reactions .reaction-label{line-height:18px;line-height:1.125rem}}@media (min-width: 37.5em) and (min-width: 37.5em){.no-touch .reactions .reaction-label{font-size:13px;font-size:.8125rem;line-height:16px;line-height:1rem}}.reactions .reaction-count{font-size:12px;font-size:.75rem;line-height:16px;line-height:1rem;text-transform:uppercase;font-size:11px;padding-bottom:3px}@media (min-width: 37.5em){.reactions .reaction-count{font-size:13px;font-size:.8125rem}.no-touch .reactions .reaction-count{font-size:12px;font-size:.75rem}}@media (min-width: 25em){.reactions .reaction-count{font-size:12px;font-size:.75rem;line-height:16px;line-height:1rem;text-transform:uppercase}}@media (min-width: 25em) and (min-width: 37.5em){.reactions .reaction-count{font-size:13px;font-size:.8125rem}.no-touch .reactions .reaction-count{font-size:12px;font-size:.75rem}}.reactions .reaction-focus-line{width:12px;height:3px;margin:0 auto;position:relative}.reactions .gel-icon{position:relative}.reactions .reactions-cookie-warning{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;background-color:#FFD201;text-align:center}@media (min-width: 20em){.reactions .reactions-cookie-warning{line-height:18px;line-height:1.125rem}}@media (min-width: 37.5em){.no-touch .reactions .reactions-cookie-warning{font-size:13px;font-size:.8125rem;line-height:16px;line-height:1rem}}.reactions .reactions-cookie-warning__inner{display:inline-block}.reactions .reactions-cookie-warning__icon{width:60px;height:50px;float:right;position:relative;overflow:hidden}.reactions .reactions-cookie-warning__icon svg{transform:rotate(15deg);position:absolute;top:-7.5px;left:0}.reactions .reactions-cookie-warning__text{text-align:left;padding:16px;-webkit-text-size-adjust:100%}@media (min-width: 37.5em){.reactions .reactions-cookie-warning__text{padding-right:60px;padding-left:60px}}.reactions .reactions-cookie-warning__link{color:#000;text-decoration:none;font-weight:bold;white-space:nowrap}.reactions .reactions-cookie-warning__link:hover{text-decoration:underline}.reactions .reactions-sprite-animation-wrapper{position:fixed;width:100%;height:100%;top:0;left:0;overflow:hidden;z-index:1000}.reactions .reactions-sprite-animation{position:absolute;overflow:hidden;pointer-events:none;width:150vw;height:150vh;margin-left:-75vw;margin-top:-67.5vh}.reactions .reactions-sprite-animation svg{width:100%;height:100%;max-height:100%;position:relative}.reactions .reactions-sprite__layer{visibility:hidden}.reactions .reactions-sprite-animation__slide--1 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--2 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--2 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--3 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--3 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--3 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--4 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--4 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--4 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--4 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--5 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--5 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--5 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--5 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--5 .reactions-sprite__layer--5{visibility:visible}.reactions .reactions-sprite-animation__slide--6 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--6 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--6 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--6 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--6 .reactions-sprite__layer--5{visibility:visible}.reactions .reactions-sprite-animation__slide--6 .reactions-sprite__layer--6{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--5{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--6{visibility:visible}.reactions .reactions-sprite-animation__slide--7 .reactions-sprite__layer--7{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--5{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--6{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--7{visibility:visible}.reactions .reactions-sprite-animation__slide--8 .reactions-sprite__layer--8{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--5{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--6{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--7{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--8{visibility:visible}.reactions .reactions-sprite-animation__slide--9 .reactions-sprite__layer--9{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--1{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--2{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--3{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--4{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--5{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--6{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--7{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--8{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--9{visibility:visible}.reactions .reactions-sprite-animation__slide--10 .reactions-sprite__layer--10{visibility:visible}.reactions .reactions-list{display:flex;display:-webkit-flex;display:-ms-flexbox;margin-bottom:10px;width:100%;justify-content:space-between;-ms-flex-pack:space-between;-webkit-justify-content:space-between}@media (min-width: 25em){.reactions .reactions-list{justify-content:center;-ms-flex-pack:center;-webkit-justify-content:center}}@media (min-width: 37.5em){.reactions .reactions-list{justify-content:center;-ms-flex-pack:center;-webkit-justify-content:center;margin:0 auto 10px;padding:8px 0 0}}.reactions .reactions-list li{flex-direction:row;padding:0 2px}@media (min-width: 25em){.reactions .reactions-list li{padding:0 4px}}@media (min-width: 37.5em){.reactions .reactions-list li{padding:0 5px}}.reactions .reactions-error-message{font-size:14px;font-size:.875rem;line-height:16px;line-height:1rem;background-color:#FD3726;text-align:center;color:#fff}@media (min-width: 20em){.reactions .reactions-error-message{line-height:18px;line-height:1.125rem}}@media (min-width: 37.5em){.no-touch .reactions .reactions-error-message{font-size:13px;font-size:.8125rem;line-height:16px;line-height:1rem}}.reactions .reactions-error-message__inner{display:inline-block}.reactions .reactions-error-message__text{text-align:left;padding:16px}@media (min-width: 37.5em){.reactions .reactions-error-message__text{padding-right:60px;padding-left:60px}}\n</style>"); }</script> <!--[if gt IE 8]><!--><noscript class="morph-core-style"><!--<![endif]--><style>.gs-c-reactions{list-style:none;margin:0;padding:0}.gs-c-reaction{border:0;padding:0;margin:0;background:none;min-height:44px;cursor:pointer} </style><!--[if gt IE 8]><!--></noscript><!--<![endif]--><script>if (Morph.enhanced) { Morph.styles["bbc-morph-reactions/4.2.0"]=true; Morph.styleSrc.push("<style>.gs-c-reactions{list-style:none;margin:0;padding:0}.gs-c-reaction{border:0;padding:0;margin:0;background:none;min-height:44px;cursor:pointer}\n</style>"); }</script> <script>if (Morph.enhanced) { Morph.styles["bbc-morph-gel-icons/2.2.0"]=true; Morph.styleSrc.push("<style>.gel-icon{display:inline-block}.gel-icon svg{width:inherit;height:inherit;fill:currentColor}.gel-icon--loading{-webkit-animation-name:gel-spin;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;-moz-animation-name:gel-spin;-moz-animation-duration:1s;-moz-animation-iteration-count:infinite;-moz-animation-timing-function:linear;animation-name:gel-spin;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@-moz-keyframes gel-spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(360deg)}}@-webkit-keyframes gel-spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes gel-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}\n</style>"); }</script> <script type="text/javascript">Morph.initStyles(); /* u28641281585116296 */</script> <script type="text/javascript" id="js-require-config"> define('local/utils/config', function () { "use strict"; var currentTLD = function () { var hostname = window.location.hostname; if (hostname.indexOf('bbc.com') > -1) { return 'com'; } return 'co.uk'; }(); return { 'appName': 'cbeebies', 'env': 'live', 'uasKey': 'ocivkho3fups2', 'uasEnv': 'live', 'uasUrl': '', 'uasDomainSuffix': currentTLD, 'currentTLD': currentTLD, 'comscoreSiteOverride': '', 'comscoreTestServiceUrl': '', 'oneTooltipPerPageEnabled': 'true', 'analyticsReclassificationEnabled': true, 'breakpointConfig': [ { minWidth: 0, name: 'extra-small' }, { minWidth: 400, name: 'small' }, { minWidth: 600, name: 'medium' }, { minWidth: 768, name: 'medium-wide' }, { minWidth: 1008, name: 'wide' }, { minWidth: 1280, name: 'extra-wide' } ] }; }); </script> <script> define('childrens-mandolin', function () { "use strict"; var ROLLING_PERIOD_DAYS = 30; var Mandolin = function (id, segments, opts) { var now = new Date().getTime(), storedItem, DEFAULT_START = now, DEFAULT_RATE = 1, COOKIE_NAME = 'ckpf_childrens_mandolin'; opts = opts || {}; this._id = id; this._segmentSet = segments; this._store = new Mandolin.Storage(COOKIE_NAME); this._opts = opts; this._rate = (opts.rate !== undefined) ? +opts.rate : DEFAULT_RATE; this._startTs = (opts.start !== undefined) ? new Date(opts.start).getTime() : new Date(DEFAULT_START).getTime(); this._endTs = (opts.end !== undefined) ? new Date(opts.end).getTime() : daysFromNow(ROLLING_PERIOD_DAYS); this._signupEndTs = (opts.signupEnd !== undefined) ? new Date(opts.signupEnd).getTime() : this._endTs; this._segment = null; // initially // Check for invalid options if (typeof id !== 'string') { throw new Error('Invalid Argument: id must be defined and be a string'); } if (Object.prototype.toString.call(segments) !== '[object Array]') { throw new Error('Invalid Argument: Segments are required.'); } if (opts.rate !== undefined && (opts.rate < 0 || opts.rate > 1)) { throw new Error('Invalid Argument: Rate must be between 0 and 1.'); } if (this._startTs > this._endTs) { throw new Error('Invalid Argument: end date must occur after start date.'); } if (!(this._startTs < this._signupEndTs && this._signupEndTs <= this._endTs)) { throw new Error('Invalid Argument: SignupEnd must be between start and end date'); } // Clear out expired items from Storage before looking for stashed segment data removeExpired.call(this, now); // Load segment override from cookie and validate segment if set. var overrides = window.bbccookies.get().match(/ckns_mandolin_setSegments=([^;]+)/); if (overrides !== null) { eval('overrides = ' + decodeURIComponent(RegExp.$1) + ';'); if(overrides[this._id] && this._segmentSet.indexOf(overrides[this._id]) == -1){ throw new Error('Invalid Override: overridden segment should exist in segments array'); } } if (overrides !== null && overrides[this._id]){ this._segment = overrides[this._id]; } else if ((storedItem = this._store.getItem(this._id))) { this._segment = storedItem.segment; } else if (this._startTs <= now && now < this._signupEndTs && now <= this._endTs && this._store.isEnabled() === true) { this._segment = pick(segments, this._rate); if (opts.end === undefined) { this._store.setItem(this._id, {segment: this._segment}); } else { this._store.setItem(this._id, {segment: this._segment, end: this._endTs}); } log.call(this, 'mandolin_segment'); } // order matters: do this after the segment has been populated log.call(this, 'mandolin_view'); }; Mandolin.prototype.getSegment = function () { return this._segment; }; function log(actionType, params) { var that = this; require(['istats-1'], function (istats) { istats.log(actionType, that._id + ':' + that._segment, params ? params : {}); }); } function removeExpired(expires) { var items = this._store.getItems(), expiresInt = +expires; for (var key in items) { if (items[key].end !== undefined && +items[key].end < expiresInt) { this._store.removeItem(key); } } } function getLastExpirationDate(data) { var winner = 0, rollingExpire = daysFromNow(ROLLING_PERIOD_DAYS); for (var key in data) { if (data[key].end === undefined && rollingExpire > winner) { winner = rollingExpire; } else if (+data[key].end > winner) { winner = +data[key].end; } } return (winner) ? new Date(winner) : new Date(rollingExpire) ; } Mandolin.prototype.log = function (params) { log.call(this, 'mandolin_log', params); }; Mandolin.prototype.convert = function (params) { log.call(this, 'mandolin_convert', params); this.convert = function () {}; }; function daysFromNow(n) { var endDate; endDate = new Date().getTime() + (n * 60 * 60 * 24) * 1000; return endDate; } function pick(segments, rate) { var picked, min = 0, max = segments.length - 1; if (typeof rate === 'number' && Math.random() > rate) { return null; } do { picked = Math.floor(Math.random() * (max - min + 1)) + min; } while (picked > max); return segments[picked]; } Mandolin.Storage = function (name) { validateCookieName(name); this._cookieName = name; this._isEnabled = (bbccookies.isAllowed(this._cookieName) === true && bbccookies.cookiesEnabled() === true); }; Mandolin.Storage.prototype.setItem = function (key, value) { var storeData = this.getItems(); storeData[key] = value; this.save(storeData); return value; }; Mandolin.Storage.prototype.isEnabled = function () { return this._isEnabled; }; Mandolin.Storage.prototype.getItem = function (key) { var storeData = this.getItems(); return storeData[key]; }; Mandolin.Storage.prototype.removeItem = function (key) { var storeData = this.getItems(); delete storeData[key]; this.save(storeData); }; Mandolin.Storage.prototype.getItems = function () { return deserialise(this.readCookie(this._cookieName) || ''); }; Mandolin.Storage.prototype.save = function (data) { //TODO: Is this mixing concerns to have Storage aware of item expiry? window.bbccookies.set( this._cookieName + '=' + encodeURIComponent(serialise(data)) + '; ' + 'path=/;' + 'expires=' + getLastExpirationDate(data).toUTCString() + ';' ); }; Mandolin.Storage.prototype.readCookie = function (name) { var nameEq = name + '=', ca = window.bbccookies.get().split('; '), i, c; validateCookieName(name); for (i = 0; i < ca.length; i++) { c = ca[i]; if (c.indexOf(nameEq) === 0) { return decodeURIComponent(c.substring(nameEq.length, c.length)); } } return null; }; function serialise(o) { var str = ''; for (var p in o) { if (o.hasOwnProperty(p)) { str += '"' + p + '"' + ':' + (typeof o[p] === 'object' ? (o[p] === null? 'null' : '{' + serialise(o[p])+ '}') : '"' + o[p].toString() + '"') + ','; } } return str.replace(/,\}/g, '}').replace(/,$/g, ''); } function deserialise(str) { var o; str = '{' + str + '}'; if ( !validateSerialisation(str) ) { throw 'Invalid input provided for deserialisation.'; } eval('o = ' + str); return o; } var validateSerialisation = (function () { var OBJECT_TOKEN = '<Object>', ESCAPED_CHAR = '"\\n\\r\\u2028\\u2029\\u000A\\u000D\\u005C', ALLOWED_CHAR = '([^' + ESCAPED_CHAR + ']|\\\\[' + ESCAPED_CHAR + '])', KEY = '"' + ALLOWED_CHAR + '+"', VALUE = '(null|"' + ALLOWED_CHAR + '*"|' + OBJECT_TOKEN + ')', KEY_VALUE = KEY + ':' + VALUE, KEY_VALUE_SEQUENCE = '(' + KEY_VALUE + ',)*' + KEY_VALUE, OBJECT_LITERAL = '({}|{' + KEY_VALUE_SEQUENCE + '})', objectPattern = new RegExp(OBJECT_LITERAL, 'g'); return function(str) { if (str.indexOf(OBJECT_TOKEN) !== -1) return false; while (str.match(objectPattern)) { str = str.replace(objectPattern, OBJECT_TOKEN); } return str === OBJECT_TOKEN; } })(); function validateCookieName(name) { if ( name.match(/ ,;/) ) { throw 'Illegal name provided, must be valid in browser cookie.'; } } return Mandolin; }); </script> <script type="text/javascript" id="js-require-setup"> require({ paths: { 'childrens': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts', 'cbeebies': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/cbeebies', 'cbbc': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/cbbc', 'jquery': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/libraries/jquery', 'jquery-1': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/libraries/jquery/jquery', 'jquery-1.9': 'https://web.archive.org/web/20191108214155/https://static.bbci.co.uk/frameworks/jquery/0.4.1/sharedmodules/jquery-1.9.1', 'lib': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/libraries', 'bump-3': 'https://web.archive.org/web/20191108214155/https://emp.bbci.co.uk/emp/bump-3/bump-3', 'bump-4': 'https://web.archive.org/web/20191108214155/https://emp.bbci.co.uk/emp/bump-4/bump-4', 'embed': 'https://web.archive.org/web/20191108214155/https://play.bbc.co.uk/play/sdk/embed/v1/latest', 'lib/Imager': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/libraries/Imager.min', 'TweenMax': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/libraries/gsap/TweenMax.min', 'TimelineMax': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/libraries/gsap/TweenMax.min', 'echo-11.2.2': 'https://web.archive.org/web/20191108214155/https://mybbc-analytics.files.bbci.co.uk/echo-client-js/echo-11.2.2.min', 'lib/riddle': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/libraries/riddle/embed-3.23.min', 'lib/minpubsub': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/libraries/minpubsub.min', 'uasclient': 'https://web.archive.org/web/20191108214155/https://static.bbci.co.uk/uasclient/0.1.40/modules/uasclient', 'activity-button': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/activity-button', 'activity-button/activity-button': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/personalisation/personalisation.min', 'reads': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/reads', 'reads/reads': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/personalisation/personalisation.min', 'reads-carousel': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/reads-carousel', 'reads-carousel/reads-carousel': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/personalisation/personalisation.min', 'angular': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/angular', 'angular/app': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/angular/app.min', 'stats': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/stats', 'stats/riddle-events': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/stats/riddle-events.min', 'stats/stats': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/stats/stats.min', 'confetti': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/confetti', 'confetti/confetti': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/confetti/confetti.min', 'follows-panel': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/follows-panel', 'follows-panel/childrens-follows-panel': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/personalisation/personalisation.min', 'personalisation': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/personalisation', 'domReady': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/libraries/require/domReady.min', 'relay-1': 'https://web.archive.org/web/20191108214155/https://static.bbci.co.uk/frameworks/relay/0.2.6/sharedmodules/relay-1', 'jssignals-1': 'https://web.archive.org/web/20191108214155/https://static.bbci.co.uk/frameworks/jssignals/0.3.6/modules/jssignals-1', 'vote-wrapper': 'https://web.archive.org/web/20191108214155/https://account-wrapper.files.bbci.co.uk/vote-wrapper.min', 'event-stream': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/event-stream/event-stream.min', 'riddle/auto-scroll': 'https://web.archive.org/web/20191108214155/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/javascripts/riddle/auto-scroll.min' }, shim: { 'angular/angular': { exports: 'angular' }, 'TweenMax': { exports: 'TweenMax' }, 'TimelineMax': { exports: 'TimelineMax' } } }); require({ map: { '*': { 'idcta/idcta-1': 'idcta-v2/idcta-1' } } }); requirejs.onError = function (err) { // if a version of echojs fails to load (i.e. blocked for privacy reasons) // replace our echo_client with a dummy implementation so existing code // continues to work as expected function isEchoJsLibrary(moduleName) { return moduleName.indexOf('echo-') === 0; } if ( err.requireType === 'scripterror' && err.requireModules && err.requireModules.find(isEchoJsLibrary) ) { requirejs.undef('stats/echo_client'); define('stats/echo_client', [], function () { return { countername : function() {}, viewEvent : function() {}, userActionEvent : function() {} } }); // re-evaluate all dependencies on echo_client which will pick up the dummy version requirejs(['stats/echo_client'], function () {}); } }; require(['local/utils/config'], function (config) { }); require(["istats-1"], function (istats) { if (istats.setSite !== undefined) { istats.setSite('cbeebies'); } istats.addLabels({ "page_type" : "content", "children_curation" : "exciting-wildlife-adventures-and-dinosaur-fun", "children_show" : "andys-safari-adventures", "children_index" : "makes", "children_topic" : "none", "children_collection" : "exciting-wildlife-adventures-and-dinosaur-fun", "children_oj_campaign" : "cbeebies.games.andys_safari_sounds_game.page-cbeebies.makes.aksaras_sri_lankan_fish_curry.page-cbeebies.puzzles.wheres_andy.page", "children_primary_content" : "gid-map2-andys-safari-adventures", "children_game_cms" : "isite", "children_comments" : "false", "children_uploader" : "false" }); }); </script> <script> require(['childrens-mandolin'], function (Mandolin) { //cleanup collection-position test var storage = new Mandolin.Storage('ckpf_childrens_mandolin'); var experimentName = 'childrens_collection_position'; if (storage.getItem(experimentName)) { storage.removeItem(experimentName); } }); </script> <script type="text/javascript"> define('local/utils/experiments', ['childrens-mandolin'], function (Mandolin) { "use strict"; function setupMandolin(experiment, variants, config) { var mandolin = new Mandolin(experiment, variants, config); return mandolin.getSegment(); } function addClasses(wrapper, experiment, variant) { var experimentPrefix = " experiment-"; var experimentClass = experimentPrefix + experiment; wrapper.className += experimentClass + experimentClass + "--" + variant; } function addAttribute(wrapper, experiment, variant) { if (!wrapper.hasAttribute("data-active-experiment")) { var att = document.createAttribute("data-active-experiment"); att.value = experiment + ":" + variant; wrapper.setAttributeNode(att); } } return { setup: function(experiment, variants, config) { var variant = setupMandolin(experiment, variants, config); var wrapper = document.querySelector(".childrens-wrapper"); if (variant) { addClasses(wrapper, experiment, variant); } addAttribute(wrapper, experiment, variant); return variant; } } }); </script> </head> <body class="b-pw-1280"> <noscript><p style="position: absolute; top: -999em"><img src="https://web.archive.org/web/20191108214155im_/https://a1.api.bbc.co.uk/hit.xiti?&amp;col=1&amp;from=p&amp;ptag=js&amp;s=598253&amp;p=makes::unknown&amp;x1=[urn:bbc:isite2:bc0efc26-376d-4629-9050-c07d1e638798]&amp;x2=[responsive]&amp;x3=[bbc_website]&amp;x4=[en]&amp;x7=[article]&amp;x8=[reverb-1.1.0-nojs]&amp;x11=[cbeebies]&amp;x12=[cbeebies]" height="1" width="1" alt=""></p></noscript> <!-- BBCDOTCOM bodyFirst --><div id="bbccom_interstitial_ad" class="bbccom_display_none"></div><div id="bbccom_interstitial" class="bbccom_display_none"><script type="text/javascript">/*<![CDATA[*/ (function() { if (window.bbcdotcom && bbcdotcom.config.isActive('ads')) { googletag.cmd.push(function() { googletag.display('bbccom_interstitial'); }); } }()); /*]]>*/</script></div><div id="bbccom_wallpaper_ad" class="bbccom_display_none"></div><div id="bbccom_wallpaper" class="bbccom_display_none"><script type="text/javascript">/*<![CDATA[*/ (function() { var wallpaper; if (window.bbcdotcom && bbcdotcom.config.isActive('ads')) { if (bbcdotcom.config.isAsync()) { googletag.cmd.push(function() { googletag.display('bbccom_wallpaper'); }); } else if (typeof googletag !== "undefined" && typeof googletag.display === "function") { googletag.display("wallpaper"); } wallpaper = bbcdotcom.adverts.adRegister.getAd('wallpaper'); } }()); /*]]>*/</script></div><script type="text/javascript">/*<![CDATA[*/ (function() { if (window.bbcdotcom && bbcdotcom.config.isActive('ads')) { document.write(unescape('%3Cscript id="gnlAdsEnabled" class="bbccom_display_none"%3E%3C/script%3E')); } if (window.bbcdotcom && bbcdotcom.config.isActive('analytics')) { document.write(unescape('%3Cscript id="gnlAnalyticsEnabled" class="bbccom_display_none"%3E%3C/script%3E')); } }()); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function() { window.bbcdotcom.bodyFirst = true; }()); /*]]>*/</script> <div id="cookiePrompt"></div> <!--[if (gt IE 8) | (IEMobile)]><!--><header id="orb-banner" role="banner" aria-label="BBC"><!--<![endif]--><!--[if (lt IE 9) & (!IEMobile)]> <![if (IE 8)]> <header id="orb-banner" role="banner" class="orb-old-ie orb-ie8" aria-label="BBC"> <![endif]> <![if (IE 7)]> <header id="orb-banner" role="banner" class="orb-old-ie orb-ie7" aria-label="BBC"> <![endif]> <![if (IE 6)]> <header id="orb-banner" role="banner" class="orb-old-ie orb-ie6" aria-label="BBC"> <![endif]> <![endif]--><div id="orb-header" class="orb-nav-pri orb-nav-pri-white orb-nav-empty" dir="ltr"><div class="orb-nav-pri-container b-r b-g-p"><div class="orb-nav-section orb-nav-blocks"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/">Homepage</a></div><section><div class="orb-skip-links"><h2>Accessibility links</h2><ul><li><a href="#main-content">Skip to content</a></li><li><a id="orb-accessibility-help" href="/web/20191108214155/https://www.bbc.co.uk/accessibility/">Accessibility Help</a></li></ul></div></section><div id="mybbc-wrapper" class="orb-nav-section orb-nav-id orb-nav-focus orb-nav-id-default"><div id="idcta-statusbar" class="orb-nav-section orb-nav-focus"><a id="idcta-link" href="https://web.archive.org/web/20191108214155/https://account.bbc.com/account?ptrt=https://www.bbc.co.uk/cbeebies/makes/andys-safari-adventures-make-a-picture"><span id="idcta-username">BBC Account</span></a></div><script type="text/javascript">require(['idcta/statusbar'], function (statusbar) {new statusbar.Statusbar({id: 'idcta-statusbar', publiclyCacheable: true});});</script></div><nav role="navigation" aria-label="BBC" class="orb-nav"><div class="orb-nav-section orb-nav-links orb-nav-focus" id="orb-nav-links"><ul><li class="orb-nav-cbeebies"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/cbeebies">CBeebies</a></li><li class="orb-nav-iplayer"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/tv/cbeebies">CBeebies iPlayer</a></li><li class="orb-nav-grownups orb-d"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/cbeebies/grownups">Grown-ups</a></li><li class="orb-nav-cbeebiesguide"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/iplayer/guide/cbeebies">TV Guide</a></li><li class="orb-nav-cbbc"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/cbbc">CBBC</a></li><li class="orb-nav-cbeebiesbitesize orb-d"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/bitesize">Bitesize</a></li><li id="orb-nav-more" style="width: 88px" aria-controls="orb-panel-more"><a href="#orb-footer" data-alt="More" class="istats-notrack">Menu<span class="orb-icon orb-icon-arrow"></span></a></li></ul></div></nav><div class="orb-nav-section orb-nav-search"><a class="orb-search__button" href="https://web.archive.org/web/20191108214155/https://search.bbc.co.uk/search?scope=cbeebies" title="Search the BBC">Search</a><form class="b-f" id="orb-search-form" role="search" method="get" action="https://web.archive.org/web/20191108214155/https://search.bbc.co.uk/search" accept-charset="utf-8"><div><input type="hidden" name="scope" id="orb-search-scope" value="cbeebies"><label for="orb-search-q">Search the BBC</label><input id="orb-search-q" type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" name="q" placeholder="Search"><button id="orb-search-button" class="orb-search__button">Search the BBC</button><input type="hidden" name="suggid" id="orb-search-suggid"></div></form></div></div><div id="orb-panels"></div></div></header> <!-- Styling hook for shared modules only --> <div id="orb-modules"> <div id="unsupported-browser-banner-wrapper"> <!--[if lt IE 10]> <div class="unsupported-browser-banner" role="complementary"> <div class="unsupported-browser-banner__window"> <div class="grid__container"> <div class="grid__item"> <img class="unsupported-browser-banner__icon" aria-hidden="true" alt="" src="https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/images/icons/ie-caution-icon.png"/> <span class="unsupported-browser-banner__text">To get the best experience from CBeebies, you need to upgrade your browser to the latest version.</span> </div> </div> </div> </div> <![endif]--> </div> <script> // Show unsupported browser banner for IE10 (function () { if (/*@cc_on!@*/false && document.documentMode === 10) { var bannerWrapper = document.getElementById('unsupported-browser-banner-wrapper'); var currentNode = bannerWrapper.firstChild; var startTagLength = '<!--[if lt IE 10]>'.length; var endTagLength = '<![endif]-->'.length; // Retrieve comment node inside the bannerWrapper; first child is whitespace while (currentNode) { if (currentNode.nodeType === bannerWrapper.COMMENT_NODE) { // Remove the IE tag comments and insert HTML into bannerWrapper bannerWrapper.innerHTML = currentNode.nodeValue.trim().slice(startTagLength, -endTagLength); } currentNode = currentNode.nextSibling; } } })(); </script> <div class="childrens-wrapper childrens-wrapper--cbeebies childrens-wrapper--content-item childrens-wrapper--makes childrens-wrapper--background feature-flag feature-flag--search-bar feature-flag--puzzles-and-quizzes feature-flag--new-vote-styling feature-flag--episode-prominence-on-brand-pages feature-flag--reactions feature-flag--reith-font" data-stats-page-type="content" data-stats-children-curation="exciting-wildlife-adventures-and-dinosaur-fun" data-stats-children-show="andys-safari-adventures" data-stats-children-index="makes" data-stats-children-topic="none" data-stats-children-collection="exciting-wildlife-adventures-and-dinosaur-fun" data-stats-children-oj-campaign="cbeebies.games.andys_safari_sounds_game.page-cbeebies.makes.aksaras_sri_lankan_fish_curry.page-cbeebies.puzzles.wheres_andy.page" data-stats-children-page-intention="false" data-stats-children-primary-content="gid-map2-andys-safari-adventures" data-stats-children-game-cms="isite" data-stats-children-comments="false" data-stats-children-uploader="false"> <script> require(['jquery-1', 'stats/stats', 'domReady!'], function ($, stats, domReady) { stats.init($('.childrens-wrapper'), window.location.pathname); }); </script> <span class="childrens-wrapper__cover"></span> <div class="menu-container "> <div class="menu-placeholder"></div> <nav id="menu" role="navigation" class="menu menu--closed"> <div class="menu__window window window--extra-wide "> <div class="menu__bar"> <a class="menu__product" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies" data-stats-interaction="navigation" data-stats-interaction-variant="home_logo"> <svg version="1.1" id="small-menu-logo" class="logo logo--cbeebies logo--animated menu__logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="0 0 126 54" enable-background="new 0 0 126 54" xml:space="preserve" preserveaspectratio="xMaxYMin meet"> <g class="logo__part logo__part--character logo__part--c"> <g> <g> <g> <path d="M10.6,22.7c-1.8,0-3.4,0.7-4.7,2C2.3,28.2-5,37.8,5.4,49c3.5,3.8,7.2,5.8,10.8,5.8c4.5,0,7.7-2.9,9.2-4.3 c0.1-0.1,0.3-0.3,0.4-0.4c1.7-1.5,4.6-5.2,4.8-8.5c0.1-1.5-0.4-2.8-1.3-3.8c-0.3-0.3-0.4-0.6-0.8-0.8c-0.6-0.3-1.1-0.6-1.5-1 c-0.6-0.5-1.2-1.4-1.6-1.7c-0.6-0.4-1.2-0.5-1.8-0.5c-0.7,0-1.9,0.2-2.8,1.4c-0.8,1.1-0.8,2.6-1,4c-0.1,0.9-0.4,2.9-0.9,3 c-0.4,0.2-0.8,0.2-1.2,0.2c-1.2,0-2.4-0.7-3.6-2.2c-0.8-1-1.4-2.4-1.7-3.7c0.6,0.5,1.3,0.9,2.4,1c0.3,0.1,0.6,0.1,0.9,0.1 c2.6,0,5.7-1.8,6.6-4.3c0.2-1.8-0.4-4.5-2.4-6.1C17.2,25,13.9,22.7,10.6,22.7L10.6,22.7C10.6,22.7,10.6,22.7,10.6,22.7 L10.6,22.7z"></path> <path fill="#FFE500" d="M15.2,35.9c3.2,0.6,7.6-4,3.6-7.2c-4-3.2-8.4-6-11.7-2.7c-3.4,3.4-9.7,11.7-0.4,21.8 c9.2,10.1,16,2.7,18,1s5.9-7,3.4-9.7c-2.6-2.7-4.4-4.4-5.6-2.6c-1.2,1.7-0.4,6.7-2.9,7.6c-2.4,0.9-4.6,0-6.7-2.5 c-2.1-2.6-3.4-8.4-1.4-8.9C13.3,32,12,35.4,15.2,35.9z"></path> </g> </g> </g> </g><g class="logo__part logo__part--character logo__part--b1"> <g> <g> <path d="M33.1,12.5c-2.1,0-4.2,0.5-6,1.3C24.3,15.3,17,19.3,21,31.6c0.1,0.7,0.4,2,0.9,2.7c0.3,0.4,1,0.6,1.1,0.8 c0.2,0.3,2.2,1.1,2.9,1.8c0.8,0.7,1.2,1.4,1.8,1.7c2.5,1.4,5,1.7,6.8,1.7c2.4,0,4.9-0.6,7-1.6c2-0.9,5.5-3,6.6-6.4 c0.6-1.8,0.4-3.7-0.6-5.5c-0.4-0.7-0.9-1.3-1.4-1.7c-0.2-0.2-0.6-0.2-0.8-0.4c-0.4-0.3-0.7-0.6-1.1-0.8c-1.1-0.4-2.2-0.6-3.1-0.8 c-1.4-0.2-2.1-0.4-2.4-0.7c0.1-0.4,0.3-1,0.5-1.5c0.7-1.8,1.6-4.2,0.2-6C38.4,13.4,36.1,12.5,33.1,12.5L33.1,12.5z"></path> <path fill="#FFE500" d="M27.9,15.4c-3.6,1.9-8.7,5.1-4.6,15.1c4.1,9.9,13.3,8.6,17.5,6.6c4-1.9,7.5-5.4,5.2-9.5 c-2.1-4-7.7-1.6-9-4.7c-0.5-1.4,2.4-5.2,1-7C36.7,14.1,31.6,13.7,27.9,15.4z"></path> </g> </g> <g> <path fill="#50318E" d="M31.8,24.3c1.5-1.7,1.1-5.4-0.7-5.9c-2.6-0.7-4.6,3.1-4,4.4C27.9,24.1,30.3,26,31.8,24.3z"></path> </g> <g> <path fill="#50318E" d="M38.7,31c-0.5,1.5-2.2,3.6-4.4,2.9s-3.7-3.9-2.4-5C33.4,27.9,40.3,26.5,38.7,31z"></path> </g> </g><g class="logo__part logo__part--character logo__part--e1"> <g> <g> <path d="M47.8,8.2c-1.7,0-3.4,0.7-4.6,1.8c-5.2,4.8-4.3,10.5-1.1,14.1c0.4,0.5,0.9,0.9,1.4,1.3c0.3,0.2,0.6,0.3,0.9,0.4 c0.1,0.1,0.3,0.1,0.4,0.2c0.1,0.1,0.2,0.3,0.3,0.3c1.4,0.8,3,1.1,4.5,1.1c2.6,0,5.1-1.1,7.3-3.1c2.5-2.2,2.1-4,1.3-5.5 c0-0.1-0.1-0.1-0.1-0.2c-0.5-1.2-1.8-2.4-3.2-2.6c0.4-1.8-0.4-3.8-1.3-5l-0.1-0.1L53.5,11C51.5,8.7,49.3,8.2,47.8,8.2L47.8,8.2z"></path> <path fill="#FFE500" d="M44.4,11.3c-3.2,3-4.5,7.6-1,11.6c2.9,3.1,7.9,4.4,12.4,0.2c2-1.7,1.2-2.6,0.7-3.6 c-0.4-1-1.9-2.1-2.6-1.4c-0.7,0.7-1.1,1.7-2,2.5c-1.2,1.1-5.2,0.4-3.9-0.9c0.7-0.7,2.9-1.5,4.6-3.1c1.2-1.1,0.1-3.6-0.5-4.5 C49.3,9,45.9,10,44.4,11.3z"></path> </g> </g> <g> <path fill="#50318E" d="M44.8,16.9c0.5,1.1,2.6,0.6,3.6-0.4c1-1,1.9-2.5,0.6-3.6C47,11.2,44,15.2,44.8,16.9z"></path> </g> </g><g class="logo__part logo__part--character logo__part--e2"> <g> <g> <path d="M67.1,9.1c-6.8,0-10,4.7-10.2,9.3c-0.1,5,3.1,10.4,10.5,10.7c0.2,0,0.3,0,0.5,0c3.3,0,4-2,4.3-2.9c0-0.1,0.1-0.2,0.1-0.2 c0.4-1.1,0.4-2.9-0.4-4.1c1.6-1.1,2.4-3.4,2.6-4.6l0-0.1v-0.1c0-5.2-3.6-7.8-6.9-8l0,0l0,0C67.3,9.1,67.2,9.1,67.1,9.1L67.1,9.1z "></path> <path fill="#FFE500" d="M67.4,11c-4.4-0.1-8.5,2.4-8.7,7.6c-0.1,4.2,2.6,8.6,8.7,8.9c2.6,0.1,2.7-1,3.1-2c0.4-1,0.1-2.9-0.9-2.9 c-1,0-2,0.5-3.1,0.5c-1.7,0-4-3.4-2.1-3.2c1.1,0,3.1,0.9,5.5,1c1.6,0,2.6-2.5,2.7-3.6C72.6,12.6,69.4,11.1,67.4,11z"></path> </g> </g> <g> <path fill="#50318E" d="M64.9,16.1c-0.4,1.1,1.2,2.4,2.5,2.2c1.2,0,2.7-0.5,2.6-2.1C69.7,13.4,65.5,14.3,64.9,16.1z"></path> </g> </g><g class="logo__part logo__part--character logo__part--b2"> <g> <g> <path d="M82.3,0.4c-2.1,0-3.8,1-4.7,2.9c-0.3,0.5-1,1.5-1.5,3.4l0,0l0,0c0,0.1-0.4,1.8-0.5,3l0,0.1V10c0,0.2,0,0.6,0,0.9 c0,0.5-0.1,1-0.1,1.6c0,0,0,0,0,0c0,0,0,0.4-0.2,1.4c-0.1,0.5-0.6,1.1-1.2,2.1c-0.3,0.4-0.6,0.8-0.9,1.3c-0.2,0.3-1,1.6-1.3,2.6 c-0.3,0.8-1.7,4.5,0.1,8.9c1.3,3.7,4.9,6.1,9.3,6.1c1.6,0,3.2-0.3,4.7-1c1-0.4,1.7-1,2.2-1.3l0.1-0.1c0.5-0.4,0.9-0.8,1-1 c0.3-0.3,0.6-0.7,0.8-1.1c0.3-0.5,0.2-1.1,0.5-1.6c0.4-0.8,1.1-1.2,1.1-1.4c0.9-2.6,0.8-4.7,0.7-5.7v-0.1v-0.2L92.4,21 c0-0.2-0.1-0.3-0.1-0.4c0-0.2-0.1-0.5-0.2-0.9c-0.7-2.7-3.2-4.3-6.4-4.3c-0.6,0-1.1,0.1-1.6,0.2l-0.5,0.1l-0.1,0.1 c0-0.1,0.1-0.2,0.1-0.4l0-0.1l0-0.1l0.1-0.2c0.3-1.1,0.3-1.1,1.6-3l0.1-0.2c0.6-0.5,1.1-1.5,1.9-2.9C87.8,8,88,7,88,6.1 C88,3,85.5,0.4,82.3,0.4L82.3,0.4z"></path> <path fill="#FFE500" d="M73.6,20.4c0.2-0.9,1.1-2.2,1.1-2.2c1.2-1.9,2.1-2.9,2.4-4c0.2-1.2,0.2-1.7,0.2-1.7 c0-0.9,0.1-1.9,0.1-2.5C77.6,8.8,78,7.1,78,7.1c0.5-2,1.2-2.9,1.2-2.9c0.6-1.4,1.7-2,3.1-2c2.1,0,3.9,1.7,3.9,3.9 c0,0.5-0.1,1.2-0.5,2c-1.1,2.1-1.5,2.5-1.6,2.5c-1.7,2.7-1.6,2.5-2.1,4.1c-0.2,0.6-0.4,1.1-0.2,1.6c0.2,0.9,0.9,1.2,1.5,1.2 c0.2,0,0.5,0,0.9-0.1c0.1,0,0.2,0,0.4-0.1c1.9-0.4,5.2,0,6,3c0.1,0.2,0.1,0.6,0.2,1.1v0.2c0.1,1,0.1,2.9-0.6,5 c-0.1,0.4-1.2,2.6-2.1,3.5l0,0c0,0-0.2,0.4-0.7,0.7c-0.5,0.4-1.1,0.9-2,1.2c-4.4,2-10,0.4-11.5-4.1C72,23.9,73.6,20.4,73.6,20.4z "></path> </g> </g> <g> <path fill="#50318E" d="M86.1,25.9c-1.1,1.2-3.7,2.5-5.5,0.9c-1.7-1.6-1.9-5.5-0.1-5.9C82.3,20.7,89.6,22.3,86.1,25.9z"></path> </g> </g><g class="logo__part logo__part--character logo__part--i"> <g> <g> <path d="M99.7,14.3c-1.6,0-2.8,0.9-3.3,2.4c-1.2,3.7,0.4,5.8,2.2,6.5c0.3,0.1,0.7,0.2,1,0.2c1.8,0,3.4-1.7,4.2-3.1 c0.8-1.4,0.8-2.8,0.2-3.7C103.2,15.5,101.5,14.3,99.7,14.3L99.7,14.3z"></path> <path fill="#FFE500" d="M98.1,17.3c-0.7,2.4-0.1,3.7,1.1,4.2c1.5,0.6,4-2.9,3.2-4C101.7,16.4,98.8,15.1,98.1,17.3z"></path> </g> </g> <g> <g> <path d="M97.1,21.5L97.1,21.5c-1.2,0-2.6,0.7-4.1,1.9l0,0l0,0c-1.1,1.1-1.6,1.7-2.3,2.5c-0.1,0.1-0.2,0.3-0.3,0.5 c-0.1,0.1-0.3,0.8-0.3,0.8c-0.6,1.2-1.3,1.9-1.4,2.2c-0.1,1.1,0,1.8,0.3,2.4c0.6,1.3,2.1,2.2,4,2.3c0.1,0,0.2,0,0.3,0 c3.3,0,6.5-4.2,7.1-7.9c0.3-2-0.2-3.2-0.7-3.8C98.9,21.9,98.1,21.5,97.1,21.5L97.1,21.5z"></path> <path fill="#FFE500" d="M94.2,24.8c2.9-2.5,4.7-1.7,4.2,1.2c-0.5,3-3.1,6.5-5.5,6.4c-1.7-0.1-3.9-1.2-1.7-4.4 C92.3,26.8,92.8,26.2,94.2,24.8z"></path> </g> </g> </g><g class="logo__part logo__part--character logo__part--e3"> <g> <g> <path d="M106.4,23.7c-4.7,0-8.3,2.9-9.1,7.4c-0.5,2.6,0,5.3,1.4,7.4c1.5,2.1,3.8,3.5,6.7,4.1c0.5,0.1,1,0.2,1.4,0.2 c2.2,0,3-1.4,3.4-2.1c0-0.1,0.1-0.2,0.1-0.2l0-0.1l0-0.1c0.6-1,0.8-2.7,0.2-4c0,0,0,0,0,0c0.6-0.3,1.1-0.7,1.6-1.3 c0.7-0.8,1.1-1.8,1.3-2.6c0.6-2.6-0.1-4.4-0.8-5.5c-1-1.5-2.6-2.6-4.3-3C107.8,23.8,107.1,23.7,106.4,23.7L106.4,23.7z"></path> <path fill="#FFE500" d="M108.2,25.7c-4-0.7-8.2,1-9.1,5.7c-0.7,3.9,1.1,8.4,6.7,9.4c2.4,0.5,2.6-0.6,3.1-1.4 c0.5-0.9,0.5-2.6-0.5-2.7s-2,0.1-3,0c-1.6-0.2-3.2-3.6-1.5-3.4c1,0.2,2.7,1.2,4.9,1.6c1.5,0.2,2.9-1.9,3-2.9 C112.8,28,110,26,108.2,25.7z"></path> </g> </g> <g> <path fill="#50318E" d="M105,28.5c-0.6,1-0.5,2.9,0.7,3c1.2,0.1,3.6-1.1,2.7-2.6C107.7,27.5,105.9,27.2,105,28.5z"></path> </g> </g><g class="logo__part logo__part--character logo__part--s"> <g> <path d="M117.5,34.6c-2.4,0-4.7,1-6.3,2.7l0,0l0,0c-1.2,1.4-2.3,3.8-1.7,5.9c-1.3,0.1-2.2,0.9-2.6,1.3l0,0l0,0 c-2.3,2.5-2.2,5.6,0.3,7.9l0,0l0,0c1.8,1.6,4.1,2.4,6.4,2.4c2.4,0,4.6-1,6.2-2.7c1.3-1.4,2.4-3.9,1.8-5.9c1.2-0.1,2.2-0.9,2.5-1.3 l0,0l0,0c1.1-1.2,1.7-2.6,1.6-4c-0.1-1.4-0.7-2.7-2-3.9C122.1,35.5,119.9,34.6,117.5,34.6L117.5,34.6 C117.5,34.6,117.5,34.6,117.5,34.6L117.5,34.6z"></path> <path fill="#FFE500" d="M118.5,51c1.1-1.2,2.2-3.9,0.7-5.2c-1-0.9-1.9-1.2-2.9-2.1c-0.7-0.7-0.7-1.7-0.1-2.4 c0.5-0.6,1.6-1.2,2.4-0.6c1,0.9,1.1,2.6,2,3.6c0.7,0.6,1.7,0,2.2-0.5c1.6-1.7,1.5-3.7-0.2-5.4c-2.9-2.6-7.4-2.7-10.1,0.1 c-1.1,1.2-2.1,3.9-0.7,5.2c1,0.9,2.4,1.1,3,2.4c0.5,0.9,0.4,1.4,0,2.1c-0.5,0.7-1.6,1.2-2.4,0.6c-1-0.9-1-2.6-2-3.6 c-0.7-0.6-1.7,0-2.2,0.5c-1.6,1.7-1.5,3.7,0.2,5.4C111.4,53.7,115.9,53.9,118.5,51z"></path> </g> </g> </svg> <script> require(['jquery-1', 'modernizr', 'childrens/logo/animated-cbeebies-logo'], function ($, Modernizr, logoAnimation) { var shouldAnimateLogo = Modernizr.svg && Modernizr.cssanimations; if (shouldAnimateLogo) { var logo = logoAnimation({id: '#small-menu-logo'}); $(document).ready(function () { setTimeout(logo.play, 800); }); } }); </script> Home </a> <button id="menu-toggle" class="menu__toggle" data-stats-interaction="navigation" data-stats-interaction-action="button" data-stats-interaction-variant="open"> <span id="menu-toggle-title" class="menu__toggle-title">Menu</span> <i aria-hidden="true" class="menu__toggle-icon"></i> </button> </div> <div class="menu__contents"> <div class="menu__list"> <ul class="menu__list-inner"> <li class="menu__item menu__item--home"> <a class="menu__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies" data-stats-interaction="navigation" data-stats-interaction-variant="home" data-bbc-container="Navigation" data-bbc-metadata="{&quot;PAR&quot;:&quot;navigation&quot;,&quot;CHD&quot;:&quot;home::1&quot;}" data-bbc-title="Home" data-bbc-source="cbeebies"> <span class="menu__link-icon"> <svg version="1.1" id="large-menu-logo" class="logo logo--cbeebies logo--animated menu__logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="0 0 126 54" enable-background="new 0 0 126 54" xml:space="preserve" preserveaspectratio="xMaxYMin meet"> <g class="logo__part logo__part--character logo__part--c"> <g> <g> <g> <path d="M10.6,22.7c-1.8,0-3.4,0.7-4.7,2C2.3,28.2-5,37.8,5.4,49c3.5,3.8,7.2,5.8,10.8,5.8c4.5,0,7.7-2.9,9.2-4.3 c0.1-0.1,0.3-0.3,0.4-0.4c1.7-1.5,4.6-5.2,4.8-8.5c0.1-1.5-0.4-2.8-1.3-3.8c-0.3-0.3-0.4-0.6-0.8-0.8c-0.6-0.3-1.1-0.6-1.5-1 c-0.6-0.5-1.2-1.4-1.6-1.7c-0.6-0.4-1.2-0.5-1.8-0.5c-0.7,0-1.9,0.2-2.8,1.4c-0.8,1.1-0.8,2.6-1,4c-0.1,0.9-0.4,2.9-0.9,3 c-0.4,0.2-0.8,0.2-1.2,0.2c-1.2,0-2.4-0.7-3.6-2.2c-0.8-1-1.4-2.4-1.7-3.7c0.6,0.5,1.3,0.9,2.4,1c0.3,0.1,0.6,0.1,0.9,0.1 c2.6,0,5.7-1.8,6.6-4.3c0.2-1.8-0.4-4.5-2.4-6.1C17.2,25,13.9,22.7,10.6,22.7L10.6,22.7C10.6,22.7,10.6,22.7,10.6,22.7 L10.6,22.7z"></path> <path fill="#FFE500" d="M15.2,35.9c3.2,0.6,7.6-4,3.6-7.2c-4-3.2-8.4-6-11.7-2.7c-3.4,3.4-9.7,11.7-0.4,21.8 c9.2,10.1,16,2.7,18,1s5.9-7,3.4-9.7c-2.6-2.7-4.4-4.4-5.6-2.6c-1.2,1.7-0.4,6.7-2.9,7.6c-2.4,0.9-4.6,0-6.7-2.5 c-2.1-2.6-3.4-8.4-1.4-8.9C13.3,32,12,35.4,15.2,35.9z"></path> </g> </g> </g> </g><g class="logo__part logo__part--character logo__part--b1"> <g> <g> <path d="M33.1,12.5c-2.1,0-4.2,0.5-6,1.3C24.3,15.3,17,19.3,21,31.6c0.1,0.7,0.4,2,0.9,2.7c0.3,0.4,1,0.6,1.1,0.8 c0.2,0.3,2.2,1.1,2.9,1.8c0.8,0.7,1.2,1.4,1.8,1.7c2.5,1.4,5,1.7,6.8,1.7c2.4,0,4.9-0.6,7-1.6c2-0.9,5.5-3,6.6-6.4 c0.6-1.8,0.4-3.7-0.6-5.5c-0.4-0.7-0.9-1.3-1.4-1.7c-0.2-0.2-0.6-0.2-0.8-0.4c-0.4-0.3-0.7-0.6-1.1-0.8c-1.1-0.4-2.2-0.6-3.1-0.8 c-1.4-0.2-2.1-0.4-2.4-0.7c0.1-0.4,0.3-1,0.5-1.5c0.7-1.8,1.6-4.2,0.2-6C38.4,13.4,36.1,12.5,33.1,12.5L33.1,12.5z"></path> <path fill="#FFE500" d="M27.9,15.4c-3.6,1.9-8.7,5.1-4.6,15.1c4.1,9.9,13.3,8.6,17.5,6.6c4-1.9,7.5-5.4,5.2-9.5 c-2.1-4-7.7-1.6-9-4.7c-0.5-1.4,2.4-5.2,1-7C36.7,14.1,31.6,13.7,27.9,15.4z"></path> </g> </g> <g> <path fill="#50318E" d="M31.8,24.3c1.5-1.7,1.1-5.4-0.7-5.9c-2.6-0.7-4.6,3.1-4,4.4C27.9,24.1,30.3,26,31.8,24.3z"></path> </g> <g> <path fill="#50318E" d="M38.7,31c-0.5,1.5-2.2,3.6-4.4,2.9s-3.7-3.9-2.4-5C33.4,27.9,40.3,26.5,38.7,31z"></path> </g> </g><g class="logo__part logo__part--character logo__part--e1"> <g> <g> <path d="M47.8,8.2c-1.7,0-3.4,0.7-4.6,1.8c-5.2,4.8-4.3,10.5-1.1,14.1c0.4,0.5,0.9,0.9,1.4,1.3c0.3,0.2,0.6,0.3,0.9,0.4 c0.1,0.1,0.3,0.1,0.4,0.2c0.1,0.1,0.2,0.3,0.3,0.3c1.4,0.8,3,1.1,4.5,1.1c2.6,0,5.1-1.1,7.3-3.1c2.5-2.2,2.1-4,1.3-5.5 c0-0.1-0.1-0.1-0.1-0.2c-0.5-1.2-1.8-2.4-3.2-2.6c0.4-1.8-0.4-3.8-1.3-5l-0.1-0.1L53.5,11C51.5,8.7,49.3,8.2,47.8,8.2L47.8,8.2z"></path> <path fill="#FFE500" d="M44.4,11.3c-3.2,3-4.5,7.6-1,11.6c2.9,3.1,7.9,4.4,12.4,0.2c2-1.7,1.2-2.6,0.7-3.6 c-0.4-1-1.9-2.1-2.6-1.4c-0.7,0.7-1.1,1.7-2,2.5c-1.2,1.1-5.2,0.4-3.9-0.9c0.7-0.7,2.9-1.5,4.6-3.1c1.2-1.1,0.1-3.6-0.5-4.5 C49.3,9,45.9,10,44.4,11.3z"></path> </g> </g> <g> <path fill="#50318E" d="M44.8,16.9c0.5,1.1,2.6,0.6,3.6-0.4c1-1,1.9-2.5,0.6-3.6C47,11.2,44,15.2,44.8,16.9z"></path> </g> </g><g class="logo__part logo__part--character logo__part--e2"> <g> <g> <path d="M67.1,9.1c-6.8,0-10,4.7-10.2,9.3c-0.1,5,3.1,10.4,10.5,10.7c0.2,0,0.3,0,0.5,0c3.3,0,4-2,4.3-2.9c0-0.1,0.1-0.2,0.1-0.2 c0.4-1.1,0.4-2.9-0.4-4.1c1.6-1.1,2.4-3.4,2.6-4.6l0-0.1v-0.1c0-5.2-3.6-7.8-6.9-8l0,0l0,0C67.3,9.1,67.2,9.1,67.1,9.1L67.1,9.1z "></path> <path fill="#FFE500" d="M67.4,11c-4.4-0.1-8.5,2.4-8.7,7.6c-0.1,4.2,2.6,8.6,8.7,8.9c2.6,0.1,2.7-1,3.1-2c0.4-1,0.1-2.9-0.9-2.9 c-1,0-2,0.5-3.1,0.5c-1.7,0-4-3.4-2.1-3.2c1.1,0,3.1,0.9,5.5,1c1.6,0,2.6-2.5,2.7-3.6C72.6,12.6,69.4,11.1,67.4,11z"></path> </g> </g> <g> <path fill="#50318E" d="M64.9,16.1c-0.4,1.1,1.2,2.4,2.5,2.2c1.2,0,2.7-0.5,2.6-2.1C69.7,13.4,65.5,14.3,64.9,16.1z"></path> </g> </g><g class="logo__part logo__part--character logo__part--b2"> <g> <g> <path d="M82.3,0.4c-2.1,0-3.8,1-4.7,2.9c-0.3,0.5-1,1.5-1.5,3.4l0,0l0,0c0,0.1-0.4,1.8-0.5,3l0,0.1V10c0,0.2,0,0.6,0,0.9 c0,0.5-0.1,1-0.1,1.6c0,0,0,0,0,0c0,0,0,0.4-0.2,1.4c-0.1,0.5-0.6,1.1-1.2,2.1c-0.3,0.4-0.6,0.8-0.9,1.3c-0.2,0.3-1,1.6-1.3,2.6 c-0.3,0.8-1.7,4.5,0.1,8.9c1.3,3.7,4.9,6.1,9.3,6.1c1.6,0,3.2-0.3,4.7-1c1-0.4,1.7-1,2.2-1.3l0.1-0.1c0.5-0.4,0.9-0.8,1-1 c0.3-0.3,0.6-0.7,0.8-1.1c0.3-0.5,0.2-1.1,0.5-1.6c0.4-0.8,1.1-1.2,1.1-1.4c0.9-2.6,0.8-4.7,0.7-5.7v-0.1v-0.2L92.4,21 c0-0.2-0.1-0.3-0.1-0.4c0-0.2-0.1-0.5-0.2-0.9c-0.7-2.7-3.2-4.3-6.4-4.3c-0.6,0-1.1,0.1-1.6,0.2l-0.5,0.1l-0.1,0.1 c0-0.1,0.1-0.2,0.1-0.4l0-0.1l0-0.1l0.1-0.2c0.3-1.1,0.3-1.1,1.6-3l0.1-0.2c0.6-0.5,1.1-1.5,1.9-2.9C87.8,8,88,7,88,6.1 C88,3,85.5,0.4,82.3,0.4L82.3,0.4z"></path> <path fill="#FFE500" d="M73.6,20.4c0.2-0.9,1.1-2.2,1.1-2.2c1.2-1.9,2.1-2.9,2.4-4c0.2-1.2,0.2-1.7,0.2-1.7 c0-0.9,0.1-1.9,0.1-2.5C77.6,8.8,78,7.1,78,7.1c0.5-2,1.2-2.9,1.2-2.9c0.6-1.4,1.7-2,3.1-2c2.1,0,3.9,1.7,3.9,3.9 c0,0.5-0.1,1.2-0.5,2c-1.1,2.1-1.5,2.5-1.6,2.5c-1.7,2.7-1.6,2.5-2.1,4.1c-0.2,0.6-0.4,1.1-0.2,1.6c0.2,0.9,0.9,1.2,1.5,1.2 c0.2,0,0.5,0,0.9-0.1c0.1,0,0.2,0,0.4-0.1c1.9-0.4,5.2,0,6,3c0.1,0.2,0.1,0.6,0.2,1.1v0.2c0.1,1,0.1,2.9-0.6,5 c-0.1,0.4-1.2,2.6-2.1,3.5l0,0c0,0-0.2,0.4-0.7,0.7c-0.5,0.4-1.1,0.9-2,1.2c-4.4,2-10,0.4-11.5-4.1C72,23.9,73.6,20.4,73.6,20.4z "></path> </g> </g> <g> <path fill="#50318E" d="M86.1,25.9c-1.1,1.2-3.7,2.5-5.5,0.9c-1.7-1.6-1.9-5.5-0.1-5.9C82.3,20.7,89.6,22.3,86.1,25.9z"></path> </g> </g><g class="logo__part logo__part--character logo__part--i"> <g> <g> <path d="M99.7,14.3c-1.6,0-2.8,0.9-3.3,2.4c-1.2,3.7,0.4,5.8,2.2,6.5c0.3,0.1,0.7,0.2,1,0.2c1.8,0,3.4-1.7,4.2-3.1 c0.8-1.4,0.8-2.8,0.2-3.7C103.2,15.5,101.5,14.3,99.7,14.3L99.7,14.3z"></path> <path fill="#FFE500" d="M98.1,17.3c-0.7,2.4-0.1,3.7,1.1,4.2c1.5,0.6,4-2.9,3.2-4C101.7,16.4,98.8,15.1,98.1,17.3z"></path> </g> </g> <g> <g> <path d="M97.1,21.5L97.1,21.5c-1.2,0-2.6,0.7-4.1,1.9l0,0l0,0c-1.1,1.1-1.6,1.7-2.3,2.5c-0.1,0.1-0.2,0.3-0.3,0.5 c-0.1,0.1-0.3,0.8-0.3,0.8c-0.6,1.2-1.3,1.9-1.4,2.2c-0.1,1.1,0,1.8,0.3,2.4c0.6,1.3,2.1,2.2,4,2.3c0.1,0,0.2,0,0.3,0 c3.3,0,6.5-4.2,7.1-7.9c0.3-2-0.2-3.2-0.7-3.8C98.9,21.9,98.1,21.5,97.1,21.5L97.1,21.5z"></path> <path fill="#FFE500" d="M94.2,24.8c2.9-2.5,4.7-1.7,4.2,1.2c-0.5,3-3.1,6.5-5.5,6.4c-1.7-0.1-3.9-1.2-1.7-4.4 C92.3,26.8,92.8,26.2,94.2,24.8z"></path> </g> </g> </g><g class="logo__part logo__part--character logo__part--e3"> <g> <g> <path d="M106.4,23.7c-4.7,0-8.3,2.9-9.1,7.4c-0.5,2.6,0,5.3,1.4,7.4c1.5,2.1,3.8,3.5,6.7,4.1c0.5,0.1,1,0.2,1.4,0.2 c2.2,0,3-1.4,3.4-2.1c0-0.1,0.1-0.2,0.1-0.2l0-0.1l0-0.1c0.6-1,0.8-2.7,0.2-4c0,0,0,0,0,0c0.6-0.3,1.1-0.7,1.6-1.3 c0.7-0.8,1.1-1.8,1.3-2.6c0.6-2.6-0.1-4.4-0.8-5.5c-1-1.5-2.6-2.6-4.3-3C107.8,23.8,107.1,23.7,106.4,23.7L106.4,23.7z"></path> <path fill="#FFE500" d="M108.2,25.7c-4-0.7-8.2,1-9.1,5.7c-0.7,3.9,1.1,8.4,6.7,9.4c2.4,0.5,2.6-0.6,3.1-1.4 c0.5-0.9,0.5-2.6-0.5-2.7s-2,0.1-3,0c-1.6-0.2-3.2-3.6-1.5-3.4c1,0.2,2.7,1.2,4.9,1.6c1.5,0.2,2.9-1.9,3-2.9 C112.8,28,110,26,108.2,25.7z"></path> </g> </g> <g> <path fill="#50318E" d="M105,28.5c-0.6,1-0.5,2.9,0.7,3c1.2,0.1,3.6-1.1,2.7-2.6C107.7,27.5,105.9,27.2,105,28.5z"></path> </g> </g><g class="logo__part logo__part--character logo__part--s"> <g> <path d="M117.5,34.6c-2.4,0-4.7,1-6.3,2.7l0,0l0,0c-1.2,1.4-2.3,3.8-1.7,5.9c-1.3,0.1-2.2,0.9-2.6,1.3l0,0l0,0 c-2.3,2.5-2.2,5.6,0.3,7.9l0,0l0,0c1.8,1.6,4.1,2.4,6.4,2.4c2.4,0,4.6-1,6.2-2.7c1.3-1.4,2.4-3.9,1.8-5.9c1.2-0.1,2.2-0.9,2.5-1.3 l0,0l0,0c1.1-1.2,1.7-2.6,1.6-4c-0.1-1.4-0.7-2.7-2-3.9C122.1,35.5,119.9,34.6,117.5,34.6L117.5,34.6 C117.5,34.6,117.5,34.6,117.5,34.6L117.5,34.6z"></path> <path fill="#FFE500" d="M118.5,51c1.1-1.2,2.2-3.9,0.7-5.2c-1-0.9-1.9-1.2-2.9-2.1c-0.7-0.7-0.7-1.7-0.1-2.4 c0.5-0.6,1.6-1.2,2.4-0.6c1,0.9,1.1,2.6,2,3.6c0.7,0.6,1.7,0,2.2-0.5c1.6-1.7,1.5-3.7-0.2-5.4c-2.9-2.6-7.4-2.7-10.1,0.1 c-1.1,1.2-2.1,3.9-0.7,5.2c1,0.9,2.4,1.1,3,2.4c0.5,0.9,0.4,1.4,0,2.1c-0.5,0.7-1.6,1.2-2.4,0.6c-1-0.9-1-2.6-2-3.6 c-0.7-0.6-1.7,0-2.2,0.5c-1.6,1.7-1.5,3.7,0.2,5.4C111.4,53.7,115.9,53.9,118.5,51z"></path> </g> </g> </svg> <script> require(['jquery-1', 'modernizr', 'childrens/logo/animated-cbeebies-logo'], function ($, Modernizr, logoAnimation) { var shouldAnimateLogo = Modernizr.svg && Modernizr.cssanimations; if (shouldAnimateLogo) { var logo = logoAnimation({id: '#large-menu-logo'}); $(document).ready(function () { setTimeout(logo.play, 800); }); } }); </script> </span><span class="menu__link-label">Home</span> </a> </li><!-- --><li class="menu__item menu__item--shows"> <a class="menu__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows" data-stats-interaction="navigation" data-stats-interaction-variant="shows" data-bbc-container="Navigation" data-bbc-metadata="{&quot;PAR&quot;:&quot;navigation&quot;,&quot;CHD&quot;:&quot;shows::2&quot;}" data-bbc-title="Shows" data-bbc-source="cbeebies"> <span class="menu__link-icon"></span><span class="menu__link-label">Shows</span> </a> </li><li class="menu__item menu__item--games"> <a class="menu__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/games" data-stats-interaction="navigation" data-stats-interaction-variant="games" data-bbc-container="Navigation" data-bbc-metadata="{&quot;PAR&quot;:&quot;navigation&quot;,&quot;CHD&quot;:&quot;games::3&quot;}" data-bbc-title="Games" data-bbc-source="cbeebies"> <span class="menu__link-icon"></span><span class="menu__link-label">Games</span> </a> </li><li class="menu__item menu__item--puzzles"> <a class="menu__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/puzzles" data-stats-interaction="navigation" data-stats-interaction-variant="puzzles" data-bbc-container="Navigation" data-bbc-metadata="{&quot;PAR&quot;:&quot;navigation&quot;,&quot;CHD&quot;:&quot;puzzles::4&quot;}" data-bbc-title="Puzzles &amp; Quizzes" data-bbc-source="cbeebies"> <span class="menu__link-icon"></span><span class="menu__link-label">Puzzles &amp; Quizzes</span> </a> </li><li class="menu__item menu__item--watch"> <a class="menu__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/watch" data-stats-interaction="navigation" data-stats-interaction-variant="watch" data-bbc-container="Navigation" data-bbc-metadata="{&quot;PAR&quot;:&quot;navigation&quot;,&quot;CHD&quot;:&quot;watch::5&quot;}" data-bbc-title="Watch &amp; Sing" data-bbc-source="cbeebies"> <span class="menu__link-icon"></span><span class="menu__link-label">Watch &amp; Sing</span> </a> </li><li class="menu__item menu__item--joinin"> <a class="menu__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/joinin" data-stats-interaction="navigation" data-stats-interaction-variant="joinin" data-bbc-container="Navigation" data-bbc-metadata="{&quot;PAR&quot;:&quot;navigation&quot;,&quot;CHD&quot;:&quot;joinin::6&quot;}" data-bbc-title="Join In" data-bbc-source="cbeebies"> <span class="menu__link-icon"></span><span class="menu__link-label">Join In</span> </a> </li><li class="menu__item menu__item--makes menu__item--current"> <a class="menu__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/makes" data-stats-interaction="navigation" data-stats-interaction-variant="makes" data-bbc-container="Navigation" data-bbc-metadata="{&quot;PAR&quot;:&quot;navigation&quot;,&quot;CHD&quot;:&quot;makes::7&quot;}" data-bbc-title="Make &amp; Colour" data-bbc-source="cbeebies"> <span class="menu__link-icon"></span><span class="menu__link-label">Make &amp; Colour</span> </a> </li><li class="menu__item menu__item--radio"> <a class="menu__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/radio" data-stats-interaction="navigation" data-stats-interaction-variant="radio" data-bbc-container="Navigation" data-bbc-metadata="{&quot;PAR&quot;:&quot;navigation&quot;,&quot;CHD&quot;:&quot;radio::8&quot;}" data-bbc-title="Radio" data-bbc-source="cbeebies"> <span class="menu__link-icon"></span><span class="menu__link-label">Radio</span> </a> </li><li class="menu__item menu__item--topics"> <a class="menu__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/topics" data-stats-interaction="navigation" data-stats-interaction-variant="topics" data-bbc-container="Navigation" data-bbc-metadata="{&quot;PAR&quot;:&quot;navigation&quot;,&quot;CHD&quot;:&quot;topics::9&quot;}" data-bbc-title="Topics" data-bbc-source="cbeebies"> <span class="menu__link-icon"></span><span class="menu__link-label">Topics</span> </a> </li> </ul> <div class="menu__search-bar menu__search-bar--open"> <form id="search-bar-in-menu" class="search-bar" role="search" action="//web.archive.org/web/20191108214155/https://search.bbc.co.uk/search" method="get" accept-charset="utf-8"> <label for="search-bar-input-in-menu" class="search-bar__label vh">Start your search here...</label> <input type="hidden" name="scope" value="cbeebies"> <div class="search-bar__input-area"> <input id="search-bar-input-in-menu" class="search-bar__input" type="text" name="q" placeholder="Start your search here..."> <button class="search-bar__clear" aria-label="Clear Search" type="button" data-stats-interaction="search_bar" data-stats-interaction-variant="clear" data-stats-interaction-action="button"> <i class="search-bar__clear-icon gelicon gelicon--no" aria-hidden="true"></i> </button> </div> <button aria-label="Search" class="search-bar__button"> <div class="search-bar__button-inner"> <span class="search-bar__button-image"></span> </div> </button> </form> <script> require(['jquery-1', 'local/utils/config'], function ($, config) { function clearSearchOnClick() { var $searchBar = $('#search-bar-in-menu'); var $searchInput = $('#search-bar-input-in-menu'); var $clearButton = $searchBar.find('.search-bar__clear'); $clearButton.on('click', function () { $searchInput.val("").focus(); $clearButton.hide(); }); function hideOrShowClearButton() { var isEmpty = $searchInput.val() === ""; isEmpty ? $clearButton.hide() : $clearButton.show(); } hideOrShowClearButton(); $searchInput.on('keyup keypress blur change', hideOrShowClearButton); } function setNextPageIstatsLabelsOnFormSubmit() { var $searchForm = $('#search-bar-in-menu'); function canSetPerformanceCookies() { return config.analyticsReclassificationEnabled || (window.bbccookies && window.bbccookies.cookiesEnabled() && window.bbccookies.readPolicy('performance')); } function setNextPageIstatsCookie(labels, domain) { var encodedLabels = $.map(labels, function(value, key) { return encodeURIComponent(key) + '=' + encodeURIComponent(value); }); var encodedLabelString = encodeURIComponent(encodedLabels.join('&')); document.cookie = 'sa_labels=' + encodedLabelString + '; domain=' + domain + '; path=/'; } var $searchButton = $searchForm.find('.search-bar__button'); function searchButtonIsActive() { return document.activeElement === $searchButton[0]; } $searchForm.submit(function () { if (canSetPerformanceCookies()) { var pageType = $(this).closest('[data-stats-page-type]').attr('data-stats-page-type'); var submitType = searchButtonIsActive() ? 'button' : 'submit'; var labels = { 'intlink_from_url': window.location.href, 'intlink_ts': new Date().getTime(), 'intlink_id': 'childrens-local-search-' + submitType, 'link_location': 'childrens-local-search-' + pageType }; setNextPageIstatsCookie(labels, "bbc." + config.currentTLD); } }); } clearSearchOnClick(); setNextPageIstatsLabelsOnFormSubmit(); }); </script> </div> <div class="menu__close-on-focus" tabindex="0"></div> </div> </div> </div> </nav> <div class="menu__search-bar menu__search-bar--below-menu"> <form id="search-bar-below-menu" class="search-bar" role="search" action="//web.archive.org/web/20191108214155/https://search.bbc.co.uk/search" method="get" accept-charset="utf-8"> <label for="search-bar-input-below-menu" class="search-bar__label vh">Start your search here...</label> <input type="hidden" name="scope" value="cbeebies"> <div class="search-bar__input-area"> <input id="search-bar-input-below-menu" class="search-bar__input" type="text" name="q" placeholder="Start your search here..."> <button class="search-bar__clear" aria-label="Clear Search" type="button" data-stats-interaction="search_bar" data-stats-interaction-variant="clear" data-stats-interaction-action="button"> <i class="search-bar__clear-icon gelicon gelicon--no" aria-hidden="true"></i> </button> </div> <button aria-label="Search" class="search-bar__button"> <div class="search-bar__button-inner"> <span class="search-bar__button-image"></span> </div> </button> </form> <script> require(['jquery-1', 'local/utils/config'], function ($, config) { function clearSearchOnClick() { var $searchBar = $('#search-bar-below-menu'); var $searchInput = $('#search-bar-input-below-menu'); var $clearButton = $searchBar.find('.search-bar__clear'); $clearButton.on('click', function () { $searchInput.val("").focus(); $clearButton.hide(); }); function hideOrShowClearButton() { var isEmpty = $searchInput.val() === ""; isEmpty ? $clearButton.hide() : $clearButton.show(); } hideOrShowClearButton(); $searchInput.on('keyup keypress blur change', hideOrShowClearButton); } function setNextPageIstatsLabelsOnFormSubmit() { var $searchForm = $('#search-bar-below-menu'); function canSetPerformanceCookies() { return config.analyticsReclassificationEnabled || (window.bbccookies && window.bbccookies.cookiesEnabled() && window.bbccookies.readPolicy('performance')); } function setNextPageIstatsCookie(labels, domain) { var encodedLabels = $.map(labels, function(value, key) { return encodeURIComponent(key) + '=' + encodeURIComponent(value); }); var encodedLabelString = encodeURIComponent(encodedLabels.join('&')); document.cookie = 'sa_labels=' + encodedLabelString + '; domain=' + domain + '; path=/'; } var $searchButton = $searchForm.find('.search-bar__button'); function searchButtonIsActive() { return document.activeElement === $searchButton[0]; } $searchForm.submit(function () { if (canSetPerformanceCookies()) { var pageType = $(this).closest('[data-stats-page-type]').attr('data-stats-page-type'); var submitType = searchButtonIsActive() ? 'button' : 'submit'; var labels = { 'intlink_from_url': window.location.href, 'intlink_ts': new Date().getTime(), 'intlink_id': 'childrens-local-search-' + submitType, 'link_location': 'childrens-local-search-' + pageType }; setNextPageIstatsCookie(labels, "bbc." + config.currentTLD); } }); } clearSearchOnClick(); setNextPageIstatsLabelsOnFormSubmit(); }); </script> </div> </div> <script> (function () { 'use strict'; var button = document.getElementById('menu-toggle'); var buttonTitle = document.getElementById('menu-toggle-title'); var menu = document.getElementById('menu'); var menuOverlay = document.querySelector('.menu__contents'); var menuOpen = false; function addEvent(name, el, fn) { if (el.addEventListener) el.addEventListener(name, fn, false); else if (el.attachEvent) el.attachEvent('on' + name, fn); } function removeClass(el, name) { el.className = el.className.replace(new RegExp('(?:^|\\s)' + name + '(?!\\S)'), ''); } function setText(el, text) { if (el.textContent) { el.textContent = text; } else { el.innerText = text; } } function toggleMenuOpenAndClose(e) { e.preventDefault(); menuOpen = !menuOpen; if (menuOpen) { removeClass(menu, 'menu--closed'); menu.className += ' menu--open'; setText(buttonTitle, 'Close'); setTimeout(function () { button.setAttribute('data-stats-interaction-variant', 'close'); }, 10); } else { removeClass(menu, 'menu--open'); menu.className += ' menu--closed'; setText(buttonTitle, 'Menu'); setTimeout(function () { button.setAttribute('data-stats-interaction-variant', 'open'); }, 10); } } function findElements(selector) { var elements = document.querySelectorAll(selector); return Array.prototype.slice.call(elements); } var searchBars = findElements('.search-bar__input'); function searchInputCopyText(e) { var text = e.target.value; searchBars.forEach(function(searchBar) { searchBar.value = text; if ("createEvent" in document) { var evt = document.createEvent("HTMLEvents"); evt.initEvent("change", false, true); searchBar.dispatchEvent(evt); } }) } addEvent('click', button, toggleMenuOpenAndClose); if (menuOverlay) { addEvent('click', menuOverlay, function (e) { var clickedOnEmptySpace = e.target === menuOverlay; if (clickedOnEmptySpace) { toggleMenuOpenAndClose(e); } }); } var hiddenElementAfterSearchInMenu = document.querySelector('.menu__close-on-focus'); addEvent('focus', hiddenElementAfterSearchInMenu, function (e) { var menuToggle = document.querySelector('.menu__toggle'); toggleMenuOpenAndClose(e); menuToggle.focus(); }); searchBars.forEach(function(searchBar) { addEvent('blur', searchBar, searchInputCopyText); }); })(); </script> <script> (function () { var menu = document.getElementById('menu'); var childrensWrapper = document.querySelector('.childrens-wrapper'); var anchorOffsetClass = 'childrens-wrapper--anchor-offset'; function currentVerticalScroll() { return document.documentElement.scrollTop || document.body.scrollTop; } function setupMenuStickyness() { var stuckClass = 'menu--stuck'; function stickingPoint() { return childrensWrapper.offsetTop; } function hasScrolledPastStickingPoint() { return currentVerticalScroll() >= stickingPoint(); } function calculateMainContentHeight() { var viewportWidth = document.documentElement.clientWidth; var mediumBreakpoint = 600; var maxContentHeight = 468; var contentHeight; if (viewportWidth < mediumBreakpoint) { contentHeight = Math.floor(viewportWidth / 16 * 9); } else { contentHeight = Math.floor((viewportWidth - 64) / 16 * 9); } return contentHeight > maxContentHeight ? maxContentHeight : contentHeight; } function hasEnoughSpaceForMainContent() { var viewportHeight = document.documentElement.clientHeight; var menuHeight = menu.offsetHeight; return viewportHeight > (menuHeight + calculateMainContentHeight()); } function stickElement(elem) { elem.classList.add(stuckClass); } function unstickElement(elem) { elem.classList.remove(stuckClass); } function applyAnchorOffsets() { childrensWrapper.classList.add(anchorOffsetClass); } function unapplyAnchorOffsets() { childrensWrapper.classList.remove(anchorOffsetClass); } function stickOrUnstickMenu() { var menuIsStuck = menu.classList.contains(stuckClass); var menuIsOpen = menu.classList.contains('menu--open'); var isSpaceForStickyNav = (hasEnoughSpaceForMainContent() || menuIsOpen); //If the menu is open then assume there is enough space for sticky nav if (hasScrolledPastStickingPoint() && isSpaceForStickyNav) { if (!menuIsStuck && !menuIsOpen) { stickElement(menu); } } else { if (menuIsStuck) { unstickElement(menu); } } } function applyOrUnapplyAnchorOffsets() { if (hasEnoughSpaceForMainContent()) { applyAnchorOffsets(); } else { unapplyAnchorOffsets(); } } function throttleAndDebounce(fn) { var blockFunctionCall = false; return function () { if (blockFunctionCall) return; var self = this; blockFunctionCall = true; function run() { fn.apply(self); } run(); setTimeout(function () { blockFunctionCall = false; run(); }, 16); }; } window.addEventListener('resize', throttleAndDebounce(applyOrUnapplyAnchorOffsets), false); window.addEventListener('resize', throttleAndDebounce(stickOrUnstickMenu), false); window.addEventListener('scroll', throttleAndDebounce(stickOrUnstickMenu), false); window.addEventListener('touchmove', throttleAndDebounce(stickOrUnstickMenu), false); document.addEventListener('DOMContentLoaded', stickOrUnstickMenu, false); applyOrUnapplyAnchorOffsets(); } setupMenuStickyness(); })(); </script> <div class="content-page content-page--has-sidebar" role="main"> <span class="vh" id="main-content">Andy&#x27;s Safari Make A Picture </span> <div class="content-page__columns-wrapper"> <div class="content-page__columns"><!-- --><div class="content-page__column content-page__column--main"> <section class="content-page__section content-page__section--content-item content-item content-item--game content-item--makes"> <div class="content-item__frame"> <section class="content-item__section content-item__primary-content content-item__primary-content--game" itemtype="http://www.schema.org/MediaObject" itemscope> <meta itemprop="name" content="Andy's Safari Adventures - Andy's Safari Make A Picture "/> <meta itemprop="description" content="Get creative and join Andy to make your own super safari inspired pictures! "/> <meta itemprop="typicalAgeRange" content="0-12"/> <meta itemprop="datePublished" content="2018-02-21T12:30:00.000Z"/> <meta itemprop="url" content="https://web.archive.org/web/20191108214155/http://www.bbc.co.uk/cbeebies/makes/andys-safari-adventures-make-a-picture"/> <meta itemprop="isFamilyFriendly" content="true"/> <meta itemprop="image" content="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/720/1x/cbeebies/Andys_Safari_MAP_Content_Card.jpg"/> <meta itemprop="thumbnailUrl" content="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/720/1x/cbeebies/Andys_Safari_MAP_Content_Card.jpg"/> <div class="content-item__section-content"> <div id="game" class="game-embed" data-intention-id="map2-andys-safari-adventures" data-stats-children-game-cms="isite"><div id="u6668907226676463"><div class="game-wrapper" data-reactid=".o1onmzreas" data-react-checksum="-1807777344"><div data-reactid=".o1onmzreas.0"><svg width="64" height="64" viewbox="0 0 32 32" class="game-wrapper__loading-spinner" data-reactid=".o1onmzreas.0.0"><path d="M29.8 8l-3.5 2c1 1.8 1.6 3.8 1.6 6 0 6.6-5.4 12-12 12S4 22.6 4 16 9.4 4 16 4V0C7.2 0 0 7.2 0 16s7.2 16 16 16 16-7.2 16-16c0-2.9-.8-5.6-2.2-8z" data-reactid=".o1onmzreas.0.0.0"></path></svg><div class="game-wrapper__cta" data-reactid=".o1onmzreas.0.1"><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-reactid=".o1onmzreas.0.1.0"/><button type="button" class="game-wrapper__cta-button" data-reactid=".o1onmzreas.0.1.1"><div class="game-wrapper__cta-icon" data-reactid=".o1onmzreas.0.1.1.0"><svg viewbox="0 0 32 32" data-reactid=".o1onmzreas.0.1.1.0.0"><path fill="#fff" d="M8 7.5c-1.9 0-3.5 1.6-3.5 3.5s1.6 3.5 3.5 3.5 3.5-1.6 3.5-3.5S9.9 7.5 8 7.5z" data-reactid=".o1onmzreas.0.1.1.0.0.0"></path><path fill="#fff" d="M24 3c-2 0-3.9.8-5.3 2h-5.4C11.9 3.8 10 3 8 3c-4.4 0-8 3.6-8 8v18h6l6-10h8l6 10h6V11c0-4.4-3.6-8-8-8zm0 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM8 17c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm12-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm4 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm4-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" data-reactid=".o1onmzreas.0.1.1.0.0.1"></path></svg></div></button></div></div></div></div></div> <script> require(['jquery-1', 'stats/stats'], function ($, stats) { var intentionId = 'gid-map2-andys-safari-adventures'; var statsAttributes = { children_interaction_action: 'button', children_interaction_type: 'play', children_interaction_variant: intentionId }; var clicked = false; var $embed = $('#game'); $embed.on('click', '.game-wrapper__cta', function () { if (!clicked) { clicked = true; stats.recordIntention(intentionId); stats.recordInteraction($embed, "click", window.location.pathname, statsAttributes); } }); }); </script> <script> require(['jquery-1'], function ($) { var $embed = $('#game'); $embed.on('DOMNodeInserted', '.game-wrapper__iframe--fixedsize', function (e) { var width = $(e.target).width(); if($.isNumeric(width) && (width > 0)) { $('.content-page__section.content-item--game').css('max-width', (width + 32) + 'px'); } }); }); </script> <noscript> <div class="content-item__js-not-available js-not-available"> <h2 class="js-not-available__title">Oops you can't see this activity!</h2> <p class="js-not-available__text">To enjoy the CBeebies website at its best you will need to have JavaScript turned on.</p> <p class="js-not-available__text">For more help please visit the <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/grownups/faqs" class="js-not-available__link">CBeebies Grown-ups FAQ <span class="gel-icon gelicon--next"></span></a></p> </div> </noscript> </div> </section> <div class="content-item__section content-item__section--information"> <div class="content-item__section-content"> <div class="content-item-description"> <div class="reactions-container"><div id="u28641281585116296"><div class="reactions" data-reactid=".ifa4g79jwy" data-react-checksum="-1354765992"><div data-reactid=".ifa4g79jwy.0"><div data-reactid=".ifa4g79jwy.0.0"><div class="reactions-module" data-reactid=".ifa4g79jwy.0.0.0"><div class="reactions-sprite-animation-wrapper" data-reactid=".ifa4g79jwy.0.0.0.0"><div class="reactions-sprite-animation reactions-sprite-animation__slide--0" style="left:0;top:0;" data-reactid=".ifa4g79jwy.0.0.0.0.0"><noscript data-reactid=".ifa4g79jwy.0.0.0.0.0.0"></noscript></div></div><div class="reactions-tray" data-reactid=".ifa4g79jwy.0.0.0.1"><div class="reactions-tray__reactions-container reactions-tray__reactions-container--no-animation" data-reactid=".ifa4g79jwy.0.0.0.1.0"><ul class="gs-c-reactions" data-reactid=".ifa4g79jwy.0.0.0.1.0.0"><div class="reactions-list" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0"><li data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$0"><button class="gs-c-reaction reaction-button" aria-pressed="false" aria-labelledby="reaction-label-text--loved-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures reaction-count-text--loved-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$0.0"><span class="gel-icon reaction-icon reaction-icon-loved" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$0.0.0"><svg data-name="Layer 1" viewbox="0 0 72 72" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$0.0.0.0"><path d="M13.54 49.73A31.54 31.54 0 0 1 6 30c0-2.08-.06-10.46 6.55-16.17a14.48 14.48 0 0 1 9.1-3.46c7.39 0 11.7 3.42 14.34 8.12 2.64-4.69 7-8.13 14.34-8.12a14.48 14.48 0 0 1 9.1 3.46C66.06 19.54 66 27.93 66 30a31.54 31.54 0 0 1-7.54 19.73C51.28 58.48 36 61.63 36 61.63s-15.28-3.15-22.46-11.9z" fill="#e63f23" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$0.0.0.0.0"></path><path d="M17.06 16.8C14.9 18.15 14 20.51 15 22.08s3.56 1.75 5.73.4 3.11-3.71 2.11-5.28-3.61-1.75-5.78-.4z" fill="#ee7966" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$0.0.0.0.1"></path></svg></span><span id="reaction-label-text--loved-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" class="reaction-label" aria-label="Reaction type Love," data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$0.0.1">Love</span><span id="reaction-count-text--loved-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" class="reaction-count" aria-label="Total number of Loves 698" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$0.0.2">698</span><div class="reaction-focus-line" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$0.0.3"></div></button></li><li data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$1"><button class="gs-c-reaction reaction-button" aria-pressed="false" aria-labelledby="reaction-label-text--lol-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures reaction-count-text--lol-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$1.0"><span class="gel-icon reaction-icon reaction-icon-lol" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$1.0.0"><svg data-name="Layer 1" viewbox="0 0 72 72" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$1.0.0.0"><path d="M33.34 6.12A30 30 0 1 1 6.12 38.66 30 30 0 0 1 33.34 6.12" fill="#ffd201" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$1.0.0.0.0"></path><path d="M55.14 37.21a19.14 19.14 0 1 1-38.29-.16" fill="#2b2b2b" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$1.0.0.0.1"></path><path d="M25.56 53.17a11.22 11.22 0 0 1 20.75.07" fill="#a75916" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$1.0.0.0.2"></path><path d="M35.95 46.29a11.24 11.24 0 0 0-10.41 6.91 19.23 19.23 0 0 0 10.36 3.11 18.78 18.78 0 0 0 10.39-3 11.1 11.1 0 0 0-10.34-7" fill="#e63f23" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$1.0.0.0.3"></path><path d="M21.36 20.41l10.76 3.91a1.27 1.27 0 0 1 0 2.4l-10.75 3.81a1 1 0 0 1-.69-1.78l7.7-3.25-7.69-3.39a.92.92 0 0 1 .68-1.7M51.32 22.11l-7.7 3.38 7.71 3.25a1 1 0 0 1-.69 1.78l-10.74-3.8a1.27 1.27 0 0 1 0-2.4l10.76-3.91a.92.92 0 0 1 .68 1.7" fill="#2b2b2b" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$1.0.0.0.4"></path></svg></span><span id="reaction-label-text--lol-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" class="reaction-label" aria-label="Reaction type Funny," data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$1.0.1">Funny</span><span id="reaction-count-text--lol-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" class="reaction-count" aria-label="Total number of Funnys 354" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$1.0.2">354</span><div class="reaction-focus-line" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$1.0.3"></div></button></li><li data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$2"><button class="gs-c-reaction reaction-button" aria-pressed="false" aria-labelledby="reaction-label-text--applause-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures reaction-count-text--applause-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$2.0"><span class="gel-icon reaction-icon reaction-icon-applause" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$2.0.0"><svg data-name="Layer 1" viewbox="0 0 72 72" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$2.0.0.0"><path d="M52.43 11.33l4.12-7.71a1.09 1.09 0 0 1 1.87 1.09l-4.12 7.71a1.09 1.09 0 0 1-1.87-1.09M43.75 3a1 1 0 0 1 1.79.25l1.23 5.28a1 1 0 0 1-1.89.47l-1.23-5.27a1 1 0 0 1 .1-.74M15.59 11.1l-.7-8.71a1.09 1.09 0 0 1 2.17-.09l.7 8.71a1.09 1.09 0 0 1-2.17.09M3.78 8.77A1 1 0 0 1 5.41 8l3.89 3.79A1 1 0 1 1 8 13.23L4.09 9.45a1 1 0 0 1-.31-.68" fill="#2b2b2b" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$2.0.0.0.0"></path><path d="M57.24 56.4c5-7.08 4.75-10.71 2.84-16.46-.37-1.12-.91-2.56-1.4-3.67a96 96 0 0 0-5.2-10.15l-3.54-7.32a4 4 0 0 0-4-2.23 3.72 3.72 0 0 0-2.6 1.36 4.29 4.29 0 0 0-.49 4.61l4 8.31L24 15.42a4 4 0 0 0-5.52 1l-.05.06c-1.55 2.09-.06 4.44.18 4.74l-4.06-2.74-.42-.28a4 4 0 0 0-5.56 1 3.86 3.86 0 0 0-.1 4.12 4.1 4.1 0 0 0 1.25 1.35L13 27.54c-1.84-1.24-4.92-1.62-6.38.54A3.86 3.86 0 0 0 7.8 33.5l5.65 4.66c-1.9-1.29-4.4-1.34-5.6.7a3.79 3.79 0 0 0 1.28 5s18.1 13.05 23.78 16.56c6.15 3.8 8.78 4.25 13.83 3.69 4.27-.47 7-2.71 10.5-7.72" fill="#9f8214" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$2.0.0.0.1"></path><path d="M64.75 41.35c-.34-1.13-.83-2.57-1.29-3.68-1.46-3.59-8.23-17.6-8.23-17.6a4 4 0 0 0-3.92-2.32 3.72 3.72 0 0 0-2.79 1.49 4.29 4.29 0 0 0-.44 4.39l3.27 7.23a.33.33 0 0 1-.49.4L29.57 16a4 4 0 0 0-5.51.86l-.06.06a2.53 2.53 0 0 0-.65 2 2.13 2.13 0 0 0 1 1.67l.48.37L39.64 32a.53.53 0 0 1 .13.72.48.48 0 0 1-.41.2.54.54 0 0 1-.31-.11L22.64 20.63l-2.55-1.81-.34-.25a4.06 4.06 0 0 0-5.68.88 3.45 3.45 0 0 0-.16 3.79 17.84 17.84 0 0 0 2.3 2.17l2.1 1.59 18.37 13.18a.53.53 0 0 1 .13.72.48.48 0 0 1-.41.2.54.54 0 0 1-.3-.1L17.21 27.41a4 4 0 0 0-2.55-.72 3.49 3.49 0 0 0-2.72 1.45 3.83 3.83 0 0 0 1 5.42l5 3.7 14.18 10.12a.53.53 0 0 1 .13.72.48.48 0 0 1-.41.2.54.54 0 0 1-.31-.11l-14-10-.25-.19-.54-.37c-1.93-.94-3.73-.74-4.73 1s.38 4 1.1 4.51c0 0 18.53 14.21 24.09 17.86 6 3.95 8.62 4.45 13.64 4 4.25-.36 7-2.51 10.65-7.39 5.13-6.88 5.01-10.5 3.26-16.26z" fill="#ffd201" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$2.0.0.0.2"></path></svg></span><span id="reaction-label-text--applause-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" class="reaction-label" aria-label="Reaction type Clap," data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$2.0.1">Clap</span><span id="reaction-count-text--applause-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" class="reaction-count" aria-label="Total number of Claps 271" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$2.0.2">271</span><div class="reaction-focus-line" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$2.0.3"></div></button></li><li data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$3"><button class="gs-c-reaction reaction-button" aria-pressed="false" aria-labelledby="reaction-label-text--inspired-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures reaction-count-text--inspired-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$3.0"><span class="gel-icon reaction-icon reaction-icon-inspired" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$3.0.0"><svg data-name="Layer 1" viewbox="0 0 72 72" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$3.0.0.0"><circle cx="36" cy="36" r="30" fill="#ffd201" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$3.0.0.0.0"></circle><path d="M35.9 14.3a.82.82 0 0 1-.82-.82V9.7a.82.82 0 0 1 1.65 0v3.78a.82.82 0 0 1-.83.82zM61.42 36.51h-3.78a.82.82 0 0 1 0-1.65h3.78a.82.82 0 1 1 0 1.65zM14.16 36.51h-3.78a.82.82 0 1 1 0-1.65h3.78a.82.82 0 0 1 0 1.65zM51.28 20.67a.82.82 0 0 1-.58-1.4l2.67-2.67a.82.82 0 0 1 1.16 1.16l-2.67 2.67a.82.82 0 0 1-.58.24zM20.53 20.67a.82.82 0 0 1-.58-.24l-2.67-2.67a.82.82 0 1 1 1.16-1.16l2.67 2.67a.82.82 0 0 1-.58 1.4zM44 15.87a.82.82 0 0 1-.76-1.13l1.41-3.5a.82.82 0 0 1 1.53.61l-1.41 3.5a.82.82 0 0 1-.77.52zM59.57 46a.82.82 0 0 1-.31-.06l-3.5-1.41a.82.82 0 1 1 .62-1.53l3.5 1.41a.82.82 0 0 1-.31 1.59zM15.74 28.39a.82.82 0 0 1-.31-.06l-3.5-1.41a.82.82 0 0 1 .61-1.53L16 26.8a.82.82 0 0 1-.31 1.59zM55.91 28a.82.82 0 0 1-.32-1.58l3.48-1.48a.82.82 0 0 1 .64 1.51l-3.48 1.48a.82.82 0 0 1-.32.07zM12.43 46.51a.82.82 0 0 1-.32-1.58l3.48-1.48a.82.82 0 1 1 .63 1.55l-3.48 1.48a.82.82 0 0 1-.31.03zM27.39 16a.82.82 0 0 1-.76-.5l-1.48-3.48a.82.82 0 0 1 1.51-.64l1.48 3.48a.82.82 0 0 1-.75 1.14zM29.39 48.81c0-2.53-1.63-4.9-3.47-6.63a13.68 13.68 0 0 1 3.68-22.52c9.92-4.66 20.67 2.71 20.67 12.41a13.83 13.83 0 0 1-5.79 11.26 5 5 0 0 0-2.1 4.1v1.39a17 17 0 0 1-5.83 1.34 23.78 23.78 0 0 1-7.16-1.35z" fill="#fff" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$3.0.0.0.1"></path><path d="M29.42 48.71v4.8a8.05 8.05 0 0 0 2.33 1.09l.07.18a4.09 4.09 0 1 0 8.17 0v-.06a2.42 2.42 0 0 0 .11-.29 21.91 21.91 0 0 0 2.3-.79v-5.13s-4.92 3.49-12.98.2z" fill="#d3145b" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$3.0.0.0.2"></path></svg></span><span id="reaction-label-text--inspired-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" class="reaction-label" aria-label="Reaction type Got It!," data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$3.0.1">Got It!</span><span id="reaction-count-text--inspired-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" class="reaction-count" aria-label="Total number of Got Its 259" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$3.0.2">259</span><div class="reaction-focus-line" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$3.0.3"></div></button></li><li data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$4"><button class="gs-c-reaction reaction-button" aria-pressed="false" aria-labelledby="reaction-label-text--omd-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures reaction-count-text--omd-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$4.0"><span class="gel-icon reaction-icon reaction-icon-omd" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$4.0.0"><svg data-name="Layer 1" viewbox="0 0 72 72" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$4.0.0.0"><circle cx="35.91" cy="35.72" r="30" fill="#ffd201" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$4.0.0.0.0"></circle><ellipse cx="25.73" cy="29.22" rx="3.85" ry="4.98" fill="#2b2b2b" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$4.0.0.0.1"></ellipse><ellipse cx="46.27" cy="29.22" rx="3.85" ry="4.98" fill="#2b2b2b" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$4.0.0.0.2"></ellipse><path d="M13.57 26.32v-.1c0-.37.06-.73.11-1.1s.17-.72.27-1.08.26-.71.41-1a10.55 10.55 0 0 1 .54-1 9.46 9.46 0 0 1 .65-.93 9.27 9.27 0 0 1 .75-.86 9.86 9.86 0 0 1 .84-.77A11.39 11.39 0 0 1 19 18.14a9.62 9.62 0 0 1 1-.49 9 9 0 0 1 1.06-.38 11.43 11.43 0 0 1 2.19-.45c.37 0 .74-.07 1.11-.07s.74 0 1.11.05.73.1 1.09.18c-.35.14-.69.25-1 .35l-1 .35c-.33.1-.66.24-1 .36s-.64.26-1 .39-.62.28-.93.42-.6.3-.9.45-.58.32-.87.49a9.58 9.58 0 0 0-.84.53 9.62 9.62 0 0 0-.81.57c-.28.18-.51.41-.77.62s-.48.45-.74.66-.46.48-.7.71-.44.51-.67.76-.42.54-.63.81-.39.57-.6.86-.37.6-.59.91zM58.27 26.32v-.1c-.21-.31-.4-.61-.59-.91s-.4-.58-.6-.86-.41-.55-.63-.81-.43-.52-.67-.76-.45-.49-.7-.71-.47-.47-.74-.66-.5-.43-.77-.62a9.61 9.61 0 0 0-.81-.57 9.58 9.58 0 0 0-.84-.53c-.28-.17-.57-.34-.87-.49s-.59-.32-.9-.45-.61-.3-.93-.42-.63-.28-1-.39-.64-.26-1-.36l-1-.35c-.34-.11-.69-.22-1-.35.36-.08.72-.13 1.09-.18s.73 0 1.11-.05.74 0 1.11.07a11.43 11.43 0 0 1 2.19.45 9 9 0 0 1 1.06.38 9.62 9.62 0 0 1 1 .49 11.39 11.39 0 0 1 1.89 1.27 9.86 9.86 0 0 1 .84.77 9.28 9.28 0 0 1 .75.86A9.45 9.45 0 0 1 57 22a10.54 10.54 0 0 1 .54 1c.16.34.28.7.41 1s.19.73.27 1.08.09.74.11 1.1z" fill="#9f8214" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$4.0.0.0.3"></path><path d="M35.55 56.89a14.47 14.47 0 0 1-14.42-14.53 29 29 0 0 1 14.54-4.26h.66a29 29 0 0 1 14.54 4.26 14.47 14.47 0 0 1-14.42 14.53z" fill="#2b2b2b" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$4.0.0.0.4"></path><path d="M28.43 55a14.31 14.31 0 0 0 7.11 2h.91a14.31 14.31 0 0 0 7.11-2A9 9 0 0 0 36 51.41 9 9 0 0 0 28.43 55z" fill="#e63f23" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$4.0.0.0.5"></path></svg></span><span id="reaction-label-text--omd-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" class="reaction-label" aria-label="Reaction type Wow," data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$4.0.1">Wow</span><span id="reaction-count-text--omd-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" class="reaction-count" aria-label="Total number of Wows 315" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$4.0.2">315</span><div class="reaction-focus-line" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$4.0.3"></div></button></li><li data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$5"><button class="gs-c-reaction reaction-button" aria-pressed="false" aria-labelledby="reaction-label-text--sad-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures reaction-count-text--sad-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$5.0"><span class="gel-icon reaction-icon reaction-icon-sad" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$5.0.0"><svg data-name="Layer 1" viewbox="0 0 72 72" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$5.0.0.0"><circle cx="36" cy="36" r="30" transform="rotate(-5.1 35.96834013 36.0247667)" fill="#ffd201" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$5.0.0.0.0"></circle><path d="M15 40.42c1.16-2.66 8.18-5.59 8.18-5.59s2.59 7.17 1.42 9.79a5.26 5.26 0 0 1-9.6-4.2z" fill="#269dc8" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$5.0.0.0.1"></path><path d="M25.81 53.82a1 1 0 0 1-.81-1.55A14.14 14.14 0 0 1 36.35 46a14.1 14.1 0 0 1 11.16 6A1 1 0 1 1 46 53.2a12 12 0 0 0-9.65-5.2 12.22 12.22 0 0 0-9.76 5.44 1 1 0 0 1-.78.38zM26.26 36A6.91 6.91 0 0 1 20 32.2a1.17 1.17 0 1 1 2.1-1 4.6 4.6 0 0 0 8.23 0 1.17 1.17 0 1 1 2.09 1.05A6.91 6.91 0 0 1 26.26 36zM45.36 36a6.91 6.91 0 0 1-6.21-3.84 1.17 1.17 0 1 1 2.1-1 4.6 4.6 0 0 0 8.23 0 1.17 1.17 0 1 1 2.09 1.05A6.91 6.91 0 0 1 45.36 36z" fill="#2b2b2b" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$5.0.0.0.2"></path></svg></span><span id="reaction-label-text--sad-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" class="reaction-label" aria-label="Reaction type Sad," data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$5.0.1">Sad</span><span id="reaction-count-text--sad-childrens-reactions-urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures" class="reaction-count" aria-label="Total number of Sads 386" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$5.0.2">386</span><div class="reaction-focus-line" data-reactid=".ifa4g79jwy.0.0.0.1.0.0.0.$5.0.3"></div></button></li></div></ul><div class="reactions-tray__reactive-prompt" data-reactid=".ifa4g79jwy.0.0.0.1.0.1">Press and hold for more...</div></div></div><button class="reactions-cta" aria-pressed="false" aria-label="Reactions. Show Reactions. Total number of reactions: 2283" data-reactid=".ifa4g79jwy.0.0.0.4"><div class="reactions-cta-image" data-reactid=".ifa4g79jwy.0.0.0.4.0"><span data-reactid=".ifa4g79jwy.0.0.0.4.0.0"><span class="cta-icon cta-cbeebies-icon" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0"><svg viewbox="0 0 76 68" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0"><defs data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.0"><clippath id="a" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.0.0"><path d="M16.26 38.31a9.6 9.6 0 0 1-6.72-11.8 19.21 19.21 0 0 1 10-.22l.42.11a19.21 19.21 0 0 1 8.57 5.24 9.6 9.6 0 0 1-11.74 6.82z" fill="#2b2b2b" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.0.0.0"></path></clippath></defs><circle cx="20.16" cy="25.01" r="19.9" transform="rotate(-80 20.16 25.01)" fill="#efc203" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.1"></circle><ellipse cx="14.75" cy="18.89" rx="3.3" ry="2.55" transform="rotate(-74.9 14.757 18.895)" fill="#2b2b2b" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.2"></ellipse><ellipse cx="27.9" cy="22.44" rx="3.3" ry="2.55" transform="rotate(-74.9 27.908 22.442)" fill="#2b2b2b" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.3"></ellipse><path d="M7.46 14.93v-.07c.08-.23.16-.46.26-.69s.23-.43.36-.65.29-.41.45-.6a7 7 0 0 1 .52-.55 6.27 6.27 0 0 1 .58-.48 6.15 6.15 0 0 1 .63-.42 6.54 6.54 0 0 1 .67-.35 7.55 7.55 0 0 1 1.43-.48 6.38 6.38 0 0 1 .74-.13 6 6 0 0 1 .75-.06 6 6 0 0 1 .75 0 6 6 0 0 1 .74.08c.24.05.49.08.72.15s.47.13.7.22.45.19.67.3h-.72l-.7.05c-.23 0-.46 0-.69.06s-.45.06-.68.08-.44.07-.66.11-.44.09-.65.13-.43.1-.64.16a6.35 6.35 0 0 0-.63.19 6.38 6.38 0 0 0-.62.23c-.21.07-.4.17-.6.26s-.39.2-.59.3-.38.23-.57.33-.37.25-.56.37-.36.27-.54.41L8 14.4c-.17.16-.34.32-.53.48zM36.09 22.66v-.07c-.08-.23-.15-.46-.22-.68s-.15-.44-.24-.65-.17-.42-.27-.63-.19-.41-.3-.6-.2-.39-.33-.58-.22-.38-.36-.55-.24-.36-.39-.53a6.38 6.38 0 0 0-.42-.51 6.35 6.35 0 0 0-.45-.48c-.15-.16-.3-.32-.47-.46s-.32-.3-.5-.44-.34-.3-.52-.43-.35-.29-.54-.41-.37-.28-.56-.4l-.58-.4c-.2-.13-.4-.26-.6-.4.24 0 .49 0 .73.07s.48.11.72.16.46.16.7.23a7.58 7.58 0 0 1 1.33.67 6 6 0 0 1 .62.43 6.38 6.38 0 0 1 .57.49 7.55 7.55 0 0 1 1 1.14 6.54 6.54 0 0 1 .41.64 6.15 6.15 0 0 1 .33.68 6.27 6.27 0 0 1 .26.71 7 7 0 0 1 .17.73c0 .25.06.5.08.74s0 .5 0 .74-.07.49-.12.73z" fill="#9f8214" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.4"></path><path d="M16.26 38.31a9.6 9.6 0 0 1-6.72-11.8 19.21 19.21 0 0 1 10-.22l.42.11a19.21 19.21 0 0 1 8.57 5.24 9.6 9.6 0 0 1-11.74 6.82z" fill="#2b2b2b" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.5"></path><g clip-path="url(#a)" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.6"><ellipse cx="16.36" cy="39.1" rx="4.41" ry="5.64" transform="rotate(-74.9 16.361 39.1)" fill="#e63f23" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.6.0"></ellipse></g><path d="M50.54 34.94A20.35 20.35 0 0 1 40 26.27c-.66-1.16-3.36-5.85-1.47-11.16a9.34 9.34 0 0 1 4-4.83 9.8 9.8 0 0 1 10.63 0 9.8 9.8 0 0 1 5.47-9.12 9.34 9.34 0 0 1 6.21-1c5.53 1.1 8.16 5.83 8.82 7a20.35 20.35 0 0 1 2 13.47c-1.25 7.19-8.81 13.81-8.81 13.81s-9.5 3.12-16.31.5z" fill="#e63f23" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.7"></path><path d="M42 15.34c-.79 1.44-.56 3.07.5 3.63s2.56-.15 3.34-1.6.56-3.07-.5-3.63-2.51.15-3.34 1.6z" fill="#ee7966" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.8"></path><circle cx="42.08" cy="45.81" r="22.09" transform="matrix(.17 -.98 .98 .17 -10.35 79.3)" fill="#ffd201" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.9"></circle><path d="M55.66 49a14.07 14.07 0 0 1-27.69-5" fill="#2b2b2b" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.a"></path><path d="M32.21 56.72a8.24 8.24 0 0 1 15 2.7" fill="#a75916" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.b"></path><path d="M40.6 53.07a8.26 8.26 0 0 0-8.42 3.68 14.13 14.13 0 0 0 7.1 3.57 13.8 13.8 0 0 0 7.91-.87 8.15 8.15 0 0 0-6.59-6.38z" fill="#e63f23" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.c"></path><path d="M53.22 43.65l-7.29-4.21a.94.94 0 0 1 .31-1.73l8.26-1.39a.7.7 0 0 1 .27 1.38l-6 1.37 5.13 3.43a.67.67 0 0 1-.71 1.15zM33.35 32.47l7.29 4.21a.94.94 0 0 1-.31 1.73l-8.27 1.39a.7.7 0 0 1-.27-1.38l6-1.37-5.13-3.43a.67.67 0 0 1 .71-1.15z" fill="#2b2b2b" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.0.0.d"></path></svg></span><span class="reactions-count-container" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.1"><span class="reactions-count-container__count-text" data-reactid=".ifa4g79jwy.0.0.0.4.0.0.1.0">2283</span></span></span><div class="cta-arrow-icon" data-reactid=".ifa4g79jwy.0.0.0.4.0.1"><svg height="15" width="20" viewbox="0 0 20 15" data-reactid=".ifa4g79jwy.0.0.0.4.0.1.0"><path fill="#db63d9" d="M18.5 4.7l-2.8-2.9L10 7.5 4.3 1.8 1.5 4.7l8.5 8.5z" data-reactid=".ifa4g79jwy.0.0.0.4.0.1.0.0"></path></svg></div></div></button></div></div></div></div></div></div> <div class="button-list-container button-list-container--above-description"> <ul class="button-list"><!-- --></ul> </div> <div class="content-item-description__text-container"> <a class="content-item-description__brand-link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" title="Andy's Safari Adventures" data-stats-interaction="show_oj" data-stats-interaction-variant="text_link"> <span class="content-item-description__brand-name">All Andy&#x27;s Safari Adventures</span> <span class="gelicon gelicon--next"></span> </a> <h1 class="content-item-description__heading"><span class="vh">Andy&#x27;s Safari Adventures - </span>Andy&#x27;s Safari Make A Picture </h1> <p class="content-item-description__description">Get creative and join Andy to make your own super safari inspired pictures! </p> </div> </div> <div class="button-list-container button-list-container--below-description"> <ul class="button-list"><!-- --></ul> </div> </div> </div> <section class="content-item__section content-page__section--brand-onward-journey-footer brand-onward-journey--top"> <div class="brand-journey-card"> <div class="brand-journey-card__inner"> <div class="brand-journey-card__body-container"> <div class="brand-journey-card__title-container"> <a class="brand-journey-card__title-link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"> <h3 class="brand-journey-card__title">Andy&#x27;s Safari Adventures</h3> </a> </div> <div class="brand-journey-card__image-container"> <a class="brand-journey-card__image-link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"> <span class="responsive-img responsive-img--5x6 brand-journey-card__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/AndysSafariAdventures_Brand-Page-(v4)onward_journey_image.png" data-alt="Andy's Safari Adventures"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/AndysSafariAdventures_Brand-Page-(v4)onward_journey_image.png" alt="Andy's Safari Adventures"/> </noscript> </span> </a> </div> <div class="brand-journey-card__button-container"> <div class="brand-journey-card__button button button--immersive "><!-- --><a class="button__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"><!-- --><span class="button__inner"> <span class="button__text">View all</span> <i class="brand-journey-card__chevron button__icon-pre gelicon gelicon--next" aria-hidden="true"></i> </span><!-- --></a><!-- --><!-- --></div> </div> </div> </div> </div> </section> <div class="content-item__section content-item__section--collection-oj"> <div class="content-item__section-content"> <div data-carousel class="carousel carousel--with-title carousel--carousel-at-mobile " data-carousel-at-mobile="true" data-carousel-changes-in-place="false" data-carousel-disable-selected-item="true"> <div class="carousel__title-container"> <a class="carousel__title-link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/curations/exciting-wildlife-adventures-and-dinosaur-fun" data-stats-interaction="collection" data-stats-interaction-variant="text_link"> <h3 class="carousel__title" aria-label="Exciting wildlife adventures and dinosaur fun collection">Exciting wildlife adventures and dinosaur fun</h3> </a> </div> <div class="carousel__controls"> <div class="carousel__button carousel__button--prev button button--prev button--immersive "><!-- --><a class="button__link"><!-- --><span class="button__inner"> <span class="vh">previous items</span> <i class="gelicon gelicon--previous" aria-hidden="true"></i> </span><!-- --></a><!-- --><!-- --></div><div class="carousel__button carousel__button--next button button--next button--immersive "><!-- --><a class="button__link"><!-- --><span class="button__inner"> <span class="vh">next items</span> <i class="gelicon gelicon--next" aria-hidden="true"></i> </span><!-- --></a><!-- --><!-- --></div> </div> <div class="carousel__curtain carousel__curtain--right"></div> <div class="carousel__window"><!-- --><div class="carousel__panel"> <ul class="carousel__list"><!-- --><li class="carousel__item carousel__item--selected"> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/makes/andys-safari-adventures-make-a-picture?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card-disabled" data-stats-interaction-position="0" data-stats-interaction-action="button" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/Andys_Safari_MAP_Content_Card.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/Andys_Safari_MAP_Content_Card.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Andy's Safari Make A Picture "> Andy&#x27;s Safari Make A Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/makes/presenters-dinosaur-feet?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="1" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/cbeebies-presenters-img-makes-dino-dino_feet_432_243.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/cbeebies-presenters-img-makes-dino-dino_feet_432_243.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Dinosaur Feet"> Dinosaur Feet </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/makes/cbeebies-house-andys-gizmo-make?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="2" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/cbeebies-house-andys-gizmo-make.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/cbeebies-house-andys-gizmo-make.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Make Andy's Gizmo "> Make Andy&#x27;s Gizmo </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/makes/presenters-dinosaur-tail?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="3" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/cbeebies-presenters-img-makes-dino_tail_432_243.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/cbeebies-presenters-img-makes-dino_tail_432_243.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Dinosaur Tail"> Dinosaur Tail </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/puzzles/lets-go-club-dino-quiz?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--puzzles content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="4" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="puzzles"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/tlgc-dinosaur-quiz-hero2.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/tlgc-dinosaur-quiz-hero2.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--puzzles"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="What dinosaur are you?"> What dinosaur are you? </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/watch/andys-dinosaur-adventures-triceratops-facts?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--watch content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="5" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="watch"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/cbeebies-andysdinosauradventures-img-watch-ada_facts_triceratops_1024_576.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/cbeebies-andysdinosauradventures-img-watch-ada_facts_triceratops_1024_576.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--watch"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Triceratops Facts"> Triceratops Facts </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/watch/andys-dinosaur-adventures-theme-song?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--watch content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="6" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="watch"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/cbeebies-andysdinosauradventures-img-watch-theme_song_432_243.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/cbeebies-andysdinosauradventures-img-watch-theme_song_432_243.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--watch"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Andy's Dinosaur Adventures Theme Song"> Andy&#x27;s Dinosaur Adventures Theme Song </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/games/andys-dinosaur-adventures-game?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--games content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="7" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="games"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/cbeebies-andysdinosauradventures-img-game-andys_dino_adventure_432_243.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/cbeebies-andysdinosauradventures-img-game-andys_dino_adventure_432_243.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--games"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Andy's Dinosaur Adventures Game"> Andy&#x27;s Dinosaur Adventures Game </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/puzzles/andys-baby-animals-jigsaw?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--puzzles content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="8" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="puzzles"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/andys-baby-animals-jigsaw-1024.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/andys-baby-animals-jigsaw-1024.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--puzzles"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Andy's Baby Animals Jigsaw"> Andy&#x27;s Baby Animals Jigsaw </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/puzzles/dinosaur-quiz?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--puzzles content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="9" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="puzzles"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/dino_quiz_1024_576.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/dino_quiz_1024_576.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--puzzles"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Andy's Dinosaur Quiz"> Andy&#x27;s Dinosaur Quiz </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/puzzles/andys-secret-hideout-quiz-three?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--puzzles content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="10" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="puzzles"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/ADV_Quiz_3_content_card.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/ADV_Quiz_3_content_card.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--puzzles"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Andy's Secret Hideout: Quiz 3"> Andy&#x27;s Secret Hideout: Quiz 3 </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/puzzles/andys-secret-hideout-animal-quiz?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--puzzles content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="11" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="puzzles"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/andys-animal-quiz-hero.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/andys-animal-quiz-hero.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--puzzles"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Andy's Animal Quiz 5"> Andy&#x27;s Animal Quiz 5 </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/puzzles/andys-safari-adventures-jigsaw?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--puzzles content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="12" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="puzzles"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/andys-safari-adventures-jigsaw-cc.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/andys-safari-adventures-jigsaw-cc.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--puzzles"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Andy's Safari Adventures Jigsaw"> Andy&#x27;s Safari Adventures Jigsaw </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --></ul> </div><!-- --></div> </div> </div> </div> <section class="content-item__section content-page__section--brand-onward-journey-footer brand-onward-journey--bottom"> <div class="brand-journey-card"> <div class="brand-journey-card__inner"> <div class="brand-journey-card__body-container"> <div class="brand-journey-card__title-container"> <a class="brand-journey-card__title-link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"> <h3 class="brand-journey-card__title">Andy&#x27;s Safari Adventures</h3> </a> </div> <div class="brand-journey-card__image-container"> <a class="brand-journey-card__image-link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"> <span class="responsive-img responsive-img--5x6 brand-journey-card__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/AndysSafariAdventures_Brand-Page-(v4)onward_journey_image.png" data-alt="Andy's Safari Adventures"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/AndysSafariAdventures_Brand-Page-(v4)onward_journey_image.png" alt="Andy's Safari Adventures"/> </noscript> </span> </a> </div> <div class="brand-journey-card__button-container"> <div class="brand-journey-card__button button button--immersive "><!-- --><a class="button__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"><!-- --><span class="button__inner"> <span class="button__text">View all</span> <i class="brand-journey-card__chevron button__icon-pre gelicon gelicon--next" aria-hidden="true"></i> </span><!-- --></a><!-- --><!-- --></div> </div> </div> </div> </div> </section> </div> </section> <script> require(['jquery-1'], function ($) { var cover = $('.childrens-wrapper__cover'); var secondContentItemSection = $('.content-item__section').eq(1); function updateCoverHeight() { var height = secondContentItemSection.offset().top - cover.offset().top; if (height > 250) { cover.height(height); } } if (cover.length && secondContentItemSection.length) { updateCoverHeight(); var timer = null; $(window).on('orientationchange', updateCoverHeight); $(window).resize(function () { if (timer) { clearTimeout(timer); } timer = setTimeout(updateCoverHeight, 150); }); } var menuToggleButton = $('.menu__toggle'); menuToggleButton.click(function () { window.setTimeout(updateCoverHeight, 100); }); }); </script> <section class="onward-journeys content-page__section content-page__section--content-cards"> <div class="onward-journey__cards"> <ul class="content-list"> <li class="content-list__item" data-follows-panel-item data-resource-id=""> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/games/andys-safari-sounds-game" class="content-card content-card--games content-card--styled content-card--animated" data-stats-interaction="oj" data-stats-interaction-variant="content_card" data-stats-interaction-position="0" data-site-section="games"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/andys-safari-sounds-index02.jpg" data-alt="Andy's Safari Adventures - Andy's Safari Sounds"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/andys-safari-sounds-index02.jpg" alt="Andy's Safari Adventures - Andy's Safari Sounds"/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--games"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Andy's Safari Sounds"> Andy&#x27;s Safari Sounds </p> <div class="content-card__details"> <p class="content-card__subtitle " aria-label="from Andy's Safari Adventures">Andy&#x27;s Safari Adventures</p> <ul class="content-card__counts"><!-- --><li class="content-card__count content-card__count--reactions"> <i class="gelicon gelicon--smiley content-card__count-icon" aria-hidden="true"></i> <span class="content-card__reaction-count"> <span class="content-card__count-description">Number of Loves, LOLs and other reactions </span> <span class="content-card__count-number">16371</span> </span> </li><!-- --></ul> </div> </div> </a> </li><li class="content-list__item" data-follows-panel-item data-resource-id=""> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/makes/aksaras-sri-lankan-fish-curry" class="content-card content-card--makes content-card--styled content-card--animated" data-stats-interaction="oj" data-stats-interaction-variant="content_card" data-stats-interaction-position="1" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/Aksaras-Sri-Lankan-Fish-Curry.jpg" data-alt="My World Kitchen - Aksara’s Sri Lankan Fish Curry"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/Aksaras-Sri-Lankan-Fish-Curry.jpg" alt="My World Kitchen - Aksara’s Sri Lankan Fish Curry"/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Aksara’s Sri Lankan Fish Curry"> Aksara’s Sri Lankan Fish Curry </p> <div class="content-card__details"> <p class="content-card__subtitle " aria-label="from My World Kitchen">My World Kitchen</p> <ul class="content-card__counts"><!-- --><li class="content-card__count content-card__count--reactions"> <i class="gelicon gelicon--smiley content-card__count-icon" aria-hidden="true"></i> <span class="content-card__reaction-count"> <span class="content-card__count-description">Number of Loves, LOLs and other reactions </span> <span class="content-card__count-number">72</span> </span> </li><!-- --></ul> </div> </div> </a> </li><li class="content-list__item" data-follows-panel-item data-resource-id=""> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/puzzles/wheres-andy" class="content-card content-card--puzzles content-card--styled content-card--animated" data-stats-interaction="oj" data-stats-interaction-variant="content_card" data-stats-interaction-position="2" data-site-section="puzzles"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/wheres-andy-cc.jpg" data-alt="Andy's Safari Adventures - Where's Andy?"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/wheres-andy-cc.jpg" alt="Andy's Safari Adventures - Where's Andy?"/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--puzzles"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Where's Andy?"> Where&#x27;s Andy? </p> <div class="content-card__details"> <p class="content-card__subtitle " aria-label="from Andy's Safari Adventures">Andy&#x27;s Safari Adventures</p> <ul class="content-card__counts"><!-- --><li class="content-card__count content-card__count--reactions"> <i class="gelicon gelicon--smiley content-card__count-icon" aria-hidden="true"></i> <span class="content-card__reaction-count"> <span class="content-card__count-description">Number of Loves, LOLs and other reactions </span> <span class="content-card__count-number">325</span> </span> </li><!-- --></ul> </div> </div> </a> </li> </ul> </div> </section> <script> require(['jquery-1', 'stats/stats', 'domReady!'], function ($, stats, domReady) { stats.recordEvent({ action_name: 'web_oj', action_type: 'view' }, $('.childrens-wrapper'), window.location.pathname); }); </script> <section class="content-page__section content-page__section--brandcards"> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" class="brandcard" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"><!-- --><div class="brandcard__inner"><!-- --><div class="brandcard__image-container"> <div class="brandcard__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/AndysSafariAdventures_Brand-Page-(v4)onward_journey_image.png" data-alt="Andy's Safari Adventures"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/AndysSafariAdventures_Brand-Page-(v4)onward_journey_image.png" alt="Andy's Safari Adventures"/> </noscript> </span> </div> </div><!-- --><div class="brandcard__text"> <span class="brandcard__text-inner"> <span class="brandcard__brand-prefix">All</span> <span class="brandcard__brand-name-container"> <span class="brandcard__brand-name">Andy&#x27;s Safari Adventures <span class="brandcard__link-icon gelicon gelicon--next"></span></span> </span> </span> </div><!-- --></div><!-- --></a> </section> </div><!-- --><div class="content-page__column content-page__column--side"> <section class="content-page__section--brand-onward-journey brand-onward-journey--top"> <div class="brand-journey-card"> <div class="brand-journey-card__inner"> <div class="brand-journey-card__body-container"> <div class="brand-journey-card__title-container"> <a class="brand-journey-card__title-link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"> <h3 class="brand-journey-card__title">Andy&#x27;s Safari Adventures</h3> </a> </div> <div class="brand-journey-card__image-container"> <a class="brand-journey-card__image-link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"> <span class="responsive-img responsive-img--5x6 brand-journey-card__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/AndysSafariAdventures_Brand-Page-(v4)onward_journey_image.png" data-alt="Andy's Safari Adventures"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/AndysSafariAdventures_Brand-Page-(v4)onward_journey_image.png" alt="Andy's Safari Adventures"/> </noscript> </span> </a> </div> <div class="brand-journey-card__button-container"> <div class="brand-journey-card__button button button--immersive "><!-- --><a class="button__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"><!-- --><span class="button__inner"> <span class="button__text">View all</span> <i class="brand-journey-card__chevron button__icon-pre gelicon gelicon--next" aria-hidden="true"></i> </span><!-- --></a><!-- --><!-- --></div> </div> </div> </div> </div> </section> <div class="collection-list"> <div class="collection-list__title-container"> <a class="collection-list__title-link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/curations/exciting-wildlife-adventures-and-dinosaur-fun" data-stats-interaction="collection" data-stats-interaction-variant="text_link"> <h3 class="collection-list__title" aria-label="Exciting wildlife adventures and dinosaur fun collection">Exciting wildlife adventures and dinosaur fun</h3> </a> </div> <ul class="collection-list__items"> <li class="collection-list__item"> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/makes/presenters-dinosaur-feet?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="0" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/cbeebies-presenters-img-makes-dino-dino_feet_432_243.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/cbeebies-presenters-img-makes-dino-dino_feet_432_243.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Dinosaur Feet"> Dinosaur Feet </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><li class="collection-list__item"> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/makes/cbeebies-house-andys-gizmo-make?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="1" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/cbeebies-house-andys-gizmo-make.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/cbeebies-house-andys-gizmo-make.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Make Andy's Gizmo "> Make Andy&#x27;s Gizmo </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><li class="collection-list__item"> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/makes/presenters-dinosaur-tail?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="2" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/cbeebies-presenters-img-makes-dino_tail_432_243.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/cbeebies-presenters-img-makes-dino_tail_432_243.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Dinosaur Tail"> Dinosaur Tail </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><li class="collection-list__item"> <a href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/puzzles/lets-go-club-dino-quiz?collection=exciting-wildlife-adventures-and-dinosaur-fun" class="content-card content-card--puzzles content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="3" data-stats-internal-link-location="exciting-wildlife-adventures-and-dinosaur-fun" data-site-section="puzzles"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/tlgc-dinosaur-quiz-hero2.jpg"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/tlgc-dinosaur-quiz-hero2.jpg" alt=""/> </noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--puzzles"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="What dinosaur are you?"> What dinosaur are you? </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li> </ul> <div class="collection-list__button button button--immersive "><!-- --><a class="button__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/curations/exciting-wildlife-adventures-and-dinosaur-fun" data-stats-interaction="collection" data-stats-interaction-variant="button"><!-- --><span class="button__inner"> <span class="button__text">View collection</span> <i class="collection-list__chevron button__icon-pre gelicon gelicon--next" aria-hidden="true"></i> </span><!-- --></a><!-- --><!-- --></div> </div> <section class="content-page__section--brand-onward-journey brand-onward-journey--bottom"> <div class="brand-journey-card"> <div class="brand-journey-card__inner"> <div class="brand-journey-card__body-container"> <div class="brand-journey-card__title-container"> <a class="brand-journey-card__title-link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"> <h3 class="brand-journey-card__title">Andy&#x27;s Safari Adventures</h3> </a> </div> <div class="brand-journey-card__image-container"> <a class="brand-journey-card__image-link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"> <span class="responsive-img responsive-img--5x6 brand-journey-card__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/AndysSafariAdventures_Brand-Page-(v4)onward_journey_image.png" data-alt="Andy's Safari Adventures"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/AndysSafariAdventures_Brand-Page-(v4)onward_journey_image.png" alt="Andy's Safari Adventures"/> </noscript> </span> </a> </div> <div class="brand-journey-card__button-container"> <div class="brand-journey-card__button button button--immersive "><!-- --><a class="button__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"><!-- --><span class="button__inner"> <span class="button__text">View all</span> <i class="brand-journey-card__chevron button__icon-pre gelicon gelicon--next" aria-hidden="true"></i> </span><!-- --></a><!-- --><!-- --></div> </div> </div> </div> </div> </section> </div> </div> </div> <section class="brand-shelf-section"> <p class="brand-shelf__title window window--extra-wide grid-container" hidden></p> <div class="brand-shelf-container window window--extra-wide"> <div id="brand-shelf" data-simple-carousel class="brand-shelf simple-carousel"> <div class="brand-shelf__main"> <div class="simple-carousel__controls"> <div class="brand-shelf__curtain brand-shelf__curtain--left"></div> <div class="brand-shelf__curtain brand-shelf__curtain--right"></div> <button class="brand-shelf__button brand-shelf__button--prev simple-carousel__button--prev"> <span class="vh">Previous items</span> <i class="gelicon gelicon--previous" aria-hidden="true"></i> </button> <button class="brand-shelf__button brand-shelf__button--next simple-carousel__button--next"> <span class="vh">Next items</span> <i class="gelicon gelicon--next" aria-hidden="true"></i> </button> </div> <div class="simple-carousel__window brand-shelf__window"> <div class="simple-carousel__panel"> <ul class="brand-shelf__list"><!-- --><li class="simple-carousel__item brand-shelf__item"> <a class="brand-shelf__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/waffle-the-wonder-dog" data-stats-interaction="brand_shelf" data-stats-interaction-variant="show" data-stats-interaction-position="0"> <span class="responsive-img responsive-img--5x6 brand-shelf__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/waffle-the-wonder-dog-brand-egg-v2.png" data-alt="Waffle the Wonder Dog"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/waffle-the-wonder-dog-brand-egg-v2.png" alt="Waffle the Wonder Dog"/> </noscript> </span> </a> </li><!-- --><li class="simple-carousel__item brand-shelf__item"> <a class="brand-shelf__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/hey-duggee" data-stats-interaction="brand_shelf" data-stats-interaction-variant="show" data-stats-interaction-position="1"> <span class="responsive-img responsive-img--5x6 brand-shelf__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/hey_duggee_brand_shelf.png" data-alt="Hey Duggee."></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/hey_duggee_brand_shelf.png" alt="Hey Duggee."/> </noscript> </span> </a> </li><!-- --><li class="simple-carousel__item brand-shelf__item"> <a class="brand-shelf__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/peter-rabbit" data-stats-interaction="brand_shelf" data-stats-interaction-variant="show" data-stats-interaction-position="2"> <span class="responsive-img responsive-img--5x6 brand-shelf__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/peter-rabbit-brand-shelf.png"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/peter-rabbit-brand-shelf.png" alt=""/> </noscript> </span> </a> </li><!-- --><li class="simple-carousel__item brand-shelf__item"> <a class="brand-shelf__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/swashbuckle-online" data-stats-interaction="brand_shelf" data-stats-interaction-variant="show" data-stats-interaction-position="3"> <span class="responsive-img responsive-img--5x6 brand-shelf__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/swashbuckle-brandshelf-egg-2019.png" data-alt="Cook, Gem and Line from CBeebies Swashbuckle holding pirate treasure. "></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/swashbuckle-brandshelf-egg-2019.png" alt="Cook, Gem and Line from CBeebies Swashbuckle holding pirate treasure. "/> </noscript> </span> </a> </li><!-- --><li class="simple-carousel__item brand-shelf__item"> <a class="brand-shelf__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/bing" data-stats-interaction="brand_shelf" data-stats-interaction-variant="show" data-stats-interaction-position="4"> <span class="responsive-img responsive-img--5x6 brand-shelf__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/bing_az_image_bid.png" data-alt="Bing and Flop. "></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/bing_az_image_bid.png" alt="Bing and Flop. "/> </noscript> </span> </a> </li><!-- --><li class="simple-carousel__item brand-shelf__item"> <a class="brand-shelf__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows/andys-safari-adventures" data-stats-interaction="brand_shelf" data-stats-interaction-variant="show" data-stats-interaction-position="5"> <span class="responsive-img responsive-img--5x6 brand-shelf__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/andy-prehistoric-adventure-brand.png"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/andy-prehistoric-adventure-brand.png" alt=""/> </noscript> </span> </a> </li><!-- --></ul> </div> </div> </div> </div> <div class="brand-shelf__all-shows-link button button--center button--shows "><!-- --><a class="button__link" href="/web/20191108214155/https://www.bbc.co.uk/cbeebies/shows" data-stats-interaction="brand_shelf" data-stats-interaction-variant="all_shows"><!-- --><span class="button__inner"> <span class="button__text">All shows</span> <i class="button__icon-gel gelicon gelicon--next gelicon--trailing" aria-hidden="true"></i> </span><!-- --></a><!-- --><!-- --></div> </div> </section> <section class="channel-banner-section" data-channel-banner data-channel-banner-enable-close-persist="true" data-ng-class="{'channel-banner-section--hide' : isChannelBannerHidden}"> <script> (function () { var cookieCheckingEnabled = true; var channelBannerSection = document.querySelector(".channel-banner-section"); function hideChannelBannerIfCookieIsSet() { var channelBannerCookieName = 'ckps_cbeebies_channel_banner_hidden'; var hideCookieIsSet = document.cookie.indexOf(" " + channelBannerCookieName + "=true") > 0; if (hideCookieIsSet) { channelBannerSection.className += ' channel-banner-section--hide'; } } function showCloseButtonIfCookiesAreAllowed() { var cookiePolicy = window.bbccookies.readPolicy(); var personalisationAllowed = cookiePolicy.personalisation; if (personalisationAllowed) { showCloseButton(); } } function showCloseButton() { channelBannerSection.className += ' channel-banner-section--show-close'; } if (cookieCheckingEnabled) { hideChannelBannerIfCookieIsSet(); showCloseButtonIfCookiesAreAllowed(); } else { showCloseButton(); } })() </script> <div class="channel-banner-section__inner window window--extra-wide"> <div class="channel-banner"> <div class="channel-banner__inner"> <div class="channel-banner__title-bar"> <a class="channel-banner__logo" href="/web/20191108214155/https://www.bbc.co.uk/cbbc" data-istats-click="cross_channel_logo" data-stats-interaction="channel_banner" data-stats-interaction-variant="logo"> <img class="channel-banner__logo-image" alt="CBBC logo" src="https://web.archive.org/web/20191108214155im_/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/images/channel-banner/logo.png"/> </a> <span class="channel-banner__title">Are you ready to try CBBC?</span> </div> <div class="channel-banner__main"> <ul class="channel-banner__list"> <li class="channel-banner__list-item"> <a class="channel-banner__link channel-banner-link" href="/web/20191108214155/https://www.bbc.co.uk/cbbc/shows/the-deep" data-stats-interaction="channel_banner" data-stats-interaction-variant="show" data-stats-interaction-position="0"> <span class="channel-banner-link__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/the-deep-crossover-panel-v2.png"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/the-deep-crossover-panel-v2.png" alt=""/> </noscript> </span> </span><!-- --> </a> </li><li class="channel-banner__list-item"> <a class="channel-banner__link channel-banner-link" href="/web/20191108214155/https://www.bbc.co.uk/cbbc/shows/danger-mouse" data-stats-interaction="channel_banner" data-stats-interaction-variant="show" data-stats-interaction-position="1"> <span class="channel-banner-link__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/Dm-crossover-panel2.png"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/Dm-crossover-panel2.png" alt=""/> </noscript> </span> </span><!-- --> </a> </li><li class="channel-banner__list-item"> <a class="channel-banner__link channel-banner-link" href="/web/20191108214155/https://www.bbc.co.uk/cbbc/shows/shaun-the-sheep" data-stats-interaction="channel_banner" data-stats-interaction-variant="show" data-stats-interaction-position="2"> <span class="channel-banner-link__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/Shaun-the-sheep.png"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/Shaun-the-sheep.png" alt=""/> </noscript> </span> </span><!-- --> </a> </li><li class="channel-banner__list-item"> <a class="channel-banner__link channel-banner-link" href="/web/20191108214155/https://www.bbc.co.uk/cbbc/shows/dragons-riders-of-berk" data-stats-interaction="channel_banner" data-stats-interaction-variant="show" data-stats-interaction-position="3"> <span class="channel-banner-link__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/Dragons1.png"></span> <noscript> <img src="https://web.archive.org/web/20191108214155im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/Dragons1.png" alt=""/> </noscript> </span> </span><!-- --> </a> </li> </ul> <div class="channel-banner__footer"> <a class="channel-banner-close" data-stats-interaction="channel_banner" data-stats-interaction-variant="close" data-stats-interaction-action="button" data-channel-banner-close data-feedback-banner-open> <i aria-hidden="true" class="gelicon gelicon--no gelicon--leading"></i><span class="channel-banner-close__text">No thanks</span> </a> <span class="channel-banner__title">Are you ready to try CBBC?</span> </div> </div> </div> </div> </div> </section> <section class="feedback-banner-section" data-feedback-banner data-ng-class="{'feedback-banner-section--show' : !isFeedbackBannerHidden}"> <div class="feedback-banner-container window window--extra-wide"> <div class="feedback-banner"> <span class="feedback-banner__close" data-feedback-banner-close data-stats-interaction="channel_banner" data-stats-interaction-variant="hide" data-stats-interaction-action="button" data-istats-click="cross_channel_hide"> <i aria-hidden="true" class="gelicon gelicon--no"></i> </span> <p class="feedback-banner__message">We&#x27;ll hide these CBBC shows for 30 days.</p> <p class="feedback-banner__undo"><a class="feedback-banner__undo-link" data-feedback-banner-close data-channel-banner-open data-stats-interaction="channel_banner" data-stats-interaction-variant="undo" data-stats-interaction-action="button" data-istats-click="cross_channel_undo">Bring them back!</a></p> <p class="feedback-banner__question">Why did you hide them?</p> <ul class="feedback-banner__options"> <li class="feedback-banner__option" data-feedback-banner-close data-stats-interaction="channel_banner" data-stats-interaction-variant="feedback" data-stats-interaction-position="0" data-stats-interaction-action="button" data-istats-pos="0" data-istats-click="cross_channel_feedback"> <span>Not familiar with CBBC</span> </li> <li class="feedback-banner__option" data-feedback-banner-close data-stats-interaction="channel_banner" data-stats-interaction-variant="feedback" data-stats-interaction-position="1" data-stats-interaction-action="button" data-istats-pos="1" data-istats-click="cross_channel_feedback"> <span>Didn&#x27;t like those shows</span> </li> <li class="feedback-banner__option" data-feedback-banner-close data-stats-interaction="channel_banner" data-stats-interaction-variant="feedback" data-stats-interaction-position="2" data-stats-interaction-action="button" data-istats-pos="2" data-istats-click="cross_channel_feedback"> <span>Too young for CBBC</span> </li> </ul> <div class="feedback-banner__image"> <img class="feedback-banner__image-inner" src="https://web.archive.org/web/20191108214155im_/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/699119d/images/feedback/feedbackImage.png" alt=""/> </div> </div> </div> </section> </div> <div class="cf"></div> </div> <div id="heart-button-isite-tooltip"> <div class="tooltip heart-button__tooltip" data-active-tooltip=""> <span class="tooltip__pointer"></span> <div class="tooltip__inner"> <div class="tooltip__content tooltip__content--upsell"> <p class="tooltip__subtitle"> Love this? Sign in to let us know. </p> <div class="tooltip__idcta"> <p class="id4-cta"> <span class="id4-cta-size-medium id4-cta-color-blue id4-cta-medium-blue"> <a href="" class="id4-cta-signin id4-cta-button">Sign in</a> <span class="id4-cta-with"> with your BBC iD,</span> or <a href="" class="id4-cta-register">Register</a> </span> <script> require(['jquery-1', 'idcta-v2/id-config'], ($, idctaConfig) => { idctaConfig.getConfigAsync() .then((idConfig) => { $('.id4-cta-signin').each(function () { if (idConfig.signin_url) { this.href = idConfig.signin_url; } }); $('.id4-cta-register').each(function () { if (idConfig.register_url) { this.href = idConfig.register_url; } }); }); }); </script> </p> </div> </div> <div class="tooltip__content tooltip__content--error"> <p class="tooltip__title"> <span class="add-to__icons add-to__s"> <i aria-hidden="true" class="gelicon gelicon--alert add-to__gelicon add-to__icon"></i> </span>Something&#39;s gone wrong </p> <p class="tooltip__body tooltip__try-again">Please try again later</p> </div> <button href="#" class="tooltip__close add-to__tab" title="Close" aria-label="Close Tooltip"> <span class="tooltip__close-icon"> <i aria-hidden="true" class="gelicon gelicon--no"></i> </span> </button> </div> </div> </div> <script type="text/javascript"> require(['lib/Imager', 'lib/minpubsub'], function (Imager, pubsub) { Imager.transforms.pixelRatio = function (value) { return value; }; var availableWidths = [80, 160, 240, 320, 400, 480, 560, 640, 720, 800, 880, 960]; var imagerDefault = new Imager('.delayed-image-load', { availableWidths: availableWidths, availablePixelRatios: [1, 1.5], loadHidden: false }); var imagerPng = new Imager('.delayed-png-image-load', { availableWidths: availableWidths, availablePixelRatios: [1], loadHidden: false }); var imagerGif = new Imager('.delayed-gif-image-load', { availableWidths: availableWidths, availablePixelRatios: [1, 1.5], lazyload: true, loadHidden: false }); pubsub.subscribe('/showMore/updateImages', function () { imagerDefault.add('.delayed-image-load'); imagerPng.add('.delayed-png-image-load'); }); pubsub.subscribe('/imager/addPngImages', function (selector) { imagerPng.add(selector); }); pubsub.subscribe('/imager/addImages', function (selector) { imagerDefault.add(selector); }); }); require(['childrens/singlePlayingVideo'], function (singlePlayingVideo) { setTimeout(singlePlayingVideo.setup, 2000); }); require(['stats/riddle-events'], function (riddleEvents) { riddleEvents.init(); }); require(['angular/app'], function () {}); </script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-debouncer@1.0.1"]={morph:"3.4.0"},function(e){function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,n,t){Morph.modules["bbc-morph-debouncer@1.0.1"]=t(1)},function(e,n,t){var o=t(2);e.exports=function(){function e(e,n){window.addEventListener?window.addEventListener(e,n,!1):document.documentElement.attachEvent("onpropertychange",function(t){t.propertyName===e&&n()})}function n(e){var n;document.createEvent?(n=document.createEvent("UIEvents"),n.initEvent(e,!1,!0),window.dispatchEvent(n)):(n=document.documentElement[e],n+=1)}function t(e){return setTimeout(function(){n(e+"-debounced")},i)}var r,c,i=50;o.isClientSide()&&(e("resize",function(){clearTimeout(r),r=t("resize")}),e("scroll",function(){clearTimeout(c),c=t("scroll")}))}()},function(e,n){e.exports=Morph}]);; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-responsive-image@1.3.1"]={"bbc-morph-debouncer":"1.0.1",morph:"3.5.0",react:"0.14.7"},function(t){function e(r){if(i[r])return i[r].exports;var s=i[r]={exports:{},id:r,loaded:!1};return t[r].call(s.exports,s,s.exports,e),s.loaded=!0,s.exports}var i={};e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){Morph.modules["bbc-morph-responsive-image@1.3.1"]=i(1)},function(t,e,i){i(2);var r=i(3),s=[64,80,96,128,160,240,320,400,480,512,624,704,800,912,960,1024,1056,1104,1152,1200,1248,1440,1600,1680];t.exports=r.createClass({displayName:"ResponsiveImage",propTypes:{src:r.PropTypes.string.isRequired,alt:r.PropTypes.string,className:r.PropTypes.string,width:r.PropTypes.number,availableWidths:r.PropTypes.arrayOf(r.PropTypes.number),delayed:r.PropTypes.bool,keepAspectRatio:r.PropTypes.string,aspectRatioStartPoint:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.bool])},getDefaultProps:function(){return{width:320,height:180,delayed:!1,background:!1,aspectRatioStartPoint:!1}},getInitialState:function(){var t=this.getClosestGreaterWidth(this.props.width);return{delayed:this.props.delayed,width:t,height:this.calcHeight(this.props.width),background:this.props.background,ratioStartPoint:this.isWidthAboveRatioStartPoint(t)}},componentWillUnmount:function(){window.removeEventListener&&(window.removeEventListener("resize-debounced",this.state.resizeHandler),window.removeEventListener("orientationchange",this.state.resizeHandler),this.props.triggerResizeOnClick&&window.removeEventListener("click",this.state.resizeHandler))},componentDidMount:function(){var t=function(){var t=this.getClosestGreaterWidth(this.node.parentNode.clientWidth);this.setState({width:t,height:this.calcHeight(t)})}.bind(this);window.addEventListener&&(window.addEventListener("resize-debounced",t),window.addEventListener("orientationchange",t),this.props.triggerResizeOnClick&&window.addEventListener("click",t));var e=this.getClosestGreaterWidth(this.node.parentNode.clientWidth),i=this.calcHeight(e);this.setState({delayed:!1,width:e,height:i,resizeHandler:t})},hdpiEnabled:function(){return this.props.hasOwnProperty("hidpi")&&!0===this.props.hidpi&&window.devicePixelRatio>1},defaultInterpolator:function(t,e){var i="";return this.hdpiEnabled()&&(i="-hidpi"),t.replace(/{width}/g,e+i)},interpolate:function(t,e){return this.props.customInterpolator?this.props.customInterpolator(t,e):this.defaultInterpolator(t,e)},getClosestGreaterWidth:function(t){for(var e=this.props.availableWidths||s,i=0;i<e.length;i+=1){var r=e[i];if(r>=t)return r}return e[e.length-1]},calcHeight:function(t){var e=this.getRatio(this.props.keepAspectRatio);return Math.floor(t/e)},getRatio:function(t){var e=1;if("string"==typeof t){var i=/^(\d{1,2})\:(\d{1,2})/g,r=i.exec(t);r.length>0&&(e=r[1]/r[2])}return e},isWidthAboveRatioStartPoint:function(t){return"string"==typeof this.props.keepAspectRatio&&("number"==typeof this.props.aspectRatioStartPoint&&this.props.aspectRatioStartPoint<t||!1===this.props.aspectRatioStartPoint)},setNode:function(t){this.node=t},render:function(){var t,e,i,s=this.state.width;return i=this.isWidthAboveRatioStartPoint(s)?{maxHeight:this.state.height}:{},this.state.delayed?e=r.createElement("img",{ref:this.setNode,src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}):this.state.background?(t={backgroundImage:"url("+this.interpolate(this.props.src,this.state.width)+")"},e=r.createElement("div",{ref:this.setNode,style:t,className:this.props.className})):e=r.createElement("img",{ref:this.setNode,src:this.interpolate(this.props.src,this.state.width),alt:this.props.alt,className:this.props.className,style:i}),e}})},function(t,e){t.exports=Morph.modules["bbc-morph-debouncer@1.0.1"]},function(t,e){t.exports=React}]);; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-debouncer@2.1.1"]={morph:"3.10.0"},function(e){function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,n,t){Morph.modules["bbc-morph-debouncer@2.1.1"]=t(1)},function(e,n,t){function o(e,n,t){t||(t="-debounced"+n);var o=e+t;timeouts[o]||r(e,function(){clearTimeout(timeouts[o]),timeouts[o]=u(e,t,n)})}function r(e,n){window.addEventListener?window.addEventListener(e,n,!1):document.documentElement.attachEvent("onpropertychange",function(t){t.propertyName===e&&n()})}function c(e){var n;document.createEvent?(n=document.createEvent("UIEvents"),n.initEvent(e,!1,!0),window.dispatchEvent(n)):(n=document.documentElement[e],n+=1)}function u(e,n,t){return setTimeout(function(){c(e+n)},t)}var i=t(2),d=50;timeouts={},function(){i.isClientSide()&&(o("resize",d,"-debounced"),o("scroll",d,"-debounced"))}(),e.exports={addDebouncedEvent:o}},function(e,n){e.exports=Morph}]);; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-childrens-games-view@6.0.1"]={"@babel/polyfill":"7.7.0","@babel/runtime":"7.7.1","bbc-morph-debouncer":"2.1.1","bbc-morph-games-data":"1.1.0","bbc-morph-id-availability-data":"1.0.0","bbc-morph-responsive-image":"1.3.1","@bbc/echo-client-js":"12.4.0","es6-promise":"4.2.8","isomorphic-fetch":"2.2.1","morph-container":"4.0.0","morph-require":"5.2.1","morph-static-prefix":"3.0.0","react":"0.14.7"}; !function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=104)}([function(t,e,n){var i=n(1);i(i.S+i.F*!n(10),"Object",{defineProperty:n(13).f})},function(t,e,n){var i=n(5),r=n(23),o=n(17),s=n(18),a=n(19),u=function(t,e,n){var c,l,f,d,p=t&u.F,h=t&u.G,_=t&u.S,g=t&u.P,v=t&u.B,m=h?i:_?i[e]||(i[e]={}):(i[e]||{}).prototype,E=h?r:r[e]||(r[e]={}),y=E.prototype||(E.prototype={});h&&(n=e);for(c in n)l=!p&&m&&void 0!==m[c],f=(l?m:n)[c],d=v&&l?a(f,i):g&&"function"==typeof f?a(Function.call,f):f,m&&s(m,c,f,t&u.U),E[c]!=f&&o(E,c,d),g&&y[c]!=f&&(y[c]=f)};i.core=r,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var i=n(52)("wks"),r=n(51),o=n(5).Symbol,s="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))}).store=i},function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}t.exports=n},function(t,e,n){"use strict";var i=n(47),r={};r[n(2)("toStringTag")]="z",r+""!="[object z]"&&n(18)(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var i=n(9);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){"use strict";var i=n(6),r=n(21),o=n(14),s=n(43),a=n(56),u=n(57),c=Math.max,l=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,h=function(t){return void 0===t?t:String(t)};n(58)("replace",2,function(t,e,n,_){function g(t,e,i,o,s,a){var u=i+t.length,c=o.length,l=p;return void 0!==s&&(s=r(s),l=d),n.call(a,l,function(n,r){var a;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(u);case"<":a=s[r.slice(1,-1)];break;default:var l=+r;if(0===l)return n;if(l>c){var d=f(l/10);return 0===d?n:d<=c?void 0===o[d-1]?r.charAt(1):o[d-1]+r.charAt(1):n}a=o[l-1]}return void 0===a?"":a})}return[function(i,r){var o=t(this),s=void 0==i?void 0:i[e];return void 0!==s?s.call(i,o,r):n.call(String(o),i,r)},function(t,e){var r=_(n,t,this,e);if(r.done)return r.value;var f=i(t),d=String(this),p="function"==typeof e;p||(e=String(e));var v=f.global;if(v){var m=f.unicode;f.lastIndex=0}for(var E=[];;){var y=u(f,d);if(null===y)break;if(E.push(y),!v)break;""===String(y[0])&&(f.lastIndex=a(d,o(f.lastIndex),m))}for(var b="",A=0,S=0;S<E.length;S++){y=E[S];for(var I=String(y[0]),T=c(l(s(y.index),d.length),0),C=[],P=1;P<y.length;P++)C.push(h(y[P]));var O=y.groups;if(p){var w=[I].concat(C,T,d);void 0!==O&&w.push(O);var N=String(e.apply(void 0,w))}else N=g(I,d,T,C,O,e);T>=A&&(b+=d.slice(A,T)+N,A=T+I.length)}return b+d.slice(A)}]})},function(t,e){t.exports=React},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var i=n(1),r=n(45)(1);i(i.P+i.F*!n(20)([].map,!0),"Array",{map:function(t){return r(this,t,arguments[1])}})},function(t,e,n){var i=n(6),r=n(69),o=n(70),s=Object.defineProperty;e.f=n(10)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(43),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){var i=n(1);i(i.P,"Function",{bind:n(110)})},function(t,e,n){"use strict";var i,r,o,s,a=n(53),u=n(5),c=n(19),l=n(47),f=n(1),d=n(9),p=n(24),h=n(121),_=n(122),g=n(79),v=n(80).set,m=n(123)(),E=n(82),y=n(124),b=n(125),A=n(126),S=u.TypeError,I=u.process,T=I&&I.versions,C=T&&T.v8||"",P=u.Promise,O="process"==l(I),w=function(){},N=r=E.f,R=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[n(2)("species")]=function(t){t(w,w)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(w)instanceof e&&0!==C.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},D=function(t,e){if(!t._n){t._n=!0;var n=t._c;m(function(){for(var i=t._v,r=1==t._s,o=0;n.length>o;)!function(e){var n,o,s,a=r?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{a?(r||(2==t._h&&x(t),t._h=1),!0===a?n=i:(l&&l.enter(),n=a(i),l&&(l.exit(),s=!0)),n===e.promise?c(S("Promise-chain cycle")):(o=L(n))?o.call(n,u,c):u(n)):c(i)}catch(t){l&&!s&&l.exit(),c(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&B(t)})}},B=function(t){v.call(u,function(){var e,n,i,r=t._v,o=M(t);if(o&&(e=y(function(){O?I.emit("unhandledRejection",r,t):(n=u.onunhandledrejection)?n({promise:t,reason:r}):(i=u.console)&&i.error&&i.error("Unhandled promise rejection",r)}),t._h=O||M(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},M=function(t){return 1!==t._h&&0===(t._a||t._c).length},x=function(t){v.call(u,function(){var e;O?I.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},U=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),D(e,!0))},k=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=L(t))?m(function(){var i={_w:n,_d:!1};try{e.call(t,c(k,i,1),c(U,i,1))}catch(t){U.call(i,t)}}):(n._v=t,n._s=1,D(n,!1))}catch(t){U.call({_w:n,_d:!1},t)}}};R||(P=function(t){h(this,P,"Promise","_h"),p(t),i.call(this);try{t(c(k,this,1),c(U,this,1))}catch(t){U.call(this,t)}},i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n(127)(P.prototype,{then:function(t,e){var n=N(g(this,P));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=O?I.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&D(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new i;this.promise=t,this.resolve=c(k,t,1),this.reject=c(U,t,1)},E.f=N=function(t){return t===P||t===s?new o(t):r(t)}),f(f.G+f.W+f.F*!R,{Promise:P}),n(60)(P,"Promise"),n(83)("Promise"),s=n(23).Promise,f(f.S+f.F*!R,"Promise",{reject:function(t){var e=N(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(a||!R),"Promise",{resolve:function(t){return A(a&&this===s?P:this,t)}}),f(f.S+f.F*!(R&&n(84)(function(t){P.all(t).catch(w)})),"Promise",{all:function(t){var e=this,n=N(e),i=n.resolve,r=n.reject,o=y(function(){var n=[],o=0,s=1;_(t,!1,function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--s||i(n))},r)}),--s||i(n)});return o.e&&r(o.v),n.promise},race:function(t){var e=this,n=N(e),i=n.reject,r=y(function(){_(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},function(t,e,n){var i=n(13),r=n(46);t.exports=n(10)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(5),r=n(17),o=n(41),s=n(51)("src"),a=n(109),u=(""+a).split("toString");n(23).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(c&&(o(n,s)||r(n,s,t[e]?""+t[e]:u.join(String(e)))),t===i?t[e]=n:a?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(t,e,n){var i=n(24);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";var i=n(11);t.exports=function(t,e){return!!t&&i(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var i=n(26);t.exports=function(t){return Object(i(t))}},function(t,e,n){"use strict";var i=n(63),r=n(138),o=n(44),s=n(42);t.exports=n(87)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e){var n=t.exports={version:"2.6.10"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.exports=n},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}t.exports=i},function(t,e,n){function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}var r=n(72),o=n(73);t.exports=i},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}var r=n(111);t.exports=i},function(t,e,n){"use strict";var i=n(1),r=n(45)(0),o=n(20)([].forEach,!0);i(i.P+i.F*!o,"Array",{forEach:function(t){return r(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(1),r=n(45)(2);i(i.P+i.F*!n(20)([].filter,!0),"Array",{filter:function(t){return r(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(1),r=n(62)(!0);i(i.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(63)("includes")},function(t,e,n){"use strict";var i=n(1),r=n(136);i(i.P+i.F*n(137)("includes"),"String",{includes:function(t){return!!~r(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){for(var i=n(22),r=n(49),o=n(18),s=n(5),a=n(17),u=n(44),c=n(2),l=c("iterator"),f=c("toStringTag"),d=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=r(p),_=0;_<h.length;_++){var g,v=h[_],m=p[v],E=s[v],y=E&&E.prototype;if(y&&(y[l]||a(y,l,d),y[f]||a(y,f,v),u[v]=d,m))for(g in i)y[g]||o(y,g,i[g],!0)}},function(t,e,n){var i=n(21),r=n(49);n(142)("keys",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(13).f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||n(10)&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var i=n(6),r=n(14),o=n(56),s=n(57);n(58)("match",1,function(t,e,n,a){return[function(n){var i=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=a(n,t,this);if(e.done)return e.value;var u=i(t),c=String(this);if(!u.global)return s(u,c);var l=u.unicode;u.lastIndex=0;for(var f,d=[],p=0;null!==(f=s(u,c));){var h=String(f[0]);d[p]=h,""===h&&(u.lastIndex=o(c,r(u.lastIndex),l)),p++}return 0===p?null:d}]})},function(t,e,n){"use strict";var i=n(1),r=n(62)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(s||!n(20)(o)),"Array",{indexOf:function(t){return s?o.apply(this,arguments)||0:r(this,t,arguments[1])}})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(54),r=n(26);t.exports=function(t){return i(r(t))}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e){t.exports={}},function(t,e,n){var i=n(19),r=n(54),o=n(21),s=n(14),a=n(132);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,d=5==t||f,p=e||a;return function(e,a,h){for(var _,g,v=o(e),m=r(v),E=i(a,h,3),y=s(m.length),b=0,A=n?p(e,y):u?p(e,0):void 0;y>b;b++)if((d||b in m)&&(_=m[b],g=E(_,b,v),t))if(n)A[b]=g;else if(g)switch(t){case 3:return!0;case 5:return _;case 6:return b;case 2:A.push(_)}else if(l)return!1;return f?-1:c||l?l:A}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(25),r=n(2)("toStringTag"),o="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){function i(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return i=function(){return t},t}function r(t){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var e=i();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var a=r?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=t[s]}return n.default=t,e&&e.set(t,n),n}var o=n(72);t.exports=r},function(t,e,n){var i=n(89),r=n(66);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(9),r=n(5).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e,n){var i=n(23),r=n(5),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(53)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e,n){var i=n(25);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},n.apply(this,arguments)}t.exports=n},function(t,e,n){"use strict";var i=n(74)(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},function(t,e,n){"use strict";var i=n(47),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},function(t,e,n){"use strict";n(114);var i=n(18),r=n(17),o=n(11),s=n(26),a=n(2),u=n(59),c=a("species"),l=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=a(t),p=!o(function(){var e={};return e[d]=function(){return 7},7!=""[t](e)}),h=p?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[d](""),!e}):void 0;if(!p||!h||"replace"===t&&!l||"split"===t&&!f){var _=/./[d],g=n(s,d,""[t],function(t,e,n,i,r){return e.exec===u?p&&!r?{done:!0,value:_.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),v=g[0],m=g[1];i(String.prototype,t,v),r(RegExp.prototype,d,2==e?function(t,e){return m.call(t,this,e)}:function(t){return m.call(t,this)})}}},function(t,e,n){"use strict";var i=n(75),r=RegExp.prototype.exec,o=String.prototype.replace,s=r,a=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),u=void 0!==/()??/.exec("")[1];(a||u)&&(s=function(t){var e,n,s,c,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),a&&(e=l.lastIndex),s=r.call(l,t),a&&s&&(l.lastIndex=l.global?s.index+s[0].length:e),u&&s&&s.length>1&&o.call(s[0],n,function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)}),s}),t.exports=s},function(t,e,n){var i=n(13).f,r=n(41),o=n(2)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){n(129),t.exports=self.fetch.bind(self)},function(t,e,n){var i=n(42),r=n(14),o=n(135);t.exports=function(t){return function(e,n,s){var a,u=i(e),c=r(u.length),l=o(s,c);if(t&&n!=n){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var i=n(2)("unscopables"),r=Array.prototype;void 0==r[i]&&n(17)(r,i,{}),t.exports=function(t){r[i][t]=!0}},function(t,e,n){var i=n(9),r=n(25),o=n(2)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},function(t,e,n){var i=n(52)("keys"),r=n(51);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports=function(){return"//"+Morph.config.cdn+"/modules/bbc-morph-childrens-games-view/6.0.1"}},function(t,e,n){"use strict";var i=n(1),r=n(42),o=n(43),s=n(14),a=[].lastIndexOf,u=!!a&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(u||!n(20)(a)),"Array",{lastIndexOf:function(t){if(u)return a.apply(this,arguments)||0;var e=r(this),n=s(e.length),i=n-1;for(arguments.length>1&&(i=Math.min(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in e&&e[i]===t)return i||0;return-1}})},function(t,e,n){t.exports=!n(10)&&!n(11)(function(){return 7!=Object.defineProperty(n(50)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(9);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(e){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?t.exports=i=function(t){return n(t)}:t.exports=i=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},i(e)}t.exports=i},function(t,e){function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}t.exports=n},function(t,e,n){var i=n(43),r=n(26);t.exports=function(t){return function(e,n){var o,s,a=String(r(e)),u=i(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},function(t,e,n){"use strict";var i=n(6);t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var i=n(6);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},function(t,e,n){var i=n(44),r=n(2)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},function(t,e,n){var i=n(47),r=n(2)("iterator"),o=n(44);t.exports=n(23).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},function(t,e,n){var i=n(6),r=n(24),o=n(2)("species");t.exports=function(t,e){var n,s=i(t).constructor;return void 0===s||void 0==(n=i(s)[o])?e:r(n)}},function(t,e,n){var i,r,o,s=n(19),a=n(71),u=n(81),c=n(50),l=n(5),f=l.process,d=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,_=l.Dispatch,g=0,v={},m=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},E=function(t){m.call(t.data)};d&&p||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){a("function"==typeof t?t:Function(t),e)},i(g),g},p=function(t){delete v[t]},"process"==n(25)(f)?i=function(t){f.nextTick(s(m,t,1))}:_&&_.now?i=function(t){_.now(s(m,t,1))}:h?(r=new h,o=r.port2,r.port1.onmessage=E,i=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(i=function(t){l.postMessage(t+"","*")},l.addEventListener("message",E,!1)):i="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),m.call(t)}}:function(t){setTimeout(s(m,t,1),0)}),t.exports={set:d,clear:p}},function(t,e,n){var i=n(5).document;t.exports=i&&i.documentElement},function(t,e,n){"use strict";function i(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=r(e),this.reject=r(n)}var r=n(24);t.exports.f=function(t){return new i(t)}},function(t,e,n){"use strict";var i=n(5),r=n(13),o=n(10),s=n(2)("species");t.exports=function(t){var e=i[t];o&&e&&!e[s]&&r.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var i=n(2)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],s=o[i]();s.next=function(){return{done:n=!0}},o[i]=function(){return s},t(o)}catch(t){}return n}},function(t,e,n){"use strict";function i(t){t.stopPropagation()}n(12),n(33),n(34),n(35),n(86),n(36),n(22),n(4),n(37),n(32),n(90),n(91),n(0),n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.init=void 0,n(12),n(33),n(34),n(35),n(86),n(36),n(22),n(4),n(37),n(32),n(90),n(91);var r=function(t){return Array.from(t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))},o=function(t,e){return function(){var n=r(t);n["top"===e?1:n.length-2].focus()}},s=function(t){return function(e){"Escape"===e.key&&t()}},a=function(t){Array.from(t.getElementsByTagName("svg")).forEach(function(t){return t.setAttribute("focusable","false")})},u=function(t,e){var n=document.createElement("div");return n.setAttribute("tabindex","0"),n.addEventListener("focus",o(t,e),!0),n},c=function(t,e){var n=new MutationObserver(e),i={childList:!0,subtree:!0};n.observe(t.parentNode,i)},l=function(t){Object.keys(t.attributes).forEach(function(e){t.attributes[e]?t.el.setAttribute(e,t.attributes[e]):t.el.removeAttribute(e)})},f=function(t,e){return function(n){n.some(function(t){return Array.from(t.removedNodes).includes(e)})&&t.forEach(l)}},d=function(t){return{el:t,attributes:{tabindex:t.getAttribute("tabindex"),"aria-hidden":t.getAttribute("aria-hidden")}}},p=function(t){var e=r(t);r(document).filter(function(t){return!e.includes(t)}).forEach(function(t){t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")})},h=function(t){var e=r(t);return r(document).filter(function(t){return!e.includes(t)}).map(d)},_=function(t,e){t.classList.add("cage-overlay__modal"),t.setAttribute("aria-modal","true"),t.setAttribute("role","dialog"),r(t)[0].focus(),t.insertBefore(u(t,"bottom"),t.firstChild),t.appendChild(u(t,"top"));var n=t.getElementsByClassName("cage-overlay__close-button")[0];setTimeout(function(){n.addEventListener("click",e)}),document.addEventListener("keydown",s(e)),document.addEventListener("mouseup",i),document.addEventListener("mousedown",i),document.addEventListener("click",i),document.addEventListener("touchstart",i),document.addEventListener("touchend",i),a(document);var o=h(t);c(t.parentNode,function(n,r){r.disconnect(),f(o,t.parentNode)(n,r),document.removeEventListener("keydown",s(e)),document.removeEventListener("mouseup",i),document.removeEventListener("mousedown",i),document.removeEventListener("click",i),document.removeEventListener("touchstart",i),document.removeEventListener("touchend",i)}),p(t)};e.init=_},function(t,e,n){"use strict";var i=n(1),r=n(45)(3);i(i.P+i.F*!n(20)([].some,!0),"Array",{some:function(t){return r(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(53),r=n(1),o=n(18),s=n(17),a=n(44),u=n(139),c=n(60),l=n(141),f=n(2)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,h,_,g,v){u(n,e,h);var m,E,y,b=function(t){if(!d&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},A=e+" Iterator",S="values"==_,I=!1,T=t.prototype,C=T[f]||T["@@iterator"]||_&&T[_],P=C||b(_),O=_?S?b("entries"):P:void 0,w="Array"==e?T.entries||C:C;if(w&&(y=l(w.call(new t)))!==Object.prototype&&y.next&&(c(y,A,!0),i||"function"==typeof y[f]||s(y,f,p)),S&&C&&"values"!==C.name&&(I=!0,P=function(){return C.call(this)}),i&&!v||!d&&!I&&T[f]||s(T,f,P),a[e]=P,a[A]=p,_)if(m={values:S?P:b("values"),keys:g?P:b("keys"),entries:O},v)for(E in m)E in T||o(T,E,m[E]);else r(r.P+r.F*(d||I),e,m);return m}},function(t,e,n){var i=n(6),r=n(140),o=n(66),s=n(65)("IE_PROTO"),a=function(){},u=function(){var t,e=n(50)("iframe"),i=o.length;for(e.style.display="none",n(81).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;i--;)delete u.prototype[o[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=i(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:r(n,e)}},function(t,e,n){var i=n(41),r=n(42),o=n(62)(!1),s=n(65)("IE_PROTO");t.exports=function(t,e){var n,a=r(t),u=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);for(;e.length>u;)i(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){"use strict";var i=n(74)(!0);n(87)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var i=n(19),r=n(1),o=n(21),s=n(76),a=n(77),u=n(14),c=n(143),l=n(78);r(r.S+r.F*!n(84)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,f,d=o(t),p="function"==typeof this?this:Array,h=arguments.length,_=h>1?arguments[1]:void 0,g=void 0!==_,v=0,m=l(d);if(g&&(_=i(_,h>2?arguments[2]:void 0,2)),void 0==m||p==Array&&a(m))for(e=u(d.length),n=new p(e);e>v;v++)c(n,v,g?_(d[v],v):d[v]);else for(f=m.call(d),n=new p;!(r=f.next()).done;v++)c(n,v,g?s(f,_,[r.value,v],!0):r.value);return n.length=v,n}})},function(t,e,n){"use strict";n(0);var i=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(8)),o=r.default.createClass({displayName:"Trophy",render:function(){return r.default.createElement("svg",{enableBackground:"new 0 0 13 13",version:"1.1",viewBox:"0 0 13 13",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{className:"st0",d:"m10.3 11.8h-7.6v1.2h7.6v-1.2z"}),r.default.createElement("path",{className:"st0",d:"m0 0v3.5l2 2.5h1.7l1 1.9 0.3 1.7-1.3 1.4h5.6l-1.4-1.4 0.3-1.7 1-1.9h1.8l2-2.5v-3.5h-13zm3 5h-0.6l-1.4-1.9v-2.1h2v4zm9-1.9l-1.4 1.9h-0.6v-4h2v2.1z"}))}}),s=o;e.default=s},function(t,e,n){"use strict";var i=n(1),r=n(24),o=n(21),s=n(11),a=[].sort,u=[1,2,3];i(i.P+i.F*(s(function(){u.sort(void 0)})||!s(function(){u.sort(null)})||!n(20)(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),r(t))}})},function(t,e,n){"use strict";function i(t){return/^https?:\/\/([a-z-.]*\.)?bbci?\.co(m|\.uk)(\/.*)?$/.test(t)?t:""}n(0),n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.getValidUrl=i},function(t,e,n){"use strict";function i(t,e){t.top.location=decodeURI(e)}n(0),n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.openUrlAtWindowTop=i},function(t,e,n){"use strict";n(160)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){var i=n(5),r=n(162),o=n(13).f,s=n(165).f,a=n(64),u=n(75),c=i.RegExp,l=c,f=c.prototype,d=/a/g,p=/a/g,h=new c(d)!==d;if(n(10)&&(!h||n(11)(function(){return p[n(2)("match")]=!1,c(d)!=d||c(p)==p||"/a/i"!=c(d,"i")}))){c=function(t,e){var n=this instanceof c,i=a(t),o=void 0===e;return!n&&i&&t.constructor===c&&o?t:r(h?new l(i&&!o?t.source:t,e):l((i=t instanceof c)?t.source:t,i&&o?u.call(t):e),n?this:f,c)};for(var _=s(l),g=0;_.length>g;)!function(t){t in c||o(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})}(_[g++]);f.constructor=c,c.prototype=f,n(18)(i,"RegExp",c)}n(83)("RegExp")},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";var i=n(64),r=n(6),o=n(79),s=n(56),a=n(14),u=n(57),c=n(59),l=n(11),f=Math.min,d=[].push,p="length",h=!l(function(){RegExp(4294967295,"y")});n(58)("split",2,function(t,e,n,l){var _;return _="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(r,t,e);for(var o,s,a,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,h=void 0===e?4294967295:e>>>0,_=new RegExp(t.source,l+"g");(o=c.call(_,r))&&!((s=_.lastIndex)>f&&(u.push(r.slice(f,o.index)),o[p]>1&&o.index<r[p]&&d.apply(u,o.slice(1)),a=o[0][p],f=s,u[p]>=h));)_.lastIndex===o.index&&_.lastIndex++;return f===r[p]?!a&&_.test("")||u.push(""):u.push(r.slice(f)),u[p]>h?u.slice(0,h):u}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r,i):_.call(String(r),n,i)},function(t,e){var i=l(_,t,this,e,_!==n);if(i.done)return i.value;var c=r(t),d=String(this),p=o(c,RegExp),g=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(h?"y":"g"),m=new p(h?c:"^(?:"+c.source+")",v),E=void 0===e?4294967295:e>>>0;if(0===E)return[];if(0===d.length)return null===u(m,d)?[d]:[];for(var y=0,b=0,A=[];b<d.length;){m.lastIndex=h?b:0;var S,I=u(m,h?d:d.slice(b));if(null===I||(S=f(a(m.lastIndex+(h?0:b)),d.length))===y)b=s(d,b,g);else{if(A.push(d.slice(y,b)),A.length===E)return A;for(var T=1;T<=I.length-1;T++)if(A.push(I[T]),A.length===E)return A;b=y=S}}return A.push(d.slice(y)),A}]})},function(t,e,n){"use strict";n(0),n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=new Error("The ID availability service timed-out."),r=new Error("The ID availability service is unavailable."),o=new Error("The ID system is unavailable."),s=new Error("Not signed In"),a=new Error("The authorisation system is unavailable"),u=new Error("Token refresh failed"),c=new Error("clientId or AuthUrl have not been supplied"),l=new Error("IDCTA was not ready before authorisation was called"),f={servicetimeOut:i,serviceUnavailable:r,systemUnavailable:o,notSignedIn:s,authorisationSystemUnavailable:a,tokenRefreshFailed:u,clientIdOrAuthNotSupplied:c,idctaNotReady:l};e.default=f},function(t,e,n){var i=n(1);i(i.S,"Object",{create:n(88)})},function(t,e,n){"use strict";var i=n(1),r=n(45)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),i(i.P+i.F*o,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(63)("find")},function(t,e,n){var i=n(1);i(i.S+i.F,"Object",{assign:n(172)})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(105),r=n.n(i);Morph.modules["bbc-morph-childrens-games-view@6.0.1"]=r.a},function(t,e,n){"use strict";t.exports=n(106)},function(t,e,n){"use strict";var i=n(3),r=i(n(107)),o=i(n(108)),s=function(t){var e={uri:{data:"bbc-morph-games-data",game:t.game||t.gid,project:"childrensgames",baseUrl:"/childrens/assets/games"},updates:!1,requireSuccess:!0};return t.versionOverride&&(e.uri.versionOverride=t.versionOverride),t.viewNonPublished&&(e.uri.viewNonPublished=t.viewNonPublished),e};t.exports=r.default.create(o.default,{data:function(t){return{data:s(t),idAvailabilityData:{uri:{data:"bbc-morph-id-availability-data"},requireSuccess:!0,updates:!1},idConfigData:{uri:{service:"bbcid-config-couk",path:"?"},requireSuccess:!0,updates:!1}}}})},function(t,e){t.exports={create:function(t,e){return Morph.createContainerWithCaller("bbc-morph-childrens-games-view@6.0.1",t,e)}}},function(t,e,n){"use strict";n(68),n(15),n(0);var i=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(68),n(15);var r,o,s=i(n(27)),a=i(n(28)),u=i(n(29)),c=i(n(30)),l=i(n(73)),f=i(n(31)),d=i(n(8)),p=i(n(112)),h=i(n(113)),_=i(n(118)),g=i(n(119)),v=i(n(120)),m=i(n(131)),E=n(144),y=n(146),b=i(n(151)),A=n(94),S=n(152),I=n(153),T=n(154),C=n(155),P=n(156),O=n(157),w=n(95),N=n(158),R=function(){window.bbccookies=n(159)},L=function(t){return"true"===t||!0===t},D=function(t){function e(t){var n;return(0,s.default)(this,e),n=(0,u.default)(this,(0,c.default)(e).call(this,t)),n.loadGameFromCta=n.loadGameFromCta.bind((0,l.default)(n)),n.state={showIframe:!1,showCta:n.showCta(),showSettings:!1,showErrorMessage:!1,loadingSpinnerEnabled:!0,useBrim:!1,componentMounted:!1,notificationKey:void 0,notificationName:void 0,notificationDescription:void 0},L(n.props.showFullscreen)&&I.selfTransitiveThenUpdate("fullscreen",(0,l.default)(n)),n}return(0,f.default)(e,t),(0,a.default)(e,[{key:"componentDidMount",value:function(){if(this.setUpWindowObject(),this.props.data.body.embedVars.pwa){var t=(0,S.setUrlOrigin)(this.props.data.body.gameDir,this.props.data.body.environment,window),e=t.substring(0,t.lastIndexOf("/",t.length-2));N.init(e)}this.setState({componentMounted:!0,useBrim:P.brimNeeded(window)}),o=v.default.inject(document.head),this.showCta()||this.loadGame()}},{key:"getGameWrapperProps",value:function(){var t={className:"game-wrapper"};return this.isFixedSize()&&this.state.showIframe&&(t.className+=" game-wrapper--fixedsize",t.style={width:this.props.data.body.width,height:this.props.data.body.height}),t}},{key:"getGameHolderProps",value:function(){return{id:this.isLegacyGame()?"og-game-holder":"game-holder",className:"game-wrapper__game","aria-hidden":!!this.isOverlayOpen()||null,tabIndex:this.isOverlayOpen()?-1:null}}},{key:"setUpWindowObject",value:function(){window.cage={gameId:this.props.data.body.id,gameDir:(0,S.setUrlOrigin)(this.props.data.body.gameDir,this.props.data.body.environment,window),exitGameUrl:(0,A.getValidUrl)(this.props.exitGameUrl),embedVars:this.props.data.body.embedVars,gameContainerId:"game-holder",environment:window.Morph.config.pushEnv||"test",isFullScreen:T.isFullscreen(window,L(this.props.showFullscreen))},this.isLegacyGame()&&(window.og=window.cage,window.og.gameContainerId="og-game-holder")}},{key:"setRequireConfig",value:function(){requirejs({paths:{Game:(0,S.setUrlOrigin)(this.props.data.body.url,this.props.data.body.environment,window),echo:"https://web.archive.org/web/20191108214155/https://static.bbci.co.uk/nkdata/echoclient/2.0.0/sharedmodules/echo"},waitSeconds:30,baseUrl:(0,S.setUrlOrigin)(this.props.data.body.gameDir,this.props.data.body.environment,window)})}},{key:"isFixedSize",value:function(){var t=this.props.data.body;return!L(t.responsive)&&!(!t.width||!t.height)}},{key:"showCta",value:function(){return L(this.props.showCallToAction)}},{key:"isLegacyGame",value:function(){return L(this.props.data.body.isLegacyGame)}},{key:"isOverlayOpen",value:function(){return this.state.showSettings||this.state.showAchievements}},{key:"delayLoadingSpinnerRemoval",value:function(){var t=this;setTimeout(function(){t.setState({loadingSpinnerEnabled:!1})},1e4)}},{key:"loadGameFromCta",value:function(){if(window.cage.isFullScreen)return this.loadGame(),void this.setState({showCta:!1});if(C.isMobile(window,screen)){var t=O.generate(window,this.props);w.openUrlAtWindowTop(window,t)}else this.setState({showIframe:!0}),this.delayLoadingSpinnerRemoval()}},{key:"loadGame",value:function(){var t=this;R();var e=n(166)(this.props,o,document),i=n(168);r=n(169)(window,i,function(e){t.setState(e)},e),window.getGMI=r.getGMI,this.setRequireConfig(),this.requireAndInitGame()}},{key:"requireAndInitGame",value:function(){var t=this;requirejs(["Game","echo"],function(e){e&&"function"==typeof e.init&&e.init(),t.delayLoadingSpinnerRemoval()},function(e){console.log(e),t.setState({showErrorMessage:!0,loadingSpinnerEnabled:!1})})}},{key:"renderRotateScreen",value:function(){var t=Boolean(this.props.data.body.embedVars&&L(this.props.data.body.embedVars.showRotateScreen));return d.default.createElement(b.default,{windowObj:window,showRotate:t})}},{key:"renderGameHolder",value:function(){var t=this;return d.default.createElement("div",null,this.state.componentMounted&&this.renderRotateScreen(),d.default.createElement("div",this.getGameHolderProps()),this.state.gmi&&this.state.gmi.getAllSettings&&d.default.createElement(E.AchievementNotification,{notificationKey:this.state.notificationKey,notificationName:this.state.notificationName,notificationDescription:this.state.notificationDescription,gmi:this.state.gmi}),this.state.showAchievements&&d.default.createElement(y.AchievementsScreen,{gmi:this.state.gmi}),this.state.useBrim&&d.default.createElement(p.default,{windowObj:window}),this.state.showSettings&&d.default.createElement(m.default,{isMobile:C.isMobile(window,screen),gmi:this.state.gmi,gmiOptions:this.state.gmiOptions,closeSettingsView:function(){t.setState({showSettings:!1},function(){t.state.onSettingsClosed()})},onSettingChanged:this.state.onSettingChanged}))}},{key:"renderIframe",value:function(){var t={src:O.generate(window,this.props),className:this.isFixedSize()?"game-wrapper__iframe--fixedsize":"game-wrapper__iframe",marginWidth:"0",marginHeight:"0"};return this.isFixedSize()&&(t.width=this.props.data.body.width,t.height=this.props.data.body.height),d.default.createElement("iframe",t)}},{key:"renderCallToAction",value:function(){var t=this.props.data.body.heroImagePid;return d.default.createElement("div",{className:"game-wrapper__cta",onClick:this.loadGameFromCta},t&&d.default.createElement(h.default,{imagePid:t}),d.default.createElement(g.default,null))}},{key:"renderError",value:function(){return 200!==this.props.data.meta.responseCode||!0===this.state.showErrorMessage?d.default.createElement("div",{className:"game-wrapper__error"},"This content could not be found."):null}},{key:"renderGameContent",value:function(){return this.state.showIframe?this.renderIframe():this.state.showCta?this.renderCallToAction():this.renderGameHolder()}},{key:"renderContent",value:function(){return d.default.createElement("div",null,this.state.loadingSpinnerEnabled&&d.default.createElement(_.default,null),this.renderGameContent())}},{key:"render",value:function(){return d.default.createElement("div",this.getGameWrapperProps(),this.renderError()||this.renderContent())}}]),e}(d.default.Component);e.default=D,D.displayName="Childrens-Games-View__Game",D.propTypes={data:d.default.PropTypes.object.isRequired,game:d.default.PropTypes.string.isRequired,exitGameUrl:d.default.PropTypes.string,showCallToAction:d.default.PropTypes.oneOfType([d.default.PropTypes.string,d.default.PropTypes.bool])}},function(t,e,n){t.exports=n(52)("native-function-to-string",Function.toString)},function(t,e,n){"use strict";var i=n(24),r=n(9),o=n(71),s=[].slice,a={},u=function(t,e,n){if(!(e in a)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";a[e]=Function("F,a","return new F("+i.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=i(this),n=s.call(arguments,1),a=function(){var i=n.concat(s.call(arguments));return this instanceof a?u(e,i.length,i):o(e,i,t)};return r(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e){function n(e,i){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,i)}t.exports=n},function(t,e,n){"use strict";n(15),n(0);var i=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.preventDefault=void 0;var r=i(n(55));n(15);var o=i(n(27)),s=i(n(28)),a=i(n(29)),u=i(n(30)),c=i(n(31)),l=i(n(8)),f=function(t){t.stopPropagation()},d=function(t){t.preventDefault()};e.preventDefault=d;var p=function(t){function e(t){var n;return(0,o.default)(this,e),n=(0,a.default)(this,(0,u.default)(e).call(this,t)),n.state={hideBrim:!1},n}return(0,c.default)(e,t),(0,s.default)(e,[{key:"componentDidMount",value:function(){this.onResize(),this.props.windowObj.addEventListener("resize",this.onResize.bind(this)),this.props.windowObj.addEventListener("gesturestart",d)}},{key:"componentWillUnmount",value:function(){this.props.windowObj.removeEventListener("resize",this.onResize.bind(this)),this.props.windowObj.removeEventListener("gesturestart",d)}},{key:"onResize",value:function(){var t=this.props.windowObj,e=t.innerHeight>t.innerWidth,n=t.innerHeight===t.screen.width,i=e||n;this.setState({hideBrim:i})}},{key:"render",value:function(){var t={id:"cage-brim",className:this.state.hideBrim?"cage-brim cage-brim--disabled":"cage-brim"};return l.default.createElement("div",(0,r.default)({},t,{onTouchStart:f}),l.default.createElement("div",{className:"cage-brim__message"},l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 273 283",className:"cage-brim__hand"},l.default.createElement("path",{fill:"#FFFFFF",d:"M163.8,229.5c23.6-10.7,44-20,55-29s9.1-18.2,7-28c-2-9.5,3.5-14.5,3.5-27.5s-0.3-27.3-18-45c-19-19-14-33-37-33c-16,0-19,17-19,17s-13-14-28-5s-13,17-13,17s-6.1-16.5-18-37c-5.5-9.5-22.5-7.5-28-4c-8.4,5.4-16,16-6,35s32,63,32,63s-24-9-32,3s-9,29,2,33s47,20,78,24C142.3,213,147.3,237,163.8,229.5z"}),l.default.createElement("g",{fill:"#DADADA"},l.default.createElement("path",{d:"M120.1,107.4c1,0.7,2.3-0.1,2.2-1.3c-0.1-3.3,0.3-14.5,3-25.9c-9.9,6.5-11.1,12.3-11.2,14.7c0,0.2,0,0.4,0,0.5c0,0,0,0,0,0c0,0.1,0,0.2,0.1,0.4C117.5,105.3,118.4,106.2,120.1,107.4z"}),l.default.createElement("path",{d:"M155.3,83.9c0.6,3.8,3.1,7.4,4.8,8.5c1,0.7,2.3-0.1,2.2-1.3c-0.1-3.3,1.3-11.2,3.9-22.4C157.7,72.8,155.5,82.8,155.3,83.9z"}),l.default.createElement("path",{d:"M101.2,153.7c0.9,0.1,1.5-0.8,1.1-1.6c-4.4-8.5-22.8-44.2-31-61.1c-11.2-22.8-0.8-30.5,7.5-36.8c0.9-0.7,0.3-2.1-0.8-2c-4,0.4-7.7,1.5-9.7,2.8c-8.4,5.4-16,16-6,35c9.3,17.8,29.2,57.4,31.7,62.5c0.2,0.3,0.5,0.6,0.9,0.6L101.2,153.7z"}),l.default.createElement("path",{d:"M163.8,229.5c23.6-10.7,44-20,55-29c6.7-5.5,8.6-11,8.6-16.8c-2.2,4.1-6.3,8.8-11.6,11.8c-18,10-36,21-50,25c-19,7-21-11-21-11s-63-21-78-27c-5.4-2.2-7.8-9.5-8.7-18.1c-3.7,10.4-2.4,21.4,6.2,24.6c11,4,47,20,78,24C142.3,213,147.3,237,163.8,229.5z"}))),l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 273 283",className:"cage-brim__hand-tap"},l.default.createElement("path",{fill:"#FFFFFF",d:"M82.8,70.9c-5-5-21-16-33-2c-14,19-3,28,23,51s26,34,26,34l-4.5-1c0,0-24-9-32,3s-9,29,2,33s47,20,78,24c0,0,5,24,21.5,16.5c23.6-10.7,44-20,55-29s9.1-18.2,7-28c-2-9.5,3.5-14.5,3.5-27.5s-0.3-27.3-18-45c-19-19-14-33-37-33c-16,0-19,17-19,17s-13-14-28-5s-13,17-13,17L82.8,70.9z"}),l.default.createElement("g",{fill:"#DADADA"},l.default.createElement("path",{d:"M120.1,107.4c1,0.7,2.3-0.1,2.2-1.3c-0.1-3.3,0.3-14.5,3-25.9c-9.9,6.5-11.1,12.3-11.2,14.7c0,0.2,0,0.4,0,0.5c0,0,0,0,0,0c0,0.1,0,0.2,0.1,0.4C117.5,105.3,118.4,106.2,120.1,107.4z"}),l.default.createElement("path",{d:"M155.3,83.9c0.6,3.8,3.1,7.4,4.8,8.5c1,0.7,2.3-0.1,2.2-1.3c-0.1-3.3,1.3-11.2,3.9-22.4C157.7,72.8,155.5,82.8,155.3,83.9z"}),l.default.createElement("path",{d:"M163.8,229.5c23.6-10.7,44-20,55-29c6.7-5.5,8.6-11,8.6-16.8c-2.2,4.1-6.3,8.8-11.6,11.8c-18,10-36,21-50,25c-19,7-21-11-21-11s-63-21-78-27c-5.4-2.2-7.8-9.5-8.7-18.1c-3.7,10.4-2.4,21.4,6.2,24.6c11,4,47,20,78,24C142.3,213,147.3,237,163.8,229.5z"}),l.default.createElement("path",{d:"M72.8,119.9c12.1,10.7,18.5,18.8,22,24.4v-7c0-4.6-2.1-8.9-5.7-11.8C81,119.1,66.2,107,57.8,97.9c-8.6-9.4-7-25,8.4-35.7c-5.4-0.7-11.2,0.7-16.4,6.7C35.8,87.9,46.8,96.9,72.8,119.9z"}))),l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 273 283",className:"cage-brim__arrow"},l.default.createElement("path",{fill:"#FFFFFF",d:"M139.1,82.4L91.6,130c-2,2-2,5.3,0,7.3l10.9,10.9c2.1,2.1,5.4,2,7.4-0.1l19.2-20.6V197c0,2.8,2.3,5.1,5.1,5.1h17.1c2.8,0,5.1-2.3,5.1-5.1v-69.7l19.2,20.6c2,2.1,5.3,2.2,7.4,0.1l10.9-10.9c2-2,2-5.3,0-7.3l-47.5-47.5C144.4,80.4,141.1,80.4,139.1,82.4z"})),l.default.createElement("p",{className:"cage-brim__text"},"Swipe up to return to the game!")))}}]),e}(l.default.Component);e.default=p,p.displayName="Childrens-Games-View__Brim",p.propTypes={windowObj:l.default.PropTypes.object}},function(t,e,n){"use strict";n(7),n(0);var i=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(7);var r=i(n(27)),o=i(n(28)),s=i(n(29)),a=i(n(30)),u=i(n(31)),c=i(n(8)),l=i(n(115)),f=function(t){function e(){return(0,r.default)(this,e),(0,s.default)(this,(0,a.default)(e).apply(this,arguments))}return(0,u.default)(e,t),(0,o.default)(e,[{key:"customInterpolator",value:function(t,e){var n=Math.round(9*e/16),i="".concat(e,"x").concat(n);return t.replace(/{width-height}/g,i)}},{key:"render",value:function(){var t={src:"https://web.archive.org/web/20191108214155/https://ichef.bbci.co.uk/images/ic/{width-height}/".concat(this.props.imagePid,".jpg"),customInterpolator:this.customInterpolator,aspectRatioStartPoint:1,chefSizes:[400,512,608,704,800],delayed:!0};return c.default.createElement(l.default,t)}}]),e}(c.default.Component);e.default=f,f.displayName="Childrens-Games-View__Hero-Image",f.propTypes={imagePid:c.default.PropTypes.string}},function(t,e,n){"use strict";var i=n(59);n(1)({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},function(t,e,n){n(116);var i=n(8),r=[64,80,96,128,160,240,320,400,480,512,624,704,800,912,960,1024,1056,1104,1152,1200,1248,1440,1600,1680];t.exports=i.createClass({displayName:"ResponsiveImage",propTypes:{src:i.PropTypes.string.isRequired,alt:i.PropTypes.string,className:i.PropTypes.string,width:i.PropTypes.number,availableWidths:i.PropTypes.arrayOf(i.PropTypes.number),delayed:i.PropTypes.bool,keepAspectRatio:i.PropTypes.string,aspectRatioStartPoint:i.PropTypes.oneOfType([i.PropTypes.number,i.PropTypes.bool])},getDefaultProps:function(){return{width:320,height:180,delayed:!1,background:!1,aspectRatioStartPoint:!1}},getInitialState:function(){var t=this.getClosestGreaterWidth(this.props.width);return{delayed:this.props.delayed,width:t,height:this.calcHeight(this.props.width),background:this.props.background,ratioStartPoint:this.isWidthAboveRatioStartPoint(t)}},componentWillUnmount:function(){window.removeEventListener&&(window.removeEventListener("resize-debounced",this.state.resizeHandler),window.removeEventListener("orientationchange",this.state.resizeHandler),this.props.triggerResizeOnClick&&window.removeEventListener("click",this.state.resizeHandler))},componentDidMount:function(){var t=function(){var t=this.getClosestGreaterWidth(this.node.parentNode.clientWidth);this.setState({width:t,height:this.calcHeight(t)})}.bind(this);window.addEventListener&&(window.addEventListener("resize-debounced",t),window.addEventListener("orientationchange",t),this.props.triggerResizeOnClick&&window.addEventListener("click",t));var e=this.getClosestGreaterWidth(this.node.parentNode.clientWidth),n=this.calcHeight(e);this.setState({delayed:!1,width:e,height:n,resizeHandler:t})},hdpiEnabled:function(){return this.props.hasOwnProperty("hidpi")&&!0===this.props.hidpi&&window.devicePixelRatio>1},defaultInterpolator:function(t,e){var n="";return this.hdpiEnabled()&&(n="-hidpi"),t.replace(/{width}/g,e+n)},interpolate:function(t,e){return this.props.customInterpolator?this.props.customInterpolator(t,e):this.defaultInterpolator(t,e)},getClosestGreaterWidth:function(t){for(var e=this.props.availableWidths||r,n=0;n<e.length;n+=1){var i=e[n];if(i>=t)return i}return e[e.length-1]},calcHeight:function(t){var e=this.getRatio(this.props.keepAspectRatio);return Math.floor(t/e)},getRatio:function(t){var e=1;if("string"==typeof t){var n=/^(\d{1,2})\:(\d{1,2})/g,i=n.exec(t);i.length>0&&(e=i[1]/i[2])}return e},isWidthAboveRatioStartPoint:function(t){return"string"==typeof this.props.keepAspectRatio&&("number"==typeof this.props.aspectRatioStartPoint&&this.props.aspectRatioStartPoint<t||!1===this.props.aspectRatioStartPoint)},setNode:function(t){this.node=t},render:function(){var t,e,n,r=this.state.width;return n=this.isWidthAboveRatioStartPoint(r)?{maxHeight:this.state.height}:{},this.state.delayed?e=i.createElement("img",{ref:this.setNode,src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}):this.state.background?(t={backgroundImage:"url("+this.interpolate(this.props.src,this.state.width)+")"},e=i.createElement("div",{ref:this.setNode,style:t,className:this.props.className})):e=i.createElement("img",{ref:this.setNode,src:this.interpolate(this.props.src,this.state.width),alt:this.props.alt,className:this.props.className,style:n}),e}})},function(t,e,n){var i=n(117);t.exports=function(){function t(t,e){window.addEventListener?window.addEventListener(t,e,!1):document.documentElement.attachEvent("onpropertychange",function(n){n.propertyName===t&&e()})}function e(t){var e;document.createEvent?(e=document.createEvent("UIEvents"),e.initEvent(t,!1,!0),window.dispatchEvent(e)):(e=document.documentElement[t],e+=1)}function n(t){return setTimeout(function(){e(t+"-debounced")},s)}var r,o,s=50;i.isClientSide()&&(t("resize",function(){clearTimeout(r),r=n("resize")}),t("scroll",function(){clearTimeout(o),o=n("scroll")}))}()},function(t,e){t.exports=Morph},function(t,e,n){"use strict";n(0);var i=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(8)),o=r.default.createClass({displayName:"LoadingSpinner",render:function(){var t={xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 32 32",className:"game-wrapper__loading-spinner",ref:"loading"};return r.default.createElement("svg",t,r.default.createElement("path",{d:"M29.8 8l-3.5 2c1 1.8 1.6 3.8 1.6 6 0 6.6-5.4 12-12 12S4 22.6 4 16 9.4 4 16 4V0C7.2 0 0 7.2 0 16s7.2 16 16 16 16-7.2 16-16c0-2.9-.8-5.6-2.2-8z"}))}});o.displayName="Childrens-Games-View__Loading-Spinner";var s=o;e.default=s},function(t,e,n){"use strict";n(0);var i=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(8)),o=r.default.createClass({displayName:"PlayIcon",render:function(){return r.default.createElement("button",{type:"button",className:"game-wrapper__cta-button"},r.default.createElement("div",{className:"game-wrapper__cta-icon"},r.default.createElement("svg",{viewBox:"0 0 32 32"},r.default.createElement("path",{fill:"#fff",d:"M8 7.5c-1.9 0-3.5 1.6-3.5 3.5s1.6 3.5 3.5 3.5 3.5-1.6 3.5-3.5S9.9 7.5 8 7.5z"}),r.default.createElement("path",{fill:"#fff",d:"M24 3c-2 0-3.9.8-5.3 2h-5.4C11.9 3.8 10 3 8 3c-4.4 0-8 3.6-8 8v18h6l6-10h8l6 10h6V11c0-4.4-3.6-8-8-8zm0 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM8 17c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm12-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm4 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm4-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}))))}});o.displayName="Childrens-Games-View__Play-Icon";var s=o;e.default=s},function(t,e,n){"use strict";n(16),n(4),n(7),n(0);var i=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(16),n(4),n(7);var r=i(n(128)),o=function(t){var e=document.createElement("script");return e.type="text/javascript",e.charset="utf-8",e.defer=!1,e.async=!1,e.text=function(t){return t.replace(/<script[^>]*>/gi,"").replace(/<\/script>/gi,"")}(t.inlineHead),e},s={inject:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return new Promise(function(n,i){r.default.init(e).then(function(e){var n=o(e);t.appendChild(n)}).then(function(){requirejs(["idcta-v2/idcta-1"],function(t){n(t)},i)}).catch(i)})}};e.default=s},function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var i=n(19),r=n(76),o=n(77),s=n(6),a=n(14),u=n(78),c={},l={},e=t.exports=function(t,e,n,f,d){var p,h,_,g,v=d?function(){return t}:u(t),m=i(n,f,e?2:1),E=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(p=a(t.length);p>E;E++)if((g=e?m(s(h=t[E])[0],h[1]):m(t[E]))===c||g===l)return g}else for(_=v.call(t);!(h=_.next()).done;)if((g=r(_,m,h.value,e))===c||g===l)return g};e.BREAK=c,e.RETURN=l},function(t,e,n){var i=n(5),r=n(80).set,o=i.MutationObserver||i.WebKitMutationObserver,s=i.process,a=i.Promise,u="process"==n(25)(s);t.exports=function(){var t,e,n,c=function(){var i,r;for(u&&(i=s.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(u)n=function(){s.nextTick(c)};else if(!o||i.navigator&&i.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(c)}}else n=function(){r.call(i,c)};else{var f=!0,d=document.createTextNode("");new o(c).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var i=n(5),r=i.navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var i=n(6),r=n(9),o=n(82);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var i=n(18);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},function(t,e,n){"use strict";n(16),n(4),n(0);var i=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(16),n(4);var r=i(n(61)),o=i(n(130)),s=function(t){return new Promise(function(e,n){var i=setTimeout(n,t,o.default.timeOut);(0,r.default)("https://web.archive.org/web/20191108214155/https://idcta.api.bbc.co.uk/idcta/init").then(function(t){return clearTimeout(i),200!==t.status&&n(o.default.unavailable),t.json().then(e).catch(function(){n(o.default.unavailable)})}).catch(function(){clearTimeout(i),n(o.default.unavailable)})})},a=function t(e,n){if(0===n)return e();var i=n;return e().catch(function(){return t(e,i-=1)})},u={init:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,n=t;return a(function(){return s(e)},n-=1)}};e.default=u},function(t,e,n){"use strict";function i(t){return t&&DataView.prototype.isPrototypeOf(t)}function r(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function o(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return b.iterable&&(e[Symbol.iterator]=function(){return e}),e}function a(t){this.map={},t instanceof a?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function u(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function c(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function l(t){var e=new FileReader,n=c(e);return e.readAsArrayBuffer(t),n}function f(t){var e=new FileReader,n=c(e);return e.readAsText(t),n}function d(t){for(var e=new Uint8Array(t),n=new Array(e.length),i=0;i<e.length;i++)n[i]=String.fromCharCode(e[i]);return n.join("")}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:b.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:b.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:b.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():b.arrayBuffer&&b.blob&&i(t)?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):b.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||S(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):b.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},b.blob&&(this.blob=function(){var t=u(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(l)}),this.text=function(){var t=u(this);if(t)return t;if(this._bodyBlob)return f(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(d(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},b.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(t){var e=t.toUpperCase();return I.indexOf(e)>-1?e:t}function g(t,e){e=e||{};var n=e.body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new a(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new a(e.headers)),this.method=_(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function v(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}}),e}function m(t){var e=new a;return t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var n=t.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();e.append(i,r)}}),e}function E(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new a(e.headers),this.url=e.url||"",this._initBody(t)}function y(t,e){return new Promise(function(n,i){function r(){s.abort()}var o=new g(t,e);if(o.signal&&o.signal.aborted)return i(new C("Aborted","AbortError"));var s=new XMLHttpRequest;s.onload=function(){var t={status:s.status,statusText:s.statusText,headers:m(s.getAllResponseHeaders()||"")};t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL");var e="response"in s?s.response:s.responseText;n(new E(e,t))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new C("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&b.blob&&(s.responseType="blob"),o.headers.forEach(function(t,e){s.setRequestHeader(e,t)}),o.signal&&(o.signal.addEventListener("abort",r),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",r)}),s.send(void 0===o._bodyInit?null:o._bodyInit)})}Object.defineProperty(e,"__esModule",{value:!0}),e.Headers=a,e.Request=g,e.Response=E,n.d(e,"DOMException",function(){return C}),e.fetch=y;var b={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(b.arrayBuffer)var A=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],S=ArrayBuffer.isView||function(t){return t&&A.indexOf(Object.prototype.toString.call(t))>-1};a.prototype.append=function(t,e){t=r(t),e=o(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},a.prototype.delete=function(t){delete this.map[r(t)]},a.prototype.get=function(t){return t=r(t),this.has(t)?this.map[t]:null},a.prototype.has=function(t){return this.map.hasOwnProperty(r(t))},a.prototype.set=function(t,e){this.map[r(t)]=o(e)},a.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},a.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),s(t)},a.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),s(t)},a.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),s(t)},b.iterable&&(a.prototype[Symbol.iterator]=a.prototype.entries);var I=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},h.call(g.prototype),h.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},E.error=function(){var t=new E(null,{status:0,statusText:""});return t.type="error",t};var T=[301,302,303,307,308];E.redirect=function(t,e){if(-1===T.indexOf(e))throw new RangeError("Invalid status code");return new E(null,{status:e,headers:{location:t}})};var C=self.DOMException;try{new C}catch(t){C=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},C.prototype=Object.create(Error.prototype),C.prototype.constructor=C}y.polyfill=!0,self.fetch||(self.fetch=y,self.Headers=a,self.Request=g,self.Response=E)},function(t,e,n){"use strict";n(0),n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=new Error("The IDCTA service timed-out."),r=new Error("The IDCTA service is unavailable."),o={timeOut:i,unavailable:r};e.default=o},function(t,e,n){"use strict";n(12),n(15),n(32),n(0);var i=n(48),r=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(12);var o=r(n(55));n(15),n(32);var s=r(n(27)),a=r(n(28)),u=r(n(29)),c=r(n(30)),l=r(n(31)),f=r(n(8)),d=i(n(85)),p=function(t){return function(){t.gmi.sendStatsEvent("settings","close"),t.closeSettingsView()}},h=function(t){function e(t){var n;return(0,s.default)(this,e),n=(0,u.default)(this,(0,c.default)(e).call(this,t)),n.setInitialState(t),n.keyIsPressed=!1,n}return(0,l.default)(e,t),(0,a.default)(e,[{key:"componentDidMount",value:function(){d.init(this.modalDialogElement,p(this.props))}},{key:"getStateFromGmi",value:function(t,e){return void 0!==t[e]?!0===t[e]:t.gameData&&void 0!==t.gameData[e]?!0===t.gameData[e]:void 0}},{key:"setInitialState",value:function(t){var e=this,n=t.gmi.getAllSettings();this.state={},this.initialState={},this.state.titleHasFocus=!0,t.gmiOptions.settingsConfig&&t.gmiOptions.settingsConfig.pages&&t.gmiOptions.settingsConfig.pages.length&&t.gmiOptions.settingsConfig.pages.forEach(function(t){t.settings.forEach(function(t){var i=t.key.toLowerCase(),r="setting-".concat(i),o=e.getStateFromGmi(n,i);e.state[r]=o,e.initialState[i]=o})})}},{key:"interactWithGmi",value:function(t,e,n){var i={muted:this.props.gmi.setMuted,audio:this.props.gmi.setAudio,subtitles:this.props.gmi.setSubtitles,motion:this.props.gmi.setMotion};e in i?i[e](n):this.props.gmi.setGameData(e,n),this.props.gmi.sendStatsEvent(e,n?"on":"off")}},{key:"handleToggle",value:function(t,e){var n="setting-".concat(e),i={},r=!this.state[n];i[n]=r,this.setState(i),this.interactWithGmi(t,e,r),t.onSettingChanged(e,r)}},{key:"handleKeyDown",value:function(t){var e=32===t.keyCode,n=13===t.keyCode;9===t.keyCode||t.preventDefault(),(e||n)&&!1===this.keyIsPressed&&(t.target.click(),this.keyIsPressed=!0)}},{key:"handleKeyUp",value:function(){this.keyIsPressed=!1}},{key:"renderToggle",value:function(t,e){var n=this,i=!0===this.state["setting-".concat(e)],r=i?"on":"off",o="cage-setting__toggle_button cage-setting__toggle_button--".concat(r),s=i?36:16,a={id:"".concat(e,"-button"),className:"cage-setting__toggle-container ".concat(o),role:"checkbox",tabIndex:"0","aria-checked":i,"aria-label":e,onClick:function(){n.handleToggle(t,e)},onKeyDown:this.handleKeyDown.bind(this),onKeyUp:this.handleKeyUp.bind(this)};return f.default.createElement("div",a,f.default.createElement("svg",{className:"cage-setting__toggle-icon",viewBox:"0 0 52 32",preserveAspectRatio:"xMaxYMin meet",width:"52",height:"32",focusable:"false"},f.default.createElement("svg",{width:"100%",height:"100%",focusable:"false"},f.default.createElement("rect",{className:"cage-setting__toggle-outline",fill:"#D8D8D8",x:"0",y:"0",width:"100%",height:"100%",rx:"16"}),f.default.createElement("ellipse",{className:"cage-setting__toggle-slider",fill:"#FFFFFF",cx:s,cy:"16.054902",rx:"14",ry:"14.054902"}))))}},{key:"renderCloseButton",value:function(){var t={"aria-label":"close settings",className:"cage-overlay__close-button",type:"button",tabIndex:"0",onKeyDown:this.handleKeyDown.bind(this),onKeyUp:this.handleKeyUp.bind(this)};return f.default.createElement("button",(0,o.default)({type:"button"},t),f.default.createElement("svg",{className:"cage-overlay__close-icon",viewBox:"0 0 48 48",preserveAspectRatio:"xMaxYMin meet",width:"48px",height:"48px",focusable:"false"},f.default.createElement("svg",{width:"100%",height:"100%",focusable:"false"},f.default.createElement("path",{className:"cage-overlay__close-icon-circle",d:"M24,48 L24,48 C10.7451429,48 0,37.2548571 0,24 L0,24 C0,10.7451429 10.7451429,0 24,0 L24,0 C37.2548571,0 48,10.7451429 48,24 L48,24 C48,37.2548571 37.2548571,48 24,48"}),f.default.createElement("polygon",{className:"cage-overlay__close-icon-cross",fill:"#50505D",points:"26.0225143 23.9948571 33.1390857 31.1182857 31.1196571 33.1377143 23.9962286 26.0211429 16.8796571 33.1377143 14.8533714 31.1182857 21.9768 23.9948571 14.8533714 16.8782857 16.8796571 14.852 23.9962286 21.9754286 31.1196571 14.852 33.1390857 16.8782857"}))))}},{key:"renderSetting",value:function(t,e,n,i){var r="".concat(i,"-").concat(n),o=e.key.toLowerCase(),s=f.default.createElement("label",null,f.default.createElement("div",{className:"cage-setting__info",htmlFor:"".concat(o,"-button")},f.default.createElement("div",{className:"cage-setting__title"},e.title),f.default.createElement("div",{className:"cage-setting__description"},e.description)),f.default.createElement("div",{className:"cage-setting__toggle"},this.renderToggle(t,o)));return f.default.createElement("li",{key:r,className:"cage-setting"},s)}},{key:"renderSettingsList",value:function(t){var e=this;return t.gmiOptions.settingsConfig.pages.map(function(n,i){var r=n.settings.map(function(n,r){return e.renderSetting(t,n,r,i)}),o="".concat(n,"-").concat(i);return f.default.createElement("li",{key:"".concat(n,"-").concat(o)},f.default.createElement("div",{className:"cage-overlay__subheading",key:"".concat(o,"-subheading")},n.title),f.default.createElement("ul",null,r))})}},{key:"render",value:function(){var t=this,e="".concat(this.props.isMobile?"cage-overlay__modal--mobile":"");return f.default.createElement("div",{className:"cage-overlay"},f.default.createElement("div",{className:e,"aria-labelledby":"settings-label",ref:function(e){t.modalDialogElement=e}},f.default.createElement("div",{className:"cage-overlay__title"},this.renderCloseButton(),f.default.createElement("div",{id:"settings-label",className:"cage-overlay__title-text"},"Settings")),f.default.createElement("div",{className:"cage-overlay__content"},f.default.createElement("form",null,f.default.createElement("ul",null,this.renderSettingsList(this.props))))))}}]),e}(f.default.Component);h.displayName="Childrens-Games-View__Settings-Screen",h.propTypes={isMobile:f.default.PropTypes.bool.isRequired,gmi:f.default.PropTypes.object.isRequired,gmiOptions:f.default.PropTypes.object.isRequired,closeSettingsView:f.default.PropTypes.func.isRequired,onSettingChanged:f.default.PropTypes.func.isRequired};var _=h;e.default=_},function(t,e,n){var i=n(133);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){var i=n(9),r=n(134),o=n(2)("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var i=n(25);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(43),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},function(t,e,n){var i=n(64),r=n(26);t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},function(t,e,n){var i=n(2)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var i=n(88),r=n(46),o=n(60),s={};n(17)(s,n(2)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var i=n(13),r=n(6),o=n(49);t.exports=n(10)?Object.defineProperties:function(t,e){r(t);for(var n,s=o(e),a=s.length,u=0;a>u;)i.f(t,n=s[u++],e[n]);return t}},function(t,e,n){var i=n(41),r=n(21),o=n(65)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var i=n(1),r=n(23),o=n(11);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],s={};s[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",s)}},function(t,e,n){"use strict";var i=n(13),r=n(46);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){"use strict";n(7),n(0);var i=n(48),r=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.AchievementNotification=void 0,n(7);var o=r(n(27)),s=r(n(28)),a=r(n(29)),u=r(n(30)),c=r(n(31)),l=r(n(8)),f=r(n(67)),d=r(n(92)),p=i(n(145)),h=function(t){function e(t){var n;return(0,o.default)(this,e),n=(0,a.default)(this,(0,u.default)(e).call(this,t)),n.toastQueue=[],n.notificationPlaying=!1,n.state={notificationKey:void 0,notificationName:void 0,notificationDescription:void 0,gmi:t.gmi},n}return(0,c.default)(e,t),(0,s.default)(e,[{key:"componentDidMount",value:function(){p.init(this.state.gmi.getAllSettings,window)}},{key:"componentWillReceiveProps",value:function(t){t.notificationKey!==this.props.notificationKey&&this.toastQueue.push(t),this.queueProceed()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.clearNotification),this.clearState()}},{key:"setupNotification",value:function(){this.notificationPlaying=!0,this.configPath=this.state.gmi.embedVars.configPath,this.iconTitle=this.state.notificationKey.toLowerCase().replace(/_/g,"-"),this.notificationStyle={backgroundImage:"url(".concat((0,f.default)(),"/assets/achievements/achievementNotiBox.svg)")},this.notificationTrophyStyle={backgroundImage:"url(".concat((0,f.default)(),"/assets/achievements/achievementNotiTrophy.svg)")}}},{key:"clearState",value:function(){this.notificationPlaying=!1,this.setState({notificationKey:void 0,notificationName:void 0,notificationDescription:void 0})}},{key:"playAnimation",value:function(t){var e=this;t&&(this.setState({notificationKey:t.notificationKey,notificationName:t.notificationName,notificationDescription:t.notificationDescription,gmi:t.gmi}),clearTimeout(this.clearNotification),this.clearNotification=setTimeout(function(){e.clearState(),e.queueProceed()},7200))}},{key:"queueProceed",value:function(){if(!this.notificationPlaying){var t=this.toastQueue.shift();this.playAnimation(t)}}},{key:"renderNotification",value:function(){return this.setupNotification(),p.play("notification"),l.default.createElement("div",{className:"cage-achievement-toast__container",style:this.notificationStyle},l.default.createElement("img",{className:"cage-achievement-toast__icon",alt:this.state.notificationName,src:"".concat(this.state.gmi.gameDir).concat(this.configPath,"/achievements/").concat(this.iconTitle,".png")}),l.default.createElement("div",{className:"cage-achievement-toast__inner"},l.default.createElement("div",{className:"cage-achievement-toast__trophy",style:this.notificationTrophyStyle}),l.default.createElement("div",{className:"cage-achievement-toast__title"},"Achievement Unlocked"),l.default.createElement("div",{className:"cage-achievement-toast__name"},l.default.createElement(d.default,null),this.state.notificationName),l.default.createElement("div",{className:"cage-achievement-toast__description"},this.state.notificationDescription)))}},{key:"render",value:function(){return l.default.createElement("div",{className:"cage-achievement-notification"},this.state.notificationKey&&this.renderNotification())}}]),e}(l.default.Component);e.AchievementNotification=h,h.displayName="Childrens-Games-View__Achievements-Notification",h.propTypes={notificationKey:l.default.PropTypes.oneOfType([l.default.PropTypes.string,l.default.PropTypes.bool]),notificationName:l.default.PropTypes.oneOfType([l.default.PropTypes.string,l.default.PropTypes.bool]),notificationDescription:l.default.PropTypes.oneOfType([l.default.PropTypes.string,l.default.PropTypes.bool]),gmi:l.default.PropTypes.object.isRequired}},function(t,e,n){"use strict";n(0);var i=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.play=e.init=void 0;var r,o,s=i(n(67)),a={},u=function(t){return t.AudioContext||t.webkitAudioContext},c=function(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){return r.decodeAudioData(n.response,e)},n.send()},l=function(t,e){o=t;var n=u(e);if(n){r=new n,c("".concat((0,s.default)(),"/assets/achievements/notification.mp4"),function(t){a.notification=t});var i=function t(){r.resume(),document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0)};document.addEventListener("touchstart",i,!0),document.addEventListener("touchend",i,!0),document.addEventListener("click",i,!0)}};e.init=l;var f=function(t){var e=r.createBufferSource();return e.connect(r.destination),e.buffer=t,e.loop=!1,e.start=e.start||e.noteOn,e},d=function(t){r&&!o().muted&&f(a[t]).start(0)};e.play=d},function(t,e,n){"use strict";n(15),n(12),n(93),n(38),n(7),n(0);var i=n(48),r=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.AchievementsScreen=void 0,n(15);var o=r(n(27)),s=r(n(28)),a=r(n(29)),u=r(n(30)),c=r(n(31));n(12),n(93);var l=r(n(55));n(38);var f=r(n(147));n(7);var d=r(n(8)),p=r(n(67)),h=r(n(92)),_=i(n(85)),g=function(t){return function(){return t.gmi.achievements.show(!1)}},v=function(t){var e=t.maxProgress,n=t.progress||0;return!(!e||n>=e)&&d.default.createElement("div",null,d.default.createElement("progress",{max:e,value:n,"aria-valuenow":n,"aria-valuemin":"0","aria-valuemax":e}),n," / ",e)},m=function(t){return d.default.createElement("span",{className:"cage-achievement__hintline"}," ",d.default.createElement("span",{className:"cage-achievement__hintline-prefix"},t.additional.prefix,":")," ",d.default.createElement("span",{className:"cage-achievement__hintline-text"},t.additional.text))},E=function(t,e){return function(n){var i="".concat((0,p.default)(),"/assets/achievements/lock.svg"),r=n.key.toLowerCase().replace(/_/g,"-"),o="".concat(t).concat(e,"/achievements/").concat(r,".png"),s=["cage-achievement"].concat((0,f.default)(n.achieved?[]:["cage-achievement--locked"])),a={className:"cage-achievement__icon",src:n.achieved?o:i,"aria-label":"Achievement ".concat(n.achieved?"unlocked":"locked"),width:"74px",height:"74px"};return d.default.createElement("li",{className:s.join(" "),key:n.key},d.default.createElement("img",(0,l.default)({},a,{alt:n.name})),d.default.createElement("div",{className:"cage-achievement__inner"},d.default.createElement(h.default,null),d.default.createElement("h2",{className:"cage-achievement__title"},n.name),d.default.createElement("div",{className:"cage-achievement__description"},n.description,n.additional&&m(n)),v(n)))}},y=function(t,e){return e.achieved-t.achieved},b=function(t,e){var n=(t.progress?t.progress:0)/(t.maxProgress?t.maxProgress:1);return(e.progress?e.progress:0)/(e.maxProgress?e.maxProgress:1)-n},A=function(t,e){return y(t,e)||b(t,e)},S=function(t){var e=t.gmi.embedVars.configPath,n=t.gmi.gameDir,i=t.gmi.achievements.get();return i.sort(A),d.default.createElement("ul",null,i.map(E(n,e)))},I=function(t){function e(t){var n;return(0,o.default)(this,e),n=(0,a.default)(this,(0,u.default)(e).call(this,t)),n.setInitialState(t),n.keyIsPressed=!1,n}return(0,c.default)(e,t),(0,s.default)(e,[{key:"componentDidMount",value:function(){this.props.gmi.sendStatsEvent("achievements","open"),this.props.gmi.setStatsScreen("achievements"),_.init(this.modalDialogElement,g(this.props))}},{key:"setInitialState",value:function(){this.state={},this.initialState={}}},{key:"handleKeyDownOnCloseButton",value:function(t){var e=32===t.keyCode,n=13===t.keyCode;9===t.keyCode||t.preventDefault(),(e||n)&&!1===this.keyIsPressed&&t.target.click()}},{key:"renderCloseButton",value:function(){var t={"aria-label":"close achievements",className:"cage-overlay__close-button",type:"button",tabIndex:"0",onKeyDown:this.handleKeyDownOnCloseButton.bind(this)};return d.default.createElement("button",(0,l.default)({type:"button"},t),d.default.createElement("svg",{className:"cage-overlay__close-icon",viewBox:"0 0 48 48",preserveAspectRatio:"xMaxYMin meet",width:"44px",height:"44px",focusable:"false"},d.default.createElement("svg",{width:"100%",height:"100%",focusable:"false"},d.default.createElement("path",{className:"cage-overlay__close-icon-circle",d:"M24,48 L24,48 C10.7451429,48 0,37.2548571 0,24 L0,24 C0,10.7451429 10.7451429,0 24,0 L24,0 C37.2548571,0 48,10.7451429 48,24 L48,24 C48,37.2548571 37.2548571,48 24,48"}),d.default.createElement("polygon",{className:"cage-overlay__close-icon-cross",fill:"rgb( 42, 32, 92)",points:"26.0225143 23.9948571 33.1390857 31.1182857 31.1196571 33.1377143 23.9962286 26.0211429 16.8796571 33.1377143 14.8533714 31.1182857 21.9768 23.9948571 14.8533714 16.8782857 16.8796571 14.852 23.9962286 21.9754286 31.1196571 14.852 33.1390857 16.8782857"}))))}},{key:"render",value:function(){var t=this;return d.default.createElement("div",{className:"cage-overlay"},d.default.createElement("div",{className:"cage-achievements","aria-labelledby":"achievements-label",ref:function(e){t.modalDialogElement=e}},d.default.createElement("div",{className:"cage-overlay__title"},this.renderCloseButton(),d.default.createElement("div",{className:"cage-overlay__title-text",id:"achievements-label"},"Achievements")),d.default.createElement("div",{className:"cage-overlay__content"},S(this.props))))}}]),e}(d.default.Component);e.AchievementsScreen=I,I.displayName="Childrens-Games-View__Achievements-Screen",I.propTypes={gmi:d.default.PropTypes.shape({embedVars:d.default.PropTypes.shape({configPath:d.default.PropTypes.string}),achievements:d.default.PropTypes.shape({get:d.default.PropTypes.func}),gameDir:d.default.PropTypes.string,setStatsScreen:d.default.PropTypes.func,sendStatsEvent:d.default.PropTypes.func})}},function(t,e,n){function i(t){return r(t)||o(t)||s()}var r=n(148),o=n(149),s=n(150);t.exports=i},function(t,e){function n(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}t.exports=n},function(t,e){function n(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}t.exports=n},function(t,e){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance")}t.exports=n},function(t,e,n){"use strict";n(0);var i=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(8)),o=r.default.createClass({displayName:"Childrens-Games-View__RotateScreen",getInitialState:function(){return{isPortrait:!1}},componentDidMount:function(){this.showRotateIfPortrait(),this.props.windowObj.addEventListener("orientationchange",this.showRotateIfPortrait,!1)},componentWillUnmount:function(){this.props.windowObj.removeEventListener("orientationchange",this.showRotateIfPortrait,!1)},showRotateIfPortrait:function(){this.setState({isPortrait:0===this.props.windowObj.orientation||180===this.props.windowObj.orientation})},renderRotateIcon:function(){var t={version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink",className:"cage-rotate-screen__icon rotate-90",viewBox:"0 0 500 500",x:0,y:0,xmlSpace:"preserve"};return r.default.createElement("svg",t,r.default.createElement("path",{className:"cage-rotate-screen__path",d:"M389.4,186.2L389.4,186.2c-35.3-64.1-115.7-87.3-179.7-52c-1.2,0.7-2.4,1.4-3.6,2.1 c-0.5,0.3-0.9,0.5-1.4,0.8c-1.5,0.9-2.9,1.8-4.4,2.8c-0.4,0.2-0.7,0.5-1.1,0.7c-1.5,1-3,2.1-4.4,3.1c-0.3,0.2-0.5,0.4-0.8,0.6 c-1.5,1.1-3,2.3-4.4,3.5c-0.2,0.2-0.3,0.3-0.5,0.4c-1.5,1.2-3,2.5-4.4,3.8c-0.1,0.1-0.2,0.2-0.3,0.3c-1.5,1.3-2.9,2.7-4.3,4.1 c-0.1,0.1-0.3,0.3-0.4,0.4c-1.4,1.4-2.7,2.8-4,4.2c-15.2,16.7-26.2,37.4-31.2,60.3l-21.7-39.3L94,198l32,58l16,29l3.7-2.1 l25.1-13.9l5.1-2.8l52.9-29.1l-16-28.9l-35.7,19.7c2.3-9.9,6.1-19.5,11.3-28.3c0,0,0,0,0-0.1c0.7-1.1,1.4-2.2,2.1-3.4 c0.3-0.5,0.6-1,1-1.5c0.3-0.4,0.6-0.8,0.9-1.3c10.1-14.5,24-26.1,40.3-33.6c0.1,0,0.1,0,0.2-0.1c1.3-0.6,2.6-1.2,4-1.7 c0.1,0,0.2-0.1,0.4-0.1c1.3-0.5,2.7-1,4-1.5c0.1,0,0.2-0.1,0.3-0.1c1.4-0.5,2.8-0.9,4.2-1.3c0,0,0.1,0,0.1,0c8.8-2.6,18.2-4,27.8-4 c27.5,0,54.4,11.5,73.4,32.4c0,0.1,0,0.1,0,0.2c16.1,17.6,25.9,40.9,25.9,66.6c0,11.2-1.9,21.9-5.3,31.9c-0.1,0-0.1,0-0.2,0.1 c-7.6,22.6-23.4,42.4-45.8,54.8c-15.2,8.4-31.6,12.3-47.8,12.3v33.1c21.6,0,43.6-5.2,63.8-16.4c11-6.1,20.8-13.5,29.3-22 C391,319.9,406,286.7,406,250C406,226.9,399.9,205.1,389.4,186.2"}))},renderRotateScreen:function(){return r.default.createElement("div",{className:"cage-rotate-screen"},this.renderRotateIcon(),r.default.createElement("div",{className:"cage-rotate-screen__text rotate-90"},"Please rotate your device"))},render:function(){return this.props.showRotate&&this.state.isPortrait&&this.renderRotateScreen()}});o.propTypes={windowObj:r.default.PropTypes.object.isRequired,showRotate:r.default.PropTypes.oneOfType([r.default.PropTypes.string,r.default.PropTypes.bool])};var s=o;e.default=s},function(t,e,n){"use strict";n(0),n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.setUrlOrigin=void 0;var i=function(t,e,n){var i=n.Morph.config.pushEnv,r="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk";if(i){var o=n.location.port?":".concat(n.location.port):"";r="".concat(n.location.protocol,"//").concat(n.location.hostname).concat(o)}else"local"===e&&(r="https://web.archive.org/web/20191108214155/http://localhost:8000");return r+t};e.setUrlOrigin=i},function(t,e){t.exports={transitive:function(t,e){return Morph.requireTransitiveWithCaller("bbc-morph-childrens-games-view@6.0.1",t,e)},selfTransitive:function(t,e){return Morph.requireTransitiveWithCaller("bbc-morph-childrens-games-view@6.0.1",t,e,!0)},transitiveThenUpdate:function(t,e){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-childrens-games-view@6.0.1",t,e)},selfTransitiveThenUpdate:function(t,e){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-childrens-games-view@6.0.1",t,e,!0)}}},function(t,e,n){"use strict";function i(t,e){return t.top===t.self&&e}n(0),n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.isFullscreen=i},function(t,e,n){"use strict";function i(t){return"msMaxTouchPoints"in t.navigator?t.navigator.msMaxTouchPoints>0:"ontouchstart"in t||"onmsgesturechange"in t}function r(t){return t.width+t.height<1160}n(0),n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.isMobile=void 0;var o=function(t,e){return i(t)||r(e)};e.isMobile=o},function(t,e,n){"use strict";function i(t){if(/iP(hone|od)/.test(t.navigator.userAgent)){var e=t.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||0,10)]}}function r(t){var e=i(t);return!!(e&&e[0]>=8)}n(39),n(0),n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.brimNeeded=r,n(39)},function(t,e,n){"use strict";function i(t){var e=/cageEnv=([[a-zA-Z]*)/;return t.match(e)}function r(t){return["versionOverride","viewNonPublished"].indexOf(t)>-1}function o(t,e){var n=i(t),o=Object.keys(e).filter(r).map(function(t){return"".concat(t,"=").concat(e[t])});return n&&o.push("cageEnv=".concat(n[1])),o.push("showFullscreen=true"),o.push("exitGameUrl=".concat(encodeURIComponent(t))),o.join("&")}function s(t,e){if(!e.embedUrl)throw new Error("The morph prop 'embedUrl' has not been passed into the childrens-games-view");var n=e.game||e.gid,i=o(t.location.href,e);return"".concat(decodeURIComponent(e.embedUrl)+n,"?").concat(i)}n(36),n(22),n(4),n(37),n(33),n(12),n(40),n(39),n(0),n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.generate=s,n(36),n(22),n(4),n(37),n(33),n(12),n(40),n(39)},function(t,e,n){"use strict";n(0);var i=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.init=void 0;var r=i(n(61)),o=function(t){var e="".concat(t,"/manifest.json"),n="".concat(t,"/service-worker.js");"serviceWorker"in navigator&&((0,r.default)(e,{method:"HEAD"}).then(function(t){200===t.status&&document.querySelector("#placeholder-manifest").setAttribute("href",e)}),window.addEventListener("load",function(){(0,r.default)(n,{method:"HEAD"}).then(function(t){200===t.status&&navigator.serviceWorker.register(n)})}))};e.init=o},function(t,e,n){"use strict";n(96),n(97),n(40),n(99),n(7),n(39),n(96),n(97),n(40),n(99),n(7),n(39),function(){function e(t,e,n){return"".concat(window.orb.partialCookieOvenUrl,".").concat(t,"/").concat(e,"/").concat(n)}function n(t,e){e&&e(new Error(t))}function i(t){var e=new XMLHttpRequest;return e.withCredentials=!0,e.onload=function(){t&&t(null,e.status)},e.onerror=function(i){n("Request to cross domain cookie service encountered an error with code".concat(e.status,". ").concat(i),t)},e.onabort=function(){n("Request to cross domain cookie service was aborted.",t)},e.ontimeout=function(){n("Request to cross domain cookie service timed out.",t)},e}function r(t){return{com:"co.uk","co.uk":"com"}[t.match(/(co.uk|com)/)[0]]}function o(t,e,n){e="".concat(e).replace(/[^!#$&-+\--:<-\[\]-~]/g,encodeURIComponent),n=n||{};var i="".concat(t,"=").concat(e);return i+=n.path?";path=".concat(n.path):"",i+=n.domain?";domain=".concat(n.domain):"",i+=n.expires?";expires=".concat(n.expires.toUTCString()):"",i+=n.secure?";secure":""}function s(t,e){if(void 0===t)return null;var n={};n.expires=new Date(0),e&&(n.domain=e.domain,n.path=e.path),document.cookie=o(t,"removed",n)}function a(t,e){var n=window.location.pathname.split("/");for(s(t,e);n.length;){var i=n.join("/");""===i&&(i="/"),s(t,{domain:e,path:i}),s(t,{domain:".".concat(e),path:i}),n.pop()}}function u(t){var e=window.location.hostname.split(".");for(s(t),a(t);e.length&&-1==="|co.uk|com|".indexOf("|".concat(e.join("."),"|"));){if(e.length){var n=e.join(".");s(t,{domain:n}),a(t,n)}e.shift()}}function c(t){var e=JSON.stringify(t);if(void 0!==E[e])return E[e];var n="";for(var i in t)t.hasOwnProperty(i)&&y[i]&&!0===t[i]&&(n+=(n?"|":"")+y[i]);return E[e]=new RegExp("^(".concat(n||".*",")$"),"i"),E[e]}function l(){var t=new RegExp("(?:^|; ?)".concat(v,"=(\\d)(\\d)(\\d)($|;)")),e=document.cookie.match(t);return e?{ads:"1"===e[1],personalisation:"1"===e[2],performance:"1"===e[3],necessary:!0}:m}function f(){var t=new Date;return t.setYear(t.getFullYear()+1),t}function d(t,e,n){var i=f(),r="".concat(t.ads?1:0).concat(t.personalisation?1:0).concat(t.performance?1:0),o=_._getCurrentDomain();_.set(v,r,{domain:o,path:"/",expires:i,crossDomainEnabled:e},n);var s=new Date(i.getTime());return s.setMonth(s.getMonth()+1),_.set(g,i.getTime(),{domain:o,path:"/",expires:s}),t}function p(t){var e="".concat(t).match(/^([^=]+)(?==)/);return e&&e.length?e[0]:""}function h(t){return t=t.replace(/[^#$&+\^`|]/g,encodeURIComponent),t=t.replace(/\(/g,"%28").replace(/\)/g,"%29")}var _=t.exports={};_.POLICY_REFRESH_DATE_MILLIS=new Date(2015,4,21,0,0,0,0).getTime();var g="ckns_policy_exp",v="ckns_policy",m={ads:!0,personalisation:!0,performance:!0,necessary:!0},E={},y={personalisation:"ckps_.+|X-AB-iplayer-.+|ACTVTYMKR|BBC_EXAMPLE_COOKIE|BBCIplayer|BBCiPlayerM|BBCIplayerSession|BBCMediaselector|BBCPostcoder|bbctravel|CGISESSID|ed|food-view|forceDesktop|h4|IMRID|locserv|MyLang|myloc|NTABS|ttduserPrefs|V5|WEATHER|BBCScienceDiscoveryPlaylist_.+|bitratePref|correctAnswerCount|genreCookie|highestQuestionScore|incorrectAnswerCount|longestStreak|MSCSProfile|programmes-oap-expanded|quickestAnswer|score|servicePanel|slowestAnswer|totalTimeForAllFormatted|v|BBCwords|score|correctAnswerCount|highestQuestionScore|hploc|BGUID|BBCWEACITY|mstouch|myway|BBCNewsCustomisation|cbbc_anim|cbeebies_snd|bbcsr_usersx|cbeebies_rd|BBC-Latest_Blogs|zh-enc|pref_loc|m|bbcEmp.+|recs-.+|_lvd2|_lvs2|tick|_fcap_CAM1|_rcc2",performance:"ckpf_.+|BBCLiveStatsClick|id|_em_.+|cookies_enabled|mbox|mbox-admin|mc_.+|omniture_unique|s_.+|sc_.+|adpolicyAdDisplayFrequency|ns_session|ns_cookietest|ns_ux|NO-SA|tr_pr1|gvsurvey|bbcsurvey|si_v|sa_labels|obuid|mm_.+|mmid|mmcore.+|mmpa.+",ads:"ckad_.+|rsi_segs|c",necessary:"optimizelyEndUserId|ckns_.+|BBC-UID|blq\\.dPref|idrxvr|s1|atidvisitor|atuserid|sa_labels|_cb_ls|_cb_svref|_chartbeat2|_chartbeat5|_chartbeat4|_cb|_cb_cp|SSO2-UID|BBC-H2-User|rmRpDetectReal|bbcComSurvey|IDENTITY_ENV|IDENTITY|IDENTITY-HTTPS|IDENTITY_SESSION|BBCCOMMENTSMODULESESSID|bbcBump.+|IVOTE_VOTE_HISTORY|pulse|BBCPG|BBCPGstat|ecos\\.dt|_sm_au_[c|d]|AMAuthCookie|AM_REDIRECT_BACK_SERVER_URL|AWSELB|(devN|uatN|n)ightfall(Session|Refresh)Token"};_.cookieOvenRequest=function(t,e,n){try{t.open("GET",e,!0),t.send()}catch(t){n&&n(t)}},_.cookieOvenClient=function(t,n,o,s){if("withCredentials"in new XMLHttpRequest){var a=[v];try{if(!o)throw new Error("Cannot make request to cross domain cookie service when domain is not set.");if(a.indexOf(t)<=-1)throw new Error("Cookie name is not in the whitelist accepted by the cross domain cookie service.");var u=r(o),c=i(s),l=e(u,t,n);_.cookieOvenRequest(c,l,s)}catch(t){s&&s(t)}}else s(new Error("Cannot make request to cross domain cookie service as this browser does not support XmlHttpRequest with credentials."))},_.set=function(t,e,n,i){var r,s;if(void 0!==e){r=h(t),s=o(r,e,n);var a=n&&n.crossDomainEnabled;_.isAllowed(r)&&a&&_.cookieOvenClient(t,e,n.domain,i)}else r=p(t),s=t;_.isAllowed(r)&&(document.cookie=s)},_.isAllowed=function(t){var e,n;return"ckpf_whatever"==t||(e=_.readPolicy(),n=c(e),n.test(t))},_.readPolicy=function(t){var e=l();return t?e[t]:e},_.analyticsPolicyString=function(){var t=l();return"ad".concat(t.ads,"ps").concat(t.personalisation,"pf").concat(t.performance)},_.get=function(t){return t?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*".concat(encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&"),"\\s*\\=\\s*([^;]*).*$)|^.*$")),"$1"))||null:document.cookie},_.isCookiePolicySet=function(){return null!==_.get(v)},_.setDefaultCookiesSingleDomain=function(){d(m,!1)},_._setPolicy=function(t,e,n,i){var r=_.readPolicy();r[t]=!!e,d(r,!n,i)},_.cookiesEnabled=function(){var t="ckns_cookietest".concat(Math.floor(1e5*Math.random()));return this.set(t,"1"),!!this.get(t)&&(this.delete(t),!0)},_.delete=function(t,e){t=h(t),s(t,e)},_.del=_.delete,_._crunch=function(){u("");for(var t=document.cookie.split(";"),e=0;e<t.length;e+=1){var n=t[e].split("="),i=n[0].trim();this.isAllowed(i)||u(i)}},_._getCurrentDomain=function(){try{return window.location.hostname.toLowerCase().match(/.*(bbc\.co\.uk|bbc\.com)\/*/)[1]}catch(t){return}},_._getPolicy=_.readPolicy,String.prototype.trim||function(){var t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;String.prototype.trim=function(){return this.replace(t,"")}}(),_._crunch(),function(t,e){var n=!1,i=!0,r=t.document,o=r.documentElement,s=r.addEventListener,a=s?"addEventListener":"attachEvent",u=s?"removeEventListener":"detachEvent",c=s?"":"on",l=function i(o){"readystatechange"===o.type&&"complete"!==r.readyState||(("load"===o.type?t:r)[u](c+o.type,i,!1),!n&&(n=!0)&&e.call(t,o.type||o))};if("complete"===r.readyState)e.call(t,"lazy");else{if(!s&&o.doScroll){try{i=!t.frameElement}catch(t){}i&&function t(){try{o.doScroll("left")}catch(e){return void setTimeout(t,50)}l("poll")}()}r[a]("".concat(c,"DOMContentLoaded"),l,!1),r[a]("".concat(c,"readystatechange"),l,!1),t[a]("".concat(c,"load"),l,!1)}}(window,function(){_._crunch()}),window.addEventListener?window.addEventListener("beforeunload",function(){_._crunch()},!1):window.attachEvent?window.attachEvent("onbeforeunload",function(){_._crunch()}):window.onbeforeunload=function(){_._crunch()}}()},function(t,e,n){var i=n(1),r=n(26),o=n(11),s=n(161),a="["+s+"]",u="​…",c=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),f=function(t,e,n){var r={},a=o(function(){return!!s[t]()||u[t]()!=u}),c=r[t]=a?e(d):s[t];n&&(r[n]=c),i(i.P+i.F*a,"String",r)},d=f.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(l,"")),t};t.exports=f},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var i=n(9),r=n(163).set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&i(o)&&r&&r(t,o),t}},function(t,e,n){var i=n(9),r=n(6),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=n(19)(Function.call,n(164).f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){var i=n(98),r=n(46),o=n(42),s=n(70),a=n(41),u=n(69),c=Object.getOwnPropertyDescriptor;e.f=n(10)?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(a(t,e))return r(!i.f.call(t,e),t[e])}},function(t,e,n){var i=n(89),r=n(66).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){"use strict";n(16),n(4),n(34),n(35);var i=n(48),r=n(3);n(16),n(4),n(34),n(35);var o,s=r(n(61)),a=r(n(100)),u=i(n(94)),c=i(n(95)),l=r(n(167));t.exports=function(t,e,n){var i=n.location.href,r=t.idAvailabilityData.body.isAvailable,f=t.idConfigData.body?JSON.parse(t.idConfigData.body):{},d=u.getValidUrl(i),p=d?"ptrt=".concat(encodeURIComponent(d)):"";o=l.default,e.then(function(t){o=t}).catch(function(){});var h=function(e){var n=t.data.body.embedVars,i=n.authUrl,r=n.clientId;if(!i||!r)return!1;var o=encodeURIComponent(i),s=(new Date).getTime();return"".concat(f.identityTokenExchangeUrl,"?clientId=").concat(r,"&nonce=").concat(s,"&redirectUri=").concat(o,"&state=").concat(e,"&responseMode=query")},_=function(t){return t.includes("?")?"".concat(t,"&").concat(p):"".concat(t,"?").concat(p)},g=function(t){return new Promise(function(e,n){var i="".concat(_(t),"&context=games");r?(c.openUrlAtWindowTop(window,i),e()):n(a.default.systemUnavailable)})},v=function(){return new Promise(function(t){return t(o.hasCookie())})},m=function(t){return Boolean(200===t||401===t)},E=function(t,e,n){return(0,s.default)(n,{credentials:"include"}).then(function(n){return m(n.status)?t(n.json()):e(a.default.authorisationSystemUnavailable)}).catch(function(){return e(a.default.authorisationSystemUnavailable)})},y=function(t,e,n){return o.initiateTokenRefresh().then(function(){return E(t,e,n)}).catch(function(){return e(a.default.tokenRefreshFailed)})},b=function(t){return console.warn("clientId or AuthUrl have not been supplied"),t(a.default.clientIdOrAuthNotSupplied)};return{status:v,signIn:function(){return g(f.signin_url)},signOut:function(){return g(f.signout_url)},register:function(){return g(f.register_url)},authorise:function(t){return v().then(function(e){return e?new Promise(function(e,n){r||n(a.default.systemUnavailable);var i=h(t);return!1===i?b(n):y(e,n,i)}):(console.warn("User not signed in."),Promise.reject(a.default.notSignedIn))})}}}},function(t,e,n){"use strict";n(16),n(4),n(0);var i=n(3);n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(16),n(4);var r=i(n(100)),o={hasCookie:function(){return!1},policyCheck:function(){return!1},initiateTokenRefresh:function(){return Promise.reject(r.default.idctaNotReady)}};e.default=o},function(t,e,n){!function(e,n){t.exports=function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:i})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(i,r,function(e){return t[e]}.bind(null,r));return i},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=22)}([function(t,e,n){var i;void 0===(i=function(t){"use strict";function e(t){var n={};for(var i in t)try{t[i].constructor===Object?n[i]=e(t[i]):n[i]=t[i]}catch(e){n[i]=t[i]}return n}function i(t,n,r){var o=r?t:e(t);for(var s in n)try{n[s].constructor===Object?o[s]=i(o[s],n[s]):o[s]=n[s]}catch(t){o[s]=n[s]}return o}function r(t,e){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e)return!0;return!1}function o(t,n){for(var r=(n?e(t):t)||{},o=arguments,s=2,a=o.length;s<a;s++)"object"==typeof o[s]?i(r,o[s],!0):r[o[s]]=o[++s];return r}function s(t,e,n){return t||(n?a.warn("AssertionFailed: "+e):a.error("AssertionFailed: "+e)),t}var a=n(2);return{clone:e,combineObjects:i,addKV:function(t,e,n){return n?o(t,!0,e,n):o(t,!0,e)},containsValue:r,extend:o,assert:s,assertContainsValue:function(t,e,n){return s(r(t,e),n)},trim:function(t){if("string"==typeof t)return t=String.prototype.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t){"use strict";function e(t,e,n,i){var r={};return r[u.COMSCORE_CUSTOMER_ID]=t,r[u.COMSCORE_SITE]=e,r[u.COMSCORE_HOST]=n,r[u.SSC_HOSTNAME]=i,r}function i(t){return e(p,t,"sa.bbc.co.uk",".co.uk")}function r(t,n){return e(t,n,"scorecardresearch.com",".com")}var o=n(10),s=n(5),a=n(11),u=n(3),c=n(6),l={};Object.keys(o).map(function(t){l[t]=t});var f={};Object.keys(s).map(function(t){f[t]=t});var d={};Object.keys(a).map(function(t){d[t]=t});var p="16060501",h="18897612",_={};return _.PUBLIC_SERVICE=i("bbc"),_.PUBLIC_SERVICE_STAGE=i("stage"),_.PUBLIC_SERVICE_TEST=i("test"),_.PUBLIC_SERVICE_INT=i("int"),_.PUBLIC_SERVICE_INTRANET=i("intranet"),_.GNL=r("19293874","bbc"),_.GNL_ACCEPTANCE=r(h,"gnl-test"),_.WORLD_SERVICE=r("19999701","bbc"),_.WORLD_SERVICE_ACCEPTANCE=r(h,"ws-test"),_.WORLDWIDE_FEATURES=r("19774467","bbc"),_.WORLDWIDE_FEATURES_ACCEPTANCE=r(h,"features-test"),_.STORE_NONCOMMERCIAL=r("19774474","bbc"),_.STORE_COMMERCIAL=r("19774472","bbc"),_.BRITBOX_ACCEPTANCE=r("18897612","bbc-global-test"),_.BRITBOX=r("23239715","bbc"),{ApplicationType:{WEB:"web",MOBILE_WEB:"mobile-web",RESPONSIVE:"responsive",MOBILE_APP:"mobile-app",BIGSCREEN_HTML:"bigscreen-html",BIGSCREEN_FLASH:"bigscreen-flash",BIGSCREEN_APP:"bigscreen-app",BIGSCREEN_CAST:"bigscreen-cast",DESKTOP_APP:"desktop-app"},WindowState:{FULL:"full",NORMAL:"norm",MINIMISED:"min",MAXIMISED:"max",PICTUREINPICTURE:"picture-in-picture"},MediaIdType:{VERSION:"version",CLIP:"clip",EPISODE:"episode",SERVICE:"service",VPID:"vpid",NONPIPSCONTENTID:"nonpipscontentid",PRODUCER:"producer",BRAND:"brand",SERIES:"series"},MediaClipType:{UNDEFINED:void 0,CLIP:"clip",EPISODE:"episode"},MediaInitiationType:{UNDEFINED:void 0,USER:"user",AUTO:"auto"},AvType:{AUDIO:"audio",VIDEO:"video"},RetrievalType:{STREAM:"stream",DOWNLOAD:"download"},Form:{LONG:"long",SHORT:"short"},PIPsType:{CLIP:"clip",EPISODE:"ep"},MediaConsumptionMode:{ON_DEMAND:"ondemand",LIVE:"live",DOWNLOAD:"download"},EchoCacheMode:{OFFLINE:"offline",ALL:"all"},ManagedLabels:{EVENT_MASTER_BRAND:"event_master_brand",BBC_SITE:"bbc_site",IPLAYER_STATE:"iplayer_state",STORE_ED_TYPE:"store_ed_type",IPLAYER_AVAIL:"iplayer_avail",STORE_REFERRAL:"store_referral",BBC_HASHED_ID:"bbc_hid"},ReportingProfiles:_,EssError:{STATUS_CODE:"status_code",TIMEOUT:"timeout",JSON:"json",RUNTIME:"runtime_error"},Destinations:l,Producers:f,Masterbrands:d,EchoLabelKeys:c}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t){"use strict";function e(t){var e,i;n&&(e="log",i=t,"object"==typeof console&&"function"==typeof console[e]&&console[e](i))}var n=!1;return{enable:function(){n=!0},disable:function(){n=!1},getState:function(){return n},info:e,warn:e,error:function(t){if(n)throw new Error("ECHO_DEBUG: "+t)}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(){"use strict";return{ECHO_ENABLED:"enabled",ECHO_AUTO_START:"auto_start",ECHO_TRACE:"trace",ECHO_DEVICE_ID:"device_id",REPORTING_PROFILE:"reporting_profile",ECHO_CACHE_MODE:"cache_mode",DEBUG_MODE:"disabled",ECHO_NAME:"lib_name",ECHO_VERSION:"lib_version",USE_SSC:"use_ssc",SSC_HOSTNAME:"ssc_hostname",COMSCORE_ENABLED:"comscore.enabled",COMSCORE_HOST:"comscore.host",COMSCORE_SITE:"comscore.site",COMSCORE_CUSTOMER_ID:"comscore.customer_id",COMSCORE_PUBLISHER_SECRET:"comscore.publisher_secret",ATI_ENABLED:"ati.enabled",ATI_LOG:"ati.log",ATI_SSL_LOG:"ati.ssl_log",ATI_DOMAIN:"ati.domain",ATI_PIXEL_PATH:"ati.pixel_path",ATI_FORCE_HTTPS:"ati.force_https",ATI_CACHE_MODE_ALWAYS:"always",ATI_CACHE_MODE_REQUIRED:"required",APP_CATEGORY:"app_category",KEEPALIVE_DURATION:"keepalive_duration",DESTINATION:"bbc_destination",PRODUCER:"bbc_producer",TEST_SERVICE_ENABLED:"test.enabled",TEST_SERVICE_URL:"test.url",BARB_ENABLED:"barb.enabled",BARB_SITE_CODE:"barb.site_code",BARB_DEBUG:"barb.debug",USE_ESS:"use_ess",ESS_HOSTNAME:"ess.hostname"}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t){"use strict";function e(t){return t&&t.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/(^_+)|(_+$)/g,"")}function i(t){var n=e(t);return s.assert(t===n,'Label key can only contain: [a-z0-9_], and no consecutive "_"s or "_" at the begining or end, got "'+t+'". This will be sent as "'+n+'"',!0),n}function r(t){var e=t&&t.toLowerCase().replace(/[^a-z0-9\.]+/g,"_").replace(/\.+/g,".").replace(/(^_+)|(_+$)/g,"")||"no.name.page";return t!==e&&(null!==t&&"string"==typeof t&&0!==t.replace(/ */,"").length||a.error("Countername must be a non-empty string"),t&&-1!==t.search(/-/)?a.warn('Submitted countername ("'+t+'") contains at least one "-". Dashes are not permitted but, for legacy reasons, "-" and "_" are equivalent in DAx. Echo converts dashes to underscores, so the countername will be sent as "'+e+'"'):a.warn('countername may only contain: [a-z0-9._], got "'+t+'". This will be cleaned up and sent as "'+e+'"')),-1===e.search(/\.page$/)&&(e+=".page"),e}function o(t,n){var i,o="",u=n,l=(i=t,d.hasOwnProperty(i)?d[i]:c.CUSTOM);if(l===c.COUNTERNAME&&(n=r(n)),"number"==typeof n||"boolean"==typeof n)return n.toString();if("string"==typeof n){switch(l){case c.EVENT_MASTER_BRAND:o='Label value can only contain [0-9a-z], and no consecutive "_"s and no "_"s or whitespace at the start or end.',u=e(n);break;case c.STRICT:o='Strict Label values can only contain [ 0-9a-z-], and no consecutive "-"s and no "-"s or whitespace at the start or end.',u=(p=n)&&p.toLowerCase().replace(/(^\s+)|(\s+$)/g,"").replace(/[^a-z0-9]+/g,"-").replace(/(^-+)|(-+$)/g,"");break;case c.NO_CLEANSING:break;default:o="Custom Label value cannot contain whitespace at start or end or pipes (|).",u=(f=n)&&f.replace(/(^\s+)|(\s+$)/g,"").replace(/\|/g,"!")}var f,p;return o+='Got "'+n+'", will be replaced with "'+u+'"',s.assert(n===u,o,!0),u}a.error("Label must have number, boolean or string value")}var s=n(0),a=n(2),u=n(1),c=n(25),l=["player_name","ns_st_ws","bbc_site","app_type","app_name","bbc_store_pf","bbc_store_ed","bbc_store_fr","bbc_store_src"],f=["token","guardianToken","nonce","dateOfBirthDay","dateOfBirthMonth","dateOfBirthYear","dateOfBirth","permissionToken"],d={name:c.COUNTERNAME};d[u.ManagedLabels.EVENT_MASTER_BRAND]=c.EVENT_MASTER_BRAND;for(var p=0;p<l.length;p++)d[l[p]]=c.STRICT;return{cleanCounterName:r,cleanLabelKey:i,cleanLabelValue:o,cleanLanguage:function(t){if("number"==typeof t||"boolean"==typeof t)return t.toString();var e=t&&t.replace(/(^\s*)|(\s*$)/g,"").replace(/[^0-9a-zA-Z._]+/g,"-").replace(/(^-)|(-$)/g,"")||"";return s.assert(t===e,'Language label value can only contain [0-9a-zA-Z._-], and no consecutive "-"s and no - at the start or end. Got "'+t+'", will be replaced with "'+e+'"',!0),e},cleanLabels:function(t){var e,n={};for(var r in t)n[e=i(r)]=o(e,t[r]);return n},cleanCustomVariable:function(t){return t&&t.trim().replace(/\[|\]/g,"").replace(/&/g,"$").replace(/\s{1,}/g," ")},removeSensitiveInfo:function(t){if(t&&"string"==typeof t)for(p=0;p<f.length;p++){var e=new RegExp(f[p]+"=[^&]*","g");t=t.replace(e,f[p]+"=XXXX")}return t}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(){"use strict";return{ACCOUNT:1,AFAAN_OROMOO:2,AFRIQUE:3,AMHARIC:4,ARABIC:5,AZERI:6,BBC:7,BBC_ALBA:8,BBC_ARTS:9,BBC_ASIAN_NETWORK:10,BBC_FOOD:11,BBC_FOUR:12,BBC_HD:13,BBC_MUSIC:14,BBC_NEWS_CHANNEL:15,BBC_ONE:16,BBC_PARLIAMENT_CHANNEL:17,BBC_RADIO:18,BBC_RADIO_1:19,BBC_RADIO_1XTRA:20,BBC_RADIO_2:21,BBC_RADIO_3:22,BBC_RADIO_4:23,BBC_RADIO_4_EXTRA:24,BBC_RADIO_5_LIVE:25,BBC_RADIO_6_MUSIC:26,BBC_SCOTLAND:120,BBC_SEND:121,BBC_SHOP:27,BBC_THREE:28,BBC_TWO:29,BBC_WORLD_NEWS:30,BENGALI:31,BITESIZE:32,BRASIL:33,BRITBOX:34,BURMESE:35,CBBC:36,CBEEBIES:37,CHINESE:38,ENGLISH_REGIONS:39,GAHUZA:40,GATEWAY:41,GNL_AUTOS:42,GNL_CAPITAL:43,GNL_CULTURE:44,GNL_EARTH:45,GNL_FUTURE:46,GNL_HOMEPAGE:47,GNL_STORYWORKS:48,GNL_TRAVEL:49,GUJARATI:50,HAUSA:51,HINDI:52,IGBO:53,INDONESIAN:54,IPLAYER:55,JAPANESE:56,KOREAN:57,KYRGYZ:58,MARATHI:59,MEDIA_ACTION:60,MONITORING:61,MUNDO:62,NEPALI:63,NEWS:64,NEWSROUND:65,NORTHERN_IRELAND:66,OTHER:67,OWN_IT:118,PASHTO:68,PERSIAN:69,PIDGIN:70,PROGRAMMES:71,PS_HOMEPAGE:72,PUNJABI:73,REEL:74,RUSSIAN:75,S4C:76,SCHOOL_RADIO:77,SCHOOL_REPORT:78,SCOTLAND:79,SEARCH:80,SERBIAN:81,SINHALA:82,SOMALI:83,SOUNDS:84,SPORT:85,SWAHILI:86,TAMIL:87,TASTER:88,TEACH:119,TELUGU:89,THAI:90,TIGRINYA:91,TURKISH:92,UK_CHINA:93,UKRAINIAN:94,URDU:95,UZBEK:96,VIETNAMESE:97,VOICE:98,VOICE_FIRST_FORMATS:99,WALES:100,WEATHER:101,WEATHER_WATCHERS:102,WORLD_SERVICE_ENGLISH:103,WORKLIFE:104,WS_LEARNING_ENGLISH:105,WS_PARTNERS_B2B:106,YORUBA:107,NEWS_ENGLISH_REGIONS:108,SPORT_ENGLISH_REGIONS:109,NEWS_SCOTLAND:110,SPORT_SCOTLAND:111,NEWS_WALES:112,SPORT_WALES:113,NEWS_NORTHERN_IRELAND:114,SPORT_NORTHERN_IRELAND:115,AUDIENCE_SERVICES:116,WORLD_NEWS_PROGRAMMES:117,getId:function(t){var e;return t&&(e=this[t.toUpperCase()]),e}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){t.exports={BBC_COUNTER_NAME:"name",ECHO_EVENT_NAME:"echo_event",APP_VERSION:"apvr",HASHED_ID:"at",LEVEL_1_SITE:"site",LEVEL_2_SITE:"level2",SECTION:"section",CHAPTER_1:"chapter1",CONTENT_ID:"bbc_content_id",APP_TYPE:"bbc_app_type",APP_NAME:"bbc_app_name",APP_CATEGORY:"app_category",LANGUAGE:"language",URL:"bbc_url",REFERRER_URL:"bbc_referrer_url",CONTENT_TYPE:"bbc_content_type",LIBRARY_VERSION:"bbc_library_version",PAGE_TITLE:"page_title",CUSTOM_VAR_1:"custom_var_1",CUSTOM_VAR_2:"custom_var_2",CUSTOM_VAR_3:"custom_var_3",CUSTOM_VAR_4:"custom_var_4",CUSTOM_VAR_5:"custom_var_5",CUSTOM_VAR_6:"custom_var_6",CUSTOM_VAR_7:"custom_var_7",CUSTOM_VAR_8:"custom_var_8",CUSTOM_VAR_9:"custom_var_9",CUSTOM_VAR_10:"custom_var_10",MEDIA_PLAYER:"bbc_media_player",LOGGED_IN:"bbc_identity",BBC_HID:"bbc_hid",MEDIA_BRAND:"brand",MEDIA_SERIES:"series",IS_BACKGROUND:"is_background",SOURCE:"source",CONTAINER:"container",METADATA:"metadata",PERSONALISATION:"personalisation",RESULT:"result"}},function(t,e,n){t.exports={BBC_APPLICATION_NAME:"app_name",BBC_APPLICATION_TYPE:"app_type",BBC_APPLICATION_VERSION:"app_version",BBC_COUNTER_NAME:"name",DESTINATION:"bbc_destination",PRODUCER:"bbc_producer",BBC_LANGUAGE:"language",DEVICE_ID:"ns_alias",COMSCORE_C1:"c1",COMSCORE_C7:"c7",BBC_MEASUREMENT_LIB_NAME:"ml_name",BBC_MEASUREMENT_LIB_VERSION:"ml_version",ECHO_TRACE:"trace",ECHO_EVENT_NAME:"echo_event",EVENT_TRIGGERED_BY_USER:"ns_st_ui",STREAMSENSE_CUSTOM_EVENT_TYPE:"ns_st_ev",USER_ACTION_TYPE:"action_type",USER_ACTION_NAME:"action_name",PLAYLIST_END:"ns_st_pe",REWIND_FF_RATE:"ffrw_rate",COMSCORE_SITE:"ns_site",COMSCORE_CUSTOMER:"c2",COMSCORE_ENDPOINT:"comscore_endpoint",PLAYER_NAME:"ns_st_mp",PLAYER_VERSION:"ns_st_mv",PLAYER_WINDOW_STATE:"ns_st_ws",PLAYER_VOLUME:"ns_st_vo",PLAYER_POPPED:"bbc_st_pop",PLAYER_SUBTITLED:"bbc_st_sub",PLAYLIST_NAME:"ns_st_pl",PLAYLIST_CLIP_COUNT:"ns_st_cp",PLAYLIST_LENGTH:"ns_st_ca",MEDIA_PID:"ns_st_ci",MEDIA_LENGTH:"ns_st_cl",MEDIA_STREAM_TYPE:"ns_st_ty",MEDIA_IS_LIVE:"ns_st_li",MEDIA_EPISODE_ID:"episode_id",MEDIA_CLIP_ID:"clip_id",MEDIA_CLIP_NUMBER:"ns_st_cn",MEDIA_PART_NUMBER:"ns_st_pn",MEDIA_TOTAL_PARTS:"ns_st_tp",MEDIA_MEDIUM:"bbc_st_med",MEDIA_LIVE_OR_ONDEMAND:"bbc_st_lod",MEDIA_FORM:"bbc_st_mf",MEDIA_RETRIEVAL_TYPE:"bbc_st_ret",MEDIA_SCHEDULE_INDICATOR:"bbc_st_sch",MEDIA_VERSION_ID:"version_id",MEDIA_SERVICE_ID:"service_id",MEDIA_NON_PIPS_CONTENT_ID:"non_pips_content_id",MEDIA_AMBIGUOUS_ID:"ambig_ci",MEDIA_TIMESTAMP:"bbc_st_live_ts",ESS_SUCCESS:"ess_success",ESS_ERROR:"ess_error",ESS_STATUS_CODE:"ess_status_code",APP_PLATFORM_NAME:"ns_ap_pn",APP_PLATFORM_RUNTIME:"ns_ap_pfm",APP_OS_VERSION:"ns_ap_pfv",APP_DEVICE_NAME:"ns_ap_device",APP_SCREEN_RESOLUTION:"ns_ap_res",APP_LANGUAGE:"ns_ap_lang",ENV_CHAR_SET:"ns_c",ENV_TITLE:"c8",ENV_URL:"c7",ENV_REFERRER:"c9",APP_NAME:"ns_ap_an",APP_VERSION:"ns_ap_ver",NO_COOKIES:"ns_nc",COOKIE_POLICY:"bbc_mc",BBC_ID_LOGGED_IN:"bbc_identity",WEB_SCREEN_RES:"screen_resolution",ESS_ENABLED:"ess_enabled",ESS_ENRICHED:"ess_enriched"}},function(t,e,n){var i;void 0===(i=function(t){"use strict";function e(){var t=window.screen||{},e=window.navigator||{},n=window.document||{};this._platformRuntimeEnvironment="html",this._platformOSVersion="5",this._screenResolution=(t.width||"-")+"x"+(t.height||"-"),this._language=e.language||"",this._platformName=e.platform||"",this._charset=n.characterSet||n.defaultCharset||"",this._title=n.title||"",this._url=n.URL||"",this._referrer=n.referrer||"",this._deviceName=null,this._httpGet=null,this._executeCrossDomainGet=null,this._getCookie=null,this._setCookie=null,this._setLocalStorageItem=null,this._getLocalStorageItem=null}var i,r,o,s=n(4),a=n(9),u=n(26),c=!1,l=[];return e._defaultHttpGet=u.httpGet,e._defaultGetCookie=a.getCookieValueByName,e.prototype.getPlatformName=function(){return this._platformName},e.prototype.getPlatformRuntimeEnvironment=function(){return this._platformRuntimeEnvironment},e.prototype.getPlatformOSVersion=function(){return this._platformOSVersion},e.prototype.getDeviceName=function(){return this._deviceName},e.prototype.getScreenResolution=function(){return this._screenResolution},e.prototype.getLanguage=function(){return this._language},e.prototype.getHttpGet=function(){return this._httpGet},e.prototype.setExecuteCrossDomainGet=function(t){this._executeCrossDomainGet=t},e.prototype.getExecuteCrossDomainGet=function(){return this._executeCrossDomainGet?this._executeCrossDomainGet:u.executeCrossDomainGet},e.prototype.getCookieGetter=function(){return this._getCookie},e.prototype.getCookieSetter=function(){return this._setCookie},e.prototype.getCharSet=function(){return this._charset},e.prototype.getTitle=function(){return this._title},e.prototype.getURL=function(){return this._url},e.prototype.getProtocol=function(){return 0!==this.getURL().toLowerCase().indexOf("http:",0)?"https:":"http:"},e.prototype.getReferrer=function(){return this._referrer},e.prototype.setSetLocalStorageItem=function(t){this._setLocalStorageItem=t},e.prototype.getSetLocalStorageItem=function(){return this._setLocalStorageItem},e.prototype.setGetLocalStorageItem=function(t){this._getLocalStorageItem=t},e.prototype.getGetLocalStorageItem=function(){return this._getLocalStorageItem},e.prototype.setPlatformName=function(t){return this._platformName=t,this},e.prototype.setPlatform=function(t,e){return this._platformRuntimeEnvironment=t,this._platformOSVersion=e,this},e.prototype.setDeviceName=function(t){return this._deviceName=t,this},e.prototype.setScreenResolution=function(t){return this._screenResolution=t,this},e.prototype.setLanguage=function(t){return this._language=s.cleanLanguage(t),this},e.prototype.setHttpGet=function(t){return this._httpGet=t,this},e.prototype.setCookieGetter=function(t){return this._getCookie=t,this},e.prototype.setCookieSetter=function(t){return this._setCookie=t,this},e.prototype.setCharSet=function(t){return this._charset=t,this},e.prototype.setTitle=function(t){return this._title=t,this},e.prototype.setURL=function(t){return this._url=t,this},e.prototype.setReferrer=function(t){return this._referrer=t,this},e.setOrbCookies=function(t){return i=t,this},e.getOrbCookies=function(){return i},e.getOrbCookiesPolicy=function(){if(i&&"function"==typeof i.readPolicy)return i.readPolicy()},e.setOrbIdCta=function(t){return r=t,this},e.getOrbIdCta=function(t){var e=function(t,e){t&&"function"==typeof t&&t(e)};if(void 0===r)if(!1!==o){l.push(t);var n=window.require;void 0===o&&n?!(o="function"==typeof n.defined&&n.defined("idcta/idcta-1"))&&n.s&&n.s.contexts&&n.s.contexts._&&n.s.contexts._.config&&n.s.contexts._.config.paths&&n.s.contexts._.config.paths.idcta&&(o=!0):o=!1,o&&!c?(c=!0,window.require(["idcta/idcta-1"],function(t){for(r=t,0;0<l.length;l++)l[0]&&"function"==typeof l[0]&&e(l[0],r)})):!1===o&&e(t)}else e(t);else e(t,r)},e}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(){"use strict";return{getCookieValueByName:function(t,e){var n=t+"=",i=(e||window).document,r={};if(void 0===i||"string"!=typeof i.cookie)return null;for(var o=0,s=(r=i.cookie.split(";")).length;o<s;o++){var a=r[o];if(" "===a.charAt(0)&&(a=a.substring(1,a.length)),0===a.indexOf(n))return a.substring(n.length,a.length)}return null}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(){"use strict";var t=n(5);return{DEFAULT:{id:"596068",defaultProducer:t.BBC,isTest:!0},ACCOUNT:{id:"598250",defaultProducer:t.ACCOUNT,isTest:!1},ACCOUNT_TEST:{id:"598252",defaultProducer:t.ACCOUNT,isTest:!0},AUDIENCE_PORTAL:{id:"602136",defaultProducer:t.AUDIENCE_SERVICES,isTest:!1},AUDIENCE_PORTAL_TEST:{id:"602137",defaultProducer:t.AUDIENCE_SERVICES,isTest:!0},AUDIENCE_SERVICES_PS:{id:"602167",defaultProducer:t.AUDIENCE_SERVICES,isTest:!1},AUDIENCE_SERVICES_PS_TEST:{id:"602168",defaultProducer:t.AUDIENCE_SERVICES,isTest:!0},BBC_CORPORATE_PS:{id:"603550",defaultProducer:t.BBC,isTest:!1},BBC_CORPORATE_PS_TEST:{id:"603551",defaultProducer:t.BBC,isTest:!0},BBC_SHOP:{id:"598253",defaultProducer:t.BBC_SHOP,isTest:!1},BBC_SHOP_TEST:{id:"598254",defaultProducer:t.BBC_SHOP,isTest:!0},BBC_SYNDICATION:{id:"601718",defaultProducer:t.BBC,isTest:!1},BBC_SYNDICATION_TEST:{id:"601719",defaultProducer:t.BBC,isTest:!0},BBC_THREE:{id:"598255",defaultProducer:t.BBC_THREE,isTest:!1},BBC_THREE_TEST:{id:"598256",defaultProducer:t.BBC_THREE,isTest:!0},BITESIZE:{id:"598257",defaultProducer:t.BITESIZE,isTest:!1},BITESIZE_TEST:{id:"598258",defaultProducer:t.BITESIZE,isTest:!0},BLOGS_PS:{id:"603546",defaultProducer:t.BBC,isTest:!1},BLOGS_PS_TEST:{id:"603547",defaultProducer:t.BBC,isTest:!0},BRITBOX:{id:"598259",defaultProducer:t.BRITBOX,isTest:!1},BRITBOX_TEST:{id:"598260",defaultProducer:t.BRITBOX,isTest:!0},CBBC:{id:"598261",defaultProducer:t.CBBC,isTest:!1},CBBC_TEST:{id:"598262",defaultProducer:t.CBBC,isTest:!0},CBEEBIES:{id:"598263",defaultProducer:t.CBEEBIES,isTest:!1},CBEEBIES_TEST:{id:"598264",defaultProducer:t.CBEEBIES,isTest:!0},FEATURE_SITES_GNL:{id:"598265",defaultProducer:t.GNL_HOMEPAGE,isTest:!1},FEATURE_SITES_GNL_TEST:{id:"598266",defaultProducer:t.GNL_HOMEPAGE,isTest:!0},FOOD:{id:"598267",defaultProducer:t.BBC_FOOD,isTest:!1},FOOD_TEST:{id:"598268",defaultProducer:t.BBC_FOOD,isTest:!0},GAMES_PS:{id:"599452",defaultProducer:t.BBC,isTest:!1},GAMES_PS_TEST:{id:"599454",defaultProducer:t.BBC,isTest:!0},GATEWAY:{id:"598269",defaultProducer:t.GATEWAY,isTest:!1},GATEWAY_TEST:{id:"598270",defaultProducer:t.GATEWAY,isTest:!0},HOMEPAGE_GNL:{id:"598271",defaultProducer:t.GNL_HOMEPAGE,isTest:!1},HOMEPAGE_GNL_TEST:{id:"598272",defaultProducer:t.GNL_HOMEPAGE,isTest:!0},HOMEPAGE_PS:{id:"598273",defaultProducer:t.PS_HOMEPAGE,isTest:!1},HOMEPAGE_PS_TEST:{id:"598274",defaultProducer:t.PS_HOMEPAGE,isTest:!0},IDEAS:{id:"598275",defaultProducer:t.BBC,isTest:!1},IDEAS_TEST:{id:"598276",defaultProducer:t.BBC,isTest:!0},IPLAYER:{id:"598277",defaultProducer:t.IPLAYER,isTest:!1},IPLAYER_TEST:{id:"598278",defaultProducer:t.IPLAYER,isTest:!0},MEDIA_ACTION:{id:"598279",defaultProducer:t.MEDIA_ACTION,isTest:!1},MEDIA_ACTION_TEST:{id:"598280",defaultProducer:t.MEDIA_ACTION,isTest:!0},MONITORING:{id:"598281",defaultProducer:t.MONITORING,isTest:!1},MONITORING_TEST:{id:"598282",defaultProducer:t.MONITORING,isTest:!0},MUSIC:{id:"598283",defaultProducer:t.BBC_MUSIC,isTest:!1},MUSIC_TEST:{id:"598284",defaultProducer:t.BBC_MUSIC,isTest:!0},NEWS_PS:{id:"598285",defaultProducer:t.NEWS,isTest:!1},NEWS_PS_TEST:{id:"598286",defaultProducer:t.NEWS,isTest:!0},NEWS_GNL:{id:"598287",defaultProducer:t.NEWS,isTest:!1},NEWS_GNL_TEST:{id:"598288",defaultProducer:t.NEWS,isTest:!0},NEWS_LANGUAGES_GNL:{id:"598289",defaultProducer:t.NEWS,isTest:!1},NEWS_LANGUAGES_GNL_TEST:{id:"598290",defaultProducer:t.NEWS,isTest:!0},NEWS_LANGUAGES_PS:{id:"598291",defaultProducer:t.NEWS,isTest:!1},NEWS_LANGUAGES_PS_TEST:{id:"598292",defaultProducer:t.NEWS,isTest:!0},NEWSROUND:{id:"598293",defaultProducer:t.NEWSROUND,isTest:!1},NEWSROUND_TEST:{id:"598294",defaultProducer:t.NEWSROUND,isTest:!0},OTHER:{id:"598295",defaultProducer:t.OTHER,isTest:!1},OTHER_TEST:{id:"598297",defaultProducer:t.OTHER,isTest:!0},OWN_IT:{id:"598298",defaultProducer:t.CBBC,isTest:!1},OWN_IT_TEST:{id:"598299",defaultProducer:t.CBBC,isTest:!0},PROGRAMMES_PS:{id:"598300",defaultProducer:t.PROGRAMMES,isTest:!1},PROGRAMMES_PS_TEST:{id:"598301",defaultProducer:t.PROGRAMMES,isTest:!0},RED_BUTTON_PS:{id:"601192",defaultProducer:t.BBC,isTest:!1},RED_BUTTON_PS_TEST:{id:"601193",defaultProducer:t.BBC,isTest:!0},REWIND_PS:{id:"603552",defaultProducer:t.BBC,isTest:!1},REWIND_PS_TEST:{id:"603553",defaultProducer:t.BBC,isTest:!0},SEARCH_GNL:{id:"598302",defaultProducer:t.SEARCH,isTest:!1},SEARCH_GNL_TEST:{id:"598303",defaultProducer:t.SEARCH,isTest:!0},SEARCH_PS:{id:"598304",defaultProducer:t.SEARCH,isTest:!1},SEARCH_PS_TEST:{id:"598305",defaultProducer:t.SEARCH,isTest:!0},SOUNDS:{id:"598306",defaultProducer:t.SOUNDS,isTest:!1},SOUNDS_TEST:{id:"598307",defaultProducer:t.SOUNDS,isTest:!0},SPORT_GNL:{id:"598308",defaultProducer:t.SPORT,isTest:!1},SPORT_GNL_TEST:{id:"598309",defaultProducer:t.SPORT,isTest:!0},SPORT_PS:{id:"598310",defaultProducer:t.SPORT,isTest:!1},SPORT_PS_TEST:{id:"598311",defaultProducer:t.SPORT,isTest:!0},STORYWORKS_GNL:{id:"598312",defaultProducer:t.GNL_STORYWORKS,isTest:!1},STORYWORKS_GNL_TEST:{id:"598313",defaultProducer:t.GNL_STORYWORKS,isTest:!0},SUBTITLES_PS:{id:"603548",defaultProducer:t.PROGRAMMES,isTest:!1},SUBTITLES_PS_TEST:{id:"603549",defaultProducer:t.PROGRAMMES,isTest:!0},SYNDICATION_PARTNERS_GNL:{id:"598314",defaultProducer:t.WS_PARTNERS_B2B,isTest:!1},SYNDICATION_PARTNERS_GNL_TEST:{id:"598315",defaultProducer:t.WS_PARTNERS_B2B,isTest:!0},TASTER:{id:"598316",defaultProducer:t.TASTER,isTest:!1},TASTER_TEST:{id:"598317",defaultProducer:t.TASTER,isTest:!0},TEACH:{id:"598318",defaultProducer:t.BBC,isTest:!1},TEACH_TEST:{id:"598320",defaultProducer:t.BBC,isTest:!0},VOICE:{id:"598326",defaultProducer:t.VOICE,isTest:!1},VOICE_TEST:{id:"598328",defaultProducer:t.VOICE,isTest:!0},WEATHER_GNL:{id:"598330",defaultProducer:t.WEATHER,isTest:!1},WEATHER_GNL_TEST:{id:"598332",defaultProducer:t.WEATHER,isTest:!0},WEATHER_PS:{id:"598338",defaultProducer:t.WEATHER,isTest:!1},WEATHER_PS_TEST:{id:"598339",defaultProducer:t.WEATHER,isTest:!0},WS_LEARNING_ENGLISH:{id:"598340",defaultProducer:t.WS_LEARNING_ENGLISH,isTest:!1},WS_LEARNING_ENGLISH_TEST:{id:"598341",defaultProducer:t.WS_LEARNING_ENGLISH,isTest:!0},WS_NEWS_LANGUAGES:{id:"598342",defaultProducer:t.BBC_WORLD_NEWS,isTest:!1},WS_NEWS_LANGUAGES_TEST:{id:"598343",defaultProducer:t.BBC_WORLD_NEWS,isTest:!0},WS_PARTNERS_B2B:{id:"598820",defaultProducer:t.WS_PARTNERS_B2B,isTest:!1},WS_PARTNERS_B2B_TEST:{id:"598823",defaultProducer:t.WS_PARTNERS_B2B,isTest:!0},WS_PROGRAMMES:{id:"598344",defaultProducer:t.PROGRAMMES,isTest:!1},WS_PROGRAMMES_TEST:{id:"598345",defaultProducer:t.PROGRAMMES,isTest:!0},WS_SYNDICATION_PARTNERS:{id:"598346",defaultProducer:t.WS_PARTNERS_B2B,isTest:!1},WS_SYNDICATION_PARTNERS_TEST:{id:"598347",defaultProducer:t.WS_PARTNERS_B2B,isTest:!0},get:function(t){var e;return t&&(e=this[t.toUpperCase()]),e}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(){"use strict";var t=n(5);return{BBC_NEWS:t.BBC_NEWS_CHANNEL,BBC_NEWS24:t.BBC_NEWS_CHANNEL,BBC_WORLD_NEWS:t.BBC_WORLD_NEWS,BBC_AFRIQUE_RADIO:t.AFRIQUE,BBC_AFRIQUE_TV:t.AFRIQUE,BBC_AMHARIC_RADIO:t.AMHARIC,BBC_ARABIC_RADIO:t.ARABIC,BBC_ARABIC_TV:t.ARABIC,BBC_BENGALI_RADIO:t.BENGALI,BBC_BRASIL:t.BRASIL,BBC_BURMESES_RADIO:t.BURMESE,BBC_BURMESES_TV:t.BURMESE,BBC_CANTONESE_RADIO:t.CHINESE,BBC_DARI_RADIO:t.PERSIAN,BBC_GAHUZA_RADIO:t.GAHUZA,BBC_GUJARATI_TV:t.GUJARATI,BBC_HAUSA_RADIO:t.HAUSA,BBC_HAUSA_TV:t.HAUSA,BBC_HINDI_RADIO:t.HINDI,BBC_HINDI_TV:t.HINDI,BBC_IGBO_RADIO:t.IGBO,BBC_IGBO_TV:t.IGBO,BBC_INDONESIAN_RADIO:t.INDONESIAN,BBC_KOREAN_RADIO:t.KOREAN,BBC_KOREAN_TV:t.KOREAN,BBC_KYRGYZ_RADIO:t.KYRGYZ,BBC_KYRGYZ_TV:t.KYRGYZ,BBC_LEARNING_ENGLISH:t.WS_LEARNING_ENGLISH,BBC_MARATHI_TV:t.MARATHI,BBC_MUNDO:t.MUNDO,BBC_NEPALI_RADIO:t.NEPALI,BBC_OROMO_RADIO:t.AFAAN_OROMOO,BBC_PARLIAMENT:t.BBC_PARLIAMENT_CHANNEL,BBC_PASHTO_RADIO:t.PASHTO,BBC_PASHTO_TV:t.PASHTO,BBC_PERSIAN_RADIO:t.PERSIAN,BBC_PERSIAN_TV:t.PERSIAN,BBC_PIDGIN_RADIO:t.PIDGIN,BBC_PIDGIN_TV:t.PIDGIN,BBC_PUNJABI_TV:t.PUNJABI,BBC_RUSSIAN_RADIO:t.RUSSIAN,BBC_RUSSIAN_TV:t.RUSSIAN,BBC_SINHALA_RADIO:t.SINHALA,BBC_SOMALI_RADIO:t.SOMALI,BBC_SOMALI_TV:t.SOMALI,BBC_SWAHILI_RADIO:t.SWAHILI,BBC_SWAHILI_TV:t.SWAHILI,BBC_TAMIL_RADIO:t.TAMIL,BBC_TAMIL_TV:t.TAMIL,BBC_TELUGU_TV:t.TELUGU,BBC_THAI:t.THAI,BBC_TIGRINYA_RADIO:t.TIGRINYA,BBC_UKRAINIAN_TV:t.UKRAINIAN,BBC_URDU_RADIO:t.URDU,BBC_URDU_TV:t.URDU,BBC_UZBEK_RADIO:t.UZBEK,BBC_UZBEK_TV:t.UZBEK,BBC_WEATHER:t.WEATHER,BBC_WORLD_SERVICE:t.WORLD_SERVICE_ENGLISH,BBC_WORLD_SERVICE_TV:t.WORLD_SERVICE_ENGLISH,BBC_YORUBA_RADIO:t.YORUBA,BBC_YORUBA_TV:t.YORUBA,PARLIAMENTS_ONLINE:t.BBC_PARLIAMENT_CHANNEL,BBC_ALBA:t.BBC_ALBA,BBC_CYMRU:t.WALES,BBC_FOUR:t.BBC_FOUR,BBC_HD:t.BBC_HD,BBC_LONDON:t.ENGLISH_REGIONS,BBC_MUSIC:t.BBC_MUSIC,BBC_MUSIC_JAZZ:t.BBC_MUSIC,BBC_ONE:t.BBC_ONE,BBC_ONE_EAST:t.ENGLISH_REGIONS,BBC_ONE_EAST_MIDLANDS:t.ENGLISH_REGIONS,BBC_ONE_EAST_YORKSHIRE:t.ENGLISH_REGIONS,BBC_ONE_LONDON:t.ENGLISH_REGIONS,BBC_ONE_NORTH_EAST:t.ENGLISH_REGIONS,BBC_ONE_NORTH_WEST:t.ENGLISH_REGIONS,BBC_ONE_NORTHERN_IRELAND:t.NORTHERN_IRELAND,BBC_ONE_SCOTLAND:t.SCOTLAND,BBC_ONE_SOUTH:t.ENGLISH_REGIONS,BBC_ONE_SOUTH_EAST:t.ENGLISH_REGIONS,BBC_ONE_SOUTH_WEST:t.ENGLISH_REGIONS,BBC_ONE_WALES:t.WALES,BBC_ONE_WEST:t.ENGLISH_REGIONS,BBC_ONE_WEST_MIDLANDS:t.ENGLISH_REGIONS,BBC_ONE_YORKS:t.ENGLISH_REGIONS,BBC_SCOTLAND:t.BBC_SCOTLAND,BBC_TEES:t.ENGLISH_REGIONS,BBC_THREE:t.BBC_THREE,BBC_TWO:t.BBC_TWO,BBC_TWO_ENGLAND:t.ENGLISH_REGIONS,BBC_TWO_NORTHERN_IRELAND:t.NORTHERN_IRELAND,BBC_TWO_NORTHERN_IRELAND_DIGITAL:t.NORTHERN_IRELAND,BBC_TWO_SCOTLAND:t.SCOTLAND,BBC_TWO_WALES:t.WALES,BBC_WALES:t.WALES,BBC_WM:t.ENGLISH_REGIONS,CBBC:t.CBBC,CBEEBIES:t.CBEEBIES,BBC_1XTRA:t.BBC_RADIO_1XTRA,BBC_6MUSIC:t.BBC_RADIO_6_MUSIC,BBC_7:t.BBC_RADIO_4_EXTRA,BBC_ASIAN_NETWORK:t.BBC_ASIAN_NETWORK,BBC_RADIO_BERKSHIRE:t.ENGLISH_REGIONS,BBC_RADIO_BRISTOL:t.ENGLISH_REGIONS,BBC_RADIO_CAMBRIDGE:t.ENGLISH_REGIONS,BBC_RADIO_CORNWALL:t.ENGLISH_REGIONS,BBC_RADIO_COVENTRY_WARWICKSHIRE:t.ENGLISH_REGIONS,BBC_RADIO_CUMBRIA:t.ENGLISH_REGIONS,BBC_RADIO_CYMRU:t.WALES,BBC_RADIO_CYMRU_2:t.WALES,BBC_RADIO_CYMRU_MWY:t.WALES,BBC_RADIO_DERBY:t.ENGLISH_REGIONS,BBC_RADIO_DEVON:t.ENGLISH_REGIONS,BBC_RADIO_ESSEX:t.ENGLISH_REGIONS,BBC_RADIO_FIVE_LIVE:t.BBC_RADIO_5_LIVE,BBC_RADIO_FIVE_LIVE_OLYMPICS_EXTRA:t.BBC_RADIO_5_LIVE,BBC_RADIO_FIVE_LIVE_SPORTS_EXTRA:t.BBC_RADIO_5_LIVE,BBC_RADIO_FOUR:t.BBC_RADIO_4,BBC_RADIO_FOUR_EXTRA:t.BBC_RADIO_4_EXTRA,BBC_RADIO_FOYLE:t.NORTHERN_IRELAND,BBC_RADIO_GLOUCESTERSHIRE:t.ENGLISH_REGIONS,BBC_RADIO_GUERNSEY:t.ENGLISH_REGIONS,BBC_RADIO_HEREFORD_WORCESTER:t.ENGLISH_REGIONS,BBC_RADIO_HUMBERSIDE:t.ENGLISH_REGIONS,BBC_RADIO_JERSEY:t.ENGLISH_REGIONS,BBC_RADIO_KENT:t.ENGLISH_REGIONS,BBC_RADIO_LANCASHIRE:t.ENGLISH_REGIONS,BBC_RADIO_LEEDS:t.ENGLISH_REGIONS,BBC_RADIO_LEICESTER:t.ENGLISH_REGIONS,BBC_RADIO_LINCOLNSHIRE:t.ENGLISH_REGIONS,BBC_RADIO_MANCHESTER:t.ENGLISH_REGIONS,BBC_RADIO_MERSEYSIDE:t.ENGLISH_REGIONS,BBC_RADIO_NAN_GAIDHEAL:t.SCOTLAND,BBC_RADIO_NEWCASTLE:t.ENGLISH_REGIONS,BBC_RADIO_NORFOLK:t.ENGLISH_REGIONS,BBC_RADIO_NORTHAMPTON:t.ENGLISH_REGIONS,BBC_RADIO_NOTTINGHAM:t.ENGLISH_REGIONS,BBC_RADIO_ONE:t.BBC_RADIO_1,BBC_RADIO_ONE_VINTAGE:t.BBC_RADIO_1,BBC_RADIO_OXFORD:t.ENGLISH_REGIONS,BBC_RADIO_SCOTLAND:t.SCOTLAND,BBC_RADIO_SCOTLAND_FM:t.SCOTLAND,BBC_RADIO_SCOTLAND_MUSIC_EXTRA:t.SCOTLAND,BBC_RADIO_SHEFFIELD:t.ENGLISH_REGIONS,BBC_RADIO_SHROPSHIRE:t.ENGLISH_REGIONS,BBC_RADIO_SOLENT:t.ENGLISH_REGIONS,BBC_RADIO_SOMERSET_SOUND:t.ENGLISH_REGIONS,BBC_RADIO_STOKE:t.ENGLISH_REGIONS,BBC_RADIO_SUFFOLK:t.ENGLISH_REGIONS,BBC_RADIO_SURREY:t.ENGLISH_REGIONS,BBC_RADIO_SUSSEX:t.ENGLISH_REGIONS,BBC_RADIO_SWINDON:t.ENGLISH_REGIONS,BBC_RADIO_THREE:t.BBC_RADIO_3,BBC_RADIO_TWO:t.BBC_RADIO_2,BBC_RADIO_TWO_COUNTRY:t.BBC_RADIO_2,BBC_RADIO_TWO_EUROVISION:t.BBC_RADIO_2,BBC_RADIO_TWO_FIFTIES:t.BBC_RADIO_2,BBC_RADIO_ULSTER:t.NORTHERN_IRELAND,BBC_RADIO_WALES:t.WALES,BBC_RADIO_WILTSHIRE:t.ENGLISH_REGIONS,BBC_RADIO_YORK:t.ENGLISH_REGIONS,BBC_SOUNDS_MIXES:t.SOUNDS,BBC_SOUNDS_PODCASTS:t.SOUNDS,BBC_SOUTHERN_COUNTIES_RADIO:t.ENGLISH_REGIONS,BBC_THREE_COUNTIES_RADIO:t.ENGLISH_REGIONS,CBEEBIES_RADIO:t.CBEEBIES,BBC_SPORT:t.SPORT,getProducerId:function(t){var e;return t&&(e=this[t.toUpperCase()]),e}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){t.exports={NAME:"echo_js",VERSION:"12.4.0"}},function(t,e,n){var i;void 0===(i=function(){"use strict";function t(){this.reset()}return t.prototype.start=function(){!0!==this._isPlaying&&(this._isPlaying=!0,this._startTime=this._getCurrentTime())},t.prototype.reset=function(){this._isPlaying=!1,this._position=0,this._startTime=0},t.prototype.stop=function(){this._isPlaying&&(this._isPlaying=!1,this._position+=this._getCurrentTime()-this._startTime,this._startTime=0)},t.prototype.getPosition=function(){var t=this._position;return!0===this._isPlaying&&(t+=this._getCurrentTime()-this._startTime),t},t.prototype._getCurrentTime=function(){return Date.now||(Date.now=function(){return(new Date).getTime()}),Date.now()},t}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(2),n(1)],void 0===(r=function(t,e,n){"use strict";function i(t,e,n){this._schedule=[],this.serviceId=null,this._media=t,this._environment=e,this._echoClient=n,this._fetchData()}return i.prototype.getBroadcast=function(t){var e,n;for(e=0;e<this._schedule.length;e++)if(t<(n=this._schedule[e].published_time).end&&t>=n.start)return this._schedule[e]},i.essHost="ess.api.bbci.co.uk",i.prototype._fetchData=function(){var t,n=this;t=this._environment.getExecuteCrossDomainGet();var r=this._environment.getProtocol()+i.essHost.replace(/^(\/+)?/,"//")+"/schedules";if(this._media){if(this._media.getServiceId())r+="?serviceId="+encodeURIComponent(this._media.getServiceId());else if(this._media.getVersionId())r+="?versionId="+encodeURIComponent(this._media.getVersionId());else{if(!this._media.getVpId())return void e.info("Unable to determine serviceId, versionId or VpId for schedule");r+="?vpid="+encodeURIComponent(this._media.getVpId())}t(r,{onSuccess:function(t){n._dataSuccessHandler(t)},onError:function(t,e){var i="error";"json"===t?i="json":"object"==typeof t&&"timeout"===t.type&&(i="timeout"),n._dataErrorHandler(i,e)}})}},i.prototype.hasData=function(){return 0<this._schedule.length},i.prototype._dataSuccessHandler=function(t){var n,i,r,o,s=[];if(e.info("Cross-domain schedule request success."),t){for(this._echoClient.setEssSuccess(!0),this.serviceId=t.service.id,t.items=t.items||[],n=0;n<t.items.length;n++)r=t.items[n].published_time.start,o=t.items[n].published_time.end,(i=t.items[n]).published_time.start=new Date(r).getTime(),i.published_time.end=new Date(o).getTime(),s.push(i);this._schedule=s}},i.prototype._dataErrorHandler=function(t,i){this._schedule=[],e.error("There was a problem requesting the schedule from ESS: "+t),this._echoClient.setEssSuccess(!1),"json"===t?this._echoClient.setEssError(n.EssError.JSON,i):"timeout"===t?this._echoClient.setEssError(n.EssError.TIMEOUT,i):"error"===t&&void 0!==i?this._echoClient.setEssError(n.EssError.STATUS_CODE,i):this._echoClient.setEssError(n.EssError.RUNTIME,"0")},i}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t){"use strict";var e=n(5),i=n(11),r=n(16),o=n(1),s=n(0),a=n(6),u=n(7),c=n(4),l=n(2),f=o.MediaConsumptionMode,d=function(t,e){var n,i;this.avType=(n=t)===o.AvType.AUDIO||n===o.AvType.VIDEO?t:null,this.consumptionMode=(i=e)===f.ON_DEMAND||i===f.DOWNLOAD||i===f.LIVE?e:null,s.assert(this.avType,"Media: Invalid avType: "+this.avType,!0),s.assert(this.consumptionMode,"Media: Invalid consumptionMode: "+this.consumptionMode,!0),this.serviceIdObject=new r(o.MediaIdType.SERVICE,!0),this.versionIdObject=new r(o.MediaIdType.VERSION,!0),this.clipIdObject=new r(o.MediaIdType.CLIP,!0),this.episodeIdObject=new r(o.MediaIdType.EPISODE,!0),this.vpIdObject=new r(o.MediaIdType.VPID,!0),this.nonPipsContentIdObject=new r(o.MediaIdType.NONPIPSCONTENT,!1),this.producerObject=new r(o.MediaIdType.PRODUCER,!1),this.brandIdObject=new r(o.MediaIdType.BRAND,!1),this.seriesIdObject=new r(o.MediaIdType.SERIES,!1),this.length=0,this.bufferLength=0,this.supplier=null,this.mediaSet=null,this.transferFormat=null,this.essEnrichedData=!1,this._isPlaying=!1,this._isBuffering=!1,this._isEmbedded=!1,this.name="",this.type=o.MediaClipType.UNDEFINED,this.playlist="",this.initiationType=o.MediaInitiationType.UNDEFINED,this.adsEnabled=!1,this.mediaPlayerName="",this.mediaPlayerVersion="",this.transportMode=""};return d.prototype.isEssEnriched=function(){return!0===this.essEnrichedData},d.prototype.setEssEnriched=function(t){this.essEnrichedData=t},d.prototype.getAvType=function(){return this.avType},d.prototype.getMediaConsumptionMode=function(){return this.consumptionMode},d.prototype.getClone=function(){var t=new d(this.avType,this.consumptionMode);return t.brandIdObject=this.brandIdObject,t.seriesIdObject=this.seriesIdObject,t.serviceIdObject=this.serviceIdObject,t.versionIdObject=this.versionIdObject,t.clipIdObject=this.clipIdObject,t.episodeIdObject=this.episodeIdObject,t.vpIdObject=this.vpIdObject,t.name=this.name,t.type=this.type,t.playlist=this.playlist,t.initiationType=this.initiationType,t.adsEnabled=this.adsEnabled,t.mediaPlayerVersion=this.mediaPlayerVersion,t.mediaPlayerName=this.mediaPlayerName,t.transportMode=this.transportMode,t.nonPipsContentIdObject=this.nonPipsContentIdObject,t.producerObject=this.producerObject,t.bufferLength=this.bufferLength,t.mediaSet=this.mediaSet,t.supplier=this.supplier,t.transferFormat=this.transferFormat,t.length=this.length,t.essEnrichedData=this.essEnrichedData,t},d.prototype.isEmbedded=function(){return this._isEmbedded},d.prototype.setIsEmbedded=function(t){return this._isEmbedded=t,this},d.prototype.setVersionId=function(t){return this.versionIdObject.setValue(t),this},d.prototype.setBrandId=function(t){return this.brandIdObject.setValue(c.cleanLabelValue(a.MEDIA_BRAND,t)),this},d.prototype.setSeriesId=function(t){return this.seriesIdObject.setValue(c.cleanLabelValue(a.MEDIA_SERIES,t)),this},d.prototype.setClipId=function(t){return this.clipIdObject.setValue(t),this},d.prototype.setServiceId=function(t){return this.serviceIdObject.setValue(t),this},d.prototype.setEpisodeId=function(t){return this.episodeIdObject.setValue(t),this},d.prototype.setVpId=function(t){return this.vpIdObject.setValue(t),this},d.prototype.setNonPipsContentId=function(t){return this.nonPipsContentIdObject.setValue(c.cleanLabelValue(u.MEDIA_NON_PIPS_CONTENT_ID,t)),this},d.prototype.getSupplier=function(){return this.supplier},d.prototype.setSupplier=function(t){if(null!==t){var e=s.trim(t);0!==e.length&&(this.supplier=e)}return this},d.prototype.getMediaSet=function(){return this.mediaSet},d.prototype.setMediaSet=function(t){if(null!==t){var e=s.trim(t);0!==e.length&&(this.mediaSet=e)}return this},d.prototype.getTransferFormat=function(){return this.transferFormat},d.prototype.setTransferFormat=function(t){if(null!==t){var e=s.trim(t);0!==e.length&&(this.transferFormat=e)}return this},d.prototype.isAdsEnabled=function(){return this.adsEnabled},d.prototype.setAdsEnabled=function(t){return this.adsEnabled=t,this},d.prototype.getName=function(){return this.name},d.prototype.setName=function(t){return this.name=t,this},d.prototype.getType=function(){return this.type},d.prototype.setType=function(t){return this.type=t,this},d.prototype.getPlaylist=function(){return this.playlist},d.prototype.setPlaylist=function(t){return this.playlist=t,this},d.prototype.getInitiationType=function(){return this.initiationType},d.prototype.setInitiationType=function(t){return this.initiationType=t,this},d.prototype.getMediaPlayerName=function(){return this.mediaPlayerName},d.prototype.setMediaPlayerName=function(t){return this.mediaPlayerName=t,this},d.prototype.getMediaPlayerVersion=function(){return this.mediaPlayerVersion},d.prototype.setMediaPlayerVersion=function(t){return this.mediaPlayerVersion=t,this},d.prototype.getTransportMode=function(){return this.transportMode},d.prototype.setTransportMode=function(t){return this.transportMode=t,this},d.prototype.getLength=function(){return this.length},d.prototype.setLength=function(t){return null!=t&&(t=Math.floor(t)),(void 0===t||isNaN(t)||!isFinite(t)||t<0)&&(l.warn("Media: length must be an integer of 0 or greater. Echo will report as 0."),t=0),this.length=t,this},d.prototype.getProducer=function(){return this.producerObject.getValue()},d.prototype.setProducer=function(t){var n;return(n=t?e.getId(t):"0")&&this.producerObject.setValue(n),this},d.prototype.setProducerById=function(t){return t&&this.producerObject.setValue(t),this},d.prototype.setProducerByMasterbrand=function(t){t&&i.getProducerId(t)?this.producerObject.setValue(i.getProducerId(t)):(this.producerObject.setValue(0),null===t||t&&"NULL"===t.toUpperCase()||""===t||l.info("Masterbrand ["+t+"] not recognised, producer will be set to undefined (0)"))},d.prototype.getVersionIdObject=function(){return this.versionIdObject},d.prototype.getClipIdObject=function(){return this.clipIdObject},d.prototype.getServiceIdObject=function(){return this.serviceIdObject},d.prototype.getEpisodeIdObject=function(){return this.episodeIdObject},d.prototype.getVpIdObject=function(){return this.vpIdObject},d.prototype.getNonPipsContentIdObject=function(){return this.nonPipsContentIdObject},d.prototype.getBrandIdObject=function(){return this.brandIdObject},d.prototype.getBrandId=function(){return this.brandIdObject.getValue()},d.prototype.getSeriesIdObject=function(){return this.seriesIdObject},d.prototype.getSeriesId=function(){return this.seriesIdObject.getValue()},d.prototype.getVersionId=function(){return this.versionIdObject.getValue()},d.prototype.getClipId=function(){return this.clipIdObject.getValue()},d.prototype.getServiceId=function(){return this.serviceIdObject.getValue()},d.prototype.getEpisodeId=function(){return this.episodeIdObject.getValue()},d.prototype.getVpId=function(){return this.vpIdObject.getValue()},d.prototype.getNonPipsContentId=function(){return this.nonPipsContentIdObject.getValue()},d.prototype.getRetrievalType=function(){return null===this.consumptionMode?null:this.consumptionMode===f.DOWNLOAD?o.RetrievalType.DOWNLOAD:o.RetrievalType.STREAM},d.prototype.isOnDemand=function(){return this.consumptionMode===f.ON_DEMAND},d.prototype.isDownload=function(){return this.consumptionMode===f.DOWNLOAD},d.prototype.isLive=function(){return this.consumptionMode===f.LIVE},d.prototype.isVideo=function(){return this.avType===o.AvType.VIDEO},d.prototype.getPlayerId=function(){return"1"},d.prototype.setPlaying=function(t){return this._isPlaying=Boolean(t),this},d.prototype.getPlaying=function(){return this._isPlaying},d.prototype.setBuffering=function(t){return this._isBuffering=Boolean(t),this},d.prototype.getBuffering=function(){return this._isBuffering},d}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t){"use strict";var e=n(0),i=function(t,e){this.idType=t,this.validValueRegex=/^[a-z0-9A-Z_-]+$/,this.value=null,this.isSet=!1,this.isValid=!1,this.requiresValidation=e};return i.prototype.getIdType=function(){return this.idType},i.prototype.setValue=function(t){this.isSet=!0,null==t?this.isValid=!1:this.requiresValidation?this.isValid=this._validateValue(t):this.isValid=!0,e.assert(this.isValid,"MediaId: The value for "+this.idType+"Id is invalid",!0),this.value=t},i.prototype.getValue=function(){return this.value},i.prototype.isValueSet=function(){return this.isSet},i.prototype.isValueValid=function(){return this.isValid},i.prototype._validateValue=function(t){return"string"==typeof t&&this.validValueRegex.test(t)},i}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(){"use strict";function t(){}var e=n(18).Promise;return t.get=function(){return window&&window.bbcpage?e.all(["getDestination","getProducer","getSection","getContentId","getContentType","getLanguage","getAdditionalProperties","getName"].map(function(t){return n=t,window.bbcpage[n]&&"function"==typeof window.bbcpage[n]?window.bbcpage[n]():e.resolve(null);var n})).then(function(e){return{destination:(e=t._decodeFromOrbit(e))[0],producer:e[1],section:e[2],contentId:e[3],contentType:e[4],language:e[5],additionalProperties:e[6],pageName:e[7]}}):e.resolve(void 0)},t._decodeFromOrbit=function(e){for(var n=Object.keys(e),i=0;i<n.length;i++)if(e[n[i]]&&"object"!=typeof e[n[i]]){var r=new RegExp("&#x2F;","g");e[n[i]]=e[n[i]].replace(r,"/")}else e[n[i]]&&"object"==typeof e[n[i]]&&(e[n[i]]=t._decodeFromOrbit(e[n[i]]));return e},t}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){(function(e,n){t.exports=function(){"use strict";function t(t){return"function"==typeof t}function i(){var t=setTimeout;return function(){return t(r,1)}}function r(){for(var t=0;t<I;t+=2)(0,D[t])(D[t+1]),D[t]=void 0,D[t+1]=void 0;I=0}function o(t,e){var n=this,i=new this.constructor(a);void 0===i[M]&&m(i);var r=n._state;if(r){var o=arguments[r-1];P(function(){return v(r,i,o,n._result)})}else _(n,i,t,e);return i}function s(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(a);return f(e,t),e}function a(){}function u(t){try{return t.then}catch(t){return V.error=t,V}}function c(t,e,n,i){try{t.call(e,n,i)}catch(t){return t}}function l(e,n,i){var r,a,u,l;n.constructor===e.constructor&&i===o&&n.constructor.resolve===s?(u=e,(l=n)._state===U?p(u,l._result):l._state===k?h(u,l._result):_(l,void 0,function(t){return f(u,t)},function(t){return h(u,t)})):i===V?(h(e,V.error),V.error=null):void 0===i?p(e,n):t(i)?(r=n,a=i,P(function(t){var e=!1,n=c(a,r,function(n){e||(e=!0,r!==n?f(t,n):p(t,n))},function(n){e||(e=!0,h(t,n))},t._label);!e&&n&&(e=!0,h(t,n))},e)):p(e,n)}function f(t,e){var n,i;t===e?h(t,new TypeError("You cannot resolve a promise with itself")):(i=typeof(n=e),null===n||"object"!==i&&"function"!==i?p(t,e):l(t,e,u(e)))}function d(t){t._onerror&&t._onerror(t._result),g(t)}function p(t,e){t._state===x&&(t._result=e,t._state=U,0!==t._subscribers.length&&P(g,t))}function h(t,e){t._state===x&&(t._state=k,t._result=e,P(d,t))}function _(t,e,n,i){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=e,r[o+U]=n,r[o+k]=i,0===o&&t._state&&P(g,t)}function g(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var i=void 0,r=void 0,o=t._result,s=0;s<e.length;s+=3)i=e[s],r=e[s+n],i?v(n,i,r,o):r(o);t._subscribers.length=0}}function v(e,n,i,r){var o=t(i),s=void 0,a=void 0,u=void 0,c=void 0;if(o){if((s=function(t,e){try{return t(e)}catch(t){return V.error=t,V}}(i,r))===V?(c=!0,a=s.error,s.error=null):u=!0,n===s)return void h(n,new TypeError("A promises callback cannot return that same promise."))}else s=r,u=!0;n._state!==x||(o&&u?f(n,s):c?h(n,a):e===U?p(n,s):e===k&&h(n,s))}function m(t){t[M]=G++,t._state=void 0,t._result=void 0,t._subscribers=[]}var E,y,b,A,S=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},I=0,T=void 0,C=void 0,P=function(t,e){D[I]=t,D[I+1]=e,2===(I+=2)&&(C?C(r):B())},O="undefined"!=typeof window?window:void 0,w=O||{},N=w.MutationObserver||w.WebKitMutationObserver,R="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),L="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,D=new Array(1e3),B=void 0;B=R?function(){return e.nextTick(r)}:N?(y=0,b=new N(r),A=document.createTextNode(""),b.observe(A,{characterData:!0}),function(){A.data=y=++y%2}):L?((E=new MessageChannel).port1.onmessage=r,function(){return E.port2.postMessage(0)}):void 0===O?function(){try{var t=Function("return this")().require("vertx");return void 0===(T=t.runOnLoop||t.runOnContext)?i():function(){T(r)}}catch(t){return i()}}():i();var M=Math.random().toString(36).substring(2),x=void 0,U=1,k=2,V={error:null},G=0,F=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(a),this.promise[M]||m(this.promise),S(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?p(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&p(this.promise,this._result))):h(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===x&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,i=n.resolve;if(i===s){var r=u(t);if(r===o&&t._state!==x)this._settledAt(t._state,e,t._result);else if("function"!=typeof r)this._remaining--,this._result[e]=t;else if(n===j){var c=new n(a);l(c,t,r),this._willSettleAt(c,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},t.prototype._settledAt=function(t,e,n){var i=this.promise;i._state===x&&(this._remaining--,t===k?h(i,n):this._result[e]=n),0===this._remaining&&p(i,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;_(t,void 0,function(t){return n._settledAt(U,e,t)},function(t){return n._settledAt(k,e,t)})},t}(),j=function(){function e(t){this[M]=G++,this._result=this._state=void 0,this._subscribers=[],a!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(t,e){try{e(function(e){f(t,e)},function(e){h(t,e)})}catch(e){h(t,e)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var n=this.constructor;return t(e)?this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){throw t})}):this.then(e,e)},e}();return j.prototype.then=o,j.all=function(t){return new F(this,t).promise},j.race=function(t){var e=this;return new e(S(t)?function(n,i){for(var r=t.length,o=0;o<r;o++)e.resolve(t[o]).then(n,i)}:function(t,e){return e(new TypeError("You must pass an array to race."))})},j.resolve=s,j.reject=function(t){var e=new this(a);return h(e,t),e},j._setScheduler=function(t){C=t},j._setAsap=function(t){P=t},j._asap=P,j.polyfill=function(){var t=void 0;if(void 0!==n)t=n;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var i=null;try{i=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===i&&!e.cast)return}t.Promise=j},j.Promise=j}()}).call(this,n(19),n(20))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function o(){h&&d&&(h=!1,d.length?p=d.concat(p):_=-1,p.length&&s())}function s(){if(!h){var t=r(o);h=!0;for(var e=p.length;e;){for(d=p,p=[];++_<e;)d&&d[_].run();_=-1,e=p.length}d=null,h=!1,function(t){if(l===clearTimeout)return clearTimeout(t);if((l===i||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}(t)}}function a(t,e){this.fun=t,this.array=e}function u(){}var c,l,f=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{l="function"==typeof clearTimeout?clearTimeout:i}catch(t){l=i}}();var d,p=[],h=!1,_=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new a(t,e)),1!==p.length||h||r(s)},a.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(t){return[]},f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var i;void 0===(i=function(t){"use strict";var e=n(45).version;return{getLibraryName:function(){return"echo_js"},getLibraryVersion:function(){return e}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){t.exports=n(23)},function(t,e,n){var i,r;i=[n(24)],void 0===(r=function(t){"use strict";return window&&window.bbccookies&&t.Environment.setOrbCookies(window.bbccookies),t}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t){"use strict";var e=n(12),i=n(8);return{EchoClient:n(27),Media:n(15),MediaId:n(16),Environment:i,Enums:n(1),ConfigKeys:n(3),Debug:n(2),getImplementationVersion:function(){return e.VERSION}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){t.exports={STRICT:"strict",COUNTERNAME:"countername",EVENT_MASTER_BRAND:"event_master_brand",NO_CLEANSING:"no_cleansing",CUSTOM:"custom"}},function(t,e,n){var i;void 0===(i=function(){"use strict";return{httpGet:function(t,e,n){var i=new Image;i.onload=e,i.onerror=n,i.src=t},executeCrossDomainGet:function(t,e){var n,i,r;r=i=!1;var o=function(t,n){e.onError&&e.onError(t,n)};if(window.JSON&&window.JSON.parse&&void 0!==window.XMLHttpRequest&&"withCredentials"in(n=new XMLHttpRequest)&&(r=!0),r){try{n.open("GET",t,!0),n.onload=function(){(void 0===n.status||n.status<400)&&null!==n.responseText?function(){var t;if(e.onSuccess){try{t=window.JSON.parse(n.responseText)}catch(t){o("json")}"object"==typeof t&&setTimeout(function(){e.onSuccess(t)})}}():o(n.responseText,n.status)},n.onerror=function(t){o(t)},n.timeout=1e4,n.ontimeout=function(t){o(t)}}catch(t){s=t,i||o(s)}var s;try{n.send(null)}catch(t){i=!0,n.onload=n.onerror=n.onreadystatechange=null,n.abort(),o(t)}}else o()}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t){"use strict";function e(t,n,s,a,u){var l=this;s=s||{},r.assertContainsValue(c.ApplicationType,n,'appType should be one of Enums.ApplicationType, got "'+n+'"'),this.state={counterNameSet:!1};var f,d=e.ConfigGenerator.generate(s);this._env=null!=a?a:new e.Environment,d&&"string"==typeof d[o.ECHO_DEVICE_ID]&&(0<(f=r.trim(d[o.ECHO_DEVICE_ID])).length?(d[o.ECHO_DEVICE_ID]=f,this._deviceId=f):d[o.ECHO_DEVICE_ID]=void 0),d&&d[o.COMSCORE_HOST]===_&&!d[o.ECHO_DEVICE_ID]&&((f=h.getCookieValueByName(v))||(f=h.getCookieValueByName(g)),f&&(this._deviceId=f,d[o.ECHO_DEVICE_ID]=f)),d&&!1===d[o.ECHO_AUTO_START]?this._autoStart=!1:this._autoStart=!0,this._setConsumers(t,n,d,this._env),d&&d[o.USE_ESS]?this._essEnabled=!0:this._essEnabled=!1,d&&d[o.ESS_HOSTNAME]&&(p.essHost=d[o.ESS_HOSTNAME]),d&&!1===d[o.ECHO_ENABLED]?this._isEnabled=!1:this._isEnabled=!0,d&&!0===d[o.DEBUG_MODE]?i.enable():i.disable(),this._liveBroker=null,this._onDemandBroker=null,this._suppressingPlayEvent=!1,this._suppressedPlayEventLabels=null,this.addLabel("bbc_id_wait","1"),e.Environment.getOrbIdCta(function(t){l.removeLabel("bbc_id_wait"),t&&"function"==typeof t.getIStatsLabels&&l.addLabels({bbc_identity:t.getIStatsLabels().bbc_identity,bbc_hid:encodeURIComponent(t.getIStatsLabels().bbc_hid||"unidentified-user")})}),d&&d[o.ECHO_CACHE_MODE]&&(this._cacheMode=d[o.ECHO_CACHE_MODE]),this._isEnabled&&this._autoStart&&("function"==typeof u?this.start().then(u):this.start())}var i=n(2),r=n(0),o=n(3),s=n(10),a=n(11),u=n(5),c=n(1),l=n(28),f=n(29),d=n(7),p=n(14),h=n(9),_="sa.bbc.co.uk",g="ckpf_echo_device_id",v="ckns_echo_device_id",m=n(17),E=n(18).Promise;return e.prototype.getDebugMode=function(){return i.getState()},e.prototype.start=function(){var t;return this._isEnabled&&!this._hasStarted?(this._hasStarted=!0,m.get().then(function(e){t=e,this._delegate("start",[e])}.bind(this)).then(function(){t&&t.pageName&&""!==t.pageName&&"orb.page"!==t.pageName&&this.setCounterName(t.pageName)}.bind(this),function(t){i.error("failed to start delegates: "+t)})):E.reject()},e.prototype.enable=function(){return this._isEnabled||(this._isEnabled=!0,this._delegate("enable"),this._autoStart&&!this._hasStarted&&this.start()),this},e.prototype.disable=function(){return this._isEnabled&&(this._clearMedia(),this._isEnabled=!1,this._delegate("disable")),this},e.prototype.isEnabled=function(){return this._isEnabled},e.prototype.getComScoreDeviceId=function(){var t;return this.consumers[e.Consumers.COMSCORE]&&(t=this.consumers[e.Consumers.COMSCORE])instanceof e.ComScoreDelegate&&"function"==typeof t.getDeviceId?t.getDeviceId():null},e.prototype.getAtiDeviceId=function(){var t;return this.consumers[e.Consumers.ATI]&&(t=this.consumers[e.Consumers.ATI])instanceof e.AtiDelegate&&"function"==typeof t.getDeviceId?t.getDeviceId():null},e.prototype.setTraceId=function(t){this._delegate("setTraceId",[t])},e.ConfigGenerator=n(30),e.LabelCleanser=n(4),e.Util=n(0),e.ComScoreDelegate=n(31),e.SpringDelegate=n(37),e.AtiDelegate=n(41),e.Environment=n(8),e.prototype._eventsEnabled=function(){return this._isEnabled&&this._hasStarted},e.prototype._setConsumers=function(t,n,i,r){this.consumers={};var s=e.LabelCleanser.cleanLabelValue("app_name",t);return i&&i[o.COMSCORE_ENABLED]&&(this.consumers[e.Consumers.COMSCORE]=new e.ComScoreDelegate(s,n,i,r)),i&&i[o.ATI_ENABLED]&&(this.consumers[e.Consumers.ATI]=new e.AtiDelegate(s,n,i,r)),i&&i[o.BARB_ENABLED]&&(this.consumers[e.Consumers.BARB]=new e.SpringDelegate(s,n,i,r)),this},e.prototype._delegate=function(t,e,n){var i,r,o=[];for(i in this.consumers)i&&(r=this.consumers[i],n&&r.requiresLabelCleansing()?o.push(r[t].apply(r,n)):o.push(r[t].apply(r,e)));return E.all(o)},e.prototype.addLabels=function(t){return this._delegate("addLabels",[e.LabelCleanser.cleanLabels(t)]),this},e.prototype.addLabel=function(t,e){if("string"==typeof t){if(null!=e){var n={};return n[t]=e,this.addLabels(n)}i.error("Label cannot be null/undefined")}else i.error("Label key must be a string")},e.prototype.addManagedLabel=function(t,n){return this._delegate("addManagedLabel",[e.LabelCleanser.cleanLabelKey(t),e.LabelCleanser.cleanLabelValue(t,n)]),this},e.prototype.removeLabels=function(t){for(var n=[],i=0,r=t.length;i<r;i++)n.push(e.LabelCleanser.cleanLabelKey(t[i]));return this._delegate("removeLabels",[n]),this},e.prototype.removeLabel=function(t){return this.removeLabels([t])},e.prototype.setLoggedInToBBCId=function(t){return this._delegate("setLoggedInToBBCId",[t]),this},e.prototype.setLoggedOutOfBBCId=function(){return this._delegate("setLoggedOutOfBBCId"),this},e.prototype.setAppVersion=function(t){return this._delegate("setAppVersion",[t]),this},e.prototype.setDestination=function(t){return this._delegate("setDestination",[s.get(t)]),this},e.prototype.setProducer=function(t){return this._setProducer(t,!1)},e.prototype.setProducerByMasterbrand=function(t){return this._setProducer(t,!0)},e.prototype._setProducer=function(t,e){var n;if(!(n=t&&"NULL"!==t.toUpperCase()?e?a.getProducerId(t):u.getId(t):"0")){var r=e?"Masterbrand":"Producer";i.info(r+" ["+t+"] not recognised")}return n&&this._delegate("setProducer",[n]),this},e.prototype.setCounterName=function(t){var n=e.LabelCleanser.cleanCounterName(t),i=this._delegate("setCounterName",[t],[n]);return this.state.counterNameSet=!0,i},e.prototype.setContentLanguage=function(t){return this._delegate("setContentLanguage",[t]),this},e.prototype.setCacheMode=function(t){return this._delegate("setCacheMode",[t]),this._cacheMode=t,this},e.prototype.getCacheMode=function(){return this._cacheMode},e.prototype.clearCache=function(){this._isEnabled&&this._delegate("clearCache")},e.prototype.flushCache=function(){this._isEnabled&&this._delegate("flushCache")},e.prototype.viewEvent=function(t,n){if(this._eventsEnabled()){var i=e.LabelCleanser.cleanCounterName(t),r=e.LabelCleanser.cleanLabels(n);this.consumers[e.Consumers.COMSCORE]&&(this.state.comscoreEventSent=!0);var o=this._delegate("viewEvent",[t,n],[i,r]);return this.state.counterNameSet=!0,this.consumers[e.Consumers.COMSCORE]&&(this.state.comscoreEventSent=!0),o}},e.prototype.userActionEvent=function(t,n,r){if(this._eventsEnabled())return this.state.counterNameSet?(this._delegate("userActionEvent",[t,n,e.LabelCleanser.cleanLabels(r)]),this.consumers[e.Consumers.COMSCORE]&&(this.state.comscoreEventSent=!0)):i.error("userActionEvent not available before a call to viewEvent (to set counter name)."),this},e.prototype.errorEvent=function(t,n){if(this._eventsEnabled())return this._delegate("errorEvent",[t,e.LabelCleanser.cleanLabels(n)]),this},e.prototype.setPlayerName=function(t){r.assert("string"==typeof t&&0<t.length,'setPlayerName: name must be string with length, got "'+t+'"');var n=e.LabelCleanser.cleanLabelValue("player_name",t);return this._delegate("setPlayerName",[t],[n])},e.prototype.setPlayerVersion=function(t){r.assert("string"==typeof t&&0<t.length,'setPlayerVersion: version must be string with length, got "'+t+'"');var n=e.LabelCleanser.cleanLabelValue("player_version",t);return this._delegate("setPlayerVersion",[t],[n])},e.prototype.setPlayerIsPopped=function(t){return r.assert("boolean"==typeof t,'setPlayerIsPopped: isPopped must be boolean, got "'+t+'"'),this._delegate("setPlayerIsPopped",[t]),this},e.prototype.setPlayerWindowState=function(t){return r.assertContainsValue(c.WindowState,t,'The window state must be set as a member of Enums.WindowState, got "'+t+'"'),this._delegate("setPlayerWindowState",[t]),this},e.prototype.setPlayerVolume=function(t){return r.assert(t<=100&&0<=t,"volume must be 0-100, got: "+t),t<=100&&0<=t&&this._delegate("setPlayerVolume",[t]),this},e.prototype.setPlayerIsSubtitled=function(t){return r.assert("boolean"==typeof t,'setPlayerIsSubtitled: isSubtitled must be a boolean, got "'+t+'"'),this._delegate("setPlayerIsSubtitled",[t]),this},e.prototype.setPlayerDelegate=function(t){t=t||{};var e,n,i,o=["getTimestamp","getPosition"],s=!1;for(n=0;n<o.length;n++)e=o[n],i=t.hasOwnProperty(e)&&"function"==typeof t[e],r.assert(i,'The player delegate must implement "'+e+'"'),i||(s=!0);return s||(this._playerDelegate=t),this},e.prototype.setMedia=function(t){if(this._eventsEnabled()){this._clearMedia();var e=t.getClone();if(this.state.counterNameSet){this.media=e,this.addLabel(d.ESS_ENABLED,this._essEnabled?"true":"false");var n=c.MediaConsumptionMode.LIVE;this.media.getMediaConsumptionMode()===n?this._initLiveBroker():this._initOnDemandBroker(),this._delegate("setMedia",[this.media])}else i.error("setMedia: Must have a countername set or view event sent first")}},e.prototype.liveMediaUpdate=function(t,e,n){this._eventsEnabled()&&this._avEventsEnabled()&&t&&(this._suppressingPlayEvent=!1,this.media=t,this._delegate("liveMediaUpdate",[t,e,n]))},e.prototype.setMediaLength=function(t){return this.media?this.media.isOnDemand()?"number"!=typeof(t=this._cleanPosition(t))?i.error("setMediaLength: Length must be a positive number"):(this._delegate("setMediaLength",[t]),this.media.setLength(t)):i.error("setMediaLength: Length should be set to zero prior to passing the media object to Echo for live media"):i.error("setMediaLength: Must call setMedia first"),this},e.prototype.setMediaBitrate=function(){},e.prototype.setMediaCodec=function(){},e.prototype.setMediaCDN=function(){},e.prototype.setEssSuccess=function(t){this.addLabel(d.ESS_SUCCESS,t?"true":"false")},e.prototype.setEssError=function(t,e){this.addLabel(d.ESS_ERROR,t.toString().toLowerCase()),t.toString()===c.EssError.STATUS_CODE.toString()&&this.addLabel(d.ESS_STATUS_CODE,e),this._delegate("liveEnrichmentFailed")},e.prototype._avEventsEnabled=function(){return r.assert(Boolean(this.media),"setMedia() must be called prior to this method",!0)&&r.assert(Boolean(this._playerDelegate),"setPlayerDelegate not called or not configured correctly",!0)},e.prototype.getLiveBroker=function(){return this._liveBroker},e.prototype._initLiveBroker=function(){this._avEventsEnabled()&&this.media.getMediaConsumptionMode()===c.MediaConsumptionMode.LIVE&&(this._liveBroker=new l(this._playerDelegate,this.media,this,this._env,this._essEnabled),this._delegate("setBroker",[this._liveBroker]))},e.prototype.getOnDemandBroker=function(){return this._onDemandBroker},e.prototype._initOnDemandBroker=function(){this._avEventsEnabled()&&this.media.getMediaConsumptionMode()!==c.MediaConsumptionMode.LIVE&&(this._onDemandBroker=new f(this._playerDelegate,this.media,this),this._delegate("setBroker",[this._onDemandBroker]))},e.prototype._cleanPosition=function(t){return null!=t&&(t=Math.floor(t)),(void 0===t||isNaN(t)||!isFinite(t)||t<0)&&(t=0),t},e.prototype.avPlayEvent=function(t,n){if(this._eventsEnabled()&&this._avEventsEnabled()){var i=this.media.isLive();if(this._isPlaying=!0,i&&this._liveBroker)t=this._liveBroker.getPosition(),this._liveBroker.start();else if(!i&&this._onDemandBroker){if(t=this._cleanPosition(t),this._previousPlayPosition=t,this._positionExceedsMediaLength(t))return;this._onDemandBroker.setPosition(t),this._onDemandBroker.start()}return i&&this.media.isEssEnriched()&&this._suppressingPlayEvent?this._suppressedPlayEventLabels=n:(this._delegate("avPlayEvent",[t,e.LabelCleanser.cleanLabels(n)]),this.media.setBuffering(!1),this.media.setPlaying(!0)),this.consumers[e.Consumers.COMSCORE]&&(this.state.comscoreEventSent=!0),this}},e.prototype._avNavigationEvent=function(t,n,i,r){this._avEventsEnabled()&&(this._isPlaying=!1,this.media.isLive()?(this._liveBroker&&(this._liveBroker.stop(),n=this._liveBroker.getPosition()),this.media.isEssEnriched()&&!this._suppressingPlayEvent&&(this._suppressingPlayEvent=!0)):this._onDemandBroker&&(n=this._cleanPosition(n),n=this._preventPositionExceedingMediaLength(n),this._onDemandBroker.stop()),"avRewindEvent"===t||"avFastForwardEvent"===t?this._delegate(t,[n,r,e.LabelCleanser.cleanLabels(i)]):this._delegate(t,[n,e.LabelCleanser.cleanLabels(i)]))},e.prototype.avPauseEvent=function(t,e){if(this._eventsEnabled()&&this._avEventsEnabled())return this.media.setPlaying(!1),this._avNavigationEvent("avPauseEvent",t,e),this},e.prototype.avBufferEvent=function(t,e){if(this._eventsEnabled()&&this._avEventsEnabled())return this.media.setPlaying(!1),this._avNavigationEvent("avBufferEvent",t,e),this.media.setBuffering(!0),this},e.prototype.avEndEvent=function(t,e){if(this._eventsEnabled()&&this._avEventsEnabled())return this.media.setPlaying(!1),this._avNavigationEvent("avEndEvent",t,e),this.media=null,this},e.prototype.avRewindEvent=function(t,e,n){if(this._eventsEnabled()&&this._avEventsEnabled())return this._avNavigationEvent("avRewindEvent",t,n,e),this},e.prototype.avFastForwardEvent=function(t,e,n){if(this._eventsEnabled()&&this._avEventsEnabled())return this._avNavigationEvent("avFastForwardEvent",t,n,e),this},e.prototype.avSeekEvent=function(t,e){if(this._eventsEnabled()&&this._avEventsEnabled())return this._avNavigationEvent("avSeekEvent",t,e),this},e.prototype.avUserActionEvent=function(t,n,i,r){if(this._eventsEnabled()&&this._avEventsEnabled()){i=this._liveBroker?this._liveBroker.getPosition():(i=this._cleanPosition(i),this._preventPositionExceedingMediaLength(i));var o=e.LabelCleanser.cleanLabels(r);return this._delegate("avUserActionEvent",[t,n,i,o]),this}},e.prototype.releaseSuppressedPlay=function(){if(this._eventsEnabled()&&this._avEventsEnabled())return this._suppressingPlayEvent&&(this._suppressingPlayEvent=!1,this.avPlayEvent(this._liveBroker.getPosition(),this._suppressedPlayEventLabels)),this},e.prototype._clearMedia=function(){this.removeLabel(d.MEDIA_TIMESTAMP),this.removeLabel(d.ESS_ENABLED),this.removeLabel(d.ESS_ENRICHED),this.removeLabel(d.ESS_SUCCESS),this.removeLabel(d.ESS_ERROR),this.removeLabel(d.ESS_STATUS_CODE),null!==this.media&&(this.media=null),this._liveBroker instanceof l&&(this._liveBroker.stop(),this._liveBroker=null),this._onDemandBroker instanceof f&&(this._onDemandBroker.stop(),this._onDemandBroker=null),this._isPlaying=void 0,this._previousPlayPosition=void 0},e.prototype._positionExceedsMediaLength=function(t){return!!(this.media&&0<this.media.length&&t>=this.media.length-1e3)},e.prototype._preventPositionExceedingMediaLength=function(t){return this._positionExceedsMediaLength(t)?this.media.length:t},e.Consumers={COMSCORE:1,BARB:2,ATI:4},e}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i,r;i=[n(13),n(7),n(14),n(15)],void 0===(r=function(t,e,n,i){"use strict";function r(e,i,r,s,a){this._playerDelegate=e,this._playhead=new t,this._isStarted=!1,this._interval=null,this._echoClient=r,this._broadcast=o,this._playerDelegateTimestamp=0,this._previousPosition=0,this._playingTime=0,this._media=i,this._environment=s,this._essEnabled=a,this._hb3NotSentYet=!0,this._hb5NotSentYet=!0,this._isRecievingPlayerTimestamp=!1,this._updateTime=0,this._essEnabled&&(this._schedule=new n(i,s,r))}var o="no-broadcast";return r.prototype.start=function(){var t=this;this._isStarted||(this._interval=setInterval(function(){t._update()},1e3),this._isStarted=!0,this._isRecievingPlayerTimestamp||this._playhead.start())},r.prototype.stop=function(){clearInterval(this._interval),this._playhead.stop(),this._isStarted=!1},r.prototype._update=function(){var t,n=parseInt(this._playerDelegate.getTimestamp(),10),i=!1,r=!1,o=!1,s=this.getTimestamp(),a=new Date,u=(a=a.getTime())-this._updateTime;this._updateTime=a,"number"==typeof n&&0<n&&(r=!0,this._isRecievingPlayerTimestamp=!0,this._playerDelegateTimestamp!==n&&(i=!0,this._echoClient.addLabel(e.MEDIA_TIMESTAMP,n)),t=n-s,r&&(0===this._playerDelegateTimestamp||t<0-u-1500||u+1500<t)&&(o=!0,this._playerDelegateTimestamp=n,this._playingTime+=this._playhead.getPosition(),this._restartPlayhead(),s=this.getTimestamp())),o||(0!==this._playerDelegateTimestamp&&!i||this._isRecievingPlayerTimestamp&&!r?this._playhead.stop():this._playhead.start()),this._updateSchedule(s)?(this._playingTime=0,this._playerDelegateTimestamp=n,this._restartPlayhead(),this._hb3NotSentYet=!0,this._hb5NotSentYet=!0):i&&this._echoClient.releaseSuppressedPlay(),this._updateHeartbeats(),this._previousPosition=this.getPosition()},r.prototype._updateSchedule=function(t){var e,n,r,s,a=!1;return this._essEnabled&&this._schedule.hasData()&&0<t&&(e=this._schedule.getBroadcast(t),(s=new i(this._media.getAvType(),this._media.getMediaConsumptionMode())).setServiceId(this._schedule.serviceId),s.setTransportMode(this._media.getTransportMode()),s.setMediaPlayerName(this._media.getMediaPlayerName()),s.setMediaPlayerVersion(this._media.getMediaPlayerVersion()),e||this._broadcast===o?!e||this._broadcast!==o&&e.version.id===this._broadcast.version.id||(r=(n=(this._broadcast=e).published_time).end-n.start,s.setEssEnriched(!0),s.setVersionId(e.version.id),s.setLength(r),e.episode&&e.episode.id&&s.setEpisodeId(e.episode.id),this._updateMedia(s),a=!0):(this._broadcast=o,this._updateMedia(s),a=!0)),a},r.prototype._updateHeartbeats=function(){var t,e;this._broadcast!==o&&(this._hb3NotSentYet||this._hb5NotSentYet)&&(t=this._playingTime+this._playhead.getPosition(),e=this.getPosition(),3e3<=t&&this._hb3NotSentYet&&(this._echoClient.avUserActionEvent("echo_hb","echo_hb_3",e),this._hb3NotSentYet=!1),5e3<=t&&this._hb5NotSentYet&&(this._echoClient.avUserActionEvent("echo_hb","echo_hb_5",e),this._hb5NotSentYet=!1))},r.prototype._updateMedia=function(t){var e=this.getPosition();this._echoClient.liveMediaUpdate(t,e,this._previousPosition),this._previousPosition=e},r.prototype._restartPlayhead=function(){this._playhead.reset(),this._playhead.start()},r.prototype.getPosition=function(){return this._broadcast&&this._broadcast!==o?this._playerDelegateTimestamp-this._broadcast.published_time.start+this._playhead.getPosition():this._playhead.getPosition()},r.prototype.getTimestamp=function(){return this._playerDelegateTimestamp+this._playhead.getPosition()},r}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(13)],void 0===(r=function(t){"use strict";function e(e,n,i){this._playerDelegate=e,this._media=n,this._echoClient=i,this._playhead=new t,this._isStarted=!1,this._interval=null,this._playerDelegatePosition=0,this._playingTime=0,this._currentIntervalMaxPosition=0,this._hb3NotSentYet=!0,this._hb5NotSentYet=!0,this._previousPlayingTime=0}return e.prototype.setPlayhead=function(t){this._playhead=t},e.prototype.start=function(){var t=this;this._isStarted||(this._interval=setInterval(function(){t._update()},1e3),this._isStarted=!0,this._playhead.start())},e.prototype.stop=function(){clearInterval(this._interval),this._playhead.stop(),this._isStarted=!1},e.prototype.setPosition=function(t){"number"==typeof t&&0<=t&&!this.arePositionsWithinTolerance(this.getPosition(),t)&&(this._playerDelegatePosition=t,this._playingTime+=this._playhead.getPosition(),this._restartPlayhead(),this._currentIntervalMaxPosition=t)},e.prototype.getCurrentIntervalMaxPosition=function(){return this._currentIntervalMaxPosition},e.prototype._update=function(){var t=parseInt(this._playerDelegate.getPosition(),10),e=this.getPosition(),n=this._playingTime+this._playhead.getPosition(),i=Math.abs(n-(this._previousPlayingTime||n));this._previousPlayingTime=n,"number"==typeof t&&t!==this._playerDelegatePosition&&0<t&&(0!==this._playerDelegatePosition&&this.arePositionsWithinTolerance(t,e)||(this._playerDelegatePosition=t,e=this._playerDelegatePosition,this._restartPlayhead())),e>this._currentIntervalMaxPosition&&(this._currentIntervalMaxPosition=e),3e3<=n&&this._hb3NotSentYet&&i<1500&&(this._echoClient.avUserActionEvent("echo_hb","echo_hb_3",e),this._hb3NotSentYet=!1),5e3<=n&&this._hb5NotSentYet&&i<1500&&(this._echoClient.avUserActionEvent("echo_hb","echo_hb_5",e),this._hb5NotSentYet=!1),0<this._media.length&&e>=this._media.length&&this._echoClient.avPauseEvent(this._media.length,{echo_pause_at_media_length:1})},e.prototype._restartPlayhead=function(){this._playhead.reset(),this._playhead.start()},e.prototype.getPosition=function(){var t=this._playhead.getPosition();return this._playerDelegatePosition+t},e.prototype.getTimestamp=function(){return 0},e.prototype.arePositionsWithinTolerance=function(t,e){var n=t-e;return-1500<=n&&n<=1500},e}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t){"use strict";function e(t){return"string"==typeof t&&0<t.length}function i(t){return"string"==typeof(e=t[f.ECHO_CACHE_MODE])&&(e=e.toUpperCase(),u.EchoCacheMode.hasOwnProperty(e))?c.assert("boolean"==typeof t[f.ECHO_ENABLED],'Config: "enabled" must be boolean, got '+t[f.ECHO_ENABLED])&&c.assert("boolean"==typeof t[f.ECHO_AUTO_START],'Config: "auto_start" must be boolean, got '+t[f.ECHO_AUTO_START])&&c.assert(null===t[f.ECHO_DEVICE_ID]||"string"==typeof t[f.ECHO_DEVICE_ID]&&t[f.ECHO_DEVICE_ID].length,"ECHO.DEVICE_ID must be an non-empty string"):(a.error("Config Error: KEYS.ECHO_CACHE_MODE Invalid cache mode specified"),!1);var e}function r(t){if(!1===t[f.COMSCORE_ENABLED])return!0;if(!e(t[f.REPORTING_PROFILE])){if(!e(t[f.COMSCORE_HOST]))return a.error("Config Error: Must have config value for COMSCORE_HOST or REPORTING_PROFILE"),!1;if("scorecardresearch.com"!==t[f.COMSCORE_HOST]&&"sa.bbc.co.uk"!==t[f.COMSCORE_HOST])return a.error("Config Error: KEYS.COMSCORE_HOST Should be one of scorecardresearch.com or sa.bbc.co.uk"),!1}return"string"==typeof(n=t[f.REPORTING_PROFILE])&&(n=n.toUpperCase(),u.ReportingProfiles.hasOwnProperty(n))?c.assert("boolean"==typeof t[f.COMSCORE_ENABLED],'ComScore config: "ENABLED" must be boolean'):(a.error("Config Error: KEYS.REPORTING_PROFILE Invalid reporting profile specified"),!1);var n}function o(t){return"string"==typeof t&&(t=t.toUpperCase(),u.ReportingProfiles.hasOwnProperty(t))?u.ReportingProfiles[t]:null}function s(t){return"string"==typeof t&&(t=t.toUpperCase(),u.EchoCacheMode.hasOwnProperty(t))?u.EchoCacheMode[t]:null}var a=n(2),u=n(1),c=n(0),l=n(12),f=n(3),d={};d[f.ECHO_ENABLED]=!0,d[f.ECHO_AUTO_START]=!0,d[f.ECHO_DEVICE_ID]=null,d[f.REPORTING_PROFILE]="PUBLIC_SERVICE",d[f.ECHO_CACHE_MODE]="OFFLINE",d[f.COMSCORE_ENABLED]=!1,d[f.ATI_ENABLED]=!0,d[f.BARB_ENABLED]=!1,d[f.BARB_DEBUG]=!1,d[f.BARB_SITE_CODE]="bbcdotcom",d[f.TEST_SERVICE_ENABLED]=!1,d[f.USE_ESS]=!1,d[f.ESS_HOSTNAME]="ess.api.bbci.co.uk",d[f.USE_SSC]=!1,d[f.SSC_HOSTNAME]=null;var p={};return p[f.ECHO_NAME]=l.NAME,p[f.ECHO_VERSION]=l.VERSION,{defaultConfig:d,fixedConfig:p,generate:function(t){var n,u;(t=t||{})[f.REPORTING_PROFILE]&&(n=o(t[f.REPORTING_PROFILE])),n||(n=o("PUBLIC_SERVICE")),t[f.ECHO_CACHE_MODE]&&(u=s(t[f.ECHO_CACHE_MODE])),u||(u=s("OFFLINE"));var l,h,_,g=c.extend(d,!0,n,t||{},p);return i(g)&&r(g)&&(!1===(_=g)[f.BARB_ENABLED]||(e(_[f.BARB_SITE_CODE])?_[f.BARB_SITE_CODE].match(/[a-zA-Z]+/)?"boolean"==typeof _[f.BARB_DEBUG]||(a.error("Config Error: KEYS.BARB_DEBUG must be a boolean"),0):(a.error("Config Error: KEYS.BARB_SITE_CODE must match [a-zA-Z]"),0):(a.error("Config Error: KEYS.BARB_SITE_CODE must have a value"),0)))&&(h=(l=g)[f.SSC_HOSTNAME],"boolean"!=typeof l[f.USE_SSC]?(a.error("Config Error: KEYS.USE_SSC must be boolean"),0):null===h||".com"===h||".co.uk"===h||(a.error("Config Error: SSC_HOSTNAME must be one of .com, .co.uk or null"),0))?g:null}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t){"use strict";function e(){return-1}function i(t,e,n){return t===y?(i=e)+"//"+("https:"===i?"s":"")+"b."+y+"/p?":e+"//"+E+"/"+n+"/s";var i}function r(t){return null===t?g:t}function o(t){return null!==t&&t.isValueValid()?t.getValue():g}function s(t){var e=t.getMediaConsumptionMode(),n=t.getServiceIdObject(),i=t.getVersionIdObject(),r=t.getClipIdObject(),o=t.getEpisodeIdObject(),s=t.getVpIdObject(),a=t.getNonPipsContentIdObject();return e===_.MediaConsumptionMode.LIVE&&!0===t.isEssEnriched()&&i.isValueValid()?i:e===_.MediaConsumptionMode.LIVE&&n.isValueValid()?n:a.isValueValid()?a:i.isValueValid()?i:r.isValueValid()?r:o.isValueValid()?o:s.isValueValid()?s:n.isValueValid()?n:null}function a(t){var e={},n=s(t),i=r(t.getAvType()),a=r(t.getLength()),u=r(t.getRetrievalType());e[c.MEDIA_PART_NUMBER]=1,e[c.MEDIA_TOTAL_PARTS]=1,e[c.MEDIA_LENGTH]=a,e[c.MEDIA_MEDIUM]=i,e[c.MEDIA_RETRIEVAL_TYPE]=u,null===t.getMediaConsumptionMode()?(e[c.MEDIA_STREAM_TYPE]=g,e[c.MEDIA_LIVE_OR_ONDEMAND]=g):t.isLive()||i!==g?t.isOnDemand()||t.isDownload()?(e[c.MEDIA_STREAM_TYPE]=t.isVideo()?"vod":"aod",e[c.MEDIA_LIVE_OR_ONDEMAND]="on-demand"):(t.isEssEnriched()?e[c.ESS_ENRICHED]="true":(e[c.ESS_ENRICHED]="false",e[c.MEDIA_IS_LIVE]="1"),e[c.MEDIA_STREAM_TYPE]="live",e[c.MEDIA_LIVE_OR_ONDEMAND]="live"):e[c.MEDIA_STREAM_TYPE]=g;var l=t.getVersionIdObject(),f=t.getServiceIdObject(),d=t.getClipIdObject(),p=t.getEpisodeIdObject(),h=t.getNonPipsContentIdObject();if(e[c.MEDIA_PID]=o(n),t.isLive()&&!t.getServiceId()&&!1===t.isEssEnriched()&&(t.getVersionId()||t.getVpId())){var v=t.getVersionId()||t.getVpId();e[c.MEDIA_PID]="unverified_"+v}return h.isValueSet()&&(e[c.MEDIA_NON_PIPS_CONTENT_ID]=o(h)),l.isValueSet()&&(e[c.MEDIA_VERSION_ID]=o(l)),f.isValueSet()&&(e[c.MEDIA_SERVICE_ID]=o(f)),d.isValueSet()&&(e[c.MEDIA_CLIP_ID]=o(d)),p.isValueSet()&&(e[c.MEDIA_EPISODE_ID]=o(p)),function(t){var e=s(t),n=t.getVersionIdObject(),i=t.getEpisodeIdObject(),r=t.getClipIdObject();if(null!==e){var o=e.getIdType();if(t.isLive()){if(o===_.MediaIdType.SERVICE||t.isEssEnriched())return!1}else{if(!(o!==_.MediaIdType.SERVICE||n.isValueSet()||i.isValueSet()||r.isValueSet()))return!0;if(o!==_.MediaIdType.VPID)return!1}}return!0}(t)&&(e[c.MEDIA_AMBIGUOUS_ID]="1"),e}function u(t,e,n,r){var o,s,a,f,h,v,E,A,S,I=n[l.COMSCORE_SITE];this._deviceId=null,this._broker=null,this.media=null,this.SSPlayerEvent=u.StreamSense.PlayerEvents,this.SSPlayerState=u.StreamSense.InternalStates,this._clips=[],this._isEnabled=!0,this._hasStartedAppTag=!1,this._hasCreatedAsset=!1,this._storedAssetLabels={},h=n[l.COMSCORE_HOST],I=n[l.COMSCORE_SITE],this.useSsc=!0===n[l.USE_SSC]&&"sa.bbc.co.uk"!==h,this._deviceId=n[l.ECHO_DEVICE_ID]||void 0,!0!==this.useSsc||this._deviceId||(E=u._createSscHelper({forceBBCHost:n[l.SSC_HOSTNAME]}),this._deviceId=E.getCookieId()),p.containsValue(_.ApplicationType,e)||(e=g),o=i(h,r.getProtocol(),I),!0!==this.useSsc||this._deviceId||(o=E.getLocation().protocol+"//"+E.getSSCHostname()),!0===n[l.TEST_SERVICE_ENABLED]&&(a=o,o=n[l.TEST_SERVICE_URL]+"/comscore",this._isUsingComscoreOTTLibrary&&(s=n[l.TEST_SERVICE_URL]+"/offline")),this._isApp=!p.containsValue(b,e),v=r.getHttpGet(),f=h===y,this._isUsingComscoreOTTLibrary=!(!u.AppTag||!u.AppTag.ns_),this._isUsingComscoreOTTLibrary?(this.appTag=u.AppTag.ns_.comScore,this.appTag.setPlatformAPI(u.AppTag.ns_.PlatformAPIs.html5),v&&(this.appTag.getPlatformAPI().httpGet=v),this.appTag.setPublisherSecret(n[l.COMSCORE_PUBLISHER_SECRET]),this.appTag.setAppContext()):this.appTag=new u.AppTag(v||d._defaultHttpGet,this._isApp,f),this.ss=new u.StreamSense.StreamingAnalytics({liveEndpointURL:o,systemClockJumpDetection:!0}),v&&(this.ss.getPlatformAPI().httpGet=v),f&&(this.appTag.setCustomerC2(n[l.COMSCORE_CUSTOMER_ID]),this.ss.setLabel(c.COMSCORE_CUSTOMER,n[l.COMSCORE_CUSTOMER_ID]),this.addLabel(c.COMSCORE_C1,"2"),this.addLabel(c.COMSCORE_SITE,I)),this.appTag.setPixelURL(o),this._deviceId?this.addLabel(c.DEVICE_ID,this._deviceId):this.useSsc||"sa.bbc.co.uk"!==h||(this._deviceId=m.getCookieValueByName("s1")),!0===n[l.TEST_SERVICE_ENABLED]&&(this.addLabel(c.COMSCORE_ENDPOINT,a),this._isUsingComscoreOTTLibrary&&this.appTag.setOfflineURL(s)),this.addLabel(c.BBC_APPLICATION_NAME,t),this.addLabel(c.BBC_APPLICATION_TYPE,e),this.setCacheMode(n[l.ECHO_CACHE_MODE]),this.addLabel(c.BBC_MEASUREMENT_LIB_NAME,n[l.ECHO_NAME]),this.addLabel(c.BBC_MEASUREMENT_LIB_VERSION,n[l.ECHO_VERSION]),this._isApp?(this._isUsingComscoreOTTLibrary?this.appTag.setAppName(t):this.addLabel(c.APP_NAME,t),this.addLabel(c.APP_PLATFORM_NAME,r.getPlatformName()),this.addLabel(c.APP_PLATFORM_RUNTIME,r.getPlatformRuntimeEnvironment()),this.addLabel(c.APP_OS_VERSION,r.getPlatformOSVersion()),this.addLabel(c.APP_DEVICE_NAME,r.getDeviceName()),this.addLabel(c.APP_SCREEN_RESOLUTION,r.getScreenResolution()),this.addLabel(c.APP_LANGUAGE,r.getLanguage())):this.addLabel(c.WEB_SCREEN_RES,r.getScreenResolution()),this.addLabel(c.ENV_CHAR_SET,r.getCharSet()),this.addLabel(c.ENV_TITLE,r.getTitle()),this.addLabel(c.ENV_REFERRER,r.getReferrer()),-1===r.getURL().indexOf("file:",0)&&this.addLabel(c.ENV_URL,r.getURL()),n[l.ECHO_TRACE]&&this.setTraceId(n[l.ECHO_TRACE]),(A=d.getOrbCookiesPolicy())&&(S="ad"+(A.ads?"1":"0")+"ps"+(A.personalisation?"1":"0")+"pf"+(A.performance?"1":"0"),this.addLabel(c.COOKIE_POLICY,S)),this.addLabel(_.ManagedLabels.BBC_SITE,g),this._mediaIsLive=null,n&&!1===n[l.ECHO_ENABLED]?this._isEnabled=!1:this._isEnabled=!0}var c=n(7),l=n(3),f=n(32),d=n(8),p=n(0),h=n(33),_=n(1),g="invalid-data",v=n(34),m=n(9),E="sa.bbc.co.uk/bbc",y="scorecardresearch.com",b=[_.ApplicationType.WEB,_.ApplicationType.MOBILE_WEB,_.ApplicationType.RESPONSIVE],A=[c.NO_COOKIES],S=["ns_st_pr","ns_st_sn","ns_st_en","ns_st_ep","ns_st_ty","ns_st_ct","ns_st_st","ns_st_pu"];u.prototype.start=function(){this._isEnabled&&!this._hasStartedAppTag&&(this.appTag.start(),this._hasStartedAppTag=!0)},u.prototype.enable=function(){this._isEnabled||(this._isEnabled=!0)},u.prototype.disable=function(){this._isEnabled&&(this.clearMedia(),this._isEnabled=!1)},u.prototype.getDeviceId=function(){return this._deviceId},u.prototype._buildStreamSenseClip=function(t){var e,n=a(t),i=n[c.MEDIA_PID];for(e=0;e<this._clips.length;e++)if(this._clips[e][c.MEDIA_PID]===i)return this._clips[e];return n[c.MEDIA_CLIP_NUMBER]=this._clips.length+1,this._clips.push(n),n},u.prototype.setTraceId=function(t){this.addLabel(l.ECHO_TRACE,t)},u._createSscHelper=function(t){return new v(t||{})},u.StreamSense=n(35),u.AppTag=n(36);var I="<"+A.join("><")+">";return u.prototype._isExcludedLabel=function(t){return!0===this.useSsc&&!!I.match(new RegExp("<"+t+">"))},u.prototype.addLabels=function(t){if("object"==typeof t)for(var e in t)t.hasOwnProperty(e)&&this.addLabel(e,t[e])},u.prototype.addLabel=function(t,e){!0!==this._isExcludedLabel(t)&&(this.appTag.setLabel(t,e),-1<S.indexOf(t)?this._hasCreatedAsset?this.ss.getPlaybackSession().getAsset().setLabel(t,e):this._storedAssetLabels[t]=e:this.ss.setLabel(t,e))},u.prototype.addManagedLabel=function(t,e){var n=h.isValidManagedLabel(t,e)?e:g;for(var i in _.ManagedLabels)_.ManagedLabels[i]===t&&this.addLabel(t,n)},u.prototype.removeLabels=function(t){for(var e=0,n=t.length;e<n;e++)this.removeLabel(t[e])},u.prototype.removeLabel=function(t){this.appTag.setLabel(t,null),-1<S.indexOf(t)?this._hasCreatedAsset?this.ss.getPlaybackSession().getAsset().setLabel(t,null):delete this._storedAssetLabels[t]:this.ss.setLabel(t,null)},u.prototype.setLoggedInToBBCId=function(t){this.addLabel(c.BBC_ID_LOGGED_IN,"1"),t&&0<t.length?this.addManagedLabel(_.ManagedLabels.BBC_HASHED_ID,t):this.removeLabel(_.ManagedLabels.BBC_HASHED_ID)},u.prototype.setLoggedOutOfBBCId=function(){this.removeLabels([c.BBC_ID_LOGGED_IN,_.ManagedLabels.BBC_HASHED_ID])},u.prototype.setAppVersion=function(t){"function"==typeof this.appTag.setAppVersion?this.appTag.setAppVersion(t):t&&this._isApp?this.addLabel(c.APP_VERSION,t.toString()):t&&this.addLabel(c.BBC_APPLICATION_VERSION,t.toString())},u.prototype.setCounterName=function(t){this._isEnabled&&this.addLabel(c.BBC_COUNTER_NAME,t)},u.prototype.setDestination=function(t){this.addLabel(c.DESTINATION,t)},u.prototype.setProducer=function(t){this.addLabel(c.PRODUCER,t)},u.prototype.setContentLanguage=function(t){this.addLabel(c.BBC_LANGUAGE,t)},u.prototype.setCacheMode=function(t){if(this._isUsingComscoreOTTLibrary&&t!==this._cacheMode){switch(t){case _.EchoCacheMode.ALL:this.appTag.allowLiveTransmission(this.appTag.TransmissionMode.NEVER),this.appTag.allowOfflineTransmission(this.appTag.TransmissionMode.NEVER);break;case _.EchoCacheMode.OFFLINE:this.appTag.allowLiveTransmission(this.appTag.TransmissionMode.DEFAULT),this.appTag.allowOfflineTransmission(this.appTag.TransmissionMode.DEFAULT)}this._cacheMode=t}},u.prototype.flushCache=function(){this._isUsingComscoreOTTLibrary&&this.appTag.flushCache()},u.prototype.clearCache=e,u.prototype.viewEvent=function(t,e){if(this._eventsEnabled()){this.addLabel(c.BBC_COUNTER_NAME,t);var n=p.extend(e,!0,c.ECHO_EVENT_NAME,"view");n.name=t,this.appTag.view(n)}},u.prototype.errorEvent=e,u.prototype.userActionEvent=function(t,e,n){if(this._eventsEnabled()){var i=p.extend(n,!0,c.USER_ACTION_TYPE,t,c.USER_ACTION_NAME,e,c.ECHO_EVENT_NAME,"userAct");this.appTag.hidden(i)}},u.prototype.setPlayerName=function(t){this.addLabel(c.PLAYER_NAME,t)},u.prototype.setPlayerVersion=function(t){this.addLabel(c.PLAYER_VERSION,t)},u.prototype.setPlayerIsPopped=function(t){this.ss.setLabel(c.PLAYER_POPPED,t?1:0)},u.prototype.setPlayerWindowState=function(t){this.ss.setLabel(c.PLAYER_WINDOW_STATE,t)},u.prototype.setPlayerVolume=function(t){this.ss.setLabel(c.PLAYER_VOLUME,t)},u.prototype.setPlayerIsSubtitled=function(t){this.ss.setLabel(c.PLAYER_SUBTITLED,t?1:0)},u.prototype.setBroker=function(t){return this._broker=t,this},u.prototype.setMedia=function(t){var e,n,i;if(this._eventsEnabled()&&(this.clearMedia(),t)){this.media=t;var r=this._buildStreamSenseClip(this.media),o=(e=this.media,n={},i=s(e),n[c.PLAYLIST_NAME]=null===i?g:i.getValue(),n);this._mediaIsLive=!t.isOnDemand(),this.ss.createPlaybackSession(o),this.ss.getPlaybackSession()&&(this.ss.getPlaybackSession().setAsset(r),this._hasCreatedAsset=!0,this.ss.getPlaybackSession().getAsset().setLabels(this._storedAssetLabels))}},u.prototype.liveMediaUpdate=function(t,e,n){p.assert("number"==typeof e,"newPosition must be a number"),p.assert("number"==typeof n,"oldPosition must be a number"),this.media=t;var i=this._buildStreamSenseClip(t);this.ss.notifyEnd(n),this.ss.getPlaybackSession().setAsset(i),this.ss.getPlaybackSession().getAsset().setLabels(this._storedAssetLabels),this.ss.notifyPlay(e)},u.prototype.liveEnrichmentFailed=e,u.prototype.setMediaLength=function(t){this._eventsEnabled()&&null!=this.media&&((!t||t<0)&&(t=0),this.ss.getPlaybackSession().getAsset().setLabel(c.MEDIA_LENGTH,t))},u.prototype.avPlayEvent=function(t,e){if(this._eventsEnabled()){var n=p.extend(e,!0,c.ECHO_EVENT_NAME,"avPlay");this.media.isLive()&&!1===this.media.isEssEnriched()&&(t=0),this.ss.notifyPlay(n,t)}},u.prototype.avPauseEvent=function(t,e){if(this._eventsEnabled()){var n=p.extend(e,!0,c.ECHO_EVENT_NAME,"avPause"),i=this.media.isLive();i&&!1===this.media.isEssEnriched()?t=0:!i&&this._broker&&0===t&&(t=this._broker.getCurrentIntervalMaxPosition()),this.ss.notifyPause(n,t)}},u.prototype.avBufferEvent=function(t,e){this._eventsEnabled()&&(this.media.isLive()&&!1===this.media.isEssEnriched()&&(t=0),this.ss.notifyBufferStart(t))},u.prototype.avEndEvent=function(t,e){if(this._eventsEnabled()){var n=p.extend(e,!0,c.ECHO_EVENT_NAME,"avEnd",c.PLAYLIST_END,1);this.media.isLive()&&!1===this.media.isEssEnriched()&&(t=0),this.ss.notifyEnd(t,n),this.clearMedia()}},u.prototype.avRewindEvent=function(t,e,n){if(this._eventsEnabled()){var i=p.extend(n,!0,c.ECHO_EVENT_NAME,"avRW",c.EVENT_TRIGGERED_BY_USER,"rewind",c.REWIND_FF_RATE,e);this.media.isLive()&&!1===this.media.isEssEnriched()&&(t=0),this.ss.notifyPause(t,i)}},u.prototype.avFastForwardEvent=function(t,e,n){if(this._eventsEnabled()){var i=p.extend(n,!0,c.ECHO_EVENT_NAME,"avFF",c.EVENT_TRIGGERED_BY_USER,"fastforward",c.REWIND_FF_RATE,e);this.media.isLive()&&!1===this.media.isEssEnriched()&&(t=0),this.ss.notifyPause(i,t)}},u.prototype.avSeekEvent=function(t,e){if(this._eventsEnabled()){var n=p.extend(e,!0,c.ECHO_EVENT_NAME,"avSeek",c.EVENT_TRIGGERED_BY_USER,"seek");this.media.isLive()&&!1===this.media.isEssEnriched()&&(t=0),this.ss.notifyPause(t,n)}},u.prototype.avUserActionEvent=function(t,e,n,i){if(this._eventsEnabled()){var r=p.extend(i,!0,c.ECHO_EVENT_NAME,"avUserAct",c.STREAMSENSE_CUSTOM_EVENT_TYPE,t,c.USER_ACTION_TYPE,t,c.USER_ACTION_NAME,e);this.media.isLive()&&!1===this.media.isEssEnriched()&&(n=0),this.ss.notifyCustomEvent(n,r)}},u.prototype.clearMedia=function(){this._eventsEnabled()&&(this._clips=[],this._hasCreatedAsset=!1,null!==this.media&&(this.ss.getState()===f.PLAYING&&this.avEndEvent(0),this.media=null))},u.prototype.requiresLabelCleansing=function(){return!0},u.prototype._eventsEnabled=function(){return this._isEnabled&&this._hasStartedAppTag},u}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){t.exports={IDLE:0,PLAYBACK_NOT_STARTED:1,PLAYING:2,PAUSED:3,BUFFERING_BEFORE_PLAYBACK:4,BUFFERING_DURING_PLAYBACK:5,BUFFERING_DURING_SEEKING:6,BUFFERING_DURING_PAUSE:7,SEEKING_BEFORE_PLAYBACK:8,SEEKING_DURING_PLAYBACK:9,SEEKING_DURING_BUFFERING:10,SEEKING_DURING_PAUSE:11,PAUSED_DURING_BUFFERING:12}},function(t,e,n){var i;void 0===(i=function(t){"use strict";var e=n(1),i=n(0);return{isValidManagedLabel:function(t,n){switch(t){case e.ManagedLabels.IPLAYER_STATE:if("purchased"!==n&&"free"!==n)return!1;break;case e.ManagedLabels.STORE_ED_TYPE:if("archive"!==n&&"standard"!==n)return!1;break;case e.ManagedLabels.IPLAYER_AVAIL:if("avail"!==n&&"unavail"!==n&&"soon"!==n)return!1;break;case e.ManagedLabels.STORE_REFERRAL:if("iplayer"!==n&&"store"!==n)return!1;break;case e.ManagedLabels.BBC_HASHED_ID:if("string"!=typeof n||0===i.trim(n).length)return!1}return!0}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i,r;void 0===(r="function"==typeof(i=function(){function t(t){t=t||{},this.alwaysUseHttps=!0===t.alwaysUseHttps||!1,this.forceBBCHost=!1,this._sscCookieId=void 0,this._s1CookieId=void 0,this._uidCookieId=void 0,".co.uk"===t.forceBBCHost?this.forceBBCHost=".co.uk":".com"===t.forceBBCHost&&(this.forceBBCHost=".com")}var e,n;return e="ssc.api.bbc.co.uk",n="ssc.api.bbc.com",t.prototype.getCookie=function(t){return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},t.prototype.getLocation=function(){return window.location},t.prototype.getCookieId=function(){var t,i,r,o,s;return i=this.getSSCHostname(),r=this.getLocation(),o=i===e&&-1!==r.hostname.search(/bbc.co.uk$/),s=i===n&&-1!==r.hostname.search(/bbc.com$/),(o||s)&&null==(t=this.getSSCCookieId())&&(o?t=this.getS1CookieId():s&&(t=this.getUidCookieId())),t},t.prototype.getS1CookieId=function(){return void 0===this._s1CookieValue&&(this._s1CookieValue=this.getCookie("s1")),this._s1CookieValue},t.prototype.getUidCookieId=function(){return void 0===this._uidCookieValue&&(this._uidCookieValue=this.getCookie("ckns_uid"),null===this._uidCookieValue&&(this._uidCookieValue=this.getCookie("ckpf_uid"))),this._uidCookieValue},t.prototype.getSSCCookieId=function(){return void 0===this._sscCookieValue&&(this._sscCookieValue=this.getCookie("ckns_sscid"),null===this._sscCookieValue&&(this._sscCookieValue=this.getCookie("ckpf_sscid"))),this._sscCookieValue},t.prototype.isValidId=function(t){var e;return e=!1,"string"==typeof t&&-1!==t.search(/^[^(?!<>\s)]+$/)&&(e=!0),e},t.prototype.getAnalyticsLocation=function(t,e){var n,i,r,o,s;return this.getSSCHostname(),i=this.getLocation(),n={sscId:void 0},"string"!=typeof t&&(t=""),void 0!==e&&!1!==this.isValidId(e)||(e=this.getCookieId()),this.alwaysUseHttps||"https:"===i.protocol?n.protocol="https:":n.protocol="http:",o=-1!==t.search(/ns_alias=/),s=this.isValidId(e),n.hostname=o||s?this.getScorecardresearchHostname():this.getSSCHostname(),s&&(t=""===t?"?ns_alias="+e:(r=t.search(/\?/)+1,[t.slice(0,r),"ns_alias="+e+"&",t.slice(r)].join("")),n.sscId=e),n.search=t,-1!==n.hostname.search(/scorecardresearch.com$/)?n.pathname="/p":n.pathname="/",n.href=n.protocol+"//"+n.hostname+n.pathname+n.search,n},t.prototype.getSSCHostname=function(){var t;return t=this.getLocation(),".com"===this.forceBBCHost||".co.uk"!==this.forceBBCHost&&-1===t.hostname.search(/bbc\.co\.uk$/)?n:e},t.prototype.getScorecardresearchHostname=function(){return"https:"===this.getLocation().protocol?"sb.scorecardresearch.com":"b.scorecardresearch.com"},t})?i.call(e,n,e,t):i)||(t.exports=r)},function(t,e,n){(function(e,n){t.exports=function t(e,n,i){function r(s,a){if(!n[s]){if(!e[s]){if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[s]={exports:{}};e[s][0].call(c.exports,function(t){return r(e[s][1][t]||t)},c,c.exports,t,e,n,i)}return n[s].exports}for(var o=!1,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(t,e,n){var i=t(24),r=t(26),o=t(36);e.exports=function(t){function e(e){c=e,t.t().set("plannedFlushTime",e+"")}function n(){t.flush(),e(-1),a.i()}function s(){l&&(o.clearTimeout(l),l=null)}var a=this,u=!1,c=-1,l=null;i.extend(a,{start:function(){u=!0,!l&&0<t.getCacheFlushingInterval()&&null!=t.getCustomerC2()&&(t.t().has("plannedFlushTime")&&(c=r.o(t.t().get("plannedFlushTime"),-1)),a.i())},stop:function(){u=!1,s()},update:function(){0<t.getCacheFlushingInterval()&&null!=t.getCustomerC2()?!l&&u?(e(-1),a.start()):null!=l&&(e(0<t.getCacheFlushingInterval()?+new Date+1e3*t.getCacheFlushingInterval():-1),l&&(o.clearTimeout(l),a.i())):(e(-1),s())},i:function(){c<0&&e(+new Date+1e3*t.getCacheFlushingInterval()),l=o.setTimeout(n,c-+new Date)}})}},{24:24,26:26,36:36}],2:[function(t,e,n){var i=t(5),r=t(8).TransmissionMode,o=t(8).u,s=new i,a={TransmissionMode:r,getCore:function(){return s},setAppContext:function(t){s.setAppContext(t)},setEnabled:function(t){s.setEnabled(t)},getEnabled:function(){return s.getEnabled()},onUxActive:function(){s.onUxActive()},onUxInactive:function(){s.onUxInactive()},onEnterForeground:function(){s.onEnterForeground()},onExitForeground:function(){s.onExitForeground()},onUserInteraction:function(){s.onUserInteraction()},update:function(){s.update()},enableAutoUpdate:function(t,e){s.enableAutoUpdate(t,void 0===e||e)},disableAutoUpdate:function(){s.disableAutoUpdate()},isAutoUpdateEnabled:function(){return s.isAutoUpdateEnabled()},start:function(t){s.s(o.l,t||{})},view:function(t){s.s(o.v,t||{})},hidden:function(t){s.s(o.HIDDEN,t||{})},close:function(t){s.s(o.h,t)},aggregate:function(t){s.s(o._,t)},getPixelURL:function(){return s.getPixelURL()},setPixelURL:function(t){s.setPixelURL(t)},getCustomerC2:function(){return s.getCustomerC2()},setCustomerC2:function(t){s.setCustomerC2(t)},getAppName:function(){return s.getAppName()},setAppName:function(t){s.setAppName(t)},getAppVersion:function(){return s.getAppVersion()},setAppVersion:function(t){s.setAppVersion(t)},getGenesis:function(){return s.getGenesis()},getVisitorID:function(){return s.getVisitorId()},setVisitorId:function(t,e){s.setVisitorId(t,e)},getCrossPublisherId:function(){return s.getCrossPublisherId()},getOfflineTransmissionMode:function(){return s.getOfflineTransmissionMode()},allowOfflineTransmission:function(t){s.allowOfflineTransmission(t)},getLiveTransmissionMode:function(){return s.getLiveTransmissionMode()},allowLiveTransmission:function(t){s.allowLiveTransmission(t)},getPublisherSecret:function(){return s.g()},setPublisherSecret:function(t){s.m(t)},flushCache:function(){s.flush()},clearOfflineCache:function(){s.I().clear()},setLabel:function(t,e){s.setLabel(t,e)},getLabel:function(t){return s.getLabel(t)},setLabels:function(t){s.setLabels(t)},getLabels:function(){return s.getLabels()},setAutoStartLabels:function(t){s.setAutoStartLabels(t)},getAutoStartLabel:function(t){return s.getAutoStartLabel(t)},getAutoStartLabels:function(){return s.getAutoStartLabels()},setAutoStartLabel:function(t,e){s.setAutoStartLabel(t,e)},isKeepAliveEnabled:function(){return s.S().isEnabled()},setKeepAliveEnabled:function(t){s.setKeepAliveEnabled(!!t)},setCacheMaxMeasurements:function(t){s.setCacheMaxMeasurements(t)},getCacheMaxMeasurements:function(){return s.getCacheMaxMeasurements()},setCacheMaxBatchFiles:function(t){s.setCacheMaxBatchFiles(t)},getCacheMaxBatchFiles:function(){return s.getCacheMaxBatchFiles()},setCacheMaxFlushesInARow:function(t){s.setCacheMaxFlushesInARow(t)},getCacheMaxFlushesInARow:function(){return s.getCacheMaxFlushesInARow()},setCacheMinutesToRetry:function(t){s.setCacheMinutesToRetry(t)},getCacheMinutesToRetry:function(){return s.getCacheMinutesToRetry()},setCacheMeasurementExpiry:function(t){s.setCacheMeasurementExpiry(t)},getCacheMeasurementExpiry:function(){return s.getCacheMeasurementExpiry()},getCacheFlushingInterval:function(){return s.getCacheFlushingInterval()},setCacheFlushingInterval:function(t){s.setCacheFlushingInterval(t)},setSecure:function(t){s.setSecure(t)},isSecure:function(){return s.isSecure()},getMeasurementLabelOrder:function(){return s.getMeasurementLabelOrder()},setMeasurementLabelOrder:function(t){s.setMeasurementLabelOrder(t)},setAutoStartEnabled:function(t){s.setAutoStartEnabled(t)},isAutoStartEnabled:function(){return s.isAutoStartEnabled()},getVersion:function(){return s.getVersion()},getPlatformAPI:function(){return s.getPlatformAPI()},setPlatformAPI:function(t){s.setPlatformAPI(t)},setOfflineURL:function(t){s.setOfflineURL(t)},clearInternalData:function(){s.clearInternalData()},cacheHttpRedirects:function(){s.cacheHttpRedirects()}};e.exports=a},{5:5,8:8}],3:[function(t,e,n){var i=t(24),r=t(36),o=t(8).TransmissionMode;e.exports=function(t){function e(){t.flush(),p=-1,f=null}function n(){f&&(r.clearTimeout(f),f=null)}function s(t){var i=+new Date;l?(n(),(p<i||p<0||!t)&&(p=i+3e4),f=r.setTimeout(e,p-i)):p<0&&(p=i+3e4)}function a(){var e=r.isConnectionAvailable();e!=u&&((u=e)?t.getOfflineTransmissionMode()!=o.NEVER&&t.getOfflineTransmissionMode()!=o.DISABLED&&s(!1):(n(),p=-1)),l&&(d=r.setTimeout(a,c))}var u,c=1e3,l=!1,f=null,d=null,p=-1;i.extend(this,{start:function(){l=!0,u&&0<p&&s(!0),d=r.setTimeout(a,c)},stop:function(){r.clearTimeout(d),d=null,l=!1,n()}})}},{24:24,36:36,8:8}],4:[function(t,e,n){e.exports={PAGE_NAME_LABEL:"name",P:2048,A:4096,C:"previousVersion",k:["c1","c2","ca2","cb2","cc2","cd2","ns_site","ca_ns_site","cb_ns_site","cc_ns_site","cd_ns_site","ns_vsite","ca_ns_vsite","cb_ns_vsite","cc_ns_vsite","cd_ns_vsite","ns_alias","ca_ns_alias","cb_ns_alias","cc_ns_alias","cd_ns_alias","ns_ap_an","ca_ns_ap_an","cb_ns_ap_an","cc_ns_ap_an","cd_ns_ap_an","ns_ap_pn","ns_ap_pv","c12","ca12","cb12","cc12","cd12","ns_ak","ns_ap_hw","name","ns_ap_ni","ns_ap_ec","ns_ap_ev","ns_ap_device","ns_ap_id","ns_ap_csf","ns_ap_bi","ns_ap_pfm","ns_ap_pfv","ns_ap_ver","ca_ns_ap_ver","cb_ns_ap_ver","cc_ns_ap_ver","cd_ns_ap_ver","ns_ap_sv","ns_ap_bv","ns_ap_cv","ns_ap_smv","ns_type","ca_ns_type","cb_ns_type","cc_ns_type","cd_ns_type","ns_radio","ns_nc","cs_partner","cs_xcid","cs_impid","ns_ap_ui","ca_ns_ap_ui","cb_ns_ap_ui","cc_ns_ap_ui","cd_ns_ap_ui","ns_ap_gs","ns_ap_ie","ns_st_sv","ns_st_pv","ns_st_smv","ns_st_it","ns_st_id","ns_st_ec","ns_st_sp","ns_st_sc","ns_st_psq","ns_st_asq","ns_st_sq","ns_st_ppc","ns_st_apc","ns_st_spc","ns_st_atpc","ns_st_cn","ns_st_ev","ns_st_po","ns_st_cl","ns_st_el","ns_st_sl","ns_st_pb","ns_st_hc","ns_st_mp","ca_ns_st_mp","cb_ns_st_mp","cc_ns_st_mp","cd_ns_st_mp","ns_st_mv","ca_ns_st_mv","cb_ns_st_mv","cc_ns_st_mv","cd_ns_st_mv","ns_st_pn","ns_st_tp","ns_st_ad","ns_st_li","ns_st_ci","ns_st_si","ns_st_pt","ns_st_dpt","ns_st_ipt","ns_st_ap","ns_st_dap","ns_st_et","ns_st_det","ns_st_upc","ns_st_dupc","ns_st_iupc","ns_st_upa","ns_st_dupa","ns_st_iupa","ns_st_lpc","ns_st_dlpc","ns_st_lpa","ns_st_dlpa","ns_st_pa","ns_st_ldw","ns_st_ldo","ns_st_ie","ns_ap_jb","ns_ap_et","ns_ap_res","ns_ap_sd","ns_ap_po","ns_ap_ot","ns_ap_c12m","cs_c12u","ca_cs_c12u","cb_cs_c12u","cc_cs_c12u","cd_cs_c12u","ns_ap_install","ns_ap_updated","ns_ap_lastrun","ns_ap_cs","ns_ap_runs","ns_ap_usage","ns_ap_fg","ns_ap_ft","ns_ap_dft","ns_ap_bt","ns_ap_dbt","ns_ap_dit","ns_ap_as","ns_ap_das","ns_ap_it","ns_ap_uc","ns_ap_aus","ns_ap_daus","ns_ap_us","ns_ap_dus","ns_ap_ut","ns_ap_oc","ns_ap_uxc","ns_ap_uxs","ns_ap_lang","ns_ap_ar","ns_ap_miss","ns_ts","ns_ap_cfg","ns_ap_env","ns_ap_ais","ns_st_ca","ns_st_cp","ns_st_er","ca_ns_st_er","cb_ns_st_er","cc_ns_st_er","cd_ns_st_er","ns_st_pe","ns_st_ui","ca_ns_st_ui","cb_ns_st_ui","cc_ns_st_ui","cd_ns_st_ui","ns_st_bc","ns_st_dbc","ns_st_bt","ns_st_dbt","ns_st_bp","ns_st_lt","ns_st_skc","ns_st_dskc","ns_st_ska","ns_st_dska","ns_st_skd","ns_st_skt","ns_st_dskt","ns_st_pc","ns_st_dpc","ns_st_pp","ns_st_br","ns_st_pbr","ns_st_rt","ns_st_prt","ns_st_ub","ns_st_vo","ns_st_pvo","ns_st_ws","ns_st_pws","ns_st_ki","ns_st_rp","ns_st_bn","ns_st_tb","ns_st_an","ns_st_ta","ns_st_pl","ns_st_pr","ns_st_tpr","ns_st_sn","ns_st_en","ns_st_ep","ns_st_tep","ns_st_sr","ns_st_ty","ns_st_ct","ns_st_cs","ns_st_ge","ns_st_st","ns_st_stc","ns_st_ce","ns_st_ia","ns_st_dt","ns_st_ddt","ns_st_tdt","ns_st_tm","ns_st_dtm","ns_st_ttm","ns_st_de","ns_st_pu","ns_st_ti","ns_st_cu","ns_st_fee","ns_st_ft","ns_st_at","ns_st_pat","ns_st_vt","ns_st_pvt","ns_st_tt","ns_st_ptt","ns_st_cdn","ns_st_pcdn","ns_st_amg","ns_st_ami","ns_st_amp","ns_st_amt","ns_st_ams","ns_ap_i1","ns_ap_i2","ns_ap_i3","ns_ap_i4","ns_ap_i5","ns_ap_i6","ns_ap_referrer","ns_clid","ns_campaign","ns_source","ns_mchannel","ns_linkname","ns_fee","gclid","utm_campaign","utm_source","utm_medium","utm_term","utm_content","ns_ecommerce","ns_ec_sv","ns_client_id","ns_order_id","ns_ec_cur","ns_orderline_id","ns_orderlines","ns_prod_id","ns_qty","ns_prod_price","ns_prod_grp","ns_brand","ns_shop","ns_category","category","ns_c","ns_search_term","ns_search_result","ns_m_exp","ns_m_chs","c3","ca3","cb3","cc3","cd3","c4","ca4","cb4","cc4","cd4","c5","ca5","cb5","cc5","cd5","c6","ca6","cb6","cc6","cd6","c10","c11","c13","c14","c15","c16","c7","c8","c9","ns_ap_er","ns_st_amc"]}},{}],5:[function(t,e,n){var i=t(8).T,r=t(8).N,o=t(4),s=t(26),a=t(17),u=t(8).u,c=t(36),l=t(21),f=t(24),d=t(22),p=t(25),h=t(6),_=t(11),g=t(7),v=t(9),m=t(12).L,E=t(1),y=t(3),b="undefined",A=a.D,S="https://web.archive.org/web/20191108214155/http://b.scorecardresearch.com/p2?",I="https://web.archive.org/web/20191108214155/https://sb.scorecardresearch.com/p2?",T="exitCode",C="lastApplicationAccumulationTimestamp",P="lastSessionAccumulationTimestamp",O="lastApplicationSessionTimestamp",w="lastUserSessionTimestamp",N="lastActiveUserSessionTimestamp",R="foregroundTransitionsCount",L="accumulatedForegroundTime",D="accumulatedBackgroundTime",B="accumulatedInactiveTime",M="totalForegroundTime",x="totalBackgroundTime",U="totalInactiveTime",k="accumulatedApplicationSessionTime",V="accumulatedActiveUserSessionTime",G="accumulatedUserSessionTime",F="activeUserSessionCount",j="userSessionCount",H="lastUserInteractionTimestamp",W="userInteractionCount",Y="applicationSessionCountKey",K="genesis",z="previousGenesis",q="installId",$="firstInstallId",Q="currentVersion",X="runs",Z="coldStartCount",J="crossPublisherIdHashed",tt="crossPublisherId";e.exports=function(){function t(t){return at.has(t)?at.get(t)+"":null}function e(){var t=+new Date,e=!1;return 18e5<t-jt&&(Bt=Dt,Dt=t,Vt++,e=!0),jt=t,e}function n(t){if(re){t=typeof t===b||t;var e=+new Date,n=e-Mt;switch(le){case i.H:Rt+=n,Pt+=n;break;case i.Y:Nt+=n,Ot+=n;break;case i.R:Lt+=n,wt+=n}Mt=e,t&&(at.set(C,Mt+""),at.set(R,Ct+""),at.set(L,Rt+""),at.set(D,Nt+""),at.set(B,Lt+""),at.set(M,Pt+""),at.set(x,Ot+""),at.set(U,wt+""))}}function a(t){if(re){t=typeof t===b||t;var e=+new Date,n=e-zt;switch(fe){case r.F:kt+=n,Wt=e;case r.G:Ut+=n,Ht=e;case r.K:xt+=n,jt=e;break;case r.R:}zt=e,t&&(at.set(P,zt+""),at.set(O,jt+""),at.set(w,Ht+""),at.set(N,Wt+""),at.set(k,xt+""),at.set(V,kt+""),at.set(G,Ut+""),at.set(F,Ft+""),at.set(j,Gt+""),at.set(H,Kt+""),at.set(W,Yt+""),at.set(z,Bt+""),at.set(K,Dt+""),at.set(Y,Vt+""))}}function et(){if(re){var t,o,s=+new Date;t=0<It?i.H:0<Tt?i.Y:i.R,o=s-Kt<3e5?r.F:0<Tt?r.G:0<It?r.K:r.R;var l,f=le,d=fe;if(t!=f||o!=d){var p=!1;f!=t&&(function(t){if(re)switch(t){case i.R:lt.J(!1),ut.X(),ut.Z(),ft.start(),ct.start();break;case i.Y:rt();break;case i.H:se.nn(null),rt()}}(le),function(t){if(re)switch(t){case i.R:ft.stop(),ut.pause(),ct.stop(),rt(),lt.J(!0);break;case i.Y:ae||it();break;case i.H:it(),Ct++}}(t),n(),le=t,p=!0),d!=o&&(function(t){if(re){var n=+new Date;switch(t){case r.F:null!=qt&&(c.clearTimeout(qt),qt=null),Wt=n;case r.G:Ht=n;case r.K:jt=n;break;case r.R:e()||(xt+=n-zt)}}}(fe),function(t){if(re)switch(t){case r.F:3e5<=(i=+new Date)-Wt&&Ft++,Wt=i,se.j();case r.G:3e5<=(n=+new Date)-Ht&&Gt++,Ht=n;case r.K:e();break;case r.R:}var n,i}(o),a(),fe=o),p&&(l=le,re&&l!=i.R&&se.isAutoStartEnabled()&&!ue&&se.s(u.l,ie))}}}function nt(t,e){re&&(l.tn(t)?(e=l.tn(e)?"-cs"+e:"",Qt=t+e):null==Qt&&ge&&(Qt=d(c.getVisitorId()+se.g()),"function"==typeof c.getVisitorIdSuffix&&null!=c.getVisitorIdSuffix()&&(Qt=Qt+"-cs"+c.getVisitorIdSuffix())),at.set("vid",Qt+""))}function it(){if(re){rt();var t=function(){se.update(),null!=pt&&c.setTimeout(t,_t)};pt=c.setTimeout(t,_t)}}function rt(){re&&null!=pt&&(c.clearTimeout(_t),pt=null)}function ot(){return!ge||null==Jt||0===Jt.length||null==$t||0===$t.length}var st,at,ut,ct,lt,ft,dt,pt,ht,_t,gt,vt,mt,Et,yt,bt,At,St,It,Tt,Ct,Pt,Ot,wt,Nt,Rt,Lt,Dt,Bt,Mt,xt,Ut,kt,Vt,Gt,Ft,jt,Ht,Wt,Yt,Kt,zt,qt,$t,Qt,Xt,Zt,Jt,te,ee,ne,ie,re,oe,se=this,ae=!0,ue=!1,ce=!0,le=i.R,fe=r.R,de=!1,pe=!1,he=!1,_e=!0,ge=!1,ve=0;f.extend(se,{isProperlyInitialized:function(){return!ot()},reset:function(){re&&(dt.reset(),le=i.R,fe=r.R,ue=!1,At=bt=null,ee=Yt=Bt=Ut=kt=xt=Lt=Rt=Nt=wt=Ot=Pt=Tt=It=mt=gt=0,pe=de=!(yt=Et=Wt=Ht=jt=zt=Mt=Kt=Gt=Ft=Dt=Et=yt=vt=-1),se.disableAutoUpdate(),null!=qt&&(c.clearTimeout(qt),qt=null),null!=ut&&ut.cancel(),null!=ct&&ct.stop(),null!=lt&&(lt.en(),lt=new g(se)))},M:function(t){at=t||new c.Storage},O:function(t){st=t||new m(se)},W:function(t){ct=t||new E(se)},V:function(t){ft=new y(se)},in:function(){var e=t("AppName");null!=e&&se.setAppName(e);var n=t("AppVersion");null!=n&&se.setAppVersion(n)},rn:function(){re&&at.has("vid")&&(Qt=at.get("vid"))},un:function(){re&&(gt++,at.set(X,gt+""))},sn:function(){return!ue&&(ue=!0,mt++,at.set(Z,mt+""),vt=+new Date,!0)},j:function(){re&&(null!=qt&&(c.clearTimeout(qt),qt=null),qt=c.setTimeout(function(){null!=qt&&(c.clearTimeout(qt),qt=null),et()},3e5))},I:function(){return st},an:function(){return ft},t:function(){return at},fn:function(){return lt},S:function(){return ut},cn:function(){return ct},ln:function(){return dt},onUxActive:function(){re&&(ot()||(Gt<0&&(Gt=0),Tt++,et()))},onUxInactive:function(){re&&(ot()||0<Tt&&(Tt--,et()))},onEnterForeground:function(){re&&(ot()||(It++,et()))},onExitForeground:function(){re&&(ot()||0<It&&(It--,et()))},onUserInteraction:function(){re&&(ot()||(Gt<0&&(Gt=0),Ft<0&&(Ft=0),Kt=+new Date,Yt++,fe!=r.F?et():se.j()))},pn:function(){return le},vn:function(){return fe},dn:function(){return gt},hn:function(){return Et},_n:function(){return yt},gn:function(){return vt},mn:function(){return mt},wn:function(){return At},yn:function(t){At=t},bn:function(t){var e=Ct;return(t=typeof t===b||t)&&(Ct=0,at.set(R,Ct+"")),e},In:function(t){var e=Pt;return(t=typeof t===b||t)&&(Pt=0,at.set(M,Pt+"")),e},Sn:function(t){var e=Rt;return(t=typeof t===b||t)&&(Rt=0,at.set(L,Rt+"")),e},Pn:function(t){var e=Ot;return(t=typeof t===b||t)&&(Ot=0,at.set(x,Ot+"")),e},An:function(t){var e=Nt;return(t=typeof t===b||t)&&(Nt=0,at.set(D,Nt+"")),e},Cn:function(t){var e=wt;return(t=typeof t===b||t)&&(wt=0,at.set(U,wt+"")),e},kn:function(t){var e=Lt;return(t=typeof t===b||t)&&(Lt=0,at.set(B,Lt+"")),e},En:function(t){var e=xt;return(t=typeof t===b||t)&&(xt=0,at.set(k,xt+"")),e},Tn:function(t){var e=kt;return(t=typeof t===b||t)&&(kt=0,at.set(V,kt+"")),e},Nn:function(t){var e=Ut;return(t=typeof t===b||t)&&(Ut=0,at.set(G,Ut+"")),e},Ln:function(){return _t},Dn:function(t){var e=Vt;return(t=typeof t===b||t)&&(Vt=0,at.set(Y,Vt+"")),e},Rn:function(t){t=typeof t===b||t;var e=-1;return 0<=Ft&&(e=Ft,t&&(Ft=0,at.set(F,Ft+""))),e},Mn:function(t){t=typeof t===b||t;var e=-1;return 0<=Gt&&(e=Gt,t&&(Gt=0,at.set(j,Gt+""))),e},On:function(t){var e=Yt;return(t=typeof t===b||t)&&(Yt=0,at.set(W,Yt+"")),e},setAppContext:function(){ge||(c.autoDetect(),se.M(),lt=new g(se),ut=new v(se),se.O(),se.W(),se.V(),ht=new _(se),dt=new h,function(){Mt=s.o(at.get(C),-1),zt=s.o(at.get(P),-1),jt=s.o(at.get(O),-1),Ht=s.o(at.get(w),-1),Wt=s.o(at.get(N),-1),Ct=s.U(at.get(R)),Rt=s.o(at.get(L)),Nt=s.o(at.get(D)),Lt=s.o(at.get(B)),Pt=s.o(at.get(M)),Ot=s.o(at.get(x)),wt=s.o(at.get(U)),xt=s.o(at.get(k)),kt=s.o(at.get(V)),Ut=s.o(at.get(G)),Ft=s.U(at.get(F),-1),Gt=s.U(at.get(j),-1),Kt=s.o(at.get(H),-1),Yt=s.U(at.get(W),0),Vt=s.U(at.get(Y),0),ee=at.get(T)?parseInt(at.get(T)):0,bt=c.getAppVersion(),Bt=s.o(at.get(z),0),(Dt=s.o(at.get(K),-1))<0?(Dt=+new Date,Bt=0,jt=Dt,Vt++):(e()||(xt+=+new Date-zt,at.set(k,xt+"")),jt=Dt),(yt=s.o(at.get($),-1))<0?(Et=yt=Dt,bt&&bt!=A&&at.set(Q,bt+""),at.set($,yt+""),at.set(q,Et+"")):se.setAppVersion(bt),at.set(K,Dt+""),at.set(z,Bt+""),se.B(Dt);var t=+new Date;if(0<=Mt){var n=t-Mt;Lt+=n,at.set(B,Lt+""),wt+=n,at.set(U,wt+"")}zt=Mt=t,at.set(C,Mt+""),at.set(P,zt+""),at.set(O,jt+""),at.has(X)||at.set(X,"0"),gt=s.U(at.get(X)),mt=s.U(at.get(Z))}(),se.in(),se.rn(),ge=!0)},setEnabled:function(t){re&&null!=t&&!t&&(re=!1,ct.stop(),ft.stop(),ut.pause())},getEnabled:function(){return re},Wn:function(){return{}},Vn:function(){return St},nn:function(t){St=t},setPixelURL:function(t){if(re){if(null==t||0===t.length)return null;de=!0;var e=t.indexOf("?");if(0<=e){if(e<t.length-1){for(var n=t.substring(e+1).split("&"),i=0,r=n.length;i<r;i++){var s=n[i].split("=");2==s.length?se.setLabel(s[0],s[1]):1==s.length&&se.setLabel(o.PAGE_NAME_LABEL,s[0])}t=t.substring(0,e+1)}}else t+="?";return $t=t}},setKeepAliveEnabled:function(t){re&&ut.xn(t)},getPixelURL:function(){return $t},getCrossPublisherId:function(){return Xt},isCrossPublisherIdChanged:function(){return c.isCrossPublisherIdChanged()||he},getVisitorId:function(){return null==Qt&&nt(),Qt},setVisitorId:nt,Un:function(){var t=(c.getCrossPublisherId()||"null").split(" "),e=t[0]&&"null"!=t[0]?t[0]:null,n="true"==t[1];if(null!=e){Xt||(Zt=at.get(J),Xt=at.get(tt));var i=null;Xt?"none"==e&&"none"==Xt||!_e&&"none"==Xt||"none"!=e&&(i=d(e))==Zt||(Xt=n?"none"==e?(Zt=null,"none"):(Zt=i,p(e)):(he=!0,_e&&"none"!=e?(Zt=d(e),p(e)):(Zt=null,"none")),at.set(tt,Xt),null==Zt?at.remove(J):at.set(J,Zt)):(Xt="none"==e?(Zt=null,"none"):(Zt=d(e),p(e)),at.set(tt,Xt),null==Zt?at.remove(J):at.set(J,Zt)),_e=!1}else Xt=Zt=null},m:function(t){return null==t||0===t.length||(Jt=t),se},g:function(){return null==Jt&&(Jt=""),Jt},setAppName:function(t){re&&(te=t)},getAppName:function(){return null!=te&&0!==te.length||se.setAppName(c.getAppName()),te},setAppVersion:function(t){var e;at&&(t&&t!=A?(at.has(o.C)&&(At=at.get(o.C)+""),at.has(Q)&&(e=at.get(Q)+""),e&&e!==t?(At=e,at.set(o.C,At+""),Et=Dt,at.set(q,Et+"")):Et=s.o(at.get(q),-1),at.set(Q,t+"")):Et=s.o(at.get(q),-1)),bt=t},getAppVersion:function(){return bt},getVersion:function(){return"6.2.3.180328"},getGenesis:function(){return Dt},Bn:function(){return Bt},B:function(t){at.set(T,t.toString(10))},Fn:function(){return ee},getLabels:function(){return ne},setLabels:function(t){if(re)for(var e in t)t.hasOwnProperty(e)&&se.setLabel(e,t[e])},getLabel:function(t){return ne[t]},setLabel:function(t,e){re&&(!t||e?ne[t]=e:delete ne[t])},setAutoStartLabels:function(t){re&&null!=t&&f.extend(ie,t)},getAutoStartLabel:function(t){return ie[t]},getAutoStartLabels:function(){return ie},setAutoStartLabel:function(t,e){re&&(ie[t]=e)},getCustomerC2:function(){return ne.c2},setCustomerC2:function(t){if(re&&null!=t&&0!==t.length){var e=dt.isSecure()?I:S;se.setPixelURL(e),de=!1,se.setLabel("c2",t)}},getLiveTransmissionMode:function(){return dt.getLiveTransmissionMode()},allowLiveTransmission:function(t){re&&dt.getLiveTransmissionMode()!=t&&dt.allowLiveTransmission(t)},getOfflineTransmissionMode:function(){return dt.getOfflineTransmissionMode()},allowOfflineTransmission:function(t){re&&dt.getOfflineTransmissionMode()!=t&&dt.allowOfflineTransmission(t)},setSecure:function(t){re&&(this.getCustomerC2()||(pe=!0,dt.isSecure()!=t&&dt.setSecure(t)))},jn:function(t){if(!pe&&(dt.setSecure(!!t),null!=lt&&lt.Gn(h.Kn,!!t),se.getCustomerC2()&&!de)){var e=dt.isSecure()?I:S;se.setPixelURL(e),de=!1}},setAutoStartEnabled:function(t){re&&(ce=t)},isAutoStartEnabled:function(){return ce},isSecure:function(){return dt.isSecure()},setCacheMaxMeasurements:function(t){null!=st&&st.setCacheMaxMeasurements(t)},getCacheMaxMeasurements:function(){return null!=st?st.getCacheMaxMeasurements():m.qn},setCacheMaxBatchFiles:function(t){null!=st&&st.setCacheMaxBatchFiles(t)},getCacheMaxBatchFiles:function(){return null!=st?st.getCacheMaxBatchFiles():m.Hn},setCacheMaxFlushesInARow:function(t){null!=st&&st.Yn(t)},getCacheMaxFlushesInARow:function(){return null!=st?st.Jn():m.zn},setCacheMinutesToRetry:function(t){null!=st&&st.Qn(t)},getCacheMinutesToRetry:function(){return null!=st?st.Xn():m.Zn},setCacheMeasurementExpiry:function(t){null!=st&&st.setCacheMeasurementExpiry(t)},getCacheMeasurementExpiry:function(){return null!=st?st.getCacheMeasurementExpiry():m.$n},getCacheFlushingInterval:function(){return ve},setCacheFlushingInterval:function(t){re&&ve!=t&&(ve=t,null!=ct&&ct.update())},getMeasurementLabelOrder:function(){return dt.getMeasurementLabelOrder()},setMeasurementLabelOrder:function(t){re&&t!=dt.getMeasurementLabelOrder()&&dt.setMeasurementLabelOrder(t)},flush:function(){st.flush(dt,function(){})},update:function(t){re&&(n(t=typeof t===b||t),a(t))},enableAutoUpdate:function(t,e){re&&(t=t||60,rt(),t<60&&(t=60),ae=e,_t=1e3*t,le==i.H?it():le!=i.Y||ae||it())},disableAutoUpdate:function(){re&&(rt(),ae=!0,_t=-1)},isAutoUpdateEnabled:function(){return 0<_t},s:function(t,e){re&&(ot()||(ue||t==u.l||ht.send(u.l,{},de?$t:null),t==u.h?(se.B(0),se.update(!0)):ht.send(t,e,de?$t:null)))},nt:function(t,e){ht.send(u.HIDDEN,t,e)},setOfflineURL:function(t){re&&st.tt(t)},getPlatformAPI:function(){return c},setPlatformAPI:function(t){c.setPlatformAPI(t)},et:function(){return ht},clearInternalData:function(){at&&at.clear()},cacheHttpRedirects:function(t){oe=t},it:function(){return oe}}),dt=new h,ne={},ie={},oe=re=!0,se.reset()}},{1:1,11:11,12:12,17:17,21:21,22:22,24:24,25:25,26:26,3:3,36:36,4:4,6:6,7:7,8:8,9:9}],6:[function(t,e,n){function i(){var t,e,n,i;r.extend(this,{reset:function(){t=o.DEFAULT,e=o.DEFAULT,n=s.isConnectionSecure(),i=a.k},rt:function(r){t=r.getLiveTransmissionMode(),e=r.getOfflineTransmissionMode(),i=r.getMeasurementLabelOrder(),n=r.isSecure()},ot:function(t,e){switch(t){case 0:this.allowLiveTransmission(e);break;case 1:this.allowOfflineTransmission(e);break;case 2:this.setSecure(e);break;case 3:this.setMeasurementLabelOrder(e)}},getLiveTransmissionMode:function(){return t},allowLiveTransmission:function(e){null!=e&&(t=e)},getOfflineTransmissionMode:function(){return e},allowOfflineTransmission:function(t){null!=t&&(e=t)},isSecure:function(){return n},setSecure:function(t){n=t},getMeasurementLabelOrder:function(){return i},setMeasurementLabelOrder:function(t){null!=t&&0<t.length&&(i=t)}}),this.reset()}var r=t(24),o=t(8).TransmissionMode,s=t(36),a=t(4);i.ut=0,i.st=1,i.Kn=2,i.at=3,e.exports=i},{24:24,36:36,4:4,8:8}],7:[function(t,e,n){var i=t(24),r=t(13),o="q_dcf",s="q_dcc";e.exports=function(t){function e(t){return t-l<1e3&&20<=c}function n(t){return t-d<864e5&&6e3<=f}function a(e){864e5<e-d&&(f=0,d=e),1e3<e-l&&(c=0,l=e),f++,c++;var n=t.t();n.set(s,f+""),n.set(o,d+"")}function u(){var i,o=+new Date;if(g)for(;_.length;){var s=_.shift();c=s,t.I().ft(c)}else{for(var c,f,h;_.length&&!e(h=o)&&!n(h);)a(o),s=_.shift(),f=s,new r(t,t.ln(),f).send();i=o,_.length&&(p||(e(i)?p=t.getPlatformAPI().setTimeout(function(){p=null,u()},l+1e3-i):n(i)&&(p=t.getPlatformAPI().setTimeout(function(){p=null,u()},d+864e5-i))))}}var c,l,f,d,p,h,_=[],g=!1;i.extend(this,{ct:function(e){t.getEnabled()&&(_.push(e),u())},en:function(){t.getPlatformAPI().clearTimeout(p),_.length=0},J:function(e){g=e,t.getPlatformAPI().clearTimeout(p),u()}}),d=(h=t.t()).has(s)&&h.has(o)?(f=parseInt(h.get(s)),parseInt(h.get(o))):(f=0,+new Date),c=0,l=+new Date}},{13:13,24:24}],8:[function(t,e,n){var i={DEFAULT:0,NEVER:1,WIFIONLY:2,PIGGYBACK:3,DISABLED:4,valueOf:function(t){return null==t||"DEFAULT"==t?i.DEFAULT:"NEVER"==t?i.NEVER:"WIFIONLY"==t?i.WIFIONLY:"PIGGYBACK"==t?i.PIGGYBACK:"DISABLED"==t?i.DISABLED:void 0}};n.TransmissionMode=i,n.N={R:0,K:1,G:2,F:3},n.T={R:0,Y:1,H:2},n.u={l:"start",v:"view",h:"close",_:"aggregate",HIDDEN:"hidden",KEEPALIVE:"keep-alive"}},{}],9:[function(t,e,n){var i=t(36),r=t(8).u,o=t(24);e.exports=function(t){function e(){u=+new Date+l,n()}function n(){t.et().send(r.KEEPALIVE)}var s=this,a=null,u=NaN,c=!0,l=864e5;o.extend(s,{xn:function(t){(c=t)?(s.X(),s.Z()):s.cancel()},isEnabled:function(){return c},Z:function(){c&&(s.cancel(),u=+new Date+l,a=i.setInterval(e,l))},X:function(){if(c){var t=+new Date;u&&u<=t&&n()}},pause:function(){s.cancel()},cancel:function(){a&&(i.clearInterval(a),a=null)}})}},{24:24,36:36,8:8}],10:[function(t,e,n){function i(t){var e,n={};s.extend(this,{pt:function(t){delete n[t]},vt:function(t){if(null!=t)for(var e in t)t.hasOwnProperty(e)&&this.setLabel(e,t[e])},setLabel:function(t,e){n[t]=e},getLabel:function(t){return n[t]},getLabels:function(){return n},dt:function(t){return n.hasOwnProperty(t)},ht:function(t){for(var e=[],i=s.extend({},n),r=0,o=t.length;r<o;r++){var a=t[r],u=i[a];null!=u&&""!==u&&(e.push("&",h(a),"=",h(u)),delete i[a])}for(var c in i)if(i.hasOwnProperty(c)){var l=i[c];null!=l&&""!==l&&e.push("&",h(c),"=",h(i[c]))}return 0<(e=e.join("")).length&&"&"==e.charAt(0)?e.substring(1):e},setPixelURL:function(t){e=t},getPixelURL:function(){return e}}),t&&this.setPixelURL(t.getPixelURL())}function r(t,e,n,r){if(i.call(this,t),t){null!=n&&this.setPixelURL(n),this.setLabel("c1","19"),this.setLabel("ns_ap_an",_(t.getAppName())),this.setLabel("ns_ap_pn",_(l.getPlatformName())),this.setLabel("ns_ap_pv",_(l.getRuntimeVersion())),this.setLabel("c12",t.getVisitorId()),t.Un();var o=t.getCrossPublisherId();o&&(this.setLabel("ns_ak",o),t.isCrossPublisherIdChanged()&&this.setLabel("ns_ap_ni","1")),this.setLabel("ns_ap_device",_(l.getDeviceModel())),this.setLabel("ns_ap_ar",_(l.getDeviceArchitecture())),this.setLabel("ns_radio",_(l.getConnectionType())),this.setLabel("ns_type",g(e)),this.setLabel("ns_nc","1"),this.setLabel("ns_ap_pfv",_(l.getPlatformVersion())),this.setLabel("ns_ap_pfm",_(l.getRuntimeName())),this.setLabel("ns_ap_ev",e),this.setLabel("ns_ap_ver",_(t.getAppVersion())),this.setLabel("ns_ap_sd",l.getDisplayResolution()),this.setLabel("ns_ap_res",l.getApplicationResolution()),this.setLabel("ns_ap_lang",l.getLanguage()),this.setLabel("ns_ap_sv",t.getVersion()),e==u.KEEPALIVE&&this.setLabel("ns_ap_oc",t.I()._t()+"");var s=t.gn(),a=t.mn();this.setLabel("ns_ap_id",s+""),this.setLabel("ns_ap_cs",a+""),this.setLabel("ns_ap_bi",l.getPackageName()),this.setLabel("ns_ap_jb",_(l.getDeviceJailBrokenFlag()))}}function o(t,e,n,i){r.call(this,t,e,n,i),this.setLabel("ns_ap_gs",t._n()+""),this.setLabel("ns_ap_install",t.hn()+""),this.setLabel("ns_ap_runs",t.dn()+""),i&&this.setLabel("ns_ap_csf","1"),this.setLabel("ns_ap_lastrun",t.Bn()+"");var o=t.Fn();0<o&&this.setLabel("ns_ap_miss",o.toString());var s=t.wn();s&&(this.setLabel("ns_ap_updated",s+""),t.t().remove(f.C),t.yn(null)),this.setLabel("ns_ap_jb",_(l.getDeviceJailBrokenFlag()))}var s=t(24),a=t(21),u=t(8).u,c=t(17),l=t(36),f=t(4),d="undefined",p=c.D,h=typeof encodeURIComponent!=d?encodeURIComponent:escape,_=function(t){return a.lt(t)?t:p},g=function(t){return t==u.l||t==u.h||t==u.v?u.v:u.HIDDEN};r.gt=function(t,e){var n=e.wt,i=e.yt,r=e.bt;if(i=typeof i===d||i,r=typeof r===d||r,t.update(r),r){var o=t.bn(),s=t.In(n),a=t.Sn(i),u=t.Pn(n),c=t.An(i),l=t.Cn(n),f=t.kn(i),p=t.En(i),h=t.Tn(i),_=t.Nn(i),g=t.Ln(),v=t.Dn(i),m=t.Rn(i),E=t.Mn(i),y=t.On(i);e.labels.ns_ap_fg=o+"",e.labels.ns_ap_ft=s+"",e.labels.ns_ap_dft=a+"",e.labels.ns_ap_bt=u+"",e.labels.ns_ap_dbt=c+"",e.labels.ns_ap_it=l+"",e.labels.ns_ap_dit=f+"",e.labels.ns_ap_ut=g+"",e.labels.ns_ap_as=v+"",e.labels.ns_ap_das=p+"",0<=m&&(e.labels.ns_ap_aus=m+"",e.labels.ns_ap_daus=h+"",e.labels.ns_ap_uc=y+""),0<=E&&(e.labels.ns_ap_us=E+"",e.labels.ns_ap_dus=_+""),e.labels.ns_ap_usage=e.It-t.getGenesis()+""}e.labels.ns_ts=e.It+""},r.prototype=new i,r.St=function(t,e,n,i){var r=t.et(),o=r.Pt(e,n,i);return r.At(o)},o.prototype=new r,e.exports.Ct=i,e.exports.kt=r,e.exports.Et=o},{17:17,21:21,24:24,36:36,4:4,8:8}],11:[function(t,e,n){var i=t(10).kt,r=t(10).Et,o=t(36),s=t(8).u,a=t(8).T,u=t(4),c=t(14).Tt;e.exports=function(t){var e=this,n=0,l=[],f=!1,d=0,p={};e.Nt=function(){n++;var t=!1;return function(i){t||(t=!0,n--,i&&e.Lt())}},e.Dt=function(){if(!f){var t=e.Nt();f=!0,o.onDataFetch(function(){t(!(f=!1))},function(){t(f=!1)})}},e.Lt=function(){if(!(0<n)){for(var t=0;t<l.length;++t){var i=l[t],r=e.At(i);e.Rt(i,r)}l.length=0}},e.Mt=function(t){l.push(t),e.Dt()},e.Rt=function(e,n){t.fn().ct(n),t.S().Z()},e.send=function(t,n,i){if(t!=s._){var r=e.Pt(t,n,i);e.Mt(r)}else e.Ot(n)},e.Pt=function(e,n,r){var o={It:+new Date,Wt:e,Vt:r,wt:!1,yt:void 0,bt:void 0,labels:{}};return d++,o.labels.ns_ap_ec=d+"",e==s.l?(t.un(),o.wt=t.sn()):(o.yt=!(null!=n&&n.hasOwnProperty("ns_st_ev")&&"hb"==n.ns_st_ev),o.bt=!(null!=n&&n.hasOwnProperty("ns_st_ev"))),o.xt=t.getLabels(),o.Ut=n,null!=t.Vn()?o.Bt=t.Vn():e==s.l?o.Bt="start":t.pn()==a.H?o.Bt="foreground":o.Bt="background",i.gt(t,o),o},e.At=function(e){var n=null,a=e.Wt,c=e.Vt,l=e.wt;return(n=a===s.l?new r(t,a,c,l):new i(t,a,c,l)).vt(e.labels),n.vt(e.xt),n.vt(e.Ut),n.dt(u.PAGE_NAME_LABEL)||n.setLabel(u.PAGE_NAME_LABEL,e.Bt),o.processMeasurementLabels(n),n.vt(p),p={},n},e.Ot=function(t){c(p,t)}}},{10:10,14:14,36:36,4:4,8:8}],12:[function(t,e,n){function i(t,e){function n(){L=0,null!=P&&(P=null)}function i(){for(var t,n=h(),i=!1,r=n.length;0<r;r--){var o=(t=n[r-1],Number(t.substring(e.length)));i?g(n[r-1],!0):i=E(o)}}function p(e){if(t.getEnabled()){var n=t.t();n.has(d)&&(e+=Number(n.get(d))),n.set(d,e+"")}}function h(){return null==C&&(C=f.Gt()),C}function _(i){var r=e+l.Kt(i,"ns_ts");f.qt(t,r,i),null==C&&(C=[]),C.push(r),n()}function g(e,n){if(null!=e){n&&(r=e,(o=t.t()).has(r)&&p(Number(o.get(r)))),f.deleteFile(t,e);var i=a.indexOf(e,C);0<=i&&C.splice(i,1)}var r,o}function v(){return null!=C&&0<C.length?C[C.length-1]:null}function m(e){var n=t.t(),i=0;return null!=e&&(i=n.has(e)?Number(n.get(e)):f.Ht(t,e).length),i}function E(t){var e=+new Date;return 24*T*60*60*1e3-(e-t)<=0}function y(e,i){var o=t.t();if(function(){if(t.getEnabled()&&r.isConnectionAvailable()&&!R.jt()&&null!=t.getCustomerC2()){if(!(S<=O))return!0;if(1e3*I*60-(+new Date-w)<=0)return!(w=O=0)}return!1}()){var a=null,c=null;if(null==P&&null!=(a=function(e){for(var n=0,i=f.Ht(t,e),r=!1;n<i.length&&!(r=!E(Number(l.Kt(i[n],"ns_ts"))));n++);return i=r?(p(n),i.slice(n,i.length)):(g(e,!0),null)}(c=v()))&&0<a.length){var h=o.has(d)?o.get(d):"0";P=l.Yt(a,h)}if(null!=P&&0<P.length)return void r.httpPost(function(e){var n,i=!0;-1==(n=s.tn(N)&&s.lt(N)?N:e.isSecure()?"https://web.archive.org/web/20191108214155/https://udm.scorecardresearch.com/offline":"https://web.archive.org/web/20191108214155/http://udm.scorecardresearch.com/offline").indexOf("?")&&(n+="?",i=!1);var r=t.getCustomerC2();s.lt(r)&&(i&&(n+="&"),n+="c2="+r,i=!0);var o="JetportGotAMaskOfThe"+t.g()+"S.D_K-";return o=u(o),s.lt(o)&&(i&&(n+="&"),n+="s="+o),n.toLowerCase()}(e),P,function(t){if(200==t)return O++,g(c,!1),n(),w=+new Date,o.remove(d),void r.setTimeout(function(){y(e,i)},0);i()})}i()}var b,A,S,I,T,C,P,O,w,N,R=this,L=0;e=e||"cs_cache_",o.extend(this,{flush:function(e,n){t.getEnabled()&&(i(),1e3*I*60-(+new Date-L)<=0?(L=0,y(e,n)):n())},setCacheMaxMeasurements:function(t){b=t},getCacheMaxMeasurements:function(){return b},setCacheMaxBatchFiles:function(t){t<=0||(A=t)},getCacheMaxBatchFiles:function(){return A},Yn:function(t){S=t},Jn:function(){return S},Qn:function(t){I=t},Xn:function(){return I},setCacheMeasurementExpiry:function(t){T=t},getCacheMeasurementExpiry:function(){return T},ft:function(e){if(t.getEnabled()){var i=t.ln();if("string"!=typeof e&&(e=e.ht(i.getMeasurementLabelOrder())),i.getOfflineTransmissionMode()!=c.DISABLED&&null!=t.getCustomerC2()&&s.lt(l.Kt(e,"ns_ts"))){var r=v();null!=r?m(r)<this.getCacheMaxBatchFiles()?(e="\n"+e,f.qt(t,r,e),n()):(h().length>=this.getCacheMaxMeasurements()/this.getCacheMaxBatchFiles()&&g(null!=C&&0<C.length?C[0]:null,!0),_(e)):_(e)}}},_t:function(){var t=m(v());return 0<h().length&&(t+=(h().length-1)*this.getCacheMaxBatchFiles()),t},jt:function(){return 0==this._t()},clear:function(){for(var e=h(),n=e.length;0<n;n--)g(e[n-1],!0);t.t().remove(d)},tt:function(t){N=t}}),this.setCacheMaxMeasurements(2e3),this.setCacheMaxBatchFiles(100),this.Yn(10),this.Qn(30),this.setCacheMeasurementExpiry(31),i()}var r=t(36),o=t(24),s=t(21),a=t(19),u=t(22),c=t(8).TransmissionMode,l=t(15),f=t(14).Ft,d="CACHE_DROPPED_MEASUREMENTS";i.qn=2e3,i.Hn=100,i.zn=10,i.Zn=30,i.$n=31,n.L=i},{14:14,15:15,19:19,21:21,22:22,24:24,36:36,8:8}],13:[function(t,e,n){var i=t(24),r=t(20),o=t(36),s=t(4),a=t(8).TransmissionMode;e.exports=function(t,e,n,u){function c(e){200!=e&&(302!=e&&301!=e||t.it())&&t.I().ft(p.ht(d.getMeasurementLabelOrder()),d),u&&u()}function l(){var t=f.process(p.getPixelURL());o.httpGet(t,c)}var f=this,d=e,p=n;i.extend(f,{process:function(t){t+=p.ht(d.getMeasurementLabelOrder());var e=r.Jt()?s.A:s.P;if(t.length>e&&0<t.indexOf("&")){var n=t.substring(0,e-8).lastIndexOf("&"),i=encodeURIComponent(t.substring(n+1));t=t.substring(0,n)+"&ns_cut="+i}return t.length>e&&(t=t.substring(0,e)),t},send:function(){var e=d.getLiveTransmissionMode();return e==a.NEVER||e==a.DISABLED?(t.I().ft(p.ht(d.getMeasurementLabelOrder()),d),u&&u()):d.getOfflineTransmissionMode()!=a.NEVER&&0<t.I()._t()?t.I().flush(d,l):l(),!0}})}},{20:20,24:24,36:36,4:4,8:8}],14:[function(t,e,n){function i(t){return!((t+="").indexOf(",")<0)&&t.indexOf(" ")<0}function r(t){return!isNaN(parseInt(t))&&isFinite(t)}function o(t,e){for(var n=e,i=t.split(","),r=0,o=i.length;r<o;r++){var s=i[r];if(0<s.length)if(n.indexOf(s)<0)0==n.length?n+=s+":1":n+=";"+s+":1";else for(var a=n.split(";"),u=0,c=a.length;u<c;u++)if(0<=a[u].indexOf(s)){var l=a[u].split(":"),f=Number(l[1]);f++;var d=l[0]+":"+f,p=n.indexOf(a[u]);n=n.substring(0,p)+d+n.substring(p+a[u].length)}}return n}var s=t(36),a="cache_dir",u={Gt:function(){return s.IO.dir(a)||[]},qt:function(t,e,n){var i=t.t(),r=Number(i.get(e))||0;s.IO.append(a,e,n),r++,i.set(e,r+"")},deleteFile:function(t,e){s.IO.deleteFile(a,e),t.t().remove(e)},Ht:function(t,e){var n=s.IO.read(a,e);return n?n.split("\n"):[]}};n.Tt=function(t,e){for(var n in e)if(e.hasOwnProperty(n)){var s=t[n],a=e[n];null==s?i(a)?t[n]=o(a,""):t[n]=a:r(s)&&r(a)?t[n]=parseInt(s)+parseInt(a)+"":i(a)?t[n]=o(a,s):(u=a,0<=s.indexOf(u)||(t[n]=s+","+a))}var u},n.Ft=u},{36:36}],15:[function(t,e,n){function i(t,e){u=c=-1;var n=0;do{if(0<=(n=t.indexOf(e,n))){var i=n+e.length;if((0==n||"&"==t.charAt(n-1))&&i<t.length&&"="==t.charAt(i))return u=i+1,void(-1==(c=t.indexOf("&",u))&&(c=t.length));n=i+1}}while(0<=n&&n<t.length)}function r(t,e){var n=0;if(i(t,"ns_ts"),-1!=u&&u<c){e.push('<event t="',t.substring(u,c),'">');for(var r,o,l=0,p=0;l<t.length;){if(-1==(r=t.indexOf("&",l))&&(r=t.length),l<r&&l<(o=t.indexOf("=",l))){var h=!0;if(n!=d)for(var _=0,g=f.length;_<g;_++){var v=1<<_;if(0==(n&v)&&f[_].length==o-l&&s.zt(f[_],0,t,l,f[_].length)){h=!1,n|=v;break}}h&&(0<p&&(a.push("&"),e.push("&")),a.push(t.substring(l,r)),e.push(t.substring(l,r)),p++)}l=r+1}e.push("</event>")}}var o=t(22),s=t(21),a=[],u=-1,c=-1,l=["c12","c1","ns_ap_an","ns_ap_pn","ns_ap_pv","ns_ap_device","ns_ak"],f=["c12","c1","ns_ap_an","ns_ap_pn","ns_ap_pv","ns_ap_device","ns_ts","ns_ak"],d=(1<<f.length)-1,p=-1,h={Yt:function(t,e){var n,f,d=['<?xml version="1.0" encoding="UTF-8" ?>'];return function(t,e,n){var r,o,s,a=+new Date+"";t.push('<events t="',a,'" ');for(var f=0,d=l.length;f<d;f++)r=t,i(o=e,s=l[f]),-1!=u&&u<c&&r.push(s,'="',o.substring(u,c),'" ');t.push('dropped="',n,'" md5="','">'),p=t.length-1}(d,t[0],e),function(t,e){a=[];for(var n=0,i=t.length;n<i;n++)s.lt(t[n])&&r(t[n],e)}(t,d),n=d,f=o(a.join("")).toLowerCase(),n.splice(p,0,f),d.push("</events>"),d.join("")},Kt:function(t,e){return i(t,e),-1!=u&&u<c?t.substring(u,c):null}};e.exports=h},{21:21,22:22}],16:[function(t,n,i){(function(e){var i=t(24),r=n.exports=e.ns_||{};"undefined"!=typeof window&&(window.ns_=r),r.comScore=t(2),r.loadModule=r.loadModule||function(t){for(var e in t)"ns_"!==e&&i.extend(r,t);return t.ns_=r},r.PlatformAPIs=t(32),t(39),r.StreamingAnalytics=t(67),r.ReducedRequirementsStreamingAnalytics=t(64)}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2,24:24,32:32,39:39,64:64,67:67}],17:[function(t,e,n){e.exports={D:"unknown",Qt:"0x0",Xt:"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD0+fCVxGq3Bk24jUKO1PzsiUs3\nvqww6zR4n2e3AweVLUAgsrDRbAWJ/EjZm1WBLBVNMiTLpSAkV6sjOIrUs03xdUEj\nQZJHwOGK+MfzFaZukoo0qAsEMPwQ5posv0JdkBdUGhKchPk6+NYmD6Hb44Lkp7/a\nQnVeWzvfAPQyTJR5wQIDAQAB\n-----END PUBLIC KEY-----"}},{}],18:[function(t,e,n){var i="undefined",r="function";e.exports=function(t,e){function n(e){e=e||[];var n=["comScore",+new Date];return t&&n.push(t),e=Array.prototype.slice.call(e),n=n.concat(e)}function o(t){var n,i,r;if("boolean"==typeof e||!e)return!!e;if(r=t.join(" "),e instanceof Array&&0<e.length){for(n=0;n<e.length;++n)if((i=e[n])instanceof RegExp&&i.test(r))return!0;return!1}if("object"!=typeof e)return!0;var o=!1;if(e.hide instanceof Array)for(n=0;n<e.hide.length;++n)if((i=e.hide[n])instanceof RegExp&&i.test(r)){o=!0;break}if(e.show instanceof Array)for(n=0;n<e.show.length;++n)if((i=e.show[n])instanceof RegExp&&i.test(r))return!0;return!o&&!e.show}function s(t){var n=u.length;if(1e4<n||"object"==typeof e&&e.max&&n>e.max){var i="object"==typeof e&&e.max||1e4;u.splice(0,u.length-i+1)}u.push(t)}var a=this,u=[];a.log=function(){var t=n(arguments);s(t),typeof console!=i&&typeof console.log==r&&o(t)&&console.log.apply(console,t)},a.warn=function(){var t=n(arguments);s(t),typeof console!=i&&typeof console.warn==r&&o(t)&&console.warn.apply(console,t)},a.error=function(){var t=n(arguments);s(t),typeof console!=i&&typeof console.error==r&&o(t)&&console.error.apply(console,t)},a.Zt=function(t){for(var e=["API call to:",t],n=1;n<arguments.length;++n)e.push("arg"+n+":",arguments[n]);this.log.apply(this,e)},a.$t=function(){var t=["Trace log:"];t.push.apply(t,Array.prototype.slice.call(arguments)),this.log.apply(this,t)},a.ne=function(t,e){var n=["Deprecated API:",t,"is deprecated and will be eventually removed."];e&&n.push("Use",e,"instead."),this.warn.apply(this,n)},a.te=function(){return u}}},{}],19:[function(t,e,n){var i={},r="undefined";i.indexOf=function(t,e){var n=-1;return i.forEach(e,function(e,i){e==t&&(n=i)}),n},i.forEach=function(t,e,n){try{if("function"==typeof e)if(n=typeof n!=r?n:null,"number"!=typeof t.length||typeof t[0]==r){var i=typeof t.__proto__!=r;for(var o in t)t.hasOwnProperty(o)&&(!i||i&&typeof t.__proto__[o]==r)&&"function"!=typeof t[o]&&e.call(n,t[o],o)}else for(var s=0,a=t.length;s<a;s++)e.call(n,t[s],s)}catch(t){}},n.indexOf=i.indexOf,n.forEach=i.forEach},{}],20:[function(t,e,n){var i={},r="undefined",o=typeof document!=r&&document||void 0;i.ee=function(){if(!o)return!1;var t=!1;return typeof o.hidden!==r?t=!0:typeof o.mozHidden!==r?t=!0:typeof o.msHidden!==r?t=!0:typeof o.webkitHidden!==r&&(t=!0),function(){return t}}(),i.ie=function(){if(!o)return null;var t,e,n;typeof o.hidden!==r?(t="hidden",e="visibilitychange",n="visibilityState"):typeof o.mozHidden!==r?(t="mozHidden",e="mozvisibilitychange",n="mozVisibilityState"):typeof o.msHidden!==r?(t="msHidden",e="msvisibilitychange",n="msVisibilityState"):typeof o.webkitHidden!==r&&(t="webkitHidden",e="webkitvisibilitychange",n="webkitVisibilityState");var i={hidden:t,re:e,state:n};return function(){return i}}(),i.oe=function(){if(!o)return null;var t=i.ie();return function(){return o[t.hidden]}}(),i.ue=function(){if(!navigator)return"";var t,e,n=navigator.userAgent||"",i=navigator.appName||"";return-1!=(e=n.indexOf("Opera"))||-1!=(e=n.indexOf("OPR/"))?i="Opera":-1!=(e=n.indexOf("Android"))?i="Android":-1!=(e=n.indexOf("Chrome"))?i="Chrome":-1!=(e=n.indexOf("Safari"))?i="Safari":-1!=(e=n.indexOf("Firefox"))?i="Firefox":-1!=(e=n.indexOf("IEMobile"))?i="Internet Explorer Mobile":"Microsoft Internet Explorer"==i||"Netscape"==i?i="Internet Explorer":(t=n.lastIndexOf(" ")+1)<(e=n.lastIndexOf("/"))?(i=n.substring(t,e)).toLowerCase()==i.toUpperCase()&&(i=navigator.appName):i="unknown",i},i.se=function(){if(!navigator)return"";var t,e,n,i=navigator.userAgent||"",r=navigator.appName||"",o=navigator.appVersion?""+parseFloat(navigator.appVersion):"";return-1!=(e=i.indexOf("Opera"))?(o=i.substring(e+6),-1!=(e=i.indexOf("Version"))&&(o=i.substring(e+8))):-1!=(e=i.indexOf("OPR/"))?o=i.substring(e+4):-1!=(e=i.indexOf("Android"))?o=i.substring(e+11):-1!=(e=i.indexOf("Chrome"))?o=i.substring(e+7):-1!=(e=i.indexOf("Safari"))?(o=i.substring(e+7),-1!=(e=i.indexOf("Version"))&&(o=i.substring(e+8))):-1!=(e=i.indexOf("Firefox"))?o=i.substring(e+8):"Microsoft Internet Explorer"==r?null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(i)&&(o=parseFloat(RegExp.$1)):"Netscape"==r?null!=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(i)&&(o=parseFloat(RegExp.$1)):o=i.lastIndexOf(" ")+1<(e=i.lastIndexOf("/"))?i.substring(e+1):"unknown",-1!=(n=(o=o.toString()).indexOf(";"))&&(o=o.substring(0,n)),-1!=(n=o.indexOf(" "))&&(o=o.substring(0,n)),-1!=(n=o.indexOf(")"))&&(o=o.substring(0,n)),t=parseInt(""+o,10),isNaN(t)&&(o=""+parseFloat(navigator.appVersion)),o},i.Jt=function(){return typeof window!=r&&window.ae,!0},i.fe=function(){return typeof window!=r&&o},i.ce=function(){return!!o&&"s"===o.location.href.charAt(4)},e.exports.ee=i.ee,e.exports.ie=i.ie,e.exports.oe=i.oe,e.exports.ue=i.ue,e.exports.se=i.se,e.exports.Jt=i.Jt,e.exports.fe=i.fe,e.exports.ce=i.ce},{}],21:[function(t,e,n){var i,r=r||{},o="undefined";r.le=(i=1,function(){return+new Date+"_"+i++}),r.jt=function(t){return null==t||""===t||t instanceof Array&&0===t.length},r.lt=function(t){return!this.jt(t)},r.pe=function(t,e){return e=this.tn(e)?e:"",this.tn(t)?t:e},r.ve=function(t){return typeof t!=o&&("string"==typeof t?"true"===(t=t.toLowerCase())||"1"===t||"on"===t:!!t)},r.zt=function(t,e,n,i,r){if(e<0||i<0||e+r>t.length||i+r>n.length)return!1;for(;0<=--r;)if(t.charAt(e++)!=n.charAt(i++))return!1;return!0},r.tn=function(t){return typeof t!=o&&null!=t},e.exports.tn=r.tn,e.exports.zt=r.zt,e.exports.ve=r.ve,e.exports.pe=r.pe,e.exports.lt=r.lt,e.exports.jt=r.jt,e.exports.le=r.le},{}],22:[function(t,e,n){var i={};i.de=function(){function t(t,e){var s=t[0],a=t[1],u=t[2],l=t[3];a=o(a=o(a=o(a=o(a=r(a=r(a=r(a=r(a=i(a=i(a=i(a=i(a=n(a=n(a=n(a=n(a,u=n(u,l=n(l,s=n(s,a,u,l,e[0],7,-680876936),a,u,e[1],12,-389564586),s,a,e[2],17,606105819),l,s,e[3],22,-1044525330),u=n(u,l=n(l,s=n(s,a,u,l,e[4],7,-176418897),a,u,e[5],12,1200080426),s,a,e[6],17,-1473231341),l,s,e[7],22,-45705983),u=n(u,l=n(l,s=n(s,a,u,l,e[8],7,1770035416),a,u,e[9],12,-1958414417),s,a,e[10],17,-42063),l,s,e[11],22,-1990404162),u=n(u,l=n(l,s=n(s,a,u,l,e[12],7,1804603682),a,u,e[13],12,-40341101),s,a,e[14],17,-1502002290),l,s,e[15],22,1236535329),u=i(u,l=i(l,s=i(s,a,u,l,e[1],5,-165796510),a,u,e[6],9,-1069501632),s,a,e[11],14,643717713),l,s,e[0],20,-373897302),u=i(u,l=i(l,s=i(s,a,u,l,e[5],5,-701558691),a,u,e[10],9,38016083),s,a,e[15],14,-660478335),l,s,e[4],20,-405537848),u=i(u,l=i(l,s=i(s,a,u,l,e[9],5,568446438),a,u,e[14],9,-1019803690),s,a,e[3],14,-187363961),l,s,e[8],20,1163531501),u=i(u,l=i(l,s=i(s,a,u,l,e[13],5,-1444681467),a,u,e[2],9,-51403784),s,a,e[7],14,1735328473),l,s,e[12],20,-1926607734),u=r(u,l=r(l,s=r(s,a,u,l,e[5],4,-378558),a,u,e[8],11,-2022574463),s,a,e[11],16,1839030562),l,s,e[14],23,-35309556),u=r(u,l=r(l,s=r(s,a,u,l,e[1],4,-1530992060),a,u,e[4],11,1272893353),s,a,e[7],16,-155497632),l,s,e[10],23,-1094730640),u=r(u,l=r(l,s=r(s,a,u,l,e[13],4,681279174),a,u,e[0],11,-358537222),s,a,e[3],16,-722521979),l,s,e[6],23,76029189),u=r(u,l=r(l,s=r(s,a,u,l,e[9],4,-640364487),a,u,e[12],11,-421815835),s,a,e[15],16,530742520),l,s,e[2],23,-995338651),u=o(u,l=o(l,s=o(s,a,u,l,e[0],6,-198630844),a,u,e[7],10,1126891415),s,a,e[14],15,-1416354905),l,s,e[5],21,-57434055),u=o(u,l=o(l,s=o(s,a,u,l,e[12],6,1700485571),a,u,e[3],10,-1894986606),s,a,e[10],15,-1051523),l,s,e[1],21,-2054922799),u=o(u,l=o(l,s=o(s,a,u,l,e[8],6,1873313359),a,u,e[15],10,-30611744),s,a,e[6],15,-1560198380),l,s,e[13],21,1309151649),u=o(u,l=o(l,s=o(s,a,u,l,e[4],6,-145523070),a,u,e[11],10,-1120210379),s,a,e[2],15,718787259),l,s,e[9],21,-343485551),t[0]=c(s,t[0]),t[1]=c(a,t[1]),t[2]=c(u,t[2]),t[3]=c(l,t[3])}function e(t,e,n,i,r,o){return e=c(c(e,t),c(i,o)),c(e<<r|e>>>32-r,n)}function n(t,n,i,r,o,s,a){return e(n&i|~n&r,t,n,o,s,a)}function i(t,n,i,r,o,s,a){return e(n&r|i&~r,t,n,o,s,a)}function r(t,n,i,r,o,s,a){return e(n^i^r,t,n,o,s,a)}function o(t,n,i,r,o,s,a){return e(i^(n|~r),t,n,o,s,a)}function s(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function a(t){for(var e="",n=0;n<4;n++)e+=l[t>>8*n+4&15]+l[t>>8*n&15];return e}function u(e){return function(t){for(var e=0;e<t.length;e++)t[e]=a(t[e]);return t.join("")}(function(e){var n,i=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=e.length;n+=64)t(r,s(e.substring(n-64,n)));e=e.substring(n-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<e.length;n++)o[n>>2]|=e.charCodeAt(n)<<(n%4<<3);if(o[n>>2]|=128<<(n%4<<3),55<n)for(t(r,o),n=0;n<16;n++)o[n]=0;return o[14]=8*i,t(r,o),r}(e))}function c(t,e){return t+e&4294967295}function c(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}var l="0123456789abcdef".split("");return u("hello"),u}(),e.exports=i.de},{}],23:[function(t,e,n){var i=function(t){if("object"!=typeof t)return t;var e;if(t instanceof Array){e=[];for(var n=0,r=t.length;n<r;n++)e[n]=i(t[n]);return e}for(var o in e={},t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e};e.exports=i},{}],24:[function(t,e,n){var i=i||{};i.filter=function(t,e){var n={};for(var i in e)e.hasOwnProperty(i)&&t(e[i])&&(n[i]=e[i]);return n},i.extend=function(t){var e,n=arguments.length;t=t||{};for(var i=1;i<n;i++)if(e=arguments[i])for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},e.exports.filter=i.filter,e.exports.extend=i.extend},{}],25:[function(t,e,n){var i=t(17),r={};r.encrypt=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.he(t,e,n):null==e&&"string"!=typeof t?this._e(t,256):this._e(t,e))}function e(){return new t(null)}function n(t){return O.charAt(t)}function r(t,e){var n=w[t.charCodeAt(e)];return null==n?-1:n}function o(t){var n=e();return n.Pe(t),n}function s(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}function a(t){this.Ae=t}function u(t){this.Ae=t,this.Ce=t.ke(),this.Ee=32767&this.Ce,this.Te=this.Ce>>15,this.Ne=(1<<t.me-15)-1,this.Le=2*t.De}function c(t,e){return t&e}function l(t,e){return t|e}function f(t,e){return t^e}function d(t,e){return t&~e}function p(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function h(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function _(){}function g(t){return t}function v(n){this.r2=e(),this.Re=e(),t.ONE.Me(2*n.De,this.r2),this.Oe=this.r2.We(n),this.Ae=n}function m(){this.ai=0,this.fi=0,this.ci=[]}function E(){var t;t=(new Date).getTime(),D[B++]^=255&t,D[B++]^=t>>8&255,D[B++]^=t>>16&255,D[B++]^=t>>24&255,M<=B&&(B-=M)}function y(){if(null==L){for(E(),(L=new m).init(D),B=0;B<D.length;++B)D[B]=0;B=0}return L.next()}function b(){}function A(e,n){return new t(e,n)}function S(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function I(t){var e,n,i="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),i+=U.charAt(n>>6)+U.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),i+=U.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),i+=U.charAt(n>>2)+U.charAt((3&n)<<4));0<(3&i.length);)i+="=";return i}var T=function(t,e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t.charAt(e));if(-1===n)throw new Error;return n};t.prototype.ge=function(t,e,n,i,r,o){for(var s=16383&e,a=e>>14;0<=--o;){var u=16383&this[t],c=this[t++]>>14,l=a*u+c*s;r=((u=s*u+((16383&l)<<14)+n[i]+r)>>28)+(l>>14)+a*c,n[i++]=268435455&u}return r},t.prototype.me=28,t.prototype.we=268435455,t.prototype.ye=1<<28,t.prototype.be=Math.pow(2,52),t.prototype.Ie=24,t.prototype.Se=4;var C,P,O="0123456789abcdefghijklmnopqrstuvwxyz",w=[];for(C="0".charCodeAt(0),P=0;P<=9;++P)w[C++]=P;for(C="a".charCodeAt(0),P=10;P<36;++P)w[C++]=P;for(C="A".charCodeAt(0),P=10;P<36;++P)w[C++]=P;a.prototype.Ve=function(t){return t.xe<0||0<=t.Ue(this.Ae)?t.Be(this.Ae):t},a.prototype.Fe=function(t){return t},a.prototype.reduce=function(t){t.je(this.Ae,null,t)},a.prototype.Ge=function(t,e,n){t.Ke(e,n),this.reduce(n)},a.prototype.qe=function(t,e){t.He(e),this.reduce(e)},u.prototype.Ve=function(n){var i=e();return n.abs().Me(this.Ae.De,i),i.je(this.Ae,null,i),n.xe<0&&0<i.Ue(t.ZERO)&&this.Ae.Ye(i,i),i},u.prototype.Fe=function(t){var n=e();return t.Je(n),this.reduce(n),n},u.prototype.reduce=function(t){for(;t.De<=this.Le;)t[t.De++]=0;for(var e=0;e<this.Ae.De;++e){var n=32767&t[e],i=n*this.Ee+((n*this.Te+(t[e]>>15)*this.Ee&this.Ne)<<15)&t.we;for(t[n=e+this.Ae.De]+=this.Ae.ge(0,i,t,e,0,this.Ae.De);t[n]>=t.ye;)t[n]-=t.ye,t[++n]++}t.ze(),t.Qe(this.Ae.De,t),0<=t.Ue(this.Ae)&&t.Ye(this.Ae,t)},u.prototype.Ge=function(t,e,n){t.Ke(e,n),this.reduce(n)},u.prototype.qe=function(t,e){t.He(e),this.reduce(e)},t.prototype.Je=function(t){for(var e=this.De-1;0<=e;--e)t[e]=this[e];t.De=this.De,t.xe=this.xe},t.prototype.Pe=function(t){this.De=1,this.xe=t<0?-1:0,0<t?this[0]=t:t<-1?this[0]=t+DV:this.De=0},t.prototype._e=function(e,n){var i;if(16==n)i=4;else if(8==n)i=3;else if(256==n)i=8;else if(2==n)i=1;else if(32==n)i=5;else{if(4!=n)return void this.Xe(e,n);i=2}this.De=0,this.xe=0;for(var o=e.length,s=!1,a=0;0<=--o;){var u=8==i?255&e[o]:r(e,o);u<0?"-"==e.charAt(o)&&(s=!0):(s=!1,0==a?this[this.De++]=u:a+i>this.me?(this[this.De-1]|=(u&(1<<this.me-a)-1)<<a,this[this.De++]=u>>this.me-a):this[this.De-1]|=u<<a,(a+=i)>=this.me&&(a-=this.me))}8==i&&0!=(128&e[0])&&(this.xe=-1,0<a&&(this[this.De-1]|=(1<<this.me-a)-1<<a)),this.ze(),s&&t.ZERO.Ye(this,this)},t.prototype.ze=function(){for(var t=this.xe&this.we;0<this.De&&this[this.De-1]==t;)--this.De},t.prototype.Me=function(t,e){var n;for(n=this.De-1;0<=n;--n)e[n+t]=this[n];for(n=t-1;0<=n;--n)e[n]=0;e.De=this.De+t,e.xe=this.xe},t.prototype.Qe=function(t,e){for(var n=t;n<this.De;++n)e[n-t]=this[n];e.De=Math.max(this.De-t,0),e.xe=this.xe},t.prototype.Ze=function(t,e){var n,i=t%this.me,r=this.me-i,o=(1<<r)-1,s=Math.floor(t/this.me),a=this.xe<<i&this.we;for(n=this.De-1;0<=n;--n)e[n+s+1]=this[n]>>r|a,a=(this[n]&o)<<i;for(n=s-1;0<=n;--n)e[n]=0;e[s]=a,e.De=this.De+s+1,e.xe=this.xe,e.ze()},t.prototype.$e=function(t,e){e.xe=this.xe;var n=Math.floor(t/this.me);if(n>=this.De)e.De=0;else{var i=t%this.me,r=this.me-i,o=(1<<i)-1;e[0]=this[n]>>i;for(var s=n+1;s<this.De;++s)e[s-n-1]|=(this[s]&o)<<r,e[s-n]=this[s]>>i;0<i&&(e[this.De-n-1]|=(this.xe&o)<<r),e.De=this.De-n,e.ze()}},t.prototype.Ye=function(t,e){for(var n=0,i=0,r=Math.min(t.De,this.De);n<r;)i+=this[n]-t[n],e[n++]=i&this.we,i>>=this.me;if(t.De<this.De){for(i-=t.xe;n<this.De;)i+=this[n],e[n++]=i&this.we,i>>=this.me;i+=this.xe}else{for(i+=this.xe;n<t.De;)i-=t[n],e[n++]=i&this.we,i>>=this.me;i-=t.xe}e.xe=i<0?-1:0,i<-1?e[n++]=this.ye+i:0<i&&(e[n++]=i),e.De=n,e.ze()},t.prototype.Ke=function(e,n){var i=this.abs(),r=e.abs(),o=i.De;for(n.De=o+r.De;0<=--o;)n[o]=0;for(o=0;o<r.De;++o)n[o+i.De]=i.ge(0,r[o],n,o,0,i.De);n.xe=0,n.ze(),this.xe!=e.xe&&t.ZERO.Ye(n,n)},t.prototype.He=function(t){for(var e=this.abs(),n=t.De=2*e.De;0<=--n;)t[n]=0;for(n=0;n<e.De-1;++n){var i=e.ge(n,e[n],t,2*n,0,1);(t[n+e.De]+=e.ge(n+1,2*e[n],t,2*n+1,i,e.De-n-1))>=e.ye&&(t[n+e.De]-=e.ye,t[n+e.De+1]=1)}0<t.De&&(t[t.De-1]+=e.ge(n,e[n],t,2*n,0,1)),t.xe=0,t.ze()},t.prototype.je=function(n,i,r){var o=n.abs();if(!(o.De<=0)){var a=this.abs();if(a.De<o.De)return null!=i&&i.Pe(0),void(null!=r&&this.Je(r));null==r&&(r=e());var u=e(),c=this.xe,l=n.xe,f=this.me-s(o[o.De-1]);0<f?(o.Ze(f,u),a.Ze(f,r)):(o.Je(u),a.Je(r));var d=u.De,p=u[d-1];if(0!=p){var h=p*(1<<this.Ie)+(1<d?u[d-2]>>this.Se:0),_=this.be/h,g=(1<<this.Ie)/h,v=1<<this.Se,m=r.De,E=m-d,y=null==i?e():i;for(u.Me(E,y),0<=r.Ue(y)&&(r[r.De++]=1,r.Ye(y,r)),t.ONE.Me(d,y),y.Ye(u,u);u.De<d;)u[u.De++]=0;for(;0<=--E;){var b=r[--m]==p?this.we:Math.floor(r[m]*_+(r[m-1]+v)*g);if((r[m]+=u.ge(0,b,r,E,0,d))<b)for(u.Me(E,y),r.Ye(y,r);r[m]<--b;)r.Ye(y,r)}null!=i&&(r.Qe(d,i),c!=l&&t.ZERO.Ye(i,i)),r.De=d,r.ze(),0<f&&r.$e(f,r),c<0&&t.ZERO.Ye(r,r)}}},t.prototype.ke=function(){if(this.De<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return 0<(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.ye)%this.ye)?this.ye-e:-e},t.prototype.ni=function(){return 0==(0<this.De?1&this[0]:this.xe)},t.prototype.exp=function(n,i){if(4294967295<n||n<1)return t.ONE;var r=e(),o=e(),a=i.Ve(this),u=s(n)-1;for(a.Je(r);0<=--u;)if(i.qe(r,o),0<(n&1<<u))i.Ge(o,a,r);else{var c=r;r=o,o=c}return i.Fe(r)},t.prototype.toString=function(t){if(this.xe<0)return"-"+this.ti().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.ei(t);e=2}var i,r=(1<<e)-1,o=!1,s="",a=this.De,u=this.me-a*this.me%e;if(0<a--)for(u<this.me&&0<(i=this[a]>>u)&&(o=!0,s=n(i));0<=a;)u<e?(i=(this[a]&(1<<u)-1)<<e-u,i|=this[--a]>>(u+=this.me-e)):(i=this[a]>>(u-=e)&r,u<=0&&(u+=this.me,--a)),0<i&&(o=!0),o&&(s+=n(i));return o?s:"0"},t.prototype.ti=function(){var n=e();return t.ZERO.Ye(this,n),n},t.prototype.abs=function(){return this.xe<0?this.ti():this},t.prototype.Ue=function(t){var e=this.xe-t.xe;if(0!=e)return e;var n=this.De;if(0!=(e=n-t.De))return this.xe<0?-e:e;for(;0<=--n;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.ii=function(){return this.De<=0?0:this.me*(this.De-1)+s(this[this.De-1]^this.xe&this.we)},t.prototype.Be=function(n){var i=e();return this.abs().je(n,null,i),this.xe<0&&0<i.Ue(t.ZERO)&&n.Ye(i,i),i},t.prototype.ri=function(t,e){var n;return n=t<256||e.ni()?new a(e):new u(e),this.exp(t,n)},t.ZERO=o(0),t.ONE=o(1),_.prototype.Ve=g,_.prototype.Fe=g,_.prototype.Ge=function(t,e,n){t.Ke(e,n)},_.prototype.qe=function(t,e){t.He(e)},v.prototype.Ve=function(t){if(t.xe<0||t.De>2*this.Ae.De)return t.Be(this.Ae);if(t.Ue(this.Ae)<0)return t;var n=e();return t.Je(n),this.reduce(n),n},v.prototype.Fe=function(t){return t},v.prototype.reduce=function(t){for(t.Qe(this.Ae.De-1,this.r2),t.De>this.Ae.De+1&&(t.De=this.Ae.De+1,t.ze()),this.Oe.oi(this.r2,this.Ae.De+1,this.Re),this.Ae.ui(this.Re,this.Ae.De+1,this.r2);t.Ue(this.r2)<0;)t.si(1,this.Ae.De+1);for(t.Ye(this.r2,t);0<=t.Ue(this.Ae);)t.Ye(this.Ae,t)},v.prototype.Ge=function(t,e,n){t.Ke(e,n),this.reduce(n)},v.prototype.qe=function(t,e){t.He(e),this.reduce(e)};var N=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],R=(1<<26)/N[N.length-1];t.prototype.li=function(t){return Math.floor(Math.LN2*this.me/Math.log(t))},t.prototype.ei=function(t){if(null==t&&(t=10),0==this.pi()||t<2||36<t)return"0";var n=this.li(t),i=Math.pow(t,n),r=o(i),s=e(),a=e(),u="";for(this.je(r,s,a);0<s.pi();)u=(i+a.vi()).toString(t).substr(1)+u,s.je(r,s,a);return a.vi().toString(t)+u},t.prototype.Xe=function(e,n){this.Pe(0),null==n&&(n=10);for(var i=this.li(n),o=Math.pow(n,i),s=!1,a=0,u=0,c=0;c<e.length;++c){var l=r(e,c);l<0?"-"==e.charAt(c)&&0==this.pi()&&(s=!0):(u=n*u+l,++a>=i&&(this.di(o),this.si(u,0),u=a=0))}0<a&&(this.di(Math.pow(n,a)),this.si(u,0)),s&&t.ZERO.Ye(this,this)},t.prototype.he=function(e,n,i){if("number"==typeof n)if(e<2)this.Pe(1);else for(this.he(e,i),this.hi(e-1)||this._i(t.ONE.shiftLeft(e-1),l,this),this.ni()&&this.si(1,0);!this.gi(n);)this.si(2,0),this.ii()>e&&this.Ye(t.ONE.shiftLeft(e-1),this);else{var r=[],o=7&e;r.length=1+(e>>3),n.mi(r),0<o?r[0]&=(1<<o)-1:r[0]=0,this._e(r,256)}},t.prototype._i=function(t,e,n){var i,r,o=Math.min(t.De,this.De);for(i=0;i<o;++i)n[i]=e(this[i],t[i]);if(t.De<this.De){for(r=t.xe&this.we,i=o;i<this.De;++i)n[i]=e(this[i],r);n.De=this.De}else{for(r=this.xe&this.we,i=o;i<t.De;++i)n[i]=e(r,t[i]);n.De=t.De}n.xe=e(this.xe,t.xe),n.ze()},t.prototype.wi=function(e,n){var i=t.ONE.shiftLeft(e);return this._i(i,n,i),i},t.prototype.yi=function(t,e){for(var n=0,i=0,r=Math.min(t.De,this.De);n<r;)i+=this[n]+t[n],e[n++]=i&this.we,i>>=this.me;if(t.De<this.De){for(i+=t.xe;n<this.De;)i+=this[n],e[n++]=i&this.we,i>>=this.me;i+=this.xe}else{for(i+=this.xe;n<t.De;)i+=t[n],e[n++]=i&this.we,i>>=this.me;i+=t.xe}e.xe=i<0?-1:0,0<i?e[n++]=i:i<-1&&(e[n++]=this.ye+i),e.De=n,e.ze()},t.prototype.di=function(t){this[this.De]=this.ge(0,t-1,this,0,0,this.De),++this.De,this.ze()},t.prototype.si=function(t,e){if(0!=t){for(;this.De<=e;)this[this.De++]=0;for(this[e]+=t;this[e]>=this.ye;)this[e]-=this.ye,++e>=this.De&&(this[this.De++]=0),++this[e]}},t.prototype.ui=function(t,e,n){var i,r=Math.min(this.De+t.De,e);for(n.xe=0,n.De=r;0<r;)n[--r]=0;for(i=n.De-this.De;r<i;++r)n[r+this.De]=this.ge(0,t[r],n,r,0,this.De);for(i=Math.min(t.De,e);r<i;++r)this.ge(0,t[r],n,r,0,e-r);n.ze()},t.prototype.oi=function(t,e,n){--e;var i=n.De=this.De+t.De-e;for(n.xe=0;0<=--i;)n[i]=0;for(i=Math.max(e-this.De,0);i<t.De;++i)n[this.De+i-e]=this.ge(e-i,t[i],n,0,0,this.De+i-e);n.ze(),n.Qe(1,n)},t.prototype.bi=function(t){if(t<=0)return 0;var e=this.ye%t,n=this.xe<0?t-1:0;if(0<this.De)if(0==e)n=this[0]%t;else for(var i=this.De-1;0<=i;--i)n=(e*n+this[i])%t;return n},t.prototype.Ii=function(n){var i=this.Si(t.ONE),r=i.Pi();if(r<=0)return!1;var o=i.Ai(r);(n=n+1>>1)>N.length&&(n=N.length);for(var s=e(),a=0;a<n;++a){s.Pe(N[Math.floor(Math.random()*N.length)]);var u=s.Ci(o,this);if(0!=u.Ue(t.ONE)&&0!=u.Ue(i)){for(var c=1;c++<r&&0!=u.Ue(i);)if(0==(u=u.ri(2,this)).Ue(t.ONE))return!1;if(0!=u.Ue(i))return!1}}return!0},t.prototype.clone=function(){var t=e();return this.Je(t),t},t.prototype.vi=function(){if(this.xe<0){if(1==this.De)return this[0]-this.ye;if(0==this.De)return-1}else{if(1==this.De)return this[0];if(0==this.De)return 0}return(this[1]&(1<<32-this.me)-1)<<this.me|this[0]},t.prototype.ki=function(){return 0==this.De?this.xe:this[0]<<24>>24},t.prototype.Ei=function(){return 0==this.De?this.xe:this[0]<<16>>16},t.prototype.pi=function(){return this.xe<0?-1:this.De<=0||1==this.De&&this[0]<=0?0:1},t.prototype.Ti=function(){var t=this.De,e=[];e[0]=this.xe;var n,i=this.me-t*this.me%8,r=0;if(0<t--)for(i<this.me&&(n=this[t]>>i)!=(this.xe&this.we)>>i&&(e[r++]=n|this.xe<<this.me-i);0<=t;)i<8?(n=(this[t]&(1<<i)-1)<<8-i,n|=this[--t]>>(i+=this.me-8)):(n=this[t]>>(i-=8)&255,i<=0&&(i+=this.me,--t)),0!=(128&n)&&(n|=-256),0==r&&(128&this.xe)!=(128&n)&&++r,(0<r||n!=this.xe)&&(e[r++]=n);return e},t.prototype.Ni=function(t){return 0==this.Ue(t)},t.prototype.min=function(t){return this.Ue(t)<0?this:t},t.prototype.max=function(t){return 0<this.Ue(t)?this:t},t.prototype.Li=function(t){var n=e();return this._i(t,c,n),n},t.prototype.Di=function(t){var n=e();return this._i(t,l,n),n},t.prototype.Ri=function(t){var n=e();return this._i(t,f,n),n},t.prototype.Mi=function(t){var n=e();return this._i(t,d,n),n},t.prototype.Oi=function(){for(var t=e(),n=0;n<this.De;++n)t[n]=this.we&~this[n];return t.De=this.De,t.xe=~this.xe,t},t.prototype.shiftLeft=function(t){var n=e();return t<0?this.$e(-t,n):this.Ze(t,n),n},t.prototype.Ai=function(t){var n=e();return t<0?this.Ze(-t,n):this.$e(t,n),n},t.prototype.Pi=function(){for(var t=0;t<this.De;++t)if(0!=this[t])return t*this.me+p(this[t]);return this.xe<0?this.De*this.me:-1},t.prototype.Wi=function(){for(var t=0,e=this.xe&this.we,n=0;n<this.De;++n)t+=h(this[n]^e);return t},t.prototype.hi=function(t){var e=Math.floor(t/this.me);return e>=this.De?0!=this.xe:0!=(this[e]&1<<t%this.me)},t.prototype.Vi=function(t){return this.wi(t,l)},t.prototype.xi=function(t){return this.wi(t,d)},t.prototype.Ui=function(t){return this.wi(t,f)},t.prototype.add=function(t){var n=e();return this.yi(t,n),n},t.prototype.Si=function(t){var n=e();return this.Ye(t,n),n},t.prototype.multiply=function(t){var n=e();return this.Ke(t,n),n},t.prototype.We=function(t){var n=e();return this.je(t,n,null),n},t.prototype.Bi=function(t){var n=e();return this.je(t,null,n),n},t.prototype.Fi=function(t){var n=e(),i=e();return this.je(t,n,i),[n,i]},t.prototype.Ci=function(t,n){var i,r,c=t.ii(),l=o(1);if(c<=0)return l;i=c<18?1:c<48?3:c<144?4:c<768?5:6,r=c<8?new a(n):n.ni()?new v(n):new u(n);var f=[],d=3,p=i-1,h=(1<<i)-1;if(f[1]=r.Ve(this),1<i){var _=e();for(r.qe(f[1],_);d<=h;)f[d]=e(),r.Ge(_,f[d-2],f[d]),d+=2}var g,m,E=t.De-1,y=!0,b=e();for(c=s(t[E])-1;0<=E;){for(p<=c?g=t[E]>>c-p&h:(g=(t[E]&(1<<c+1)-1)<<p-c,0<E&&(g|=t[E-1]>>this.me+c-p)),d=i;0==(1&g);)g>>=1,--d;if((c-=d)<0&&(c+=this.me,--E),y)f[g].Je(l),y=!1;else{for(;1<d;)r.qe(l,b),r.qe(b,l),d-=2;0<d?r.qe(l,b):(m=l,l=b,b=m),r.Ge(b,f[g],l)}for(;0<=E&&0==(t[E]&1<<c);)r.qe(l,b),m=l,l=b,b=m,--c<0&&(c=this.me-1,--E)}return r.Fe(l)},t.prototype.ji=function(e){var n=e.ni();if(this.ni()&&n||0==e.pi())return t.ZERO;for(var i=e.clone(),r=this.clone(),s=o(1),a=o(0),u=o(0),c=o(1);0!=i.pi();){for(;i.ni();)i.$e(1,i),n?(s.ni()&&a.ni()||(s.yi(this,s),a.Ye(e,a)),s.$e(1,s)):a.ni()||a.Ye(e,a),a.$e(1,a);for(;r.ni();)r.$e(1,r),n?(u.ni()&&c.ni()||(u.yi(this,u),c.Ye(e,c)),u.$e(1,u)):c.ni()||c.Ye(e,c),c.$e(1,c);0<=i.Ue(r)?(i.Ye(r,i),n&&s.Ye(u,s),a.Ye(c,a)):(r.Ye(i,r),n&&u.Ye(s,u),c.Ye(a,c))}return 0!=r.Ue(t.ONE)?t.ZERO:0<=c.Ue(e)?c.Si(e):c.pi()<0?(c.yi(e,c),c.pi()<0?c.add(e):c):c},t.prototype.pow=function(t){return this.exp(t,new _)},t.prototype.Gi=function(t){var e=this.xe<0?this.ti():this.clone(),n=t.xe<0?t.ti():t.clone();if(e.Ue(n)<0){var i=e;e=n,n=i}var r=e.Pi(),o=n.Pi();if(o<0)return e;for(r<o&&(o=r),0<o&&(e.$e(o,e),n.$e(o,n));0<e.pi();)0<(r=e.Pi())&&e.$e(r,e),0<(r=n.Pi())&&n.$e(r,n),0<=e.Ue(n)?(e.Ye(n,e),e.$e(1,e)):(n.Ye(e,n),n.$e(1,n));return 0<o&&n.Ze(o,n),n},t.prototype.gi=function(t){var e,n=this.abs();if(1==n.De&&n[0]<=N[N.length-1]){for(e=0;e<N.length;++e)if(n[0]==N[e])return!0;return!1}if(n.ni())return!1;for(e=1;e<N.length;){for(var i=N[e],r=e+1;r<N.length&&i<R;)i*=N[r++];for(i=n.bi(i);e<r;)if(i%N[e++]==0)return!1}return n.Ii(t)},t.prototype.Ki=function(){var t=e();return this.He(t),t},m.prototype.init=function(t){var e,n,i;for(e=0;e<256;++e)this.ci[e]=e;for(e=n=0;e<256;++e)n=n+this.ci[e]+t[e%t.length]&255,i=this.ci[e],this.ci[e]=this.ci[n],this.ci[n]=i;this.ai=0,this.fi=0},m.prototype.next=function(){var t;return this.ai=this.ai+1&255,this.fi=this.fi+this.ci[this.ai]&255,t=this.ci[this.ai],this.ci[this.ai]=this.ci[this.fi],this.ci[this.fi]=t,this.ci[t+this.ci[this.ai]&255]};var L,D,B,M=256;if(null==D){var x;for(D=[],B=0;B<M;)x=Math.floor(65536*Math.random()),D[B++]=x>>>8,D[B++]=255&x;B=0,E()}b.prototype.mi=function(t){var e;for(e=0;e<t.length;++e)t[e]=y()},S.prototype.qi=function(t){return t.ri(this.e,this.n)},S.prototype.Hi=function(t,e){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=A(t,16),this.e=parseInt(e,16)):alert("Invalid RSA public key")},S.prototype.encrypt=function(e){var n=function(e,n){if(n<e.length+11)return alert("Message too long for RSA"),null;for(var i=[],r=e.length-1;0<=r&&0<n;){var o=e.charCodeAt(r--);i[--n]=o<128?o:127<o&&o<2048?(i[--n]=63&o|128,o>>6|192):(i[--n]=63&o|128,i[--n]=o>>6&63|128,o>>12|224)}i[--n]=0;for(var s=new b,a=[];2<n;){for(a[0]=0;0==a[0];)s.mi(a);i[--n]=a[0]}return i[--n]=2,i[--n]=0,new t(i)}(e,this.n.ii()+7>>3);if(null==n)return null;var i=this.qi(n);if(null==i)return null;var r=i.toString(16);return 0==(1&r.length)?r:"0"+r},S.prototype.Yi=function(t){if(null==this.p||null==this.q)return t.Ci(this.d,this.n);for(var e=t.Be(this.p).Ci(this.dmp1,this.p),n=t.Be(this.q).Ci(this.dmq1,this.q);e.Ue(n)<0;)e=e.add(this.p);return e.Si(n).multiply(this.coeff).Be(this.p).multiply(this.q).add(n)},S.prototype.Ji=function(t,e,n){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=A(t,16),this.e=parseInt(e,16),this.d=A(n,16)):alert("Invalid RSA private key")},S.prototype.zi=function(t,e,n,i,r,o,s,a){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=A(t,16),this.e=parseInt(e,16),this.d=A(n,16),this.p=A(i,16),this.q=A(r,16),this.dmp1=A(o,16),this.dmq1=A(s,16),this.coeff=A(a,16)):alert("Invalid RSA private key")},S.prototype.Qi=function(e,n){var i=new b,r=e>>1;this.e=parseInt(n,16);for(var o=new t(n,16);;){for(;this.p=new t(e-r,1,i),0!=this.p.Si(t.ONE).Gi(o).Ue(t.ONE)||!this.p.gi(10););for(;this.q=new t(r,1,i),0!=this.q.Si(t.ONE).Gi(o).Ue(t.ONE)||!this.q.gi(10););if(this.p.Ue(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var a=this.p.Si(t.ONE),u=this.q.Si(t.ONE),c=a.multiply(u);if(0==c.Gi(o).Ue(t.ONE)){this.n=this.p.multiply(this.q),this.d=o.ji(c),this.dmp1=this.d.Be(a),this.dmq1=this.d.Be(u),this.coeff=this.q.ji(this.p);break}}},S.prototype.decrypt=function(t){var e=A(t,16),n=this.Yi(e);return null==n?null:function(t,e){for(var n=t.Ti(),i=0;i<n.length&&0==n[i];)++i;if(n.length-i!=e-1||2!=n[i])return null;for(++i;0!=n[i];)if(++i>=n.length)return null;for(var r="";++i<n.length;){var o=255&n[i];o<128?r+=String.fromCharCode(o):191<o&&o<224?(r+=String.fromCharCode((31&o)<<6|63&n[i+1]),++i):(r+=String.fromCharCode((15&o)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return r}(n,this.n.ii()+7>>3)};var U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";S.prototype.Xi=function(t){t=this.Zi(t);var e=this.$i(),n=0,i=null,r=null,o=0;for(var s in e)e.hasOwnProperty(s)&&((i=e[s]).hasOwnProperty("offset")&&(n+=2*i.offset),o="string"==typeof i.length?this[i.length]:i.length,o*=2,r=t.substr(n,o),i.hasOwnProperty("type")&&("int"==i.type?r=parseInt(r,16):"bigint"==i.type&&(r=A(r,16))),n+=o,this[s]=r)},S.prototype.nr=function(t){var e="";t=function(t){var e,n,i,r=(t=""+t).length;if(0===r)return t;if(r%4!=0)throw new Error;e=0,"="===t.charAt(r-1)&&(e=1,"="===t.charAt(r-2)&&(e=2),r-=4);var o=[];for(n=0;n<r;n+=4)i=T(t,n)<<18|T(t,n+1)<<12|T(t,n+2)<<6|T(t,n+3),o.push(String.fromCharCode(i>>16,i>>8&255,255&i));switch(e){case 1:i=T(t,n)<<18|T(t,n+1)<<12|T(t,n+2)<<6,o.push(String.fromCharCode(i>>16,i>>8&255));break;case 2:i=T(t,n)<<18|T(t,n+1)<<12,o.push(String.fromCharCode(i>>16))}return o.join("")}(t);for(var n=0;n<t.length;++n){var i=t.charCodeAt(n).toString(16);1===i.length&&(i="0"+i),e+=i}return e},S.prototype.Zi=function(t){var e=(t=t.replace(/^\s+|\s+$/g,"")).split(/\r?\n/);return"-----BEGIN"==e[0].substring(0,10)&&(e=e.slice(1,e.length-1)),t=e.join(""),this.nr(t)},S.prototype.tr=function(){var t="",e=this.$i(),n=null,i=null,r=0;for(var o in e)e.hasOwnProperty(o)&&(n=e[o]).er&&((i=this[o].toString(16)).length%2&&(i="0"+i),n.hasOwnProperty("padded")&&n.ir&&(i="00"+i),(r=(r=i.length/2).toString(16)).length%2&&(r="0"+r),n.hasOwnProperty("extraspace")&&(t+=r),t+=r,t+=i,t+="02");return t.slice(0,-2)},S.prototype.rr=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(new RegExp(n,"g")).join("\n")},S.prototype.or=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n",e="3082025e02010002";return e+=this.tr(),t+=this.rr(I(e))+"\n",t+="-----END RSA PRIVATE KEY-----"},S.prototype.ur=function(){var t="-----BEGIN PUBLIC KEY-----\n",e="30819f300d06092a864886f70d010101050003818d0030818902";return e+=this.tr(),t+=this.rr(I(e))+"\n",t+="-----END PUBLIC KEY-----"};var k=function(t){S.call(this),t&&this.Xi(t)};((k.prototype=new S).constructor=k).prototype.$i=function(){return{header:{length:4},versionlength:{length:1,offset:1,type:"int"},version:{length:"versionlength",type:"int"},n_length:{length:1,offset:2,type:"int"},n:{length:"n_length",type:"bigint",er:!0,ir:!0,sr:!0},e_length:{length:1,offset:1,type:"int"},e:{length:"e_length",type:"int",er:!0},d_length:{length:1,offset:2,type:"int"},d:{length:"d_length",type:"bigint",er:!0,ir:!0,sr:!0},p_length:{length:1,offset:1,type:"int"},p:{length:"p_length",type:"bigint",er:!0,ir:!0},q_length:{length:1,offset:1,type:"int"},q:{length:"q_length",type:"bigint",er:!0,ir:!0},dmp1_length:{length:1,offset:1,type:"int"},dmp1:{length:"dmp1_length",type:"bigint",er:!0},dmq1_length:{length:1,offset:1,type:"int"},dmq1:{length:"dmq1_length",type:"bigint",er:!0,ir:!0},coeff_length:{length:1,offset:1,type:"int"},coeff:{length:"coeff_length",type:"bigint",er:!0,ir:!0}}};var V=function(t){S.call(this),t&&("string"==typeof t?this.Xi(t):t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&(this.n=t.n,this.e=t.e))};((V.prototype=new S).constructor=V).prototype.$i=function(){return{header:{length:25},n_length:{length:1,offset:2,type:"int"},n:{length:"n_length",type:"bigint",er:!0,ir:!0,sr:!0},e_length:{length:1,offset:1,type:"int"},e:{length:"e_length",type:"int",er:!0}}};var G=function(){this.ar=null,this.cr=null};return G.prototype.lr=function(t){this.ar=new k(t),this.cr=new V(this.ar)},G.prototype.pr=function(t){this.cr=new V(t)},G.prototype.decrypt=function(t){return!!this.ar&&this.ar.decrypt(function(t){var e,i,r="",o=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var s=U.indexOf(t.charAt(e));s<0||(o=0==o?(r+=n(s>>2),i=3&s,1):1==o?(r+=n(i<<2|s>>4),i=15&s,2):2==o?(r+=n(i),r+=n(s>>2),i=3&s,3):(r+=n(i<<2|s>>4),r+=n(15&s),0))}return 1==o&&(r+=n(i<<2)),r}(t))},G.prototype.encrypt=function(t){var e=this.cr||this.ar;return!!e&&I(e.encrypt(t))},G.prototype.or=function(){return this.ar||(this.ar=new k,this.ar.Qi(1024,"010001"),this.cr=new V(this.ar)),this.ar.or()},G.prototype.ur=function(){return this.cr||(this.cr=new V,this.cr.Qi(1024,"010001")),this.cr.ur()},function(t){var e=new G;return e.pr(i.Xt),e.encrypt(t)}}(),e.exports=r.encrypt},{17:17}],26:[function(t,e,n){var i=i||{},r="undefined";i.vr=function(t,e){return e=e||!1,t?"0"!=t:e},i.U=function(t,e){return null==t||isNaN(t)?e||0:parseInt(t)},i.o=function(t,e){var n=Number(t);return null==t||isNaN(n)?e||0:n},i.toString=function(t){if(typeof t==r)return r;if("string"==typeof t)return t;if(t instanceof Array)return t.join(",");var e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+":"+t[n]+";");return e||t.toString()},e.exports.vr=i.vr,e.exports.U=i.U,e.exports.o=i.o,e.exports.toString=i.toString},{}],27:[function(t,e,n){var i=t(19),r="undefined",o=typeof encodeURIComponent!==r?encodeURIComponent:escape,s=typeof decodeURIComponent!==r?decodeURIComponent:unescape,a="cs_dir_",u="cs_file_",c=typeof localStorage!==r?localStorage:null,l={},f=c&&o&&s,d={dir:function(t){if(!f)return null;var e=a+t,n=l[e];if(n)return n.slice();var i=c.getItem(e);if(i){n=[];for(var r=0,o=(i=i.split("|")).length;r<o;r++)0<i[r].length&&n.push(s(i[r]));return(l[e]=n).slice()}return null},append:function(t,e,n){if(f){var i=d.read(t,e);i?i+=n:i=n,d.write(t,e,i)}},write:function(t,e,n){if(f){var r,s=d.dir(t);s||(r=a+t,"function"==typeof c.setItem?c.setItem(r,""):c[r]="",l[r]=[],s=[]),-1==i.indexOf(e,s)&&function(t,e){var n=a+t;try{"function"==typeof c.setItem?c.setItem(n,c.getItem(n)+"|"+o(e)):c[n]=c.getItem(n)+"|"+o(e)}catch(t){}l[n].push(e)}(t,e),function(t,e,n){try{"function"==typeof c.setItem?c.setItem(u+t+e,n):c[u+t+e]=n}catch(t){}}(t,e,n)}},deleteFile:function(t,e){if(!f)return!1;var n=d.dir(t);return!!n&&-1!=i.indexOf(e,n)&&(function(t,e){var n=a+t,r=l[n];r.splice(i.indexOf(e,r),1);for(var s=[],f=0,d=r.length;f<d;f++)s.push(o(r[f]));try{"function"==typeof c.setItem?c.setItem(n,s.join("|")):c[n]=s.join("|"),"function"==typeof c.removeItem?c.removeItem(u+t+e):delete c[u+t+e]}catch(t){}}(t,e),!0)},read:function(t,e){if(!f)return null;var n=d.dir(t);return n?-1==i.indexOf(e,n)?null:function(t,e){try{return"function"==typeof c.getItem?c.getItem(u+t+e):c[u+t+e]}catch(t){}}(t,e):null}};e.exports=d},{19:19}],28:[function(t,e,n){function i(){f=typeof FileSystem!=l?new FileSystem:null,d=typeof curWidget!=l?curWidget.id:null,typeof sf!==l&&(u=a=function(t,e){sf.core.localData(t,e)}),null==f||typeof f.isValidCommonPath==l||f.isValidCommonPath(d)||f.createCommonDir(d),g=!0}function r(t){return t.replace(/^\s+|\s+$/g,"")}function o(t,e){var n=_[t];n?n.push(e):n=_[t]=[e],u(p+t,n.join(h))}function s(t,e){var n=_[t],i=c.indexOf(e,n);0<=i&&(n.splice(i,1),u(p+t,0===n.length?null:n.join(h)))}var a,u,c=t(19),l="undefined",f=null,d=null,p="cs_dir_",h="|",_={},g=!1,v={dir:function(t){if(g||i(),f.isValidCommonPath(d+"/"+t)){var e=_[t];if(!e){if(!(e=a(p+t)))return null;e=_[t]=e.split(h)}for(var n=e.slice(),r=0,o=n.length;r<o;r++){var u=e[r];f.isValidCommonPath(d+"/"+t+"/"+u)||s(t,u)}return n}return null},append:function(t,e,n){g||i();var s=d+"/"+t;f.isValidCommonPath(s)||f.createCommonDir(s),f.isValidCommonPath(s+"/"+e)||o(t,e);var a=f.openCommonFile(s+"/"+e,"a");a.writeLine(r(n)),f.closeCommonFile(a)},write:function(t,e,n){g||i();var s=d+"/"+t;f.isValidCommonPath(s)||f.createCommonDir(s),f.isValidCommonPath(s+"/"+e)||o(t,e);var a=f.openCommonFile(s+"/"+e,"w");a.writeLine(r(n)),f.closeCommonFile(a)},deleteFile:function(t,e){g||i();var n=d+"/"+t;return!!f.isValidCommonPath(n)&&(s(t,e),f.deleteCommonFile(n+"/"+e))},read:function(t,e){g||i();var n=d+"/"+t;if(!f.isValidCommonPath(n))return null;var r=f.openCommonFile(n+"/"+e,"r");if(r){for(var o,a=[];o=r.readLine();)a.push(o);return f.closeCommonFile(r),a.join("\n")}return s(t,e),""}};e.exports=v},{19:19}],29:[function(t,e,n){e.exports={dir:function(){return null},append:function(t,e,n){},write:function(t,e,n){},deleteFile:function(){return!1},read:function(){return null}}},{}],30:[function(t,e,n){function i(){null==p&&(h=typeof atv!=l&&typeof atv.device!=l&&atv.device.idForVendor?(p=r.pe(atv.device.idForVendor,""),"62"):(p=+new Date+~~(1e3*Math.random()),"72"),_=null)}var r=t(21),o=t(17),s=t(49).dr,a=t(49).hr(),u=t(45),c=t(29),l="undefined",f=o.D,d=o.Qt,p=null,h=null,_=null,g={PLATFORM:"atv",httpGet:s,httpPost:a,Storage:u,IO:c,getCrossPublisherId:function(){return i(),_},getAppName:function(){return f},getAppVersion:function(){return f},getVisitorId:function(){return i(),p},getVisitorIdSuffix:function(){return h},getDeviceModel:function(){return"Apple TV"},getPlatformVersion:function(){return typeof atv!=l&&typeof atv.device!=l&&r.pe(atv.device.softwareVersion,f)},getPlatformName:function(){return"js"},getRuntimeName:function(){return"atv"},getRuntimeVersion:function(){return typeof atv!=l&&typeof atv.device!=l&&r.pe(atv.device.softwareVersion,f)},getDisplayResolution:function(){return typeof atv.device!=l&&typeof atv.device.screenFrame!=l&&typeof atv.device.screenFrame.height!=l&&typeof atv.device.screenFrame.width!=l?atv.device.screenFrame.height+"x"+atv.device.screenFrame.width:d},getLanguage:function(){return typeof atv!=l&&typeof atv.device!=l&&r.pe(atv.device.language,"")},getPackageName:function(){return""},isConnectionAvailable:function(){return!0},setTimeout:function(t,e){return typeof atv!=l&&typeof atv.setTimeout!=l&&atv.setTimeout(t,e)},setInterval:function(t,e){return typeof atv!=l&&typeof atv.setInterval!=l&&atv.setInterval(t,e)},clearTimeout:function(t){return typeof atv!=l&&typeof atv.clearTimeout!=l&&atv.clearTimeout(t)},clearInterval:function(t){return typeof atv!=l&&typeof atv.clearInterval!=l&&atv.clearInterval(t)},isCompatible:function(){return typeof window==l&&typeof atv!=l},isConnectionSecure:function(){return typeof document!=l&&null!=document&&"s"===document.location.href.charAt(4)}};e.exports=g},{17:17,21:21,29:29,45:45,49:49}],31:[function(t,e,n){var i=t(21),r=t(20),o=t(17),s=t(50),a=t(48)._r,u=t(46),c=t(27),l="undefined",f=o.D,d=o.Qt,p={PLATFORM:"chromecast",httpGet:s,httpPost:a,Storage:u,IO:c,getCrossPublisherId:function(){return null},getAppName:function(){return typeof ns_.crm===l?f:ns_.crm.getApplicationData().name},getAppVersion:function(){return f},getVisitorId:function(){return+new Date+~~(1e3*Math.random())},getVisitorIdSuffix:function(){return"72"},getDeviceModel:function(){return"chromecast"},getPlatformVersion:function(){return cast.receiver.VERSION+"-"+i.pe(r.ue()+" "+r.se(),f)},getPlatformName:function(){return"js"},getRuntimeName:function(){return"html"},getRuntimeVersion:function(){return"5"},getDisplayResolution:function(){var t=typeof window!=l&&i.tn(window.screen)&&i.tn(window.screen.availWidth)?window.screen.availWidth:0,e=typeof window!=l&&i.tn(window.screen)&&i.tn(window.screen.availHeight)?window.screen.availHeight:0;return 0<t&&0<e?t+"x"+e:d},getLanguage:function(){return typeof window!=l&&i.tn(window.navigator)&&i.pe(window.navigator.language,"")||f},getPackageName:function(){return f},isConnectionAvailable:function(){return!0},isCompatible:function(){return typeof window!==l&&!i.jt(window.cast)&&!i.jt(cast.receiver)},isConnectionSecure:function(){return typeof document!=l&&null!=document&&"s"===document.location.href.charAt(4)}};e.exports=p},{17:17,20:20,21:21,27:27,46:46,48:48,50:50}],32:[function(t,e,n){e.exports={SmartTV:0,Netcast:1,Cordova:2,Trilithium:3,AppleTV:4,Chromecast:5,Xbox:6,webOS:7,tvOS:8,nodejs:9,html5:10,JSMAF:11,Skeleton:12}},{}],33:[function(t,e,n){function i(){return typeof device!=d&&typeof device.available!=d&&device.available&&typeof window!=d&&typeof window.navigator!=d}function r(){if(null==_){var t=i()&&typeof device!=d&&o.tn(device.uuid)&&0<device.uuid.length?device.uuid:null;v=null!=t?(g="31",_=t):(_=+new Date+~~(1e3*Math.random()),g="72",null)}}var o=t(21),s=t(17),a=t(50),u=t(48).gr,c=t(48)._r,l=t(46),f=t(27),d="undefined",p=s.D,h=s.Qt,_=null,g=null,v=null,m={PLATFORM:"cordova",httpGet:function(){return typeof Image!=d?a.apply(this,arguments):u.apply(this,arguments)},httpPost:c,Storage:l,IO:f,getCrossPublisherId:function(){return r(),v},getAppName:function(){return p},getAppVersion:function(){return p},getVisitorId:function(){return r(),_},getVisitorIdSuffix:function(){return g},getDeviceModel:function(){return typeof device!=d&&o.tn(device.model)||p},getPlatformVersion:function(){return typeof device!=d&&o.tn(device.cordova)&&device.cordova||p},getPlatformName:function(){return"js"},getRuntimeName:function(){return typeof device!=d&&o.tn(device.platform)&&"cordova"+device.platform||"cordova"},getRuntimeVersion:function(){return typeof device!=d&&o.tn(device.version)||p},getDisplayResolution:function(){var t=typeof window!=d&&o.tn(window.screen)&&o.tn(window.screen.availWidth)&&window.screen.availWidth||0,e=typeof window!=d&&o.tn(window.screen)&&o.tn(window.screen.availHeight)&&window.screen.availHeight||0;return 0<t&&0<e?t+"x"+e:h},getLanguage:function(){return typeof window!=d&&o.tn(window.navigator)&&o.tn(window.navigator.language)&&window.navigator.language||p},getPackageName:function(){return""},isConnectionAvailable:function(){return typeof window==d||!o.tn(window.navigator)||!o.tn(window.navigator.onLine)||window.navigator.onLine},isCompatible:i,isConnectionSecure:function(){return typeof document!=d&&null!=document&&"s"===document.location.href.charAt(4)}};e.exports=m},{17:17,21:21,27:27,46:46,48:48,50:50}],34:[function(t,e,n){var i=t(21),r=t(20),o=t(17),s=t(50),a=t(48).gr,u=t(48)._r,c=t(46),l=t(27),f="undefined",d=typeof document!=f&&document||void 0,p=o.D,h=o.Qt,_={PLATFORM:"html5",httpGet:function(){return typeof Image!=f?s.apply(this,arguments):a.apply(this,arguments)},httpPost:u,Storage:c,IO:l,getCrossPublisherId:function(){return null},getAppName:function(){return d&&i.tn(d.title)&&d.title||p},getAppVersion:function(){return p},getVisitorId:function(){return this.getDeviceModel()+ +new Date+~~(1e3*Math.random())},getVisitorIdSuffix:function(){return"72"},getDeviceModel:function(){return typeof window!=f&&i.tn(window.navigator)&&i.pe(window.navigator.platform,"")||""},getPlatformVersion:function(){return i.pe(r.ue()+" "+r.se(),"")},getPlatformName:function(){return"js"},getRuntimeName:function(){return"html"},getRuntimeVersion:function(){return"5"},getDisplayResolution:function(){var t,e;typeof window!=f&&window.screen&&window.screen.width&&(t=window.screen.width),typeof window!=f&&window.screen&&window.screen.width&&(e=window.screen.height);var n=1;return typeof window!=f&&window.devicePixelRatio&&(n=window.devicePixelRatio),0<t&&0<e?(t*=n)+"x"+(e*=n):h},getApplicationResolution:function(){var t,e;typeof window!=f&&window.innerWidth&&(t=window.innerWidth),typeof window!=f&&window.innerHeight&&(e=window.innerHeight);var n=1;return typeof window!=f&&window.devicePixelRatio&&(n=window.devicePixelRatio),0<t&&0<e?(t*=n)+"x"+(e*=n):h},getLanguage:function(){return typeof window!=f&&i.tn(window.navigator)&&i.pe(window.navigator.language,"")||p},getPackageName:function(){return""},isConnectionAvailable:function(){return typeof window==f||!i.tn(window.navigator)||!i.tn(window.navigator.onLine)||window.navigator.onLine},isCompatible:function(){return typeof window!==f&&i.tn(window.navigator)&&i.tn(window.localStorage)&&i.tn(d)&&!!d.createElement("canvas").getContext},isConnectionSecure:function(){return!!d&&"s"===d.location.href.charAt(4)}};e.exports=_},{17:17,20:20,21:21,27:27,46:46,48:48,50:50}],35:[function(t,e,n){function i(){if(null==h)if(typeof jsmaf!=f&&o.tn(jsmaf.hardwareId)){var t=jsmaf.hardwareId;_="31",g=h=t}else h=+new Date+~~(1e3*Math.random()),_="72",g=null}function r(){return typeof jsmaf==f||!o.tn(jsmaf.networkStatus)||"connected"==jsmaf.networkStatus}var o=t(21),s=t(17),a=t(48).gr,u=t(48)._r,c=t(46),l=t(27),f="undefined",d=s.D,p=s.Qt,h=null,_=null,g=null,v={PLATFORM:"jsmaf",httpGet:a,httpPost:u,Storage:c,IO:l,getCrossPublisherId:function(){return i(),g},getAppName:function(){return d},getAppVersion:function(){return d},getVisitorId:function(){return i(),h},getVisitorIdSuffix:function(){return i(),_},getDeviceModel:function(){return typeof jsmaf!=f&&o.tn(jsmaf.platform)?jsmaf.platform:d},getPlatformName:function(){return"js"},getPlatformVersion:function(){return d},getRuntimeName:function(){return"jsmaf"},getRuntimeVersion:function(){return typeof jsmaf!=f&&o.tn(jsmaf.version)?jsmaf.version:d},getDisplayResolution:function(){return typeof jsmaf!=f&&o.tn(jsmaf.screenWidth)&&o.tn(jsmaf.screenHeight)?jsmaf.screenWidth+"x"+jsmaf.screenHeight:p},getLanguage:function(){return typeof jsmaf!=f&&o.tn(jsmaf.locale)?jsmaf.locale:d},getPackageName:function(){return null},isConnectionAvailable:r,isCompatible:function(){return typeof jsmaf!=f},setTimeout:function(t,e){return jsmaf.setTimeout(t,e)},setInterval:function(t,e){return jsmaf.setInterval(t,e)},clearTimeout:function(t){return jsmaf.clearTimeout(t)},clearInterval:function(t){return jsmaf.clearInterval(t)},getDeviceArchitecture:function(){if(typeof jsmaf==f||!o.tn(jsmaf.platform))var t=d;return"ps3"==jsmaf.platform?t="cell":"ps4"==jsmaf.platform?t="ps4":"vita"==jsmaf.platform&&(t="vita"),t},getConnectionType:function(){return r()&&typeof jsmaf!=f&&o.tn(jsmaf.connectionType)?"wired"==jsmaf.connectionType?"eth":"wireless"==jsmaf.connectionType?"wifi":"phone"==jsmaf.connectionType?"wwan":d:d},getDeviceJailBrokenFlag:function(){return d},isConnectionSecure:function(){return typeof document!=f&&null!=document&&"s"===document.location.href.charAt(4)}};e.exports=v},{17:17,21:21,27:27,46:46,48:48}],36:[function(t,e,n){var i=t(50),r=t(52).mr,o=t(46),s=t(29),a=t(17),u=a.D,c=a.Qt,l={PLATFORM:"generic",httpGet:i,httpPost:r,Storage:o,IO:s,onDataFetch:function(t){t()},getCrossPublisherId:function(){return null},getAppName:function(){return u},getAppVersion:function(){return u},getVisitorId:function(){return+new Date+~~(1e3*Math.random())},getVisitorIdSuffix:function(){return"72"},getDeviceModel:function(){return u},getPlatformVersion:function(){return u},getPlatformName:function(){return"js"},getRuntimeName:function(){return u},getRuntimeVersion:function(){return u},getDisplayResolution:function(){return c},getApplicationResolution:function(){return c},getLanguage:function(){return u},getPackageName:function(){return null},isConnectionAvailable:function(){return!0},isCompatible:function(){return!0},autoSelect:function(){},autoDetect:function(){},setPlatformAPI:function(){},isCrossPublisherIdChanged:function(){return!1},setTimeout:function(t,e){return setTimeout(t,e)},setInterval:function(t,e){return setInterval(t,e)},clearTimeout:function(t){return clearTimeout(t)},clearInterval:function(t){return clearInterval(t)},getDeviceArchitecture:function(){return u},getConnectionType:function(){return u},getDeviceJailBrokenFlag:function(){return u},isConnectionSecure:function(){return!1},processMeasurementLabels:function(){}};e.exports=l},{17:17,29:29,46:46,50:50,52:52}],37:[function(t,e,n){function i(){if(null==h){var t=function(){if(typeof ns_!=f&&r.tn(ns_.netcastDevice)){if(r.tn(ns_.netcastDevice.net_macAddress)&&r.lt(ns_.netcastDevice.net_macAddress))return ns_.netcastDevice.net_macAddress;if(r.tn(ns_.netcastDevice.serialNumber)&&r.lt(ns_.netcastDevice.serialNumber))return ns_.netcastDevice.serialNumber}return null}();g=null!=t?(_="31",h=t):(h=+new Date+~~(1e3*Math.random()),_="72",null)}}var r=t(21),o=t(17),s=t(50),a=t(48).gr,u=t(52).mr,c=t(46),l=t(29),f="undefined",d=o.D,p=o.Qt,h=null,_=null,g=null,v={PLATFORM:"netcast",httpGet:function(){return typeof Image!=f?s.apply(this,arguments):a.apply(this,arguments)},httpPost:u,Storage:c,IO:l,getCrossPublisherId:function(){return i(),g},getAppName:function(){return d},getAppVersion:function(){return d},getVisitorId:function(){return i(),h},getVisitorIdSuffix:function(){return _},getDeviceModel:function(){return typeof ns_!=f&&r.tn(ns_.netcastDevice)&&r.tn(ns_.netcastDevice.modelName)&&ns_.netcastDevice.modelName||d},getPlatformVersion:function(){return typeof ns_!=f&&r.tn(ns_.netcastDevice)&&r.pe(ns_.netcastDevice.version,d)||d},getPlatformName:function(){return"js"},getRuntimeName:function(){return typeof ns_!=f&&r.tn(ns_.netcastDevice)?"lg-ott"+r.pe(ns_.netcastDevice.platform,d):d},getRuntimeVersion:function(){if(typeof ns_!=f&&r.tn(ns_.netcastDevice)){if(r.tn(ns_.netcastDevice.version))return ns_.netcastDevice.version;if(r.tn(ns_.netcastDevice.hwVersion))return ns_.netcastDevice.hwVersion;if(r.tn(ns_.netcastDevice.swVersion))return ns_.netcastDevice.swVersion}return d},getDisplayResolution:function(){if(typeof ns_!=f&&r.tn(ns_.netcastDevice)&&r.tn(ns_.netcastDevice.osdResolution))switch(ns_.netcastDevice.osdResolution){case 0:return"640x480";case 1:return"720x576";case 2:return"1280x720";case 3:return"1920x1080";case 4:return"1366x768"}return p},getLanguage:function(){return typeof ns_!=f&&r.tn(ns_.netcastDevice)&&r.pe(ns_.netcastDevice.tvLanguage2,r.pe(window.navigator.language))||d},getPackageName:function(){return null},isConnectionAvailable:function(){return typeof ns_.netcastDevice===f||!!ns_.netcastDevice.net_isConnected},getConnectionType:function(){if(typeof ns_.netcastDevice!==f){if(0===ns_.netcastDevice.networkType)return"eth";if(1===ns_.netcastDevice.networkType)return"wifi"}return d},isCompatible:function(){return typeof ns_!=f&&typeof ns_.netcastDevice!=f&&typeof ns_.netcastDevice.version!=f&&typeof window!=f&&typeof window.navigator!=f},isConnectionSecure:function(){return typeof document!=f&&null!=document&&"s"===document.location.href.charAt(4)}};e.exports=v},{17:17,21:21,29:29,46:46,48:48,50:50,52:52}],38:[function(t,i,r){(function(e){function o(){null==h&&(h=+new Date+~~(1e3*Math.random()),_="72",g=null)}var s=t(21),a=t(17),u=t(52).mr,c=t(46),l=t(29),f="undefined",d=a.D,p=a.Qt,h=null,_=null,g=null,v={PLATFORM:"nodejs",httpGet:function(e,n){new function(e){var n=this,i=0;n.send=function(r){t("http").get(r,function(t){var r=t.statusCode;if((302==r||301==r)&&i<20&&t.headers&&t.headers.location)return i++,void n.send(t.headers.location);e(r)}).on("error",function(){e()})}}(n).send(e)},httpPost:u,Storage:c,IO:l,getCrossPublisherId:function(){return o(),g},getVisitorId:function(){return o(),h},getVisitorIdSuffix:function(){return _},getPlatformVersion:function(){var e=t("os");return[e.type(),e.platform(),e.release()].join(";")},getPlatformName:function(){return"js"},getRuntimeName:function(){return"nodejs"},getRuntimeVersion:function(){return typeof n===f||s.jt(n.version)?d:n.version},getDisplayResolution:function(){return p},isCompatible:function(){return typeof window===f&&typeof i!==f&&typeof r!==f&&typeof e!==f&&typeof n!==f&&s.tn(n.version)},isConnectionSecure:function(){return!1}};i.exports=v}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{17:17,21:21,29:29,46:46,52:52,undefined:void 0}],39:[function(t,e,n){var i=t(24),r=t(32),o=t(36),s=t(40),a=t(37),u=t(43),c=t(33),l=t(41),f=t(30),d=t(44),p=t(31),h=t(42),_=t(35),g=t(38),v=t(34),m=!1;o.autoDetect=function(){m||(m=!0,s.isCompatible()?i.extend(o,s):a.isCompatible()?i.extend(o,a):u.isCompatible()?i.extend(o,u):c.isCompatible()?i.extend(o,c):l.isCompatible()?i.extend(o,l):f.isCompatible()?i.extend(o,f):d.isCompatible()?i.extend(o,d):p.isCompatible()?i.extend(o,p):h.isCompatible()?i.extend(o,h):_.isCompatible()?i.extend(o,_):g.isCompatible()?i.extend(o,g):v.isCompatible()&&i.extend(o,v))},o.autoSelect=o.autoDetect,o.setPlatformAPI=function(t){switch(m=!0,t){case r.SmartTV:i.extend(o,s);break;case r.Netcast:i.extend(o,a);break;case r.Cordova:i.extend(o,c);break;case r.Trilithium:i.extend(o,l);break;case r.AppleTV:i.extend(o,f);break;case r.Chromecast:i.extend(o,p);break;case r.Xbox:i.extend(o,d);break;case r.webOS:i.extend(o,u);break;case r.tvOS:i.extend(o,h);break;case r.JSMAF:i.extend(o,_);break;case r.nodejs:i.extend(o,g);break;case r.html5:i.extend(o,v);break;case r.Skeleton:break;default:m=!1}}},{24:24,30:30,31:31,32:32,33:33,34:34,35:35,36:36,37:37,38:38,40:40,41:41,42:42,43:43,44:44}],40:[function(t,e,n){function i(){if(null==p){var t=function(){if("object"!=typeof sf||"object"!=typeof sf.core||"function"!=typeof sf.core.sefplugin)return null;var t=sf.core.sefplugin("NNAVI");if("function"!=typeof t.Open||"function"!=typeof t.Execute)return null;t.Open("Network","1.001","Network");var e=t.Execute("GetMAC","0");if(!r.jt(e))return e;if(e=t.Execute("GetMAC","1"),!r.jt(e))return e;var n=t.Execute("GetDeviceID");return r.jt(n)?null:n}();_=null!=t?(h="31",p=t):(p=+new Date+~~(1e3*Math.random()),h="72",null)}}var r=t(21),o=t(17),s=t(48).gr,a=t(52).mr,u=t(47),c=t(28),l="undefined",f=o.D,d=o.Qt,p=null,h=null,_=null,g={PLATFORM:"smarttv",httpGet:s,httpPost:a,Storage:u,IO:c,getCrossPublisherId:function(){return i(),_},getAppName:function(){return f},getAppVersion:function(){return typeof sf!=l&&r.tn(sf.env)&&r.tn(sf.env.getAppVersion)&&sf.env.getAppVersion()||f},getVisitorId:function(){return i(),p},getVisitorIdSuffix:function(){return h},getDeviceModel:function(){return typeof sf!=l&&r.tn(sf.core)&&r.tn(sf.core.getEnvValue)&&sf.core.getEnvValue("modelid")||f},getPlatformVersion:function(){return"2.0.0"},getPlatformName:function(){return"js"},getRuntimeName:function(){if(typeof sf!==l&&r.tn(sf.env)&&r.tn(sf.env.getProductType)&&r.tn(sf.env.PRODUCTTYPE_TV)&&r.tn(sf.env.PRODUCTTYPE_MONITOR)&&r.tn(sf.env.PRODUCTTYPE_BD)){var t=[];return t[sf.env.PRODUCTTYPE_TV]="samsung-smarttv-tv",t[sf.env.PRODUCTTYPE_MONITOR]="samsung-smarttv-monitor",t[sf.env.PRODUCTTYPE_BD]="samsung-smarttv-bd",t[sf.env.getProductType()]}},getRuntimeVersion:function(){return typeof sf!=l&&r.tn(sf.env)&&r.tn(sf.env.getFirmwareVer)&&sf.env.getFirmwareVer().version},getDisplayResolution:function(){if(typeof sf===l||!r.tn(sf.env)||!r.tn(sf.env.getScreenSize))return d;var t=sf.env.getScreenSize();return t.width+"x"+t.height},getLanguage:function(){if(typeof sf!==l&&r.tn(sf.env)&&r.tn(sf.env.getLanguageCode))return sf.env.getLanguageCode()},getPackageName:function(){return null},isConnectionAvailable:function(){return!0},isCompatible:function(){return typeof window!=l&&typeof window.navigator!=l&&typeof sf!=l&&typeof sf.env!=l},getConnectionType:function(){if("object"!=typeof sf||"object"!=typeof sf.core||"function"!=typeof sf.core.sefplugin)return f;var t=sf.core.sefplugin("NETWORK");if("function"!=typeof t.Open||"function"!=typeof t.Execute)return f;t.Open("Network","1.001","Network");var e=t.Execute("GetActiveType");return 0===e?"wired":1===e?"wireless":f},isConnectionSecure:function(){return typeof document!=l&&null!=document&&"s"===document.location.href.charAt(4)}};e.exports=g},{17:17,21:21,28:28,47:47,48:48,52:52}],41:[function(t,e,n){function i(){if(null==p){var t=r.lt(engine.stats.device.id)?engine.stats.device.id:r.lt(engine.stats.network.mac)?engine.stats.network.mac:null;_=null!=t?(h="31",p=t):(p=+new Date+~~(1e3*Math.random()),h="72",null)}}var r=t(21),o=t(17),s=t(51),a=t(52),u=t(46),c=t(29),l="undefined",f=o.D,d=o.Qt,p=null,h=null,_=null,g={PLATFORM:"trilithium",httpGet:s,httpPost:a,Storage:u,IO:c,getCrossPublisherId:function(){return i(),_},getAppName:function(){return r.lt(engine.stats.application.name)?engine.stats.application.name:f},getAppVersion:function(){return r.lt(engine.stats.application.version)?engine.stats.application.version:f},getVisitorId:function(){return i(),p},getVisitorIdSuffix:function(){return h},getDeviceModel:function(){return r.pe(engine.stats.device.platform,f)},getPlatformVersion:function(){return""},getPlatformName:function(){return"js"},getRuntimeName:function(){return"trilithium"},getRuntimeVersion:function(){return r.pe(engine.stats.device.version,f)},getDisplayResolution:function(){return typeof screen!=l&&typeof screen.height!=l&&typeof screen.width!=l?screen.height+"x"+screen.width:d},getLanguage:function(){return f},getPackageName:function(){return null},isConnectionAvailable:function(){return!0},isCompatible:function(){return typeof engine!=l&&typeof engine.stats!=l},isConnectionSecure:function(){return typeof document!=l&&null!=document&&"s"===document.location.href.charAt(4)}};e.exports=g},{17:17,21:21,29:29,46:46,51:51,52:52}],42:[function(t,e,n){function i(){null==p&&(h=r.jt(Device.vendorIdentifier)?(p=+new Date+~~(1e3*Math.random()),"72"):(p=Device.vendorIdentifier,"62"),_=p)}var r=t(21),o=t(17),s=t(48).gr,a=t(48)._r,u=t(46),c=t(27),l="undefined",f=o.D,d=o.Qt,p=null,h=null,_=null,g={PLATFORM:"tvos",httpGet:s,httpPost:a,Storage:u,IO:c,getCrossPublisherId:function(){return i(),_},getAppName:function(){return Device.appIdentifier},getAppVersion:function(){return Device.appVersion},getVisitorId:function(){return i(),p},getVisitorIdSuffix:function(){return h},getDeviceModel:function(){return Device.productType},getPlatformVersion:function(){return Device.systemVersion},getPlatformName:function(){return"js"},getRuntimeName:function(){return"tvos"},getRuntimeVersion:function(){return Device.systemVersion},getDisplayResolution:function(){return d},getLanguage:function(){return Settings.language},getPackageName:function(){return f},isConnectionAvailable:function(){return!0},isCompatible:function(){return typeof window===l&&typeof Device!==l&&"Apple TV"===Device.model},isConnectionSecure:function(){return!0}};e.exports=g},{17:17,21:21,27:27,46:46,48:48}],43:[function(t,e,n){var i,r,o,s=t(21),a=t(17),u=t(50),c=t(48)._r,l=t(46),f=t(27),d="undefined",p=a.D,h=a.Qt,_={PLATFORM:"webos",httpGet:u,httpPost:c,Storage:l,IO:f,onDataFetch:function(t,e){var n,s,a,u=3,c=function(){0==--u&&t()};n=c,webOS.service.request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["modelName","firmwareVersion","UHD","sdkVersion"]},onSuccess:function(t){t.returnValue&&(i=t),n()},onFailure:function(){n()}}),s=c,webOS.service.request("luna://com.webos.settingsservice",{method:"getSystemSettings",parameters:{category:"option"},onSuccess:function(t){t.returnValue&&(r=t),s()},onFailure:function(){s()}}),a=c,webOS.service.request("luna://com.webos.service.connectionmanager",{method:"getStatus",onSuccess:function(t){t.returnValue&&(o=t),a()},onFailure:function(){a()}})},getCrossPublisherId:function(){return typeof webOS!==d&&webOS.device&&webOS.device.serialNumber&&"Unknown"!=webOS.device.serialNumber?webOS.device.serialNumber:null},getAppName:function(){return p},getAppVersion:function(){return p},getVisitorId:function(){return+new Date+~~(1e3*Math.random())},getVisitorIdSuffix:function(){return"72"},getDeviceModel:function(){return i&&i.modelName?i.modelName:p},getPlatformVersion:function(){return i&&i.sdkVersion?i.sdkVersion:p},getPlatformName:function(){return"js"},getRuntimeName:function(){return"webOS"},getRuntimeVersion:function(){return typeof webOS!==d&&webOS.device?webOS.device.platformVersion:p},getDisplayResolution:function(){var t=0;typeof webOS!==d&&webOS.device?t=webOS.device.screenWidth:typeof window!=d&&window.screen&&(t=window.screen.availWidth);var e=0;return typeof webOS!==d&&typeof webOS.device!==d?e=webOS.device.screenHeight:typeof window!=d&&window.screen&&(e=window.screen.availHeight),0<t&&0<e?t+"x"+e:h},getLanguage:function(){return r&&r.locales&&(r.locales.UI||r.locales.TV)||p},getPackageName:function(){return p},isConnectionAvailable:function(){return!o||!o.isInternetConnectionAvailable||o.isInternetConnectionAvailable},isCompatible:function(){return typeof window!==d&&!s.jt(window.webOS)&&!s.jt(webOS.service)&&!s.jt(webOS.service.request)},getConnectionType:function(){if(o&&(o.wired||o.wifi)){if("connected"===o.wired.state&&"yes"===o.wired.onInternet)return"eth";if("connected"===o.wifi.state&&"yes"===o.wifi.onInternet)return"wifi"}return p},isConnectionSecure:function(){return typeof document!=d&&null!=document&&"s"===document.location.href.charAt(4)}};e.exports=_},{17:17,21:21,27:27,46:46,48:48,50:50}],44:[function(t,e,n){function i(){typeof Windows!=l&&Windows&&Windows.Xbox&&Windows.Xbox.ApplicationModel&&Windows.Xbox.ApplicationModel.Core&&Windows.Xbox.ApplicationModel.Core.CoreApplicationContext&&Windows.Xbox.ApplicationModel.Core.CoreApplicationContext.addEventListener("currentuserchanged",function(){v=!0}),r(),m=!0}function r(){var t=null;if(typeof Windows!=l&&Windows&&Windows.Xbox&&Windows.Xbox.ApplicationModel&&Windows.Xbox.ApplicationModel.Core&&Windows.Xbox.ApplicationModel.Core.CoreApplicationContext&&Windows.Xbox.ApplicationModel.Core.CoreApplicationContext.currentUser){var e=Windows.Xbox.ApplicationModel.Core.CoreApplicationContext.currentUser;null!=e&&!e.br&&e.Ir&&(t=Windows.Xbox.ApplicationModel.Core.CoreApplicationContext.currentUser.xboxUserId)}_=t}var o=t(17),s=t(53).wr,a=t(53).yr,u=t(46),c=t(27),l="undefined",f=o.D,d=o.Qt,p=null,h=null,_=null,g=!1,v=!1,m=!1,E={PLATFORM:"xbox",httpGet:s,httpPost:a,Storage:u,IO:c,getCrossPublisherId:function(){return m||i(),v&&r(),_},getAppName:function(){var t=f;return typeof Windows!=l&&Windows&&Windows.ApplicationModel&&Windows.ApplicationModel.Package&&Windows.ApplicationModel.Package.current&&Windows.ApplicationModel.Package.current.id&&Windows.ApplicationModel.Package.current.id.name&&(t=Windows.ApplicationModel.Package.current.id.name),t},getAppVersion:function(){var t=f;if(typeof Windows!=l&&Windows&&Windows.ApplicationModel&&Windows.ApplicationModel.Package&&Windows.ApplicationModel.Package.current&&Windows.ApplicationModel.Package.current.id&&Windows.ApplicationModel.Package.current.id.version){var e=Windows.ApplicationModel.Package.current.id.version;t=e.major+"."+e.minor+"."+e.build+"."+e.revision}return t},getVisitorId:function(){return g||function(){p=typeof Windows!=l&&Windows&&Windows.Xbox&&Windows.Xbox.System&&Windows.Xbox.System.Console&&Windows.Xbox.System.Console.applicationSpecificDeviceId?Windows.Xbox.System.Console.applicationSpecificDeviceId:this.getDeviceModel()+ +new Date+~~(1e3*Math.random()),h="72",g=!0}(),p},getVisitorIdSuffix:function(){return h},getDeviceModel:function(){return"xbox one"},getPlatformVersion:function(){var t=f;return typeof navigator!=l&&navigator&&navigator.userAgent&&navigator.userAgent.split(";").filter(function(t){return-1!=t.indexOf("Windows NT")}).forEach(function(e){t=e.substr(e.indexOf("Windows NT")+11,e.length-1)}),t},getPlatformName:function(){return"xbox"},getRuntimeName:function(){return"winjs"},getRuntimeVersion:function(){var t=f;return typeof Windows!=l&&Windows&&Windows.ApplicationModel&&Windows.ApplicationModel.Package&&Windows.ApplicationModel.Package.current&&Windows.ApplicationModel.Package.current.dependencies&&Windows.ApplicationModel.Package.current.dependencies.filter(function(t){return t&&t.id&&t.id.name&&-1!=t.id.name.indexOf("WinJS")&&t.id.version}).forEach(function(e){t=e.id.version.major+"."+e.id.version.minor+"."+e.id.version.build+"."+e.id.version.revision}),t},getDisplayResolution:function(){var t=d;if(typeof Windows!=l&&Windows&&Windows.Xbox&&Windows.Xbox.Graphics&&Windows.Xbox.Graphics.Display&&Windows.Xbox.Graphics.Display.DisplayConfiguration&&Windows.Xbox.Graphics.Display.DisplayConfiguration.getForCurrentView&&Windows.Xbox.Graphics.Display.DisplayConfiguration.getForCurrentView()&&Windows.Xbox.Graphics.Display.DisplayConfiguration.getForCurrentView().currentDisplayMode&&Windows.Xbox.Graphics.Display.DisplayConfiguration.getForCurrentView().currentDisplayMode.rawWidth&&Windows.Xbox.Graphics.Display.DisplayConfiguration.getForCurrentView().currentDisplayMode.rawHeight){var e=Windows.Xbox.Graphics.Display.DisplayConfiguration.getForCurrentView().currentDisplayMode;t=e.rawWidth+"x"+e.rawHeight}return t},getApplicationResolution:function(){var t=d;return typeof window!=l&&window.innerWidth&&window.innerHeight&&(t=window.innerWidth+"x"+window.innerHeight),t},getLanguage:function(){var t=f;return typeof Windows!=l&&Windows&&Windows.System&&Windows.System.UserProfile&&Windows.System.UserProfile.GlobalizationPreferences&&Windows.System.UserProfile.GlobalizationPreferences.languages&&(t=Windows.System.UserProfile.GlobalizationPreferences.languages.getAt(0)),t},getPackageName:function(){var t=f;return typeof Windows!=l&&Windows&&Windows.ApplicationModel&&Windows.ApplicationModel.Package&&Windows.ApplicationModel.Package.current&&Windows.ApplicationModel.Package.current.id&&Windows.ApplicationModel.Package.current.id.name&&(t=Windows.ApplicationModel.Package.current.id.name),t},isConnectionAvailable:function(){return!(typeof Windows!=l&&Windows&&Windows.Networking&&Windows.Networking.Connectivity&&Windows.Networking.Connectivity.NetworkInformation&&Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile&&Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile()&&Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile().getNetworkConnectivityLevel&&Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile().getNetworkConnectivityLevel())||4==Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile().getNetworkConnectivityLevel()},isCompatible:function(){return typeof WinJS!=l&&WinJS&&typeof Windows!=l&&Windows&&Windows.Xbox},setPlatformAPI:function(){},isCrossPublisherIdChanged:function(){return m||i(),v},getDeviceArchitecture:function(){var t="unknown";if(typeof Windows!=l&&Windows&&Windows.ApplicationModel&&Windows.ApplicationModel.Package&&Windows.ApplicationModel.Package.current&&Windows.ApplicationModel.Package.current.id&&Windows.ApplicationModel.Package.current.id.architecture)switch(Windows.ApplicationModel.Package.current.id.architecture){case 5:t="arm";break;case 11:t="neutral";break;case 9:t="x64";break;case 0:t="x86"}return t},getConnectionType:function(){var t=f;if(typeof Windows!=l&&Windows&&Windows.Networking&&Windows.Networking.Connectivity&&Windows.Networking.Connectivity.NetworkInformation&&Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile&&Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile()&&Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile().networkAdapter&&Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile().networkAdapter.ianaInterfaceType)switch(Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile().networkAdapter.ianaInterfaceType){case 6:t="eth";break;case 71:t="wifi"}return t},getDeviceJailBrokenFlag:function(){return f},isConnectionSecure:function(){return typeof document!=l&&null!=document&&"s"===document.location.href.charAt(4)}};e.exports=E},{17:17,27:27,46:46,53:53}],45:[function(t,e,n){var i=t(24),r="undefined",o="cs_";e.exports=function(){var t=typeof atv!=r&&typeof atv.localStorage!=r&&atv.localStorage||null;i.extend(this,{get:function(e){return t&&e&&t.getItem(o+e)||null},set:function(e,n){t&&e&&(t[o+e]=n)},has:function(e){return t&&e&&null!=t.getItem(o+e)||!1},remove:function(e){t&&e&&t.removeItem(o+e)},clear:function(){}})}},{24:24}],46:[function(t,e,n){var i=t(24),r="cs_";e.exports=function(){var t="undefined"!=typeof localStorage?localStorage:null;i.extend(this,{get:function(e){try{return t&&"function"==typeof t.getItem?t.getItem(r+e):t?t[r+e]:t}catch(e){}},set:function(e,n){try{t&&"function"==typeof t.setItem?t.setItem(r+e,n):t&&(t[r+e]=n)}catch(e){}},has:function(e){try{return t&&"function"==typeof t.getItem?t.getItem(r+e):t?t[r+e]:t}catch(e){}},remove:function(e){try{t&&"function"==typeof t.removeItem?t.removeItem(r+e):t&&delete t[r+e]}catch(e){}},clear:function(){try{for(var e=0;t&&e<t.length;++e){var n=t.key(e);n.substr(0,r.length)===r&&("function"==typeof t.removeItem?t.removeItem(n):delete t[n])}}catch(e){}}})}},{24:24}],47:[function(t,e,n){var i,r,o=t(24),s="cs_";"undefined"!=typeof sf?r=i=function(t,e){sf.core.localData(t,e)}:(r=function(t,e){$.sf.setData(t,void 0===e?null:e)},i=function(t){return $.sf.getData(t)}),e.exports=function(){o.extend(this,{get:function(t){return i(s+t)},set:function(t,e){r(s+t,e)},has:function(t){return void 0!==i(s+t)},remove:function(t){r(s+t,null)}})}},{24:24}],48:[function(t,e,n){var i="undefined";n.gr=function(t,e){if(typeof XMLHttpRequest!=i){var n=new XMLHttpRequest;n.open("GET",t,!0),n.onreadystatechange=function(){4===n.readyState&&(e&&e(n.status),n=null)},n.send()}else"function"==typeof setTimeout?e&&setTimeout(e,0):e&&e()},n._r=function(t,e,n){if(typeof XMLHttpRequest!=i){var r=new XMLHttpRequest;r.open("POST",t,!0),r.onreadystatechange=function(){4===r.readyState&&(n&&n(r.status),r=null)},r.send(e)}else"function"==typeof setTimeout?n&&setTimeout(n,0):n&&n()}},{}],49:[function(t,e,n){var i="undefined";n.dr=function(t,e){if(typeof atv!=i&&typeof XMLHttpRequest!=i){var n=new XMLHttpRequest;n.open("GET",t,!0),n.onreadystatechange=function(){4==n.readyState&&(e&&e(n.status),n=null)},n.send()}else typeof atv!=i&&"function"==typeof atv.setTimeout?e&&atv.setTimeout(e,0):e&&e()},n.hr=function(t,e,n){if(typeof atv!=i&&typeof XMLHttpRequest!=i){var r=new XMLHttpRequest;r.open("POST",t,!0),r.onreadystatechange=function(){4===r.readyState&&(n&&n(r.status),r=null)},r.send(e)}else typeof atv!=i&&"function"==typeof atv.setTimeout?n&&atv.setTimeout(n,0):n&&n()}},{}],50:[function(t,e,n){e.exports=function(t,e){if("undefined"!=typeof Image){var n=new Image;n.onload=function(){e&&e(200),n=null},n.onerror=function(){e&&e(),n=null},n.src=t}else"function"==typeof setTimeout?e&&setTimeout(e,0):e&&e()}},{}],51:[function(t,e,n){e.exports=function(t,e){"undefined"!=typeof engine?(engine.createHttpClient().createRequest("GET",t,null).start(),e&&setTimeout(e,0)):"function"==typeof setTimeout?e&&setTimeout(e,0):e&&e()}},{}],52:[function(t,e,n){e.exports.Sr=function(t,e){"function"==typeof setTimeout?e&&setTimeout(function(){e(200)},0):e&&e(200)},e.exports.mr=function(t,e,n){"function"==typeof setTimeout?n&&setTimeout(function(){n(200)},0):n&&n(200)}},{}],53:[function(t,e,n){var i="undefined";n.wr=function(t,e){typeof WinJS!=i&&typeof WinJS.xhr!=i?WinJS.xhr({url:t}).then(function(t){e&&e(t.status)},function(){e&&e()}):"function"==typeof setTimeout?e&&setTimeout(e,0):e&&e()},n.yr=function(t,e,n){typeof WinJS!=i&&typeof WinJS.xhr!=i?WinJS.xhr({type:"post",url:t,data:e,headers:{"Content-type":"application/xml"}}).then(function(t){n&&n(t.status)},function(){n&&n()}):"function"==typeof setTimeout?n&&setTimeout(n,0):n&&n()}},{}],54:[function(t,e,n){function i(){var t,e,n,i,c,l,f,d,p,h,_,g,v,m,E,y,b,A,S,I,T,C,P,O,w,N,R,L,D,B,M,x,U,k,V,G,F,j,H,W,Y,K,z,q,$,Q,X,Z,J,tt,et,nt,it,rt,ot,st,at=this,ut=500;r.extend(at,{Pr:function(){return t},Ar:function(e){t=e},setPlaybackIntervalMergeTolerance:function(t){ut=t},getPlaybackIntervalMergeTolerance:function(){return ut},Cr:function(t,e){i[t]=e},kr:function(t){return i[t]},Er:function(t){return null!=i[t]},setLabels:function(t){t&&r.extend(c,t)},getLabels:function(){return c},setLabel:function(t,e){c[t]=e},getLabel:function(t){return c[t]},dt:function(t){return t in c},Tr:function(){return parseInt(at.kr("ns_st_cn"))},Nr:function(t){at.Cr("ns_st_cn",t+"")},Lr:function(){return at.dt("ns_st_pn")?parseInt(at.getLabel("ns_st_pn")):parseInt(at.kr("ns_st_pn"))},Dr:function(t,e,o){var c=t,l=parseInt(c.ns_st_po),f=s.jt(c.ns_st_ap)?T:parseInt(c.ns_st_ap);c.ns_st_dap=o&&st<0&&0<g-l?(c.ns_st_ap=f+g-l,f+g-l-C):o&&0<st&&0<l-g?(c.ns_st_ap=f+l-g,f+l-g-C):(c.ns_st_ap=f)-C;var d=s.jt(c.ns_st_pt)?at.Rr():parseInt(c.ns_st_pt);c.ns_st_pt=d+(isNaN(p)?0:e-p)+"",c.ns_st_dpt=d+(isNaN(p)?0:e-p)-h+"",c.ns_st_ipt=d+(isNaN(p)?0:e-p)-_+"";var v=s.jt(c.ns_st_et)?at.Mr():parseInt(c.ns_st_et);c.ns_st_et=v+(isNaN(E)?0:e-E)+"",c.ns_st_det=v+(isNaN(E)?0:e-E)-y+"";var m=s.jt(c.ns_st_bt)?at.Or():parseInt(c.ns_st_bt);c.ns_st_bt=m+"",c.ns_st_dbt=m+(isNaN(U)?0:e-U)-k+"";var b=P,I=O;o&&(b=a.Wr(u(P),st<0?l:w,st<0?w:l,ut),I=a.Wr(u(O),st<0?l:w,st<0?w:l,ut));for(var x,V=0,F=0,j=0;j<b.length;j++)V+=x=Math.abs(b[j].end-b[j].start),F<x&&(F=x);var H=0,Y=0;for(j=0;j<I.length;j++)H+=x=Math.abs(I[j].end-I[j].start),Y<x&&(Y=x);c.ns_st_upc=V+"",c.ns_st_dupc=V-N+"",c.ns_st_iupc=V-R+"",c.ns_st_iupc=R<V?V-R+"":"0",c.ns_st_lpc=F+"",c.ns_st_dlpc=F-L+"",c.ns_st_upa=H+"",c.ns_st_dupa=H-D+"",c.ns_st_iupa=B<H?H-B+"":"0",c.ns_st_lpa=Y+"",c.ns_st_dlpa=Y-M+"";var K=s.jt(c.ns_st_pc)?at.Vr():parseInt(c.ns_st_pc);c.ns_st_pc=K+"",c.ns_st_dpc=K-X+"";var z=s.jt(c.ns_st_skc)?at.xr():parseInt(c.ns_st_skc);c.ns_st_skc=z+"",c.ns_st_dskc=z-J+"";var $=s.jt(c.ns_st_bc)?at.Ur():parseInt(c.ns_st_bc);c.ns_st_bc=$+"",c.ns_st_dbc=$-G+"";var Q=s.jt(c.ns_st_skt)?at.Br():parseInt(c.ns_st_skt);c.ns_st_skt=Q+"",c.ns_st_dskt=Q-W+"";var Z=s.jt(c.ns_st_ska)?at.Fr():parseInt(c.ns_st_ska);c.ns_st_ska=Z+"",c.ns_st_dska=Z-q+"",n&&(c.ns_st_spc=tt+"",c.ns_st_apc=et+"",c.ns_st_sq=nt+"",c.ns_st_asq=it+""),c.ns_st_sc=n||0!=rt?rt+"":"1",c.ns_st_rt=st+"",c.ns_st_ldw=A,c.ns_st_ldo=S,r.extend(c,i)},jr:function(t){h=parseInt(t.ns_st_pt),C=parseInt(t.ns_st_ap),y=parseInt(t.ns_st_et),k=parseInt(t.ns_st_bt),N=parseInt(t.ns_st_upc),L=parseInt(t.ns_st_lpc),D=parseInt(t.ns_st_upa),M=parseInt(t.ns_st_lpa),X=parseInt(t.ns_st_pc),J=parseInt(t.ns_st_skc),G=parseInt(t.ns_st_bc),W=parseInt(t.ns_st_skt),q=parseInt(t.ns_st_ska),at.Gr(0)},Kr:function(t){_=parseInt(t.ns_st_pt),R=parseInt(t.ns_st_upc),B=parseInt(t.ns_st_upa)},qr:function(){return at.kr("ns_st_vt")},Hr:function(t){at.Cr("ns_st_vt",t+"")},Yr:function(){return at.kr("ns_st_at")},Jr:function(t){at.Cr("ns_st_at",t+"")},zr:function(){return at.kr("ns_st_tt")},Qr:function(t){at.Cr("ns_st_tt",t+"")},Xr:function(){return at.kr("ns_st_cdn")},Zr:function(t){at.Cr("ns_st_cdn",t+"")},$r:function(){return P},no:function(t){P=t},to:function(){return O},eo:function(){Q++},io:function(){Z++},ro:function(){nt++},oo:function(){return nt},Or:function(){return x},uo:function(t){x=t},so:function(t){if(!isNaN(U)){var e=at.Or();e+=t-U,at.uo(e),U=NaN}},ao:function(t){w=parseInt(t)},fo:function(){return w},co:function(t){isNaN(w)||isNaN(t)||(P=a.Wr(P,st<0?t:w,st<0?w:t,ut),O=a.Wr(O,st<0?t:w,st<0?w:t,ut),w=NaN)},Mr:function(){return m},lo:function(t){m=t},po:function(t){if(!isNaN(E)){var e=at.Mr();e+=t-E,at.lo(e),E=NaN}},vo:function(){return E},do:function(t){E=t},ho:function(t){isNaN(p)||(d+=t-p,p=NaN)},Rr:function(){return d},_o:function(t){var e=g+I-S;return!f&&isNaN(p)||(e+=Math.floor((t-v)*st/100)),e},mo:function(t,e){return f?g-t+Math.floor((e-v)*st/100)+I:0},wo:function(t,e){g=t,v=e},yo:function(){return p},bo:function(t){p=t},Io:function(t){h=t},So:function(){return U},Po:function(t){U=t},Vr:function(){return Q},Ao:function(t){Q=t},xr:function(){return Z},Co:function(t){Z=t},ko:function(t){F=t},Eo:function(){return F},To:function(t){K=t},No:function(){return K},Lo:function(t){e=t},Do:function(){return e},Ro:function(t){n=t},Mo:function(){return n},Oo:function(t){j=t},Wo:function(){return j},Vo:function(t){if(!isNaN(j)){var e=at.Br();e+=t-j,at.xo(e),j=NaN}},Br:function(){return H},xo:function(t){H=t},Uo:function(t){$=t},Bo:function(){return $},Fo:function(t){Y=t},jo:function(){return Y},Go:function(t){z=t},Fr:function(){return z},Ko:function(t){var e,n=at.Fr();n+=Math.abs(t-Y),at.Go(n),Y==t?e=0:t<Y?e=-1:Y<t&&(e=1),at.Gr(e),Y=0},qo:function(){return parseInt(at.kr("ns_st_skd"))},Gr:function(t){at.Cr("ns_st_skd",t+"")},Ho:function(){O=[],J=Z=q=z=W=H=y=m=M=B=D=nt=X=Q=G=V=k=x=_=h=d=C=T=0},Yo:function(){tt++},Jo:function(){rt++},zo:function(){et++},Qo:function(){return N},Xo:function(t){N=t},Zo:function(){return R},$o:function(t){R=t},nu:function(t){L=t},tu:function(){return L},eu:function(){O=[],M=B=D=0},iu:function(t){tt=t},ru:function(t){rt=t},ou:function(t){et=t},uu:function(t){b=t},su:function(){return tt},au:function(){return rt},fu:function(){return et},cu:function(){return b},Ur:function(){return V},lu:function(){V++},pu:function(){return k},vu:function(t){it=t},du:function(){it++},hu:function(){return it},_u:function(){return ot},gu:function(t){ot=t},mu:function(t){l=!!t},wu:function(){return l},yu:function(){return st},bu:function(t){st=t},Iu:function(t){st<0&&0<g-t?T+=g-t:0<st&&0<t-g&&(T+=t-g)},Su:function(t){A=t},Pu:function(){return A},Au:function(t){S=t},Cu:function(){return S},ku:function(t){I=t},Eu:function(t){f=t}}),(i={}).ns_st_cl="0",i.ns_st_pn="1",i.ns_st_tp="0",i.ns_st_cn="1",i.ns_st_skd="0",i.ns_st_ci="0",i.c3="*null",i.c4="*null",i.c6="*null",i.ns_st_st="*null",i.ns_st_pu="*null",i.ns_st_pr="*null",i.ns_st_ep="*null",i.ns_st_sn="*null",i.ns_st_en="*null",i.ns_st_ct="*null",e=n=!(c={}),t=o.D,f=!(l=!0),P=[],j=U=w=E=p=NaN,rt=it=nt=et=tt=J=Z=X=Q=q=z=W=H=$=Y=G=V=k=x=M=B=D=L=R=N=C=T=I=S=A=_=y=b=m=h=g=d=0,ot=K=F=!(O=[]),st=100}var r=t(24),o=t(17),s=t(21),a=t(68),u=t(23);i.Tu=function(t,e,n){for(var i=t.getLabels(),r={},o=0;n&&o<n.length;++o)i.hasOwnProperty(n[o])&&(r[n[o]]=i[n[o]]);e.setLabels(r),e.setPlaybackIntervalMergeTolerance(t.getPlaybackIntervalMergeTolerance())},e.exports=i},{17:17,21:21,23:23,24:24,68:68}],55:[function(t,e,n){e.exports={PAGE_NAME_LABEL:"name",HASH_LABELS:["ns_st_st","ns_st_ci","ns_st_pr","ns_st_sn","ns_st_en","ns_st_ep","ns_st_ty","ns_st_ct","ns_st_li","ns_st_ad","ns_st_bn","ns_st_tb","ns_st_an","ns_st_ta","ns_st_pu","c3","c4","c6"]}},{}],56:[function(t,e,n){var i=t(73),r=t(74),o=t(76),s=t(77),a=t(69),u=t(71),c=t(72),l=t(70),f=t(75),d=t(78),p=t(79),h=t(80),_=t(81),g=t(55),v=t(68),m=t(65),E=t(20),y=t(24),b=t(19),A=t(82),S=t(62),I=t(63),T=t(58).Nu,C=t(58).Lu,P=t(58).Du,O=t(61),w=t(60),N=t(59),R=t(18),L=t(66),D=t(17),B=t(2),M="undefined",x="6.2.3.180328";e.exports=function(t){function e(t){var e=V.Mu().Ru();if(e==T.IDLE||e==T.PLAYBACK_NOT_STARTED||e==T.BUFFERING_BEFORE_PLAYBACK||e==T.SEEKING_BEFORE_PLAYBACK){if(t==C.PLAY)return!0}else if(e==T.PLAYING){if(t==C.END||t==C.AD_SKIP||t==C.SEEK_START||t==C.PAUSE)return!0}else if(e==T.PAUSED||e==T.BUFFERING_DURING_PAUSE||e==T.SEEKING_DURING_PLAYBACK||e==T.SEEKING_DURING_BUFFERING||e==T.SEEKING_DURING_PAUSE){if(t==C.END||t==C.AD_SKIP||t==C.PLAY)return!0}else if(e==T.BUFFERING_DURING_PLAYBACK){if(t==C.PAUSE_ON_BUFFERING||t==C.END||t==C.AD_SKIP||t==C.SEEK_START||t==C.PAUSE||t==C.PLAY)return!0}else if(e==T.BUFFERING_DURING_SEEKING){if(t==C.END||t==C.AD_SKIP||t==C.PAUSE||t==C.PLAY)return!0}else if(e==T.PAUSED_DURING_BUFFERING&&(t==C.END||t==C.AD_SKIP||t==C.BUFFER_STOP||t==C.PLAY))return!0;return!1}function n(){Et||(Et=!0,A.Ou(U))}function U(t){ft=t,yt=!0}function k(){var t={},e=v.Wu(t);dt.Vu(C.END,e,t)}var V,G,F,j,H,W,Y,K,z,q,$,Q,X,Z,J,tt,et,nt,it,rt,ot,st,at,ut,ct,lt,ft,dt=this,pt={},ht=500,_t=500,gt={},vt=!1,mt=!0,Et=!1,yt=!1;y.extend(dt,{getConfiguration:function(){return t||{}},Dr:function(t,e,n){var i=V.getPlaybackSession(),r=i.getAsset(),o=!1;if(t==C.HEARTBEAT){var s=isNaN(nt)?et:nt;((nt=n)<s||yt)&&(yt=!(o=!0),n<s?(i.xu("1"),V.Uu().$t("System clock jump detected","to the far past")):ft?(i.xu("3"),V.Uu().$t("System clock jump detected","to the future")):(i.xu("2"),V.Uu().$t("System clock jump detected","to the near past")),n=s)}var a={};if(vt&&(a.c2=ct),typeof document!=M){var u=document;a.c7=u.URL,a.c8=u.title,a.c9=u.referrer}a.ns_ts=+new Date+"",a.ns_st_ev=C.toString(t),a.ns_st_mp="js_api",a.ns_st_mv=x,a.ns_st_ub="0",a.ns_st_br="0",a.ns_st_pn="1",a.ns_st_tp="0",a.ns_st_it=P.toString(P.Bu),a.ns_st_sv=x,a.ns_st_smv="5.10",a.ns_type="hidden",a.ns_st_ec=V.ju().Fu()+"",a.ns_st_ki=V.S().Gu()+"",e.ns_st_po?a.ns_st_po=e.ns_st_po+"":r.wu()?a.ns_st_po=r._o(n)+"":a.ns_st_po=lt+"",lt=parseInt(a.ns_st_po),i.Dr(a,n),i.getAsset().Dr(a,n,t==C.HEARTBEAT);var c={};return y.extend(c,gt),y.extend(c,i.getLabels()),y.extend(c,i.getAsset().getLabels()),y.extend(c,e),o&&(r.wo(lt,nt),i.bo(nt-parseInt(a.ns_st_dpt)),r.bo(nt-parseInt(a.ns_st_dpt)),r.do(nt-parseInt(a.ns_st_det))),{Wt:t,Ut:a,Ku:c}},Vu:function(i,r,o,s){dt.qu();var a=V.Mu().Ru(),u=V.Mu().Hu(i);if(null!=u&&u!=a)if(!dt.isThrottlingEnabled()||a!=T.PLAYING&&a!=T.PAUSED||u!=T.PLAYING&&u!=T.PAUSED||s){var c,l;t.systemClockJumpDetection&&(u==T.IDLE?(A.Yu(U),Et=!1):a==T.IDLE&&n()),mt&&v.Ju(a)&&!v.Ju(u)?S.zu(k):mt&&!v.Ju(a)&&v.Ju(u)&&S.Qu(k);var f=V.getPlaybackSession(),d=f.getAsset(),p=isNaN(nt)?et:nt,h=!1;((nt=r)<p||yt)&&(yt=!(h=!0),r<p?(f.xu("1"),V.Uu().$t("System clock jump detected","to the far past")):ft?(f.xu("3"),V.Uu().$t("System clock jump detected","to the future")):(f.xu("2"),V.Uu().$t("System clock jump detected","to the near past")),r=p),o.ns_st_po?V.Mu().Ru()==T.IDLE?d.Au(d.Pu()-parseInt(o.ns_st_po)):d.Au(d.mo(parseInt(o.ns_st_po),r)):d.wu()?V.Mu().Ru()==T.IDLE?o.ns_st_po=d.Pu()-d.Cu()+"":o.ns_st_po=d._o(r)+"":o.ns_st_po=lt+"";var _,g,m,E,y=parseInt(o.ns_st_po);lt=y,_=i,g=r,m=o,E=V.Mu().Ru(),_==C.AD_SKIP&&!m.hasOwnProperty("ns_st_ui")&&e(_)?m.ns_st_ui="skip":_==C.SEEK_START&&!m.hasOwnProperty("ns_st_ui")&&e(_)&&(m.ns_st_ui="seek"),E==T.IDLE?_==C.BUFFER?G.Xu(g,m):_==C.SEEK_START?G.Zu(g,m):_==C.PLAY&&G.$u(g,m):E==T.PLAYBACK_NOT_STARTED?_==C.END||_==C.AD_SKIP?j.ns(g,m):_==C.SEEK_START?j.Zu(g,m):_==C.PLAY?j.$u(g,m):_==C.BUFFER&&j.Xu(g,m):E==T.PLAYING?_==C.END||_==C.AD_SKIP?H.ns(g,m):_==C.BUFFER?H.Xu(g,m):_==C.SEEK_START?H.Zu(g,m):_==C.PAUSE&&H.ts(g,m):E==T.PAUSED?_==C.END||_==C.AD_SKIP?F.ns(g,m):_==C.PLAY?F.$u(g,m):_==C.BUFFER?Z.es(g,m):_==C.SEEK_START&&Z.rs(g,m):E==T.BUFFERING_BEFORE_PLAYBACK?_==C.END||_==C.AD_SKIP?W.ns(g,m):_==C.BUFFER_STOP?W.os(g,m):_==C.SEEK_START?W.Zu(g,m):_==C.PAUSE?W.ts(g,m):_==C.PLAY&&W.$u(g,m):E==T.BUFFERING_DURING_PLAYBACK?_==C.PAUSE_ON_BUFFERING?Y.us(g,m):_==C.BUFFER_STOP?Z.ss(g,m):_==C.END||_==C.AD_SKIP?Y.ns(g,m):_==C.SEEK_START?Y.Zu(g,m):_==C.PAUSE?Y.ts(g,m):_==C.PLAY&&Z.ss(g,m):E==T.BUFFERING_DURING_SEEKING?_==C.END||_==C.AD_SKIP?K.ns(g,m):_==C.PAUSE?K.ts(g,m):_==C.PLAY?K.$u(g,m):_==C.BUFFER_STOP&&Z.as(g,m):E==T.BUFFERING_DURING_PAUSE?_==C.END||_==C.AD_SKIP?z.fs(g,m):_==C.PAUSE?z.ts(g,m):_==C.PLAY?z.$u(g,m):_==C.SEEK_START?Z.rs(g,m):_==C.BUFFER_STOP&&Z.as(g,m):E==T.SEEKING_BEFORE_PLAYBACK?_==C.END||_==C.AD_SKIP?$.ns(g,m):_==C.PAUSE?$.ts(g,m):_==C.PLAY?$.$u(g,m):_==C.BUFFER&&Z.es(g,m):E==T.SEEKING_DURING_PLAYBACK?_==C.END||_==C.AD_SKIP?X.ns(g,m):_==C.PLAY?X.$u(g,m):_==C.BUFFER?Z.es(g,m):_==C.PAUSE&&Z.cs(g,m):E==T.SEEKING_DURING_BUFFERING?_==C.PAUSE?Q.ts(g,m):_==C.BUFFER?Z.es(g,m):_==C.PLAY?Z.ls(g,m):_==C.END||_==C.AD_SKIP?Z.ps(g,m):_==C.BUFFER_STOP&&Z.vs(g,m):E==T.PAUSED_DURING_BUFFERING?_==C.END||_==C.AD_SKIP?q.ns(g,m):_==C.BUFFER_STOP?q.ds(g,m):_==C.SEEK_START?q.Zu(g,m):_==C.PAUSE?q.ts(g,m):_==C.PLAY&&q.ds(g,m):E==T.SEEKING_DURING_PAUSE&&(_==C.BUFFER?Z.es(g,m):_==C.PLAY?Z.ls(g,m):_==C.PAUSE?Z.cs(g,m):_==C.END||_==C.AD_SKIP?Z.ps(g,m):_==C.BUFFER_STOP&&Z.vs(g,m)),e(_)&&V.getPlaybackSession().hs(!0),d.wo(y,r),d.ku(d.Cu());var b=0;isNaN(V.Mu()._s())||(b=r-V.Mu()._s()),V.Mu().Vu(i,r),h&&(d.wo(y,nt),u!=T.IDLE&&u!=T.PLAYBACK_NOT_STARTED&&u!=T.SEEKING_BEFORE_PLAYBACK&&u!=T.BUFFERING_BEFORE_PLAYBACK&&d.do(nt),u!=T.BUFFERING_BEFORE_PLAYBACK&&u!=T.BUFFERING_DURING_PAUSE&&u!=T.BUFFERING_DURING_PLAYBACK&&u!=T.BUFFERING_DURING_SEEKING&&u!=T.PAUSED_DURING_BUFFERING||(f.Po(nt),d.Po(nt)),u==T.PLAYING&&(f.bo(nt),d.bo(nt)),u!=T.SEEKING_BEFORE_PLAYBACK&&u!=T.SEEKING_DURING_BUFFERING&&u!=T.SEEKING_DURING_PAUSE&&u!=T.SEEKING_DURING_PLAYBACK&&u!=T.BUFFERING_DURING_SEEKING||d.Oo(nt)),V.Uu().log("Transition from",v.gs(a),"to",v.gs(u),"due to event:",C.toString(i));for(var I=0,P=at.length;I<P;I++)at[I](a,u,o,b)}else{V.Uu().$t("Throttled event:",C.toString(i),"during state",v.gs(a),o,dt.getThrottlingDelay(),"ms");var O=(c=i,l=o,function(){dt.Vu(c,r,l,!0)});st=dt.getPlatformAPI().setTimeout(O,dt.getThrottlingDelay())}else V.Uu().$t("Ignored event:",C.toString(i),"during state",v.gs(a),o)},ms:function(t,e,n){var i=V.Mu().Ru();if(t!=C.LOAD&&t!=C.ENGAGE||i==T.IDLE){t==C.ERROR&&null==n.ns_st_er&&(n.ns_st_er=D.D),t==C.TRANSFER&&null==n.ns_st_rp&&(n.ns_st_rp=D.D);var r,o,s,a,u=!0,c=!1;switch(t){case C.BIT_RATE:r="ns_st_br",o="ns_st_pbr";break;case C.PLAYBACK_RATE:r="ns_st_rt",o="ns_st_prt";break;case C.VOLUME:r="ns_st_vo",o="ns_st_pvo";break;case C.WINDOW_STATE:r="ns_st_ws",o="ns_st_pws";break;case C.AUDIO:r="ns_st_at",o="ns_st_pat";break;case C.VIDEO:r="ns_st_vt",o="ns_st_pvt";break;case C.SUBS:r="ns_st_tt",o="ns_st_ptt";break;case C.CDN:r="ns_st_cdn",o="ns_st_pcdn";break;default:u=!1}var l=V.getPlaybackSession(),f=l.getAsset();if(u&&r in n)switch(a=n[r],t){case C.BIT_RATE:case C.VOLUME:case C.WINDOW_STATE:r in gt&&(s=gt[r],c=a==(n[o]=s)+""),gt[r]=n[r];break;case C.AUDIO:case C.VIDEO:case C.SUBS:case C.CDN:f.Er(r)&&(s=f.kr(r),c=a==(n[o]=s)+""),f.Cr(r,n[r]);break;case C.PLAYBACK_RATE:s=f.yu(),n[o]=s+""}if(u&&i!=T.PLAYING&&i!=T.BUFFERING_DURING_PLAYBACK||u&&c)return t==C.PLAYBACK_RATE&&f.bu(parseInt(n.ns_st_rt)),void V.Uu().$t("No measurement send for the pseudo-event:",C.toString(t),"during state",v.gs(i),n);var d=isNaN(nt)?et:nt,p=!1;((nt=e)<d||yt)&&(yt=!(p=!0),e<d?(l.xu("1"),V.Uu().$t("System clock jump detected","to the far past")):ft?(l.xu("3"),V.Uu().$t("System clock jump detected","to the future")):(l.xu("2"),V.Uu().$t("System clock jump detected","to the near past")),e=d),n.ns_st_po?f.Au(f.mo(parseInt(n.ns_st_po),e)):f.wu()?n.ns_st_po=f._o(e)+"":n.ns_st_po=lt+"";var h=parseInt(n.ns_st_po);lt=h,V.getPlaybackSession().getAsset().wo(h,e),f.ku(f.Cu()),i!=T.IDLE&&i!=T.PLAYBACK_NOT_STARTED&&i!=T.SEEKING_BEFORE_PLAYBACK&&i!=T.BUFFERING_BEFORE_PLAYBACK&&(f.po(e),f.do(e)),i==T.PLAYING&&(l.ho(e),l.bo(e),f.ho(e),f.bo(e),f.Iu(h),f.co(parseInt(n.ns_st_po)),f.ao(parseInt(n.ns_st_po))),i!=T.BUFFERING_BEFORE_PLAYBACK&&i!=T.BUFFERING_DURING_PAUSE&&i!=T.BUFFERING_DURING_PLAYBACK&&i!=T.BUFFERING_DURING_SEEKING||(l.so(e),l.Po(e),f.so(e),f.Po(e));var _=dt.Dr(t,n,e);f.jr(_.Ut),f.Kr(_.Ut),V.ju().Vu(_),t==C.PLAYBACK_RATE&&f.bu(parseInt(n.ns_st_rt)),p&&(f.wo(h,nt),i==T.PLAYING&&(l.bo(nt),f.bo(nt)),i!=T.IDLE&&i!=T.PLAYBACK_NOT_STARTED&&i!=T.SEEKING_BEFORE_PLAYBACK&&i!=T.BUFFERING_BEFORE_PLAYBACK&&f.do(nt),i!=T.BUFFERING_BEFORE_PLAYBACK&&i!=T.BUFFERING_DURING_PAUSE&&i!=T.BUFFERING_DURING_PLAYBACK&&i!=T.BUFFERING_DURING_SEEKING&&i!=T.PAUSED_DURING_BUFFERING||(l.Po(nt),f.Po(nt)),i!=T.SEEKING_BEFORE_PLAYBACK&&i!=T.SEEKING_DURING_BUFFERING&&i!=T.SEEKING_DURING_PAUSE&&i!=T.SEEKING_DURING_PLAYBACK&&i!=T.BUFFERING_DURING_SEEKING||f.Oo(nt))}else V.Uu().$t("Ignored pseudo-event:",C.toString(t),"during state",v.gs(i),n)},getState:function(){return V.Mu().Ru()},addListener:function(t){at.push(t)},removeListener:function(t){at.splice(b.indexOf(t,at),1)},getLabel:function(t){return gt[t]},getLabels:function(){return gt},setLabel:function(t,e){null==e?delete gt[t]:gt[t]=e},setLabels:function(t){for(var e in t)t.hasOwnProperty(e)&&dt.setLabel(e,t[e])},getPlatformAPI:function(){return V.ws().getPlatformAPI()},ys:function(){return pt},isProperlyInitialized:function(){var t=V.ws().Wn(),e=V.ws().g(),n=V.ws().getPixelURL();return t&&n&&e},setThrottlingDelay:function(t){_t=t},getThrottlingDelay:function(){return _t},isThrottlingEnabled:function(){return ot},setThrottlingEnabled:function(t){ot=t},bs:function(){return J},Is:function(t){J=t},getLoadTimeOffset:function(){return tt},setLoadTimeOffset:function(t){tt=t},Ss:function(){return et},setPauseOnBufferingInterval:function(t){ht=t},getPauseOnBufferingInterval:function(){return ht},isPauseOnBufferingEnabled:function(){return it},setPauseOnBufferingEnabled:function(t){it=t},setExitEndEventEnabled:function(t){if(mt!=t){var e=V.Mu().Ru();t||v.Ju(e)?t&&!v.Ju(e)&&S.zu(k):S.Qu(k)}mt=t},isExitEndEventEnabled:function(){return mt},Ps:function(t,e){dt.As(),rt=dt.getPlatformAPI().setTimeout(function(){var t={},n=v.Wu(t),i=parseInt(e.ns_st_po);t.ns_st_po=i+"",dt.Vu(C.PAUSE_ON_BUFFERING,n,t)},ht)},As:function(){null!=rt&&(dt.getPlatformAPI().clearTimeout(rt),rt=null)},qu:function(){st&&(dt.getPlatformAPI().clearTimeout(st),st=null)},setLiveEndpointURL:function(t){if(null==t||0==t.length)return null;var e=decodeURIComponent||unescape,n=t.indexOf("?");if(0<=n){if(n<t.length-1){for(var i=t.substring(n+1).split("&"),r=0,o=i.length;r<o;r++){var s=i[r].split("=");2==s.length?dt.setLabel(s[0],e(s[1])):1==s.length&&dt.setLabel(g.PAGE_NAME_LABEL,e(s[0]))}t=t.substring(0,n+1)}}else t+="?";return ut=t},getLiveEndpointURL:function(){return ut||(typeof ns_p!==M&&"string"==typeof ns_p.src?ut=ns_p.src.replace(/&amp;/,"&").replace(/&ns__t=\d+/,""):"string"==typeof ns_pixelUrl?ut=ns_pixelUrl.replace(/&amp;/,"&").replace(/&ns__t=\d+/,""):null)},Cs:function(){return V},ks:function(t){var e=V.getPlaybackSession();V.Es(new I(V)),I.ks(V,e,t)},Ts:function(){V.Ns().pause();var t=V.Ns().Ls();V.Ds(new w(V)),V.Ns().Rs(t)},getVersion:function(){return x}}),function(){if((V=new m(dt)).Ms(B.getCore()),V.Os(new O(V)),V.Ds(new w(V)),V.Ws(new N(V)),V.Vs(new L),V.xs(new R("STA",t.debug)),V.Es(new I(V)),G=new i(V),F=new r(V),j=new o(V),H=new s(V),W=new a(V),Y=new u(V),K=new c(V),z=new l(V),q=new f(V),$=new d(V),Q=new p(V),X=new h(V),Z=new _(V),J=!1,tt=0,et=+new Date,ot=!(it=!0),at=[],t.publisherId){vt=!0,ct=t.publisherId+"";var e=(("secure"in t?t.secure:V.ws()&&V.ws().isProperlyInitialized()?V.ws().isSecure():v.fe()&&E.ce())?"https://web.archive.org/web/20191108214155/https://sb":"http://b")+".scorecardresearch.com/p?c1=2";dt.setLiveEndpointURL(e)}t.liveEndpointURL&&dt.setLiveEndpointURL(t.liveEndpointURL),t.systemClockJumpDetection&&(A.setPlatformAPI(dt.getPlatformAPI()),t.systemClockJumpDetectionInterval?A.Us(parseInt(t.systemClockJumpDetectionInterval),!0):A.Us(),t.systemClockJumpDetectionPrecision?A.Bs(parseInt(t.systemClockJumpDetectionPrecision),!0):A.Bs(),n())}()}},{17:17,18:18,19:19,2:2,20:20,24:24,55:55,58:58,59:59,60:60,61:61,62:62,63:63,65:65,66:66,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82}],57:[function(t,e,n){var i,r,o=t(20),s=t(4),a="undefined";r=o.fe()?(i=window,document):(i={},{location:{href:""},title:"",URL:"",referrer:"",cookie:""}),e.exports=function(t,e){for(var n,u=i.encodeURIComponent||escape,c=[],l=s.k,f=t.split("?"),d=f[0],p=f[1].split("&"),h=0,_=p.length;h<_;h++){var g=p[h].split("="),v=unescape(g[0]),m=unescape(g[1]);v&&(e[v]=m)}for(var E={},y=0,b=l.length;y<b;y++){var A=l[y];if(e.hasOwnProperty(A)){var S=e[A];typeof S!==a&&null!=S&&(E[A]=!0,c.push(u(A)+"="+u(e[A])))}}for(var I in e)if(e.hasOwnProperty(I)){if(E[I])continue;var T=e[I];typeof T!==a&&null!=T&&c.push(u(I)+"="+u(e[I]))}n=(n=d+"?"+c.join("&"))+(n.indexOf("&c8=")<0?"&c8="+u(r.title):"")+(n.indexOf("&c7=")<0?"&c7="+u(r.URL):"")+(n.indexOf("&c9=")<0?"&c9="+u(r.referrer):"");var C=o.Jt()?s.A:s.P;if(n.length>C&&0<n.indexOf("&")){var P=n.substr(0,C-8).lastIndexOf("&");n=(n.substring(0,P)+"&ns_cut="+u(n.substring(P+1))).substr(0,C)}return n}},{20:20,4:4}],58:[function(t,e,n){var i,r,o=(i=["play","pause","pause-on-buffering","end","buffer","buffer-stop","keep-alive","hb","custom","load","start","skstart","adskip","cta","error","trans","drmfa","drmap","drmde","bitrt","playrt","volume","window","audio","video","subs","cdn"],{PLAY:0,PAUSE:1,PAUSE_ON_BUFFERING:2,END:3,BUFFER:4,BUFFER_STOP:5,KEEPALIVE:6,HEARTBEAT:7,CUSTOM:8,LOAD:9,ENGAGE:10,SEEK_START:11,AD_SKIP:12,CTA:13,ERROR:14,TRANSFER:15,DRM_FAILED:16,DRM_APPROVED:17,DRM_DENIED:18,BIT_RATE:19,PLAYBACK_RATE:20,VOLUME:21,WINDOW_STATE:22,AUDIO:23,VIDEO:24,SUBS:25,CDN:26,toString:function(t){return i[t]}}),s=(r=["c","s","r"],{Bu:0,Fs:1,js:2,toString:function(t){return r[t]}});e.exports.Lu=o,e.exports.Nu={IDLE:0,PLAYBACK_NOT_STARTED:1,PLAYING:2,PAUSED:3,BUFFERING_BEFORE_PLAYBACK:4,BUFFERING_DURING_PLAYBACK:5,BUFFERING_DURING_SEEKING:6,BUFFERING_DURING_PAUSE:7,SEEKING_BEFORE_PLAYBACK:8,SEEKING_DURING_PLAYBACK:9,SEEKING_DURING_BUFFERING:10,SEEKING_DURING_PAUSE:11,PAUSED_DURING_BUFFERING:12},e.exports.Du=s},{}],59:[function(t,e,n){var i=t(24),r=t(57),o=t(58).Lu;e.exports=function(t){var e,n,s=this,a=[];i.extend(this,{Vu:function(e){for(var u=i.extend({},e.Ut,e.Ku),c=0;c<a.length;++c)a[c](u);!function(e){n=i.extend({},e);var o=t.Gs().getLiveEndpointURL();t.Gs().isProperlyInitialized()?t.ws().nt(e,o):o&&t.Gs().getPlatformAPI().httpGet(r(o,e))}(u),e.Wt!=o.HEARTBEAT&&s.Ks()},addMeasurementListener:function(t){"function"==typeof t&&a.push(t)},removeMeasurementListener:function(t){for(var e=NaN,n=0;n<a.length;++n)if(a[n]==t){e=n;break}isNaN(e)||a.splice(e,1)},Fu:function(){return e},Ks:function(){e++},qs:function(t){e=t},Hs:function(){return n}}),e=1}},{24:24,57:57,58:58}],60:[function(t,e,n){var i=t(58).Lu,r=t(68),o=t(24),s=[{Ys:6e4,interval:1e4},{Ys:null,interval:6e4}];e.exports=function(t){function e(){c++;var e={},n=r.Wu(e);e.ns_st_hc=t.Ns().Js()+"";var o=t.Gs().Dr(i.HEARTBEAT,e,n);t.getPlaybackSession().getAsset().Kr(o.Ut),t.ju().Vu(o),u=0,l.resume()}function n(){null!=a&&(t.Gs().getPlatformAPI().clearTimeout(a),a=null)}var a,u,c,l=this,f=s;o.extend(this,{Js:function(){return c},Rs:function(t){f=t},Gu:function(t){var e=0;if(null!=f)for(var n=0;n<f.length;n++){var i=f[n],r=i.Ys;if(!r||t<r){e=i.interval;break}}return e},Ls:function(){return f},resume:function(){n();var i=l.Gu(t.getPlaybackSession().getAsset().Rr()+(+new Date-t.getPlaybackSession().getAsset().yo()));if(0<i){var r=0<u?u:i;a=t.Gs().getPlatformAPI().setTimeout(e,r)}u=0},pause:function(){n();var e=l.Gu(t.getPlaybackSession().getAsset().Rr()+(+new Date-t.getPlaybackSession().getAsset().yo()));u=e-(t.getPlaybackSession().getAsset().Rr()+(+new Date-t.getPlaybackSession().getAsset().yo()))%e}}),c=u=0}},{24:24,58:58,68:68}],61:[function(t,e,n){var i=t(58).Lu,r=t(24),o=t(68);e.exports=function(t){function e(){var e={},n=o.Wu(e);t.Gs().ms(i.KEEPALIVE,n,e),a.start()}function n(){null!=s&&(t.Gs().getPlatformAPI().clearTimeout(s),s=null)}var s,a=this,u=12e5;r.extend(a,{start:function(){n(),s=t.Gs().getPlatformAPI().setTimeout(e,u)},stop:n,setInterval:function(t){u=t},Gu:function(){return u}})}},{24:24,58:58,68:68}],62:[function(t,e,n){function i(){for(var t=0;t<o.length;++t)o[t]()}var r=t(20),o=[],s=!1;e.exports={zu:function(t){o.push(t),s||r.fe()&&(window.addEventListener?(window.addEventListener("unload",i,!1),s=!0):window.attachEvent&&(window.attachEvent("onunload",i),s=!0))},Qu:function(t){for(var e=0;e<o.length;++e)if(o[e]==t){o.splice(e,1);break}0==o.length&&r.fe()&&(window.removeEventListener?(window.removeEventListener("unload",i,!1),s=!1):window.detachEvent&&(window.detachEvent("onunload",i),s=!1))}}},{20:20}],63:[function(t,e,n){function i(t){var e,n,i,f,d,p,h,_,g,v,m,E,y,b,A,S,I=this;r.extend(this,{Tu:function(){var t=e;e=new o,o.Tu(t,e)},zs:function(t){return null!=_[t]},Qs:function(t){_[t]={}},Xs:function(t){delete _[t]},Zs:function(){for(var t in _)if(_.hasOwnProperty(t)&&_[t].$s===e.Tr()){r.extend(_[t],{na:e.su(),ta:e.au(),ea:e.fu(),ia:e.cu(),seeking:e.Eo(),ra:e.Bo(),oa:e.jo(),ua:e.$r(),sa:e.qr(),aa:e.Yr(),fa:e.zr(),ca:e.Xr(),la:e.hu(),pa:e.Qo(),va:e.Zo(),da:e.tu()});break}},ha:function(t){return _[t]},Tr:function(t){return _[t].$s},_a:function(){return g},ga:function(t,e){_[t].$s=e,g<e&&(g=e)},setLabels:function(t){null!=t&&r.extend(p,t)},getLabels:function(){return p},setLabel:function(t,e){var n={};n[t]=e,I.setLabels(n)},getLabel:function(t){return p[t]},getAsset:function(){return e},xu:function(t){for(var e=0;e<S.length;++e)if(S[e]==t)return;S.push(t)},Dr:function(t,n){var i=t,o=a.jt(i.ns_st_pa)?I.Rr():parseInt(i.ns_st_pa);i.ns_st_pa=o+(isNaN(f)?0:n-f)+"",i.ns_st_pp=y+"",i.ns_st_sp=b+"",i.ns_st_bp=A+"",v||(i.ns_st_pb=null!=i.ns_st_pb?i.ns_st_pb:"1"),e.Mo()&&(i.ns_st_ppc=m+"",i.ns_st_psq=E+""),0<S.length&&(i.ns_st_ie=(i.ns_st_ie?i.ns_st_ie+";":"")+S.join(";")),r.extend(i,d)},ro:function(){b++},eo:function(){y++},ho:function(t){if(!isNaN(f)){var e=I.Rr();e+=t-f,I.ma(e),f=NaN}},so:function(t){if(!isNaN(n)){var e=I.Or();e+=t-n,I.uo(e),n=NaN}},Or:function(){return A},uo:function(t){A=t},Rr:function(){return i},Po:function(t){n=t},So:function(){return n},ma:function(t){i=t},bo:function(t){f=t},yo:function(){return f},Vr:function(){return y},Ao:function(t){y=t},wa:function(){return h},ya:function(t){h=t},ba:function(){return m},Ia:function(){m++},hs:function(t){v=t},vu:function(t){E=t},du:function(){E++},Sa:function(){return d.ns_st_id},setAsset:function(e,n){t.Uu().Zt("setAsset",e,n),e=s.Pa(e);var i=t.Mu().Ru();if(i!=c.IDLE){t.Uu().$t("Ending the current Clip. It was in state:",s.gs(i));var r={};t.Gs().Vu(l.END,s.Wu(r),r)}var o="",f=0;if(null!=e.ns_st_cn)o=e.ns_st_cn;else for(var d=0;d<u.length;d++)e[u[d]]&&(o+=u[d]+":"+e[u[d]]+";");var p=I,h=p.getAsset();f=h.Do()?(p.zs(h.Pr())||(p.Qs(h.Pr()),p.ga(h.Pr(),h.Tr())),p.Zs(),p.zs(o)?p.Tr(o):a.tn(e.ns_st_cn)?parseInt(e.ns_st_cn):p._a()+1):p.zs(o)?p.Tr(o):h.Tr(),p.Tu(),(h=p.getAsset()).Ar(o),h.Nr(f),h.setLabels(e);var _=p.ha(o);_&&(h.Lo(!0),h.iu(_.na),h.ru(_.ta),h.ou(_.ea),h.uu(_.ia),h.ko(_.seeking),h.Uo(_.ra),h.Fo(_.oa),h.no(_.ua),_.sa&&h.Hr(_.sa),_.aa&&h.Jr(_.aa),_.fa&&h.Qr(_.fa),_.ca&&h.Zr(_.ca),h.vu(_.la),h.Xo(_.pa),h.$o(_.va),h.nu(_.da)),h.Jo(),h.Do()&&n&&p.ro(),n&&(p.vu(0),h.gu(!0)),!a.tn(e.ns_st_tp)&&a.tn(e.ns_st_ad)&&a.lt(e.ns_st_ad)&&"0"!==e.ns_st_ad&&h.Cr("ns_st_tp","1")}}),e=new o,(d={}).ns_st_id=+new Date+"",p={},f=n=NaN,v=h=!(_={}),b=1,A=E=y=m=g=i=0,S=[]}var r=t(24),o=t(54),s=t(68),a=t(21),u=t(55).HASH_LABELS,c=t(58).Nu,l=t(58).Lu;i.ks=function(t,e,n){for(var i=e.getAsset(),r=e.getLabels(),s={},a=0;n&&a<n.length;a++)r.hasOwnProperty(n[a])&&(s[n[a]]=r[n[a]]);t.getPlaybackSession().setLabels(s),o.Tu(i,t.getPlaybackSession().getAsset(),n)},e.exports=i},{21:21,24:24,54:54,55:55,58:58,68:68}],64:[function(t,e,n){var i={LongFormOnDemand:"12",ShortFormOnDemand:"11",Live:"13",UserGeneratedLongFormOnDemand:"22",UserGeneratedShortFormOnDemand:"21",UserGeneratedLive:"23",Bumper:"99",Other:"00"},r={LinearOnDemandPreRoll:"11",LinearOnDemandMidRoll:"12",LinearOnDemandPostRoll:"13",LinearLive:"21",BrandedOnDemandPreRoll:"31",BrandedOnDemandMidRoll:"32",BrandedOnDemandPostRoll:"33",BrandedOnDemandContent:"34",BrandedOnDemandLive:"35",Other:"00"},o=t(67),s=t(58).Nu,a=t(58).Du,u=t(55).HASH_LABELS,c=t(21),l=t(24),f=t(18),d=function(t){function e(t){g.getPlaybackSession().setAsset(t),p=t,g.notifyPlay()}function n(t){var e=t||{};e.ns_st_ad="1",e.ns_st_an=++h+"",g.getPlaybackSession().setAsset(e),g.notifyPlay(),_=!1}function d(t,n){m==v.Aa&&(m=n),_&&m==n&&function(t){for(var e in u)if(u.hasOwnProperty(e)&&(n=u[e],i=p,r=t,!(c.tn(n)&&c.tn(i)&&c.tn(r)&&(i.hasOwnProperty(n)&&r.hasOwnProperty(n)&&i[n]===r[n]||!i.hasOwnProperty(n)&&!r.hasOwnProperty(n)))))return!1;var n,i,r;return!0}(t)?(g.getPlaybackSession().getAsset().setLabels(t),g.getState()!=s.PLAYING&&g.notifyPlay()):e(t),_=!0,m=n}var p=null,h=0,_=!1,g=null,v={Aa:0,Ca:1,ka:2},m=v.Aa,E=new f("TTSTA",(t||{}).debug);l.extend(this,{playVideoAdvertisement:function(t,e){E.Zt("playVideoAdvertisement",t,e);var i={ns_st_ct:"va"};e?i.ns_st_ct="va"+e:E.warn("Calling 'playVideoAdvertisement' without specifying the media type as a second parameter."),e!=r.LinearLive&&e!=r.BrandedOnDemandLive||(i.ns_st_li="1"),t&&l.extend(i,t),n(i)},playAudioAdvertisement:function(t,e){E.Zt("playAudioAdvertisement",t,e);var i={ns_st_ct:"aa"};e?i.ns_st_ct="aa"+e:E.warn("Calling 'playAudioAdvertisement' without specifying the media type as a second parameter."),e!=r.LinearLive&&e!=r.BrandedOnDemandLive||(i.ns_st_li="1"),t&&l.extend(i,t),n(i)},playVideoContentPart:function(t,e){E.Zt("playVideoContentPart",t,e);var n={ns_st_ct:"vc"};e?n.ns_st_ct="vc"+e:E.warn("Calling 'playVideoContentPart' without specifying the media type as a second parameter."),e!=i.Live&&e!=i.UserGeneratedLive||(n.ns_st_li="1"),t&&l.extend(n,t),d(n,v.ka)},playAudioContentPart:function(t,e){E.Zt("playAudioContentPart",t,e);var n={ns_st_ct:"ac"};e?n.ns_st_ct="ac"+e:E.warn("Calling 'playAudioContentPart' without specifying the media type as a second parameter."),e!=i.Live&&e!=i.UserGeneratedLive||(n.ns_st_li="1"),t&&l.extend(n,t),d(n,v.Ca)},stop:function(){E.Zt("stop"),g.notifyPause()}}),(g=new o(t)).setLabel("ns_st_it",a.toString(a.js))};d.ContentType=i,d.AdType=r,e.exports=d},{18:18,21:21,24:24,55:55,58:58,67:67}],65:[function(t,e,n){var i=t(24);e.exports=function(t){var e,n,r,o,s,a,u;i.extend(this,{ws:function(){return e},Gs:function(){return t},ju:function(){return n},Mu:function(){return r},Ns:function(){return o},S:function(){return s},getPlaybackSession:function(){return a},Uu:function(){return u},Ms:function(t){e=t},Os:function(t){s=t},Ds:function(t){o=t},Ws:function(t){n=t},Vs:function(t){r=t},Es:function(t){a=t},xs:function(t){u=t}})}},{24:24}],66:[function(t,e,n){var i=t(58).Nu,r=t(24),o=t(58).Lu;e.exports=function(t){var e,n,s,a=this;r.extend(a,{Hu:function(t){if(s==i.IDLE){if(t==o.PLAY)return i.PLAYING;if(t==o.SEEK_START)return i.SEEKING_BEFORE_PLAYBACK;if(t==o.BUFFER)return i.BUFFERING_BEFORE_PLAYBACK}else if(s==i.PLAYBACK_NOT_STARTED){if(t==o.PLAY)return i.PLAYING;if(t==o.SEEK_START)return i.SEEKING_BEFORE_PLAYBACK;if(t==o.BUFFER)return i.BUFFERING_BEFORE_PLAYBACK;if(t==o.END||t==o.AD_SKIP)return i.IDLE}else if(s==i.PLAYING){if(t==o.END||t==o.AD_SKIP)return i.IDLE;if(t==o.BUFFER)return i.BUFFERING_DURING_PLAYBACK;if(t==o.PAUSE)return i.PAUSED;if(t==o.SEEK_START)return i.SEEKING_DURING_PLAYBACK}else if(s==i.PAUSED){if(t==o.END||t==o.AD_SKIP)return i.IDLE;if(t==o.BUFFER)return i.BUFFERING_DURING_PAUSE;if(t==o.PLAY)return i.PLAYING;if(t==o.SEEK_START)return i.SEEKING_DURING_PAUSE}else if(s==i.BUFFERING_BEFORE_PLAYBACK){if(t==o.END||t==o.AD_SKIP)return i.IDLE;if(t==o.PAUSE||t==o.BUFFER_STOP)return i.PLAYBACK_NOT_STARTED;if(t==o.PLAY)return i.PLAYING;if(t==o.SEEK_START)return i.SEEKING_BEFORE_PLAYBACK}else if(s==i.BUFFERING_DURING_PLAYBACK){if(t==o.END||t==o.AD_SKIP)return i.IDLE;if(t==o.PLAY||t==o.BUFFER_STOP)return i.PLAYING;if(t==o.PAUSE_ON_BUFFERING)return i.PAUSED_DURING_BUFFERING;if(t==o.SEEK_START)return i.SEEKING_DURING_BUFFERING;if(t==o.PAUSE)return i.PAUSED}else if(s==i.BUFFERING_DURING_SEEKING){if(t==o.END||t==o.AD_SKIP)return i.IDLE;if(t==o.PLAY)return i.PLAYING;if(t==o.BUFFER_STOP)return i.SEEKING_DURING_PLAYBACK;if(t==o.PAUSE)return i.PAUSED}else if(s==i.BUFFERING_DURING_PAUSE){if(t==o.END||t==o.AD_SKIP)return i.IDLE;if(t==o.PLAY)return i.PLAYING;if(t==o.SEEK_START)return i.SEEKING_DURING_PAUSE;if(t==o.BUFFER_STOP||t==o.PAUSE)return i.PAUSED}else if(s==i.SEEKING_BEFORE_PLAYBACK){if(t==o.END||t==o.AD_SKIP)return i.IDLE;if(t==o.PAUSE)return i.PLAYBACK_NOT_STARTED;if(t==o.PLAY)return i.PLAYING;if(t==o.BUFFER)return i.BUFFERING_BEFORE_PLAYBACK}else if(s==i.SEEKING_DURING_PLAYBACK){if(t==o.END||t==o.AD_SKIP)return i.IDLE;if(t==o.PLAY)return i.PLAYING;if(t==o.PAUSE)return i.PAUSED;if(t==o.BUFFER)return i.BUFFERING_DURING_SEEKING}else if(s==i.SEEKING_DURING_BUFFERING){if(t==o.END||t==o.AD_SKIP)return i.IDLE;if(t==o.PLAY)return i.PLAYING;if(t==o.PAUSE||t==o.BUFFER_STOP)return i.PAUSED;if(t==o.BUFFER)return i.BUFFERING_DURING_SEEKING}else if(s==i.SEEKING_DURING_PAUSE){if(t==o.END||t==o.AD_SKIP)return i.IDLE;if(t==o.PLAY)return i.PLAYING;if(t==o.PAUSE||t==o.BUFFER_STOP)return i.PAUSED;if(t==o.BUFFER)return i.BUFFERING_DURING_PAUSE}else if(s==i.PAUSED_DURING_BUFFERING){if(t==o.END||t==o.AD_SKIP)return i.IDLE;if(t==o.SEEK_START)return i.SEEKING_DURING_BUFFERING;if(t==o.PAUSE)return i.PAUSED;if(t==o.PLAY||t==o.BUFFER_STOP)return i.PLAYING}return null},Ru:function(){return s},Vu:function(t,i){var r=a.Hu(t);s!=r&&(n=s,s=r,e=i)},Ea:function(){return n},_s:function(){return e}}),s=i.IDLE,n=null,e=NaN}},{24:24,58:58}],67:[function(t,e,n){function i(t){function e(t,e,i){if(a.toString(t)){i=o.Pa(i);var r=o.Wu(i);i.ns_st_po||isNaN(e)||(i.ns_st_po=parseInt(e)+""),t==a.PLAY||t==a.PAUSE||t==a.BUFFER||t==a.END||t==a.SEEK_START||t==a.AD_SKIP||t==a.BUFFER_STOP?n.Vu(t,r,i):n.ms(t,r,i)}}var n,i=this;for(var l in r.extend(i,{isProperlyInitialized:function(){return n.isProperlyInitialized()},reset:function(t){e(a.END);var i=n;i.Cs().S().stop(),i.Cs().Ns().pause(),n=new s(i.getConfiguration()),c.ks(n.Cs(),i.Cs().getPlaybackSession(),t)},setPauseOnBufferingInterval:function(t){n.setPauseOnBufferingInterval(t)},getPauseOnBufferingInterval:function(){return n.getPauseOnBufferingInterval()},setKeepAliveInterval:function(t){n.Cs().S().setInterval(t)},getKeepAliveInterval:function(){return n.Cs().S().Gu()},setHeartbeatIntervals:function(t){n.Cs().Ns().Rs(t)},getLabels:function(){return n.getLabels()},getState:function(){return n.Cs().Mu().Ru()},setLabels:function(t){n.setLabels(t)},getLabel:function(t){return n.getLabel(t)},setLabel:function(t,e){n.setLabel(t,e)},getLoadTimeOffset:function(){return n.getLoadTimeOffset()},setLoadTimeOffset:function(t){n.setLoadTimeOffset(t)},setLiveEndpointURL:function(t){return n.setLiveEndpointURL(t)},getLiveEndpointURL:function(){return n.getLiveEndpointURL()},isPauseOnBufferingEnabled:function(){return n.isPauseOnBufferingEnabled()},setPauseOnBufferingEnabled:function(t){n.setPauseOnBufferingEnabled(t)},isThrottlingEnabled:function(){return n.isThrottlingEnabled()},setThrottlingEnabled:function(t){n.setThrottlingEnabled(t)},setThrottlingDelay:function(t){n.setThrottlingDelay(t)},getThrottlingDelay:function(){return n.getThrottlingDelay()},setPlaybackIntervalMergeTolerance:function(t){n.Cs().getPlaybackSession().getAsset().setPlaybackIntervalMergeTolerance(t)},getPlaybackIntervalMergeTolerance:function(){return n.Cs().getPlaybackSession().getAsset().getPlaybackIntervalMergeTolerance()},createPlaybackSession:function(t){n.Cs().Uu().Zt("createPlaybackSession",t),t=o.Pa(t);var e=n.Cs().Mu().Ru();e!=u.IDLE&&(n.Cs().Uu().$t("Ending the current Clip. It was in state:",o.gs(e)),i.notifyEnd()),n.Cs().getPlaybackSession().wa()&&n.ks(),n.Cs().getPlaybackSession().setLabels(t)},getVersion:function(){return n.getVersion()},addListener:function(t){n.addListener(t)},removeListener:function(t){n.removeListener(t)},addMeasurementListener:function(t){n.Cs().ju().addMeasurementListener(t)},removeMeasurementListener:function(t){n.Cs().ju().removeMeasurementListener(t)},getPlaybackSession:function(){return n.Cs().getPlaybackSession()},setExitEndEventEnabled:function(t){n.setExitEndEventEnabled(!!t)},isExitEndEventEnabled:function(){return n.isExitEndEventEnabled()},setDvrWindowLength:function(t){n.Cs().getPlaybackSession().getAsset().Su(t),n.Cs().getPlaybackSession().getAsset().Eu(!0)},setDvrWindowOffset:function(t){n.Cs().getPlaybackSession().getAsset().Au(t),n.Cs().getPlaybackSession().getAsset().Eu(!0)},getPlatformAPI:function(){return n.getPlatformAPI()},_getLogHistory:function(){return n.Cs().Uu().te()}}),f)!function(t,r){i[t]=function(i,o){n.Cs().Uu().Zt(t,i,o);var s={},a=NaN;"object"==typeof i?s=i:"object"==typeof o&&(s=o),"number"==typeof i?a=i:"number"==typeof o&&(a=o),e(r,a,s)}}(l,f[l]);for(var p in d)!function(t,r,o){i[t]=function(i,s,a){if(n.Cs().Uu().Zt(t,i,s,a),null!=i){var u={},c=NaN;"object"==typeof s?u=s:"object"==typeof a&&(u=a),"number"==typeof s?c=s:"number"==typeof a&&(c=a),u[o]=i+"",e(r,c,u)}}}(p,d[p][0],d[p][1]);t=r.extend({},t),(n=new s(t)).Cs().Uu().log("New StreamingAnalytics instance with configuration",t)}var r=t(24),o=t(68),s=t(56),a=t(58).Lu,u=t(58).Nu,c=t(63),l=t(55),f={notifyPlay:a.PLAY,notifyPause:a.PAUSE,notifyEnd:a.END,notifyBufferStart:a.BUFFER,notifyBufferStop:a.BUFFER_STOP,notifyLoad:a.LOAD,notifyEngage:a.ENGAGE,notifySeekStart:a.SEEK_START,notifySkipAd:a.AD_SKIP,notifyCallToAction:a.CTA,notifyError:a.ERROR,notifyTransferPlayback:a.TRANSFER,notifyDrmFail:a.DRM_FAILED,notifyDrmApprove:a.DRM_APPROVED,notifyDrmDeny:a.DRM_DENIED,notifyCustomEvent:a.CUSTOM},d={notifyChangeBitrate:[a.BIT_RATE,"ns_st_br"],notifyChangePlaybackRate:[a.PLAYBACK_RATE,"ns_st_rt"],notifyChangeVolume:[a.VOLUME,"ns_st_vo"],notifyChangeWindowState:[a.WINDOW_STATE,"ns_st_ws"],notifyChangeAudioTrack:[a.AUDIO,"ns_st_at"],notifyChangeVideoTrack:[a.VIDEO,"ns_st_vt"],notifyChangeSubtitleTrack:[a.SUBS,"ns_st_tt"],notifyChangeCdn:[a.CDN,"ns_st_cdn"]};i.PlayerEvents=a,i.InternalStates=u,i.Constants=l,e.exports=i},{24:24,55:55,56:56,58:58,63:63,68:68}],68:[function(t,e,n){var i=t(23),r=t(58).Nu;n.Pa=function(t){var e={};for(var n in t){var i=t[n];e[n]=null==i?i:t[n]+""}return e},n.Ta=function(t,e){var n,i=[];for(n in t)e&&!e.test(n)||!t.hasOwnProperty(n)||(i[i.length]=n);return i},n.Wu=function(t){if(t.ns_ts)return parseInt(t.ns_ts);var e=+new Date;return t.ns_ts=e+"",e},n.fe=function(){return"undefined"!=typeof window&&"undefined"!=typeof document},n.Wr=function(t,e,n,r){var o,s,a={};if(!(e<=n))return i(t);if(a.start=e,a.end=n,0==t.length)return t.push(a),i(t);for(o=0;o<t.length;o++)if(a.start>=t[o].start&&a.end<=t[o].end)return i(t);var u=!1;for(s=0;s<t.length;s++)if(s+1===t.length&&a.start>=t[s].start||a.start>=t[s].start&&a.start<t[s+1].start){t.splice(s+1,0,a),u=!0;break}u||t.splice(0,0,a);var c=[t[0]];for(o=1;o<t.length;o++)c[c.length-1].end+r<t[o].start?c.push(t[o]):c[c.length-1].end<t[o].end&&(c[c.length-1].end=t[o].end);return i(c)},n.gs=function(t){for(var e in r)if(r.hasOwnProperty(e)&&r[e]==t)return e},n.Ju=function(t){return t==r.IDLE||t==r.BUFFERING_BEFORE_PLAYBACK||t==r.SEEKING_BEFORE_PLAYBACK||t==r.PLAYBACK_NOT_STARTED}},{23:23,58:58}],69:[function(t,e,n){var i=t(24),r=t(26),o=t(58).Lu;e.exports=function(t){i.extend(this,{ns:function(e,n){var i=t.getPlaybackSession(),o=i.getAsset();i.so(e),o.so(e),o.Eo()&&o.No()&&o.Uo(e-o.Wo()),o.Ho(),o.Ro(!1),n.hasOwnProperty("ns_st_pe")&&r.vr(n.ns_st_pe,!1)&&t.Gs().ks()},os:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset();i.so(e),r.so(e),r.Eo()&&r.No()&&(r.Vo(e),r.To(!1))},Zu:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),o=parseInt(n.ns_st_po);i.so(e),r.so(e),r.Eo()?r.No()||(r.Oo(e),r.To(!0)):r.io(),r.Eo()||(r.ko(!0),r.To(!0),r.Fo(o),r.Oo(e))},ts:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset();i.so(e),r.so(e),r.Eo()&&r.No()&&(r.Vo(e),r.To(!1))},$u:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),s=parseInt(n.ns_st_po);i.so(e),r.so(e),r.Eo()&&(r.No()&&(r.Vo(e),r.To(!1)),r.Ko(s),r.ko(!1)),r.Ro(!0),(r._u()||0==i.ba())&&(i.Ia(),r.gu(!1)),i.du(),r.Ro(!0),r.Yo(),r.ro(),i.bo(e),r.bo(e),r.do(e),r.ao(s),(0==r.cu()||r.Lr()<=r.cu())&&(r.uu(r.Lr()),r.zo(),r.vu(0),r.eu()),r.du(),t.Gs().bs()||(n.ns_st_lt=t.Gs().getLoadTimeOffset()+e-t.Gs().Ss()+"",t.Gs().Is(!0)),t.Ns().resume(),t.S().start();var a=t.Gs().Dr(o.PLAY,n,e);r.jr(a.Ut),r.Kr(a.Ut),t.ju().Vu(a)}})}},{24:24,26:26,58:58}],70:[function(t,e,n){var i=t(24),r=t(26),o=t(58).Lu;e.exports=function(t){i.extend(this,{fs:function(e,n){var i=t.getPlaybackSession(),s=i.getAsset();t.Gs().Ts(),t.S().stop(),i.so(e),s.so(e),s.po(e);var a=t.Gs().Dr(o.END,n,e);s.jr(a.Ut),s.Kr(a.Ut),t.ju().Vu(a),s.Eo()&&s.No()&&(s.Uo(e-s.Wo()),s.To(!1)),i.Zs(),s.Ho(),s.Ro(!1),n.hasOwnProperty("ns_st_pe")&&r.vr(n.ns_st_pe,!1)&&t.Gs().ks()},ts:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset();i.so(e),r.so(e),r.po(e),r.do(e)},$u:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),s=parseInt(n.ns_st_po);i.du(),r.du(),r.ro(),i.so(e),r.so(e),r.Eo()&&(r.No()&&(r.Vo(e),r.To(!1)),r.Ko(s),r.ko(!1)),r.po(e),r.do(e),i.bo(e),r.bo(e),r.ao(s),t.Ns().resume(),t.S().start();var a=t.Gs().Dr(o.PLAY,n,e);r.jr(a.Ut),r.Kr(a.Ut),t.ju().Vu(a)}})}},{24:24,26:26,58:58}],71:[function(t,e,n){var i=t(24),r=t(26),o=t(58).Lu;e.exports=function(t){i.extend(this,{us:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset();t.Gs().As(),r.po(e),r.do(e),i.so(e),r.so(e),i.eo(),r.eo();var s=t.Gs().Dr(o.PAUSE,n,e);r.jr(s.Ut),r.Kr(s.Ut),t.ju().Vu(s),i.Po(e),r.Po(e)},ns:function(e,n){var i=t.getPlaybackSession(),s=i.getAsset();t.Gs().As(),t.Gs().Ts(),t.S().stop(),i.so(e),s.so(e),s.po(e);var a=t.Gs().Dr(o.END,n,e);s.jr(a.Ut),s.Kr(a.Ut),t.ju().Vu(a),s.Ho(),s.Ro(!1),n.hasOwnProperty("ns_st_pe")&&r.vr(n.ns_st_pe,!1)&&t.Gs().ks()},Zu:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),s=parseInt(n.ns_st_po);t.Gs().As(),t.Ns().pause(),t.S().stop(),r.po(e),r.do(e),i.so(e),r.so(e),r.io(),r.ko(!0),r.To(!0),r.Fo(s),r.Oo(e),i.eo(),r.eo();var a=t.Gs().Dr(o.PAUSE,n,e);r.jr(a.Ut),r.Kr(a.Ut),t.ju().Vu(a)},ts:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset();t.Gs().As(),r.po(e),r.do(e),i.so(e),r.so(e),i.eo(),r.eo();var s=t.Gs().Dr(o.PAUSE,n,e);r.jr(s.Ut),r.Kr(s.Ut),t.ju().Vu(s)}})}},{24:24,26:26,58:58}],72:[function(t,e,n){var i=t(24),r=t(26),o=t(58).Lu;e.exports=function(t){i.extend(this,{ns:function(e,n){var i=t.getPlaybackSession(),s=i.getAsset();t.Gs().Ts(),t.S().stop(),t.Gs().As(),i.so(e),s.so(e),s.po(e);var a=t.Gs().Dr(o.END,n,e);s.jr(a.Ut),s.Kr(a.Ut),t.ju().Vu(a),s.Eo()&&s.No()&&(s.Uo(e-s.Wo()),s.To(!1)),i.Zs(),s.Ho(),s.Ro(!1),n.hasOwnProperty("ns_st_pe")&&r.vr(n.ns_st_pe,!1)&&t.Gs().ks()},ts:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset();i.so(e),r.so(e),i.eo(),r.eo(),r.Eo()&&r.No()&&(r.Vo(e),r.To(!1)),r.po(e),r.do(e)},$u:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),s=parseInt(n.ns_st_po);i.du(),r.du(),r.ro(),i.so(e),r.so(e),r.Eo()&&(r.No()&&(r.Vo(e),r.To(!1)),r.Ko(s),r.ko(!1)),r.po(e),r.do(e),i.bo(e),r.bo(e),r.ao(s),t.Ns().resume(),t.S().start();var a=t.Gs().Dr(o.PLAY,n,e);r.jr(a.Ut),r.Kr(a.Ut),t.ju().Vu(a)}})}},{24:24,26:26,58:58}],73:[function(t,e,n){var i=t(24),r=t(58).Lu;e.exports=function(t){i.extend(this,{Xu:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset();i.ya(!0),r.Lo(!0),r.Eo()&&r.xo(r.Bo()),i.Po(e),r.Po(e)},Zu:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),o=parseInt(n.ns_st_po);i.ya(!0),r.Lo(!0),r.Eo()&&r.xo(r.Bo()),r.io(),r.ko(!0),r.To(!0),r.Fo(o),r.Oo(e)},$u:function(e,n){var i=t.getPlaybackSession(),o=i.getAsset(),s=parseInt(n.ns_st_po);i.ya(!0),o.Lo(!0),(o._u()||0==i.ba())&&(i.Ia(),o.gu(!1)),o.Eo()&&(o.xo(o.Bo()),o.Ko(s),o.ko(!1)),i.du(),o.Ro(!0),o.Yo(),(0==o.cu()||o.Lr()<=o.cu())&&(o.uu(o.Lr()),o.zo(),o.vu(0),o.eu()),o.du(),o.ro(),i.bo(e),o.bo(e),o.do(e),o.ao(s),t.Gs().bs()||(n.ns_st_lt=t.Gs().getLoadTimeOffset()+e-t.Gs().Ss()+"",t.Gs().Is(!0)),t.Ns().resume(),t.S().start();var a=t.Gs().Dr(r.PLAY,n,e);o.jr(a.Ut),o.Kr(a.Ut),t.ju().Vu(a)}})}},{24:24,58:58}],74:[function(t,e,n){var i=t(24),r=t(26),o=t(58).Lu;e.exports=function(t){i.extend(this,{ns:function(e,n){var i=t.getPlaybackSession(),s=i.getAsset();t.Gs().Ts(),t.S().stop(),s.po(e);var a=t.Gs().Dr(o.END,n,e);s.jr(a.Ut),s.Kr(a.Ut),t.ju().Vu(a),s.Eo()&&s.No()&&(s.Uo(e-s.Wo()),s.ko(!1)),i.Zs(),s.Ho(),s.Ro(!1),n.hasOwnProperty("ns_st_pe")&&r.vr(n.ns_st_pe,!1)&&t.Gs().ks()},$u:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),s=parseInt(n.ns_st_po);i.du(),r.Eo()&&(r.No()&&(r.Vo(e),r.To(!1)),r.Ko(s),r.ko(!1)),r.ro(),r.du(),i.bo(e),r.bo(e),r.po(e),r.do(e),r.ao(s),t.Ns().resume(),t.S().start();var a=t.Gs().Dr(o.PLAY,n,e);r.jr(a.Ut),r.Kr(a.Ut),t.ju().Vu(a)}})}},{24:24,26:26,58:58}],75:[function(t,e,n){var i=t(24),r=t(26),o=t(58).Lu;e.exports=function(t){i.extend(this,{ns:function(e,n){var i=t.getPlaybackSession(),s=i.getAsset();t.Gs().Ts(),t.S().stop(),i.so(e),s.so(e),s.po(e),s.Eo()&&s.No()&&(s.Uo(e-s.Wo()),s.To(!1));var a=t.Gs().Dr(o.END,n,e);s.jr(a.Ut),s.Kr(a.Ut),t.ju().Vu(a),s.Ho(),s.Ro(!1),n.hasOwnProperty("ns_st_pe")&&r.vr(n.ns_st_pe,!1)&&t.Gs().ks()},Zu:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),o=parseInt(n.ns_st_po);i.so(e),r.so(e),r.Eo()?r.No()||(r.Oo(e),r.To(!0)):r.io(),r.Eo()||(r.ko(!0),r.To(!0),r.Fo(o),r.Oo(e)),r.po(e),r.do(e)},ts:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset();i.so(e),r.so(e),r.po(e),r.do(e)},ds:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),s=parseInt(n.ns_st_po);i.du(),r.du(),i.so(e),r.so(e),r.ro(),i.bo(e),r.bo(e),r.po(e),r.do(e),r.ao(s),t.Ns().resume(),t.S().start();var a=t.Gs().Dr(o.PLAY,n,e);r.jr(a.Ut),r.Kr(a.Ut),t.ju().Vu(a)}})}},{24:24,26:26,58:58}],76:[function(t,e,n){var i=t(24),r=t(26),o=t(58).Lu;e.exports=function(t){i.extend(this,{ns:function(e,n){var i=t.getPlaybackSession(),o=i.getAsset();o.Eo()&&o.No()&&(o.Uo(e-o.Wo()),o.To(!1)),i.Zs(),o.Ho(),o.Ro(!1),n.hasOwnProperty("ns_st_pe")&&r.vr(n.ns_st_pe,!1)&&t.Gs().ks()},Zu:function(e,n){var i=t.getPlaybackSession().getAsset(),r=parseInt(n.ns_st_po);i.Eo()?i.Oo(e):i.io(),i.Eo()||(i.ko(!0),i.To(!0),i.Fo(r),i.Oo(e))},$u:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),s=parseInt(n.ns_st_po);r.Eo()&&(r.Ko(s),r.ko(!1)),i.ya(!0),(r._u()||0==i.ba())&&(i.Ia(),r.gu(!1)),i.du(),r.Ro(!0),r.Yo(),(0==r.cu()||r.Lr()<=r.cu())&&(r.uu(r.Lr()),r.zo(),r.vu(0),r.eu()),r.du(),r.ro(),i.bo(e),r.bo(e),r.do(e),r.ao(s),t.Gs().bs()||(n.ns_st_lt=t.Gs().getLoadTimeOffset()+e-t.Gs().Ss()+"",t.Gs().Is(!0)),t.Ns().resume(),t.S().start();var a=t.Gs().Dr(o.PLAY,n,e);r.jr(a.Ut),r.Kr(a.Ut),t.ju().Vu(a)},Xu:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset();i.Po(e),r.Po(e)}})}},{24:24,26:26,58:58}],77:[function(t,e,n){var i=t(24),r=t(26),o=t(58).Lu;e.exports=function(t){i.extend(this,{ns:function(e,n){var i=t.getPlaybackSession(),s=i.getAsset(),a=parseInt(n.ns_st_po);t.Gs().Ts(),t.S().stop(),i.ho(e),s.ho(e),s.Iu(a),s.po(e),s.co(a);var u=t.Gs().Dr(o.END,n,e);s.jr(u.Ut),s.Kr(u.Ut),t.ju().Vu(u),s.Ho(),s.Ro(!1),n.hasOwnProperty("ns_st_pe")&&r.vr(n.ns_st_pe,!1)&&t.Gs().ks()},Xu:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),o=parseInt(n.ns_st_po);t.Ns().pause(),t.S().stop(),i.ho(e),r.ho(e),r.Iu(o),r.co(o),t.Gs().isPauseOnBufferingEnabled()&&t.Gs().Ps(e,n),r.lu(),i.Po(e),r.Po(e),r.po(e),r.do(e)},Zu:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),s=parseInt(n.ns_st_po);t.Ns().pause(),t.S().stop(),i.ho(e),r.ho(e),r.Iu(s),r.co(s),r.io(),r.ko(!0),r.To(!0),r.Fo(s),r.Oo(e),r.po(e),r.do(e),i.eo(),r.eo();var a=t.Gs().Dr(o.PAUSE,n,e);r.jr(a.Ut),r.Kr(a.Ut),t.ju().Vu(a)},ts:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),s=parseInt(n.ns_st_po);t.Ns().pause(),t.S().stop(),i.ho(e),r.ho(e),r.Iu(s),r.co(s),r.po(e),r.do(e),i.eo(),r.eo();var a=t.Gs().Dr(o.PAUSE,n,e);r.jr(a.Ut),r.Kr(a.Ut),t.ju().Vu(a)}})}},{24:24,26:26,58:58}],78:[function(t,e,n){var i=t(24),r=t(26),o=t(58).Lu;e.exports=function(t){i.extend(this,{ns:function(e,n){var i=t.getPlaybackSession(),o=i.getAsset();o.Eo()&&o.No()&&(o.Uo(e-o.Wo()),o.To(!1)),i.Zs(),o.Ho(),o.Ro(!1),n.hasOwnProperty("ns_st_pe")&&r.vr(n.ns_st_pe,!1)&&t.Gs().ks()},ts:function(e,n){var i=t.getPlaybackSession().getAsset();i.Eo()&&i.No()&&(i.Vo(e),i.To(!1))},$u:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),s=parseInt(n.ns_st_po);r.Eo()&&(r.No()&&(r.Vo(e),r.To(!1)),r.Ko(s),r.ko(!1)),(r._u()||0==i.ba())&&(i.Ia(),r.gu(!1)),i.du(),r.du(),r.ro(),r.Ro(!0),r.Yo(),(0==r.cu()||r.Lr()<=r.cu())&&(r.uu(r.Lr()),r.zo(),r.vu(0),r.eu()),i.bo(e),r.bo(e),r.do(e),r.ao(s),t.Gs().bs()||(n.ns_st_lt=t.Gs().getLoadTimeOffset()+e-t.Gs().Ss()+"",t.Gs().Is(!0)),t.Ns().resume(),t.S().start();var a=t.Gs().Dr(o.PLAY,n,e);r.jr(a.Ut),r.Kr(a.Ut),t.ju().Vu(a)}})}},{24:24,26:26,58:58}],79:[function(t,e,n){var i=t(24);e.exports=function(t){i.extend(this,{ts:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset();i.eo(),r.eo(),r.Eo()&&r.No()&&(r.Vo(e),r.To(!1)),r.po(e),r.do(e)}})}},{24:24}],80:[function(t,e,n){var i=t(24),r=t(26),o=t(58).Lu;e.exports=function(t){i.extend(this,{ns:function(e,n){var i=t.getPlaybackSession(),s=i.getAsset();t.Gs().Ts(),t.S().stop(),s.po(e);var a=t.Gs().Dr(o.END,n,e);s.jr(a.Ut),s.Kr(a.Ut),t.ju().Vu(a),s.Eo()&&s.No()&&(s.Uo(e-s.Wo()),s.To(!1)),i.Zs(),s.Ho(),s.Ro(!1),n.hasOwnProperty("ns_st_pe")&&r.vr(n.ns_st_pe,!1)&&t.Gs().ks()},$u:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),s=parseInt(n.ns_st_po);i.du(),r.du(),r.ro(),r.Eo()&&(r.No()&&(r.Vo(e),r.To(!1)),r.Ko(s),r.ko(!1)),r.po(e),r.do(e),i.bo(e),r.bo(e),r.ao(s),t.Gs().bs()||(n.ns_st_lt=t.Gs().getLoadTimeOffset()+e-t.Gs().Ss()+"",t.Gs().Is(!0)),t.Ns().resume(),t.S().start();var a=t.Gs().Dr(o.PLAY,n,e);r.jr(a.Ut),r.Kr(a.Ut),t.ju().Vu(a)}})}},{24:24,26:26,58:58}],81:[function(t,e,n){var i=t(24),r=t(26),o=t(58).Lu;e.exports=function(t){i.extend(this,{rs:function(e,n){var i=t.getPlaybackSession().getAsset(),r=parseInt(n.ns_st_po);i.Eo()?i.No()||(i.Oo(e),i.To(!0)):i.io(),i.Eo()||(i.ko(!0),i.To(!0),i.Fo(r),i.Oo(e)),i.po(e),i.do(e)},es:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset();i.Po(e),r.Po(e),r.po(e),r.do(e)},ls:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),s=parseInt(n.ns_st_po);i.du(),r.du(),r.Eo()&&(r.No()&&(r.Vo(e),r.To(!1)),r.Ko(s),r.ko(!1)),r.ro(),i.bo(e),r.bo(e),r.po(e),r.do(e),r.ao(s),t.Ns().resume(),t.S().start();var a=t.Gs().Dr(o.PLAY,n,e);r.jr(a.Ut),r.Kr(a.Ut),t.ju().Vu(a)},as:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset();i.so(e),r.so(e),r.po(e),r.do(e)},cs:function(e,n){var i=t.getPlaybackSession().getAsset();i.Eo()&&i.No()&&(i.Vo(e),i.To(!1)),i.po(e),i.do(e)},ps:function(e,n){var i=t.getPlaybackSession(),s=i.getAsset();t.Gs().Ts(),t.S().stop(),s.po(e);var a=t.Gs().Dr(o.END,n,e);s.jr(a.Ut),s.Kr(a.Ut),t.ju().Vu(a),s.Eo()&&s.No()&&(s.Uo(e-s.Wo()),s.To(!1)),i.Zs(),s.Ho(),s.Ro(!1),n.hasOwnProperty("ns_st_pe")&&r.vr(n.ns_st_pe,!1)&&t.Gs().ks()},vs:function(e,n){var i=t.getPlaybackSession().getAsset();i.Eo()&&i.No()&&(i.Vo(e),i.To(!1)),i.po(e),i.do(e)},ss:function(e,n){var i=t.getPlaybackSession(),r=i.getAsset(),o=parseInt(n.ns_st_po);t.Gs().As(),i.so(e),r.so(e),i.bo(e),r.bo(e),r.ao(o),r.po(e),r.do(e),t.Ns().resume(),t.S().start()}})}},{24:24,26:26,58:58}],82:[function(t,e,n){function i(){var t=+new Date;u=a.setInterval(function(){var e=t+o,n=+new Date,i=n-e;if(t=n,Math.abs(i)>s)for(var r=0<i,a=0;a<c.length;++a)c[a](r)},o)}function r(){clearInterval(u),u=null}var o,s,a,u=null,c=[];e.exports={Ou:function(t){c.push(t),u||i()},Yu:function(t){for(var e=0;e<c.length;++e)if(c[e]==t){c.splice(e,1);break}c.length||r()},setPlatformAPI:function(t){a=t},Us:function(t,e){!e&&o||(o=t||1e3),(u&&e||!u)&&(r(),i())},Bs:function(t,e){s=t||1e3}}},{}]},{},[16])(16)}).call(this,n(20),n(19))},function(t,e,n){var i,r;i=[n(7)],void 0===(r=function(t){"use strict";function e(t,e,n){this._persistantLabels={},this._urlParams="",this._cut="",this._httpGet=t,this._eventCount=0,this._isApp=e,this._isScorecardDomain=!0===n,this._hasStarted=!1}return e.IS_ECHO_APP_TAG=!0,e.URL_LIMIT=2048,e.prototype.setPixelURL=function(t){this._url=this._makeBaseUrl(t)},e.prototype.setCustomerC2=function(e){this.setLabel(t.COMSCORE_CUSTOMER,e)},e.prototype.start=function(){this._hasStarted||(this._hasStarted=!0)},e.prototype.setLabel=function(t,e){null===e?this.removeLabel(t):this._persistantLabels[t]=e},e.prototype.removeLabels=function(t){for(var e in t)void 0!==this._persistantLabels[t[e]]&&delete this._persistantLabels[t[e]]},e.prototype.removeLabel=function(t){void 0!==this._persistantLabels[t]&&delete this._persistantLabels[t]},e.prototype.view=function(t){this.send("view",t)},e.prototype.hidden=function(t){this.send("hidden",t)},e.prototype.send=function(t,e,n){var i,r,o=this._persistantLabels,s={};if(this._hasStarted){for(r in this._eventCount++,o)s[r]=o[r];for(r in e)s[r]=e[r];s.ns_type=t,this._isApp&&(s.ns_ap_ev=t,s.ns_ap_ec=this._eventCount),s[this._isApp?"ns_ts":"ns__t"]=+new Date,i=this._createUrl(s),this._httpGet(i,n)}},e.prototype._createUrl=function(e){var n,i=window.encodeURIComponent||escape,r=this._url;for(n in this._urlParams="",this._cut="",e.hasOwnProperty("name")&&this._addUrlParam("name",e.name),e)"name"!==n&&"ns_referrer"!==n&&this._addUrlParam(n,e[n]);return e.hasOwnProperty("ns_referrer")&&this._addUrlParam(this._isScorecardDomain?t.ENV_REFERRER:"ns_referrer",e.ns_referrer),r+=this._urlParams,this._cut.length?r+="ns_cut="+i(this._cut.replace(/&$/,"")):r=r.replace(/&$/,""),r},e.prototype._addUrlParam=function(t,n){var i=window.encodeURIComponent||escape,r=i(t)+"="+i(n)+"&",o=e.URL_LIMIT-8;this._url.length+this._urlParams.length+r.length<o?this._urlParams+=r:this._cut+=r},e.prototype._makeBaseUrl=function(t){for(var e=-1,n=t.charAt(t.length-1),i=0,r=t.length;i<r;i++)"?"===t.charAt(i)&&(e=i);return-1===e?t+="?":"?"!==n&&"&"!==n&&(t+="&"),t},e}.apply(e,i))||(t.exports=r)},function(t,e,n){var i;void 0===(i=function(t){"use strict";function e(){return-1}function i(t,e,n,i){this._sensors=null,this._broker=null,this._media=null,this._meta={},this._stream=null,this._env=i,this._siteCode=n[o.BARB_SITE_CODE],this._debug=n[o.BARB_DEBUG],this._traceId=null,this._isPlaying=!1,this._isEssEnabled=!1,this._isEnabled=!0,this._hasStarted=!1,n[o.ECHO_TRACE]&&this.setTraceId(n[o.ECHO_TRACE]),n[o.USE_ESS]&&(this._isEssEnabled=!0),n&&!1===n[o.ECHO_ENABLED]?this._isEnabled=!1:this._isEnabled=!0}var r=n(38),o=n(3),s=n(2),a=n(1),u=n(39);return i.prototype.start=function(){this._hasStarted||(this._hasStarted=!0)},i.prototype.enable=function(){this._isEnabled||(this._isEnabled=!0)},i.prototype.disable=function(){this._isEnabled&&(this._isEnabled=!1,this.clearMedia())},i.prototype.setTraceId=function(t){this._traceId=t},i.SpringStreams=n(40),i.prototype.addLabels=e,i.prototype.addLabel=e,i.prototype.addManagedLabel=e,i.prototype.removeLabels=e,i.prototype.removeLabel=e,i.prototype.setLoggedInToBBCId=e,i.prototype.setLoggedOutOfBBCId=e,i.prototype.setAppVersion=e,i.prototype.setCounterName=e,i.prototype.setContentLanguage=e,i.prototype.setCacheMode=e,i.prototype.clearCache=e,i.prototype.flushCache=e,i.prototype.setESSEnabled=e,i.prototype.viewEvent=e,i.prototype.errorEvent=e,i.prototype.userActionEvent=e,i.prototype.setPlayerName=function(t){this._meta[r.PLAYER_DESC]=t},i.prototype.setPlayerVersion=function(t){this._meta[r.PLAYER_VERSION]=t},i.prototype.setPlayerIsPopped=e,i.prototype.setPlayerWindowState=e,i.prototype.setPlayerVolume=e,i.prototype.setPlayerIsSubtitled=e,i.prototype.setDestination=e,i.prototype.setProducer=e,i.prototype.setBroker=function(t){return this._broker=t,this},i.prototype.setMedia=function(t){this._eventsEnabled()&&(this.clearMedia(),this._media=t.getClone())},i.prototype.setMediaLength=function(t){this._media.setLength(t)},i.prototype.liveMediaUpdate=function(t){this._media=t.getClone(),this._isPlaying&&this._startTracking()},i.prototype.liveEnrichmentFailed=function(){this._media.getServiceId()||this._media.setServiceId("no-service-id-found"),this._isPlaying&&this._startTracking()},i.prototype.avPlayEvent=function(t,e){this._eventsEnabled()&&this.isValidMedia()&&this._broker&&(this._initSensors(),this._isPlaying=!0,this._media.isLive()&&!this._media.getServiceId()?this._isEssEnabled&&(this._media.getVersionId()||this._media.getVpId())||(this._media.setServiceId("invalid-data"),this._startTracking()):this._startTracking())},i.prototype._initSensors=function(){if(null===this._sensors){if(this._sensors=new i.SpringStreams(this._siteCode),null!==this._env.getSetLocalStorageItem()&&null!==this._env.getGetLocalStorageItem()&&null!==this._env.getHttpGet()){s.info("Using custom PageContext for BARB");var t=new u("com.kma.springstreams",this._env);this._sensors.setPageContext(t)}this._debug&&(this._sensors.debug=function(t){s.info("Spring DEBUG: "+t)})}},i.prototype._startTracking=function(){if(null===this._stream){var t=this._getAttributes(),e=t[r.PID]||" ";this._stream=this._sensors.track(e,t,this._getAdaptor())}},i.prototype._getMostPrecedentIdObject=function(){var t=this._media.getVersionIdObject(),e=this._media.getEpisodeIdObject(),n=this._media.getClipIdObject(),i=this._media.getVpIdObject(),r=this._media.getServiceIdObject();return t.isValueValid()?t:e.isValueValid()?e:n.isValueValid()?n:i.isValueValid()?i:r.isValueValid()?r:null},i.prototype._getAttributes=function(){var t=this._media,e={};if(this._traceId&&(e[o.ECHO_TRACE]=this._traceId),!t.isLive()){var n=this._getMostPrecedentIdObject();null!==n&&(e[r.PID]=n.getValue())}return t.isOnDemand()?e[r.STREAM]="od":t.isDownload()?e[r.STREAM]="dwn":t.isLive()&&t.getServiceIdObject().isValueValid()&&(e[r.STREAM]="live/"+t.getServiceId()),e},i.prototype._getAdaptor=function(){var t,e=this;return t=this._media.isLive()?function(){return e._broker.getTimestamp()}:function(){return e._broker.getPosition()},{getMeta:function(t){return e._meta},getDuration:function(t){var n=0;return e._media.isLive()||(n=Math.floor(e._media.getLength()/1e3)),n},getPosition:function(e){return Math.floor(t()/1e3)}}},i.prototype._eventsEnabled=function(){return this._isEnabled&&this._hasStarted},i.prototype.avPauseEvent=function(){},i.prototype.avBufferEvent=function(){},i.prototype.avEndEvent=function(){this._eventsEnabled()&&(this._isPlaying=!1,this.isValidMedia()&&this.clearMedia())},i.prototype.avRewindEvent=function(){},i.prototype.avFastForwardEvent=function(){},i.prototype.avSeekEvent=function(){},i.prototype.avUserActionEvent=e,i.prototype.clearMedia=function(){this.isValidMedia()&&(this._stream&&this._stream.stop(),this._stream=null,this._media=null)},i.prototype.isValidMedia=function(){return null!==this._media&&this._media.avType===a.AvType.VIDEO},i.prototype.isValidLiveMedia=function(){return this.isValidMedia()&&this._media.isLive()},i.prototype.requiresLabelCleansing=function(){return!0},i}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){t.exports={STREAM:"stream",PID:"cq",WIDTH:"sx",HEIGHT:"sy",PLAYER_DESC:"pl",PLAYER_VERSION:"plv"}},function(t,e,n){var i;void 0===(i=function(){"use strict";function t(t,e){this.namespace=t,this.env=e}return t.prototype.preloadImage=function(t){return this.env.getHttpGet()(t)},t.prototype.getLocalStorageItem=function(t){return this.env.getGetLocalStorageItem()(t)},t.prototype.setLocalStorageItem=function(t,e){return this.env.getSetLocalStorageItem()(t,e)},t.prototype.getWindowLocationURL=function(){return this.env.getURL()},t}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(){function t(t){function e(t){for(var e=0;e<c.length;++e)try{c[e].update(t)}catch(t){i(t)}}function n(t){for(var e=0;e<c.length;++e)try{c[e].sync(t)}catch(t){i(t)}}function i(t){o("",t)}function r(t,e){return function t(e){var n,i,r,o,s,a=/[+&,;=~]/g;switch(typeof e){case"string":return a.test(e)?escape(e).replace(a,function(t){return(void 0)[t]||t}):escape(e);case"number":return isFinite(e)?e.toString():"null";case"boolean":case"null":return e.toString();case"object":if(!e)return"null";if(n=[],"number"==typeof e.length&&!e.propertyIsEnumerable("length")){for(o=e.length,i=0;i<o;i+=1)n.push(t(e[i])||"null");return","+n.join("+")+";"}for(r in e)"string"==typeof r&&"site"!=r&&(s=t(e[r]))&&n.push(t(r)+"="+s);return","+n.join("+")+";"}return""}([[t,e]])}function o(t,e){var n,i=(void 0===f.pageContext.getWindowLocationURL()?"http://":"https"==f.pageContext.getWindowLocationURL().slice(0,5)?"https://web.archive.org/web/20191108214155/https://ssl-":"http://")+((n=e)&&null!=n.site?n.site:u)+"."+a+"/j0="+r(t,e)+"?lt="+(new Date).getTime().toString(36)+function(){if(!this.nlso)try{var t;if(t=f.pageContext.getLocalStorageItem("i00"))return"&c="+t;var e="0000"+Math.ceil((new Date).getTime()/1e3).toString(16)+(32768|65535*Math.random()).toString(16)+"0000";f.pageContext.setLocalStorageItem("i00",e)}catch(t){console.log("error"+t)}return""}();f.pageContext.preloadImage(i),this.debug(i)}function s(t,e,n,r){function o(t){var e;E=[t,t,Math.round((new Date).getTime()/1e3).toString(36)],e=E,l.length<u.maxstates&&l.push(e),A=!0,y=0}function s(){null!=_&&g<_.length&&(h=_[g++],u.debug("switch syncrate to "+h))}function a(t){if(A){try{c.width&&(d.sx=c.width),c.videoWidth&&(d.sx=c.videoWidth),c.height&&(d.sy=c.height),c.videoHeight&&(d.sy=c.videoHeight)}catch(t){}var e;void 0!==f.pageContext.getDeviceID&&void 0!==f.pageContext.getDeviceID()&&(d[f.pageContext.getDeviceID().id_name]=f.pageContext.getDeviceID().id_value),d.uid=v,d.pst=l;try{d.dur&&0!=d.dur||(d.dur=p.getDuration(c))}catch(t){}try{e=p.getMeta(c)}catch(t){}d.vt=Math.round((new Date).getTime()/1e3)-m,u.send(e,d),b=E[1]}A=!1}var u,c,l,d,p,h,_,g,v=Math.round(1e10*Math.random()).toString(36),m=Math.round((new Date).getTime()/1e3),E=[0,0,m.toString(36)],y=0,b=0,A=!0,S=!1;u=t,c=e,p=r||u.HTML5Adapter,d=function(t){var e=new Object;for(var n in t)e[n]=t[n];return e}(n),(l=new Array).push(E),g=0,h=t.syncrate,_=t.getSyncRates(),s(),this.update=function(t){if(!S){var e=E[1],n=e;try{n=Math.round(p.getPosition(c))}catch(t){}try{if(e==n)return void(0<=y&&++y==u.pausesync&&(A=!0));y>=u.pausesync?o(n):e<n-1?o(n):n<e?o(n):(E[1]=n,E[1]-E[0]>=h&&h<=n-b&&(A=!0,s()),y=0)}catch(t){i=!0,u.error(t)}}},this.stop=function(){S||(S=A=!0,a(null))},this.sync=a}this.version="2.0.0";var a="2cnt.net",u="default",c=new Array;this.namespace="com.kma.springstreams",this.syncrate=20,this.pausesync=6,this.maxstates=50;var l,f=this;this.pageContext,function(t){var e;if(t){for(var n in t)n==a&&(e=t[n]);e&&(i=e.syncrates)&&(l=i)}var i}({"2cnt.net":{syncrates:[3,7,10,10,10,10,10,60]}}),t&&(u=t),setInterval(e,200),setInterval(n,2e3),this.getSyncRates=function(){return l},this.track=function(t,e,n){if(void 0===f.pageContext&&(f.pageContext=f.defaultPageContext),t){var i=new s(this,t,e,n);return c.push(i),i}},this.unload=function(){for(var t=0;t<c.length;++t)try{c[t].stop()}catch(t){i(t)}},this.doUpdate=e,this.doSync=n,this.error=i,this.debug=function(t){},this.send=o,this.defaultPageContext={getLocalStorageItem:function(t){return localStorage.getItem(t)},setLocalStorageItem:function(t,e){localStorage.setItem(t,e)},preloadImage:function(t){(new Image).src=t},getWindowLocationURL:function(){return document.location.href}},this.HTML5Adapter={getMeta:function(t){return{pl:"HTML 5 Video",pv:"HTML 5",sx:screen.width,sy:screen.height}},getPosition:function(t){return t.currentTime},getDuration:function(t){return Math.round(t.duration)}},this.DefaultAdapter={getMeta:function(t){return{pl:"DEF",pv:version,sx:screen.width,sy:screen.height}},getPosition:function(t){return(new Date).getTime()/1e3},getDuration:function(t){return 0}},this.WMStreamAdapter={getMeta:function(t){return{pl:"MSWM",plv:t.versionInfo,sx:screen.width,sy:screen.height}},getPosition:function(t){return t.CurrentPosition?t.CurrentPosition:t.currentPosition?t.currentPosition:t.controls&&t.controls.currentPosition?t.controls.currentPosition:t.Controls&&t.Controls.currentPosition?t.Controls.currentPosition:0},getDuration:function(t){if(t.currentMedia){if(t.currentMedia.Duration)return t.currentMedia.Duration;if(t.currentMedia.duration)return t.currentMedia.duration}else if(t.CurrentMedia){if(t.CurrentMedia.duration)return t.CurrentMedia.duration;if(t.CurrentMedia.Duration)return t.CurrentMedia.Duration}}},this.RVStreamAdapter={getMeta:function(t){return{pl:"RV",plv:t.GetVersionInfo(),sx:screen.width,sy:screen.height}},getPosition:function(t){return t.GetPosition()/1e3},getDuration:function(t){return t.GetLength()/1e3}}}return t.prototype.setPageContext=function(t){this.pageContext=t},t}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t){"use strict";function e(){return-1}function i(t,e,n,i){if(this._tag=null,this._broker=null,this._media=null,this._mediaLength=null,this._commonMediaParams=null,this._env=i,this._pageValues={},this._customParams={},this._appName=t,this._appType=e,this._config=n,this._bbc_hid=null,this._lastHitUrl=null,this._lastPlayHitUrl=null,this._lastPage=null,this._counterName=null,this._deviceId=n[a.ECHO_DEVICE_ID]||void 0,this._deviceId||(this._deviceId=y.getCookieValueByName("idrxvr")),!this._deviceId){var r=y.getCookieValueByName("atuserid");r&&(this._deviceId=JSON.parse(decodeURIComponent(r)).val)}n[a.ECHO_TRACE]&&this.setTraceId(n[a.ECHO_TRACE]),this._isEnabled=n&&n[a.ECHO_ENABLED],n&&n[a.KEEPALIVE_DURATION]?this._keepAliveDuration=Number(n[a.KEEPALIVE_DURATION]):this._keepAliveDuration=3e5}var r=n(42),o=n(17),s=n(6),a=n(3),u=n(43),c=n(44),l=n(46),f=n(47),d=n(48),p=n(10),h=n(5),_=n(0),g=n(2),v=n(4),m=n(1),E=n(8),y=n(9),b="info",A="move",S="play",I="stop",T="live",C="ati-host.net",P="logw363.ati-host.net",O="logws1363.ati-host.net",w="api.bbc.co.uk",N="a1.api.bbc.co.uk",R="a1.api.bbc.co.uk";return i.SmartTag=r,i.prototype._getHttpGetMethod=function(){return this._env.getHttpGet()||E._defaultHttpGet},i.prototype._setHTTPGetMethod=function(t){var e=this._getHttpGetMethod(),n=this;n._tag.sendUrl=function(i,r){var o=function(e,i,o){return function(s){n._tag.emit(e,{lvl:o,details:{hit:i,event:s}}),r&&"function"==typeof r&&r(),t&&"function"==typeof t&&t()}},s=o("Tracker:Hit:Sent:Ok",i=n._addLengthToMediaHit(i),"INFO"),a=o("Tracker:Hit:Sent:Error",i,"ERROR");e(i,s,a)}},i.prototype._getDestination=function(t,e){var n;return t&&(n=p.get(t[a.DESTINATION])),!n&&e&&(n=p.get(e.destination)),n||(g.info("Destination not found, using default site"),n=p.DEFAULT),n},i.prototype._getProducer=function(t,e,n){var i;return t&&(i=h.getId(t[a.PRODUCER])),!i&&e&&(i=h.getId(e.producer)),!i&&n&&(g.info("Producer not found, using default producer"),i=n.defaultProducer),i},i.prototype.setDestination=function(t){t||(t=p.DEFAULT,g.info("Destination not found, using default site instead")),t&&(this.setProducer(t.defaultProducer),this._setDomain(t.isTest),this._tag.setConfig(s.LEVEL_1_SITE,t.id))},i.prototype.setProducer=function(t){this.addLabel(s.LEVEL_2_SITE,t)},i.prototype._getCookieDomain=function(t){return t&&t.location&&t.location.hostname&&t.location.hostname.match(/.bbc.com$/)?"bbc.com":"bbc.co.uk"},i.prototype._setDomain=function(t){t?(this._tag.setConfig("domain",C),this._tag.setConfig("collectDomain",P),this._tag.setConfig("collectDomainSSL",O)):(this._tag.setConfig("domain",w),this._tag.setConfig("collectDomain",N),this._tag.setConfig("collectDomainSSL",R))},i.prototype._setSection=function(t,e,n){e&&(t&&t[s.SECTION]?(e[s.CHAPTER_1]=v.cleanCustomVariable(t[s.SECTION]),e.customObject&&delete e.customObject[s.SECTION]):n&&n.section&&(e[s.CHAPTER_1]=v.cleanCustomVariable(n.section)))},i.prototype._createAtiOptions=function(t,e){var n;if(t)switch(n={collectDomain:e.isTest?P:N,collectDomainSSL:e.isTest?O:R,cookieDomain:this._getCookieDomain(window),domain:e.isTest?C:w,pixelPath:t[a.ATI_PIXEL_PATH]||"/hit.xiti",secure:!1!==t[a.ATI_FORCE_HTTPS],site:e.id},t[a.ATI_LOG]&&(n.log=t[a.ATI_LOG]),t[a.ATI_SSL_LOG]&&(n.logSSL=t[a.ATI_SSL_LOG]),t[a.ECHO_DEVICE_ID]&&(n.ClientSideUserId={clientSideMode:"required",userIdCookieDuration:397,userIdExpirationMode:"fixed"}),t[a.ECHO_CACHE_MODE]){case m.EchoCacheMode.ALL:n.Offline={storageMode:a.ATI_CACHE_MODE_ALWAYS};break;default:n.Offline={storageMode:a.ATI_CACHE_MODE_REQUIRED}}return n},i.prototype._createTag=function(t){return new i.SmartTag.Tracker.Tag(t)},i.prototype._initTag=function(t){if(!this._tag){var e=this._config,n=this._getDestination(e,t),i=this._createAtiOptions(e,n);this._tag=this._createTag(i),this._tag.onTrigger("Tracker:Hit:Sent:Ok",this._onHitSent.bind(this)),this._debug&&(this._tag.debug=function(t){g.info("ATI DEBUG: "+t)}),this._deviceId&&this._tag.clientSideUserId.set(this._deviceId),this._bbc_hid&&this._tag.setParam(s.HASHED_ID,this._bbc_hid,{hitType:["all"],permanent:!0});var r=this._getProducer(e,t,n);this.setProducer(r),e&&e[a.APP_CATEGORY]&&this.addLabel(s.APP_CATEGORY,e[a.APP_CATEGORY]),this._setHTTPGetMethod(),this._counterName&&this.setCounterName(this._counterName)}},i.prototype.start=function(t){this._isEnabled&&!this._hasStarted&&(this._hasStarted=!0,this._initTag(t))},i.prototype.enable=function(){this._isEnabled||(this._isEnabled=!0)},i.prototype.disable=function(){this._isEnabled&&(this._isEnabled=!1,this.clearMedia())},i.prototype._onHitSent=function(t,e){e&&e.details&&e.details.hit&&this._setLastHitUrl(e.details.hit)},i.prototype._addLengthToMediaHit=function(t){if(t&&"string"==typeof t&&t.match(/a\=(play|pause|stop|info|refresh|move)/)&&this._mediaLength){var e="m1="+Math.ceil(this._mediaLength/1e3);t=t.replace(/m1\=\d+/g,e)}return t},i.prototype._setLastHitUrl=function(t){t&&"string"==typeof t&&t.match(/a\=play/)?this._lastPlayHitUrl=t:this._lastHitUrl=t},i.prototype.setTraceId=function(t){this.addLabel(a.ECHO_TRACE,t)},i.prototype.addLabels=function(t){if("object"==typeof t)for(var e in t.bbc_identity&&(this.setBBCUser({bbc_hid:t.bbc_hid,signed_in:"1"===t.bbc_identity}),delete t.bbc_hid,delete t.bbc_identity),t)t.hasOwnProperty(e)&&this.addLabel(e,t[e])},i.prototype.addLabel=function(t,e){t===s.BBC_COUNTER_NAME||t===s.LEVEL_2_SITE?this._pageValues[t]=e:this._customParams[t]=e},i.prototype.setLoggedInToBBCId=function(t){this.setBBCUser({bbc_hid:t,signed_in:!0})},i.prototype.setLoggedOutOfBBCId=function(){this._tag&&this._tag.delParam(s.HASHED_ID),this._bbc_hid=null},i.prototype.setAppVersion=function(t){t&&this._tag&&this._tag.setParam(s.APP_VERSION,"["+t+"]",{hitType:["all"],permanent:!0})},i.prototype.setBBCUser=function(t){t.bbc_hid?this._bbc_hid=t.bbc_hid:t.signed_in&&(this._bbc_hid="unidentified-user"),this._tag&&!this._customParams.bbc_id_wait&&this._tag.setParam(s.HASHED_ID,this._bbc_hid,{hitType:["all"],permanent:!0})},i.prototype.addManagedLabel=e,i.prototype.removeLabels=function(t){for(var e=0,n=t.length;e<n;e++)this.removeLabel(t[e])},i.prototype.removeLabel=function(t){t===s.BBC_COUNTER_NAME||t===s.LEVEL_2_SITE?delete this._pageValues[t]:delete this._customParams[t]},i.prototype.setCounterName=function(t){var e={name:this._counterName=t,level2:this._pageValues[s.LEVEL_2_SITE]};this._tag&&(this._tag.page.set(e),this._lastPage=e)},i.prototype.setContentLanguage=e,i.prototype.setCacheMode=e,i.prototype.clearCache=function(){this._tag.offline.remove()},i.prototype.flushCache=function(){this._tag.offline.send()},i.prototype.setESSEnabled=e,i.prototype.viewEvent=function(t,e){if(this._eventsEnabled())return this.addLabel(s.BBC_COUNTER_NAME,t),this.counterName=t,o.get().then(function(t){var n=_.clone(this._customParams),i=c.create(this._appName,this._appType,n,e,t,document),r=_.extend(e,!0,s.ECHO_EVENT_NAME,"view"),o=_.combineObjects(n,r,!1),a=_.clone(this._pageValues);a.customObject=o,i&&(a.customVars=i),this._setSection(r,a,t),this._tag.page.send(a),this._lastPage=a}.bind(this))},i.prototype.errorEvent=e,i.prototype.userActionEvent=function(t,e,n){if(this._eventsEnabled()){var i=_.extend(n,!0,s.ECHO_EVENT_NAME,"userAct"),r=_.combineObjects(this._customParams,i,!1),o=_.clone(this._pageValues);o&&(o.actionName=e,o.actionType=t,o.user=this._bbc_hid,o[s.BBC_COUNTER_NAME]=this.counterName,o.customObject=r,Boolean(o.customObject[s.IS_BACKGROUND])?d.sendImpressionEvent(this._tag,o):d.sendClickEvent(this._tag,o))}},i.prototype.setPlayerName=function(t){this._mediaPlayerName=t},i.prototype.setPlayerVersion=function(t){this._mediaPlayerVersion=t},i.prototype.setPlayerIsPopped=e,i.prototype.setPlayerWindowState=e,i.prototype.setPlayerVolume=e,i.prototype.setPlayerIsSubtitled=e,i.prototype.setBroker=function(t){return this._broker=t,this},i.prototype.setMedia=function(t){this._eventsEnabled()&&(this._mediaPlayerName&&!t.getMediaPlayerName()&&t.setMediaPlayerName(this._mediaPlayerName),this._mediaPlayerVersion&&!t.getMediaPlayerVersion()&&t.setMediaPlayerVersion(this._mediaPlayerVersion),this.clearMedia(),this._media=t,this.addMedia(this._media))},i.prototype.setMediaLength=function(t){this._mediaLength=t,this._media.setLength(t)},i.prototype.setMediaBitrate=e,i.prototype.setMediaCodec=e,i.prototype.setMediaCDN=e,i.prototype.liveMediaUpdate=function(t,e,n){_.assert("number"==typeof e,"newPosition must be a number"),_.assert("number"==typeof n,"oldPosition must be a number"),t.setProducerById(this._media.getProducer()),this._sendMediaEvent(I),this._media=t,this.addMedia(this._media),this._sendMediaEvent(S)},i.prototype.liveEnrichmentFailed=e,i.prototype._getIdObjectValue=function(t){return null!==t&&t.isValueValid()?t.getValue():"invalid-data"},i.prototype._getMostPrecedentIdObject=function(){var t=this._media.getVersionIdObject(),e=this._media.getEpisodeIdObject(),n=this._media.getClipIdObject(),i=this._media.getVpIdObject(),r=this._media.getServiceIdObject();return t.isValueValid()?t:e.isValueValid()?e:n.isValueValid()?n:i.isValueValid()?i:r.isValueValid()?r:null},i.prototype._eventsEnabled=function(){return this._isEnabled&&this._hasStarted},i.prototype.addMedia=function(t){if(this._tag&&this._tag.richMedia){this._commonMediaParams={playerId:t.getPlayerId(),mediaLabel:this._getIdObjectValue(this._getMostPrecedentIdObject()),mediaTheme1:l.constructThemeOne(t),mediaTheme2:l.constructThemeTwo(t),mediaTheme3:l.constructThemeThree(t)};var e={mediaType:t.getAvType(),playerId:this._commonMediaParams.playerId,duration:t&&t.getLength()?Math.ceil(t.getLength()/1e3):0,mediaLabel:this._commonMediaParams.mediaLabel,mediaTheme1:this._commonMediaParams.mediaTheme1,mediaTheme2:this._commonMediaParams.mediaTheme2,mediaTheme3:this._commonMediaParams.mediaTheme3,isEmbedded:t.isEmbedded(),broadcastMode:t.getMediaConsumptionMode()===T?T:"clip",refreshDuration:{0:10,1:60}};t.getProducer()?e.mediaLevel2=t.getProducer():e.mediaLevel2=0,this._tag.richMedia.add(e)}},i.prototype._sendMediaEvent=function(t,e){this._commonMediaParams&&f.sendEvent(this._tag,this._commonMediaParams,t,e)},i.prototype.avPlayEvent=function(t,e){this._eventsEnabled()&&!this._media.getPlaying()&&(this._media.getBuffering()?this._sendMediaEvent(b,{isBuffering:!1}):(this._sendMediaEvent(S),this._addKeepAliveEventSchedule()))},i.prototype._addKeepAliveEventSchedule=function(){this._eventsEnabled()&&(this._keepAliveIntervalId||(this._keepAliveIntervalId=setInterval(this._sendKeepAliveEvent.bind(this),this._keepAliveDuration)))},i.prototype._removeKeepAliveEventSchedule=function(){this._keepAliveIntervalId&&(clearInterval(this._keepAliveIntervalId),this._keepAliveIntervalId=void 0)},i.prototype._sendKeepAliveEvent=function(){if(this._eventsEnabled()){var t={name:"keepalive",level2:this._media&&this._media.getProducer()?this._media.getProducer():0};this._tag.page.send(t),this._lastPage&&this._tag.page.set(this._lastPage)}},i.prototype.avPauseEvent=function(){this._eventsEnabled()&&this._sendMediaEvent("pause")},i.prototype.avBufferEvent=function(){this._eventsEnabled()&&this._sendMediaEvent(b,{isBuffering:!0})},i.prototype.avEndEvent=function(){this._eventsEnabled()&&(this._isMediaLoaded=!1,this._removeKeepAliveEventSchedule(),this._sendMediaEvent(I),this.isValidMedia()&&this.clearMedia())},i.prototype.avRewindEvent=function(){this._eventsEnabled()&&this._sendMediaEvent(A)},i.prototype.avFastForwardEvent=function(){this._eventsEnabled()&&this._sendMediaEvent(A)},i.prototype.avSeekEvent=function(){this._eventsEnabled()&&this._sendMediaEvent(A)},i.prototype.avUserActionEvent=function(t,e,n,i){if(this._eventsEnabled()&&"echo_hb"===t&&"echo_hb_5"===e){var r=this._addLengthToMediaHit(this._lastPlayHitUrl);u.sendRefreshEvent(this._tag,this._getHttpGetMethod(),r)}},i.prototype.clearMedia=function(){this.isValidMedia()&&(this._isMediaLoaded&&this.avEndEvent(),this._stream=null,this._media=null,this._commonMediaParams=null,this._tag.richMedia.removeAll())},i.prototype.isValidMedia=function(){return null!==this._media&&this._media.avType===m.AvType.VIDEO},i.prototype.isValidLiveMedia=function(){return this.isValidMedia()&&this._media.isLive()},i.prototype.getDeviceId=function(){return this._deviceId},i.prototype.requiresLabelCleansing=function(){return!0},i}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(){return function(){var t,e={site:596068,log:"",logSSL:"",domain:"ati-host.net",collectDomain:"logw363.ati-host.net",collectDomainSSL:"logws1363.ati-host.net",secure:!0,pixelPath:"/hit.xiti",disableCookie:!1,disableStorage:!1,cookieSecure:!1,cookieDomain:"",preview:!1,plgs:["Campaigns","Clicks","ClientSideUserId","ContextVariables","Offline","OnSiteAds","Page","RichMedia"],lazyLoadingPath:"",documentLevel:"document",redirect:!1,activateCallbacks:!0,medium:"",ignoreEmptyChapterValue:!0,base64Storage:!1,sendHitWhenOptOut:!0};(t=window).Echo1200ATInternet=t.Echo1200ATInternet||{},t.Echo1200ATInternet.Tracker=t.Echo1200ATInternet.Tracker||{},t.Echo1200ATInternet.Tracker.Plugins=t.Echo1200ATInternet.Tracker.Plugins||{},window.Echo1200ATInternet.Utils=new function(){function t(t){return null===t?"":(t+"").replace(i,"")}var e=this,n=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g,i=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g");e.isLocalStorageAvailable=function(){try{var t=localStorage;return t.setItem("__storage_test__","__storage_test__"),t.removeItem("__storage_test__"),!0}catch(t){return!1}},e.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){var n,i,r,o,s,a,u="",c=0;for(t=e.Base64._utf8_encode(t);c<t.length;)o=(n=t.charCodeAt(c++))>>2,n=(3&n)<<4|(i=t.charCodeAt(c++))>>4,s=(15&i)<<2|(r=t.charCodeAt(c++))>>6,a=63&r,isNaN(i)?s=a=64:isNaN(r)&&(a=64),u=u+this._keyStr.charAt(o)+this._keyStr.charAt(n)+this._keyStr.charAt(s)+this._keyStr.charAt(a);return u},decode:function(t){var n,i,r,o,s,a="",u=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<t.length;)n=(n=this._keyStr.indexOf(t.charAt(u++)))<<2|(i=this._keyStr.indexOf(t.charAt(u++)))>>4,i=(15&i)<<4|(o=this._keyStr.indexOf(t.charAt(u++)))>>2,r=(3&o)<<6|(s=this._keyStr.indexOf(t.charAt(u++))),a+=String.fromCharCode(n),64!=o&&(a+=String.fromCharCode(i)),64!=s&&(a+=String.fromCharCode(r));return e.Base64._utf8_decode(a)},_utf8_encode:function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?e+=String.fromCharCode(i):(127<i&&i<2048?e+=String.fromCharCode(i>>6|192):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128)),e+=String.fromCharCode(63&i|128))}return e},_utf8_decode:function(t){for(var e,n,i,r="",o=0;o<t.length;)(e=t.charCodeAt(o))<128?(r+=String.fromCharCode(e),o++):191<e&&e<224?(n=t.charCodeAt(o+1),r+=String.fromCharCode((31&e)<<6|63&n),o+=2):(n=t.charCodeAt(o+1),i=t.charCodeAt(o+2),r+=String.fromCharCode((15&e)<<12|(63&n)<<6|63&i),o+=3);return r}},e.loadScript=function(t,e){var n;e=e||function(){},(n=document.createElement("script")).type="text/javascript",n.src=t.url,n.async=!1,n.defer=!1,n.onload=n.onreadystatechange=function(t){("load"===(t=t||window.event).type||/loaded|complete/.test(n.readyState)&&(!document.documentMode||document.documentMode<9))&&(n.onload=n.onreadystatechange=n.onerror=null,e(null,t))},n.onerror=function(t){n.onload=n.onreadystatechange=n.onerror=null,e({msg:"script not loaded",event:t})};var i=document.head||document.getElementsByTagName("head")[0];i.insertBefore(n,i.lastChild)},e.cloneSimpleObject=function(t,n){if("object"!=typeof t||null===t||t instanceof Date)return t;var i,r=new t.constructor;for(i in t)t.hasOwnProperty(i)&&(void 0===i||n&&void 0===t[i]||(r[i]=e.cloneSimpleObject(t[i])));return r},e.jsonSerialize=function(t){try{return"undefined"!=typeof JSON&&JSON.stringify?JSON.stringify(t):function t(e){var n=typeof e;if("object"!==n||null===e)return"string"===n&&(e='"'+e+'"'),String(e);var i,r,o=[],s=e&&e.constructor===Array;for(i in e)e.hasOwnProperty(i)&&"function"!=(n=typeof(r=e[i]))&&"undefined"!==n&&("string"===n?r='"'+r.replace(/[^\\]"/g,'\\"')+'"':"object"===n&&null!==r&&(r=t(r)),o.push((s?"":'"'+i+'":')+String(r)));return(s?"[":"{")+String(o)+(s?"]":"}")}(t)}catch(t){return null}},e.jsonParse=function(e){try{return"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e+""):(o=null,(i=t((i=e)+""))&&!t(i.replace(n,function(t,e,n,i){return r&&e&&(o=0),0===o?t:(r=n||e,o+=!i-!n,"")}))?Function("return "+i)():null)}catch(e){return null}var i,r,o},e.arrayIndexOf=function(t,e){return Array.indexOf?t.indexOf(e):function(t){if(null==this)throw new TypeError;var e=Object(this),n=e.length>>>0;if(0===n)return-1;var i=0;if(1<arguments.length&&((i=Number(arguments[1]))!=i?i=0:0!=i&&1/0!=i&&-1/0!=i&&(i=(0<i||-1)*Math.floor(Math.abs(i)))),n<=i)return-1;for(i=0<=i?i:Math.max(n-Math.abs(i),0);i<n;i++)if(i in e&&e[i]===t)return i;return-1}.apply(t,[e])},e.uuid=function(){return{v4:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},num:function(t){var e,n=new Date,i=function(t){return(t-=100*Math.floor(t/100))<10?"0"+t:String(t)};return i(n.getHours())+""+i(n.getMinutes())+i(n.getSeconds())+(e=t-6,Math.floor((9*Math.random()+1)*Math.pow(10,e-1)))}}},e.getObjectKeys=function(t){var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n},e.completeFstLevelObj=function(t,e,n){if(t){if(e)for(var i in e)!e.hasOwnProperty(i)||t[i]&&!n||(t[i]=e[i])}else t=e;return t},e.isPreview=function(){return window.navigator&&"preview"===window.navigator.loadPurpose},e.isPrerender=function(t){var n,i=!1,r=["webkit","ms"];if("prerender"===document.visibilityState)n="visibilitychange";else for(var o=0;o<r.length;o++)"prerender"===document[r[o]+"VisibilityState"]&&(n=r[o]+"visibilitychange");if(void 0!==n){var s=function(i){t(i),e.removeEvtListener(document,n,s)};e.addEvtListener(document,n,s),i=!0}return i};var r=e.addEvtListener=function(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on"+e,n)},o=e.removeEvtListener=function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent&&t.detachEvent("on"+e,n)};e.hashcode=function(t){var e=0;if(0===t.length)return e;for(var n=0;n<t.length;n++)e=0|(e=(e<<5)-e+t.charCodeAt(n));return e},e.setLocation=function(t){var e=t.location;t=window[t.target]||window,e&&(t.location.href=e)},e.dispatchCallbackEvent=function(t){var e;if("function"==typeof window.Event)e=new Event("ATCallbackEvent");else try{(e=document.createEvent("Event")).initEvent&&e.initEvent("ATCallbackEvent",!0,!0)}catch(t){}e&&"function"==typeof document.dispatchEvent&&(e.name=t,document.dispatchEvent(e))},e.addCallbackEvent=function(t){r(document,"ATCallbackEvent",t)},e.removeCallbackEvent=function(t){e.removeEvent("ATCallbackEvent",t)},function(){function t(t,e){var n;e=e||{bubbles:!1,cancelable:!1,detail:void 0};try{(n=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail)}catch(t){}return n}"function"==typeof window.CustomEvent?window.ATCustomEvent=window.CustomEvent:("function"==typeof window.Event&&(t.prototype=window.Event.prototype),window.ATCustomEvent=t)}(),e.addEvent=function(t,n,i,o){e[t]=new ATCustomEvent(t,{detail:{name:n,id:i}}),r(document,t,o)},e.removeEvent=function(t,e){o(document,t,e)},e.dispatchEvent=function(t,n){e[t]=e[t]||new ATCustomEvent(t,{detail:{name:n,id:-1}});try{document.dispatchEvent(e[t])}catch(t){}},e.addOptOutEvent=function(t,n){e.addEvent("ATOptOutEvent","clientsideuserid",t,n)},e.removeOptOutEvent=function(t){e.removeEvent("ATOptOutEvent",t)},e.dispatchOptOutEvent=function(t){e.optedOut=t,e.dispatchEvent("ATOptOutEvent","clientsideuserid")},e.userOptedOut=function(){e.dispatchOptOutEvent(!0)},e.userOptedIn=function(){e.dispatchOptOutEvent(!1)},e.isOptedOut=function(){if(null===e.optedOut){var t;if(t=null,e.isLocalStorageAvailable()&&(t=localStorage.getItem("atoptedout")),null===t){var n=/(?:^| )atoptedout=([^;]+)/.exec(document.cookie);null!==n&&(t=n[1])}if(null!==t)try{t=decodeURIComponent(t)}catch(t){}t=!(!t||null===(t=e.jsonParse(t)||e.jsonParse(e.Base64.decode(t)))||!t.val),e.optedOut=t}return!!e.optedOut},e.optedOut=null,e.consentReceived=function(t){e.consent=!!t},e.consent=!0,e.isTabOpeningAction=function(t){var e=!1;return t&&(t.ctrlKey||t.shiftKey||t.metaKey||t.button&&1===t.button)&&(e=!0),e}};var n=function(t){var e=this,n=1600,i=["dz"],r=function(t,e,n,i,r,o,s){return{param:t="&"+t+"=",paramSize:t.length,str:e,strSize:e.length,truncate:n,multihit:i,separator:r||"",encode:o,last:s}},o=function(t,e){var n,i="",r=0,o=0,s=0,a=null,u=null;for(n in t)t.hasOwnProperty(n)&&(a=t[n])&&(r=e-o,a.last&&null!==u?u[n]=a:a.strSize+a.paramSize<=r?(i+=a.param+a.str,o+=a.paramSize+a.strSize):((u=u||{})[n]=a).truncate&&(s=r-a.paramSize,a.separator&&(r=a.str.substring(0,r),s=a.encode?r.lastIndexOf(encodeURIComponent(a.separator))||s:r.lastIndexOf(a.separator)||s),i+=a.param+a.str.substring(0,s),o+=a.paramSize+a.str.substring(0,s).size,u[n].str=a.str.substring(s,a.strSize),u[n].strSize=u[n].str.length));return[i,u]},s=function(e,s,a,u,c){!function(e,n){var i=t.getConfig("secure"),r="";if(e)r=e;else{r="https:"===document.location.protocol;var o=(r=i||r)?t.getConfig("logSSL"):t.getConfig("log"),s=t.getConfig("domain");r=o&&s?o+"."+s:r?t.getConfig("collectDomainSSL"):t.getConfig("collectDomain")}o=t.getConfig("baseURL"),"/"!==(s=(s=t.getConfig("pixelPath"))||"/").charAt(0)&&(s="/"+s);var a=t.getConfig("site");if((o||r&&s)&&a){var u="//";i&&(u="https:"+u),n&&n(null,(o||u+r+s)+"?s="+a)}else n&&n({message:"Config error"})}(u,function(u,l){u?c&&c(u):(n=1600-(l.length+27),function(e,s,a,u){var c,l="",f=function(e){if(e==={})return[];var s,a,u,c,f,d,p,h,_,g,v=[],m=!(s={}),E=void 0,y="";for(g in e)if(e.hasOwnProperty(g))if(p=d=f=c=!1,a=e[g].value,"boolean"==typeof(u=e[g].options||{}).encode&&(c=u.encode),"function"==typeof a&&(a=a()),a=a instanceof Array?a.join(u.separator||","):"object"==typeof a?Echo1200ATInternet.Utils.jsonSerialize(a):void 0===a?"undefined":a.toString(),c&&(a=encodeURIComponent(a)),-1<Echo1200ATInternet.Utils.arrayIndexOf(i,g)?f=!0:"boolean"==typeof u.truncate&&(f=u.truncate),"boolean"==typeof u.multihit&&(d=u.multihit),"boolean"==typeof u.last&&(p=u.last),a=r(g,a,f,d,u.separator,c,p),d)n-=a.paramSize+a.strSize,y+=a.param+a.str;else if(p)a.paramSize+a.strSize>n&&(a.str=a.str.substring(0,n-a.paramSize),a.strSize=a.str.length),h=g,_=a;else if(s[g]=a,s[g].paramSize+s[g].strSize>n&&!s[g].truncate){t.emit("Tracker:Hit:Build:Error",{lvl:"ERROR",msg:'Too long parameter: "'+s[g].param+'"',details:{value:s[g].str}}),m=!0,E=g;break}if(h&&(s[h]=_),e=(s=[s,m,E,y])[0],m=s[1],l=s[3],m&&((e=e[s=s[2]]).str=e.str.substring(0,n-e.paramSize),e.strSize=e.str.length,(m={}).mherr=r("mherr","1",!1,!1,"",!1),m[s]=e,e=m),null===(e=o(e,n))[1])v=e[0];else for(v.push(e[0]);null!==e[1];)e=o(e[1],n),v.push(e[0]);return v},d="";if(t.buffer.presentInFilters(a,"hitType")||(a=t.buffer.addInFilters(a,"hitType",["page"])),a=t.buffer.addInFilters(a,"hitType",["all"]),"object"==typeof e&&null!==e){var p,h,_,g;for(c in a=t.buffer.addInFilters(a,"permanent",!0),a=t.buffer.get(a,!0),e)if(e.hasOwnProperty(c)){if(d=e[c],p={},s&&"object"==typeof e[c]){for(g in _=h=!1,e[c])e[c].hasOwnProperty(g)&&("value"===g?h=!0:"options"===g&&"object"==typeof e[c].options&&null!==e[c].options&&(_=!0));h&&_&&(d=e[c].value,p=e[c].options)}a[c]={value:d,options:p}}d=f(a)}else for(c in d=f(a=t.buffer.get(a,!0)),a)!a.hasOwnProperty(c)||a[c].options&&a[c].options.permanent||t.buffer.del(c);u&&u(d,l)}(e,s,a,function(t,e){var n=[],i=Echo1200ATInternet.Utils.uuid().num(13);if(t instanceof Array)for(var r=1;r<=t.length;r++)n.push(l+e+"&mh="+r+"-"+t.length+"-"+i+t[r-1]);else n.push(l+e+t);c&&c(null,n)}))})};e.send=function(n,i,r,o,a){s(n,a,i,o,function(n,i){if(n)t.emit("Tracker:Hit:Build:Error",{lvl:"ERROR",msg:n.message,details:{}}),r&&r();else for(var o=0;o<i.length;o++)e.sendUrl(i[o],r)})},e.sendUrl=function(e,n){var i=function(e,i,r){return function(o){var s="";if("/"===i.charAt(0)){s=t.getConfig("secure");var a="https:"===document.location.protocol;s=s||a?"https:":"http:"}t.emit(e,{lvl:r,details:{hit:s+i,event:o}}),n&&n()}};if(Echo1200ATInternet.Utils.isOptedOut()&&!t.getConfig("sendHitWhenOptOut"))i("Tracker:Hit:Sent:NoTrack",e,"INFO")();else{var r=new Image;r.onload=i("Tracker:Hit:Sent:Ok",e,"INFO"),r.onerror=i("Tracker:Hit:Sent:Error",e,"ERROR"),r.src=e}}},i=function(){function t(t,e,n){for(var i=[],r=0;r<t.length;r++)t[r].callback(e,n),t[r].singleUse||i.push(t[r]);return i}var e={};this.on=function(t,n,i){return i=i||!1,function t(e,n,i,r){var o=e.shift();return"*"===o?(n["*"]=n["*"]||[],n["*"].push({callback:i,singleUse:r}),n["*"].length-1):0===e.length?t([o,"*"],n,i,r):(n["*"]=n["*"]||[],n[o]=n[o]||{},t(e,n[o],i,r))}(t.split(":"),e,n,i)},this.emit=function(n,i){e["*"]&&(e["*"]=t(e["*"],n,i)),function e(n,i,r,o){var s=i.shift();"*"!==s&&(0===i.length?e(n,[s,"*"],r,o):r[s]&&(r[s]["*"]=t(r[s]["*"],n,o),e(n,i,r[s],o)))}(n,n.split(":"),e,i)}},r=function(t){var e={},n={},i=0,r={},o=0,s=function(t){var n=!1;return e[t]&&(n=!0),n},a=this.unload=function(n){return s(n)?(e[n]=void 0,t.emit("Tracker:Plugin:Unload:"+n+":Ok",{lvl:"INFO"})):t.emit("Tracker:Plugin:Unload:"+n+":Error",{lvl:"ERROR",msg:"not a known plugin"}),t},u=this.load=function(r,o){return"function"==typeof o?void 0===t.getConfig.plgAllowed||0===t.getConfig.plgAllowed.length||-1<t.getConfig.plgAllowed.indexOf(r)?(e[r]=new o(t),n[r]&&s(r)&&(n[r]=!1,i--,s(r+"_ll")&&a(r+"_ll"),0===i&&t.emit("Tracker:Plugin:Lazyload:File:Complete",{lvl:"INFO",msg:"LazyLoading triggers are finished"})),t.emit("Tracker:Plugin:Load:"+r+":Ok",{lvl:"INFO"})):t.emit("Tracker:Plugin:Load:"+r+":Error",{lvl:"ERROR",msg:"Plugin not allowed",details:{}}):t.emit("Tracker:Plugin:Load:"+r+":Error",{lvl:"ERROR",msg:"not a function",details:{obj:o}}),t},c=this.isLazyloading=function(t){return t?!0===n[t]:0!==i},l=function(t){return!s(t)&&!c(t)&&s(t+"_ll")},f=function(e){n[e]=!0,i++,Echo1200ATInternet.Utils.loadScript({url:t.getConfig("lazyLoadingPath")+e+".js"})};this.isExecWaitingLazyloading=function(){return 0!==o},t.exec=this.exec=function(n,i,a,u){var d=null,p=function(t,n,i,r){n=n.split("."),s(t)&&e[t][n[0]]&&(d=1<n.length&&e[t][n[0]][n[1]]?e[t][n[0]][n[1]].apply(e[t],i):e[t][n[0]].apply(e[t],i)),r&&r(d)},h=function(e,n,i,s){var a;r[a=e]?r[a]++:r[a]=1,o++,t.onTrigger("Tracker:Plugin:Load:"+e+":Ok",function(){p(e,n,i,function(n){r[e]--,0==--o&&t.emit("Tracker:Plugin:Lazyload:Exec:Complete",{lvl:"INFO",msg:"All exec waiting for lazyloading are done"}),s&&s(n)})},!0)};l(n)?(h(n,i,a,u),f(n)):c(n)?h(n,i,a,u):p(n,i,a,u)},this.waitForDependencies=function(n,i){var r,o=function(t){for(var n={mcount:0,plugins:{}},i=0;i<t.length;i++)e.hasOwnProperty(t[i])||(n.mcount++,n.plugins[t[i]]=!0);return n}(n);if(0===o.mcount)t.emit("Tracker:Plugin:Dependencies:Loaded",{lvl:"INFO",details:{dependencies:n}}),i();else for(var s in o.plugins)o.plugins.hasOwnProperty(s)&&(t.emit("Tracker:Plugin:Dependencies:Error",{lvl:"WARNING",msg:"Missing plugin "+s}),t.onTrigger("Tracker:Plugin:Load:"+s,function(t,e){var n=t.split(":"),r=n[3];"Ok"===n[4]&&(o.plugins[r]=!1,0==--o.mcount&&i())},!0),l(r=s)&&f(r))},this.init=function(){for(var t in Echo1200ATInternet.Tracker.pluginProtos)Echo1200ATInternet.Tracker.pluginProtos.hasOwnProperty(t)&&u(t,Echo1200ATInternet.Tracker.pluginProtos[t])}},o=function(t){var e=this,n={},i=function(t){if(t.name){var n=!0;if("undefined"!=typeof configuration&&(configuration.include instanceof Array&&-1===Echo1200ATInternet.Utils.arrayIndexOf(configuration.include,t.name)&&(n=!1),configuration.exclude instanceof Array&&-1!==Echo1200ATInternet.Utils.arrayIndexOf(configuration.exclude,t.name)&&(n=!1)),Echo1200ATInternet.Callbacks&&Echo1200ATInternet.Callbacks.hasOwnProperty(t.name)){var i={};i[t.name]={function:Echo1200ATInternet.Callbacks[t.name]},n&&e.load(t.name,i[t.name].function),Echo1200ATInternet.Tracker.callbackProtos[t.name]||(Echo1200ATInternet.Tracker.callbackProtos[t.name]=i[t.name])}}};e.load=function(e,n){return"function"==typeof n?(new n(t),t.emit("Tracker:Callback:Load:"+e+":Ok",{lvl:"INFO",details:{obj:n}})):t.emit("Tracker:Callback:Load:"+e+":Error",{lvl:"ERROR",msg:"not a function",details:{obj:n}}),t},e.init=function(){if(t.getConfig("activateCallbacks")){var r=t.getConfig("callbacks");if(void 0!==r&&r.include instanceof Array)for(var o=0;o<r.include.length;o++)Echo1200ATInternet.Callbacks&&Echo1200ATInternet.Callbacks.hasOwnProperty(r.include[o])&&(n[r.include[o]]={function:Echo1200ATInternet.Callbacks[r.include[o]]},Echo1200ATInternet.Tracker.callbackProtos[r.include[o]]||(Echo1200ATInternet.Tracker.callbackProtos[r.include[o]]=n[r.include[o]]));else for(o in Echo1200ATInternet.Callbacks)Echo1200ATInternet.Callbacks.hasOwnProperty(o)&&(n[o]={function:Echo1200ATInternet.Callbacks[o]},Echo1200ATInternet.Tracker.callbackProtos[o]||(Echo1200ATInternet.Tracker.callbackProtos[o]=n[o]));if(void 0!==r&&r.exclude instanceof Array)for(o=0;o<r.exclude.length;o++)n[r.exclude[o]]&&(n[r.exclude[o]]=void 0);for(var s in n)n.hasOwnProperty(s)&&n[s]&&e.load(s,n[s].function);Echo1200ATInternet.Utils.addCallbackEvent(i)}},e.removeCallbackEvent=function(){Echo1200ATInternet.Utils.removeCallbackEvent(i)}},s=function(t){var e={};this.set=function(t,n,i){(i=i||{}).hitType=i.hitType||["page"],e[t]={value:n,options:i}};var n=function(t,e,n){return(t=window.Echo1200ATInternet.Utils.cloneSimpleObject(t[e]))&&!n?t.value:t};this.get=function(t,i){var r={};if("string"==typeof t)r=n(e,t,i);else for(var o=function t(n,i){if(!(n&&i instanceof Array&&n instanceof Array))return[];if(0===n.length)return i;var r,o=n[0],s=[],a=window.Echo1200ATInternet.Utils.cloneSimpleObject(n);a.shift();for(var u=0;u<i.length;u++)if("object"!=typeof o[1])e[i[u]]&&e[i[u]].options[o[0]]===o[1]&&s.push(i[u]);else{r=o[1].length;for(var c=0;c<r;c++)if(e[i[u]]&&e[i[u]].options[o[0]]instanceof Array&&0<=window.Echo1200ATInternet.Utils.arrayIndexOf(e[i[u]].options[o[0]],o[1][c])){s.push(i[u]);break}}return t(a,s)}(t,window.Echo1200ATInternet.Utils.getObjectKeys(e)),s=0;s<o.length;s++)r[o[s]]=n(e,o[s],i);return r},this.presentInFilters=function t(e,n){return!(!e||0===e.length)&&(e[0][0]===n||t(e.slice(1),n))},this.addInFilters=function t(e,n,i,r){if(!e||0===e.length)return r?[]:[[n,i]];var o=e[0][0],s=e[0][1];return o===n&&(s instanceof Array&&-1===window.Echo1200ATInternet.Utils.arrayIndexOf(s,i[0])&&s.push(i[0]),r=!0),[[o,s]].concat(t(e.slice(1),n,i,r))},this.del=function(t){e[t]=void 0},this.clear=function(){e={}}};Echo1200ATInternet.Tracker.Tag=function(t,a,u){a=a||{};var c=this;c.version="5.17.1";var l=window.Echo1200ATInternet.Utils.cloneSimpleObject(a);c.triggers=new i(c),c.emit=c.triggers.emit,c.onTrigger=c.triggers.on;var f,d=window.Echo1200ATInternet.Utils.cloneSimpleObject(e)||{};for(f in t)t.hasOwnProperty(f)&&(d[f]=t[f]);c.getConfig=function(t){return d[t]},c.setConfig=function(t,e,n){void 0!==d[t]&&n||(c.emit("Tracker:Config:Set:"+t,{lvl:"INFO",details:{bef:d[t],aft:e}}),d[t]=e)},c.configPlugin=function(t,e,n){for(var i in d[t]=d[t]||{},e)e.hasOwnProperty(i)&&void 0===d[t][i]&&(d[t][i]=e[i]);return n&&(n(d[t]),c.onTrigger("Tracker:Config:Set:"+t,function(t,e){n(e.details.aft)})),d[t]},c.getContext=function(t){return l[t]},c.setContext=function(t,e){c.emit("Tracker:Context:Set:"+t,{lvl:"INFO",details:{bef:l[t],aft:e}}),l[t]=e},c.delContext=function(t,e){if(c.emit("Tracker:Context:Deleted:"+t+":"+e,{lvl:"INFO",details:{key1:t,key2:e}}),t)l.hasOwnProperty(t)&&(e?l[t]&&l[t].hasOwnProperty(e)&&(l[t][e]=void 0):l[t]=void 0);else if(e)for(var n in l)l.hasOwnProperty(n)&&l[n]&&l[n].hasOwnProperty(e)&&(l[n][e]=void 0)},c.plugins=new r(c),c.buffer=new s(c),c.setParam=c.buffer.set,c.getParams=function(t){return c.buffer.get(t,!1)},c.getParam=c.buffer.get,c.delParam=c.buffer.del,c.builder=new n(c),c.sendHit=c.builder.send,c.sendUrl=c.builder.sendUrl,c.callbacks=new o(c),c.setParam("ts",function(){return(new Date).getTime()},{permanent:!0,hitType:["all"]}),(c.getConfig("disableCookie")||c.getConfig("disableStorage"))&&c.setParam("idclient","Consent-NO",{permanent:!0,hitType:["all"]}),c.getConfig("medium")&&c.setParam("medium",c.getConfig("medium"),{permanent:!0,hitType:["all"]}),c.plugins.init(),c.callbacks.init(),Echo1200ATInternet.Tracker.instances.push(c),c.emit("Tracker:Ready",{lvl:"INFO",msg:"Tracker initialized",details:{tracker:c,args:{config:t,context:a,callback:u}}}),u&&u(c)},Echo1200ATInternet.Tracker.instances=[],Echo1200ATInternet.Tracker.pluginProtos={},Echo1200ATInternet.Tracker.addPlugin=function(t,e){if(e=e||Echo1200ATInternet.Tracker.Plugins[t],!Echo1200ATInternet.Tracker.pluginProtos[t]){Echo1200ATInternet.Tracker.pluginProtos[t]=e;for(var n=0;n<Echo1200ATInternet.Tracker.instances.length;n++)Echo1200ATInternet.Tracker.instances[n].plugins.load(t,e)}},Echo1200ATInternet.Tracker.delPlugin=function(t){if(Echo1200ATInternet.Tracker.pluginProtos[t]){Echo1200ATInternet.Tracker.pluginProtos[t]=void 0;for(var e=0;e<Echo1200ATInternet.Tracker.instances.length;e++)Echo1200ATInternet.Tracker.instances[e].plugins.unload(t)}},Echo1200ATInternet.Tracker.callbackProtos={}}.call(window),function(){var t={lifetime:30,lastPersistence:!0,listEventsForExec:[],domainAttribution:!0,info:!0};window.Echo1200ATInternet.Tracker.Plugins.Campaigns=function(e){e.setConfig("visitLifetime",30,!0),e.setConfig("redirectionLifetime",30,!0);var n,i,r={};e.configPlugin("Campaigns",t,function(t){r=t});var o,s,a,u,c,l,f,d,p,h,_,g,v,m=function(){var t=function(t){var e="";return t&&(e=isNaN(t)&&-1===t.search(/\[(.*?)\]/g)?"["+t+"]":t),e},n=function(t){for(;"-"===t.charAt(t.length-1);)t=t.substring(0,t.length-1);return t};this.SponsoredLinks=function(){var i={google:"goo",yahoo:"ysm",miva:"miv",orange:"wan",msn:"msn",mirago:"mir",sklik:"skl",adfox:"adf",etarget:"etg",yandex:"yan",ebay:"eba",searchalliance:"sal",bing:"bin",naver:"nav",baidu:"bdu",qwant:"qwt"},r={search:"s",content:"c"};this.at_medium="sl",this.at_term=this.at_network=this.at_variant=this.at_creation=this.at_platform=this.at_campaign="",this.format=function(){var e=t(this.at_campaign),o=i[this.at_platform]||"",s=t(this.at_creation),a=t(this.at_variant),u=r[this.at_network]||"",c=t(this.at_term);return n("sec-"+e+"-"+o+"-"+s+"-"+a+"-"+u+"-"+c)},this.setProperties=function(t){this.at_campaign=e.utils.getQueryStringValue("at_campaign",t)||"",this.at_platform=e.utils.getQueryStringValue("at_platform",t)||"",this.at_creation=e.utils.getQueryStringValue("at_creation",t)||"",this.at_variant=e.utils.getQueryStringValue("at_variant",t)||"",this.at_network=e.utils.getQueryStringValue("at_network",t)||"",this.at_term=e.utils.getQueryStringValue("at_term",t)||""}},this.Email=function(){var i={acquisition:"erec",retention:"epr",promotion:"es"};this.at_medium="email",this.at_send_time=this.at_recipient_list=this.at_recipient_id=this.at_link=this.at_send_date=this.at_creation=this.at_campaign=this.at_emailtype="",this.format=function(){var e=(e=i[this.at_emailtype]||i.promotion)+"-"+t(this.at_campaign)+"-"+t(this.at_creation)+"-"+this.at_send_date+"-"+t(this.at_link)+"-"+this.at_recipient_id+(this.at_recipient_list?"@"+this.at_recipient_list:"")+"-"+this.at_send_time;return n(e)},this.setProperties=function(t){this.at_emailtype=e.utils.getQueryStringValue("at_emailtype",t)||"",this.at_campaign=e.utils.getQueryStringValue("at_campaign",t)||"",this.at_creation=e.utils.getQueryStringValue("at_creation",t)||"",this.at_send_date=e.utils.getQueryStringValue("at_send_date",t)||"",this.at_link=e.utils.getQueryStringValue("at_link",t)||"",this.at_recipient_id=e.utils.getQueryStringValue("at_recipient_id",t)||"",this.at_recipient_list=e.utils.getQueryStringValue("at_recipient_list",t)||"",this.at_send_time=e.utils.getQueryStringValue("at_send_time",t)||""}},this.Affiliate=function(){this.at_medium="affiliate",this.at_variant=this.at_creation=this.at_format=this.at_identifier=this.at_type=this.at_campaign="",this.format=function(){var e=t(this.at_campaign),i=t(this.at_type),r=t(this.at_identifier),o=t(this.at_format),s=t(this.at_creation),a=t(this.at_variant);return n("al-"+e+"-"+i+"-"+r+"-"+o+"-"+s+"-"+a)},this.setProperties=function(t){this.at_campaign=e.utils.getQueryStringValue("at_campaign",t)||"",this.at_type=e.utils.getQueryStringValue("at_type",t)||"",this.at_identifier=e.utils.getQueryStringValue("at_identifier",t)||"",this.at_format=e.utils.getQueryStringValue("at_format",t)||"",this.at_creation=e.utils.getQueryStringValue("at_creation",t)||"",this.at_variant=e.utils.getQueryStringValue("at_variant",t)||""}},this.Display=function(){this.at_medium="display",this.at_detail_placement=this.at_general_placement=this.at_channel=this.at_format=this.at_variant=this.at_creation=this.at_campaign="",this.format=function(){var e=t(this.at_campaign),i=t(this.at_creation),r=t(this.at_variant),o=t(this.at_format),s=t(this.at_channel),a=t(this.at_general_placement),u=t(this.at_detail_placement);return n("ad-"+e+"-"+i+"-"+r+"-"+o+"-"+s+"-"+a+"-"+u)},this.setProperties=function(t){this.at_campaign=e.utils.getQueryStringValue("at_campaign",t)||"",this.at_creation=e.utils.getQueryStringValue("at_creation",t)||"",this.at_variant=e.utils.getQueryStringValue("at_variant",t)||"",this.at_format=e.utils.getQueryStringValue("at_format",t)||"",this.at_channel=e.utils.getQueryStringValue("at_channel",t)||"",this.at_general_placement=e.utils.getQueryStringValue("at_general_placement",t)||"",this.at_detail_placement=e.utils.getQueryStringValue("at_detail_placement",t)||""}},this.Custom=function(){this.at_custom4=this.at_custom3=this.at_custom2=this.at_custom1=this.at_campaign=this.at_medium="",this.format=function(){var e="";/\d+$/.test(this.at_medium)&&(e=/\d+$/.exec(this.at_medium)[0]),e="cs"+e;var i=t(this.at_campaign),r=t(this.at_custom1),o=t(this.at_custom2),s=t(this.at_custom3),a=t(this.at_custom4);return n(e+"-"+i+"-"+r+"-"+o+"-"+s+"-"+a)},this.setProperties=function(t){this.at_medium=e.utils.getQueryStringValue("at_medium",t)||"",this.at_campaign=e.utils.getQueryStringValue("at_campaign",t)||"",this.at_custom1=e.utils.getQueryStringValue("at_custom1",t)||"",this.at_custom2=e.utils.getQueryStringValue("at_custom2",t)||"",this.at_custom3=e.utils.getQueryStringValue("at_custom3",t)||"",this.at_custom4=e.utils.getQueryStringValue("at_custom4",t)||""}},this.medium={sl:this.SponsoredLinks,email:this.Email,affiliate:this.Affiliate,display:this.Display}},E=function(t,r){var o=e.storage[i](t);return null!==o?"object"==typeof o&&!(o instanceof Array):(e.storage[n](t,{},r),!0)},y=function(t,n){var i=e.getContext("campaigns")||{};i[t]=n,e.setContext("campaigns",i)};e.plugins.waitForDependencies(["Storage","Utils"],function(){n="set"+(r.domainAttribution?"":"Private"),i="get"+(r.domainAttribution?"":"Private"),o=e.storage[i](["atredir","gopc"]),s=e.storage[i](["atredir","gopc_err"]),a=e.storage[i](["atredir","camp"]),e.storage.del(["atredir","gopc"]),e.storage.del(["atredir","gopc_err"]),e.storage.del(["atredir","camp"]),u=e.storage[i](["atsession","histo_camp"]),c=e.storage[i](["atreman","camp"]),l=e.storage[i](["atreman","date"]);var t,b=e.utils.getLocation();if(A=e.utils.getQueryStringValue("at_medium",b)){var A,S=new m;(A="function"==typeof S.medium[A]?new S.medium[A]:new S.Custom).setProperties(b),f=A.format()}else f=e.utils.getQueryStringValue("xtor",b);d=e.utils.getQueryStringValue("xtdt",b),p=e.utils.getQueryStringValue("xts",b),h=e.getContext("forcedCampaign"),_=!!e.getConfig("redirect"),v=!1,(g=!!(f&&d&&p))&&(b=(new Date).getTime()/6e4,v=!_&&p!==e.getConfig("site")||b-d<0||b-d>=e.getConfig("visitLifetime")),b=h||a||f,_&&b&&E("atredir",{path:"/",end:e.getConfig("redirectionLifetime")})&&(e.storage[n](["atredir","camp"],b),A=b=!1,h||(A=a?(b=o,s):(b=g,v)),e.storage[n](["atredir","gopc"],b),e.storage[n](["atredir","gopc_err"],A)),!_&&c&&(y("xtor",c),b=(new Date).getTime()/36e5,b=Math.floor(b-l),y("roinbh",0<=b?b:0)),_||(b=null,b=a?o?h||b:h||a:g?h:h||f||b,u&&u instanceof Array&&-1<u.indexOf(b)&&(b=null),b&&y("xto",b)),_||h||(a?s&&(t=a):v&&(t=f),t&&y("pgt",t)),_||!(t=a?h||a:h||f||null)||!h&&!a&&g&&v||!h&&a&&o&&s||((!u||u instanceof Array&&u.indexOf(t)<0)&&E("atsession",{path:"/",session:60*e.getConfig("visitLifetime")})&&e.storage[n](["atsession","histo_camp"],u&&u.push(t)?u:[t]),c&&!r.lastPersistence||!E("atreman",{path:"/",session:86400*r.lifetime})||(e.storage[n](["atreman","camp"],t),e.storage[n](["atreman","date"],(new Date).getTime()/36e5))),e.emit("Campaigns:process:done",{lvl:"INFO"})})},window.Echo1200ATInternet.Tracker.addPlugin("Campaigns")}.call(window),function(){window.Echo1200ATInternet.Tracker.Plugins.Clicks=function(t){var e=function(t){var e="";switch(t){case"exit":e="S";break;case"download":e="T";break;case"action":e="A";break;case"navigation":e="N"}return e},n=function(e){var n=e.name;return t.exec("Utils","manageChapters",[e,"chapter",3],function(t){n=t+(n||"")}),n},i=function(i){var r={p:n(i),s2:i.level2||"",click:e(i.type)||""},o=["click"],s=t.getContext("page")||{};r.pclick=n(s),r.s2click=s.level2||"";var a=!1;(s=i.customObject)&&(a=!0,s=t.processTagObject("stc",o,s),r.stc={value:Echo1200ATInternet.Utils.jsonSerialize(s),options:{hitType:o,encode:!0,separator:",",truncate:!0}}),t.sendHit(r,[["hitType",o]],i.callback,null,a)};t.click={},t.clickListener=this.clickListener={},t.click.send=this.send=function(e){var n=!0,r=null;return e&&e.hasOwnProperty("event")&&(r=e.event||window.event),!Echo1200ATInternet.Utils.isTabOpeningAction(r)&&e.elem&&(n=t.techClicks.manageClick(e.elem,r)),i(e),n},t.clickListener.send=this.clickListener.send=function(e){if(e.elem){var n="click";t.plugins.exec("TechClicks","isFormSubmit",[e.elem],function(t){n=t?"submit":"click"}),Echo1200ATInternet.Utils.addEvtListener(e.elem,n,function(n){Echo1200ATInternet.Utils.isTabOpeningAction(n)||t.techClicks.manageClick(e.elem,n),i(e)})}},t.click.set=this.set=function(i){t.dispatchSubscribe("click"),t.setContext("click",{name:n(i),level2:i.level2||"",customObject:i.customObject}),t.setParam("click",e(i.type)||"",{hitType:["click"]})},t.click.onDispatch=this.onDispatch=function(e){var i=["click"],r=t.getContext("click")||{},o=t.getContext("page")||{};t.setParam("pclick",n(o),{hitType:i}),t.setParam("s2click",o.level2||"",{hitType:i}),t.setParam("p",r.name,{hitType:i}),t.setParam("s2",r.level2,{hitType:i}),(r=r.customObject)?t.processContextObjectAndSendHit("stc",{hitType:i,encode:!0,separator:",",truncate:!0},r,e):t.manageSend(function(){t.sendHit(null,[["hitType",i]],e)}),t.setContext("click",void 0)}},window.Echo1200ATInternet.Tracker.addPlugin("Clicks")}.call(window),function(){var t={clientSideMode:"always",userIdCookieDuration:397,userIdExpirationMode:"relative",optOut:"OPT-OUT",userIdStorageName:"atuserid",optOutStorageName:"atoptedout",info:!0};window.Echo1200ATInternet.Tracker.Plugins.ClientSideUserId=function(e){var n={},i=void 0,r=null,o=!1,s=!1,a=!1,u="",c="",l=!1,f=!1,d=-1;e.configPlugin("ClientSideUserId",t,function(t){n=t});var p=function(){if("relative"===n.userIdExpirationMode||"fixed"===n.userIdExpirationMode&&null===r||l){var t=new Date;t.setTime(t.getTime()+864e5*n.userIdCookieDuration),e.storage.set(c,u,{end:t,path:"/"},f),t=e.storage.get(c,!0),Echo1200ATInternet.Utils.consent&&!l&&u!==t&&e.setParam("idclient",u+"-NO",{multihit:!0,permanent:!0,hitType:["all"]})}},h=function(){e.setParam("idclient",u,{multihit:!0,permanent:!0,hitType:["all"]}),p()},_=function(){i=e.getContext("userIdentifier"),r=e.storage.get("atuserid");var t=!1;if("required"===n.clientSideMode){var d="";window.navigator&&(d=window.navigator.userAgent),(/Safari/.test(d)&&!/Chrome/.test(d)||/iPhone|iPod|iPad/.test(d))&&(t=!0)}else"always"===n.clientSideMode&&(t=!0);o=t,(t=!1)===(d=Echo1200ATInternet.Utils.optedOut)&&(e.storage.del("atoptedout"),e.getParam("idclient")===n.optOut&&e.delParam("idclient"));var p=e.storage.get("atoptedout",!0);!0!==d&&p!==n.optOut||(t=!0),t&&(Echo1200ATInternet.Utils.optedOut=!0),s=t,a=void 0!==i,(o||s||a)&&(c=n.userIdStorageName,f=l=!1,s?(u=n.optOut,c=n.optOutStorageName,f=l=!0):e.getConfig("disableCookie")||e.getConfig("disableStorage")?(u=e.getParam("idclient"),l=!0):a?(u=i,l=!0):u=null!==r?r:Echo1200ATInternet.Utils.uuid().v4(),h())},g=function(t){t&&(t=t.detail)&&"clientsideuserid"===t.name&&t.id===d&&_()};e.plugins.waitForDependencies(["Storage"],function(){var t=Echo1200ATInternet.Utils.uuid();d=parseInt(t.num(8)),Echo1200ATInternet.Utils.removeOptOutEvent(g),Echo1200ATInternet.Utils.addOptOutEvent(d,g),_()}),e.clientSideUserId={},e.clientSideUserId.set=function(t){s||(u=t,l=!0,c=n.userIdStorageName,f=!1,h())},e.clientSideUserId.store=function(){f=l=!0,p()},e.clientSideUserId.get=function(){return u}},window.Echo1200ATInternet.Tracker.addPlugin("ClientSideUserId")}.call(window),function(){var t={domainAttribution:!0,info:!0};window.Echo1200ATInternet.Tracker.Plugins.ContextVariables=function(e){var n,i="",r=null,o="",s="",a={};e.configPlugin("ContextVariables",t,function(t){a=t}),e.setConfig("redirectionLifetime",30,!0);var u=function(t,n){return i="Utils",r=t,o=n,s=null,e.plugins.exec(i,r,o,function(t){s=t}),s;var i,r,o,s},c=function(t,n){var i=null;return e.plugins.exec("Storage",t,n,function(t){i=t}),i};e.plugins.waitForDependencies(["Storage","Utils"],function(){o="set"+(a.domainAttribution?"":"Private"),s="get"+(a.domainAttribution?"":"Private");var t,l=u("getLocation",[]);if(void 0===(i=u("getQueryStringValue",["xtref",l]))&&(i=""),n=e.getContext("forcedReferer"),e.getConfig("redirect")){var f;if(l=u("getDocumentLevel",[]),f=l=n||(null!==i?i:l?l.referrer:"acc_dir")){f={path:"/",end:e.getConfig("redirectionLifetime")};var d=c(s,["atredir"]);f=null!==d?"object"==typeof d&&!(d instanceof Array):(c(o,["atredir",{},f]),!0)}f&&c(o,[["atredir","ref"],l])}else{r=c(s,[["atredir","ref"]]),c("del",[["atredir","ref"]]),e.setParam("vtag",e.version,{permanent:!0,hitType:["all"]}),e.setParam("ptag","js",{permanent:!0,hitType:["all"]}),l="";try{l+=window.screen.width+"x"+window.screen.height+"x"+window.screen.pixelDepth+"x"+window.screen.colorDepth}catch(t){}e.setParam("r",l,{permanent:!0,hitType:["all"]}),l="",window.innerWidth?l+=window.innerWidth+"x"+window.innerHeight:document.body&&document.body.offsetWidth&&(l+=document.body.offsetWidth+"x"+document.body.offsetHeight),e.setParam("re",l,{permanent:!0,hitType:["all"]}),e.setParam("hl",function(){var t=new Date;return t.getHours()+"x"+t.getMinutes()+"x"+t.getSeconds()},{permanent:!0,hitType:["all"]}),window.navigator&&e.setParam("lng",window.navigator.language||window.navigator.userLanguage,{permanent:!0,hitType:["all"]}),l=Echo1200ATInternet.Utils.uuid().num(13),e.setParam("idp",l,{permanent:!0,hitType:["page","clickzone"]}),window.navigator&&e.setParam("jv",window.navigator.javaEnabled()?"1":"0",{hitType:["page"]}),l=u("getDocumentLevel",[]),e.setParam("ref",(t=l,(t=n||("acc_dir"===i?"":null!==i?i:"acc_dir"===r?"":r||(t?t.referrer:"")))&&(t=t.replace(/[<>]/g,"").substring(0,1600).replace(/&/g,"$")),t),{permanent:!0,last:!0,hitType:["page"]})}e.emit("ContextVariables:Ready",{lvl:"INFO"})})},window.Echo1200ATInternet.Tracker.addPlugin("ContextVariables")}.call(window),function(){var t={storageCapacity:1,timeout:500,info:!0};window.Echo1200ATInternet.Tracker.Plugins.Offline=function(e){var n={};e.configPlugin("Offline",t,function(t){n=t});var i=function(){var t=localStorage.getItem("ATOffline"),e={hits:[],length:0};if(t){var n=Echo1200ATInternet.Utils.jsonParse(t)||{hits:[]};e.hits=n.hits,e.length=t.length}return e},r=function(t){try{localStorage.setItem("ATOffline",Echo1200ATInternet.Utils.jsonSerialize(t))}catch(t){}},o=function(){return i().hits},s=function(t){if(t){t=t.split(/&ref=\.*/i);var e="&cn=offline&olt="+String(Math.floor((new Date).getTime()/1e3));t=t[0]+e+"&ref="+(t[1]||"")}return t},a=function(t){var e=i(),o=t.length,s=!0;if(4*((e.length||11)+o)>1048576*n.storageCapacity){s=!1;var a=e.hits.shift();if(void 0!==a){s=!0;for(var u=a.length;u<o;){if(void 0===(a=e.hits.shift())){s=!1;break}u+=a.length}}}s&&(e.hits.push(t),r({hits:e.hits}))},u=function(t,i){if(window.navigator&&window.navigator.onLine){var c=o();if(0<c.length){var l=c.shift();r({hits:c}),e.onTrigger("Tracker:Hit:Sent:Ok",function(){u(t,i)},!0),e.onTrigger("Tracker:Hit:Sent:Error",function(){u(t,i)},!0),e.sendUrl(l)}else if(t){var f=null;e.plugins.exec("Utils","getQueryStringValue",["a",t],function(t){f=t}),f?setTimeout(function(){e.sendUrl(t,i)},n.timeout):e.sendUrl(t,i)}}else t&&(a(s(t)),i&&i())},c=function(t){e.builder.sendUrl=function(e,n){t||window.navigator&&!window.navigator.onLine?(a(s(e)),n&&n()):u(e,n)}};e.offline={},e.offline.getLength=function(){return 4*i().length},e.offline.remove=function(){r({hits:[]})},e.offline.get=o,e.offline.send=function(){u(null,null)},e.plugins.waitForDependencies(["Utils"],function(){var t,i=Echo1200ATInternet.Utils.isLocalStorageAvailable();window.navigator&&(t=window.navigator.onLine),i&&void 0!==t&&("required"===n.storageMode?c(!1):"always"===n.storageMode&&c(!0)),e.emit("Offline:Ready",{lvl:"INFO",details:{isLocalStorageAvailable:i,storageMode:n.storageMode,isOnline:t}})})},window.Echo1200ATInternet.Tracker.addPlugin("Offline")}.call(window),function(){window.Echo1200ATInternet.Tracker.Plugins.OnSiteAds=function(t){var e="",n=function(e){var n=e.name;return t.exec("Utils","manageChapters",[e,"chapter",3],function(t){n=t+(n||"")}),n},i=function(t,e){return t[e]?t[e]:""},r=function(t,e){if(r=i(t,e)){var n=i(t,"prefix");if(r.campaignId){n=n||"PUB";var r,o=i(r,"campaignId"),s=i(r,"creation");return n+"-"+o+"-"+s+"-"+i(r,"variant")+"-"+i(r,"format")+"-"+i(r,"generalPlacement")+"-"+i(r,"detailedPlacement")+"-"+i(r,"advertiserId")+"-"+(r=i(r,"url"))}if(r.adId)return(n=n||"INT")+"-"+(o=i(r,"adId"))+"-"+(s=i(r,"format"))+"||"+(r=i(r,"productId"))}return""},o=function(e,n){var i=t.buffer.get("ati",!0)||{};i.value="string"==typeof i.value?[i.value]:i.value||[],i.options=i.options||{truncate:!0,hitType:[n,"page"]},i.value.push(e),t.buffer.set("ati",i.value,i.options)},s=function(e,n){if(e.click?t.setParam("atc",r(e,"click"),{truncate:!0,hitType:[n,"page"]}):e.impression&&t.setParam("ati",r(e,"impression"),{truncate:!0,hitType:[n,"page"]}),e.customObject){t.setContext("onsiteads",{customObject:e.customObject});var i=t.getContext("page")||{};i.customObject=Echo1200ATInternet.Utils.completeFstLevelObj(i.customObject,e.customObject,!1),t.setContext("page",i)}t.dispatchSubscribe("onSiteAds")};t.selfPromotion=this.selfPromotion={},t.publisher=this.publisher={},t.publisher.set=this.publisher.set=function(t){s(t,"publisher")},t.selfPromotion.set=this.selfPromotion.set=function(t){s(t,"selfPromotion")},t.publisher.add=this.publisher.add=function(e){o(r(e,"impression"),"publisher"),t.dispatchSubscribe("onSiteAds")},t.selfPromotion.add=this.selfPromotion.add=function(e){o(r(e,"impression"),"selfPromotion"),t.dispatchSubscribe("onSiteAds")};var a=this.advertEvent=function(e){var i=!0,o=null;if(e&&e.hasOwnProperty("event")&&(o=e.event||window.event),!Echo1200ATInternet.Utils.isTabOpeningAction(o)&&e.elem&&(i=t.techClicks.manageClick(e.elem,o)),e.click){o=["onSiteAdsClick"];var s=t.getContext("page")||{},a={};a.atc={value:r(e,"click"),options:{truncate:!0}},a.type="AT",a.patc=n(s),a.s2atc=s.level2||"",(s=e.customObject)&&(s=t.processTagObject("stc",o,s),a.stc={value:Echo1200ATInternet.Utils.jsonSerialize(s),options:{hitType:o,encode:!0,separator:",",truncate:!0}}),t.sendHit(a,[["hitType",o]],e.callback,null,!0)}else e.impression&&function(e){var n=["onSiteAdsImpression"],i={};i.ati={value:r(e,"impression"),options:{hitType:n,truncate:!0}},i.type="AT",Echo1200ATInternet.Utils.isPreview()&&t.getConfig("preview")&&(i.pvw=1);var o=e.customObject;o&&(o=t.processTagObject("stc",n,o),i.stc={value:Echo1200ATInternet.Utils.jsonSerialize(o),options:{hitType:n,encode:!0,separator:",",truncate:!0}}),t.manageSend(function(){t.sendHit(i,[["hitType",n]],e.callback,null,!0)})}(e);return i};t.publisher.send=this.publisher.send=function(t){return a(t)},t.selfPromotion.send=this.selfPromotion.send=function(t){return a(t)},t.onSiteAds={},t.onSiteAds.onDispatch=this.onDispatch=function(e){if(!t.dispatchSubscribed("page")){t.setParam("type","AT",{hitType:["publisher","selfPromotion"]});var i=t.getContext("page")||{};t.getParam("atc")&&(t.setParam("patc",n(i),{hitType:["publisher","selfPromotion"]}),t.setParam("s2atc",i.level2||"",{hitType:["publisher","selfPromotion"]})),Echo1200ATInternet.Utils.isPreview()&&t.getConfig("preview")&&t.setParam("pvw",1);var r=["publisher","selfPromotion"];(i=(t.getContext("onsiteads")||{}).customObject)?t.processContextObjectAndSendHit("stc",{hitType:r,encode:!0,separator:",",truncate:!0},i,e):t.manageSend(function(){t.sendHit(null,[["hitType",r]],e)})}},t.plugins.waitForDependencies(["Utils","TechClicks"],function(){e=document.location.href,t.plugins.exec("Utils","getQueryStringValue",["xtatc",e],function(e){e&&t.setParam("atc",e,{hitType:["publisher","selfPromotion","page"]})}),t.emit("OnSiteAds:Ready",{lvl:"INFO",details:{href:e}})})},window.Echo1200ATInternet.Tracker.addPlugin("OnSiteAds")}.call(window),function(){window.Echo1200ATInternet.Tracker.Plugins.Page=function(t){var e=["pageId","chapterLabel","update"],n=["pid","pchap","pidt"],i=["page","site"],r=["f","x"],o=function(e){var n=e.name;return t.exec("Utils","manageChapters",[e,"chapter",3],function(t){n=t+(n||"")}),n},s=function(t,e,n){return e?t=e:t||void 0===n||(t=n),t},a=function(t,e,n){e.hasOwnProperty(n)&&(t[n]=s(t[n],e[n]))},u=function(e,n,o){if(n)for(var s=0;s<i.length;s++)if(n.hasOwnProperty(i[s])&&n[i[s]])for(var a in n[i[s]])n[i[s]].hasOwnProperty(a)&&(o?e[r[s]+a]=n[i[s]][a]:t.setParam(r[s]+a,n[i[s]][a]))},c=function(i,r,o){if(r){t.exec("Utils","manageChapters",[r,"chapter",3],function(t){t&&(r.chapterLabel=t.replace(/::$/gi,""))});for(var s=0;s<n.length;s++)r.hasOwnProperty(e[s])&&(o?i[n[s]]=r[e[s]]:t.setParam(n[s],r[e[s]]))}},l=function(e,n,i){if(n&&n.keywords instanceof Array){var r=n.keywords.length;if(0<r){for(var o="",s=0;s<r;s++)o+="["+n.keywords[s]+"]"+(s<r-1?"|":"");i?e.tag=o:t.setParam("tag",o)}}},f=function(e,n,i){if(n){var r,o=function(t){return t||"0"};r=o(n.category1)+"-",r+=o(n.category2)+"-",r+=o(n.category3),i?e.ptype=r:t.setParam("ptype",r)}},d=function(e,n,i){if(n)for(var r in n)n.hasOwnProperty(r)&&void 0!==n[r]&&(i?e[r]=n[r]:t.setParam(r,n[r]))};t.customVars=this.customVars={},t.customVars.set=this.customVars.set=function(e){var n=t.getContext("page")||{},i=n.customVars;if(i){if(e)for(var r in e)e.hasOwnProperty(r)&&(i[r]=Echo1200ATInternet.Utils.completeFstLevelObj(i[r],e[r],!0))}else i=e;n.customVars=i,t.setContext("page",n)},t.dynamicLabel=this.dynamicLabel={},t.dynamicLabel.set=this.dynamicLabel.set=function(e){var n=t.getContext("page")||{};n.dynamicLabel=Echo1200ATInternet.Utils.completeFstLevelObj(n.dynamicLabel,e,!0),t.setContext("page",n)},t.tags=this.tags={},t.tags.set=this.tags.set=function(e){var n=t.getContext("page")||{};n.tags=Echo1200ATInternet.Utils.completeFstLevelObj(n.tags,e,!0),t.setContext("page",n)},t.customTreeStructure=this.customTreeStructure={},t.customTreeStructure.set=this.customTreeStructure.set=function(e){var n=t.getContext("page")||{};n.customTreeStructure=Echo1200ATInternet.Utils.completeFstLevelObj(n.customTreeStructure,e,!0),t.setContext("page",n)},t.page={},t.page.reset=this.reset=function(){t.setContext("page",void 0)},t.page.set=this.set=function(e){t.dispatchSubscribe("page");var n=t.getContext("page")||{};n.name=s(n.name,e.name,""),n.level2=s(n.level2,e.level2,""),a(n,e,"chapter1"),a(n,e,"chapter2"),a(n,e,"chapter3"),n.customObject=Echo1200ATInternet.Utils.completeFstLevelObj(n.customObject,e.customObject,!0),t.setContext("page",n)},t.page.send=this.send=function(e){var n=!0,i={p:o(e),s2:e.level2||""},r=e.customObject,p=!1;if(r){p=!0;var h=["page"];r=t.processTagObject("stc",h,r),i.stc={value:Echo1200ATInternet.Utils.jsonSerialize(r),options:{hitType:h,encode:!0,separator:",",truncate:!0}}}return(r=t.getContext("page")||{}).vrn&&(i.vrn=r.vrn,r.vrn=void 0,t.setContext("page",r)),void 0!==(h=t.getContext("InternalSearch")||{}).keyword&&(i.mc=Echo1200ATInternet.Utils.cloneSimpleObject(h.keyword),void 0!==h.resultPageNumber&&(i.np=Echo1200ATInternet.Utils.cloneSimpleObject(h.resultPageNumber)),t.setContext("InternalSearch",void 0)),Echo1200ATInternet.Utils.isPreview()&&t.getConfig("preview")&&(i.pvw=1),u(i,e.customVars,!0),c(i,e.dynamicLabel,!0),l(i,e.tags,!0),f(i,e.customTreeStructure,!0),h=t.getContext("campaigns")||{},d(i,h,!0),t.setContext("campaigns",void 0),h=null,e&&e.hasOwnProperty("event")&&(h=e.event||window.event),!Echo1200ATInternet.Utils.isTabOpeningAction(h)&&e.elem&&(n=t.techClicks.manageClick(e.elem,h)),t.manageSend(function(){t.sendHit(i,null,e.callback,null,p)}),r.name=s(r.name,e.name,""),r.level2=s(r.level2,e.level2,""),a(r,e,"chapter1"),a(r,e,"chapter2"),a(r,e,"chapter3"),t.setContext("page",r),n},t.page.onDispatch=this.onDispatch=function(e){var n=t.getContext("page")||{},i=t.getContext("InternalSearch")||{};t.setParam("p",o(n)),t.setParam("s2",n.level2||""),n.vrn&&(t.setParam("vrn",n.vrn),n.vrn=void 0,t.setContext("page",n)),void 0!==i.keyword&&(t.setParam("mc",Echo1200ATInternet.Utils.cloneSimpleObject(i.keyword)),void 0!==i.resultPageNumber&&t.setParam("np",Echo1200ATInternet.Utils.cloneSimpleObject(i.resultPageNumber)),t.setContext("InternalSearch",void 0)),Echo1200ATInternet.Utils.isPreview()&&t.getConfig("preview")&&t.setParam("pvw",1),u(null,n.customVars,!1),c(null,n.dynamicLabel,!1),l(null,n.tags,!1),f(null,n.customTreeStructure,!1),i=t.getContext("campaigns")||{},d(null,i,!1),t.setContext("campaigns",void 0);var r=["page"];(n=n.customObject)?t.processContextObjectAndSendHit("stc",{hitType:r,encode:!0,separator:",",truncate:!0},n,e):t.manageSend(function(){t.sendHit(null,[["hitType",r]],e)})}},window.Echo1200ATInternet.Tracker.addPlugin("Page")}.call(window),function(){window.Echo1200ATInternet.Tracker.Plugins.RichMedia=function(t){var e=function(t,e){var n=parseInt(t,10);return n?Math.max(n,e):0},n=new function(){this.media=function(){this.type=void 0,this.plyr=0,this.clnk=this.s2=void 0,this.p="",this.m9=this.m6=this.m5=this.m1=this.rfsh=this.buf=this.a=void 0},this.mediaAll={},this.setMediaValue=function(t,e,n,i){void 0!==i&&(this.mediaAll[t]=this.mediaAll[t]||{},this.mediaAll[t][e]=this.mediaAll[t][e]||new this.media,this.mediaAll[t][e][n]=i)},this.getMediaValue=function(t,e,n){if(this.mediaAll[t]&&this.mediaAll[t][e])return this.mediaAll[t][e][n]},this.removePlayer=function(t){this.mediaAll[t]={}},this.removeAll=function(){this.mediaAll={}}},i=new function(){this.timeout={},this.setTimeout=function(e,n,i){this.timeout[e]=this.timeout[e]||{},this.timeout[e][n]&&window.clearTimeout(this.timeout[e][n]),this.timeout[e][n]=window.setTimeout(function(){t.richMedia.send({action:"refresh",playerId:e,mediaLabel:n})},1e3*i)},this.setTimeoutObject=function(i,r,o){if(this.timeout[i]=this.timeout[i]||{},void 0===this.timeout[i][r]){var s,a=[];for(s in o)o.hasOwnProperty(s)&&a.push({delay:e(s,0),refresh:e(o[s],5)});a.sort(function(t,e){return t.delay<e.delay?-1:t.delay>e.delay?1:0}),this.timeout[i][r]={refreshTab:a,backupRefreshTab:Echo1200ATInternet.Utils.cloneSimpleObject(a),delayConfiguration:{}}}if(0<(o=this.timeout[i][r]).refreshTab.length&&(a=o.refreshTab[0].delay,s=o.refreshTab[0].refresh,"number"==typeof a&&"number"==typeof s&&0<s)){o.delayConfiguration[a]=o.delayConfiguration[a]||{};var u=void 0;void 0!==o.refreshTab[1]&&(u=o.refreshTab[1].delay);var c=0;void 0===u?c=1:"number"==typeof o.delayConfiguration[a].number?c="refresh"===n.getMediaValue(i,r,"a")?Math.max(o.delayConfiguration[a].number-1,0):o.delayConfiguration[a].number:"number"==typeof u&&(c=Math.floor(60*(u-a)/s)-1),o.delayConfiguration[a].number=c,o.delayConfiguration[a].timeout&&window.clearTimeout(o.delayConfiguration[a].timeout),0<c?o.delayConfiguration[a].timeout=window.setTimeout(function(){t.richMedia.send({action:"refresh",playerId:i,mediaLabel:r})},1e3*s):(o.delayConfiguration[a].number=void 0,o.delayConfiguration[a].timeout=void 0,o.refreshTab.splice(0,1),window.setTimeout(function(){t.richMedia.send({action:"refresh",playerId:i,mediaLabel:r})},1e3*s)),this.timeout[i][r]=o}},this.clearTimeout=function(t,e,n){this.timeout[t]=this.timeout[t]||{};var i=this.timeout[t][e];if("object"==typeof i){if("object"==typeof i.delayConfiguration){var r,o;for(o in i.delayConfiguration)i.delayConfiguration.hasOwnProperty(o)&&void 0!==(r=i.delayConfiguration[o].number)&&0<r&&(i.delayConfiguration[o].timeout&&window.clearTimeout(i.delayConfiguration[o].timeout),i.delayConfiguration[o].timeout=void 0);n&&(i.refreshTab=Echo1200ATInternet.Utils.cloneSimpleObject(i.backupRefreshTab)),this.timeout[t][e]=i}}else i&&window.clearTimeout(i)},this.removePlayer=function(e){for(var i in this.timeout[e])if(this.timeout[e].hasOwnProperty(i)){this.clearTimeout(e,i,!1);var r=n.getMediaValue(e,i,"a");void 0!==this.timeout[e][i]&&"stop"!==r&&t.richMedia.send({action:"stop",playerId:e,mediaLabel:i})}this.timeout[e]={}},this.removeAll=function(){for(var t in this.timeout)this.timeout.hasOwnProperty(t)&&this.removePlayer(t);this.timeout={}}},r=function(e,n,i){var r=e[i]||"";return t.exec("Utils","manageChapters",[e,n,3],function(t){r=t+r}),r},o=function(t,e,n,i){var r=t[e];return"boolean"==typeof t[e]&&(r=t[e]?i:n),r},s=function(t){var e=0;return/^(\-|\+)?([0-9]+)$/.test(t)&&(e=Number(t)),e},a=function(t,e,i,r,o){void 0!==(e=n.getMediaValue(e,i,r))&&(t[r]=o?encodeURIComponent(e):e)},u=function(t,e,n){void 0!==n&&(t[e]=n)};t.richMedia={},t.richMedia.add=function(t){var e=s((t=t||{}).playerId),i=r(t,"mediaTheme","mediaLabel"),a=o(t,"isEmbedded","int","ext");n.setMediaValue(e,i,"plyr",e),n.setMediaValue(e,i,"type",t.mediaType),n.setMediaValue(e,i,"s2",t.mediaLevel2),n.setMediaValue(e,i,"p",i),n.setMediaValue(e,i,"clnk",t.linkedContent||t.previousMedia),n.setMediaValue(e,i,"a",t.action),n.setMediaValue(e,i,"rfsh",t.refreshDuration),n.setMediaValue(e,i,"m1",t.duration),n.setMediaValue(e,i,"m5",a),n.setMediaValue(e,i,"m6",t.broadcastMode),n.setMediaValue(e,i,"m9",t.webdomain)},t.richMedia.send=function(c){var l=s((c=c||{}).playerId),f=r(c,"mediaTheme","mediaLabel"),d=c.action;n.setMediaValue(l,f,"a",d);var p={plyr:l,p:f};if(a(p,l,f,"a",!1),a(p,l,f,"type",!1),a(p,l,f,"s2",!1),a(p,l,f,"m1",!1),a(p,l,f,"m5",!1),a(p,l,f,"m6",!1),"play"===d||"info"===d){c=o(c,"isBuffering","0","1");var h=t.getContext("page")||{},_=r(h,"chapter","name")||void 0;h=h.level2||void 0,u(p,"buf",c),u(p,"prich",_),u(p,"s2rich",h),a(p,l,f,"clnk",!1),a(p,l,f,"m9",!0)}t.sendHit(p,[["hitType",["richmedia"]]]),"pause"===d?i.clearTimeout(l,f,!1):"stop"===d&&i.clearTimeout(l,f,!0),"play"!==d&&"refresh"!==d||("object"==typeof(d=n.getMediaValue(l,f,"rfsh"))&&null!==d?i.setTimeoutObject(l,f,d):0!==(d=e(d,5))&&i.setTimeout(l,f,d))},t.richMedia.remove=function(t){i.removePlayer(t),n.removePlayer(t)},t.richMedia.removeAll=function(){i.removeAll(),n.removeAll()}},window.Echo1200ATInternet.Tracker.addPlugin("RichMedia")}.call(window),function(){var t={info:!1};Echo1200ATInternet.Tracker.Plugins.Cookies=Echo1200ATInternet.Tracker.Plugins.Storage=function(e){var n=this,i=!1,r=null;e.configPlugin("Storage",t,function(t){"localStorage"===t.storageMode&&(i=Echo1200ATInternet.Utils.isLocalStorageAvailable())});var o={},s=function(t){return e.getConfig("base64Storage")?Echo1200ATInternet.Utils.Base64.encode(t):encodeURIComponent(t)},a=function(t){return e.getConfig("base64Storage")?Echo1200ATInternet.Utils.Base64.decode(t):decodeURIComponent(t)};r=i?new function(){var t=function(t){var e,n=+new Date,i=!1;return t.options&&(void 0!==t.options.expires?e=t.options.expires:"function"==typeof(t=t.options.end||{}).getTime?e=t.getTime():"number"==typeof t&&(e=n+1e3*t)),"number"==typeof e&&e<=n&&(i=!0),{itemToDelete:i,timestamp:e}},e=function(t){var e=!1;try{localStorage.removeItem(t),e=!0}catch(t){}return e};this.getData=function(n){var i=null;if(r=localStorage.getItem(n)){var r=a(r),o=Echo1200ATInternet.Utils.jsonParse(r);o&&"object"==typeof o?t(o).itemToDelete&&e(n)||(delete o.options.expires,i=Echo1200ATInternet.Utils.jsonSerialize(o)):i=r}return i},this.setData=function(n){var i=!1;if(n.name&&"string"==typeof n.name){var r=t(n);"number"==typeof r.timestamp&&(n.options.expires=r.timestamp);var o=Echo1200ATInternet.Utils.jsonSerialize(n);if(r.itemToDelete)i=e(n.name);else try{localStorage.setItem(n.name,s(o)),i=!0}catch(n){}}return i}}:new function(){this.getData=function(t){var e=null;return(t=RegExp("(?:^| )"+t+"=([^;]+)").exec(document.cookie)||null)&&(e=a(t[1])),e},this.setData=function(t){var n=!1;if(t.name&&"string"==typeof t.name){var i=t.options||{},r=i.end||{},o=i.domain||e.getConfig("cookieDomain"),a=i.secure||e.getConfig("cookieSecure"),u=Echo1200ATInternet.Utils.jsonSerialize(t);u=(u=(u=t.name+"="+s(u))+(i.path&&"string"==typeof i.path?";path="+i.path:""))+(o&&"string"==typeof o?";domain="+o:"")+(a&&"boolean"==typeof a?";secure":""),"function"==typeof r.toUTCString?u+=";expires="+r.toUTCString():"number"==typeof r&&(u+=";max-age="+r.toString()),document.cookie=u,this.getData(t.name)&&(n=!0)}return n}};var u=function(t,n){var i=!1;return!Echo1200ATInternet.Utils.consent&&!n||e.getConfig("disableCookie")||e.getConfig("disableStorage")||!t||"object"!=typeof t||(i=r.setData(t)),i},c=function(t,e,n){return t={name:t,val:e},n&&n.session&&"number"==typeof n.session&&(n.end=n.session),t.options=n||{},t},l=function(t){var n=null,i=null;return e.getConfig("disableCookie")||e.getConfig("disableStorage")||!t||"string"!=typeof t||(i=r.getData(t)),(t=i)&&(n=Echo1200ATInternet.Utils.jsonParse(t)),n},f=function(t,e){var n=Echo1200ATInternet.Utils.cloneSimpleObject(t);return u(n,e)?Echo1200ATInternet.Utils.jsonParse(Echo1200ATInternet.Utils.jsonSerialize(t)):null},d=function(t,e,n){return!n&&o[t]?n=o[t]:(n=l(t))&&(n.options=n.options||{},n.options.session&&"number"==typeof n.options.session&&(n.options.end=n.options.session,f(n,!1)),o[t]=n),n?e?(t=null,!n||"object"!=typeof n.val||n.val instanceof Array||void 0===n.val[e]||(t=n.val[e]),t):n.val:null},p=function(t,e,n,i,r){return e?(r=l(t))&&(!r||"object"!=typeof r.val||r.val instanceof Array?r=null:void 0===n?delete r.val[e]:r.val[e]=n,r&&(r=f(r,i))):(r=c(t,n,r=r||{}),r=f(r,i)),r?(o[t]=r).val:null},h=function(t,e){if(e)p(t,e,void 0,!1,null);else{o[t]=void 0;var n=c(t,"",{end:new Date("Thu, 01 Jan 1970 00:00:00 UTC"),path:"/"});u(n,!1)}};e.storage={},e.storage.get=n.get=function(t,e){return e=!!e,t instanceof Array?d(t[0],t[1],e):d(t,"",e)},e.storage.getPrivate=n.getPrivate=function(t,i){return t instanceof Array?t[0]+=e.getConfig("site"):t+=e.getConfig("site"),n.get(t,i)},e.storage.set=n.set=function(t,e,n,i){return t instanceof Array?p(t[0],t[1],e,i,null):p(t,null,e,i,n)},e.storage.setPrivate=n.setPrivate=function(t,i,r){return t instanceof Array?t[0]+=e.getConfig("site"):t+=e.getConfig("site"),n.set(t,i,r)},e.storage.del=n.del=function(t){t instanceof Array?h(t[0],t[1]):h(t,"")},e.storage.delPrivate=n.delPrivate=function(t){t instanceof Array?t[0]+=e.getConfig("site"):t+=e.getConfig("site"),n.del(t)},e.storage.cacheInvalidation=n.cacheInvalidation=function(){o={}}},Echo1200ATInternet.Tracker.addPlugin("Storage"),Echo1200ATInternet.Tracker.addPlugin("Cookies")}.call(window),function(){var t={clicksAutoManagementEnabled:!0,clicksAutoManagementTimeout:500,info:!1};window.Echo1200ATInternet.Tracker.Plugins.TechClicks=function(e){var n,i,r=this;e.configPlugin("TechClicks",t,function(t){n=t.clicksAutoManagementEnabled,i=t.clicksAutoManagementTimeout}),r.deactivateAutoManagement=function(){n=!1};var o=function(t){switch(t.target){case"_top":window.top.location.href=t.url;break;case"_parent":window.parent.location.href=t.url;break;default:window.location.href=t.url}},s=function(t){var e=t.timeout;t.mailto?r.timeout=setTimeout(function(){window.location.href=t.mailto},e):t.form?r.timeout=setTimeout(function(){t.form.submit()},e):t.url&&(r.timeout=setTimeout(function(){o({url:t.url,target:t.target})},e))};e.techClicks={},e.techClicks.manageClick=r.manageClick=function(t,a){var u=!0;if(n&&t){var c;t:{for(c=t;c;){if("function"==typeof c.getAttribute&&("_blank"===c.getAttribute("target")||"no"===c.getAttribute("data-atclickmanagement"))){c=!0;break t}c=c.parentNode}c=t;for(var l,f=window.location.href;c;){if((l=c.href)&&0<=l.indexOf("#")&&f.substring(0,0<=f.indexOf("#")?f.indexOf("#"):f.length)===l.substring(0,l.indexOf("#"))){c=!0;break t}c=c.parentNode}c=!1}if(f=function(t){for(;t;){if(t.href){if(0<=t.href.indexOf("mailto:"))return"mailto";if(0===t.href.indexOf("http"))return"redirection"}else if("FORM"===t.nodeName)return"form";t=t.parentNode}return""}(t),!c&&f){switch(f){case"mailto":!function(t){var n=t;for(t=n.timeoutonly;n&&!(n.href&&0<=n.href.indexOf("mailto:"));)n=n.parentNode;n&&(t||e.onTrigger("Tracker:Hit:Sent:Ok",function(){r.timeout&&clearTimeout(r.timeout),window.location.href=n.href}),s({mailto:n.href,timeout:i}))}(t),u=!1;break;case"form":!function(t){var n=t;for(t=n.timeoutonly;n&&"FORM"!==n.nodeName;)n=n.parentNode;n&&(t||e.onTrigger("Tracker:Hit:Sent:Ok",function(){r.timeout&&clearTimeout(r.timeout),n.submit()}),s({form:n,timeout:i}))}(t),u=!1;break;case"redirection":(function(t){for(var n,a="_self",u=t.timeoutonly;t;){if(t.href&&0===t.href.indexOf("http")){n=t.href.split('"').join('\\"'),a=t.target?t.target:a;break}t=t.parentNode}n&&(u||e.onTrigger("Tracker:Hit:Sent:Ok",function(){r.timeout&&clearTimeout(r.timeout),o({url:n,target:a})}),s({url:n,target:a,timeout:i}))})(t),u=!1}a&&(c=a.defaultPrevented,"function"==typeof a.isDefaultPrevented&&(c=a.isDefaultPrevented()),c||a.preventDefault&&a.preventDefault())}}return u}},window.Echo1200ATInternet.Tracker.addPlugin("TechClicks")}.call(window),function(){window.Echo1200ATInternet.Tracker.Plugins.Utils=function(t){var e=this,n={};t.utils={},t.utils.getQueryStringValue=e.getQueryStringValue=function(t,e){var i=Echo1200ATInternet.Utils.hashcode(e).toString();if(!n[i]){n[i]={};var r=RegExp("[&#?]{1}([^&=#?]*)=([^&#]*)?","g"),o=r.exec(e);if(null!==o)for(;null!==o;)n[i][o[1]]=o[2],o=r.exec(e)}return n[i].hasOwnProperty(t)?n[i][t]:null},e.manageChapters=function(e,n,i){var r=t.getConfig("ignoreEmptyChapterValue"),o="";if(e){i=parseInt(i,10);for(var s=1;s<i+1;s++){var a=e[n+s]||"";o=r?o+(a?a+"::":""):o+(e.hasOwnProperty(n+s)?a+"::":"")}}return o},e.getDocumentLevel=function(){var e=t.getConfig("documentLevel");return e.indexOf(".")<0?window[e]||document:(e=e.split("."),window[e[0]][e[1]]||document)},t.utils.getLocation=e.getLocation=function(){return e.getDocumentLevel().location.href},t.dispatchIndex={},t.dispatchStack=[],t.dispatchEventFor={};var i=0;t.dispatchSubscribe=function(e){return!t.dispatchIndex[e]&&(t.dispatchStack.push(e),t.dispatchIndex[e]=!0)},t.dispatchSubscribed=function(e){return!0===t.dispatchIndex[e]},t.addSpecificDispatchEventFor=function(e){return!t.dispatchEventFor[e]&&(t.dispatchEventFor[e]=!0,i++,!0)},t.processSpecificDispatchEventFor=function(e){t.dispatchEventFor[e]&&(t.dispatchEventFor[e]=!1,0==--i&&(t.dispatchEventFor={},t.emit("Tracker:Plugin:SpecificEvent:Exec:Complete",{lvl:"INFO"})))},t.dispatch=function(e){var n=function(){for(var n="",i=null;0<t.dispatchStack.length;)n=t.dispatchStack.pop(),0===t.dispatchStack.length&&(i=e),t[n].onDispatch(i);t.dispatchIndex={},t.delContext(void 0,"customObject")},r=function(){t.plugins.isExecWaitingLazyloading()?t.onTrigger("Tracker:Plugin:Lazyload:Exec:Complete",function(){n()},!0):n()};0===i?r():t.onTrigger("Tracker:Plugin:SpecificEvent:Exec:Complete",function(){r()},!0)},t.dispatchRedirect=function(e){var n=!0,i=null;return e&&(i=null,e&&e.hasOwnProperty("event")&&(i=e.event||window.event),!Echo1200ATInternet.Utils.isTabOpeningAction(i)&&e.elem&&(e.elem.timeoutonly=!0,t.plugins.exec("TechClicks","manageClick",[e.elem,i],function(t){n=t})),i=e.callback),t.dispatch(i),n};var r=t.manageSend=function(e){Echo1200ATInternet.Utils.isPreview()&&!t.getConfig("preview")||Echo1200ATInternet.Utils.isPrerender(function(t){e(t)})||e()};t.processTagObject=function(e,n,i){if((e=t.getParam(e,!0))&&e.options.permanent){for(var r=!1,o=e.options.hitType||[],s=0;s<o.length;s++)if(-1!==Echo1200ATInternet.Utils.arrayIndexOf(n.concat("all"),o[s])){r=!0;break}r&&(i=Echo1200ATInternet.Utils.completeFstLevelObj(e.value||{},i,!0))}return i},t.processContextObjectAndSendHit=function(e,n,i,o){var s=t.getParam(e,!0);if(s){for(var a=!1,u=s.options.hitType||[],c=0;c<u.length;c++)if(-1!==Echo1200ATInternet.Utils.arrayIndexOf(n.hitType.concat("all"),u[c])){a=!0;break}a?((a=Echo1200ATInternet.Utils.cloneSimpleObject(s)).value=Echo1200ATInternet.Utils.completeFstLevelObj(a.value||{},i,!0),t.setParam(e,a.value,{hitType:n.hitType,encode:n.encode,separator:n.separator,truncate:n.truncate}),r(function(){t.sendHit(null,[["hitType",n.hitType]],o,null,!0)}),s.options.permanent&&t.setParam(e,s.value,s.options)):(t.setParam(e,i,{hitType:n.hitType,encode:n.encode,separator:n.separator,truncate:n.truncate}),r(function(){t.sendHit(null,[["hitType",n.hitType]],o,null,!0)}),t.setParam(e,s.value,s.options))}else t.setParam(e,i,{hitType:n.hitType,encode:n.encode,separator:n.separator,truncate:n.truncate}),r(function(){t.sendHit(null,[["hitType",n.hitType]],o,null,!0)})}},window.Echo1200ATInternet.Tracker.addPlugin("Utils")}.call(window),"function"==typeof window.Echo1200ATInternet.onTrackerLoad&&window.Echo1200ATInternet.onTrackerLoad(),Echo1200ATInternet}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(){"use strict";function t(){}return t.sendRefreshEvent=function(t,e,n){if(n){var i=n;e(i=(i=(i=i.replace(/a\=play/g,"a=refresh")).replace(/ts\=[0-9\.]+/g,"ts="+(new Date).getTime())).replace(/(prich\=|s2rich\=).*?(&|$)/g,""),function(){t.emit("Tracker:Hit:Sent:Ok",i)}.bind(t))}},t}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(t){"use strict";var e=n(6),i=n(4),r=n(21);return{APP_NAME:void 0,APP_CATEGORY:void 0,bbc_content_id:1,bbc_app_type:2,bbc_app_name:3,language:4,bbc_url:5,bbc_referrer_url:6,bbc_content_type:7,bbc_library_version:8,page_title:9,custom_var_1:11,custom_var_2:12,custom_var_3:13,custom_var_4:14,custom_var_5:15,custom_var_6:16,custom_var_7:17,custom_var_8:18,custom_var_9:19,custom_var_10:20,create:function(t,n,i,o,s,a){var u;return this.APP_NAME=t,i&&i[e.APP_CATEGORY]?this.APP_CATEGORY=i[e.APP_CATEGORY]:this.APP_CATEGORY="",u=this._setCustomVariable(u,e.APP_TYPE,n),u=this._setCustomVariable(u,e.APP_NAME,t),u=this._setCustomVariable(u,e.LIBRARY_VERSION,r.getLibraryName()+"-"+r.getLibraryVersion()),a&&(u=this._setDocumentCustomVariables(u,a)),s&&(u=this._setOrbitCustomVariables(u,s)),this._applyLabels(u,i),this._applyLabels(u,o),u},_initialise:function(){return{site:{}}},_applyLabels:function(t,n){if(n){var i=this._getAppName(n);n[e.APP_CATEGORY]&&(t=this._setCustomVariable(t,e.APP_NAME,i),delete n[e.APP_CATEGORY]),Object.keys(n).forEach(function(r){this._isCustomVariable(r)&&(r===e.APP_NAME&&(n[r]=i),t=this._setCustomVariable(t,r,n[r]),delete n[r])},this)}},_getAppName:function(t){var n="";return t[e.APP_CATEGORY]?n=t[e.APP_CATEGORY]+"-":this.APP_CATEGORY&&(n=this.APP_CATEGORY+"-"),t[e.APP_NAME]?n+=t[e.APP_NAME]:n+=this.APP_NAME,n},_isCustomVariable:function(t){return void 0!==this[t]&&this.hasOwnProperty(t)&&"function"!=typeof this[t]},_setCustomVariable:function(t,e,n){if(n){t||(t=this._initialise());var r=i.removeSensitiveInfo(n),o=i.cleanCustomVariable(r),s=this[e];t.site[s]="["+encodeURIComponent(o)+"]"}return t},_setDocumentCustomVariables:function(t,n){return n&&(t=this._setCustomVariable(t,e.URL,n.URL),t=this._setCustomVariable(t,e.REFERRER_URL,n.referrer),t=this._setCustomVariable(t,e.PAGE_TITLE,n.title)),t},_setOrbitCustomVariables:function(t,n){return n&&(t=this._setCustomVariable(t,e.CONTENT_ID,n.contentId),t=this._setCustomVariable(t,e.CONTENT_TYPE,n.contentType),t=this._setCustomVariable(t,e.LANGUAGE,n.language),t=this._setProductCustomVariables(t,n.additionalProperties)),t},_setProductCustomVariables:function(t,n){return n&&(n.app_category&&(t=this._setCustomVariable(t,e.APP_NAME,this._getAppName(n))),n.content_language&&(t=this._setCustomVariable(t,e.LANGUAGE,n.content_language)),t=this._setCustomVariable(t,e.CUSTOM_VAR_1,n.custom_var_1),t=this._setCustomVariable(t,e.CUSTOM_VAR_2,n.custom_var_2),t=this._setCustomVariable(t,e.CUSTOM_VAR_3,n.custom_var_3),t=this._setCustomVariable(t,e.CUSTOM_VAR_4,n.custom_var_4),t=this._setCustomVariable(t,e.CUSTOM_VAR_5,n.custom_var_5),t=this._setCustomVariable(t,e.CUSTOM_VAR_6,n.custom_var_6),t=this._setCustomVariable(t,e.CUSTOM_VAR_7,n.custom_var_7),t=this._setCustomVariable(t,e.CUSTOM_VAR_8,n.custom_var_8),t=this._setCustomVariable(t,e.CUSTOM_VAR_9,n.custom_var_9),t=this._setCustomVariable(t,e.CUSTOM_VAR_10,n.custom_var_10)),t}}}.call(e,n,e,t))||(t.exports=i)},function(t){t.exports={name:"@bbc/echo-client-js",description:"Client library for sending events",version:"12.4.0",main:"dist/echo-12.4.0.js",scripts:{test:"grunt build",build:"grunt build","build:dev":"webpack --mode=development --config ./config/webpack.dev.config.js","build:dist":"webpack --mode=production --config ./config/webpack.prod.config.js"},"pre-commit":["test"],"echo-client-js":{"barb-spring-version":"2.0.0","comscore-streamsense-version":"6.2.3.180328","ati-smarttag-version":"5.17.1"},devDependencies:{ajv:"^6.6.2","es6-promise":"^4.2.5",eslint:"^5.12.0",grunt:"^1.0.4","grunt-cli":"^1.3.2","grunt-contrib-jshint":"^2.0.0","grunt-contrib-watch":"^1.1.0","grunt-jscs":"^3.0.1","grunt-karma":"^3.0.1","grunt-shell":"^2.1.0",gulp:"^4.0.0",hoek:"^6.1.2","istanbul-instrumenter-loader":"^3.0.1",jasmine:"^3.3.1","jasmine-core":"^3.3.0",jquery:"^3.4.1",karma:"^3.1.4","karma-chrome-launcher":"*","karma-coverage-istanbul-reporter":"^2.0.4","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^2.0.1","karma-jasmine-html-reporter":"^1.4.0","karma-phantomjs-launcher":"^1.0.4","karma-requirejs":"^1.1.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-story-reporter":"^0.3.1","karma-webpack":"^3.0.0","load-grunt-tasks":"^4.0.0",lodash:"^4.17.11","phantomjs-prebuilt":"^2.1.16","pre-commit":"^1.2.2",requirejs:"^2.3.6",sinon:"^7.2.2","ssc-js":"git+ssh://git@github.com/bbc/ssc-js.git#1.2.0","time-grunt":"^2.0.0","uglifyjs-webpack-plugin":"^2.1.1",webpack:"^4.28.4","webpack-cli":"^3.2.1","webpack-merge":"^4.2.1"}}},function(t,e,n){var i;void 0===(i=function(){"use strict";var t=n(21),e={BRAND:"brand",SERIES:"series",EPISODE:"episode",CLIP:"clip",NAME:"name",TYPE:"type",PLIST:"pList"},i={RETRIEVAL_TYPE:"retType",INITATION_TYPE:"init",ADS_ENABLED:"adEna"},r={PLAYER_NAME:"mpN",PLAYER_VERSION:"mpV",TRANSPORT_MODE:"tMod",LIBRARY_NAME:"mlN",LIBRARY_VERSION:"mlV"};return{buildTheme:function(t,e,n){return t+"="+encodeURIComponent(e||"")+(n?"":"~")},constructThemeOne:function(t){var n="";return t&&(n=this.buildTheme(e.BRAND,t.getBrandId()),n+=this.buildTheme(e.SERIES,t.getSeriesId()),n+=this.buildTheme(e.EPISODE,t.getEpisodeId()),n+=this.buildTheme(e.CLIP,t.getClipId()),n+=this.buildTheme(e.NAME,t.getName()),n+=this.buildTheme(e.TYPE,t.getType()),t.isLive()?n+=this.buildTheme(e.PLIST,t.getServiceId(),!0):n+=this.buildTheme(e.PLIST,t.getPlaylist(),!0)),n},constructThemeTwo:function(t){var e="";return t&&(e=this.buildTheme(i.RETRIEVAL_TYPE,t.getRetrievalType()),e+=this.buildTheme(i.INITATION_TYPE,t.getInitiationType()),e+=this.buildTheme(i.ADS_ENABLED,t.isAdsEnabled()?"1":"0",!0)),e},constructThemeThree:function(e){var n="";return e&&(n=this.buildTheme(r.PLAYER_NAME,e.getMediaPlayerName()),n+=this.buildTheme(r.PLAYER_VERSION,e.getMediaPlayerVersion()),n+=this.buildTheme(r.TRANSPORT_MODE,e.getTransportMode()),n+=this.buildTheme(r.LIBRARY_NAME,t.getLibraryName()),n+=this.buildTheme(r.LIBRARY_VERSION,t.getLibraryVersion(),!0)),n}}}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(){"use strict";function t(){}return t.sendEvent=function(t,e,n,i){if(e){var r={action:n,playerId:e.playerId,mediaLabel:e.mediaLabel,mediaTheme1:e.mediaTheme1,mediaTheme2:e.mediaTheme2,mediaTheme3:e.mediaTheme3};for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o]);t.richMedia.send(r)}},t}.call(e,n,e,t))||(t.exports=i)},function(t,e,n){var i;void 0===(i=function(){"use strict";function t(){}var e=n(6),i=n(4),r="click";return t.sendClickEvent=function(t,e){this._sendEvent(t,e,r)},t.sendImpressionEvent=function(t,e){this._sendEvent(t,e,"impression")},t._sendEvent=function(n,i,o){i||(i={customObject:{}}),i.customObject||(i.customObject={});var s={creation:this._formatEventValue(t._buildCreation(i)),campaignId:this._formatEventValue(i.customObject[e.CONTAINER]||"Page"),variant:this._formatEventValue(i.customObject[e.PERSONALISATION]||""),format:this._formatEventValue(i.customObject[e.METADATA]||""),generalPlacement:this._formatEventValue(i[e.BBC_COUNTER_NAME]||"unknown"),detailedPlacement:this._formatEventValue(i.user||""),advertiserId:this._formatEventValue(i.customObject[e.SOURCE]||""),url:this._formatEventValue(i.customObject[e.RESULT]||"unknown")},a={};o===r?a.click=s:a.impression=s,n&&n.publisher.send(a)},t._buildCreation=function(t){var e=t&&t.actionName||"unknown";return t&&t.actionType&&(e+="~"+t.actionType),e},t._formatEventValue=function(t){return"["+i.cleanCustomVariable(t)+"]"},t}.call(e,n,e,t))||(t.exports=i)}])}()}(window)},function(t,e,n){"use strict";n(101),n(34),n(35),n(0),n(38),n(101),n(34),n(35),n(0),n(38);var i=n(170),r=n(171);t.exports=function(t,e,n,o){function s(n,i,r,o){var s,a=t.cage.environment,u=t.cage.embedVars.statsAppName||"default",c=t.cage.embedVars.contentType||"",l={};l[e.ConfigKeys.COMSCORE_SITE]="live"===a?"bbc":a,l[e.ConfigKeys.ATI_ENABLED]="true",s="int"===a||"test"===a?{cbbc:e.Enums.Destinations.CBBC_TEST,cbeebies:e.Enums.Destinations.CBEEBIES_TEST,games:e.Enums.Destinations.GAMES_PS_TEST,bitesize:e.Enums.Destinations.BITESIZE_TEST,default:e.Enums.Destinations.BBC}:{cbbc:e.Enums.Destinations.CBBC,cbeebies:e.Enums.Destinations.CBEEBIES,games:e.Enums.Destinations.GAMES_PS,bitesize:e.Enums.Destinations.BITESIZE,default:e.Enums.Destinations.BBC},l[e.ConfigKeys.DESTINATION]=s[u],l[e.ConfigKeys.ECHO_AUTO_START]=!1;var f=new e.EchoClient(n,e.Enums.ApplicationType.RESPONSIVE,l),d=function(){var t=Boolean(r);f.viewEvent(t?r:o)};return f.start().then(d),f.addLabel(e.Enums.EchoLabelKeys.CONTENT_TYPE,c),f.addManagedLabel(e.Enums.ManagedLabels.BBC_SITE,n),i&&i.statsLabel&&f.addLabel(i.statsLabel.name,i.statsLabel.value),f}var a,u=function(e){return new function a(){function u(){return v.includes("childrens-games-nightfall")}function c(){var e=t.bbccookies;return u()||!e||e.isAllowed("ckps_whatever")}function l(e){var n=t.localStorage.getItem(e);try{return JSON.parse(n)}catch(t){}}function f(){if(c())try{t.localStorage.setItem(A,JSON.stringify(T))}catch(t){}}var d=this,p=t.cage.embedVars,h=p.statsAppName,_=p.baseCounterName,g=p.statsCounterName,v=t.cage.gameId,m=t.cage.gameContainerId,E=t.cage.gameUrl,y=t.cage.gameDir,b=t.cage.environment;Object.defineProperty(a.prototype,"embedVars",{get:function(){return p}}),Object.defineProperty(a.prototype,"account",{get:function(){return o}}),Object.defineProperty(a.prototype,"gameContainerId",{get:function(){return m}}),Object.defineProperty(a.prototype,"gameUrl",{get:function(){return E}}),Object.defineProperty(a.prototype,"gameDir",{get:function(){return y}}),Object.defineProperty(a.prototype,"environment",{get:function(){return b}}),Object.defineProperty(a.prototype,"shouldShowExitButton",{get:function(){return t.cage.isFullScreen}}),Object.defineProperty(a.prototype,"shouldDisplayMuteButton",{get:function(){return!0}}),Object.defineProperty(a.prototype,"shouldLongPressForSettings",{get:function(){return!1}});var A="bbc_childrens_gmi_data",S="".concat(A,"_").concat(v),I={},T={audio:!0,subtitles:!1,motion:!0};this.stats=s(h,e,g,_),a.prototype.getAllSettings=function(){var t=JSON.parse(JSON.stringify(T));return t.muted=!t.audio,t.gameData=I,t},a.prototype.setGameData=function(e,n){if(I[e]=n,c())try{t.localStorage.setItem(S,JSON.stringify(I))}catch(t){}},a.prototype.setMuted=function(t){T.audio=!t,f()},a.prototype.setAudio=function(t){T.audio=Boolean(t),f()},a.prototype.setSubtitles=function(t){T.subtitles=Boolean(t),f()},a.prototype.setMotion=function(t){T.motion=Boolean(t),f()},a.prototype.showPrompt=function(t){return t(),!1},a.prototype.lastStatScreen="",a.prototype.showSettings=function(t,e){var i;if(Boolean(g))i=e;else{var r=d.lastStatScreen;i=function(){d.setStatsScreen(r),e()},d.sendStatsEvent("settings","open"),d.setStatsScreen("settings")}return n({showSettings:!0,onSettingChanged:t,onSettingsClosed:i}),!0},a.prototype.setStatsScreen=function(t,e){_?(d.stats.viewEvent("".concat(_,".").concat(t,".page"),e),d.lastStatScreen=t):console.warn("stats.viewEvent not fired. baseCounterName needs to be set")},a.prototype.sendStatsEvent=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n,o=Boolean(g);"heartbeat"!==t&&"heartbeat"!==e&&(o&&r&&r!=={}&&(r=(0,i.remapLabelsToAti)(t,e,r,g)),d.stats.userActionEvent(e,t,r))},a.prototype.exit=function(){var e=t.cage.exitGameUrl;t.open(e,"_top")},a.prototype.debug=function(t){console.log(t)},a.prototype.gameLoaded=function(){},function(){function t(){var t={};return t.audio=!0,t.subtitles=!1,t.motion=!0,t}if(!c())return t();T=l(A)||t(),function(){T.audio=Boolean(T.audio),T.subtitles=Boolean(T.subtitles),T.motion=!T.hasOwnProperty("motion")||T.motion}(),I=l(S)||{}}(),a.prototype.achievements=(0,r.createAchievements)(I.achievements,this,n),a.prototype=Object.create(a.prototype)}};return{getGMI:t.getGMI||function(t){return a&&console.warn("Attempted to create multiple copies of the GMI. Only a single instance should be created"),a=u(t),n({gmi:a,gmiOptions:t}),a}}}},function(t,e,n){"use strict";n(7),n(40),n(36),n(22),n(4),n(37),n(32),n(0),n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.remapLabelsToAti=void 0,n(7),n(40),n(36),n(22),n(4),n(37),n(32);var i=function(t,e,n,i){var r=n,o=[],s=function(t,e){var n=t[e];return o.push(e),n},a=function(t){return"string"==typeof t?t.replace(/[:+()]/g,"").replace(/\s/g,"_"):t},u={game_click:{play:"SCR=[".concat(s(n,"game_screen"),"]"),interaction:"INT=[".concat(s(n,"game_interaction"),"]"),character:"AVA=[".concat(s(n,"character"),"]"),customised:"CUS=[".concat(s(n,"game_customisation"),"]"),purchased:"ITM=[".concat(s(n,"game_purchase"),"]"),selected:"ITM=[".concat(s(n,"item_name"),"]"),skip:"SCR=[".concat(s(n,"game_screen"),"]"),viewed:"SUB=[".concat(s(n,"submenu"),"]")},game_level:{complete:"SCO=[".concat(s(n,"game_score"),"]~LVT=[").concat(s(n,"game_level_time"),"]~RWL=[").concat(s(n,"stars_awarded"),"]~LVR=[").concat(s(n,"game_level_result"),"]"),continue:"SCR=[".concat(s(n,"game_screen"),"]"),achievement:"ACH=[".concat(s(n,"achievement"),"]"),challenge:"CHA=[".concat(s(n,"game_challenge_name"),"]"),decision:"DEC=[".concat(s(n,"game_decision"),"]~DER=[").concat(s(n,"game_decision_result"),"]"),gameover:"POD=[".concat(s(n,"x_coordinate"),"::").concat(s(n,"y_coordinate"),"]~COD=[").concat(s(n,"obstacle"),"]"),item_collected:"ITM=[".concat(s(n,"item"),"]"),level_up:"LVL=[".concat(s(n,"game_level_name"),"]~DIF=[").concat(s(n,"game_skill_level"),"]"),obstacle:"COD=[".concat(s(n,"obstacle"),"]"),onboarding:"OBC=[".concat(s(n,"onboarding_checkpoint"),"]"),sublevel_started:"SBL=[".concat(s(n,"game_sublevel_name"),"]")},game_character:{selected:"AVA=[".concat(s(n,"character"),"]")},game_world:{selected:"WOR=[".concat(s(n,"game_world_name"),"]")}};e in u&&t in u[e]&&(r.metadata=u[e][t]),n.difficulty&&(r.metadata?r.metadata+="~DIF=[".concat(n.difficulty,"]"):r.metadata="DIF=[".concat(n.difficulty,"]")),n.levelID&&(r.source=n.levelID);var c=[];if(Object.keys(function(t,e){var n={};return Object.keys(t).forEach(function(i){e.indexOf(i)<0&&(n[i]=t[i])}),n}(n,["metadata","difficulty","source"].concat(o))).forEach(function(t){c.push("".concat(t,"-").concat(a(n[t])))}),c.length>0){var l="LAB=[".concat(c.join("::"),"]");r.metadata?r.metadata+="~".concat(l):r.metadata=l}return r.result=i,r};e.remapLabelsToAti=i},function(t,e,n){"use strict";n(38),n(33),n(102),n(12),n(103),n(0),n(0),Object.defineProperty(e,"__esModule",{value:!0}),e.createAchievements=void 0,n(38),n(33),n(102),n(12),n(103);var i=function(t,e){var n=Boolean(t&&t.maxProgress),i=Boolean(e&&t&&e.progress>=t.maxProgress);return e&&!n||n&&i},r=function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,s=[],a=!1,u=function(t,e){t?Object.assign(t,e):n.push(e),r.setGameData("achievements",n)},c=function(e,n,i,r){e&&(o({notificationKey:n,notificationName:i,notificationDescription:r}),a=!0,t())};return{init:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};s=e,t=n},get:function(){return s.map(function(t){var e=n.find(function(e){return e.key===t.key});return Object.assign(t,e,{achieved:i(t,e)})})},set:function(t){var e=s.find(function(e){return t.key===e.key}),o=n.find(function(e){return e.key===t.key}),a=i(e,o),l=i(e,t);if(!e||a)return!1;if(t.progress&&!o&&r.sendStatsEvent("achievement","start",{source:t.key}),l){var f=n.filter(function(t){return void 0===t.progress||t.progress>=t.maxProgress});r.sendStatsEvent("achievement","complete",{metadata:"ACH=[".concat(f.length+1,"/").concat(s.length,"]"),source:t.key})}return u(o,t),c(l,t.key,e.name,e.description),l},show:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?(e=r.lastStatScreen,a=!1):(r.sendStatsEvent("achievements","close"),r.setStatsScreen(e)),o({showAchievements:t})},get unseen(){return a}}};e.createAchievements=r},function(t,e,n){"use strict";var i=n(10),r=n(49),o=n(173),s=n(98),a=n(21),u=n(54),c=Object.assign;t.exports=!c||n(11)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=i})?function(t,e){for(var n=a(t),c=arguments.length,l=1,f=o.f,d=s.f;c>l;)for(var p,h=u(arguments[l++]),_=f?r(h).concat(f(h)):r(h),g=_.length,v=0;g>v;)p=_[v++],i&&!d.call(h,p)||(n[p]=h[p]);return n}:c},function(t,e){e.f=Object.getOwnPropertySymbols}]);; });</script> <script>Morph.toInit.payloads.push(function() { Morph.setPayload('/data/bbc-morph-id-availability-data/version/1.0.0', {"meta":{"responseCode":200,"errorMessage":null,"headers":{"x-morph-privacy-level":"public","content-type":"application\/json"}},"body":{"isAvailable":true}}); });</script> <script>Morph.toInit.payloads.push(function() { Morph.setPayload('/path/%3F/service/bbcid-config-couk/version/undefined', {"body":"{\"announce_url\":\"https:\/\/session.bbc.co.uk\/session\/announce\",\"bbcid-v5\":\"GREEN\",\"child_parent_linking_url\":\"https:\/\/account.bbc.com\/account\/settings\/linked-accounts\",\"id-availability\":\"GREEN\",\"identity\":{\"accessTokenCookieName\":\"ckns_atkn\",\"cookieAgeDays\":730,\"idSignedInCookieName\":\"ckns_id\"},\"identityTokenExchangeUrl\":\"https:\/\/session.bbc.co.uk\/session\/token-exchange\",\"nma\":{\"refresh_url\":\"https:\/\/session.bbc.co.uk\/session\/tokens\",\"register_url\":\"https:\/\/session.bbc.co.uk\/session?action=register\",\"signin_url\":\"https:\/\/session.bbc.co.uk\/session\",\"signout_url\":\"https:\/\/session.bbc.co.uk\/session\/nma-signout\",\"user_details_url\":\"https:\/\/session.bbc.co.uk\/session\/user-details\"},\"federated\":{\"callbackUrl\":\"https:\/\/session.bbc.co.uk\/session\/callback\/federated\",\"signInUrl\":\"https:\/\/account.bbc.com\/signin\/federated\",\"registerUrl\":\"https:\/\/account.bbc.com\/register\/federated\"},\"features\":{\"showUsiModal\":false},\"privacy_settings_url\":\"https:\/\/account.bbc.com\/account\/settings\/privacy\",\"register_url\":\"https:\/\/session.bbc.co.uk\/session?action=register\",\"settings_url\":\"https:\/\/account.bbc.com\/account\/settings\",\"signin_url\":\"https:\/\/session.bbc.co.uk\/session\",\"signout_url\":\"https:\/\/account.bbc.com\/signout\",\"status_url\":\"https:\/\/account.bbc.com\/account\",\"tokenImprovement\":\"GREEN\",\"tokenRefresh\":true,\"tokenRefresh_signout_url\":\"https:\/\/session.bbc.co.uk\/session\/signout?switchTld=true&ptrt=https%3A%2F%2Fsession.bbc.co.uk%2Fsession%2Fannounce\",\"tokenRefresh_url\":\"https:\/\/session.bbc.co.uk\/session?ptrt=https%3A%2F%2Fsession.bbc.co.uk%2Fsession%2Fannounce\"}","meta":{"responseCode":200,"errorMessage":null,"headers":{"content-type":"application\/json; charset=utf-8","content-length":"464","server":"Apache","cache-control":"public, max-age=30","x-frame-options":"DENY","x-content-type-options":"nosniff","x-xss-protection":"1; mode=block","x-permitted-cross-domain-policies":"none","content-security-policy":"base-uri 'self'; frame-src https:\/\/www.bbc.com; child-src edigitalsurvey.com https:\/\/www.bbc.com; connect-src 'self' *.api.bbci.co.uk *.bbc.co.uk logx.optimizely.com; default-src 'none'; font-src 'self' *.files.bbci.co.uk; form-action 'self' http:\/\/bbc.co.uk https:\/\/bbc.co.uk http:\/\/*.bbc.co.uk https:\/\/*.bbc.co.uk http:\/\/bbc.com https:\/\/bbc.com http:\/\/*.bbc.com https:\/\/*.bbc.com; img-src 'self' data: *.files.bbci.co.uk ichef.bbci.co.uk *.bbci.co.uk *.ati-host.net *.bbc.co.uk; script-src 'self' 'unsafe-eval' 'unsafe-inline' *.files.bbci.co.uk *.bbci.co.uk *.bbc.co.uk cdn.optimizely.com optimizely.s3.amazonaws.com; style-src 'self' 'unsafe-inline' *.files.bbci.co.uk *.bbci.co.uk *.bbc.co.uk","strict-transport-security":"max-age=31536000","etag":"W\/\"619-lUSFS0ofNzE+yDVHpltDaB7VHI8-gzip\"","content-encoding":"gzip","vary":"Accept-Encoding","connection":"keep-alive"}}}); });</script> <script>Morph.toInit.payloads.push(function() { Morph.setPayload('/data/bbc-morph-games-data/baseUrl/%2Fchildrens%2Fassets%2Fgames/game/map2-andys-safari-adventures/project/childrensgames/version/1.1.0', {"meta":{"responseCode":200,"errorMessage":null,"headers":{"content-type":"application\/json"}},"body":{"id":"map2-andys-safari-adventures","title":"[MaP2] Andys Safari Adventures","product":"cbeebies","brand":"Andy's Safari Adventures","description":"MaP2","url":"\/childrens\/assets\/games\/map2-andys-safari-adventures\/70\/main","gameDir":"\/childrens\/assets\/games\/map2-andys-safari-adventures\/70\/","embedVars":{"statsCounterName":"cbeebies.makes.andys_safari_make_a_picture .page","statsAppName":"cbeebies"},"heroImagePid":"p05yw7lr","responsive":true,"isLegacyGame":true,"width":"","height":"","environment":"live"}}); });</script> <script>Morph.toInit.registers.push(function() { Morph.register({"view":"bbc-morph-childrens-games-view","appName":"cbeebies","embedUrl":"https:\/\/web.archive.org\/web\/20191108214155\/https:\/\/www.bbc.co.uk\/cbeebies\/embed\/game\/","game":"map2-andys-safari-adventures","showCallToAction":"true","version":"6.0.1","_mrrVersion":"2.0.16"},'u6668907226676463'); });</script> <script>Morph.init = function() { if (!Morph.initCalled) { Morph.markPerformance('morph-init'); Morph.initCalled = true; requirejs.config({ paths: { 'morph/react' : '//web.archive.org/web/20191108214155/https://m.files.bbci.co.uk/modules/vendor-react/1.0.0/react.min', 'morph/react-dom' : '//web.archive.org/web/20191108214155/https://m.files.bbci.co.uk/modules/vendor-react-dom/1.0.0/react-dom.min', 'morph/es5-shim' : '//web.archive.org/web/20191108214155/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-shim.min', 'morph/es5-sham' : '//web.archive.org/web/20191108214155/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-sham.min', 'morph/module/morph': '//web.archive.org/web/20191108214155/https://m.files.bbci.co.uk/modules/morph/5.3.1/bundle', 'live-push' : '//web.archive.org/web/20191108214155/https://m.files.bbci.co.uk/modules/morph-push-proxy-client/1.0.9/push-proxy' }, shim: { 'morph/react': { deps: ['morph/es5-shim', 'morph/es5-sham'] }, 'morph/es5-sham': { deps: ['morph/es5-shim'] } }, map: { 'morph/react-dom': { 'react': 'morph/react' } } }); } function attempt(fn) { fn(); } requirejs(['morph/react', 'morph/react-dom', 'morph/module/morph'], function(React, ReactDOM) { window.React = React; window.ReactDOM = ReactDOM; if (!Morph.toInitsCalled) { Morph.markPerformance('morph-init-core-deps-complete'); Morph.toInitsCalled = true; } Morph.toInit.bundles.forEach(attempt); Morph.toInit.bundles = []; Morph.markPerformance('morph-init-bundles-complete'); Morph.toInit.payloads.forEach(attempt); Morph.toInit.payloads = []; Morph.markPerformance('morph-init-payloads-complete'); Morph.toInit.registers.forEach(attempt); Morph.toInit.registers = []; Morph.markPerformance('morph-init-registers-complete'); }); };</script> <script>if (!Morph.manualInit) { Morph.init(); } /* u6668907226676463 */</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-local-storage-feature-detection-helper@1.0.1"]={},function(r){function e(t){if(o[t])return o[t].exports;var n=o[t]={exports:{},id:t,loaded:!1};return r[t].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o={};return e.m=r,e.c=o,e.p="",e(0)}([function(r,e,o){Morph.modules["bbc-morph-local-storage-feature-detection-helper@1.0.1"]=o(1)},function(r,e){"use strict";var o=function(){return"localStorage"in window},t=function(){var r="bbc-storage";try{return window.localStorage.setItem(r,r),window.localStorage.removeItem(r),!0}catch(r){return!1}};r.exports.browserSupportsLocalStorage=function(){return o()&&t()}}]);; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-local-storage-helper@1.0.0"]={"bbc-morph-local-storage-feature-detection-helper":"1.0.1"},function(e){function o(t){if(r[t])return r[t].exports;var l=r[t]={exports:{},id:t,loaded:!1};return e[t].call(l.exports,l,l.exports,o),l.loaded=!0,l.exports}var r={};return o.m=e,o.c=r,o.p="",o(0)}([function(e,o,r){Morph.modules["bbc-morph-local-storage-helper@1.0.0"]=r(1)},function(e,o,r){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}var l=r(2),a=t(l),n=function(e){return a.default.browserSupportsLocalStorage()?window.localStorage.getItem(e):null},c=function(e,o){a.default.browserSupportsLocalStorage()&&window.localStorage.setItem(e,o)},u=function(e){a.default.browserSupportsLocalStorage()&&window.localStorage.removeItem(e)};e.exports={setItem:c,getItem:n,removeItem:u}},function(e,o){e.exports=Morph.modules["bbc-morph-local-storage-feature-detection-helper@1.0.1"]}]);; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-classnames@1.0.1"]={classnames:"2.2.5"},function(r){function e(o){if(n[o])return n[o].exports;var s=n[o]={exports:{},id:o,loaded:!1};return r[o].call(s.exports,s,s.exports,e),s.loaded=!0,s.exports}var n={};return e.m=r,e.c=n,e.p="",e(0)}([function(r,e,n){Morph.modules["bbc-morph-classnames@1.0.1"]=n(1)},function(r,e,n){var o=n(2);r.exports=o},function(r,e,n){var o,s;!function(){"use strict";function n(){for(var r=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var s=typeof o;if("string"===s||"number"===s)r.push(o);else if(Array.isArray(o))r.push(n.apply(null,o));else if("object"===s)for(var a in o)t.call(o,a)&&o[a]&&r.push(a)}}return r.join(" ")}var t={}.hasOwnProperty;"undefined"!=typeof r&&r.exports?r.exports=n:(o=[],s=function(){return n}.apply(e,o),!(void 0!==s&&(r.exports=s)))}()}]);; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-gel-icons@2.2.0"]={"bbc-morph-classnames":"1.0.1","morph-require":"3.0.17",react:"0.14.7"},function(e){function r(t){if(n[t])return n[t].exports;var i=n[t]={exports:{},id:t,loaded:!1};return e[t].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}var n={};return r.m=e,r.c=n,r.p="",r(0)}([function(e,r,n){Morph.modules["bbc-morph-gel-icons@2.2.0"]=n(1)},function(e,r,n){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var i=n(2),o=t(i),s=n(3),a=t(s),l=n(4),u=t(l),c=o.default.createClass({displayName:"GEL__Icon",propTypes:{iconName:o.default.PropTypes.string,additionalClassNames:o.default.PropTypes.string},render:function(){var e=(0,u.default)("gel-icon","gel-icon--"+this.props.iconName,this.props.additionalClassNames),r=a.default.selfTransitiveThenUpdate("gel-icon-"+this.props.iconName,this);return o.default.createElement("div",{className:e},r?o.default.createElement(r,null):null)}});c.ensureIcon=function(e){"undefined"==typeof window&&a.default.selfTransitive("gel-icon-"+e,null)},r.default=c,e.exports=r.default},function(e,r){e.exports=React},function(e,r){e.exports={transitive:function(e,r){return Morph.requireTransitiveWithCaller("bbc-morph-gel-icons@2.2.0",e,r)},selfTransitive:function(e,r){return Morph.requireTransitiveWithCaller("bbc-morph-gel-icons@2.2.0",e,r,!0)},transitiveThenUpdate:function(e,r){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-gel-icons@2.2.0",e,r)},selfTransitiveThenUpdate:function(e,r){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-gel-icons@2.2.0",e,r,!0)}}},function(e,r){e.exports=Morph.modules["bbc-morph-classnames@1.0.1"]}]);; });</script> <script>Morph.toInit.bundles.push(function() { !function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var o={};t.m=e,t.c=o,t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=7)}([function(e,t){e.exports=React},function(e,t){e.exports=Morph.modules["bbc-morph-classnames@1.0.1"]},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t,o,n){return e||"reaction-"+n+"-text--"+t+"-"+o};t.default=n,e.exports=t.default},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":a(t))&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p=o(0),l=n(p),f=o(11),d=n(f),y=o(2),h=n(y),b=function(e){function t(o){s(this,t);var n=i(this,e.call(this,o));return n.state={count:o.count},n}return u(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this;if(e.count!==this.props.count){var o=function(){return t.setState({count:e.count})};if(this.props.randomUpdateOffset>0){var n=Math.random()*this.props.randomUpdateOffset;clearTimeout(this.timeoutId),this.timeoutId=setTimeout(o,n)}else o()}},t.prototype.render=function(){var e=this.props,t=e.formatter,o=e.className,n=e.id,s=r(e,["formatter","className","id"]);return l.default.createElement("span",c({id:(0,h.default)(n,this.context.type,this.context.uniqueId,"count"),className:o},s),(0,d.default)(this.state.count+this.props.countOffset,t))},t}(l.default.Component);b.displayName="ReactionCount",b.propTypes={count:p.PropTypes.number,countOffset:p.PropTypes.number,className:p.PropTypes.string,id:p.PropTypes.string,formatter:p.PropTypes.string,randomUpdateOffset:p.PropTypes.number},b.defaultProps={count:0,countOffset:0,className:"",id:"",formatter:null,randomUpdateOffset:0},b.contextTypes={uniqueId:p.PropTypes.string,type:p.PropTypes.string},t.default=b,e.exports=t.default},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},i=o(1),u=n(i),a=o(0),c=n(a),p=o(2),l=n(p),f=function(e,t){var o=e.children,n=e.className,i=e.id,a=e.hidden,p=r(e,["children","className","id","hidden"]);return c.default.createElement("span",s({id:(0,l.default)(i,t.type,t.uniqueId,"label"),className:(0,u.default)(n,{"gs-u-vh":a})},p),o)};f.displayName="ReactionLabel",f.propTypes={children:a.PropTypes.node,className:a.PropTypes.string,id:a.PropTypes.string,hidden:a.PropTypes.bool},f.defaultProps={children:null,className:"",id:"",hidden:!1},f.contextTypes={uniqueId:a.PropTypes.string,type:a.PropTypes.string},t.default=f,e.exports=t.default},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},i=o(1),u=n(i),a=o(0),c=n(a),p=function(e){var t=e.children,o=e.className,n=r(e,["children","className"]);return c.default.createElement("span",s({className:(0,u.default)("gel-icon",o)},n),t)};p.displayName="ReactionIcon",p.propTypes={children:a.PropTypes.node,className:a.PropTypes.string},p.defaultProps={children:null,className:""},t.default=p,e.exports=t.default},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}Object.defineProperty(t,"__esModule",{value:!0});var s=o(15),i=n(s),u=o(0),a=n(u),c=o(5),p=n(c),l=function(e,t){var o=function(o){var n=o.children,s=o.active,u=o.gelIconClassName,c=r(o,["children","active","gelIconClassName"]);return i.default.ensureIcon(s?t:e),a.default.createElement(p.default,c,a.default.createElement(i.default,{additionalClassNames:u,iconName:s?e:t}),n)};return o.displayName="ThumbReactionIcon",o.propTypes={children:u.PropTypes.node,active:u.PropTypes.bool.isRequired,gelIconClassName:u.PropTypes.string},o.defaultProps={children:null,gelIconClassName:null},o};t.default=l,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),r=o.n(n);Morph.modules["bbc-morph-reactions@4.2.0"]=r.a},function(e,t,o){"use strict";e.exports=o(9)},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DislikeReactionIcon=t.LikeReactionIcon=t.ReactionLabel=t.ReactionIcon=t.ReactionCount=t.Reactions=t.Reaction=void 0;var r=o(10),s=n(r),i=o(12),u=n(i),a=o(3),c=n(a),p=o(5),l=n(p),f=o(4),d=n(f),y=o(14),h=n(y),b=o(16),m=n(b);t.Reaction=s.default,t.Reactions=u.default,t.ReactionCount=c.default,t.ReactionIcon=l.default,t.ReactionLabel=d.default,t.LikeReactionIcon=h.default,t.DislikeReactionIcon=m.default,t.default={Reaction:s.default,Reactions:u.default,ReactionCount:c.default,ReactionIcon:l.default,ReactionLabel:d.default,LikeReactionIcon:h.default,DislikeReactionIcon:m.default}},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},c=o(1),p=n(c),l=o(0),f=n(l),d=o(3),y=n(d),h=o(4),b=n(h),m=o(2),v=n(m),P=function(e,t,o,n){return function(r){t&&t(o),e&&e(r,o,n)}},O=function e(t,o,n){var r=[];return f.default.Children.forEach(t,function(t){t.type===b.default&&r.push((0,v.default)(t.props.id,o,n,"label")),t.type===y.default&&r.push((0,v.default)(t.props.id,o,n,"count")),r=[].concat(r,e(t.props&&t.props.children,o,n))}),r},T=function(e){function t(){return r(this,t),s(this,e.apply(this,arguments))}return i(t,e),t.prototype.getChildContext=function(){return{type:this.props.type}},t.prototype.render=function(){return f.default.createElement("li",a({},this.props.liProps,{className:this.props.liProps.className}),f.default.createElement("button",a({},this.props.buttonProps,{"aria-pressed":this.props.type===this.context.active,"aria-labelledby":O(this.props.children,this.props.type,this.context.uniqueId).join(" "),className:(0,p.default)("gs-c-reaction",this.props.buttonProps.className),onClick:P(this.props.onClick,this.context.updateActive,this.props.type,this.context.active)}),this.props.children))},t}(f.default.Component);T.displayName="Reaction",T.propTypes={children:l.PropTypes.node,onClick:l.PropTypes.func,liProps:l.PropTypes.objectOf(l.PropTypes.any),buttonProps:l.PropTypes.objectOf(l.PropTypes.any),type:l.PropTypes.string},T.defaultProps={children:null,onClick:null,liProps:{},buttonProps:{},type:null},T.contextTypes={active:l.PropTypes.string,updateActive:l.PropTypes.func,uniqueId:l.PropTypes.string},T.childContextTypes={type:l.PropTypes.string},t.default=T,e.exports=t.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(e){var t=""+e;return e>=1e4?((e/1e3).toFixed(1)+"K").replace(".0",""):e>=1e3?t[0]+","+t[1]+t[2]+t[3]:t}},r=function(e,t){var o=n[t];return o?o(e):""+e};t.default=r,e.exports=t.default},function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":a(t))&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p=o(13),l=n(p),f=o(0),d=n(f),y=function(e){function t(o){s(this,t);var n=i(this,e.call(this,o)),r=o.active;return n.props.store&&n.props.uniqueId&&"undefined"!=typeof window&&(r=n.props.store.getItem("reactions-"+n.props.uniqueId)),n.state={active:r},n.updateActive=n.updateActive.bind(n),n}return u(t,e),t.prototype.getChildContext=function(){return{active:this.state.active,updateActive:this.updateActive,uniqueId:this.props.uniqueId}},t.prototype.updateActive=function(e){var t=this.state.active===e?null:e;if(this.setState({active:t}),this.props.store&&this.props.uniqueId){var o="reactions-"+this.props.uniqueId;t?this.props.store.setItem(o,t):this.props.store.removeItem(o)}},t.prototype.render=function(){var e=this.props,t=e.children,o=r(e,["children"]),n=t?t(this.state.active):[];return d.default.createElement("ul",c({className:"gs-c-reactions"},o),n)},t}(d.default.Component);y.displayName="Reactions",y.propTypes={active:f.PropTypes.string,children:f.PropTypes.func,uniqueId:f.PropTypes.string,store:f.PropTypes.shape({getItem:f.PropTypes.func,setItem:f.PropTypes.func,removeItem:f.PropTypes.func})},y.defaultProps={active:null,children:null,uniqueId:null,store:l.default},y.childContextTypes={active:f.PropTypes.string,updateActive:f.PropTypes.func,uniqueId:f.PropTypes.string},t.default=y,e.exports=t.default},function(e,t){e.exports=Morph.modules["bbc-morph-local-storage-helper@1.0.0"]},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(6),r=function(e){return e&&e.__esModule?e:{default:e}}(n),s=(0,r.default)("thumbs-up-selected-state","thumbs-up-deselected-state");t.default=s,e.exports=t.default},function(e,t){e.exports=Morph.modules["bbc-morph-gel-icons@2.2.0"]},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(6),r=function(e){return e&&e.__esModule?e:{default:e}}(n),s=(0,r.default)("thumbs-down-selected-state","thumbs-down-deselected-state");t.default=s,e.exports=t.default}]); //# sourceMappingURL=bundle.js.map; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-local-storage-helper@1.0.1"]={"bbc-morph-local-storage-feature-detection-helper":"1.0.1"},function(e){function o(t){if(r[t])return r[t].exports;var l=r[t]={exports:{},id:t,loaded:!1};return e[t].call(l.exports,l,l.exports,o),l.loaded=!0,l.exports}var r={};return o.m=e,o.c=r,o.p="",o(0)}([function(e,o,r){Morph.modules["bbc-morph-local-storage-helper@1.0.1"]=r(1)},function(e,o,r){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}var l=r(2),a=t(l),n=function(e){return a.default.browserSupportsLocalStorage()?window.localStorage.getItem(e):null},c=function(e,o){a.default.browserSupportsLocalStorage()&&window.localStorage.setItem(e,o)},u=function(e){a.default.browserSupportsLocalStorage()&&window.localStorage.removeItem(e)};e.exports={setItem:c,getItem:n,removeItem:u}},function(e,o){e.exports=Morph.modules["bbc-morph-local-storage-feature-detection-helper@1.0.1"]}]);; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-classnames@1.0.2"]={classnames:"2.2.5"},function(r){function o(s){if(n[s])return n[s].exports;var e=n[s]={exports:{},id:s,loaded:!1};return r[s].call(e.exports,e,e.exports,o),e.loaded=!0,e.exports}var n={};o.m=r,o.c=n,o.p="",o(0)}([function(r,o,n){Morph.modules["bbc-morph-classnames@1.0.2"]=n(1)},function(r,o,n){var s=n(2);r.exports=s},function(r,o,n){var s,e;!function(){"use strict";function n(){for(var r=[],o=0;o<arguments.length;o++){var s=arguments[o];if(s){var e=typeof s;if("string"===e||"number"===e)r.push(s);else if(Array.isArray(s))r.push(n.apply(null,s));else if("object"===e)for(var a in s)t.call(s,a)&&s[a]&&r.push(a)}}return r.join(" ")}var t={}.hasOwnProperty;void 0!==r&&r.exports?r.exports=n:(s=[],void 0!==(e=function(){return n}.apply(o,s))&&(r.exports=e))}()}]);; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-childrens-reactions@1.4.7"]={"babel-runtime":"6.26.0","bbc-morph-childrens-reactions-data":"0.7.1","bbc-morph-classnames":"1.0.2","bbc-morph-id-availability-data":"1.0.0","bbc-morph-local-storage-helper":"1.0.1","bbc-morph-reactions":"4.2.0","@bbc/counting-service-client-library":"2.2.1","gel-sass-tools":"1.2.1","gel-typography":"2.0.5","morph-container":"2.1.16","morph-require":"5.2.1",react:"0.14.7",requirejs:"2.3.6","sass-mq":"4.0.2","whatwg-fetch":"2.0.4"},function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){Morph.modules["bbc-morph-childrens-reactions@1.4.7"]=r(1)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.urn,r=e.standalone,n=e.idAvailability,o=Boolean(r),i=(0,a.default)({urn:t,data:"bbc-morph-childrens-reactions-data"},o?{standalone:r}:{}),s=n?{availabilityOverride:n}:{};return{reactionsData:{uri:i,requireSuccess:!1,updates:!1},idAvailabilityData:{uri:(0,a.default)({data:"bbc-morph-id-availability-data"},s),requireSuccess:!0,updates:!1}}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),a=n(i),s=r(41),u=n(s),c=r(42),l=n(c);t.default=u.default.create(l.default,{data:function(e){return e.styleguide?{}:o(e)}}),e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(3),i=n(o);t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}},function(e,t,r){e.exports={default:r(4),__esModule:!0}},function(e,t,r){r(5),e.exports=r(8).Object.assign},function(e,t,r){var n=r(6);n(n.S+n.F,"Object",{assign:r(22)})},function(e,t,r){var n=r(7),o=r(8),i=r(9),a=r(11),s=r(21),u="prototype",c=function(e,t,r){var l,f,d,p=e&c.F,h=e&c.G,y=e&c.S,v=e&c.P,m=e&c.B,b=e&c.W,E=h?o:o[t]||(o[t]={}),_=E[u],g=h?n:y?n[t]:(n[t]||{})[u];h&&(r=t);for(l in r)f=!p&&g&&void 0!==g[l],f&&s(E,l)||(d=f?g[l]:r[l],E[l]=h&&"function"!=typeof g[l]?r[l]:m&&f?i(d,n):b&&g[l]==d?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[u]=e[u],t}(d):v&&"function"==typeof d?i(Function.call,d):d,v&&((E.virtual||(E.virtual={}))[l]=d,e&c.R&&_&&!_[l]&&a(_,l,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){var r=e.exports={version:"2.6.6"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(10);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){var n=r(12),o=r(20);e.exports=r(16)?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(13),o=r(15),i=r(19),a=Object.defineProperty;t.f=r(16)?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(14);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){e.exports=!r(16)&&!r(17)(function(){return 7!=Object.defineProperty(r(18)("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){e.exports=!r(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){var n=r(14),o=r(7).document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,r){var n=r(14);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){"use strict";var n=r(16),o=r(23),i=r(38),a=r(39),s=r(40),u=r(26),c=Object.assign;e.exports=!c||r(17)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=c({},e)[r]||Object.keys(c({},t)).join("")!=n})?function(e,t){for(var r=s(e),c=arguments.length,l=1,f=i.f,d=a.f;c>l;)for(var p,h=u(arguments[l++]),y=f?o(h).concat(f(h)):o(h),v=y.length,m=0;v>m;)p=y[m++],n&&!d.call(h,p)||(r[p]=h[p]);return r}:c},function(e,t,r){var n=r(24),o=r(37);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t,r){var n=r(21),o=r(25),i=r(29)(!1),a=r(33)("IE_PROTO");e.exports=function(e,t){var r,s=o(e),u=0,c=[];for(r in s)r!=a&&n(s,r)&&c.push(r);for(;t.length>u;)n(s,r=t[u++])&&(~i(c,r)||c.push(r));return c}},function(e,t,r){var n=r(26),o=r(28);e.exports=function(e){return n(o(e))}},function(e,t,r){var n=r(27);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(25),o=r(30),i=r(32);e.exports=function(e){return function(t,r,a){var s,u=n(t),c=o(u.length),l=i(a,c);if(e&&r!=r){for(;c>l;)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}}},function(e,t,r){var n=r(31),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(31),o=Math.max,i=Math.min;e.exports=function(e,t){return e=n(e),e<0?o(e+t,0):i(e,t)}},function(e,t,r){var n=r(34)("keys"),o=r(36);e.exports=function(e){return n[e]||(n[e]=o(e))}},function(e,t,r){var n=r(8),o=r(7),i="__core-js_shared__",a=o[i]||(o[i]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(35)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!0},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var n=r(28);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports={create:function(e,t){return Morph.createContainerWithCaller("bbc-morph-childrens-reactions@1.4.7",e,t)}}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(43),i=n(o),a=r(48),s=n(a),u=r(80),c=n(u),l=r(81),f=n(l),d=r(82),p=n(d),h=r(86),y=n(h);r(94);var v=r(95),m=n(v),b=r(96),E=n(b),_=r(100),g=n(_),T=r(154),S=n(T),P=r(119),w=n(P),R=r(114),x=function(e){function t(e){(0,c.default)(this,t);var r=(0,f.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.props=e,r}return(0,y.default)(t,e),(0,p.default)(t,null,[{key:"countsForUrn",value:function(e,t){return t.body&&t.body.countsData[e]?t.body.countsData[e]:{}}},{key:"mapCounts",value:function(e,t){var r="cbeebies"===e?R.CBEEBIES_LABELS:R.CBBC_LABELS;return r.map(function(e){var r=R.LABEL_TO_KEY[e];return{label:e,count:"object"===("undefined"==typeof t?"undefined":(0,s.default)(t))&&r in t?t[r]:0}})}},{key:"totalCountsForUrn",value:function(e,t){return t.body&&t.body.countsTotals[e]?t.body.countsTotals[e]:0}},{key:"getEnv",value:function(e){if(e.body&&"string"==typeof e.body.env){var t=e.body.env;if("int"===t||"test"===t||"stage"===t||"live"===t)return t}return"live"}}]),(0,p.default)(t,[{key:"render",value:function(){var e=this.props,r=e.standalone,n=e.urn,o=e.reactionsData,i=e.product,a=e.resourceType,s=e.styleguide,u=e.pageContext,c=Boolean(r),l=t.countsForUrn(n,o),f=t.mapCounts(i,l),d=t.totalCountsForUrn(n,o),p=t.getEnv(o),h=decodeURIComponent(this.props.resourceTitle),y=decodeURIComponent(this.props.url),v=n.toString().replace("urn:bbc:","").replace("urn:riddle:",""),b="urn:bbc:"+i+":"+a+":"+v,_=!!this.props.forcedError&&new Error(this.props.forcedError),T=Boolean(this.props.acceptanceTestMode);return m.default.createElement("div",{className:"reactions"},s?m.default.createElement(g.default,{product:i}):m.default.createElement(S.default,{enableStandaloneMode:c,countingServiceClientLibrary:E.default,ReactionsModule:w.default,product:i,reactionsCounts:f,reactionsCountTotal:d,urn:n,resourceTitle:h,resourceType:a,url:y,globalId:b,env:p,isIdAvailable:this.props.idAvailabilityData.body.isAvailable,error:_,enableAcceptanceTestMode:T,pageContext:u}))}}]),t}(v.Component);x.displayName="ReactionsBootstrap",x.propTypes={styleguide:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.bool]),standalone:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.bool]),product:v.PropTypes.string.isRequired,resourceType:v.PropTypes.string.isRequired,urn:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.bool]),resourceTitle:v.PropTypes.string.isRequired,url:v.PropTypes.string.isRequired,reactionsData:v.PropTypes.oneOfType([v.PropTypes.shape({body:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.object]),meta:v.PropTypes.object}),v.PropTypes.string]),idAvailabilityData:v.PropTypes.shape({body:v.PropTypes.shape({isAvailable:v.PropTypes.bool})}).isRequired,forcedError:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.bool]),acceptanceTestMode:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.bool]),pageContext:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.bool])},x.defaultProps={styleguide:!1,standalone:!1,urn:!1,reactionsData:{},forcedError:!1,idAvailabilityData:{body:{isAvailable:!0}},acceptanceTestMode:!1,pageContext:!1},t.default=x,e.exports=t.default},function(e,t,r){e.exports={default:r(44),__esModule:!0}},function(e,t,r){r(45),e.exports=r(8).Object.getPrototypeOf},function(e,t,r){var n=r(40),o=r(46);r(47)("getPrototypeOf",function(){return function(e){return o(n(e))}})},function(e,t,r){var n=r(21),o=r(40),i=r(33)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),n(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,r){var n=r(6),o=r(8),i=r(17);e.exports=function(e,t){var r=(o.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*i(function(){r(1)}),"Object",a)}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(49),i=n(o),a=r(67),s=n(a),u="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(i.default)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":u(e)}},function(e,t,r){e.exports={default:r(50),__esModule:!0}},function(e,t,r){r(51),r(62),e.exports=r(66).f("iterator")},function(e,t,r){"use strict";var n=r(52)(!0);r(53)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){var n=r(31),o=r(28);e.exports=function(e){return function(t,r){var i,a,s=String(o(t)),u=n(r),c=s.length;return u<0||u>=c?e?"":void 0:(i=s.charCodeAt(u),i<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):i:e?s.slice(u,u+2):(i-55296<<10)+(a-56320)+65536)}}},function(e,t,r){"use strict";var n=r(35),o=r(6),i=r(54),a=r(11),s=r(55),u=r(56),c=r(60),l=r(46),f=r(61)("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",y="values",v=function(){return this};e.exports=function(e,t,r,m,b,E,_){u(r,t,m);var g,T,S,P=function(e){if(!d&&e in O)return O[e];switch(e){case h:return function(){return new r(this,e)};case y:return function(){return new r(this,e)}}return function(){return new r(this,e)}},w=t+" Iterator",R=b==y,x=!1,O=e.prototype,A=O[f]||O[p]||b&&O[b],M=A||P(b),C=b?R?P("entries"):M:void 0,L="Array"==t?O.entries||A:A;if(L&&(S=l(L.call(new e)),S!==Object.prototype&&S.next&&(c(S,w,!0),n||"function"==typeof S[f]||a(S,f,v))),R&&A&&A.name!==y&&(x=!0,M=function(){return A.call(this)}),n&&!_||!d&&!x&&O[f]||a(O,f,M),s[t]=M,s[w]=v,b)if(g={values:R?M:P(y),keys:E?M:P(h),entries:C},_)for(T in g)T in O||i(O,T,g[T]);else o(o.P+o.F*(d||x),t,g);return g}},function(e,t,r){e.exports=r(11)},function(e,t){e.exports={}},function(e,t,r){"use strict";var n=r(57),o=r(20),i=r(60),a={};r(11)(a,r(61)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:o(1,r)}),i(e,t+" Iterator")}},function(e,t,r){var n=r(13),o=r(58),i=r(37),a=r(33)("IE_PROTO"),s=function(){},u="prototype",c=function(){var e,t=r(18)("iframe"),n=i.length,o="<",a=">";for(t.style.display="none",r(59).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+a+"document.F=Object"+o+"/script"+a),e.close(),c=e.F;n--;)delete c[u][i[n]];return c()};e.exports=Object.create||function(e,t){var r;return null!==e?(s[u]=n(e),r=new s,s[u]=null,r[a]=e):r=c(),void 0===t?r:o(r,t)}},function(e,t,r){var n=r(12),o=r(13),i=r(23);e.exports=r(16)?Object.defineProperties:function(e,t){o(e);for(var r,a=i(t),s=a.length,u=0;s>u;)n.f(e,r=a[u++],t[r]);return e}},function(e,t,r){var n=r(7).document;e.exports=n&&n.documentElement},function(e,t,r){var n=r(12).f,o=r(21),i=r(61)("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},function(e,t,r){var n=r(34)("wks"),o=r(36),i=r(7).Symbol,a="function"==typeof i,s=e.exports=function(e){return n[e]||(n[e]=a&&i[e]||(a?i:o)("Symbol."+e))};s.store=n},function(e,t,r){r(63);for(var n=r(7),o=r(11),i=r(55),a=r(61)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],l=n[c],f=l&&l.prototype;f&&!f[a]&&o(f,a,c),i[c]=i.Array}},function(e,t,r){"use strict";var n=r(64),o=r(65),i=r(55),a=r(25);e.exports=r(53)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,r):"values"==t?o(0,e[r]):o(0,[r,e[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){t.f=r(61)},function(e,t,r){e.exports={default:r(68),__esModule:!0}},function(e,t,r){r(69),r(77),r(78),r(79),e.exports=r(8).Symbol},function(e,t,r){"use strict";var n=r(7),o=r(21),i=r(16),a=r(6),s=r(54),u=r(70).KEY,c=r(17),l=r(34),f=r(60),d=r(36),p=r(61),h=r(66),y=r(71),v=r(72),m=r(73),b=r(13),E=r(14),_=r(40),g=r(25),T=r(19),S=r(20),P=r(57),w=r(74),R=r(76),x=r(38),O=r(12),A=r(23),M=R.f,C=O.f,L=w.f,I=n.Symbol,k=n.JSON,N=k&&k.stringify,j="prototype",B=p("_hidden"),U=p("toPrimitive"),D={}.propertyIsEnumerable,F=l("symbol-registry"),q=l("symbols"),z=l("op-symbols"),H=Object[j],K="function"==typeof I,W=n.QObject,V=!W||!W[j]||!W[j].findChild,Y=i&&c(function(){return 7!=P(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=M(H,t);n&&delete H[t],C(e,t,r),n&&e!==H&&C(H,t,n)}:C,G=function(e){var t=q[e]=P(I[j]);return t._k=e,t},J=K&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},X=function(e,t,r){return e===H&&X(z,t,r),b(e),t=T(t,!0),b(r),o(q,t)?(r.enumerable?(o(e,B)&&e[B][t]&&(e[B][t]=!1),r=P(r,{enumerable:S(0,!1)})):(o(e,B)||C(e,B,S(1,{})),e[B][t]=!0),Y(e,t,r)):C(e,t,r)},$=function(e,t){b(e);for(var r,n=v(t=g(t)),o=0,i=n.length;i>o;)X(e,r=n[o++],t[r]);return e},Q=function(e,t){return void 0===t?P(e):$(P(e),t)},Z=function(e){var t=D.call(this,e=T(e,!0));return!(this===H&&o(q,e)&&!o(z,e))&&(!(t||!o(this,e)||!o(q,e)||o(this,B)&&this[B][e])||t)},ee=function(e,t){if(e=g(e),t=T(t,!0),e!==H||!o(q,t)||o(z,t)){var r=M(e,t);return!r||!o(q,t)||o(e,B)&&e[B][t]||(r.enumerable=!0),r}},te=function(e){for(var t,r=L(g(e)),n=[],i=0;r.length>i;)o(q,t=r[i++])||t==B||t==u||n.push(t);return n},re=function(e){for(var t,r=e===H,n=L(r?z:g(e)),i=[],a=0;n.length>a;)!o(q,t=n[a++])||r&&!o(H,t)||i.push(q[t]);return i};K||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===H&&t.call(z,r),o(this,B)&&o(this[B],e)&&(this[B][e]=!1),Y(this,e,S(1,r))};return i&&V&&Y(H,e,{configurable:!0,set:t}),G(e)},s(I[j],"toString",function(){return this._k}),R.f=ee,O.f=X,r(75).f=w.f=te,r(39).f=Z,x.f=re,i&&!r(35)&&s(H,"propertyIsEnumerable",Z,!0),h.f=function(e){return G(p(e))}),a(a.G+a.W+a.F*!K,{Symbol:I});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),oe=0;ne.length>oe;)p(ne[oe++]);for(var ie=A(p.store),ae=0;ie.length>ae;)y(ie[ae++]);a(a.S+a.F*!K,"Symbol",{for:function(e){return o(F,e+="")?F[e]:F[e]=I(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!K,"Object",{create:Q,defineProperty:X,defineProperties:$,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:re});var se=c(function(){x.f(1)});a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return x.f(_(e))}}),k&&a(a.S+a.F*(!K||c(function(){var e=I();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=t=n[1],(E(t)||void 0!==e)&&!J(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!J(t))return t}),n[1]=t,N.apply(k,n)}}),I[j][U]||r(11)(I[j],U,I[j].valueOf),f(I,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},function(e,t,r){var n=r(36)("meta"),o=r(14),i=r(21),a=r(12).f,s=0,u=Object.isExtensible||function(){return!0},c=!r(17)(function(){return u(Object.preventExtensions({}))}),l=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,n)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[n].i},d=function(e,t){if(!i(e,n)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[n].w},p=function(e){return c&&h.NEED&&u(e)&&!i(e,n)&&l(e),e},h=e.exports={KEY:n,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}},function(e,t,r){var n=r(7),o=r(8),i=r(35),a=r(66),s=r(12).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,r){var n=r(23),o=r(38),i=r(39);e.exports=function(e){var t=n(e),r=o.f;if(r)for(var a,s=r(e),u=i.f,c=0;s.length>c;)u.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,r){var n=r(27);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(25),o=r(75).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?s(e):o(n(e))}},function(e,t,r){var n=r(24),o=r(37).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},function(e,t,r){var n=r(39),o=r(20),i=r(25),a=r(19),s=r(21),u=r(15),c=Object.getOwnPropertyDescriptor;t.f=r(16)?c:function(e,t){if(e=i(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return o(!n.f.call(e,t),e[t])}},function(e,t){},function(e,t,r){r(71)("asyncIterator")},function(e,t,r){r(71)("observable")},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(48),i=n(o);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(83),i=n(o);t.default=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,i.default)(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},function(e,t,r){e.exports={default:r(84),__esModule:!0}},function(e,t,r){r(85);var n=r(8).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},function(e,t,r){var n=r(6);n(n.S+n.F*!r(16),"Object",{defineProperty:r(12).f})},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(87),i=n(o),a=r(91),s=n(a),u=r(48),c=n(u);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,c.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,r){e.exports={default:r(88),__esModule:!0}},function(e,t,r){r(89),e.exports=r(8).Object.setPrototypeOf},function(e,t,r){var n=r(6);n(n.S,"Object",{setPrototypeOf:r(90).set})},function(e,t,r){var n=r(14),o=r(13),i=function(e,t){if(o(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=r(9)(Function.call,r(76).f(Object.prototype,"__proto__").set,2),n(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return i(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:i}},function(e,t,r){e.exports={default:r(92),__esModule:!0}},function(e,t,r){r(93);var n=r(8).Object;e.exports=function(e,t){return n.create(e,t)}},function(e,t,r){var n=r(6);n(n.S,"Object",{create:r(57)})},function(e,t){!function(e){"use strict";function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function r(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return m.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function a(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function s(e){var t=new FileReader,r=a(t);return t.readAsArrayBuffer(e),r}function u(e){var t=new FileReader,r=a(t);return t.readAsText(e),r}function c(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}function l(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(m.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(m.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(m.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(m.arrayBuffer&&m.blob&&E(e))this._bodyArrayBuffer=l(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!m.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!_(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=l(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):m.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},m.blob&&(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?i(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return u(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(c(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},m.formData&&(this.formData=function(){return this.text().then(h)}),this.json=function(){return this.text().then(JSON.parse)},this}function d(e){var t=e.toUpperCase();return g.indexOf(t)>-1?t:e}function p(e,t){t=t||{};var r=t.body;if(e instanceof p){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=d(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function y(e){var t=new o,r=e.replace(/\r?\n[\t ]+/g," ");return r.split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}}),t}function v(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var m={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(m.arrayBuffer)var b=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],E=function(e){return e&&DataView.prototype.isPrototypeOf(e)},_=ArrayBuffer.isView||function(e){return e&&b.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,n){e=t(e),n=r(n);var o=this.map[e];this.map[e]=o?o+","+n:n},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,n){this.map[t(e)]=r(n)},o.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),n(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),n(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),n(e)},m.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},f.call(p.prototype),f.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var T=[301,302,303,307,308];v.redirect=function(e,t){if(T.indexOf(t)===-1)throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=p,e.Response=v,e.fetch=function(e,t){return new Promise(function(r,n){var o=new p(e,t),i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:y(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;r(new v(t,e))},i.onerror=function(){n(new TypeError("Network request failed"))},i.ontimeout=function(){n(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&m.blob&&(i.responseType="blob"),o.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send("undefined"==typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},function(e,t){e.exports=React},function(e,t,r){e.exports={postToUAS:r(97),deleteFromUAS:r(99)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(98),o=function(e,t,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;if((0,n.activityTypeIsValid)(e)&&(0,n.dataContainsAllRequiredKeys)(t)&&(0,n.apiKeyIsValid)(r)&&(0,n.envIsValid)(o)&&(0,n.domainExtIsValid)(i)){var u=(0,n.selectUASEndpoint)(o,i,e,a),c=s?(0,n.getUrlWithPreviousAction)(u,s):u,l=(0,n.buildHeaders)(u,r),f=JSON.stringify(t),d=(0,n.buildRequest)(c,l,f,"POST"),p=a?"include":"omit",h={credentials:p};return fetch(d,h)}};t.default=o,e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return"plays"===e||"reactions"===e},n=function(e){return Boolean(e.resourceDomain&&e.resourceType&&e.resourceId&&e.action&&e.actionContext)},o=function(e){return"string"==typeof e&&/^[a-z0-9]{13,}$/i.test(e)},i=function(e){return"string"==typeof e&&("int"===e||"test"===e||"stage"===e||"live"===e)},a=function(e){return".co.uk"===e||".com"===e},s={ int:"int.",test:"test.",stage:"stage.",live:""},u=function(e,t,r,n){var o=s[e],i=n?"":"nsi.";return"https://"+i+"activity."+o+"api.bbc"+t+"/my/"+r},c=function(e,t){return e+"?previousAction="+t},l=function(e,t){var r=new Headers({Host:e,"Content-Type":"application/json","X-API-Key":t});return r},f=function(e,t,r,n){return new Request(e,{method:n,headers:t,body:r})};t.default={buildRequest:f,buildHeaders:l,selectUASEndpoint:u,domainExtIsValid:a,envIsValid:i,apiKeyIsValid:o,dataContainsAllRequiredKeys:n,activityTypeIsValid:r,getUrlWithPreviousAction:c},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(98),o=function(e,t,r){var n=e+"/"+t;return r?n+"?previousAction="+r:n},i=function(e,t,r,i,a,s,u){var c=(0,n.selectUASEndpoint)(r,i,e,s),l=o(c,a,u),f=(0,n.buildHeaders)(c,t),d=(0,n.buildRequest)(l,f,null,"DELETE"),p=s?"include":"omit",h={credentials:p};return fetch(d,h)},a=function(e,t,r,o,a){var s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,c=void 0;return c=(0,n.activityTypeIsValid)(e)&&(0,n.apiKeyIsValid)(t)&&(0,n.envIsValid)(r)&&(0,n.domainExtIsValid)(o)?i(e,t,r,o,a,s,u):Promise.reject("Invalid parameters")};t.default=a,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(95),i=n(o),a=r(101),s=n(a),u=r(102),c=r(103),l=n(c),f=r(109),d=n(f),p=r(118),h=n(p),y=r(111),v=n(y),m=r(114),b=r(119),E=n(b),_=r(154),g=n(_),T=r(147),S=n(T),P=r(148),w=r(156),R=n(w),x=function(){},O={postToUas:x,deleteFromUas:x},A="styleguide:urn",M="styleguide:resourceTitle",C="styleguide:url",L="styleguide:globalId",I="game",k=function(e){var t=e.children;return i.default.createElement("h3",{className:"reactions-styleguide__heading"},t)};k.displayName="SectionHeading",k.propTypes={children:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.node),o.PropTypes.node]).isRequired};var N=function(e){var t=e.children;return i.default.createElement("h4",{className:"reactions-styleguide__subheading"},t)};N.displayName="SubHeading",N.propTypes={children:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.node),o.PropTypes.node]).isRequired};var j=function(e){var t=e.id,r=e.heading,n=e.children,o=e.className;return i.default.createElement("section",{id:t,className:(0,s.default)("reactions-styleguide__section",o)},i.default.createElement(k,null,r),n)};j.displayName="Section",j.propTypes={id:o.PropTypes.string.isRequired,heading:o.PropTypes.string.isRequired,children:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.node),o.PropTypes.node]),className:o.PropTypes.string},j.defaultProps={children:i.default.createElement("noscript",null),className:""};var B={cbbc:[{count:1e4,label:m.LOVE},{count:123,label:m.LOL},{count:5347890,label:m.APPLAUSE},{count:0,label:m.GOTIT},{count:39,label:m.OMD},{count:834,label:m.SAD}],cbeebies:[{count:1e4,label:m.LOVE},{count:5347890,label:m.FUNNY},{count:0,label:m.CLAP},{count:123,label:m.GOTIT},{count:39,label:m.WOW},{count:834,label:m.SAD}],get"stay-safe"(){return this.cbbc}},U=5358886,D=function(e){return i.default.createElement("div",{className:"reactions-styleguide"},i.default.createElement(j,{heading:"Overview Cluster (CTA)",id:"overview-cluster"},i.default.createElement(N,null,"Open Without Count - clicked"),i.default.createElement(l.default,{onClick:x,isOpen:!0,count:0,product:e.product,hasBeenClicked:!0}),i.default.createElement(N,null,"Closed Without Count - clicked"),i.default.createElement(l.default,{onClick:x,isOpen:!1,count:0,product:e.product,hasBeenClicked:!0}),i.default.createElement(N,null,"Open With Count - clicked"),i.default.createElement(l.default,{onClick:x,isOpen:!0,count:555,product:e.product,hasBeenClicked:!0}),i.default.createElement(N,null,"Closed With Count - not clicked"),i.default.createElement(l.default,{onClick:x,isOpen:!1,count:U,product:e.product,hasBeenClicked:!1})),i.default.createElement(j,{heading:"Reaction Tray",id:"reaction-tray"},i.default.createElement(d.default,{showReactions:!0,product:e.product,reactionsCounts:B[e.product],reactionButtonPressStart:x,reactionButtonPressEnd:x,reactionButtonClick:x,selectedReaction:"Love",updateSelectedReaction:x})),i.default.createElement(j,{heading:"Cookie Disabled Banner",id:"cookie-warning-banner"},i.default.createElement(h.default,null)),i.default.createElement(j,{heading:"Error Message Banner",id:"error-message-banner"},i.default.createElement(S.default,null)),i.default.createElement(j,{heading:"Individual Reactions",id:"reactions-list"},B[e.product].map(function(t,r){return i.default.createElement("div",{key:r},i.default.createElement(N,null,t.label),i.default.createElement(u.Reactions,{uniqueId:"1"},function(){return i.default.createElement(v.default,{product:e.product,label:t.label,count:t.count,clickHandler:x,showReactions:!0,reactionButtonPressStart:x,reactionButtonPressEnd:x,reactionButtonClick:x})}))})),i.default.createElement(j,{heading:"Reactions Module",id:"reactions-module"},i.default.createElement(N,null,"With Cookies banner"),i.default.createElement(g.default,{enableStandaloneMode:!0,postToUASHandler:x,ReactionsModule:E.default,product:e.product,urn:A,resourceTitle:M,url:C,globalId:L,reactionsCounts:B[e.product],showCookieBanner:!0,env:"test",isSignedIn:!0,isIdAvailable:!0,idctaService:R.default,countingServiceClientLibrary:O,reactionsCountTotal:U,resourceType:I}),i.default.createElement(N,null,"With error message after reaction is clicked"),i.default.createElement(g.default,{enableStandaloneMode:!0,postToUASHandler:x,ReactionsModule:E.default,product:e.product,urn:A,resourceTitle:M,url:C,globalId:L,reactionsCounts:B[e.product],env:"test",isSignedIn:!0,isIdAvailable:!0,idctaService:R.default,error:new Error(P.ErrorTypes.UAS_FAILURE),countingServiceClientLibrary:O,reactionsCountTotal:U,resourceType:I}),i.default.createElement(N,null,"Without Cookies banner"),i.default.createElement(g.default,{enableStandaloneMode:!0,postToUASHandler:x,ReactionsModule:E.default,product:e.product,urn:A,resourceTitle:M,url:C,globalId:L,reactionsCounts:B[e.product],env:"test",isSignedIn:!0,isIdAvailable:!0,idctaService:R.default,countingServiceClientLibrary:O,reactionsCountTotal:U,resourceType:I})))};D.propTypes={product:o.PropTypes.string.isRequired},t.default=D,e.exports=t.default},function(e,t){e.exports=Morph.modules["bbc-morph-classnames@1.0.2"]},function(e,t){e.exports=Morph.modules["bbc-morph-reactions@4.2.0"]},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(95),i=n(o),a=r(101),s=n(a),u=r(104),c=n(u),l=function(e){var t=e.count>0?". Total number of reactions: "+e.count:"",r=e.isOpen?"Reactions. Hide Reactions":"Reactions. Show Reactions"+t;return i.default.createElement("button",{className:(0,s.default)("reactions-cta",{"reactions-cta--open":e.isOpen,"reactions-cta--clicked":e.hasBeenClicked}),"aria-pressed":e.isOpen,"aria-label":r,onClick:function(){e.onClick()}},i.default.createElement(c.default,e))};l.displayName="Cta",l.propTypes={onClick:o.PropTypes.func.isRequired,isOpen:o.PropTypes.bool.isRequired,count:o.PropTypes.number.isRequired,product:o.PropTypes.string.isRequired,hasBeenClicked:o.PropTypes.bool.isRequired},t.default=l,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(95),i=n(o),a=r(105),s=n(a),u=r(106),c=n(u),l=r(107),f=n(l),d=r(108),p=n(d),h=function(e){var t={cbeebies:c.default,cbbc:s.default,get"stay-safe"(){return this.cbbc}},r=t[e.product];return i.default.createElement("div",{className:"reactions-cta-image"},i.default.createElement("span",null,i.default.createElement(r,null),e.count>0&&i.default.createElement(p.default,{count:e.count})),i.default.createElement(f.default,null))};h.displayName="CtaImage",h.propTypes={count:o.PropTypes.number.isRequired,product:o.PropTypes.string.isRequired},t.default=h,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(95),i=n(o),a="CtaCbbcWithoutCount",s=function(){return i.default.createElement("span",{className:"cta-icon cta-cbbc-icon"},i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 76 68"},i.default.createElement("path",{d:"M50.54 34.94A20.35 20.35 0 0 1 40 26.27c-.66-1.16-3.36-5.85-1.47-11.16a9.34 9.34 0 0 1 4-4.83 9.8 9.8 0 0 1 10.63 0 9.8 9.8 0 0 1 5.47-9.12 9.34 9.34 0 0 1 6.21-1c5.53 1.1 8.16 5.83 8.82 7a20.35 20.35 0 0 1 2 13.47c-1.25 7.19-8.81 13.81-8.81 13.81s-9.5 3.12-16.31.5z",fill:"#e63f23",fillRule:"evenodd"}),i.default.createElement("path",{d:"M42 15.34c-.79 1.44-.56 3.07.5 3.63s2.56-.15 3.34-1.6.56-3.07-.5-3.63-2.51.15-3.34 1.6z",fill:"#ee7966"}),i.default.createElement("circle",{cx:"20",cy:"25",r:"19.94",transform:"rotate(-85 20.002 25.004)",fill:"#efc203"}),i.default.createElement("path",{d:"M6.3 17.19v-.07c.06-.24.12-.47.2-.71s.19-.45.3-.68.25-.43.39-.64a7 7 0 0 1 .47-.59 6.28 6.28 0 0 1 .54-.5 6.16 6.16 0 0 1 .59-.47 6.55 6.55 0 0 1 .64-.41 7.57 7.57 0 0 1 1.39-.61 6.4 6.4 0 0 1 .73-.2 6 6 0 0 1 .74-.13 6 6 0 0 1 .71-.08 6 6 0 0 1 .74 0c.25 0 .49 0 .73.09s.48.09.72.16.47.15.69.24c-.24 0-.48.08-.72.11l-.7.11c-.23 0-.46.08-.68.12s-.45.1-.67.14-.44.11-.65.16-.43.12-.64.19-.42.14-.63.22a6.37 6.37 0 0 0-.61.25 6.39 6.39 0 0 0-.59.28c-.2.09-.38.21-.58.31s-.37.24-.56.35-.36.26-.54.38-.34.28-.53.42-.34.3-.51.46-.32.33-.5.49-.31.35-.49.53zM35.55 22.4v-.07c-.1-.23-.19-.45-.28-.66s-.19-.43-.3-.63-.2-.41-.32-.6-.22-.39-.35-.57-.24-.37-.38-.55-.25-.36-.41-.52-.27-.34-.43-.49a6.39 6.39 0 0 0-.46-.47 6.37 6.37 0 0 0-.49-.44c-.17-.14-.33-.29-.51-.42s-.35-.28-.53-.4-.36-.27-.56-.38-.38-.25-.58-.37-.39-.25-.6-.35l-.62-.35c-.21-.11-.42-.22-.64-.35h.73c.24 0 .48.06.73.1s.48.11.72.17a7.6 7.6 0 0 1 1.38.55 6 6 0 0 1 .65.37 6.4 6.4 0 0 1 .62.44A7.57 7.57 0 0 1 34 17.46a6.55 6.55 0 0 1 .46.6 6.16 6.16 0 0 1 .39.65 6.28 6.28 0 0 1 .32.69 7 7 0 0 1 .24.72c.06.24.1.49.15.73s0 .5.05.74 0 .49-.06.74z",fill:"#9f8214"}),i.default.createElement("circle",{cx:"13.71",cy:"20.6",r:"5.25",transform:"rotate(-79.9 13.71 20.605)",fill:"#fff"}),i.default.createElement("ellipse",{cx:"13.71",cy:"20.74",rx:"3.04",ry:"2.56",transform:"rotate(-79.9 13.711 20.738)",fill:"#2b2b2b"}),i.default.createElement("circle",{cx:"27.2",cy:"23.01",r:"5.25",transform:"rotate(-79.9 27.2 23.006)",fill:"#fff"}),i.default.createElement("ellipse",{cx:"27.15",cy:"23.13",rx:"3.04",ry:"2.56",transform:"rotate(-79.9 27.15 23.127)",fill:"#2b2b2b"}),i.default.createElement("path",{d:"M22.52 34.49c-.51 2.89-2.91 4.88-5.34 4.45s-4-3.13-3.48-6q0-.22.09-.42c.66-2.66 2.94-4.44 5.25-4s3.96 3.08 3.48 5.97z",fill:"#2b2b2b"}),i.default.createElement("circle",{cx:"42.08",cy:"45.87",r:"22.16",transform:"rotate(-81.9 42.082 45.87)",fill:"#ffd201"}),i.default.createElement("path",{"data-name":"<Path>",d:"M66.62 48.07a3.8 3.8 0 0 1-4.5 6.13c-1.7-1.24-5.22-8.51-5.22-8.51s8.02 1.14 9.72 2.38zM18.06 41.1a3.79 3.79 0 1 0 2.54 7.15c2-.71 7.44-6.67 7.44-6.67s-8.04-1.19-9.98-.48z",fill:"#269dc8"}),i.default.createElement("path",{d:"M27.82 44.39a14.18 14.18 0 0 0 28.07 4.11z",fill:"#2b2b2b"}),i.default.createElement("path",{d:"M32.53 57.11a8.31 8.31 0 0 1 15.21 2.22",fill:"#a75916"}),i.default.createElement("path",{d:"M40.86 53.15a8.32 8.32 0 0 0-8.36 4 14.25 14.25 0 0 0 7.27 3.36 13.92 13.92 0 0 0 7.94-1.14 8.22 8.22 0 0 0-6.85-6.22z",fill:"#e63f23"}),i.default.createElement("path",{d:"M53.76 43.64a.87.87 0 0 1-.7-.58 3.41 3.41 0 0 0-6-.86.87.87 0 0 1-1.43-1 5.14 5.14 0 0 1 9.1 1.3.87.87 0 0 1-.94 1.13zM39.76 41.65a.87.87 0 0 1-.7-.58 3.41 3.41 0 0 0-6-.86.87.87 0 0 1-1.43-1 5.14 5.14 0 0 1 9.1 1.3.87.87 0 0 1-.94 1.13z",fill:"#2b2b2b"})))};s.displayName=a,t.default=s,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(95),i=n(o),a="CtaCbeebiesWithoutCount",s=function(){return i.default.createElement("span",{className:"cta-icon cta-cbeebies-icon"},i.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 76 68"},i.default.createElement("defs",null,i.default.createElement("clipPath",{id:"a"},i.default.createElement("path",{d:"M16.26 38.31a9.6 9.6 0 0 1-6.72-11.8 19.21 19.21 0 0 1 10-.22l.42.11a19.21 19.21 0 0 1 8.57 5.24 9.6 9.6 0 0 1-11.74 6.82z",fill:"#2b2b2b"}))),i.default.createElement("circle",{cx:"20.16",cy:"25.01",r:"19.9",transform:"rotate(-80 20.16 25.01)",fill:"#efc203"}),i.default.createElement("ellipse",{cx:"14.75",cy:"18.89",rx:"3.3",ry:"2.55",transform:"rotate(-74.9 14.757 18.895)",fill:"#2b2b2b"}),i.default.createElement("ellipse",{cx:"27.9",cy:"22.44",rx:"3.3",ry:"2.55",transform:"rotate(-74.9 27.908 22.442)",fill:"#2b2b2b"}),i.default.createElement("path",{d:"M7.46 14.93v-.07c.08-.23.16-.46.26-.69s.23-.43.36-.65.29-.41.45-.6a7 7 0 0 1 .52-.55 6.27 6.27 0 0 1 .58-.48 6.15 6.15 0 0 1 .63-.42 6.54 6.54 0 0 1 .67-.35 7.55 7.55 0 0 1 1.43-.48 6.38 6.38 0 0 1 .74-.13 6 6 0 0 1 .75-.06 6 6 0 0 1 .75 0 6 6 0 0 1 .74.08c.24.05.49.08.72.15s.47.13.7.22.45.19.67.3h-.72l-.7.05c-.23 0-.46 0-.69.06s-.45.06-.68.08-.44.07-.66.11-.44.09-.65.13-.43.1-.64.16a6.35 6.35 0 0 0-.63.19 6.38 6.38 0 0 0-.62.23c-.21.07-.4.17-.6.26s-.39.2-.59.3-.38.23-.57.33-.37.25-.56.37-.36.27-.54.41L8 14.4c-.17.16-.34.32-.53.48zM36.09 22.66v-.07c-.08-.23-.15-.46-.22-.68s-.15-.44-.24-.65-.17-.42-.27-.63-.19-.41-.3-.6-.2-.39-.33-.58-.22-.38-.36-.55-.24-.36-.39-.53a6.38 6.38 0 0 0-.42-.51 6.35 6.35 0 0 0-.45-.48c-.15-.16-.3-.32-.47-.46s-.32-.3-.5-.44-.34-.3-.52-.43-.35-.29-.54-.41-.37-.28-.56-.4l-.58-.4c-.2-.13-.4-.26-.6-.4.24 0 .49 0 .73.07s.48.11.72.16.46.16.7.23a7.58 7.58 0 0 1 1.33.67 6 6 0 0 1 .62.43 6.38 6.38 0 0 1 .57.49 7.55 7.55 0 0 1 1 1.14 6.54 6.54 0 0 1 .41.64 6.15 6.15 0 0 1 .33.68 6.27 6.27 0 0 1 .26.71 7 7 0 0 1 .17.73c0 .25.06.5.08.74s0 .5 0 .74-.07.49-.12.73z",fill:"#9f8214"}),i.default.createElement("path",{d:"M16.26 38.31a9.6 9.6 0 0 1-6.72-11.8 19.21 19.21 0 0 1 10-.22l.42.11a19.21 19.21 0 0 1 8.57 5.24 9.6 9.6 0 0 1-11.74 6.82z",fill:"#2b2b2b"}),i.default.createElement("g",{clipPath:"url(#a)"},i.default.createElement("ellipse",{cx:"16.36",cy:"39.1",rx:"4.41",ry:"5.64",transform:"rotate(-74.9 16.361 39.1)",fill:"#e63f23"})),i.default.createElement("path",{d:"M50.54 34.94A20.35 20.35 0 0 1 40 26.27c-.66-1.16-3.36-5.85-1.47-11.16a9.34 9.34 0 0 1 4-4.83 9.8 9.8 0 0 1 10.63 0 9.8 9.8 0 0 1 5.47-9.12 9.34 9.34 0 0 1 6.21-1c5.53 1.1 8.16 5.83 8.82 7a20.35 20.35 0 0 1 2 13.47c-1.25 7.19-8.81 13.81-8.81 13.81s-9.5 3.12-16.31.5z",fill:"#e63f23",fillRule:"evenodd"}),i.default.createElement("path",{d:"M42 15.34c-.79 1.44-.56 3.07.5 3.63s2.56-.15 3.34-1.6.56-3.07-.5-3.63-2.51.15-3.34 1.6z",fill:"#ee7966"}),i.default.createElement("circle",{cx:"42.08",cy:"45.81",r:"22.09",transform:"matrix(.17 -.98 .98 .17 -10.35 79.3)",fill:"#ffd201"}),i.default.createElement("path",{d:"M55.66 49a14.07 14.07 0 0 1-27.69-5",fill:"#2b2b2b"}),i.default.createElement("path",{d:"M32.21 56.72a8.24 8.24 0 0 1 15 2.7",fill:"#a75916"}),i.default.createElement("path",{d:"M40.6 53.07a8.26 8.26 0 0 0-8.42 3.68 14.13 14.13 0 0 0 7.1 3.57 13.8 13.8 0 0 0 7.91-.87 8.15 8.15 0 0 0-6.59-6.38z",fill:"#e63f23"}),i.default.createElement("path",{d:"M53.22 43.65l-7.29-4.21a.94.94 0 0 1 .31-1.73l8.26-1.39a.7.7 0 0 1 .27 1.38l-6 1.37 5.13 3.43a.67.67 0 0 1-.71 1.15zM33.35 32.47l7.29 4.21a.94.94 0 0 1-.31 1.73l-8.27 1.39a.7.7 0 0 1-.27-1.38l6-1.37-5.13-3.43a.67.67 0 0 1 .71-1.15z",fill:"#2b2b2b"})))};s.displayName=a,t.default=s,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(95),i=n(o),a="CtaArrow",s=function(e){return i.default.createElement("div",{className:"cta-arrow-icon"},i.default.createElement("svg",{height:e.height,width:e.width,viewBox:"0 0 20 15"},i.default.createElement("path",{fill:"#db63d9",d:"M18.5 4.7l-2.8-2.9L10 7.5 4.3 1.8 1.5 4.7l8.5 8.5z"})))};s.displayName=a,s.propTypes={height:o.PropTypes.number,width:o.PropTypes.number},s.defaultProps={height:15,width:20},t.default=s,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(95),i=n(o),a=function(e){return i.default.createElement("span",{className:"reactions-count-container"},i.default.createElement("span",{className:"reactions-count-container__count-text"},e.count))};a.displayName="CtaCount",a.propTypes={count:o.PropTypes.number.isRequired},t.default=a,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),i=n(o),a=r(43),s=n(a),u=r(80),c=n(u),l=r(82),f=n(l),d=r(81),p=n(d),h=r(86),y=n(h),v=r(95),m=n(v),b=r(101),E=n(b),_=r(102),g=r(110),T=n(g),S=r(116),P=function(e){function t(e){(0,c.default)(this,t);var r=(0,p.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return r.props=e,r.state={shouldDisableAnimation:!0},r}return(0,y.default)(t,e),(0,f.default)(t,[{key:"componentWillReceiveProps",value:function(e){this.props.showReactions!==e.showReactions&&this.setState({shouldDisableAnimation:!1})}},{key:"render",value:function(){var e=this,t=(0,S.getUniqueId)(this.props.urn);return m.default.createElement("div",{className:(0,E.default)("reactions-tray",{"animation-playing":this.props.isAnimationPlaying,"reactions-tray--open":this.props.isOpen})},m.default.createElement("div",{className:(0,E.default)("reactions-tray__reactions-container",{"reactions-tray__reactions-container--open":this.props.showReactions,"reactions-tray__reactions-container--no-animation":this.state.shouldDisableAnimation})},m.default.createElement(_.Reactions,{uniqueId:t,store:S.readOnlyLocalStorageHelper},function(t){var r=(0,i.default)({active:t},e.props);return m.default.createElement(T.default,r)}),m.default.createElement("div",{className:"reactions-tray__reactive-prompt"},"Press and hold for more...")))}}]),t}(v.Component);P.displayName="Tray",P.defaultProps={showReactions:!1,urn:!1,isAnimationPlaying:!1,isOpen:!1},P.propTypes={showReactions:v.PropTypes.bool,product:v.PropTypes.string.isRequired,reactionsCounts:v.PropTypes.arrayOf(v.PropTypes.shape({label:v.PropTypes.string,count:v.PropTypes.number})).isRequired,urn:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.bool]),isAnimationPlaying:v.PropTypes.bool,isOpen:v.PropTypes.bool},t.default=P,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),i=n(o),a=r(43),s=n(a),u=r(80),c=n(u),l=r(82),f=n(l),d=r(81),p=n(d),h=r(86),y=n(h),v=r(95),m=n(v),b=r(111),E=n(b),_=r(114),g=function(e){function t(e){(0,c.default)(this,t);var r=(0,p.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return r.props=e,r.firstButtonRef=null,r}return(0,y.default)(t,e),(0,f.default)(t,[{key:"componentDidMount",value:function(){var e=(0,_.keyToLabel)(this.props.active,this.props.product),t=e!==this.props.selectedReaction;t&&this.props.updateSelectedReaction(e)}},{key:"componentDidUpdate",value:function(e){var t=e.showReactions===!1&&this.props.showReactions===!0;t&&this.firstButtonRef&&this.firstButtonRef.focus()}},{key:"render",value:function(){var e=this;return m.default.createElement("div",{className:"reactions-list"},this.props.reactionsCounts.map(function(t,r){var n=(0,i.default)({},e.props,t),o={ref:function(t){0===r&&(e.firstButtonRef=t)}};return m.default.createElement(E.default,(0,i.default)({},n,{key:r,buttonProps:o}))}))}}]),t}(v.Component);g.displayName="ReactionsList",g.defaultProps={active:null,selectedReaction:null},g.propTypes={selectedReaction:v.PropTypes.string,active:v.PropTypes.string,updateSelectedReaction:v.PropTypes.func.isRequired,reactionsCounts:v.PropTypes.arrayOf(v.PropTypes.shape({label:v.PropTypes.string,count:v.PropTypes.number})).isRequired,showReactions:v.PropTypes.bool.isRequired,product:v.PropTypes.string.isRequired},t.default=g,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(112),i=n(o),a=r(2),s=n(a),u=r(95),c=n(u),l=r(102),f=r(101),d=n(f),p=r(113),h=n(p),y=r(115),v=n(y),m=r(114),b=function(e){var t,r=e.product,n=e.label,o=e.count,a=e.showReactions,u=e.buttonProps,f=void 0===u?{}:u,p=e.reactionButtonPressStart,y=e.reactionButtonPressEnd,b=e.selectedReaction,E="cbeebies"===r?v.default:h.default,_=E[""+n],g=n.replace("!",""),T="reaction-button--show",S=(0,s.default)({},f,{onMouseDown:function(){return p(n)},onTouchStart:function(){return p(n)},onKeyDown:function(e){e.keyCode!==m.ENTER_KEY&&e.keyCode!==m.SPACE_KEY||e.repeat||p(n)},onKeyUp:function(e){e.keyCode!==m.ENTER_KEY&&e.keyCode!==m.SPACE_KEY||y(n)},onMouseUp:function(){return y(n)},onMouseLeave:function(){return y(n)},onTouchEnd:function(){return y(n)},className:(0,d.default)("reaction-button",(t={},(0,i.default)(t,T,a),(0,i.default)(t,"reaction-button--selected",b===n),t))}),P="reaction-icon reaction-icon-"+m.LABEL_TO_KEY[n];return c.default.createElement(l.Reaction,{key:n,type:m.LABEL_TO_KEY[n],buttonProps:S},c.default.createElement(l.ReactionIcon,{className:P},c.default.createElement(_,null)),c.default.createElement(l.ReactionLabel,{className:"reaction-label","aria-label":"Reaction type "+n+","},n),c.default.createElement(l.ReactionCount,{className:"reaction-count",count:o,"aria-label":"Total number of "+g+"s "+o}),c.default.createElement("div",{className:"reaction-focus-line"}))};b.propTypes={product:u.PropTypes.string.isRequired,label:u.PropTypes.string.isRequired,count:u.PropTypes.number.isRequired,showReactions:u.PropTypes.bool.isRequired,buttonProps:u.PropTypes.shape({class:u.PropTypes.string,arialabel:u.PropTypes.string}),reactionButtonPressStart:u.PropTypes.func.isRequired,reactionButtonPressEnd:u.PropTypes.func.isRequired,selectedReaction:u.PropTypes.string},b.defaultProps={buttonProps:{class:null,arialabel:null},selectedReaction:null},t.default=b,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(83),i=n(o);t.default=function(e,t,r){return t in e?(0,i.default)(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o,i=r(112),a=n(i),s=r(95),u=n(s),c=r(114),l=function(){return u.default.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 72 72"},u.default.createElement("path",{d:"M13.54 49.73A31.54 31.54 0 0 1 6 30c0-2.08-.06-10.46 6.55-16.17a14.48 14.48 0 0 1 9.1-3.46c7.39 0 11.7 3.42 14.34 8.12 2.64-4.69 7-8.13 14.34-8.12a14.48 14.48 0 0 1 9.1 3.46C66.06 19.54 66 27.93 66 30a31.54 31.54 0 0 1-7.54 19.73C51.28 58.48 36 61.63 36 61.63s-15.28-3.15-22.46-11.9z",fill:"#e63f23",fillRule:"evenodd"}),u.default.createElement("path",{d:"M17.06 16.8C14.9 18.15 14 20.51 15 22.08s3.56 1.75 5.73.4 3.11-3.71 2.11-5.28-3.61-1.75-5.78-.4z",fill:"#ee7966"}))},f=function(){return u.default.createElement("svg",{"data-name":"Layer 1",viewBox:"0 0 72 72"},u.default.createElement("circle",{cx:"35.91",cy:"35.72",r:"30",fill:"#ffd201"}),u.default.createElement("path",{d:"M69.12 34c-2.48-1.34-13.33-1.34-13.33-1.34s6 9.07 8.52 10.41A5.07 5.07 0 0 0 71.18 41a5.15 5.15 0 0 0-2.06-7zM2.86 34a5.15 5.15 0 0 0-2.07 7 5.07 5.07 0 0 0 6.87 2.12c2.48-1.34 8.52-10.41 8.52-10.41S5.34 32.67 2.86 34z",fill:"#269dc8"}),u.default.createElement("path",{d:"M16.37 36.45a19.34 19.34 0 0 0 38.69.16z",fill:"#2b2b2b"}),u.default.createElement("path",{d:"M25.17 52.73a11.33 11.33 0 0 1 21 .08",fill:"#a75916"}),u.default.createElement("path",{d:"M35.66 45.78a11.35 11.35 0 0 0-10.52 7 19.44 19.44 0 0 0 10.47 3.12 19 19 0 0 0 10.5-3.06 11.21 11.21 0 0 0-10.45-7.06z",fill:"#e63f23"}),u.default.createElement("path",{d:"M51.25 30.46a1.18 1.18 0 0 1-1.06-.65 4.65 4.65 0 0 0-8.31 0 1.18 1.18 0 0 1-2.12-1.06 7 7 0 0 1 12.54 0 1.18 1.18 0 0 1-1.06 1.71zM32 30.46a1.18 1.18 0 0 1-1.06-.65 4.65 4.65 0 0 0-8.31 0 1.18 1.18 0 0 1-2.12-1.06 7 7 0 0 1 12.54 0A1.18 1.18 0 0 1 32 30.46z",fill:"#2b2b2b"}))},d=function(){return u.default.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72"},u.default.createElement("path",{d:"M52.43 11.33l4.12-7.71a1.09 1.09 0 0 1 1.87 1.09l-4.12 7.71a1.09 1.09 0 0 1-1.87-1.09M43.75 3a1 1 0 0 1 1.79.25l1.23 5.28a1 1 0 0 1-1.89.47l-1.23-5.27a1 1 0 0 1 .1-.74M15.59 11.1l-.7-8.71a1.09 1.09 0 0 1 2.17-.09l.7 8.71a1.09 1.09 0 0 1-2.17.09M3.78 8.77A1 1 0 0 1 5.41 8l3.89 3.79A1 1 0 1 1 8 13.23L4.09 9.45a1 1 0 0 1-.31-.68",fill:"#2b2b2b"}),u.default.createElement("path",{d:"M57.24 56.4c5-7.08 4.75-10.71 2.84-16.46-.37-1.12-.91-2.56-1.4-3.67a96 96 0 0 0-5.2-10.15l-3.54-7.32a4 4 0 0 0-4-2.23 3.72 3.72 0 0 0-2.6 1.36 4.29 4.29 0 0 0-.49 4.61l4 8.31L24 15.42a4 4 0 0 0-5.52 1l-.05.06c-1.55 2.09-.06 4.44.18 4.74l-4.06-2.74-.42-.28a4 4 0 0 0-5.56 1 3.86 3.86 0 0 0-.1 4.12 4.1 4.1 0 0 0 1.25 1.35L13 27.54c-1.84-1.24-4.92-1.62-6.38.54A3.86 3.86 0 0 0 7.8 33.5l5.65 4.66c-1.9-1.29-4.4-1.34-5.6.7a3.79 3.79 0 0 0 1.28 5s18.1 13.05 23.78 16.56c6.15 3.8 8.78 4.25 13.83 3.69 4.27-.47 7-2.71 10.5-7.72",fill:"#9f8214"}),u.default.createElement("path",{d:"M64.75 41.35c-.34-1.13-.83-2.57-1.29-3.68-1.46-3.59-8.23-17.6-8.23-17.6a4 4 0 0 0-3.92-2.32 3.72 3.72 0 0 0-2.79 1.49 4.29 4.29 0 0 0-.44 4.39l3.27 7.23a.33.33 0 0 1-.49.4L29.57 16a4 4 0 0 0-5.51.86l-.06.06a2.53 2.53 0 0 0-.65 2 2.13 2.13 0 0 0 1 1.67l.48.37L39.64 32a.53.53 0 0 1 .13.72.48.48 0 0 1-.41.2.54.54 0 0 1-.31-.11L22.64 20.63l-2.55-1.81-.34-.25a4.06 4.06 0 0 0-5.68.88 3.45 3.45 0 0 0-.16 3.79 17.84 17.84 0 0 0 2.3 2.17l2.1 1.59 18.37 13.18a.53.53 0 0 1 .13.72.48.48 0 0 1-.41.2.54.54 0 0 1-.3-.1L17.21 27.41a4 4 0 0 0-2.55-.72 3.49 3.49 0 0 0-2.72 1.45 3.83 3.83 0 0 0 1 5.42l5 3.7 14.18 10.12a.53.53 0 0 1 .13.72.48.48 0 0 1-.41.2.54.54 0 0 1-.31-.11l-14-10-.25-.19-.54-.37c-1.93-.94-3.73-.74-4.73 1s.38 4 1.1 4.51c0 0 18.53 14.21 24.09 17.86 6 3.95 8.62 4.45 13.64 4 4.25-.36 7-2.51 10.65-7.39 5.13-6.88 5.01-10.5 3.26-16.26z",fill:"#ffd201"}))},p=function(){return u.default.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72"},u.default.createElement("circle",{cx:"36",cy:"36",r:"30",fill:"#ffd201"}),u.default.createElement("path",{d:"M35.9 14.3a.82.82 0 0 1-.82-.82V9.7a.82.82 0 0 1 1.65 0v3.78a.82.82 0 0 1-.83.82zM61.42 36.51h-3.78a.82.82 0 0 1 0-1.65h3.78a.82.82 0 1 1 0 1.65zM14.16 36.51h-3.78a.82.82 0 1 1 0-1.65h3.78a.82.82 0 0 1 0 1.65zM51.28 20.67a.82.82 0 0 1-.58-1.4l2.67-2.67a.82.82 0 0 1 1.16 1.16l-2.67 2.67a.82.82 0 0 1-.58.24zM20.53 20.67a.82.82 0 0 1-.58-.24l-2.67-2.67a.82.82 0 1 1 1.16-1.16l2.67 2.67a.82.82 0 0 1-.58 1.4zM44 15.87a.82.82 0 0 1-.76-1.13l1.41-3.5a.82.82 0 0 1 1.53.61l-1.41 3.5a.82.82 0 0 1-.77.52zM59.57 46a.82.82 0 0 1-.31-.06l-3.5-1.41a.82.82 0 1 1 .62-1.53l3.5 1.41a.82.82 0 0 1-.31 1.59zM15.74 28.39a.82.82 0 0 1-.31-.06l-3.5-1.41a.82.82 0 0 1 .61-1.53L16 26.8a.82.82 0 0 1-.31 1.59zM55.91 28a.82.82 0 0 1-.32-1.58l3.48-1.48a.82.82 0 0 1 .64 1.51l-3.48 1.48a.82.82 0 0 1-.32.07zM12.43 46.51a.82.82 0 0 1-.32-1.58l3.48-1.48a.82.82 0 1 1 .63 1.55l-3.48 1.48a.82.82 0 0 1-.31.03zM27.39 16a.82.82 0 0 1-.76-.5l-1.48-3.48a.82.82 0 0 1 1.51-.64l1.48 3.48a.82.82 0 0 1-.75 1.14zM29.39 48.81c0-2.53-1.63-4.9-3.47-6.63a13.68 13.68 0 0 1 3.68-22.52c9.92-4.66 20.67 2.71 20.67 12.41a13.83 13.83 0 0 1-5.79 11.26 5 5 0 0 0-2.1 4.1v1.39a17 17 0 0 1-5.83 1.34 23.78 23.78 0 0 1-7.16-1.35z",fill:"#fff"}),u.default.createElement("path",{d:"M29.42 48.71v4.8a8.05 8.05 0 0 0 2.33 1.09l.07.18a4.09 4.09 0 1 0 8.17 0v-.06a2.42 2.42 0 0 0 .11-.29 21.91 21.91 0 0 0 2.3-.79v-5.13s-4.92 3.49-12.98.2z",fill:"#d3145b"}))},h=function(){return u.default.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72"},u.default.createElement("circle",{cx:"36",cy:"36",r:"30",transform:"rotate(-5.1 35.96834013 36.0247667)",fill:"#ffd201"}),u.default.createElement("circle",{cx:"25.69",cy:"31.15",r:"7.9",fill:"#fff"}),u.default.createElement("ellipse",{cx:"25.73",cy:"31.35",rx:"3.85",ry:"4.57",fill:"#2b2b2b"}),u.default.createElement("circle",{cx:"46.31",cy:"31.15",r:"7.9",fill:"#fff"}),u.default.createElement("ellipse",{cx:"46.26",cy:"31.35",rx:"3.85",ry:"4.57",fill:"#2b2b2b"}),u.default.createElement("path",{d:"M42.41 49.4c0 4.42-3 8-6.74 8s-6.74-3.58-6.74-8v-.65c.28-4.11 3.18-7.35 6.72-7.35 3.75-.01 6.76 3.6 6.76 8z",fill:"#2b2b2b"}),u.default.createElement("path",{d:"M13.65 28c.4-6.28 7-10.64 13-9.33-5.31 2.14-10.01 4.14-13 9.33zM58.35 28c-.4-6.28-7-10.64-13-9.33 5.31 2.14 10.01 4.14 13 9.33z",fill:"#9f8214"}))},y=function(){return u.default.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72"},u.default.createElement("circle",{cx:"36",cy:"36",r:"30",transform:"rotate(-5.1 35.96834013 36.0247667)",fill:"#ffd201"}),u.default.createElement("path",{d:"M15 40.42c1.16-2.66 8.18-5.59 8.18-5.59s2.59 7.17 1.42 9.79a5.26 5.26 0 0 1-9.6-4.2z",fill:"#269dc8"}),u.default.createElement("path",{d:"M25.81 53.82a1 1 0 0 1-.81-1.55A14.14 14.14 0 0 1 36.35 46a14.1 14.1 0 0 1 11.16 6A1 1 0 1 1 46 53.2a12 12 0 0 0-9.65-5.2 12.22 12.22 0 0 0-9.76 5.44 1 1 0 0 1-.78.38zM26.26 36A6.91 6.91 0 0 1 20 32.2a1.17 1.17 0 1 1 2.1-1 4.6 4.6 0 0 0 8.23 0 1.17 1.17 0 1 1 2.09 1.05A6.91 6.91 0 0 1 26.26 36zM45.36 36a6.91 6.91 0 0 1-6.21-3.84 1.17 1.17 0 1 1 2.1-1 4.6 4.6 0 0 0 8.23 0 1.17 1.17 0 1 1 2.09 1.05A6.91 6.91 0 0 1 45.36 36z",fill:"#2b2b2b"}))};t.default=(o={},(0,a.default)(o,c.LOVE,l),(0,a.default)(o,c.LOL,f),(0,a.default)(o,c.APPLAUSE,d),(0,a.default)(o,c.GOTIT,p),(0,a.default)(o,c.OMD,h),(0,a.default)(o,c.SAD,y),o),e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r="cbeebies"===t?_:g,n=r.reduce(function(e,t){return(0,s.default)({},e,(0,c.default)({},T[t],t))},{});return n[e]}Object.defineProperty(t,"__esModule",{value:!0}),t.KEY_TO_UAS_CONTEXT=t.LABEL_TO_KEY=t.CBBC_LABELS=t.CBEEBIES_LABELS=t.SPACE_KEY=t.ENTER_KEY=t.SPRITE_REVERSE_EFFECT_DELAY=t.SPRITE_EFFECT_DELAY=t.SPRITE_SLIDE_NUMBER_DEFAULT=t.SPRITE_SLIDE_DECREMENT_INTERVAL=t.SPRITE_SLIDE_INCREMENT_INTERVAL=t.SPRITE_TOTAL_SLIDES=t.NO_REACTION=t.CLAP=t.WOW=t.FUNNY=t.SAD=t.OMD=t.GOTIT=t.APPLAUSE=t.LOL=t.LOVE=void 0;var i,a=r(2),s=n(a),u=r(112),c=n(u);t.keyToLabel=o;var l=t.LOVE="Love",f=t.LOL="LOL",d=t.APPLAUSE="Applause",p=t.GOTIT="Got It!",h=t.OMD="OMD",y=t.SAD="Sad",v=t.FUNNY="Funny",m=t.WOW="Wow",b=t.CLAP="Clap",E=(t.NO_REACTION="No Content",t.SPRITE_TOTAL_SLIDES=10,t.SPRITE_SLIDE_INCREMENT_INTERVAL=100),_=(t.SPRITE_SLIDE_DECREMENT_INTERVAL=E/2,t.SPRITE_SLIDE_NUMBER_DEFAULT=0,t.SPRITE_EFFECT_DELAY=300,t.SPRITE_REVERSE_EFFECT_DELAY=1e3,t.ENTER_KEY=13,t.SPACE_KEY=32,t.CBEEBIES_LABELS=[l,v,b,p,m,y]),g=t.CBBC_LABELS=[l,f,d,p,h,y],T=t.LABEL_TO_KEY=(i={},(0,c.default)(i,d,"applause"),(0,c.default)(i,b,"applause"),(0,c.default)(i,v,"lol"),(0,c.default)(i,p,"inspired"),(0,c.default)(i,l,"loved"),(0,c.default)(i,f,"lol"),(0,c.default)(i,h,"omd"),(0,c.default)(i,y,"sad"),(0,c.default)(i,m,"omd"),i);t.KEY_TO_UAS_CONTEXT={applause:"emotion-inspired",lol:"emotion-funny",inspired:"emotion-inspired",loved:"emotion-positive",omd:"emotion-shocked",sad:"emotion-sad"}},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i,a=r(112),s=o(a),u=r(95),c=o(u),l=r(114),f=r(113),d=n(f),p=function(){return c.default.createElement("svg",{ "data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72"},c.default.createElement("path",{d:"M33.34 6.12A30 30 0 1 1 6.12 38.66 30 30 0 0 1 33.34 6.12",fill:"#ffd201"}),c.default.createElement("path",{d:"M55.14 37.21a19.14 19.14 0 1 1-38.29-.16",fill:"#2b2b2b"}),c.default.createElement("path",{d:"M25.56 53.17a11.22 11.22 0 0 1 20.75.07",fill:"#a75916"}),c.default.createElement("path",{d:"M35.95 46.29a11.24 11.24 0 0 0-10.41 6.91 19.23 19.23 0 0 0 10.36 3.11 18.78 18.78 0 0 0 10.39-3 11.1 11.1 0 0 0-10.34-7",fill:"#e63f23"}),c.default.createElement("path",{d:"M21.36 20.41l10.76 3.91a1.27 1.27 0 0 1 0 2.4l-10.75 3.81a1 1 0 0 1-.69-1.78l7.7-3.25-7.69-3.39a.92.92 0 0 1 .68-1.7M51.32 22.11l-7.7 3.38 7.71 3.25a1 1 0 0 1-.69 1.78l-10.74-3.8a1.27 1.27 0 0 1 0-2.4l10.76-3.91a.92.92 0 0 1 .68 1.7",fill:"#2b2b2b"}))},h=function(){return c.default.createElement("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72"},c.default.createElement("circle",{cx:"35.91",cy:"35.72",r:"30",fill:"#ffd201"}),c.default.createElement("ellipse",{cx:"25.73",cy:"29.22",rx:"3.85",ry:"4.98",fill:"#2b2b2b"}),c.default.createElement("ellipse",{cx:"46.27",cy:"29.22",rx:"3.85",ry:"4.98",fill:"#2b2b2b"}),c.default.createElement("path",{d:"M13.57 26.32v-.1c0-.37.06-.73.11-1.1s.17-.72.27-1.08.26-.71.41-1a10.55 10.55 0 0 1 .54-1 9.46 9.46 0 0 1 .65-.93 9.27 9.27 0 0 1 .75-.86 9.86 9.86 0 0 1 .84-.77A11.39 11.39 0 0 1 19 18.14a9.62 9.62 0 0 1 1-.49 9 9 0 0 1 1.06-.38 11.43 11.43 0 0 1 2.19-.45c.37 0 .74-.07 1.11-.07s.74 0 1.11.05.73.1 1.09.18c-.35.14-.69.25-1 .35l-1 .35c-.33.1-.66.24-1 .36s-.64.26-1 .39-.62.28-.93.42-.6.3-.9.45-.58.32-.87.49a9.58 9.58 0 0 0-.84.53 9.62 9.62 0 0 0-.81.57c-.28.18-.51.41-.77.62s-.48.45-.74.66-.46.48-.7.71-.44.51-.67.76-.42.54-.63.81-.39.57-.6.86-.37.6-.59.91zM58.27 26.32v-.1c-.21-.31-.4-.61-.59-.91s-.4-.58-.6-.86-.41-.55-.63-.81-.43-.52-.67-.76-.45-.49-.7-.71-.47-.47-.74-.66-.5-.43-.77-.62a9.61 9.61 0 0 0-.81-.57 9.58 9.58 0 0 0-.84-.53c-.28-.17-.57-.34-.87-.49s-.59-.32-.9-.45-.61-.3-.93-.42-.63-.28-1-.39-.64-.26-1-.36l-1-.35c-.34-.11-.69-.22-1-.35.36-.08.72-.13 1.09-.18s.73 0 1.11-.05.74 0 1.11.07a11.43 11.43 0 0 1 2.19.45 9 9 0 0 1 1.06.38 9.62 9.62 0 0 1 1 .49 11.39 11.39 0 0 1 1.89 1.27 9.86 9.86 0 0 1 .84.77 9.28 9.28 0 0 1 .75.86A9.45 9.45 0 0 1 57 22a10.54 10.54 0 0 1 .54 1c.16.34.28.7.41 1s.19.73.27 1.08.09.74.11 1.1z",fill:"#9f8214"}),c.default.createElement("path",{d:"M35.55 56.89a14.47 14.47 0 0 1-14.42-14.53 29 29 0 0 1 14.54-4.26h.66a29 29 0 0 1 14.54 4.26 14.47 14.47 0 0 1-14.42 14.53z",fill:"#2b2b2b"}),c.default.createElement("path",{d:"M28.43 55a14.31 14.31 0 0 0 7.11 2h.91a14.31 14.31 0 0 0 7.11-2A9 9 0 0 0 36 51.41 9 9 0 0 0 28.43 55z",fill:"#e63f23"}))};t.default=(i={},(0,s.default)(i,l.LOVE,d[l.LOVE]),(0,s.default)(i,l.FUNNY,p),(0,s.default)(i,l.CLAP,d[l.APPLAUSE]),(0,s.default)(i,l.GOTIT,d[l.GOTIT]),(0,s.default)(i,l.WOW,h),(0,s.default)(i,l.SAD,d[l.SAD]),i),e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(117),i=n(o),a=function(){},s=function(e){return"childrens-reactions-"+e},u=function(e){return"reactions-"+s(e)};t.default={localStorageHelper:i.default,readOnlyLocalStorageHelper:{getItem:i.default.getItem,setItem:a,removeItem:a},getUniqueId:s,getLocalStorageKey:u},e.exports=t.default},function(e,t){e.exports=Morph.modules["bbc-morph-local-storage-helper@1.0.1"]},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(95),i=n(o),a=r(114),s=r(113),u=n(s),c=function(){var e=u.default[a.SAD];return i.default.createElement("div",{className:"reactions-cookie-warning"},i.default.createElement("div",{className:"reactions-cookie-warning__inner"},i.default.createElement("div",{className:"reactions-cookie-warning__icon"},i.default.createElement(e,null)),i.default.createElement("div",{className:"reactions-cookie-warning__text"},i.default.createElement("span",null,"To make your reaction count, you’ll need to ask your parent/guardian to enable cookies. See our "),i.default.createElement("a",{className:"reactions-cookie-warning__link",href:"/usingthebbc/cookies/"},"cookies policy"),i.default.createElement("span",null," for more information"))))};c.displayName="CookieWarning",c.propTypes={},t.default=c,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(120),i=n(o),a=r(123),s=n(a),u=r(43),c=n(u),l=r(80),f=n(l),d=r(81),p=n(d),h=r(82),y=n(h),v=r(86),m=n(v),b=r(95),E=n(b),_=r(101),g=n(_),T=r(109),S=n(T),P=r(103),w=n(P),R=r(118),x=n(R),O=r(146),A=n(O),M=r(114),C=r(147),L=n(C),I=r(148),k=r(116),N=r(153),j=n(N),B=function(){return E.default.createElement("noscript",null)};B.displayName="NoopComponent";var U=function(e){function t(e){(0,f.default)(this,t);var r=(0,p.default)(this,(t.__proto__||(0,c.default)(t)).call(this,e));return r.state={showReactions:!1,hasCtaBeenClicked:!1,SpriteTagName:B,startSpriteAnimation:!1,endSpriteAnimation:!1,selectedReaction:null,prevSelectedReaction:null,currentCounts:e.reactionsCounts,hasReactionButtonPressStarted:!1,errorMessage:!1,endSlideNumber:M.SPRITE_SLIDE_NUMBER_DEFAULT,windowDimensions:{width:0,height:0}},r.renderElement=null,r.moduleElement=null,r.ctaClickHandler=r.ctaClickHandler.bind(r),r.reactionButtonPressStartHandler=r.reactionButtonPressStartHandler.bind(r),r.reactionButtonPressEndHandler=r.reactionButtonPressEndHandler.bind(r),r.updateSelectedReaction=r.updateSelectedReaction.bind(r),r.updateWindowDimensions=r.updateWindowDimensions.bind(r),r.handleChange=r.handleChange.bind(r),r}return(0,m.default)(t,e),(0,y.default)(t,null,[{key:"calculateReactionCounts",value:function(e,r,n){return n.map(function(n){return t.calculateCountForReaction(n.label,n.count,r,e)})}},{key:"calculateCountForReaction",value:function(e,t,r,n){var o=Math.max(t+(r===e?1:0)+(n===e?-1:0),0);return{label:e,count:o}}},{key:"calculateCountsTotal",value:function(e,t,r){return Math.max(r+(e&&!t?1:0)+(!e&&t?-1:0),0)}}]),(0,y.default)(t,[{key:"componentDidMount",value:function(){this.moduleElement=this.renderElement,this.updateWindowDimensions(),window.addEventListener("resize",this.updateWindowDimensions),this.props.spriteService.fetchSprites()}},{key:"componentWillReceiveProps",value:function(e){if(e.uasSelectedReaction){var t=e.uasSelectedReaction===M.NO_REACTION?null:e.uasSelectedReaction;this.setState({selectedReaction:t,initialSelectedReaction:t})}}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateWindowDimensions)}},{key:"getAnimationPosition",value:function(){var e={x:0,y:0},t=this.state.selectedReaction?this.state.selectedReaction:this.state.prevSelectedReaction,r=M.LABEL_TO_KEY[t];if(r&&this.moduleElement){var n=this.moduleElement.querySelector(".reaction-icon-"+r);if(n){var o=n.getBoundingClientRect(),i=this.moduleElement.getBoundingClientRect();e.x=o.left+Math.floor(o.width/2),e.y=i.top}}return e}},{key:"handleError",value:function(e,r){var n=(0,I.getStandardisedErrorType)(e);this.props.istatsService.logError(n);var o=t.calculateReactionCounts(this.state.initialSelectedReaction,r,this.props.reactionsCounts);this.setState({errorMessage:n,selectedReaction:r,currentCounts:o})}},{key:"handleChange",value:function(e){this.setState({endSlideNumber:e})}},{key:"updateWindowDimensions",value:function(){this.setState({width:window.innerWidth,height:window.innerHeight})}},{key:"isWindowLandscape",value:function(){return this.state.width>this.state.height}},{key:"ctaClickHandler",value:function(){var e=this;this.setState(function(t){var r={showReactions:!t.showReactions,hasCtaBeenClicked:!0},n=t.showReactions?j.default.CtaClose:j.default.CtaOpen;return e.props.istatsService.logCtaEvent(n),r})}},{key:"reactionButtonPressStartHandler",value:function(e){var r=this.isWindowLandscape();this.setState(function(n,o){var i={};if(!n.hasReactionButtonPressStarted&&!n.shouldThrottleEventHandling){var a=t.calculateReactionCounts(n.initialSelectedReaction,e,o.reactionsCounts),s=n.selectedReaction,u=s!==e;i={currentCounts:a,prevSelectedReaction:s,hasReactionButtonPressStarted:!0,startSpriteAnimation:u,endSpriteAnimation:!1,SpriteTagName:o.spriteService.getSprite(e,r),selectedReaction:e,errorMessage:!1}}return i})}},{key:"reactionButtonPressEndHandler",value:function(e){var r=this,n=!this.state.shouldThrottleEventHandling,o=!1;e===this.state.selectedReaction&&this.setState(function(e,n){var i={};if(e.hasReactionButtonPressStarted){var a=e.errorMessage||e.selectedReaction!==e.prevSelectedReaction,s=a?e.selectedReaction:null,u=t.calculateReactionCounts(e.initialSelectedReaction,s,n.reactionsCounts);i={startSpriteAnimation:!1,endSpriteAnimation:!0,selectedReaction:s,currentCounts:u,hasReactionButtonPressStarted:!1,shouldThrottleEventHandling:!0},setTimeout(function(){return r.setState({shouldThrottleEventHandling:!1})},500),o=!0}return i},function(){if(o&&n){var e=r.state.selectedReaction,t=r.state.prevSelectedReaction;r.recordOrDeleteReaction(e,t)}})}},{key:"recordOrDeleteReaction",value:function(e,t){e?this.recordReaction(e,t):this.deleteReaction(t)}},{key:"recordReaction",value:function(){function e(e,r){return t.apply(this,arguments)}var t=(0,s.default)(i.default.mark(function e(t,r){var n,o,a,s,u,c,l,f,d,p,h=this;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props.countingServiceClientLibrary.postToUAS,o=M.LABEL_TO_KEY[t],a=(0,k.getLocalStorageKey)(this.props.urn),e.prev=3,e.next=6,this.props.uasConfigService.configureUAS({clickedReaction:o,urn:this.props.urn,resourceTitle:this.props.resourceTitle,resourceType:this.props.resourceType,url:this.props.url,product:this.props.product,env:this.props.env,signedInState:this.props.isSignedIn,isIdAvailable:this.props.isIdAvailable,idctaService:this.props.idctaService,error:this.props.error,endSlideNumber:this.state.endSlideNumber});case 6:s=e.sent,u=s.UASdata,c=s.apiKey,l=s.env,f=s.domain,d=s.isSignedIn,p=r?M.LABEL_TO_KEY[r]:null,n("reactions",u,c,l,f,d,p).then(function(e){if(!e.ok)throw new Error(I.ErrorTypes.UAS_FAILURE);k.localStorageHelper.setItem(a,o),h.props.istatsService.logSelection(o,h.state.endSlideNumber,p,h.props.pageContext)}).catch(function(e){h.handleError(e,h.state.prevSelectedReaction)}),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(3),this.handleError(e.t0,this.state.prevSelectedReaction);case 19:case"end":return e.stop()}},e,this,[[3,16]])}));return e}()},{key:"deleteReaction",value:function(){function e(e){return t.apply(this,arguments)}var t=(0,s.default)(i.default.mark(function e(t){var r,n,o,a,s,u,c,l,f,d=this;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.props.countingServiceClientLibrary.deleteFromUAS,n=this.props.globalId,o=M.LABEL_TO_KEY[t],a=(0,k.getLocalStorageKey)(this.props.urn),e.prev=4,e.next=7,this.props.uasConfigService.configureUAS({clickedReaction:M.LABEL_TO_KEY[t],urn:this.props.urn,resourceTitle:this.props.resourceTitle,resourceType:this.props.resourceType,url:this.props.url,product:this.props.product,env:this.props.env,signedInState:this.props.isSignedIn,isIdAvailable:this.props.isIdAvailable,idctaService:this.props.idctaService,error:this.props.error});case 7:s=e.sent,u=s.apiKey,c=s.env,l=s.domain,f=s.isSignedIn,r("reactions",u,c,l,n,f,o).then(function(e){if(!e.ok)throw new Error(I.ErrorTypes.UAS_FAILURE);k.localStorageHelper.removeItem(a),d.props.istatsService.logDeselection(o,d.props.pageContext)}).catch(function(e){d.handleError(e,d.state.prevSelectedReaction)}),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(4),this.handleError(e.t0,this.state.prevSelectedReaction);case 18:case"end":return e.stop()}},e,this,[[4,15]])}));return e}()},{key:"updateSelectedReaction",value:function(e){this.props.uasSelectedReaction||this.state.errorMessage||this.props.error||this.setState({selectedReaction:e,initialSelectedReaction:e})}},{key:"render",value:function(){var e=this,r=(0,g.default)("reactions-module",{"landscape-animation":this.isWindowLandscape()}),n=t.calculateCountsTotal(this.state.selectedReaction,this.state.initialSelectedReaction,this.props.reactionsCountTotal);return E.default.createElement("div",{ref:function(t){e.renderElement=t},className:r},E.default.createElement(A.default,{showAnimation:this.state.startSpriteAnimation,endAnimation:this.state.endSpriteAnimation,onSlideNumberChange:this.handleChange,animationPosition:this.getAnimationPosition()},E.default.createElement(this.state.SpriteTagName,null)),E.default.createElement(S.default,{showReactions:this.state.showReactions,product:this.props.product,reactionButtonPressStart:this.reactionButtonPressStartHandler,reactionButtonPressEnd:this.reactionButtonPressEndHandler,reactionsCounts:this.state.currentCounts,selectedReaction:this.state.selectedReaction,urn:this.props.urn,updateSelectedReaction:this.updateSelectedReaction,isAnimationPlaying:this.state.startSpriteAnimation,isOpen:this.state.showReactions}),this.props.showCookieBanner&&this.state.showReactions&&E.default.createElement(x.default,null),this.state.errorMessage&&this.state.showReactions&&E.default.createElement(L.default,{errorType:this.state.errorMessage}),E.default.createElement(w.default,{onClick:this.ctaClickHandler,isOpen:this.state.showReactions,count:n,product:this.props.product,hasBeenClicked:this.state.hasCtaBeenClicked}))}}]),t}(b.Component);U.displayName="ReactionsModule",U.propTypes={product:b.PropTypes.string.isRequired,showCookieBanner:b.PropTypes.bool.isRequired,error:b.PropTypes.oneOfType([b.PropTypes.shape({Error:b.PropTypes.string}),b.PropTypes.bool]),reactionsCounts:b.PropTypes.arrayOf(b.PropTypes.object).isRequired,reactionsCountTotal:b.PropTypes.number.isRequired,countingServiceClientLibrary:b.PropTypes.shape({postToUAS:b.PropTypes.func.isRequired,deleteFromUAS:b.PropTypes.func.isRequired}).isRequired,urn:b.PropTypes.oneOfType([b.PropTypes.string,b.PropTypes.bool]),globalId:b.PropTypes.string.isRequired,env:b.PropTypes.string.isRequired,isSignedIn:b.PropTypes.bool.isRequired,isIdAvailable:b.PropTypes.bool.isRequired,uasSelectedReaction:b.PropTypes.string,resourceTitle:b.PropTypes.string.isRequired,resourceType:b.PropTypes.string.isRequired,url:b.PropTypes.string.isRequired,idctaService:b.PropTypes.shape({refreshToken:b.PropTypes.func,isCurrentUserSignedIn:b.PropTypes.func}).isRequired,uasConfigService:b.PropTypes.shape({configureUAS:b.PropTypes.func,getMyReaction:b.PropTypes.func}).isRequired,istatsService:b.PropTypes.shape({logSelection:b.PropTypes.func,logDeselection:b.PropTypes.func,logCtaEvent:b.PropTypes.func,logError:b.PropTypes.func}).isRequired,spriteService:b.PropTypes.shape({fetchSprites:b.PropTypes.func,getSprite:b.PropTypes.func}).isRequired,pageContext:b.PropTypes.oneOfType([b.PropTypes.string,b.PropTypes.bool])},U.defaultProps={showCookieBanner:!1,error:!1,reactionsData:{},urn:!1,isSignedIn:!1,isIdAvailable:!1,uasSelectedReaction:null,resourceTitle:"resourceTitle",url:"url",pageContext:!1},t.default=U,e.exports=t.default},function(e,t,r){e.exports=r(121)},function(e,t,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r(122),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function r(e,t,r,n){var i=t&&t.prototype instanceof o?t:o,a=Object.create(i.prototype),s=new p(n||[]);return a._invoke=c(e,r,s),a}function n(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function o(){}function i(){}function a(){}function s(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e){function t(r,o,i,a){var s=n(e[r],e,o);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&b.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(c).then(function(e){u.value=e,i(u)},a)}a(s.arg)}function r(e,r){function n(){return new Promise(function(n,o){t(e,r,n,o)})}return o=o?o.then(n,n):n()}var o;this._invoke=r}function c(e,t,r){var o=w;return function(i,a){if(o===x)throw new Error("Generator is already running");if(o===O){if("throw"===i)throw a;return y()}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=l(s,r);if(u){if(u===A)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===w)throw o=O,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=x;var c=n(e,t,r);if("normal"===c.type){if(o=r.done?O:R,c.arg===A)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=O,r.method="throw",r.arg=c.arg)}}}function l(e,t){var r=e.iterator[t.method];if(r===v){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=v,l(e,t),"throw"===t.method))return A;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var o=n(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,A;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,A):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,A)}function f(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function d(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function h(e){if(e){var t=e[_];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(b.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=v,t.done=!0,t};return n.next=n}}return{next:y}}function y(){return{value:v,done:!0}}var v,m=Object.prototype,b=m.hasOwnProperty,E="function"==typeof Symbol?Symbol:{},_=E.iterator||"@@iterator",g=E.asyncIterator||"@@asyncIterator",T=E.toStringTag||"@@toStringTag",S="object"==typeof e,P=t.regeneratorRuntime;if(P)return void(S&&(e.exports=P));P=t.regeneratorRuntime=S?e.exports:{},P.wrap=r;var w="suspendedStart",R="suspendedYield",x="executing",O="completed",A={},M={};M[_]=function(){return this};var C=Object.getPrototypeOf,L=C&&C(C(h([])));L&&L!==m&&b.call(L,_)&&(M=L);var I=a.prototype=o.prototype=Object.create(M);i.prototype=I.constructor=a,a.constructor=i,a[T]=i.displayName="GeneratorFunction",P.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},P.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,T in e||(e[T]="GeneratorFunction")),e.prototype=Object.create(I),e},P.awrap=function(e){return{__await:e}},s(u.prototype),u.prototype[g]=function(){return this},P.AsyncIterator=u,P.async=function(e,t,n,o){var i=new u(r(e,t,n,o));return P.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},s(I),I[T]="Generator",I[_]=function(){return this},I.toString=function(){return"[object Generator]"},P.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},P.values=h,p.prototype={constructor:p,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(d),!e)for(var t in this)"t"===t.charAt(0)&&b.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=v)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,n){return i.type="throw",i.arg=e,r.next=t,n&&(r.method="next",r.arg=v),!!n}if(this.done)throw e;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=b.call(o,"catchLoc"),s=b.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&b.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,A):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),A},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),d(r),A}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;d(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:h(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=v),A}}}(function(){return this}()||Function("return this")())},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(124),i=n(o);t.default=function(e){return function(){var t=e.apply(this,arguments);return new i.default(function(e,r){function n(o,a){try{var s=t[o](a),u=s.value}catch(e){return void r(e)}return s.done?void e(u):i.default.resolve(u).then(function(e){n("next",e)},function(e){n("throw",e)})}return n("next")})}}},function(e,t,r){e.exports={default:r(125),__esModule:!0}},function(e,t,r){r(77),r(51),r(62),r(126),r(144),r(145),e.exports=r(8).Promise},function(e,t,r){"use strict";var n,o,i,a,s=r(35),u=r(7),c=r(9),l=r(127),f=r(6),d=r(14),p=r(10),h=r(128),y=r(129),v=r(133),m=r(134).set,b=r(136)(),E=r(137),_=r(138),g=r(139),T=r(140),S="Promise",P=u.TypeError,w=u.process,R=w&&w.versions,x=R&&R.v8||"",O=u[S],A="process"==l(w),M=function(){},C=o=E.f,L=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[r(61)("species")]=function(e){e(M,M)};return(A||"function"==typeof PromiseRejectionEvent)&&e.then(M)instanceof t&&0!==x.indexOf("6.6")&&g.indexOf("Chrome/66")===-1}catch(e){}}(),I=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},k=function(e,t){if(!e._n){e._n=!0;var r=e._c;b(function(){for(var n=e._v,o=1==e._s,i=0,a=function(t){var r,i,a,s=o?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(o||(2==e._h&&B(e),e._h=1),s===!0?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===t.promise?c(P("Promise-chain cycle")):(i=I(r))?i.call(r,u,c):u(r)):c(n)}catch(e){l&&!a&&l.exit(),c(e)}};r.length>i;)a(r[i++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){m.call(u,function(){var t,r,n,o=e._v,i=j(e);if(i&&(t=_(function(){A?w.emit("unhandledRejection",o,e):(r=u.onunhandledrejection)?r({promise:e,reason:o}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",o)}),e._h=A||j(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},j=function(e){return 1!==e._h&&0===(e._a||e._c).length},B=function(e){m.call(u,function(){var t;A?w.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},U=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),k(t,!0))},D=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw P("Promise can't be resolved itself");(t=I(e))?b(function(){var n={_w:r,_d:!1};try{t.call(e,c(D,n,1),c(U,n,1))}catch(e){U.call(n,e)}}):(r._v=e,r._s=1,k(r,!1))}catch(e){U.call({_w:r,_d:!1},e)}}};L||(O=function(e){h(this,O,S,"_h"),p(e),n.call(this);try{e(c(D,this,1),c(U,this,1))}catch(e){U.call(this,e)}},n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(141)(O.prototype,{then:function(e,t){var r=C(v(this,O));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=A?w.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&k(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n;this.promise=e,this.resolve=c(D,e,1),this.reject=c(U,e,1)},E.f=C=function(e){return e===O||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!L,{Promise:O}),r(60)(O,S),r(142)(S),a=r(8)[S],f(f.S+f.F*!L,S,{reject:function(e){var t=C(this),r=t.reject;return r(e),t.promise}}),f(f.S+f.F*(s||!L),S,{resolve:function(e){return T(s&&this===a?O:this,e)}}),f(f.S+f.F*!(L&&r(143)(function(e){O.all(e).catch(M)})),S,{all:function(e){var t=this,r=C(t),n=r.resolve,o=r.reject,i=_(function(){var r=[],i=0,a=1;y(e,!1,function(e){var s=i++,u=!1;r.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,r[s]=e,--a||n(r))},o)}),--a||n(r)});return i.e&&o(i.v),r.promise},race:function(e){var t=this,r=C(t),n=r.reject,o=_(function(){y(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},function(e,t,r){var n=r(27),o=r(61)("toStringTag"),i="Arguments"==n(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=a(t=Object(e),o))?r:i?n(t):"Object"==(s=n(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(9),o=r(130),i=r(131),a=r(13),s=r(30),u=r(132),c={},l={},t=e.exports=function(e,t,r,f,d){var p,h,y,v,m=d?function(){return e}:u(e),b=n(r,f,t?2:1),E=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(i(m)){for(p=s(e.length);p>E;E++)if(v=t?b(a(h=e[E])[0],h[1]):b(e[E]),v===c||v===l)return v}else for(y=m.call(e);!(h=y.next()).done;)if(v=o(y,b,h.value,t),v===c||v===l)return v};t.BREAK=c,t.RETURN=l},function(e,t,r){var n=r(13);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},function(e,t,r){var n=r(55),o=r(61)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||i[o]===e)}},function(e,t,r){var n=r(127),o=r(61)("iterator"),i=r(55);e.exports=r(8).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(13),o=r(10),i=r(61)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||void 0==(r=n(a)[i])?t:o(r)}},function(e,t,r){var n,o,i,a=r(9),s=r(135),u=r(59),c=r(18),l=r(7),f=l.process,d=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,y=l.Dispatch,v=0,m={},b="onreadystatechange",E=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},_=function(e){E.call(e.data)};d&&p||(d=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return m[++v]=function(){s("function"==typeof e?e:Function(e),t)},n(v),v},p=function(e){delete m[e]},"process"==r(27)(f)?n=function(e){f.nextTick(a(E,e,1))}:y&&y.now?n=function(e){y.now(a(E,e,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=_,n=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(e){l.postMessage(e+"","*")},l.addEventListener("message",_,!1)):n=b in c("script")?function(e){u.appendChild(c("script"))[b]=function(){u.removeChild(this),E.call(e)}}:function(e){setTimeout(a(E,e,1),0)}),e.exports={set:d,clear:p}},function(e,t){e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){var n=r(7),o=r(134).set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(27)(a);e.exports=function(){var e,t,r,c=function(){var n,o;for(u&&(n=a.domain)&&n.exit();e;){o=e.fn,e=e.next;try{o()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(c)};else if(!i||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(c)}}else r=function(){o.call(n,c)};else{var f=!0,d=document.createTextNode("");new i(c).observe(d,{characterData:!0}),r=function(){d.data=f=!f}}return function(n){var o={fn:n,next:void 0};t&&(t.next=o),e||(e=o,r()),t=o}}},function(e,t,r){"use strict";function n(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=o(t),this.reject=o(r)}var o=r(10);e.exports.f=function(e){return new n(e)}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n=r(7),o=n.navigator;e.exports=o&&o.userAgent||""},function(e,t,r){var n=r(13),o=r(14),i=r(137);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e),a=r.resolve;return a(t),r.promise}},function(e,t,r){var n=r(11);e.exports=function(e,t,r){for(var o in t)r&&e[o]?e[o]=t[o]:n(e,o,t[o]);return e}},function(e,t,r){"use strict";var n=r(7),o=r(8),i=r(12),a=r(16),s=r(61)("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:n[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(61)("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i=[7],a=i[n]();a.next=function(){return{done:r=!0}},i[n]=function(){return a},e(i)}catch(e){}return r}},function(e,t,r){"use strict";var n=r(6),o=r(8),i=r(7),a=r(133),s=r(140);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){"use strict";var n=r(6),o=r(137),i=r(138);n(n.S,"Promise",{try:function(e){var t=o.f(this),r=i(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(43),i=n(o),a=r(80),s=n(a),u=r(82),c=n(u),l=r(81),f=n(l),d=r(86),p=n(d),h=r(95),y=n(h),v=r(114),m=function(e){function t(e){(0,s.default)(this,t);var r=(0,f.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return r.props=e,r.handleChange=r.handleChange.bind(r),r.state={slideNumber:v.SPRITE_SLIDE_NUMBER_DEFAULT},r}return(0,p.default)(t,e),(0,c.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=this;clearInterval(this.startAnimationInterval),clearTimeout(this.startAnimationTimeout);var r=this.props.showAnimation===!1&&e.showAnimation===!0,n=this.props.endAnimation===!1&&e.endAnimation===!0,o=this.props.children.type.displayName!==e.children.type.displayName;o&&this.setState({slideNumber:v.SPRITE_SLIDE_NUMBER_DEFAULT}),r?(this.setState({slideNumber:v.SPRITE_SLIDE_NUMBER_DEFAULT}),clearInterval(this.stopAnimationinterval),clearTimeout(this.stopAnimationTimeout),this.startAnimationTimeout=setTimeout(function(){t.startAnimationInterval=setInterval(t.incrementSlides.bind(t),v.SPRITE_SLIDE_INCREMENT_INTERVAL)},v.SPRITE_EFFECT_DELAY)):n&&(this.stopAnimationTimeout=setTimeout(function(){t.stopAnimationinterval=setInterval(t.decrementSlides.bind(t),v.SPRITE_SLIDE_DECREMENT_INTERVAL)},v.SPRITE_REVERSE_EFFECT_DELAY), this.handleChange(this.state.slideNumber))}},{key:"handleChange",value:function(e){this.props.onSlideNumberChange(e)}},{key:"decrementSlides",value:function(){this.state.slideNumber-1>=0?this.setState({slideNumber:this.state.slideNumber-1}):clearInterval(this.stopAnimationinterval)}},{key:"incrementSlides",value:function(){var e=Math.min(this.state.slideNumber+1,v.SPRITE_TOTAL_SLIDES);this.setState({slideNumber:e>v.SPRITE_TOTAL_SLIDES?v.SPRITE_TOTAL_SLIDES:e})}},{key:"render",value:function(){var e=this.props.animationPosition.x,t=this.props.animationPosition.y,r="reactions-sprite-animation-wrapper",n="reactions-sprite-animation reactions-sprite-animation__slide--"+this.state.slideNumber;return y.default.createElement("div",{className:r},y.default.createElement("div",{className:n,style:{left:e,top:t}},this.props.children))}}]),t}(h.Component);m.propTypes={showAnimation:h.PropTypes.bool.isRequired,children:h.PropTypes.element.isRequired,endAnimation:h.PropTypes.bool,onSlideNumberChange:h.PropTypes.func.isRequired,animationPosition:h.PropTypes.shape({x:h.PropTypes.number,y:h.PropTypes.number}).isRequired},m.defaultProps={endAnimation:!1},t.default=m,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(95),i=n(o),a=r(148),s=function(e){return i.default.createElement("div",{className:"reactions-error-message"},i.default.createElement("div",{className:"reactions-error-message__inner"},i.default.createElement("div",{role:"alert",className:"reactions-error-message__text"},(0,a.getMessageForError)(e.errorType))))};s.displayName="ErrorMessage",s.defaultProps={errorType:"ERR_MSG_OTHER"},s.propTypes={errorType:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.bool]).isRequired},t.default=s,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageForError=t.getStandardisedErrorType=t.ErrorTypes=void 0;var o=r(149),i=n(o),a=t.ErrorTypes={UAS_FAILURE:"uasFailure",TOKEN_REFRESH_FAILURE:"tokenRefreshFailure",OTHER_ERROR:"otherError"};t.getStandardisedErrorType=function(e){var t=(0,i.default)(a).indexOf(e.message)>-1;return t?e.message:a.OTHER_ERROR},t.getMessageForError=function(e){switch(e){case a.UAS_FAILURE:return"Sorry, there was a problem recording your reaction. Please try again.";case a.TOKEN_REFRESH_FAILURE:return"Sorry, there was a problem. Please refresh the page and try again.";case a.OTHER_ERROR:default:return"Sorry, there was a problem. Please try again."}}},function(e,t,r){e.exports={default:r(150),__esModule:!0}},function(e,t,r){r(151),e.exports=r(8).Object.values},function(e,t,r){var n=r(6),o=r(152)(!1);n(n.S,"Object",{values:function(e){return o(e)}})},function(e,t,r){var n=r(16),o=r(23),i=r(25),a=r(39).f;e.exports=function(e){return function(t){for(var r,s=i(t),u=o(s),c=u.length,l=0,f=[];c>l;)r=u[l++],n&&!a.call(s,r)||f.push(e?[r,s[r]]:s[r]);return f}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={CtaOpen:"cta_open",CtaClose:"cta_close"};t.default=r,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(120),i=n(o),a=r(123),s=n(a),u=r(43),c=n(u),l=r(80),f=n(l),d=r(81),p=n(d),h=r(82),y=n(h),v=r(86),m=n(v),b=r(95),E=n(b),_=r(155),g=n(_),T=r(119),S=n(T),P=r(156),w=n(P),R=r(157),x=n(R),O=r(158),A=n(O),M=r(159),C=n(M),L=r(161),I=n(L),k=r(162),N=n(k),j=r(163),B=n(j),U=r(164),D=n(U),F=r(148),q=r(114),z=function(e){function t(e){(0,f.default)(this,t);var r=(0,p.default)(this,(t.__proto__||(0,c.default)(t)).call(this,e));return r.props=e,r.state={isSignedIn:!1,error:!1,uasSelectedReaction:null},r}return(0,m.default)(t,e),(0,y.default)(t,null,[{key:"getCountingServiceClient",value:function(e,t,r){return t?g.default.getClient(r):e}},{key:"getIdctaService",value:function(e,t,r,n){return!t&&r?n?x.default:A.default:e}},{key:"getUasConfigService",value:function(e,t,r){return t?(0,I.default)(r):e}},{key:"getIstatsService",value:function(e,t){return t?B.default:e}}]),(0,y.default)(t,[{key:"componentDidMount",value:function(){function e(){return r.apply(this,arguments)}var r=(0,s.default)(i.default.mark(function e(){var r,n,o,a,s,u,c,l,f,d,p=this;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.getIdctaService(w.default,this.props.enableAcceptanceTestMode,this.props.enableStandaloneMode,this.props.error),e.next=3,r.isCurrentUserSignedIn(this.props.error).catch(function(){p.setState({error:new Error(F.ErrorTypes.TOKEN_REFRESH_FAILURE)})});case 3:if(n=e.sent,o="undefined"!=typeof n&&n,this.setState({isSignedIn:o}),!o){e.next=21;break}return a=this.props,s=a.resourceType,u=a.urn,c=a.env,l=a.product,e.next=10,w.default.refreshToken();case 10:return e.prev=10,e.next=13,C.default.getMyReaction(c,l,s,u,this.props.enableAcceptanceTestMode);case 13:f=e.sent,d=f===q.NO_REACTION?q.NO_REACTION:(0,q.keyToLabel)(f,l),this.setState({isSignedIn:o,error:!1,uasSelectedReaction:d}),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(10),this.setState({isSignedIn:o,error:new Error(F.ErrorTypes.UAS_FAILURE)});case 21:case"end":return e.stop()}},e,this,[[10,18]])}));return e}()},{key:"render",value:function(){var e=this.props.enableStandaloneMode,r=this.props.error||this.state.error,n=t.getCountingServiceClient(this.props.countingServiceClientLibrary,e,r),o=E.default.createElement(S.default,{countingServiceClientLibrary:n,env:this.props.env,urn:this.props.urn,resourceTitle:this.props.resourceTitle,resourceType:this.props.resourceType,url:this.props.url,globalId:this.props.globalId,idctaService:t.getIdctaService(w.default,this.props.enableAcceptanceTestMode,e,r),isIdAvailable:this.props.isIdAvailable,isSignedIn:this.state.isSignedIn,product:this.props.product,reactionsCounts:this.props.reactionsCounts,reactionsCountTotal:this.props.reactionsCountTotal,error:r,uasSelectedReaction:this.state.uasSelectedReaction,uasConfigService:t.getUasConfigService(C.default,e,r),istatsService:t.getIstatsService(N.default,e),spriteService:D.default,pageContext:this.props.pageContext});return E.default.createElement("div",null,this.props.enableStandaloneMode?E.default.createElement("div",{className:"reactions__standalone"},E.default.createElement("div",{className:"content-item-description"},E.default.createElement("div",{className:"reactions-container"},o))):E.default.createElement("div",null,o))}}]),t}(b.Component);z.propTypes={enableStandaloneMode:b.PropTypes.bool.isRequired,countingServiceClientLibrary:b.PropTypes.shape({postToUAS:b.PropTypes.func.isRequired,deleteFromUAS:b.PropTypes.func.isRequired}).isRequired,error:b.PropTypes.oneOfType([b.PropTypes.shape({Error:b.PropTypes.string}),b.PropTypes.bool]),env:b.PropTypes.string.isRequired,urn:b.PropTypes.oneOfType([b.PropTypes.string,b.PropTypes.bool]).isRequired,resourceTitle:b.PropTypes.string.isRequired,resourceType:b.PropTypes.string.isRequired,url:b.PropTypes.string.isRequired,globalId:b.PropTypes.string.isRequired,isIdAvailable:b.PropTypes.bool.isRequired,product:b.PropTypes.string.isRequired,reactionsCounts:b.PropTypes.arrayOf(b.PropTypes.object).isRequired,reactionsCountTotal:b.PropTypes.number.isRequired,enableAcceptanceTestMode:b.PropTypes.bool,pageContext:b.PropTypes.oneOfType([b.PropTypes.string,b.PropTypes.bool])},z.defaultProps={error:!1,enableAcceptanceTestMode:!1,pageContext:!1},t.default=z,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(){return u.default.resolve({ok:!0})}function i(e){return function(){throw e}}function a(e){return e.message===c.ErrorTypes.UAS_FAILURE?i(e):o}Object.defineProperty(t,"__esModule",{value:!0});var s=r(124),u=n(s),c=r(148);t.default={getClient:function(e){return{postToUAS:a(e),deleteFromUAS:a(e)}}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(120),i=n(o),a=r(123),s=n(a),u=r(124),c=n(u),l=function(){return new c.default(function(e,t){requirejs(["idcta-v2/idcta-1"],e,t)})};t.default={refreshToken:function(){var e=this;return(0,s.default)(i.default.mark(function t(){var r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l();case 2:return r=e.sent,e.abrupt("return",r.initiateTokenRefresh());case 4:case"end":return e.stop()}},t,e)}))()},isCurrentUserSignedIn:function(){var e=this;return(0,s.default)(i.default.mark(function t(){var r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l();case 2:return r=e.sent,e.abrupt("return",r.hasCookie());case 4:case"end":return e.stop()}},t,e)}))()}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(120),i=n(o),a=r(124),s=n(a),u=r(123),c=n(u),l=r(148),f=r(158),d=n(f);t.default={refreshToken:function(e){if(e.message===l.ErrorTypes.TOKEN_REFRESH_FAILURE)throw e;return d.default.refreshToken()},isCurrentUserSignedIn:function(e){var t=this;return(0,c.default)(i.default.mark(function r(){return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.message!==l.ErrorTypes.TOKEN_REFRESH_FAILURE){t.next=2;break}return t.abrupt("return",s.default.reject(e));case 2:return t.abrupt("return",s.default.resolve(!0));case 3:case"end":return t.stop()}},r,t)}))()}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(120),i=n(o),a=r(123),s=n(a),u=r(124),c=n(u);t.default={refreshToken:function(){return c.default.resolve(!0)},isCurrentUserSignedIn:function(){var e=this;return(0,s.default)(i.default.mark(function t(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c.default.resolve(!0));case 1:case"end":return e.stop()}},t,e)}))()}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(120),i=n(o),a=r(123),s=n(a),u=r(114),c=r(160),l=r(148),f=function(e){if(e&&"undefined"!=typeof e){if("live"===e)return"ocivkho3fups2";if("int"===e||"test"===e)return"8d6f5s2dqp0pc"}throw Error(l.ErrorTypes.API_KEY_ERROR)},d=function(){var e=window.document&&window.document.domain||"";return e.indexOf(".com")>-1?".com":".co.uk"},p=function(e){return u.KEY_TO_UAS_CONTEXT[e]},h=function(e){return"ownit"===e?"stay-safe":e},y=function(e,t,r){var n=r.replace("urn:bbc:","");return"urn:bbc:"+e+":"+t+":"+n},v=function(e,t,r,n,o){var i="live"===e?"":e+".",a=y(t,r,n);return o?"https://web.archive.org/web/20191108214155/http://localhost:3000/wiremock/session/"+Morph.contextId+"/uas/myreaction/"+a:"https://web.archive.org/web/20191108214155/https://activity."+i+"api."+c.bbcTldSuffix+"/my/reactions/"+a},m=function(){var e=(0,s.default)(i.default.mark(function e(t){var r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(204!==t.status){e.next=2;break}return e.abrupt("return",u.NO_REACTION);case 2:return e.next=4,t.json();case 4:return r=e.sent,e.abrupt("return",r.action);case 6:case"end":return e.stop()}},e,void 0)}));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=(0,s.default)(i.default.mark(function e(t){var r,n,o,a,s,u=t.clickedReaction,c=t.urn,y=t.resourceTitle,v=t.resourceType,m=t.url,b=t.product,E=t.env,_=t.signedInState,g=t.isIdAvailable,T=t.idctaService,S=t.error,P=t.endSlideNumber;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!_||!g){e.next=3;break}return e.next=3,T.refreshToken(S).catch(function(){throw new Error(l.ErrorTypes.TOKEN_REFRESH_FAILURE)});case 3:return r=void 0,P&&(r={reactLevel:u+"_"+P}),n={resourceDomain:h(b),resourceType:v,resourceId:c,resourceTitle:y,url:m,action:u,actionContext:p(u),metadata:r},o=f(E),a=d(),e.next=10,T.isCurrentUserSignedIn(S).catch(function(){throw new Error(l.ErrorTypes.TOKEN_REFRESH_FAILURE)});case 10:return s=e.sent,e.abrupt("return",{UASdata:n,apiKey:o,env:E,domain:a,isSignedIn:s});case 12:case"end":return e.stop()}},e,void 0)}));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=(0,s.default)(i.default.mark(function e(t,r,n,o,a){var s,u;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=v(t,h(r),n,o,a),e.next=3,fetch(s,{credentials:"include",headers:{"x-api-key":f(t),Accept:"application/json"}});case 3:return u=e.sent,e.abrupt("return",m(u));case 5:case"end":return e.stop()}},e,void 0)}));return function(t,r,n,o,i){return e.apply(this,arguments)}}();t.default={configureUAS:b,getMyReaction:E},e.exports=t.default},function(e,t){"use strict";function r(){return"undefined"==typeof document?"":document.location.href}Object.defineProperty(t,"__esModule",{value:!0});var n="https://web.archive.org/web/20191108214155/http://localhost:3000",o=t.bbcTldSuffix=r().indexOf("bbc.com")!==-1?"bbc.com":"bbc.co.uk";t.getBBCDomain=function(e){switch(e){case"acc":return n;case"live":return"https://www."+o;default:return"https://www."+e+"."+o}}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(124),i=n(o),a=function(e){return function(){throw e}},s=function(){return i.default.resolve(!0)},u=function(){},c=function(e){return e?a(e):s},l=function(e){return{configureUAS:c(e),getMyReaction:u}};t.default=l,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(){return new c.default(function(e){requirejs(["istats-1"],function(t){e(t)})})}function i(e){o().then(function(t){t.log(d,f,(0,s.default)({},l,e))})}Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),s=n(a),u=r(124),c=n(u),l={page_type:"content",children_interaction_type:"reactions"},f="web_button",d="click";t.default={logSelection:function(e,t,r,n){i({children_interaction_variant:e+"_"+t,children_interaction_location:n}),r&&this.logDeselection(r,n)},logDeselection:function(e,t){i({children_interaction_variant:e+"_deselect",children_interaction_location:t})},logCtaEvent:function(e){i({children_interaction_variant:""+e})},logError:function(e){i({children_interaction_variant:"error_"+e})}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(){return s.default.resolve(u)}function i(){o().then(function(e){e.log()})}Object.defineProperty(t,"__esModule",{value:!0});var a=r(124),s=n(a),u={log:function(){}};t.default={logSelection:function(e,t,r){i(),r&&this.logDeselection(r)},logDeselection:function(){i()},logCtaEvent:function(){i()},logError:function(){i()}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(){a.default&&a.default.selfTransitive&&a.default.selfTransitive("assets",function(e){s=e})}Object.defineProperty(t,"__esModule",{value:!0});var i=r(165),a=n(i),s={},u=function(e,t){return t?s.landscape[e]:s.portrait[e]};t.default={fetchSprites:o,getSprite:u},e.exports=t.default},function(e,t){e.exports={transitive:function(e,t){return Morph.requireTransitiveWithCaller("bbc-morph-childrens-reactions@1.4.7",e,t)},selfTransitive:function(e,t){return Morph.requireTransitiveWithCaller("bbc-morph-childrens-reactions@1.4.7",e,t,!0)},transitiveThenUpdate:function(e,t){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-childrens-reactions@1.4.7",e,t)},selfTransitiveThenUpdate:function(e,t){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-childrens-reactions@1.4.7",e,t,!0)}}}]);; });</script> <script>Morph.toInit.payloads.push(function() { Morph.setPayload('/data/bbc-morph-childrens-reactions-data/urn/urn%3Abbc%3Aisite2%3Afile_id%3Achildrensgames%3Amap2-andys-safari-adventures/version/0.7.1', {"meta":{"responseCode":200,"errorMessage":null,"headers":{"x-morph-privacy-level":"public","content-type":"application\/json"}},"body":{"countsData":{"urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures":{"loved":698,"lol":354,"applause":271,"inspired":259,"omd":315,"sad":386}},"countsTotals":{"urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures":2283},"env":"live"}}); });</script> <script>Morph.toInit.registers.push(function() { Morph.register({"view":"bbc-morph-childrens-reactions","product":"cbeebies","resourceType":"game","urn":"urn:bbc:isite2:file_id:childrensgames:map2-andys-safari-adventures","resourceTitle":"Andy's+Safari+Make+A+Picture+","url":"https:\/\/web.archive.org\/web\/20191108214155\/https:\/\/www.bbc.co.uk\/cbeebies\/makes\/andys-safari-adventures-make-a-picture","pageContext":"primary_content","version":"1.4.7","_mrrVersion":"2.0.16"},'u28641281585116296'); });</script> <script>if (!Morph.manualInit) { Morph.init(); } /* u28641281585116296 */</script> <script type="text/javascript"> var cookiePolicy = window.bbccookies.readPolicy(); if (true || cookiePolicy.performance) { var _sf_async_config = {"domain":"bbc.co.uk","region":"domestic","uid":50924,"sections":"childrens, cbeebies"}; _sf_async_config.path = window.location.pathname; (function () { function loadChartbeat() { window._sf_endpt = (new Date()).getTime(); var e = document.createElement("script"); e.setAttribute("language", "javascript"); e.setAttribute("type", "text/javascript"); e.setAttribute('src', "//web.archive.org/web/20191108214155/https://static.chartbeat.com/js/chartbeat.js"); document.body.appendChild(e); } var oldonload = window.onload; window.onload = (typeof window.onload != "function") ? loadChartbeat : function () { oldonload(); loadChartbeat(); }; })(); } </script> </div> <div id="orb-footer" class="orb-footer" dir="ltr"><div id="navp-orb-footer-promo"></div><aside role="complementary"><div id="orb-aside" class="orb-nav-sec b-r b-g-p"><div class="orb-footer-inner" role="navigation" aria-label="BBC"><h2 class="orb-footer-lead">Explore the BBC</h2><div class="orb-footer-primary-links"><ul><li class="orb-nav-cbeebies"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/cbeebies">CBeebies</a></li><li class="orb-nav-iplayer"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/tv/cbeebies">CBeebies iPlayer</a></li><li class="orb-nav-grownups orb-d"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/cbeebies/grownups">Grown-ups</a></li><li class="orb-nav-cbeebiesguide"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/iplayer/guide/cbeebies">TV Guide</a></li><li class="orb-nav-cbbc"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/cbbc">CBBC</a></li><li class="orb-nav-cbeebiesbitesize orb-d"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/bitesize">Bitesize</a></li></ul></div></div></div></aside><footer role="contentinfo"><div id="orb-contentinfo" class="orb-nav-sec b-r b-g-p"><script>window.orb.worldwideFooterlinks = '<li class="orb-footer-ads"><a href="https://web.archive.org/web/20191108214155/https://advertising.bbcworldwide.com/">Advertise with us<'+'/a><'+'/li><li class="orb-footer-adchoices"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.com/usingthebbc/cookies/how-does-the-bbc-use-cookies-for-advertising/">Ad choices<'+'/a><'+'/li>';</script><div class="orb-footer-inner"> <ul><li class="orb-footer-terms"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/usingthebbc/terms/">Terms of Use</a></li><li class="orb-footer-about"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/aboutthebbc">About the BBC</a></li><li class="orb-footer-privacy"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/usingthebbc/privacy/">Privacy Policy</a></li><li class="orb-footer-cookies"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/usingthebbc/cookies/">Cookies</a></li><li class="orb-footer-accessibility"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/accessibility/">Accessibility Help</a></li><li class="orb-footer-parental"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/guidance">Parental Guidance</a></li><li class="orb-footer-contact"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/contact">Contact the BBC</a></li><li class="orb-footer-newsletter"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/bbcnewsletter">Get Personalised Newsletters</a></li></ul><small><em class="orb-hilight">Copyright &copy; 2019 BBC.</em> The BBC is not responsible for the content of external sites. <span class="orb-footer-links"><a href="https://web.archive.org/web/20191108214155/https://www.bbc.co.uk/help/web/links/" class="orb-hilight">Read about our approach to external linking.</a></span></small></div></div></div></footer></div><script id="orb-js-script" data-assetpath="https://nav.files.bbci.co.uk/orbit/3.0.0-730.71803d18/" src="https://web.archive.org/web/20191108214155js_/https://nav.files.bbci.co.uk/orbit/3.0.0-730.71803d18/js/orb.min.js"></script><script type="text/javascript">require(['orb/lib/_$'], function($) { $.ready(function() { initialiseFooter(); }); var scrollCheckTimer; var didScroll; var previousPosition = 0; var delta = 5; var PROMO_SHOW_BREAKPOINT = 1500; var pageLength = 0; function initialiseFooter() { // Suppress this feature on browsers we no longer test var myNav = navigator.userAgent.toLowerCase(); var oldIE = (myNav.indexOf('msie') !== -1) && parseInt(myNav.split('msie')[1], 10) <= 10; if (!oldIE) { require(['orb/cookies'], function (bbccookies) { var disabledByCookie = (parseInt(bbccookies.get('ckns_nav_promofail')) || 0) >= 3; if (!disabledByCookie) { require(['orb/fig'], function (orbFig) { orbFig.load(function (fig) { if (fig.geo.isUK()) { setUpLazyLoading(); } }); }); } }); } } function setUpLazyLoading() { // offsetHeight is expensive to calculate, only do it once. pageLength = Math.abs(document.body.offsetHeight); if (pageLength < getViewportHeight() + 300 || pageLength - getCurrentPosition() < PROMO_SHOW_BREAKPOINT) { loadPromo(); } else { window.onscroll = function () { didScroll = true; }; scrollCheckTimer = setInterval(function () { if (didScroll) { hasScrolled(); didScroll = false; } }, 250); } } function loadPromo() { clearInterval(scrollCheckTimer); require(['orb/async/_footerpromo'], function(promo) { promo.init('https://web.archive.org/web/20191108214155/https://navpromo.api.bbci.co.uk', 'cbeebies'); }); } function getViewportHeight() { return window.innerHeight; } function getCurrentPosition() { return Math.abs(window.scrollY || document.body.scrollTop || document.documentElement.scrollTop); } function hasScrolled() { var currentPosition = getCurrentPosition(); if (Math.abs(previousPosition - currentPosition) <= delta) { return; } if (currentPosition > previousPosition) { if ((pageLength - currentPosition) <= PROMO_SHOW_BREAKPOINT) { loadPromo(); } } previousPosition = currentPosition; } })</script><script type="text/javascript">/*<![CDATA[*/ require(['orb/fig', 'orb/nav'], function(fig, nav) { fig.load(function(fig) { if (fig.geo.isUK()) { nav.loadJs('https://web.archive.org/web/20191108214155/https://nav.files.bbci.co.uk/orbit/3.0.0-730.71803d18/js/edr.min.js'); } }); }); /*]]>*/</script> <!-- BBCDOTCOM bodyLast --><div class="bbccom_display_none"><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && window.bbcdotcom.analytics && bbcdotcom.config && !bbcdotcom.config.isSportApp() && !bbcdotcom.config.isReel()) { bbcdotcom.analytics.page(); } /*]]>*/</script><noscript><img src="//web.archive.org/web/20191108214155im_/https://ssc.api.bbc.com/?c1=2&amp;c2=19293874&amp;ns_site=bbc&amp;name=" height="1" width="1" alt=""></noscript><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.currencyProviders) { bbcdotcom.currencyProviders.write(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.currencyProviders) { bbcdotcom.currencyProviders.postWrite(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.data && bbcdotcom.data.stats && bbcdotcom.data.stats === 1 && bbcdotcom.utils && window.location.pathname === '/') { var wwhpEdition = bbcdotcom.utils.getMetaPropertyContent('wwhp-edition'); var _sf_async_config={}; /** CONFIGURATION START **/ _sf_async_config.uid = 50924; _sf_async_config.domain = "bbc.co.uk"; _sf_async_config.title = "Homepage"+(wwhpEdition !== '' ? ' - '+wwhpEdition : ''); _sf_async_config.sections = "Homepage"+(wwhpEdition !== '' ? ', Homepage - '+wwhpEdition : ''); _sf_async_config.region = wwhpEdition; _sf_async_config.path = "/"+(wwhpEdition !== '' ? '?'+wwhpEdition : ''); /** CONFIGURATION END **/ (function(){ function loadChartbeat() { window._sf_endpt=(new Date()).getTime(); var e = document.createElement("script"); e.setAttribute("language", "javascript"); e.setAttribute("type", "text/javascript"); e.setAttribute('src', '//web.archive.org/web/20191108214155/https://static.chartbeat.com/js/chartbeat.js'); document.body.appendChild(e); } var oldonload = window.onload; window.onload = (typeof window.onload != "function") ? loadChartbeat : function() { oldonload(); loadChartbeat(); }; })(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function() { window.bbcdotcom.bodyLast = true; }()); /*]]>*/</script></div><!-- BBCDOTCOM all code in page --><script type="text/javascript">if (window.SEARCHBOX.suppress === false && window.SEARCHBOX.locale && /^en-?.*?/.test(window.SEARCHBOX.locale)) { require.config({ paths: { "search/searchbox": window.SEARCHBOX.searchboxAppStaticPrefix, } }); if (bbcuser && bbcuser.isUKCombined) { bbcuser.isUKCombined().then(function (isUK) { if (isUK) { require(['search/searchbox/searchboxDrawer'], function (SearchboxDrawer) { SearchboxDrawer.run(window.SEARCHBOX); }); } }); } }</script> <script type="text/javascript">window.COOKIES_STATIC_HOST = 'https://web.archive.org/web/20191108214155/https://nav.files.bbci.co.uk/orbit-webmodules/0.0.1-352.83f6fa0/cookie-banner//cookie-prompt/';</script><script src="https://web.archive.org/web/20191108214155js_/https://nav.files.bbci.co.uk/orbit-webmodules/0.0.1-352.83f6fa0/cookie-banner/cookie-banners.bundle.js" async=""></script><script type="text/javascript">require(["istats-1","orb/cookies"],function(o,t){if(t.isAllowed("s1"))try{if(!require.s.contexts._.config.paths.idcta)return void i();require(["idcta/idcta-1"],function(t){t&&"function"==typeof t.getIStatsLabels&&o.addLabels(t.getIStatsLabels()),i()},function(t){throw t})}catch(t){console&&"function"==typeof console.log&&console.log("an exception occurred while adding idcta labels to istats, invoking istats without them",t),i()}function i(){o.invoke()}});</script><script type="text/javascript">"use strict";window.__reverb.__reverbLoadedPromise.then(function(e){return e.initialise().then(function(){return e.viewEvent()})},function(){console.log("Failed to load reverb. No event sent")});</script><script src="https://web.archive.org/web/20191108214155js_/https://nav.files.bbci.co.uk/orbit-webmodules/0.0.1-352.83f6fa0/detectview/detectview.bundle.js" async=""></script> </body> </html> <!-- FILE ARCHIVED ON 21:41:55 Nov 08, 2019 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 01:08:26 Dec 03, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.862 exclusion.robots: 0.03 exclusion.robots.policy: 0.018 esindex: 0.011 cdx.remote: 13.353 LoadShardBlock: 129.36 (3) PetaboxLoader3.datanode: 95.052 (4) PetaboxLoader3.resolve: 157.663 (2) load_resource: 190.111 -->

Pages: 1 2 3 4 5 6 7 8 9 10