CINXE.COM

KS3 Computer Science - BBC Bitesize

<!DOCTYPE html><html lang="en-GB" class="b-header--white--black b-footer--transparent--dark-grey b-reith-sans-font"><head><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/bitesize/subjects/zvc9q6f","20220121005457","https://web.archive.org/","web","/_static/", "1642726497"); </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 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>KS3 Computer Science - BBC Bitesize</title><meta name="description" content="KS3 Computer Science learning resources for adults, children, parents and teachers organised by topic."><link rel="canonical" href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/bitesize/subjects/zvc9q6f"><meta property="og:title" content="KS3 Computer Science - BBC Bitesize"><meta property="og:description" content="KS3 Computer Science learning resources for adults, children, parents and teachers organised by topic."><meta property="og:site_name" content="BBC Bitesize"><meta property="og:locale" content="en-GB"><meta property="og:url" content="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/bitesize/subjects/zvc9q6f"> <script> window.orb_fig_blocking = false window.bbcredirection = { geo: false, device: false }; </script> <!-- Orbit: 3.0.0-1793.30aeea88 --> <!-- Environment: live --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> :root { --bbc-font: ReithSans, Arial, Helvetica, freesans, sans-serif; --bbc-font-legacy: Arial, Helvetica, freesans, sans-serif; } </style> <script nomodule type="text/javascript" src="https://web.archive.org/web/20220121005457js_/https://static.files.bbci.co.uk/orbit/7e4d464d9adf1a097178544b394185aa/js/polyfills.bundle.js" async></script> <link rel="stylesheet" href="https://web.archive.org/web/20220121005457cs_/https://static.files.bbci.co.uk/orbit/7e4d464d9adf1a097178544b394185aa/css/orb-ltr.min.css"> <script src="https://web.archive.org/web/20220121005457js_/https://static.files.bbci.co.uk/orbit/7e4d464d9adf1a097178544b394185aa/js/require.min.js"></script> <script> // nav-orbit-pollyfills // 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: 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; } </script> <script type="text/javascript"> window.orbitData = {}; var additionalPageProperties = {}; additionalPageProperties['custom_var_3'] = 'ks3' || null; additionalPageProperties['custom_var_4'] = 'computer_science' || null; window.orbitData.userProfileUrl = "https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/userprofile"; window.page = { name: 'bitesize.ks3_computer_science.subjects.zvc9q6f.page' || null, destination: 'BITESIZE' || null, producer: 'BITESIZE' || null, section: 'learn::secondary' || null, site: '' || null, contentId: 'urn:bbc:ldp:zvc9q6f' || null, contentType: 'index-category' || null, edition: 'domestic' || null, additionalProperties: additionalPageProperties }; window.page.language = 'en'; window.page.language = 'en'; window.page.modal = false; </script> <script type="text/javascript">!function(){var t={53:function(t,e,r){function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=r(206),u=r(189);window.bbcpage=c.init(o({},window.page)),window.page=void 0,window.bbcuser=u.init(window,o({},window.user)),window.user=void 0},206:function(t){function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t.exports={init:function(t){var e=r({},t);return document.addEventListener("bbc-page-reset",(function(t){var r;t.detail&&t.detail.page&&(r=t.detail.page,e=Object.assign(e,r)),document.dispatchEvent(new Event("bbc-page-updated"))})),{getName:function(){return Promise.resolve(e.name||function(){if("file:"===window.location.protocol)return"local.file";var t=window.location.pathname.replace(/\/$/,"").replace(/^\//,"").replace(/\//g,".");return"".concat(t,".page")}())},getLanguage:function(){return Promise.resolve(e.language)},getDestination:function(){return Promise.resolve(e.destination)},getProducer:function(){return Promise.resolve(e.producer)},getSection:function(){return Promise.resolve(e.section)},getContentType:function(){return Promise.resolve(e.contentType)},getContentId:function(){return Promise.resolve(e.contentId)},getReferrer:function(){return Promise.resolve(window.orb&&null!==window.orb.referrer&&void 0!==window.orb.referrer?window.orb.referrer:document.referrer)},getAdditionalProperties:function(){return Promise.resolve(r({},e.additionalProperties))},loadCSS:function(t){return new Promise((function(e,r){var n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.onload=function(){e()},n.href=t,document.getElementsByTagName("head")[0].appendChild(n)}))},isModal:function(){return Promise.resolve(e.modal)}}}}},189:function(t,e,r){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 o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){var e="function"==typeof Map?new Map:void 0;return(f=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return s(t,arguments,h(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p(n,t)})(t)}function s(t,e,r){return(s=l()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&p(o,r.prototype),o}).apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=r(11).loadModule,y=function(t){!function(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&&p(t,e)}(o,t);var e,r,n=(e=o,r=l(),function(){var t,n=h(e);if(r){var o=h(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return a(this,t)});function o(){return u(this,o),n.apply(this,arguments)}return o}(f(Error));t.exports={init:function(t,e){var r,n=i({},e),o=null;function c(){if(["X-Country","X-Ip_is_advertise_combined","X-Ip_is_uk_combined"].every((function(t){return!!n[t]})))return Promise.resolve(n);if(!o){var e=t.location.hostname.endsWith(".com")?"com":"co.uk";o=t.fetch("https://web.archive.org/web/20220121005457/https://www.bbc.".concat(e,"/userinfo")).then((function(t){return t.json()}))}return o}function u(t){if(t.status>=200&&t.status<300)return t;var e=new Error(t.statusText);throw e.response=t,e}function a(t){return t.json()}function f(){if(n.ageBand)return Promise.resolve(n);if(!r){if("undefined"==typeof XMLHttpRequest||!("withCredentials"in new XMLHttpRequest))return Promise.resolve(n);r=d(["idcta-v2/idcta-1"]).then((function(e){return e.initiateTokenRefresh().then((function(){return t.fetch(t.orbitData.userProfileUrl,{credentials:"include"}).then(u).then(a).then((function(t){return n=i(i({},n),t)}))}))}))}return r}var s={getHashedId:function(){return d(["idcta-v2/idcta-1"]).then((function(t){return t.getCookieInstance().getHidFromCookie()}))},isSignedIn:function(){return d(["idcta-v2/idcta-1"]).then((function(t){return t&&t.getCookieInstance().hasCookie()}))},getCountry:function(){return c().then((function(t){return t["X-Country"]||"gb"}))},isUKCombined:function(){return c().then((function(t){if(!t["X-Ip_is_uk_combined"])throw new y("missing isUKCombined from userinfo response");return"yes"===t["X-Ip_is_uk_combined"].toLowerCase()}))},canSeeAdverts:function(){return c().then((function(t){if(!t["X-Ip_is_advertise_combined"])throw new y("missing canSeeAdverts from userinfo response");return"yes"===t["X-Ip_is_advertise_combined"].toLowerCase()}))},getAgeBand:function(){return c().then((function(t){return t["X-Age-Band"]?Promise.resolve(t["X-Age-Band"]):s.isSignedIn().then((function(t){if(t)return f().then((function(t){return n["X-Age-Band"]=t["X-Age-Band"],n["X-Age-Band"]||void 0})).catch((function(){return n["X-Age-Band"]||void 0}))}))}))},allowsPerformanceCookies:function(){return d(["orb/cookies"]).then((function(t){return!!t.cookiesEnabled()&&!!t.readPolicy("performance")}))},allowsFunctionalCookies:function(){return d(["orb/cookies"]).then((function(t){return!!t.cookiesEnabled()&&!!t.readPolicy("personalisation")}))},getCookieValue:function(t){return d(["orb/cookies"]).then((function(e){return e.get(t)}))}};return s},BBCUserError:y}},11:function(t){t.exports={loadModule:function(t){return new Promise((function(e,r){window.require(t,(function(){e.apply(this,arguments)}),(function(t){r(t)}))}))}}},666:function(t){var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function a(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),c=new k(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var u=_(c,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var a=s(t,e,r);if("normal"===a.type){if(n=r.done?d:p,a.arg===y)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(n=d,r.method="throw",r.arg=a.arg)}}}(t,r,c),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function b(){}var w={};w[i]=function(){return this};var m=Object.getPrototypeOf,O=m&&m(m(S([])));O&&O!==r&&n.call(O,i)&&(w=O);var P=b.prototype=v.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,i,c,u){var a=s(t[o],t,i);if("throw"!==a.type){var f=a.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(l).then((function(t){f.value=t,c(f)}),(function(t){return r("throw",t,c,u)}))}u(a.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function _(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return c.next=c}}return{next:C}}function C(){return{value:e,done:!0}}return g.prototype=P.constructor=b,b.constructor=g,g.displayName=a(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,a(t,u,"GeneratorFunction")),t.prototype=Object.create(P),t},t.awrap=function(t){return{__await:t}},j(E.prototype),E.prototype[c]=function(){return this},t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var c=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},j(P),a(P,u,"Generator"),P[i]=function(){return this},P.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],u=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var a=n.call(c,"catchLoc"),f=n.call(c,"finallyLoc");if(a&&f){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(a){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r(666);r(53)}();</script> <script type="module"> window.importmap = {"orbit-drawer":"https://web.archive.org/web/20220121005457/https://static.files.bbci.co.uk/orbit/7e4d464d9adf1a097178544b394185aa/js/drawer-api.bundle.js","bbccookies":"https://web.archive.org/web/20220121005457/https://static.files.bbci.co.uk/cookies/6868f40b6841deedfcf9895de775e1ab/cookie-banner/cookie-library.module.js"}; var e={748:function(e,t,n){function o(){const e={},t={listeners:{},resolves:{}};function n(e,n){e in t.resolves?n(e,t.resolves[e]):t.listeners[e]?t.listeners[e].push(n):t.listeners[e]=[n]}function o(e,n){t.resolves[e]=n;const o=t.listeners[e];o&&(o.forEach((t=>{t(e,n)})),delete t.listeners[e])}function i(t,n,i){n&&!n.splice?function(e,t){o(e,"function"==typeof t?t():t)}(t,n):function(t,n,i){e.require(n,((...e)=>{o(t,i(...e))}))}(t,n,i)}return e.require=function(e,o,i){if(e.splice)if(0===e.length)o();else{const r=[];let c,s=0;void 0!==i&&(c=setTimeout((()=>{console.log("require timeout, dependencies not loaded:",e,r),i()}),3e3));const u=(i,f)=>{if("string"==typeof f){const e=f.includes("callback=")?f:`${f}.js`;return delete t.resolves[i],void function(e,t,n){const o=document.createElement("script");o.type="text/javascript",o.async=!0,o.setAttribute("data-module",e),o.src=t,o.onload=n,document.head.appendChild(o)}(i,e,(()=>{n(i,u)}))}r[e.indexOf(i)]=f,s+=1,s>=e.length&&(clearTimeout(c),o(...r))};e.forEach((e=>{n(e,u)}))}else{const t=e;window.require.config(t)}},e.require.config=function(n){let o;(n.baseUrl||window.location.href.match(/(bbc.co.uk|bbc.com)/))&&(o=new URL(n.baseUrl||"",window.location.href||void 0).toString(),"/"!==o.charAt(o.length-1)&&(o+="/")),Object.keys(n.paths).forEach((t=>{const i=new URL(n.paths[t],o);e.define(t,i.toString())})),n.map&&n.map["*"]&&Object.keys(n.map["*"]).forEach((o=>{const i=n.map["*"][o],r=t.resolves[i];e.define(o,r)}))},e.define=function(e,t,n){"string"!=typeof e?function(e,t){if(document.currentScript){const n=document.currentScript.getAttribute("data-module");n&&i(n,e,t)}}(e,t):i(e,t,n)},e.requirejs=e.require,e.registry=t,e.define.amd=!0,e}n.r(t),n.d(t,{init:function(){return o},default:function(){return o}})},0:function(e){e.exports={loadModule:function(e){return new Promise(((t,n)=>{window.require(e,(function(){t.apply(this,arguments)}),(e=>{n(e)}))}))}}},831:function(e,t,n){const{loadModule:o}=n(0);e.exports=function(e){return function(t){return"string"==typeof t&&e[t]?import(e[t]):o(t)}}}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){const e=n(748),t=n(831);"function"!=typeof window.define&&Object.assign(window,e.init()),window.shimport=t({...window.importmap}),window.importMap=void 0}();</script> <script type="text/javascript"> window.page = undefined; window.user = undefined; </script> <script> window.orb = { worldwideNavlinks: '<li class="orb-nav-homedotcom"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.com/">Home</a></li><li class="orb-nav-newsdotcom"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.com/news">News</a></li><li class="orb-nav-sport"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.com/sport">Sport</a></li><li class="orb-nav-reeldotcom"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.com/reel">Reel</a></li><li class="orb-nav-worklife"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.com/worklife">Worklife</a></li><li class="orb-nav-traveldotcom"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.com/travel">Travel</a></li><li class="orb-nav-future"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.com/future">Future</a></li><li class="orb-nav-culture"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.com/culture">Culture</a></li><li class="orb-nav-music"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.com/culture/music">Music</a></li><li class="orb-nav-tv"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/schedules/p00fzl9m">TV</a></li><li class="orb-nav-weather"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.com/weather">Weather</a></li><li class="orb-nav-sounds"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/sounds">Sounds</a></li>', } </script> <script src="https://web.archive.org/web/20220121005457js_/https://static.files.bbci.co.uk/orbit/7e4d464d9adf1a097178544b394185aa/js/api-forge-free.min.js"></script> <link rel="preload" href="https://web.archive.org/web/20220121005457/https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_Rg.woff2" as="font" type="font/woff2" crossorigin> <link rel="preload" href="https://web.archive.org/web/20220121005457/https://static.files.bbci.co.uk/fonts/reith/2.512/BBCReithSans_W_Bd.woff2" as="font" type="font/woff2" crossorigin> <!-- navid Web Module: 0.2.0-92.1211a1e --> <!-- searchbox Web Module: 3.1.0-402.9dc192f --> <!-- navpromo Web Module: 3.0.0-287.1cda04c --> <!-- cookies Web Module: 0.0.3-700.c8b7bd5 --> <!-- useractivityhelper Web Module: 1.0.0-224.94e978d --> <!-- reverb Web Module: 3.3.0 --> <link rel="stylesheet" href="https://web.archive.org/web/20220121005457cs_/https://static.files.bbci.co.uk/account/id-cta/1.54.11-wp/style/id-cta.css"/><!--[if IE 8]><link href="https://static.files.bbci.co.uk/account/id-cta/1.54.11-wp/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/20220121005457/https://idcta.api.bbc.co.uk';var ENDPOINT_CONFIG = ('/idcta/config?callback=&ptrt=' + (ptrt ? ptrt[1] : encodeURIComponent(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/20220121005457/https://static.files.bbci.co.uk/account/id-cta/1.54.11-wp/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/20220121005457/https://static.files.bbci.co.uk/account/id-cta/1.8.2/modules/idcta';map['idcta-v2/idcta-1'] = 'https://web.archive.org/web/20220121005457/https://static.files.bbci.co.uk/account/id-cta/1.54.11-wp/modules/idcta-v2/dist/idcta-1.min';map['idcta-v2/experiment-snippet'] = 'https://web.archive.org/web/20220121005457/https://cdn.optimizely.com/public/4621041136/s/idcta_live';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> <link rel="stylesheet" href="https://web.archive.org/web/20220121005457cs_/https://nav.files.bbci.co.uk/searchbox/2432a71c53a3b82accd4f32608cae098/css/box.css"> <script src="https://web.archive.org/web/20220121005457js_/https://static.files.bbci.co.uk/cookies/6868f40b6841deedfcf9895de775e1ab/cookie-banner/cookie-library.bundle.js"></script><script type="text/javascript">void 0!==window.define&&define("orb/cookies",function(){return window.bbccookies})</script> <script type="text/javascript">window.__detectview={clickManagementEnabled:false};</script> <script type="text/javascript">"use strict";!function(){window.__reverbStaticLocation="https://web.archive.org/web/20220121005457/https://mybbc-analytics.files.bbci.co.uk/reverb-client-js/",window.__smarttagVersion="5.29.1",window.__reverb={},window.__reverb.__reverbLoadedPromise=new Promise(function(e,i){window.__reverb.__resolveReverbLoaded=e,window.__reverb.__rejectReverbLoaded=i}),window.__reverb.__reverbTimeout=setTimeout(function(){window.__reverb.__rejectReverbLoaded()},5e3);var i=function(d,a){window.__reverb.__reverbLoadedPromise.then(function(e){if(d&&d.detail){var i=!!d.detail.item,n=d.detail.label,t=i?"viewability":d.detail.type,o=d.detail.elem,r=d.detail.originalEvent;d.detail.isClick&&(a=d.detail.isClick),e.userActionEvent(t,n,d.detail,o,r,a)}},function(){console.log("Reverb failed to load. Event not sent")})},n=function(){window.__reverb.__reverbLoadedPromise.then(function(e){e.initialise().then(function(){return e.viewEvent()})},function(){console.log("Reverb failed to load. Event not sent")})};document.addEventListener("bbc-user-event",function(e){i(e,!1)}),document.addEventListener("bbc-user-click",function(e){i(e,!0)}),document.addEventListener("bbc-page-updated",n),window.addEventListener("pageshow",function(e){e.persisted&&n()})}();</script><script type="text/javascript" src="https://web.archive.org/web/20220121005457js_/https://mybbc-analytics.files.bbci.co.uk/reverb-client-js/reverb-3.3.0.js" async></script> <script> if (!("ontouchstart" in document.documentElement)) { document.documentElement.classList.add("n-no-touchevents"); } </script> <style> body { border: 0; margin: 0; padding: 0; } </style><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><script type="text/javascript">Morph.initStyles(); /* u8770904639335848 */</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]--><link rel="stylesheet" href="//web.archive.org/web/20220121005457cs_/https://m.files.bbci.co.uk/modules/bbc-morph-bitesize-header-view/8.125.0/core.css"/><!--[if gt IE 8]><!--></noscript><!--<![endif]--><script>if (Morph.enhanced) { Morph.styles["bbc-morph-bitesize-header-view/8.125.0"]=true; Morph.styleSrc.push("<link rel=\"stylesheet\" href=\"//m.files.bbci.co.uk/modules/bbc-morph-bitesize-header-view/8.125.0/enhanced.css\"/>"); }</script><!--[if gt IE 8]><!--><noscript class="morph-core-style"><!--<![endif]--><link rel="stylesheet" href="//web.archive.org/web/20220121005457cs_/https://m.files.bbci.co.uk/modules/bbc-morph-bitesize-global-navigation-view/1.54.1/core.css"/><!--[if gt IE 8]><!--></noscript><!--<![endif]--><script>if (Morph.enhanced) { Morph.styles["bbc-morph-bitesize-global-navigation-view/1.54.1"]=true; Morph.styleSrc.push("<link rel=\"stylesheet\" href=\"//m.files.bbci.co.uk/modules/bbc-morph-bitesize-global-navigation-view/1.54.1/enhanced.css\"/>"); }</script><script type="text/javascript">Morph.initStyles(); /* u8505836438109107 */</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>.ec-sign-in-banner{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem}@media (min-width:20em){.ec-sign-in-banner{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}@media (min-width:37.5em){.ec-sign-in-banner{font-size:18px;font-size:1.125rem;line-height:24px;line-height:1.5rem}.n-no-touchevents .ec-sign-in-banner{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}.ec-sign-in-banner--light-grey-container{background-color:#f1f1f1;padding:8px;text-align:center}.ec-sign-in-banner__heading{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:700;margin:16px}@media (min-width:20em){.ec-sign-in-banner__heading{font-size:22px;font-size:1.375rem;line-height:26px;line-height:1.625rem}}@media (min-width:37.5em){.ec-sign-in-banner__heading{font-size:30px;font-size:1.875rem;line-height:34px;line-height:2.125rem}.n-no-touchevents .ec-sign-in-banner__heading{font-size:28px;font-size:1.75rem;line-height:32px;line-height:2rem}}.ec-sign-in-banner__subheading{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;margin:16px}@media (min-width:20em){.ec-sign-in-banner__subheading{font-size:16px;font-size:1rem;line-height:20px;line-height:1.25rem}}@media (min-width:37.5em){.ec-sign-in-banner__subheading{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem}.n-no-touchevents .ec-sign-in-banner__subheading{font-size:16px;font-size:1rem;line-height:20px;line-height:1.25rem}}#orb-modules .ec-sign-in-banner__idcta-external-component>.id4-cta{font-family:ReithSans,Arial,Helvetica,freesans,sans-serif;margin-bottom:16px;margin-top:8px;padding:0}body{font-family:Helvetica,Arial,freesans,sans-serif}.b-reith-sans-font.b-reith-sans-loaded{font-feature-settings:"ss01"}.b-reith-sans-font .language-selector__drawer{line-height:1.2rem}.sign-in-banner__container{box-sizing:border-box;margin-left:auto;margin-right:auto;max-width:1008px;padding:0 8px;position:relative}.sign-in-banner__container--homepage{max-width:1040px;margin-top:8px}@media (min-width:37.5em){.sign-in-banner__container--homepage{padding:0 32px}}@media (min-width:25em){.sign-in-banner__container--exam-boards,.sign-in-banner__container--examspecs,.sign-in-banner__container--primary-level,.sign-in-banner__container--programme-of-study,.sign-in-banner__container--super-programme-of-study,.sign-in-banner__container--topic-of-study{padding:0 16px}}@media (min-width:37.5em){.sign-in-banner__container--exam-boards,.sign-in-banner__container--examspecs,.sign-in-banner__container--programme-of-study,.sign-in-banner__container--super-programme-of-study{margin-top:50px}}@media (min-width:37.5em){.sign-in-banner__container--super-programme-of-study{margin-bottom:-16px}}.sign-in-banner__container--exam-boards,.sign-in-banner__container--examspecs{margin-bottom:16px}@media (min-width:37.5em){.sign-in-banner__container--exam-boards,.sign-in-banner__container--examspecs{margin-bottom:32px}}.sign-in-banner__container--primary-level{margin-top:8px}</style><!--[if gt IE 8]><!--></noscript><!--<![endif]--><script>if (Morph.enhanced) { Morph.styles["bbc-morph-bitesize-sign-in-banner-view/0.11.0"]=true; Morph.styleSrc.push("<style>.ec-sign-in-banner{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem}@media (min-width:20em){.ec-sign-in-banner{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}@media (min-width:37.5em){.ec-sign-in-banner{font-size:18px;font-size:1.125rem;line-height:24px;line-height:1.5rem}.n-no-touchevents .ec-sign-in-banner{font-size:16px;font-size:1rem;line-height:22px;line-height:1.375rem}}.ec-sign-in-banner--light-grey-container{background-color:#f1f1f1;padding:8px;text-align:center}.ec-sign-in-banner__heading{font-size:20px;font-size:1.25rem;line-height:24px;line-height:1.5rem;font-weight:700;margin:16px}@media (min-width:20em){.ec-sign-in-banner__heading{font-size:22px;font-size:1.375rem;line-height:26px;line-height:1.625rem}}@media (min-width:37.5em){.ec-sign-in-banner__heading{font-size:30px;font-size:1.875rem;line-height:34px;line-height:2.125rem}.n-no-touchevents .ec-sign-in-banner__heading{font-size:28px;font-size:1.75rem;line-height:32px;line-height:2rem}}.ec-sign-in-banner__subheading{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;margin:16px}@media (min-width:20em){.ec-sign-in-banner__subheading{font-size:16px;font-size:1rem;line-height:20px;line-height:1.25rem}}@media (min-width:37.5em){.ec-sign-in-banner__subheading{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem}.n-no-touchevents .ec-sign-in-banner__subheading{font-size:16px;font-size:1rem;line-height:20px;line-height:1.25rem}}#orb-modules .ec-sign-in-banner__idcta-external-component>.id4-cta{font-family:ReithSans,Arial,Helvetica,freesans,sans-serif;margin-bottom:16px;margin-top:8px;padding:0}body{font-family:Helvetica,Arial,freesans,sans-serif}.b-reith-sans-font.b-reith-sans-loaded{font-feature-settings:\"ss01\"}.b-reith-sans-font .language-selector__drawer{line-height:1.2rem}.sign-in-banner__container{box-sizing:border-box;margin-left:auto;margin-right:auto;max-width:1008px;padding:0 8px;position:relative}.sign-in-banner__container--homepage{max-width:1040px;margin-top:8px}@media (min-width:37.5em){.sign-in-banner__container--homepage{padding:0 32px}}@media (min-width:25em){.sign-in-banner__container--exam-boards,.sign-in-banner__container--examspecs,.sign-in-banner__container--primary-level,.sign-in-banner__container--programme-of-study,.sign-in-banner__container--super-programme-of-study,.sign-in-banner__container--topic-of-study{padding:0 16px}}@media (min-width:37.5em){.sign-in-banner__container--exam-boards,.sign-in-banner__container--examspecs,.sign-in-banner__container--programme-of-study,.sign-in-banner__container--super-programme-of-study{margin-top:50px}}@media (min-width:37.5em){.sign-in-banner__container--super-programme-of-study{margin-bottom:-16px}}.sign-in-banner__container--exam-boards,.sign-in-banner__container--examspecs{margin-bottom:16px}@media (min-width:37.5em){.sign-in-banner__container--exam-boards,.sign-in-banner__container--examspecs{margin-bottom:32px}}.sign-in-banner__container--primary-level{margin-top:8px}</style>"); }</script><script type="text/javascript">Morph.initStyles(); /* u5211958471397782 */</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]--><link rel="stylesheet" href="//web.archive.org/web/20220121005457cs_/https://m.files.bbci.co.uk/modules/bbc-morph-bitesize-course-promo-view/3.6.3/core.css"/><!--[if gt IE 8]><!--></noscript><!--<![endif]--><script>if (Morph.enhanced) { Morph.styles["bbc-morph-bitesize-course-promo-view/3.6.3"]=true; Morph.styleSrc.push("<link rel=\"stylesheet\" href=\"//m.files.bbci.co.uk/modules/bbc-morph-bitesize-course-promo-view/3.6.3/enhanced.css\"/>"); }</script><script type="text/javascript">Morph.initStyles(); /* u4674157445950287 */</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]--><link rel="stylesheet" href="//web.archive.org/web/20220121005457cs_/https://m.files.bbci.co.uk/modules/bbc-morph-bitesize-programme-of-study-view/1.24.0/core.css"/><!--[if gt IE 8]><!--></noscript><!--<![endif]--><script>if (Morph.enhanced) { Morph.styles["bbc-morph-bitesize-programme-of-study-view/1.24.0"]=true; Morph.styleSrc.push("<link rel=\"stylesheet\" href=\"//m.files.bbci.co.uk/modules/bbc-morph-bitesize-programme-of-study-view/1.24.0/enhanced.css\"/>"); }</script><script type="text/javascript">Morph.initStyles(); /* u3938382590684688 */</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>body{font-family:Helvetica,Arial,freesans,sans-serif}.b-reith-sans-font.b-reith-sans-loaded{font-feature-settings:"ss01"}.b-reith-sans-font .all-subjects__btn,.b-reith-sans-font .banner__link,.b-reith-sans-font .banner__list-item,.b-reith-sans-font .banner__text,.b-reith-sans-font .context-panel-description,.b-reith-sans-font .context-panel__description,.b-reith-sans-font .dialogue__description h1,.b-reith-sans-font .global-language-selector__drawer,.b-reith-sans-font .global-language-selector__icon-yes,.b-reith-sans-font .homepage-menu-text,.b-reith-sans-font .language-selector__drawer,.b-reith-sans-font .language-selector__icon-yes,.b-reith-sans-font .phase-card__link,.b-reith-sans-font .poem h1,.b-reith-sans-font .quote__text,.b-reith-sans-font blockquote q{font-family:inherit;font-feature-settings:inherit}.b-reith-sans-font .banner__title,.b-reith-sans-font .context-panel__button,.b-reith-sans-font .context-panel__header,.b-reith-sans-font .examspec-picker__button-link,.b-reith-sans-font .examspec-picker__header,.b-reith-sans-font .highlights__title,.b-reith-sans-font .homepage__overlay--v2 .homepage-overlay__body-title,.b-reith-sans-font .homepage__phases .phase-card__subtitle,.b-reith-sans-font .homepage__strapline,.b-reith-sans-font .logo__link,.b-reith-sans-font .masthead__logo,.b-reith-sans-font .masthead__logo--dark,.b-reith-sans-font .nation-card__label,.b-reith-sans-font .phase-card__title,.b-reith-sans-font .study-guide__title,.b-reith-sans-font .super-pos-card,.b-reith-sans-font .topic__header,.b-reith-sans-font .topics__header,.b-reith-sans-font .topics__title,.b-reith-sans-font .your-subjects__all-subjects__title,.b-reith-sans-font .your-subjects__bitesize-title,.b-reith-sans-font .your-subjects__choose-title,.b-reith-sans-font .your-subjects__error-title,.b-reith-sans-font .your-subjects__idcta__title,.b-reith-sans-font .your-subjects__last-activity-title,.b-reith-sans-font .your-subjects__no-relevant-subjects__title,.b-reith-sans-font .your-subjects__set-up-subjects__title,.b-reith-sans-font .your-subjects__title,.b-reith-sans-font .your-subjects__under-thirteen__title{font-family:inherit;font-weight:700}.b-reith-sans-font .language-selector__drawer{line-height:1.2rem}.related-links-container{max-width:1008px;margin:0 auto;padding-right:8px;padding-left:8px;margin-bottom:16px}@media (min-width:37.5em){.related-links-container{margin-bottom:24px}}@media (min-width:63em){.related-links-container{margin-bottom:32px}}.related-links{background-color:#f1f1f1;color:#231f20;padding:8px}@media (min-width:25em){.related-links{padding:16px}}.related-links hr{border:1px solid #fff;margin:16px -16px}.related-links__header{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;color:#231f20;margin:0 0 16px}.related-links__promo:after,.related-links__promo:before{clear:both;content:"";display:block}.related-links__promo__link{float:left;height:80px;width:80px}.related-links__promo__titlelink{-webkit-text-decoration-color:#e5640f;border-bottom:0;color:#231f20;font-weight:700;text-decoration:underline;text-decoration-color:#e5640f;display:block;margin-bottom:8px}.related-links__promo__titlelink:visited{color:#706d66}.related-links__promo__titlelink:focus{color:#231f20;outline:4px solid #1a9bf0}.related-links__promo__titlelink:hover{color:#e5640f;text-decoration:none}.related-links__promo__body{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;padding:0 0 0 96px}.related-links__promo p{margin:0}.related-links__list{list-style-type:none;margin:16px 0 0;padding:0}.related-links__item{margin-bottom:16px}.related-links__item:last-child{margin-bottom:0}.related-links__link-icon{display:inline-block;height:16px;margin:-2px 8px 0 0;vertical-align:middle;width:16px}.related-links__link{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;-webkit-text-decoration-color:#e5640f;border-bottom:0;color:#231f20;font-weight:700;text-decoration:underline;text-decoration-color:#e5640f}.related-links__link:visited{color:#706d66}.related-links__link:focus{color:#231f20;outline:4px solid #1a9bf0}.related-links__link:hover{color:#e5640f;text-decoration:none}.related-links__subscription{font-size:12px;font-size:.75rem;line-height:16px;line-height:1rem;text-transform:uppercase;background-color:#231f20;color:#f1f1f1;display:inline;margin-left:8px;padding:2px 4px}</style><!--[if gt IE 8]><!--></noscript><!--<![endif]--><script>if (Morph.enhanced) { Morph.styles["bbc-morph-bitesize-related-links-view/3.3.1"]=true; Morph.styleSrc.push("<style>body{font-family:Helvetica,Arial,freesans,sans-serif}.b-reith-sans-font.b-reith-sans-loaded{font-feature-settings:\"ss01\"}.b-reith-sans-font .all-subjects__btn,.b-reith-sans-font .banner__link,.b-reith-sans-font .banner__list-item,.b-reith-sans-font .banner__text,.b-reith-sans-font .context-panel-description,.b-reith-sans-font .context-panel__description,.b-reith-sans-font .dialogue__description h1,.b-reith-sans-font .global-language-selector__drawer,.b-reith-sans-font .global-language-selector__icon-yes,.b-reith-sans-font .homepage-menu-text,.b-reith-sans-font .language-selector__drawer,.b-reith-sans-font .language-selector__icon-yes,.b-reith-sans-font .phase-card__link,.b-reith-sans-font .poem h1,.b-reith-sans-font .quote__text,.b-reith-sans-font blockquote q{font-family:inherit;font-feature-settings:inherit}.b-reith-sans-font .banner__title,.b-reith-sans-font .context-panel__button,.b-reith-sans-font .context-panel__header,.b-reith-sans-font .examspec-picker__button-link,.b-reith-sans-font .examspec-picker__header,.b-reith-sans-font .highlights__title,.b-reith-sans-font .homepage__overlay--v2 .homepage-overlay__body-title,.b-reith-sans-font .homepage__phases .phase-card__subtitle,.b-reith-sans-font .homepage__strapline,.b-reith-sans-font .logo__link,.b-reith-sans-font .masthead__logo,.b-reith-sans-font .masthead__logo--dark,.b-reith-sans-font .nation-card__label,.b-reith-sans-font .phase-card__title,.b-reith-sans-font .study-guide__title,.b-reith-sans-font .super-pos-card,.b-reith-sans-font .topic__header,.b-reith-sans-font .topics__header,.b-reith-sans-font .topics__title,.b-reith-sans-font .your-subjects__all-subjects__title,.b-reith-sans-font .your-subjects__bitesize-title,.b-reith-sans-font .your-subjects__choose-title,.b-reith-sans-font .your-subjects__error-title,.b-reith-sans-font .your-subjects__idcta__title,.b-reith-sans-font .your-subjects__last-activity-title,.b-reith-sans-font .your-subjects__no-relevant-subjects__title,.b-reith-sans-font .your-subjects__set-up-subjects__title,.b-reith-sans-font .your-subjects__title,.b-reith-sans-font .your-subjects__under-thirteen__title{font-family:inherit;font-weight:700}.b-reith-sans-font .language-selector__drawer{line-height:1.2rem}.related-links-container{max-width:1008px;margin:0 auto;padding-right:8px;padding-left:8px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:16px}@media (min-width:25em){.related-links-container{padding-left:16px;padding-right:16px}}@media (min-width:37.5em){.related-links-container{margin-bottom:24px}}@media (min-width:63em){.related-links-container{margin-bottom:32px}}.related-links{background-color:#f1f1f1;color:#231f20;padding:8px}@media (min-width:25em){.related-links{padding:16px}}.related-links hr{border:1px solid #fff;margin:16px -16px}.related-links__header{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem;color:#231f20;margin:0 0 16px}@media (min-width:37.5em){.related-links__header{font-size:21px;font-size:1.3125rem;line-height:24px;line-height:1.5rem}.n-no-touchevents .related-links__header{font-size:20px;font-size:1.25rem}}.related-links__promo:after,.related-links__promo:before{clear:both;content:\"\";display:block}.related-links__promo__link{float:left;height:80px;width:80px}.related-links__promo__titlelink{-webkit-text-decoration-color:#e5640f;border-bottom:0;color:#231f20;font-weight:700;text-decoration:underline;text-decoration-color:#e5640f;display:block;margin-bottom:8px}.related-links__promo__titlelink:visited{color:#706d66}.related-links__promo__titlelink:focus{color:#231f20;outline:4px solid #1a9bf0}.related-links__promo__titlelink:hover{color:#e5640f;text-decoration:none}.related-links__promo__body{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;padding:0 0 0 96px}@media (min-width:20em){.related-links__promo__body{font-size:16px;font-size:1rem;line-height:20px;line-height:1.25rem}}@media (min-width:37.5em){.related-links__promo__body{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem}.n-no-touchevents .related-links__promo__body{font-size:16px;font-size:1rem;line-height:20px;line-height:1.25rem}}.related-links__promo p{margin:0}.related-links__list{list-style-type:none;margin:16px 0 0;padding:0}.related-links__item{margin-bottom:16px}.related-links__item:last-child{margin-bottom:0}.related-links__link-icon{display:inline-block;height:16px;margin:-2px 8px 0 0;vertical-align:middle;width:16px}.related-links__link{font-size:15px;font-size:.9375rem;line-height:20px;line-height:1.25rem;-webkit-text-decoration-color:#e5640f;border-bottom:0;color:#231f20;font-weight:700;text-decoration:underline;text-decoration-color:#e5640f}@media (min-width:20em){.related-links__link{font-size:16px;font-size:1rem;line-height:20px;line-height:1.25rem}}@media (min-width:37.5em){.related-links__link{font-size:18px;font-size:1.125rem;line-height:22px;line-height:1.375rem}.n-no-touchevents .related-links__link{font-size:16px;font-size:1rem;line-height:20px;line-height:1.25rem}}.related-links__link:visited{color:#706d66}.related-links__link:focus{color:#231f20;outline:4px solid #1a9bf0}.related-links__link:hover{color:#e5640f;text-decoration:none}.related-links__subscription{font-size:12px;font-size:.75rem;line-height:16px;line-height:1rem;text-transform:uppercase;background-color:#231f20;color:#f1f1f1;display:inline;margin-left:8px;padding:2px 4px}@media (min-width:37.5em){.related-links__subscription{font-size:13px;font-size:.8125rem}.n-no-touchevents .related-links__subscription{font-size:12px;font-size:.75rem}}</style>"); }</script><script>if (Morph.enhanced) { Morph.styles["bbc-morph-gel-icons/5.0.5"]=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(); /* u7934514225976015 */</script><script type="text/javascript"> var domain = "co.uk"; var _sf_async_config = _sf_async_config || {}; var _sf_startpt=(new Date()).getTime(); _sf_async_config.domain = "www" + ".bbc." + domain; _sf_async_config.uid = 50924; _sf_async_config.title = window.document.title; _sf_async_config.path = "bbc." + domain + window.location.pathname + ""; _sf_async_config.sections = "bitesize"; </script></head><body> <div id="cookiePrompt"></div> <noscript><p style="position: absolute; top: -999em"><img src="https://web.archive.org/web/20220121005457im_/https://a1.api.bbc.co.uk/hit.xiti?&amp;col=1&amp;from=p&amp;ptag=js&amp;s=598253&amp;p=learn::secondary::bitesize.ks3_computer_science.subjects.zvc9q6f.page&amp;x1=[urn:bbc:ldp:zvc9q6f]&amp;x2=[responsive]&amp;x3=[bbc_website]&amp;x4=[en-GB]&amp;x7=[index-category]&amp;x8=[reverb-3.3.0-nojs]&amp;x11=[BITESIZE]&amp;x12=[BITESIZE]" height="1" width="1" alt=""></p></noscript> <header id="orb-banner" role="banner" aria-label="BBC"><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/20220121005457/https://www.bbc.co.uk/" id="homepage-link">Homepage</a></div><section><div class="orb-skip-links"><h2>Accessibility links</h2><ul><li><a href="#orb-modules">Skip to content</a></li><li><a id="orb-accessibility-help" href="https://web.archive.org/web/20220121005457/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" data-bbc-container="id-cta" data-bbc-event-type="click" data-bbc-ignore-views="1" data-bbc-metadata="{&quot;id-cta-type&quot;: &quot;statusbar-orb&quot;}" data-bbc-source="responsive_web" data-bbc-title="id-cta-sign-in"><a id="idcta-link" href="https://web.archive.org/web/20220121005457/https://account.bbc.com/account"><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><!-- Because we are now loading the notification bell CSS asynchronously, we need this inline style hack to ensure that the notification div is hidden by default, and shown only if and when the bell code is loaded from notification-ui --><a id="notification-link" class="js-notification-link animated three" href="#" style="display: none"><span class="hidden-span">Notifications</span><div class="notification-link--triangle"></div><div class="notification-link--triangle"></div><span id="not-num"></span></a> </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-home"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/">Home</a></li><li class="orb-nav-news"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/news">News</a></li><li class="orb-nav-sport"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/sport">Sport</a></li><li class="orb-nav-weather"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/weather">Weather</a></li><li class="orb-nav-iplayer"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/iplayer">iPlayer</a></li><li class="orb-nav-sounds"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/sounds">Sounds</a></li><li class="orb-nav-cbbc"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/cbbc">CBBC</a></li><li class="orb-nav-cbeebies"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/cbeebies">CBeebies</a></li><li class="orb-nav-food"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/food">Food</a></li><li class="orb-nav-bitesize"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/bitesize">Bitesize</a></li><li class="orb-nav-arts"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/arts">Arts</a></li><li class="orb-nav-taster"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/taster">Taster</a></li><li class="orb-nav-local"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/news/localnews">Local</a></li><li class="orb-nav-three"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/bbcthree">Three</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/20220121005457/https://search.bbc.co.uk/search?scope=bitesize" title="Search the BBC">Search</a><form class="b-f" id="orb-search-form" role="search" method="get" action="https://web.archive.org/web/20220121005457/https://search.bbc.co.uk/search" accept-charset="utf-8"><div><input type="hidden" name="scope" value="bitesize"><label for="orb-search-q">Search the BBC</label><input id="orb-search-q" type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" maxlength="100" name="q" placeholder="Search Bitesize"><button id="orb-search-button" class="orb-search__button">Search the BBC</button><input type="hidden" name="suggid" id="orb-search-suggid"></div></form><form id="orbit-search-form" role="search" method="get" action="https://web.archive.org/web/20220121005457/https://search.bbc.co.uk/search" accept-charset="utf-8"><div><input type="hidden" name="scope" value="bitesize"><button id="orbit-search-button"><svg class="search-button-icon" width="1.75rem" height="1.8125rem" viewbox="0 0 28 29" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>Search Bitesize</title><path d="M11,0 C17.0751322,0 22,4.92486775 22,11 C22,13.5277632 21.1473793,15.8563862 19.7140404,17.7139664 L28,26.0001 L25,29.0001 L16.518046,20.5179339 C14.8960209,21.4603385 13.0110328,22 11,22 C4.92486775,22 0,17.0751322 0,11 C0,4.92486775 4.92486775,0 11,0 Z M11,2.5001 C6.30557963,2.5001 2.5,6.30567963 2.5,11.0001 C2.5,15.6945204 6.30557963,19.5001 11,19.5001 C15.6944204,19.5001 19.5,15.6945204 19.5,11.0001 C19.5,6.30567963 15.6944204,2.5001 11,2.5001 Z" id="Shape"></path></svg><svg class="search-box-icon" width="1rem" height="1rem" viewbox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M4.31263591,11.9770508 C3.26116255,10.925 2.68223368,9.52721354 2.68223368,8.04036458 C2.68223368,6.55351563 3.26116255,5.15572917 4.31325442,4.10491536 C5.36410928,3.05286458 6.76133182,2.47395833 8.24823886,2.47395833 C9.7351459,2.47395833 11.1336055,3.05348307 12.1850788,4.10491536 C14.3548251,6.27457682 14.3554436,9.80615234 12.1850788,11.9770508 C11.1336055,13.0278646 9.7351459,13.6067708 8.24823886,13.6067708 C6.76195034,13.6067708 5.36410928,13.0278646 4.31263591,11.9770508 L4.31263591,11.9770508 Z M20,17.6059245 L14.9195281,12.525651 C17.0268044,9.39980469 16.7002292,5.12171224 13.9348542,2.35520833 C12.3644478,0.785481771 10.3066526,0 8.24823886,0 C6.19106215,0 4.13264841,0.785481771 2.56347904,2.35520833 C-0.576715236,5.49589844 -0.576715236,10.5860677 2.56347904,13.7255208 C4.13326692,15.2964844 6.19106215,16.0807292 8.24823886,16.0807292 C9.81555269,16.0807292 11.3816295,15.6230469 12.733082,14.7120117 L17.8129354,19.7916667 L20,17.6059245 Z"></path></svg><span>Search Bitesize</span></button></div></form> </div></div><div id="orb-panels"></div></div></header> <!-- Styling hook for shared modules only --> <div id="orb-modules"> <div id="u8770904639335848"><noscript data-reactid=".io21sn437k" data-react-checksum="-1588391777"></noscript></div><div id="u8505836438109107"><div class="bitesize-header--pageType" data-reactid=".ar4h89a5rk" data-react-checksum="-1526443373"><div class="bitesize-header-background bitesize-header-background--phase-secondary" data-reactid=".ar4h89a5rk.0"></div><noscript data-reactid=".ar4h89a5rk.1"></noscript><div data-reactid=".ar4h89a5rk.2"><div class="global-navigation" data-reactid=".ar4h89a5rk.2.0"><header class="global-navigation__header" data-reactid=".ar4h89a5rk.2.0.0"><div class="global-navigation__header__wrap" data-reactid=".ar4h89a5rk.2.0.0.0"><span class="global-navigation__header__logo" tabindex="-1" data-reactid=".ar4h89a5rk.2.0.0.0.0"><a class="global-navigation__header__logo__link--animate global-navigation__header__logo__link--delay-animation global-navigation__header__logo__link global-navigation__header__logo__link--phase-secondary" href="/web/20220121005457/https://www.bbc.co.uk/bitesize" data-reactid=".ar4h89a5rk.2.0.0.0.0.0">Bitesize</a></span><button type="button" data-bbc-container="global-navigation" data-bbc-title="AllBitesize" data-bbc-ignore-views="1" data-bbc-result="expand-menu/collapse-menu" class="global-navigation__header__menu-button" aria-label="Open menu" data-reactid=".ar4h89a5rk.2.0.0.0.1"><i class="gel-icon gel-icon--list-view global-navigation__header__menu-button__list-view" data-reactid=".ar4h89a5rk.2.0.0.0.1.0"><svg width="32" height="32" viewbox="0 0 32 32" data-reactid=".ar4h89a5rk.2.0.0.0.1.0.0"><path d="M0 0v8h32V0zM0 17v3h32v-8H0zM0 29v3h32v-8H0z" data-reactid=".ar4h89a5rk.2.0.0.0.1.0.0.0"></path></svg></i><span class="global-navigation__header__menu-button__text" data-reactid=".ar4h89a5rk.2.0.0.0.1.1">All Bitesize</span></button><div class="global-navigation__mobile-nav" data-reactid=".ar4h89a5rk.2.0.0.0.2"></div></div></header><nav class="global-navigation__primary-nav" data-reactid=".ar4h89a5rk.2.0.1"><div class="global-navigation__primary-nav__wrap" data-reactid=".ar4h89a5rk.2.0.1.0"><div class="global-language-selector" data-reactid=".ar4h89a5rk.2.0.1.0.0"><button type="button" class="global-language-selector__drawer global-language-selector__drawer--closed" data-reactid=".ar4h89a5rk.2.0.1.0.0.0"><span class="global-language-selector__drawer-text" data-reactid=".ar4h89a5rk.2.0.1.0.0.0.0">Change language</span></button><div class="global-language-selector__container global-language-selector__container--hidden" data-reactid=".ar4h89a5rk.2.0.1.0.0.1"><ol class="global-language-selector__list" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0"><li class="global-language-selector__language global-language-selector__language--selected" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.0"><button type="button" tabindex="0" lang="en-GB" class="global-language-selector__language-link" aria-label="English, selected" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.0.0"><span class="global-language-selector__language-label" lang="en-GB" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.0.0.0">English</span><span class="global-language-selector__icon-yes gel-icon gel-icon--yes" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.0.0.1"><svg class="bitesize-yes-svg" version="1.1" x="0px" y="0px" width="31.8px" height="32px" viewbox="0 0 31.8 32" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.0.0.1.0"><polygon points="12.8,28.9 31.8,6.3 28,3.1 12.2,21.9 3.2,14.4 0,18.2 " data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.0.0.1.0.0"></polygon></svg></span></button></li><li class="global-language-selector__language" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.1:$cy-GB"><button type="button" tabindex="0" lang="cy-GB" class="global-language-selector__language-link" aria-label="Cymraeg" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.1:$cy-GB.0"><span class="global-language-selector__language-label" lang="cy-GB" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.1:$cy-GB.0.0">Cymraeg</span></button></li><li class="global-language-selector__language" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.1:$ga-GB"><button type="button" tabindex="0" lang="ga-GB" class="global-language-selector__language-link" aria-label="Gaeilge" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.1:$ga-GB.0"><span class="global-language-selector__language-label" lang="ga-GB" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.1:$ga-GB.0.0">Gaeilge</span></button></li><li class="global-language-selector__language" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.1:$gd-GB"><button type="button" tabindex="0" lang="gd-GB" class="global-language-selector__language-link" aria-label="Gàidhlig" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.1:$gd-GB.0"><span class="global-language-selector__language-label" lang="gd-GB" data-reactid=".ar4h89a5rk.2.0.1.0.0.1.0.1:$gd-GB.0.0">Gàidhlig</span></button></li></ol></div></div><ul class="global-navigation__list" data-reactid=".ar4h89a5rk.2.0.1.0.1"><li class="global-navigation__list__item" data-reactid=".ar4h89a5rk.2.0.1.0.1.0:$home"><a class="global-navigation__list__link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize" data-bbc-container="global-navigation" data-bbc-title="Home" data-bbc-ignore-views="1" data-bbc-result="/bitesize" data-reactid=".ar4h89a5rk.2.0.1.0.1.0:$home.0"><span class="global-navigation__list__link-text" data-reactid=".ar4h89a5rk.2.0.1.0.1.0:$home.0.0">Home</span></a></li><li class="global-navigation__list__item" data-reactid=".ar4h89a5rk.2.0.1.0.1.0:$learn"><a class="global-navigation__list__link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/learn" data-bbc-container="global-navigation" data-bbc-title="Learn" data-bbc-ignore-views="1" data-bbc-result="/bitesize/learn" data-reactid=".ar4h89a5rk.2.0.1.0.1.0:$learn.0"><span class="global-navigation__list__link-text" data-reactid=".ar4h89a5rk.2.0.1.0.1.0:$learn.0.0">Learn</span></a></li><li class="global-navigation__list__item" data-reactid=".ar4h89a5rk.2.0.1.0.1.0:$support"><a class="global-navigation__list__link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/support" data-bbc-container="global-navigation" data-bbc-title="Support" data-bbc-ignore-views="1" data-bbc-result="/bitesize/support" data-reactid=".ar4h89a5rk.2.0.1.0.1.0:$support.0"><span class="global-navigation__list__link-text" data-reactid=".ar4h89a5rk.2.0.1.0.1.0:$support.0.0">Support</span></a></li><li class="global-navigation__list__item" data-reactid=".ar4h89a5rk.2.0.1.0.1.0:$careers"><a class="global-navigation__list__link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/careers" data-bbc-container="global-navigation" data-bbc-title="Careers" data-bbc-ignore-views="1" data-bbc-result="/bitesize/careers" data-reactid=".ar4h89a5rk.2.0.1.0.1.0:$careers.0"><span class="global-navigation__list__link-text" data-reactid=".ar4h89a5rk.2.0.1.0.1.0:$careers.0.0">Careers</span></a></li><li data-reactid=".ar4h89a5rk.2.0.1.0.1.1"><ul class="global-navigation__list__items--pinned" data-reactid=".ar4h89a5rk.2.0.1.0.1.1.0"><li class="global-navigation__list__item" data-reactid=".ar4h89a5rk.2.0.1.0.1.1.0.$my-bitesize"><a class="global-navigation__list__link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/my" data-bbc-container="global-navigation" data-bbc-title="MyBitesize" data-bbc-ignore-views="1" data-bbc-result="/bitesize/my" data-reactid=".ar4h89a5rk.2.0.1.0.1.1.0.$my-bitesize.0"><span class="global-navigation__list__link-my-bitesize" data-reactid=".ar4h89a5rk.2.0.1.0.1.1.0.$my-bitesize.0.0">My Bitesize</span></a></li><li class="global-navigation__list__item global-navigation__list__item--pinned global-navigation__list__item--all-bitesize" data-reactid=".ar4h89a5rk.2.0.1.0.1.1.0.$all-bitesize"><button type="button" data-bbc-container="global-navigation" data-bbc-title="AllBitesize" data-bbc-ignore-views="1" data-bbc-result="expanded-menu" class="global-navigation__list__link--button global-navigation__list__link--button--pinned" aria-live="polite" aria-label="Menu button, this menu is closed" data-reactid=".ar4h89a5rk.2.0.1.0.1.1.0.$all-bitesize.0"><span class="gel-icon gel-icon--list-view" data-reactid=".ar4h89a5rk.2.0.1.0.1.1.0.$all-bitesize.0.0"><svg width="32" height="32" viewbox="0 0 32 32" data-reactid=".ar4h89a5rk.2.0.1.0.1.1.0.$all-bitesize.0.0.0"><path d="M0 0v8h32V0zM0 17v3h32v-8H0zM0 29v3h32v-8H0z" data-reactid=".ar4h89a5rk.2.0.1.0.1.1.0.$all-bitesize.0.0.0.0"></path></svg></span><span class="global-navigation__list__link-text" data-reactid=".ar4h89a5rk.2.0.1.0.1.1.0.$all-bitesize.0.1">All Bitesize</span></button></li></ul></li></ul></div></nav></div><div class="header-image-container header-image-container--zft3d2p header-image-no-logo" aria-hidden="false" data-reactid=".ar4h89a5rk.2.1"><div class="header-image-container__wrap" data-reactid=".ar4h89a5rk.2.1.0"><header class="context-panel context-panel--partial-width" data-reactid=".ar4h89a5rk.2.1.0.1"><div class="level-filter" data-reactid=".ar4h89a5rk.2.1.0.1.0"><div class="level-filter__items" data-reactid=".ar4h89a5rk.2.1.0.1.0.0"><div class="level-filter__item" data-reactid=".ar4h89a5rk.2.1.0.1.0.0.0"><a class="level-filter__item-level" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/levels/z4kw2hv" data-bbc-container="context-navigation" data-bbc-metadata="{&quot;CHD&quot;:&quot;level&quot;}" data-reactid=".ar4h89a5rk.2.1.0.1.0.0.0.0">KS3</a></div><span data-reactid=".ar4h89a5rk.2.1.0.1.0.0.1"></span></div></div><div data-reactid=".ar4h89a5rk.2.1.0.1.1"><div class="context-panel__header-container" data-reactid=".ar4h89a5rk.2.1.0.1.1.0"><h1 class="context-panel__header" data-reactid=".ar4h89a5rk.2.1.0.1.1.0.1">Computer Science</h1></div><div class="context-panel__description-container" data-reactid=".ar4h89a5rk.2.1.0.1.1.1"><p class="context-panel__description" data-reactid=".ar4h89a5rk.2.1.0.1.1.1.0"> </p></div><span data-reactid=".ar4h89a5rk.2.1.0.1.1.2"></span><div class="context-label" data-reactid=".ar4h89a5rk.2.1.0.1.1.3"><div class="context-label__title" data-reactid=".ar4h89a5rk.2.1.0.1.1.3.0">Part of</div><div class="context-label__items" data-reactid=".ar4h89a5rk.2.1.0.1.1.3.1"><div class="context-label__item" data-reactid=".ar4h89a5rk.2.1.0.1.1.3.1.0"><a class="context-label__item-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/learn" data-bbc-container="context-navigation" data-bbc-metadata="{&quot;CHD&quot;:&quot;part-of-section&quot;}" data-reactid=".ar4h89a5rk.2.1.0.1.1.3.1.0.0">Learn &amp; revise</a></div></div></div><noscript data-reactid=".ar4h89a5rk.2.1.0.1.1.6"></noscript></div></header><span class="" data-reactid=".ar4h89a5rk.2.1.0.2"><span class="bitesize-header__subject-illustration--partial-width" style="background-image:url(https://web.archive.org/web/20220121005457im_/https://bitesize.files.bbci.co.uk/images/svgs/subjects/v2/secondary/zft3d2p.svg);" data-reactid=".ar4h89a5rk.2.1.0.2.0"></span></span></div></div></div></div></div><div id="u5211958471397782"><noscript data-reactid=".27sh34tqbxs" data-react-checksum="-1234366121"></noscript></div><div id="u4674157445950287"><div data-reactid=".xfuhtsrtl4" data-react-checksum="118689092"></div></div><div id="u3938382590684688"><div class="topics" data-reactid=".19hn0clolve" data-react-checksum="229121894"><h2 class="topics__title" data-reactid=".19hn0clolve.0">Topics</h2><section class="topic" data-reactid=".19hn0clolve.1:$topic-z7tp34j"><a class="topic__header" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/topics/z7tp34j" data-reactid=".19hn0clolve.1:$topic-z7tp34j.0"><h3 class="topic__header-text" data-reactid=".19hn0clolve.1:$topic-z7tp34j.0.0">Computational thinking</h3></a><div class="topic__content" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1"><div data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0"><div class="topic__learner-guides" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0"><ul class="topic__learner-guides-list" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0"><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zp92mp3"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zp92mp3/revision/1" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zp92mp3.0"><div data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zp92mp3.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zp92mp3.0.0.0">Introduction to computational thinking</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zqqfyrd"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zqqfyrd/revision/1" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zqqfyrd.0"><div data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zqqfyrd.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zqqfyrd.0.0.0">Decomposition</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zxxbgk7"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zxxbgk7/revision/1" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zxxbgk7.0"><div data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zxxbgk7.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zxxbgk7.0.0.0">Pattern recognition</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zttrcdm"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zttrcdm/revision/1" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zttrcdm.0"><div data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zttrcdm.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zttrcdm.0.0.0">Abstraction</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zpp49j6"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zpp49j6/revision/1" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zpp49j6.0"><div data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zpp49j6.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zpp49j6.0.0.0">Algorithms</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zssk87h"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zssk87h/revision/1" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zssk87h.0"><div data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zssk87h.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.0.0.$zssk87h.0.0.0">Evaluating solutions</div></div></a></li></ul></div><a class="topic__class-clips" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/topics/z7tp34j/resources/1" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.1"><svg width="32" height="32" viewbox="0 0 32 32" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.1.0"><path d="M3 32l26-16L3 0" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.1.0.0"></path></svg><div class="topic__class-clips-text" data-reactid=".19hn0clolve.1:$topic-z7tp34j.1.0.1.1">1 Classroom video</div></a></div></div></section><section class="topic" data-reactid=".19hn0clolve.1:$topic-z7d634j"><a class="topic__header" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/topics/z7d634j" data-reactid=".19hn0clolve.1:$topic-z7d634j.0"><h3 class="topic__header-text" data-reactid=".19hn0clolve.1:$topic-z7d634j.0.0">Algorithms</h3></a><div class="topic__content" data-reactid=".19hn0clolve.1:$topic-z7d634j.1"><div data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0"><div class="topic__learner-guides" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0"><ul class="topic__learner-guides-list" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0"><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$z3bq7ty"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/z3bq7ty/revision/1" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$z3bq7ty.0"><div data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$z3bq7ty.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$z3bq7ty.0.0.0">Designing an algorithm</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zgr2mp3"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zgr2mp3/revision/1" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zgr2mp3.0"><div data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zgr2mp3.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zgr2mp3.0.0.0">Searching</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$z2m3b9q"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/z2m3b9q/revision/1" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$z2m3b9q.0"><div data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$z2m3b9q.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$z2m3b9q.0.0.0">Sorting</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zsf8d2p"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zsf8d2p/revision/1" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zsf8d2p.0"><div data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zsf8d2p.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zsf8d2p.0.0.0">Sequencing</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zy3q7ty"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zy3q7ty/revision/1" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zy3q7ty.0"><div data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zy3q7ty.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zy3q7ty.0.0.0">Selection</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zg46tfr"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zg46tfr/revision/1" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zg46tfr.0"><div data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zg46tfr.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$zg46tfr.0.0.0">Iteration</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$z8jfyrd"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/z8jfyrd/revision/1" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$z8jfyrd.0"><div data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$z8jfyrd.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.0.0.$z8jfyrd.0.0.0">Logical reasoning</div></div></a></li></ul></div><a class="topic__class-clips" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/topics/z7d634j/resources/1" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.1"><svg width="32" height="32" viewbox="0 0 32 32" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.1.0"><path d="M3 32l26-16L3 0" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.1.0.0"></path></svg><div class="topic__class-clips-text" data-reactid=".19hn0clolve.1:$topic-z7d634j.1.0.1.1">3 Classroom videos</div></a></div></div></section><section class="topic" data-reactid=".19hn0clolve.1:$topic-zhy39j6"><a class="topic__header" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/topics/zhy39j6" data-reactid=".19hn0clolve.1:$topic-zhy39j6.0"><h3 class="topic__header-text" data-reactid=".19hn0clolve.1:$topic-zhy39j6.0.0">Programming</h3></a><div class="topic__content" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1"><div data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0"><div class="topic__learner-guides" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0"><ul class="topic__learner-guides-list" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0"><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zts8d2p"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zts8d2p/revision/1" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zts8d2p.0"><div data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zts8d2p.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zts8d2p.0.0.0">Introduction to programming</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zwmbgk7"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zwmbgk7/revision/1" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zwmbgk7.0"><div data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zwmbgk7.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zwmbgk7.0.0.0">Programming basics</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$z2p9kqt"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/z2p9kqt/revision/1" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$z2p9kqt.0"><div data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$z2p9kqt.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$z2p9kqt.0.0.0">Selection in programming</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$z3khpv4"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/z3khpv4/revision/1" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$z3khpv4.0"><div data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$z3khpv4.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$z3khpv4.0.0.0">Iteration in programming</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zqp9kqt"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zqp9kqt/revision/1" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zqp9kqt.0"><div data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zqp9kqt.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zqp9kqt.0.0.0">Boolean logic</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zy9thyc"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zy9thyc/revision/1" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zy9thyc.0"><div data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zy9thyc.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zy9thyc.0.0.0">Arrays and lists</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zqh49j6"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zqh49j6/revision/1" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zqh49j6.0"><div data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zqh49j6.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zqh49j6.0.0.0">Procedures and functions</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zcjfyrd"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zcjfyrd/revision/1" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zcjfyrd.0"><div data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zcjfyrd.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.0.0.$zcjfyrd.0.0.0">Writing error-free code</div></div></a></li></ul></div><a class="topic__class-clips" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/topics/zhy39j6/resources/1" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.1"><svg width="32" height="32" viewbox="0 0 32 32" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.1.0"><path d="M3 32l26-16L3 0" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.1.0.0"></path></svg><div class="topic__class-clips-text" data-reactid=".19hn0clolve.1:$topic-zhy39j6.1.0.1.1">6 Classroom videos</div></a></div></div></section><section class="topic" data-reactid=".19hn0clolve.1:$topic-zxnfr82"><a class="topic__header" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/topics/zxnfr82" data-reactid=".19hn0clolve.1:$topic-zxnfr82.0"><h3 class="topic__header-text" data-reactid=".19hn0clolve.1:$topic-zxnfr82.0.0">Data representation</h3></a><div class="topic__content" data-reactid=".19hn0clolve.1:$topic-zxnfr82.1"><div data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0"><div class="topic__learner-guides" data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.0"><ul class="topic__learner-guides-list" data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.0.0"><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.0.0.$z26rcdm"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/z26rcdm/revision/1" data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.0.0.$z26rcdm.0"><div data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.0.0.$z26rcdm.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.0.0.$z26rcdm.0.0.0">Binary</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.0.0.$zpfdwmn"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zpfdwmn/revision/1" data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.0.0.$zpfdwmn.0"><div data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.0.0.$zpfdwmn.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.0.0.$zpfdwmn.0.0.0">Representing text, images and sound</div></div></a></li></ul></div><a class="topic__class-clips" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/topics/zxnfr82/resources/1" data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.1"><svg width="32" height="32" viewbox="0 0 32 32" data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.1.0"><path d="M3 32l26-16L3 0" data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.1.0.0"></path></svg><div class="topic__class-clips-text" data-reactid=".19hn0clolve.1:$topic-zxnfr82.1.0.1.1">4 Classroom videos</div></a></div></div></section><section class="topic" data-reactid=".19hn0clolve.1:$topic-zmpsgk7"><a class="topic__header" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/topics/zmpsgk7" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.0"><h3 class="topic__header-text" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.0.0">Hardware and software</h3></a><div class="topic__content" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1"><div data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0"><div class="topic__learner-guides" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0"><ul class="topic__learner-guides-list" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0"><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zxb72hv"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zxb72hv/revision/1" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zxb72hv.0"><div data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zxb72hv.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zxb72hv.0.0.0">Digital devices</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zcxgr82"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zcxgr82/revision/1" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zcxgr82.0"><div data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zcxgr82.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zcxgr82.0.0.0">Software </div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zws8d2p"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zws8d2p/revision/1" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zws8d2p.0"><div data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zws8d2p.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zws8d2p.0.0.0">The CPU and the fetch-execute cycle</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zc6rcdm"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zc6rcdm/revision/1" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zc6rcdm.0"><div data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zc6rcdm.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.0.0.$zc6rcdm.0.0.0">Introduction to networks</div></div></a></li></ul></div><a class="topic__class-clips" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/topics/zmpsgk7/resources/1" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.1"><svg width="32" height="32" viewbox="0 0 32 32" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.1.0"><path d="M3 32l26-16L3 0" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.1.0.0"></path></svg><div class="topic__class-clips-text" data-reactid=".19hn0clolve.1:$topic-zmpsgk7.1.0.1.1">3 Classroom videos</div></a></div></div></section><section class="topic" data-reactid=".19hn0clolve.1:$topic-z6sycdm"><a class="topic__header" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/topics/z6sycdm" data-reactid=".19hn0clolve.1:$topic-z6sycdm.0"><h3 class="topic__header-text" data-reactid=".19hn0clolve.1:$topic-z6sycdm.0.0">Internet communication</h3></a><div class="topic__content" data-reactid=".19hn0clolve.1:$topic-z6sycdm.1"><div data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0"><div class="topic__learner-guides" data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.0"><ul class="topic__learner-guides-list" data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.0.0"><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.0.0.$z8nk87h"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/z8nk87h/revision/1" data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.0.0.$z8nk87h.0"><div data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.0.0.$z8nk87h.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.0.0.$z8nk87h.0.0.0">Internet and communication</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.0.0.$zpkhpv4"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/zpkhpv4/revision/1" data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.0.0.$zpkhpv4.0"><div data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.0.0.$zpkhpv4.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.0.0.$zpkhpv4.0.0.0">Search engines</div></div></a></li></ul></div><a class="topic__class-clips" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/topics/z6sycdm/resources/1" data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.1"><svg width="32" height="32" viewbox="0 0 32 32" data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.1.0"><path d="M3 32l26-16L3 0" data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.1.0.0"></path></svg><div class="topic__class-clips-text" data-reactid=".19hn0clolve.1:$topic-z6sycdm.1.0.1.1">1 Classroom video</div></a></div></div></section><section class="topic" data-reactid=".19hn0clolve.1:$topic-z67ncdm"><a class="topic__header" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/topics/z67ncdm" data-reactid=".19hn0clolve.1:$topic-z67ncdm.0"><h3 class="topic__header-text" data-reactid=".19hn0clolve.1:$topic-z67ncdm.0.0">Safety and responsibility</h3></a><div class="topic__content" data-reactid=".19hn0clolve.1:$topic-z67ncdm.1"><div data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0"><div class="topic__learner-guides" data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0"><ul class="topic__learner-guides-list" data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0.0"><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0.0.$z9p9kqt"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/z9p9kqt/revision/1" data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0.0.$z9p9kqt.0"><div data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0.0.$z9p9kqt.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0.0.$z9p9kqt.0.0.0">Online safety</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0.0.$z2g2mp3"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/z2g2mp3/revision/1" data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0.0.$z2g2mp3.0"><div data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0.0.$z2g2mp3.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0.0.$z2g2mp3.0.0.0">Bias and reliability</div></div></a></li><li class="topic__learner-guide topic__subitem" data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0.0.$z9nk87h"><a class="topic__subitem-link" href="/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/z9nk87h/revision/1" data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0.0.$z9nk87h.0"><div data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0.0.$z9nk87h.0.0"><div class="topic__subitem-label" data-reactid=".19hn0clolve.1:$topic-z67ncdm.1.0.0.0.$z9nk87h.0.0.0">The law and ethics</div></div></a></li></ul></div></div></div></section></div></div><div id="u7934514225976015"><div class="related-links-wrapper" data-reactid=".157bfcv55ww" data-react-checksum="1021481119"><div class="related-links-container" data-reactid=".157bfcv55ww.0"><div class="related-links" data-reactid=".157bfcv55ww.0.0"><h2 class="related-links__header" data-reactid=".157bfcv55ww.0.0.0">Links</h2><ul class="related-links__list related-links__list--internal" data-reactid=".157bfcv55ww.0.0.2"><li class="related-links__item" data-bbc-container="internal-links" data-bbc-metadata="{&quot;EXT&quot;:false}" data-bbc-title="BBC Click" data-reactid=".157bfcv55ww.0.0.2.$http=2//www=1bbc=1co=1uk/programmes/b006m9ry"><a href="https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/programmes/b006m9ry" class="related-links__link" data-reactid=".157bfcv55ww.0.0.2.$http=2//www=1bbc=1co=1uk/programmes/b006m9ry.0">BBC Click</a></li><li class="related-links__item" data-bbc-container="internal-links" data-bbc-metadata="{&quot;EXT&quot;:false}" data-bbc-title="BBC Webwise" data-reactid=".157bfcv55ww.0.0.2.$http=2//www=1bbc=1co=1uk/webwise/0/"><a href="https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/webwise/0/" class="related-links__link" data-reactid=".157bfcv55ww.0.0.2.$http=2//www=1bbc=1co=1uk/webwise/0/.0">BBC Webwise</a></li><li class="related-links__item" data-bbc-container="internal-links" data-bbc-metadata="{&quot;EXT&quot;:false}" data-bbc-title="BBC Technology news" data-reactid=".157bfcv55ww.0.0.2.$http=2//www=1bbc=1co=1uk/news/technology/"><a href="https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/news/technology/" class="related-links__link" data-reactid=".157bfcv55ww.0.0.2.$http=2//www=1bbc=1co=1uk/news/technology/.0">BBC Technology news</a></li><li class="related-links__item" data-bbc-container="internal-links" data-bbc-metadata="{&quot;EXT&quot;:false}" data-bbc-title="Let's Talk About Tech" data-reactid=".157bfcv55ww.0.0.2.$http=2//www=1bbc=1co=1uk/podcasts/series/jot"><a href="https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/podcasts/series/jot" class="related-links__link" data-reactid=".157bfcv55ww.0.0.2.$http=2//www=1bbc=1co=1uk/podcasts/series/jot.0">Let&#x27;s Talk About Tech</a></li></ul><hr data-reactid=".157bfcv55ww.0.0.3"/><ul class="related-links__list related-links__list--external" data-reactid=".157bfcv55ww.0.0.4"><li class="related-links__item" data-bbc-container="external-links" data-bbc-metadata="{&quot;EXT&quot;:true}" data-bbc-title="Headsqueeze" data-reactid=".157bfcv55ww.0.0.4.$http=2//www=1youtube=1com/watch?v=0vvPDRp3x620"><a href="https://web.archive.org/web/20220121005457/http://www.youtube.com/watch?v=vvPDRp3x620" class="related-links__link" data-reactid=".157bfcv55ww.0.0.4.$http=2//www=1youtube=1com/watch?v=0vvPDRp3x620.0"><div class="gel-icon gel-icon--external-link related-links__link-icon" data-reactid=".157bfcv55ww.0.0.4.$http=2//www=1youtube=1com/watch?v=0vvPDRp3x620.0.0"><svg viewbox="0 0 32 32" data-reactid=".157bfcv55ww.0.0.4.$http=2//www=1youtube=1com/watch?v=0vvPDRp3x620.0.0.0"><title data-reactid=".157bfcv55ww.0.0.4.$http=2//www=1youtube=1com/watch?v=0vvPDRp3x620.0.0.0.0">external-link</title><path d="M12 0v5h11.5l-5 5H0v22h22V17.5l-2 2V30H2V12h14.5l-7.8 7.7 3.6 3.6L27 8.5V20h5V0H12z" data-reactid=".157bfcv55ww.0.0.4.$http=2//www=1youtube=1com/watch?v=0vvPDRp3x620.0.0.0.1"></path></svg></div><span class="related-links__link-title" data-reactid=".157bfcv55ww.0.0.4.$http=2//www=1youtube=1com/watch?v=0vvPDRp3x620.0.1">Headsqueeze</span></a></li><li class="related-links__item" data-bbc-container="external-links" data-bbc-metadata="{&quot;EXT&quot;:true}" data-bbc-title="Khan Academy" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1khanacademy=1org/cs"><a href="https://web.archive.org/web/20220121005457/https://www.khanacademy.org/cs" class="related-links__link" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1khanacademy=1org/cs.0"><div class="gel-icon gel-icon--external-link related-links__link-icon" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1khanacademy=1org/cs.0.0"><svg viewbox="0 0 32 32" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1khanacademy=1org/cs.0.0.0"><title data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1khanacademy=1org/cs.0.0.0.0">external-link</title><path d="M12 0v5h11.5l-5 5H0v22h22V17.5l-2 2V30H2V12h14.5l-7.8 7.7 3.6 3.6L27 8.5V20h5V0H12z" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1khanacademy=1org/cs.0.0.0.1"></path></svg></div><span class="related-links__link-title" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1khanacademy=1org/cs.0.1">Khan Academy</span></a></li><li class="related-links__item" data-bbc-container="external-links" data-bbc-metadata="{&quot;EXT&quot;:true}" data-bbc-title="Raspberry Pi" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1raspberrypi=1org/resources/"><a href="https://web.archive.org/web/20220121005457/https://www.raspberrypi.org/resources/" class="related-links__link" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1raspberrypi=1org/resources/.0"><div class="gel-icon gel-icon--external-link related-links__link-icon" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1raspberrypi=1org/resources/.0.0"><svg viewbox="0 0 32 32" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1raspberrypi=1org/resources/.0.0.0"><title data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1raspberrypi=1org/resources/.0.0.0.0">external-link</title><path d="M12 0v5h11.5l-5 5H0v22h22V17.5l-2 2V30H2V12h14.5l-7.8 7.7 3.6 3.6L27 8.5V20h5V0H12z" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1raspberrypi=1org/resources/.0.0.0.1"></path></svg></div><span class="related-links__link-title" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1raspberrypi=1org/resources/.0.1">Raspberry Pi</span></a></li><li class="related-links__item" data-bbc-container="external-links" data-bbc-metadata="{&quot;EXT&quot;:true}" data-bbc-title="Code Club" data-reactid=".157bfcv55ww.0.0.4.$https=2//codeclubprojects=1org/en-GB/"><a href="https://web.archive.org/web/20220121005457/https://codeclubprojects.org/en-GB/" class="related-links__link" data-reactid=".157bfcv55ww.0.0.4.$https=2//codeclubprojects=1org/en-GB/.0"><div class="gel-icon gel-icon--external-link related-links__link-icon" data-reactid=".157bfcv55ww.0.0.4.$https=2//codeclubprojects=1org/en-GB/.0.0"><svg viewbox="0 0 32 32" data-reactid=".157bfcv55ww.0.0.4.$https=2//codeclubprojects=1org/en-GB/.0.0.0"><title data-reactid=".157bfcv55ww.0.0.4.$https=2//codeclubprojects=1org/en-GB/.0.0.0.0">external-link</title><path d="M12 0v5h11.5l-5 5H0v22h22V17.5l-2 2V30H2V12h14.5l-7.8 7.7 3.6 3.6L27 8.5V20h5V0H12z" data-reactid=".157bfcv55ww.0.0.4.$https=2//codeclubprojects=1org/en-GB/.0.0.0.1"></path></svg></div><span class="related-links__link-title" data-reactid=".157bfcv55ww.0.0.4.$https=2//codeclubprojects=1org/en-GB/.0.1">Code Club</span></a><span class="related-links__subscription" data-reactid=".157bfcv55ww.0.0.4.$https=2//codeclubprojects=1org/en-GB/.1">SUBSCRIPTION</span></li><li class="related-links__item" data-bbc-container="external-links" data-bbc-metadata="{&quot;EXT&quot;:true}" data-bbc-title="Educational App Store" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1educationalappstore=1com/app/category/computer-science-apps"><a href="https://web.archive.org/web/20220121005457/https://www.educationalappstore.com/app/category/computer-science-apps" class="related-links__link" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1educationalappstore=1com/app/category/computer-science-apps.0"><div class="gel-icon gel-icon--external-link related-links__link-icon" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1educationalappstore=1com/app/category/computer-science-apps.0.0"><svg viewbox="0 0 32 32" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1educationalappstore=1com/app/category/computer-science-apps.0.0.0"><title data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1educationalappstore=1com/app/category/computer-science-apps.0.0.0.0">external-link</title><path d="M12 0v5h11.5l-5 5H0v22h22V17.5l-2 2V30H2V12h14.5l-7.8 7.7 3.6 3.6L27 8.5V20h5V0H12z" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1educationalappstore=1com/app/category/computer-science-apps.0.0.0.1"></path></svg></div><span class="related-links__link-title" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1educationalappstore=1com/app/category/computer-science-apps.0.1">Educational App Store</span></a><span class="related-links__subscription" data-reactid=".157bfcv55ww.0.0.4.$https=2//www=1educationalappstore=1com/app/category/computer-science-apps.1">SUBSCRIPTION</span></li></ul></div></div></div></div> </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-home"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/">Home</a></li><li class="orb-nav-news"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/news">News</a></li><li class="orb-nav-sport"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/sport">Sport</a></li><li class="orb-nav-weather"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/weather">Weather</a></li><li class="orb-nav-iplayer"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/iplayer">iPlayer</a></li><li class="orb-nav-sounds"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/sounds">Sounds</a></li><li class="orb-nav-cbbc"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/cbbc">CBBC</a></li><li class="orb-nav-cbeebies"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/cbeebies">CBeebies</a></li><li class="orb-nav-food"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/food">Food</a></li><li class="orb-nav-bitesize"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/bitesize">Bitesize</a></li><li class="orb-nav-arts"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/arts">Arts</a></li><li class="orb-nav-taster"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/taster">Taster</a></li><li class="orb-nav-local"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/news/localnews">Local</a></li><li class="orb-nav-three"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/bbcthree">Three</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 = window.orb || {}; window.orb.worldwideFooterlinks = '<li class="orb-footer-ads"><a href="https://web.archive.org/web/20220121005457/https://www.bbcglobalnews.com/">Advertise with us<' + '/a><' + '/li><li class="orb-footer-adchoices"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.com/usingthebbc/cookies/how-does-the-bbc-use-cookies-for-advertising/">AdChoices / Do Not Sell My Info<' + '/a><' + '/li>';</script><div class="orb-footer-inner"><div><ul><li class="orb-footer-terms"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/usingthebbc/terms/">Terms of Use</a></li><li class="orb-footer-about"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/aboutthebbc">About the BBC</a></li><li class="orb-footer-privacy"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/usingthebbc/privacy/">Privacy Policy</a></li><li class="orb-footer-cookies"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/usingthebbc/cookies/">Cookies</a></li><li class="orb-footer-accessibility"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/accessibility/">Accessibility Help</a></li><li class="orb-footer-parental"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/guidance">Parental Guidance</a></li><li class="orb-footer-contact"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/contact">Contact the BBC</a></li><li class="orb-footer-newsletter"><a href="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/bbcnewsletter">Get Personalised Newsletters</a></li></ul><small><em class="orb-hilight">Copyright &copy; 2022 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/20220121005457/https://www.bbc.co.uk/editorialguidelines/guidance/feeds-and-links" class="orb-hilight">Read about our approach to external linking.</a></span></small></div></div></div></footer></div><script type="text/javascript" src="https://web.archive.org/web/20220121005457js_/https://static.files.bbci.co.uk/orbit/7e4d464d9adf1a097178544b394185aa/js/redirect.bundle.js" async=""></script><script type="text/javascript" src="https://web.archive.org/web/20220121005457js_/https://static.files.bbci.co.uk/orbit/7e4d464d9adf1a097178544b394185aa/js/performance.bundle.js" data-release="3.0.0-1793.30aeea88" data-ux="orb" data-reqjs="" async=""></script><script id="orb-js-script" data-assetpath="https://static.files.bbci.co.uk/orbit/7e4d464d9adf1a097178544b394185aa/" src="https://web.archive.org/web/20220121005457js_/https://static.files.bbci.co.uk/orbit/7e4d464d9adf1a097178544b394185aa/js/orb.min.js"></script><script type="module" src="https://web.archive.org/web/20220121005457jm_/https://static.files.bbci.co.uk/orbit/7e4d464d9adf1a097178544b394185aa/js/orbit.js" async=""></script><script nomodule="" type="text/javascript" src="https://web.archive.org/web/20220121005457js_/https://static.files.bbci.co.uk/orbit/7e4d464d9adf1a097178544b394185aa/js/legacyOrbit.js" async=""></script> <script type="text/javascript">/*<![CDATA[*/ require(['orb/nav'], function(nav) { window.bbcuser.isUKCombined().then(function(isUK) { if (isUK) { nav.loadJs('https://web.archive.org/web/20220121005457/https://static.files.bbci.co.uk/orbit/7e4d464d9adf1a097178544b394185aa/js/edr.min.js'); } }); }); /*]]>*/</script> <script type="text/javascript">require.config({ paths: { "mybbc/templates": '//web.archive.org/web/20220121005457/https://mybbc.files.bbci.co.uk/notification-ui/4.3.7/templates', "mybbc/notifications": '//web.archive.org/web/20220121005457/https://mybbc.files.bbci.co.uk/notification-ui/4.3.7/js' } }); require(['mybbc/notifications/NotificationsMain', 'idcta/idcta-1'], function (NotificationsMain, idcta) { var loadNotifications = function (isUK) { if (isUK) { window.bbcpage.loadCSS('//web.archive.org/web/20220121005457/https://mybbc.files.bbci.co.uk/notification-ui/4.3.7/css/main.min.css').then(function() { NotificationsMain.run(idcta, '//web.archive.org/web/20220121005457/https://mybbc.files.bbci.co.uk/notification-ui/4.3.7/'); }); } }; window.bbcuser.isUKCombined().then(function(isUK) { loadNotifications(isUK); }); });</script> <script type="module">if (window.bbcuser && window.bbcuser.isUKCombined) { bbcuser.isUKCombined().then(function (isUK) { if (isUK) { const isOrbUx = !!document.querySelector('.orb-nav-pri-container'); if (isOrbUx) { const script = document.createElement('script'); script.src = 'https://web.archive.org/web/20220121005457/https://nav.files.bbci.co.uk/searchbox/2432a71c53a3b82accd4f32608cae098//js/old-search-suggest.js'; script.async = true; script.setAttribute('data-static-prefix', 'https://web.archive.org/web/20220121005457/https://nav.files.bbci.co.uk/searchbox/2432a71c53a3b82accd4f32608cae098/'); script.setAttribute('data-variant', 'default'); script.setAttribute('data-scope', 'bitesize'); document.head.appendChild(script); } else { import('https://web.archive.org/web/20220121005457/https://nav.files.bbci.co.uk/searchbox/2432a71c53a3b82accd4f32608cae098//js/search-suggest.js').then(drawer => { drawer.setupSearchDrawer({ searchboxAppStaticPrefix: 'https://web.archive.org/web/20220121005457/https://nav.files.bbci.co.uk/searchbox/2432a71c53a3b82accd4f32608cae098/', variant: 'default', searchScope: 'bitesize', }); }); } } }); }</script> <script type="text/javascript" src="https://web.archive.org/web/20220121005457js_/https://nav.files.bbci.co.uk/navpromo/34f98a4c8573fabed16dc8acea28feb8/js/footerpromo.js" data-base="https://navpromo.api.bbci.co.uk" data-variant="" async=""></script> <script type="text/javascript">window.COOKIES_STATIC_HOST="https://web.archive.org/web/20220121005457/https://static.files.bbci.co.uk/cookies/6868f40b6841deedfcf9895de775e1ab/cookie-banner/cookie-prompt/"</script><script src="https://web.archive.org/web/20220121005457js_/https://static.files.bbci.co.uk/cookies/6868f40b6841deedfcf9895de775e1ab/cookie-banner/cookie-banners.bundle.js" async=""></script> <script src="https://web.archive.org/web/20220121005457js_/https://nav.files.bbci.co.uk//user-activity-helper/a8196ecdef2d10b40b1afc53b833773a/js/detectview.bundle.js" async=""></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>Morph.toInit.bundles.push(function() { Morph.versions['bbc-morph-optimizely-ati@1.0.2']={'amd-loader':'0.0.8','optimizely-ati':'1.0.0','react':'0.14.7',};/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { Morph.modules["bbc-morph-optimizely-ati@1.0.2"] = __webpack_require__(1); /***/ }), /* 1 */ /***/ (function(module, exports, __webpack_require__) { module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ } /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = __webpack_require__(1); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } __webpack_require__(2); var optimizelyATI = __webpack_require__(3); var OptimizelyATI = /*#__PURE__*/ function (_Component) { _inherits(OptimizelyATI, _Component); function OptimizelyATI() { _classCallCheck(this, OptimizelyATI); return _possibleConstructorReturn(this, _getPrototypeOf(OptimizelyATI).apply(this, arguments)); } _createClass(OptimizelyATI, [{ key: "componentDidMount", value: function componentDidMount() { optimizelyATI.init(); } }, { key: "render", value: function render() { return null; } }]); return OptimizelyATI; }(_react.Component); var _default = OptimizelyATI; exports.default = _default; module.exports = exports.default; /***/ }), /* 1 */ /***/ (function(module, exports) { module.exports = __webpack_require__(2); /***/ }), /* 2 */ /***/ (function(module, exports) { module.exports = __webpack_require__(3); /***/ }), /* 3 */ /***/ (function(module, exports) { module.exports = __webpack_require__(4); /***/ }) /******/ ]); /***/ }), /* 2 */ /***/ (function(module, exports) { module.exports = React; /***/ }), /* 3 */ /***/ (function(module, exports) { module.exports = Morph.modules["amd-loader@0.0.8"]; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict'; !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () { // Provides an initialisation method function init() { registerCurrentlyActiveExperiments(); registerFutureActiveExperiments(); } function experimentEventTest(experimentObject) { //trigger custom experiment event const { experiment, variation } = experimentObject; if (experiment && variation) { const experimentEvent = new CustomEvent('bbc-user-event', { detail: { personalisation: { EXP: experiment + '::' + variation } } }); document.dispatchEvent(experimentEvent); } } return { init: init, experimentTest: experimentEventTest }; function registerCurrentlyActiveExperiments() { var activeCampaigns = getAllActiveOptimizelyCampaigns(); if (activeCampaigns) { var experiments = []; for (var campaignId in activeCampaigns) { if (activeCampaigns.hasOwnProperty(campaignId)) { var experimentData = getExperimentData(campaignId); experiments.push(experimentData); } } for (var i = 0; i < experiments.length; i++) { experimentEventTest(experiments[i]); } } } // Register an event handler whenever the campaignDecided event is triggered function registerFutureActiveExperiments() { window['optimizely'] = window['optimizely'] || []; window['optimizely'].push({ type: 'addListener', filter: { type: 'lifecycle', name: 'campaignDecided' }, handler: function (event) { var id = event.data.campaign.id; var experimentData = [getExperimentData(id)]; experimentEventTest(experimentData); } }); } function getExperimentData(campaignId) { var campaign = getActiveOptimizelyCampaignById(campaignId); var experimentData = {}; if (campaign) { var browserIsSeeingTheExperiment = !campaign.isInCampaignHoldback; // true if (browserIsSeeingTheExperiment) { // construct an object with the experiment name and variation experimentData = { experiment: campaign.experiment.name, variation: campaign.variation.name }; } // } } return experimentData; } // Gets a campaign object from the Optimizely API for a given campaign ID function getAllActiveOptimizelyCampaigns() { return getOptimizelyCampaignState(); } function getActiveOptimizelyCampaignById(campaignId) { return getOptimizelyCampaignState()[campaignId]; } function getOptimizelyCampaignState() { var state = window['optimizely'] && window['optimizely'].get('state'); if (state) { return state.getCampaignStates({ isActive: true }); } return {}; } }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }) /******/ ]);; });</script><script>Morph.toInit.registers.push(function() { Morph.register({"view":"bbc-morph-optimizely-ati","language":"en-GB","version":"1.0.2","_mrrVersion":"2.2.1"},'u8770904639335848'); });</script><script>Morph.init = function() { if (!Morph.initCalled) { Morph.markPerformance('morph-init'); Morph.initCalled = true; requirejs.config({ paths: { 'morph/react' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-react/1.0.0/react.min', 'morph/react-dom' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-react-dom/1.0.0/react-dom.min', 'morph/es5-shim' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-shim.min', 'morph/es5-sham' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-sham.min', 'morph/module/morph': '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/morph/5.3.1/bundle', 'live-push' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/morph-push-proxy-client/1.0.13/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(); } /* u8770904639335848 */</script><script>Morph.toInit.bundles.push(function() { !function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=74)}([function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(20)("wks"),a=n(14),o=n(2).Symbol,i="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=i&&o[e]||(i?o:a)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(0);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(2),a=n(8),o=n(7),i=n(14)("src"),u=n(84),l=(""+u).split("toString");n(13).inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,n,u){var c="function"==typeof n;c&&(o(n,"name")||a(n,"name",t)),e[t]!==n&&(c&&(o(n,i)||a(n,i,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:u?e[t]?e[t]=n:a(e,t,n):(delete e[t],a(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[i]||u.call(this)})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(9),a=n(22);e.exports=n(4)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(3),a=n(51),o=n(36),i=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),a)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(37),a=n(39);e.exports=function(e){return r(a(e))}},function(e,t){e.exports=React},function(e,t,n){"use strict";var r=n(82),a=n(83),o=n(15),i=n(10);e.exports=n(53)(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,a(1)):"keys"==t?a(0,n):"values"==t?a(0,e[n]):a(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports={}},function(e,t,n){var r=n(54),a=n(45);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t,n){function r(e){return null==e?void 0===e?l:u:c&&c in Object(e)?o(e):i(e)}var a=n(48),o=n(115),i=n(116),u="[object Null]",l="[object Undefined]",c=a?a.toStringTag:void 0;e.exports=r},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){for(var r=n(12),a=n(16),o=n(5),i=n(2),u=n(8),l=n(15),c=n(1),f=c("iterator"),s=c("toStringTag"),d=l.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},g=a(p),h=0;h<g.length;h++){var y,b=g[h],v=p[b],m=i[b],_=m&&m.prototype;if(_&&(_[f]||u(_,f,d),_[s]||u(_,s,b),l[b]=d,v))for(y in r)_[y]||o(_,y,r[y],!0)}},function(e,t,n){var r=n(13),a=n(2),o=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(21)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(2),a=n(13),o=n(8),i=n(5),u=n(24),l=function(e,t,n){var c,f,s,d,p=e&l.F,g=e&l.G,h=e&l.S,y=e&l.P,b=e&l.B,v=g?r:h?r[t]||(r[t]={}):(r[t]||{}).prototype,m=g?a:a[t]||(a[t]={}),_=m.prototype||(m.prototype={});g&&(n=t);for(c in n)f=!p&&v&&void 0!==v[c],s=(f?v:n)[c],d=b&&f?u(s,r):y&&"function"==typeof s?u(Function.call,s):s,v&&i(v,c,s,e&l.U),m[c]!=s&&o(m,c,d),y&&_[c]!=s&&(_[c]=s)};r.core=a,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){var r=n(40);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(9).f,a=n(7),o=n(1)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(39);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";var r=n(91)(!0);n(53)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r,a=n(2),o=n(55)(0),i=n(5),u=n(29),l=n(94),c=n(95),f=n(0),s=n(47),d=n(47),p=!a.ActiveXObject&&"ActiveXObject"in a,g=u.getWeak,h=Object.isExtensible,y=c.ufstore,b=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(e){if(f(e)){var t=g(e);return!0===t?y(s(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(s(this,"WeakMap"),e,t)}},m=e.exports=n(99)("WeakMap",b,v,c,!0,!0);d&&p&&(r=c.getConstructor(b,"WeakMap"),l(r.prototype,v),u.NEED=!0,o(["delete","has","get","set"],function(e){var t=m.prototype,n=t[e];i(t,e,function(t,a){if(f(t)&&!h(t)){this._f||(this._f=new r);var o=this._f[e](t,a);return"set"==e?this:o}return n.call(this,t,a)})}))},function(e,t,n){var r=n(14)("meta"),a=n(0),o=n(7),i=n(9).f,u=0,l=Object.isExtensible||function(){return!0},c=!n(6)(function(){return l(Object.preventExtensions({}))}),f=function(e){i(e,r,{value:{i:"O"+ ++u,w:{}}})},s=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";f(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;f(e)}return e[r].w},p=function(e){return c&&g.NEED&&l(e)&&!o(e,r)&&f(e),e},g=e.exports={KEY:r,NEED:!1,fastKey:s,getWeak:d,onFreeze:p}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){n(62)("asyncIterator")},function(e,t,n){"use strict";var r=n(2),a=n(7),o=n(4),i=n(23),u=n(5),l=n(29).KEY,c=n(6),f=n(20),s=n(25),d=n(14),p=n(1),g=n(63),h=n(62),y=n(103),b=n(56),v=n(3),m=n(0),_=n(26),w=n(10),x=n(36),O=n(22),j=n(41),E=n(104),S=n(61),k=n(46),z=n(9),P=n(16),R=S.f,T=z.f,C=E.f,N=r.Symbol,M=r.JSON,A=M&&M.stringify,D=p("_hidden"),q=p("toPrimitive"),L={}.propertyIsEnumerable,B=f("symbol-registry"),F=f("symbols"),G=f("op-symbols"),I=Object.prototype,W="function"==typeof N&&!!k.f,H=r.QObject,U=!H||!H.prototype||!H.prototype.findChild,K=o&&c(function(){return 7!=j(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=R(I,t);r&&delete I[t],T(e,t,n),r&&e!==I&&T(I,t,r)}:T,V=function(e){var t=F[e]=j(N.prototype);return t._k=e,t},Z=W&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},Y=function(e,t,n){return e===I&&Y(G,t,n),v(e),t=x(t,!0),v(n),a(F,t)?(n.enumerable?(a(e,D)&&e[D][t]&&(e[D][t]=!1),n=j(n,{enumerable:O(0,!1)})):(a(e,D)||T(e,D,O(1,{})),e[D][t]=!0),K(e,t,n)):T(e,t,n)},$=function(e,t){v(e);for(var n,r=y(t=w(t)),a=0,o=r.length;o>a;)Y(e,n=r[a++],t[n]);return e},J=function(e,t){return void 0===t?j(e):$(j(e),t)},Q=function(e){var t=L.call(this,e=x(e,!0));return!(this===I&&a(F,e)&&!a(G,e))&&(!(t||!a(this,e)||!a(F,e)||a(this,D)&&this[D][e])||t)},X=function(e,t){if(e=w(e),t=x(t,!0),e!==I||!a(F,t)||a(G,t)){var n=R(e,t);return!n||!a(F,t)||a(e,D)&&e[D][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=C(w(e)),r=[],o=0;n.length>o;)a(F,t=n[o++])||t==D||t==l||r.push(t);return r},te=function(e){for(var t,n=e===I,r=C(n?G:w(e)),o=[],i=0;r.length>i;)!a(F,t=r[i++])||n&&!a(I,t)||o.push(F[t]);return o};W||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===I&&t.call(G,n),a(this,D)&&a(this[D],e)&&(this[D][e]=!1),K(this,e,O(1,n))};return o&&U&&K(I,e,{configurable:!0,set:t}),V(e)},u(N.prototype,"toString",function(){return this._k}),S.f=X,z.f=Y,n(64).f=E.f=ee,n(30).f=Q,k.f=te,o&&!n(21)&&u(I,"propertyIsEnumerable",Q,!0),g.f=function(e){return V(p(e))}),i(i.G+i.W+i.F*!W,{Symbol:N});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)p(ne[re++]);for(var ae=P(p.store),oe=0;ae.length>oe;)h(ae[oe++]);i(i.S+i.F*!W,"Symbol",{for:function(e){return a(B,e+="")?B[e]:B[e]=N(e)},keyFor:function(e){if(!Z(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),i(i.S+i.F*!W,"Object",{create:J,defineProperty:Y,defineProperties:$,getOwnPropertyDescriptor:X,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ie=c(function(){k.f(1)});i(i.S+i.F*ie,"Object",{getOwnPropertySymbols:function(e){return k.f(_(e))}}),M&&i(i.S+i.F*(!W||c(function(){var e=N();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],a=1;arguments.length>a;)r.push(arguments[a++]);if(n=t=r[1],(m(t)||void 0!==e)&&!Z(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Z(t))return t}),r[1]=t,A.apply(M,r)}}),N.prototype[q]||n(8)(N.prototype,q,N.prototype.valueOf),s(N,"Symbol"),s(Math,"Math",!0),s(r.JSON,"JSON",!0)},function(e,t,n){"use strict";n(105);var r=n(3),a=n(65),o=n(4),i=/./.toString,u=function(e){n(5)(RegExp.prototype,"toString",e,!0)};n(6)(function(){return"/a/b"!=i.call({source:"a",flags:"b"})})?u(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?a.call(e):void 0)}):"toString"!=i.name&&u(function(){return i.call(this)})},function(e,t,n){"use strict";var r=n(60),a={};a[n(1)("toStringTag")]="z",a+""!="[object z]"&&n(5)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(23),a=n(41),o=n(40),i=n(3),u=n(0),l=n(6),c=n(106),f=(n(2).Reflect||{}).construct,s=l(function(){function e(){}return!(f(function(){},[],e)instanceof e)}),d=!l(function(){f(function(){})});r(r.S+r.F*(s||d),"Reflect",{construct:function(e,t){o(e),i(t);var n=arguments.length<3?e:o(arguments[2]);if(d&&!s)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var l=n.prototype,p=a(u(l)?l:Object.prototype),g=Function.apply.call(e,p,t);return u(g)?g:p}})},function(e,t,n){var r=n(0);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(38);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.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){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(3),a=n(86),o=n(45),i=n(44)("IE_PROTO"),u=function(){},l=function(){var e,t=n(52)("iframe"),r=o.length;for(t.style.display="none",n(89).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(u.prototype=r(e),n=new u,u.prototype=null,n[i]=e):n=l(),void 0===t?n:a(n,t)}},function(e,t,n){var r=n(43),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(20)("keys"),a=n(14);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(0);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){var r=n(67),a=r.Symbol;e.exports=a},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){function r(e){return null==e?"":a(e)}var a=n(149);e.exports=r},function(e,t,n){e.exports=!n(4)&&!n(6)(function(){return 7!=Object.defineProperty(n(52)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(0),a=n(2).document,o=r(a)&&r(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){"use strict";var r=n(21),a=n(23),o=n(5),i=n(8),u=n(15),l=n(85),c=n(25),f=n(90),s=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,g,h,y,b){l(n,t,g);var v,m,_,w=function(e){if(!d&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",O="values"==h,j=!1,E=e.prototype,S=E[s]||E["@@iterator"]||h&&E[h],k=S||w(h),z=h?O?w("entries"):k:void 0,P="Array"==t?E.entries||S:S;if(P&&(_=f(P.call(new e)))!==Object.prototype&&_.next&&(c(_,x,!0),r||"function"==typeof _[s]||i(_,s,p)),O&&S&&"values"!==S.name&&(j=!0,k=function(){return S.call(this)}),r&&!b||!d&&!j&&E[s]||i(E,s,k),u[t]=k,u[x]=p,h)if(v={values:O?k:w("values"),keys:y?k:w("keys"),entries:z},b)for(m in v)m in E||o(E,m,v[m]);else a(a.P+a.F*(d||j),t,v);return v}},function(e,t,n){var r=n(7),a=n(10),o=n(87)(!1),i=n(44)("IE_PROTO");e.exports=function(e,t){var n,u=a(e),l=0,c=[];for(n in u)n!=i&&r(u,n)&&c.push(n);for(;t.length>l;)r(u,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(24),a=n(37),o=n(26),i=n(42),u=n(92);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,f=4==e,s=6==e,d=5==e||s,p=t||u;return function(t,u,g){for(var h,y,b=o(t),v=a(b),m=r(u,g,3),_=i(v.length),w=0,x=n?p(t,_):l?p(t,0):void 0;_>w;w++)if((d||w in v)&&(h=v[w],y=m(h,w,b),e))if(n)x[w]=y;else if(y)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:x.push(h)}else if(f)return!1;return s?-1:c||f?f:x}}},function(e,t,n){var r=n(38);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(5);e.exports=function(e,t,n){for(var a in t)r(e,a,t[a],n);return e}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(24),a=n(96),o=n(97),i=n(3),u=n(42),l=n(98),c={},f={},t=e.exports=function(e,t,n,s,d){var p,g,h,y,b=d?function(){return e}:l(e),v=r(n,s,t?2:1),m=0;if("function"!=typeof b)throw TypeError(e+" is not iterable!");if(o(b)){for(p=u(e.length);p>m;m++)if((y=t?v(i(g=e[m])[0],g[1]):v(e[m]))===c||y===f)return y}else for(h=b.call(e);!(g=h.next()).done;)if((y=a(h,v,g.value,t))===c||y===f)return y};t.BREAK=c,t.RETURN=f},function(e,t,n){var r=n(38),a=n(1)("toStringTag"),o="Arguments"==r(function(){return arguments}()),i=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=i(t=Object(e),a))?n:o?r(t):"Object"==(u=r(t))&&"function"==typeof t.callee?"Arguments":u}},function(e,t,n){var r=n(30),a=n(22),o=n(10),i=n(36),u=n(7),l=n(51),c=Object.getOwnPropertyDescriptor;t.f=n(4)?c:function(e,t){if(e=o(e),t=i(t,!0),l)try{return c(e,t)}catch(e){}if(u(e,t))return a(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(2),a=n(13),o=n(21),i=n(63),u=n(9).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:i.f(e)})}},function(e,t,n){t.f=n(1)},function(e,t,n){var r=n(54),a=n(45).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},function(e,t,n){"use strict";var r=n(3);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){function r(e){return null!=e&&o(e.length)&&!a(e)}var a=n(113),o=n(70);e.exports=r},function(e,t,n){var r=n(68),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(114))},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t,n){function r(e){return"symbol"==typeof e||o(e)&&a(e)==i}var a=n(17),o=n(18),i="[object Symbol]";e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(75),a=n.n(r);Morph.modules["bbc-morph-bitesize-global-navigation-view@1.54.1"]=a.a},function(e,t,n){"use strict";e.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(e,t){e.exports=n(11)},function(e,t){e.exports=n(76)},function(e,t){e.exports=n(79)},function(e,t){e.exports=n(80)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={"en-GB":{england:"England","northern-ireland":"Northern Ireland",scotland:"Scotland",wales:"Wales",home:"Home","daily-lessons":"Daily lessons","learn-revise":"Learn & revise",learn:"Learn",support:"Support",careers:"Careers","about-us":"About us","my-bitesize":"My Bitesize","all-bitesize":"All Bitesize",menu:"Menu",primary:"Primary",secondary:"Secondary","post-16":"Post-16",subjects:"Subjects",maths:"Maths",science:"Science",geography:"Geography",spanish:"Spanish",english:"English",history:"History",french:"French","63-more-subjects":"63 more subjects"},"cy-GB":{england:"Lloegr","northern-ireland":"Gogledd Iwerddon",scotland:"Yr Alban",wales:"Cymru",home:"Hafan","learn-revise":"Dysgu ac adolygu",support:"Cyngor",careers:"Gyrfaoedd","about-us":"Amdanom ni","my-bitesize":"Fy Bitesize","all-bitesize":"Pob pwnc",menu:"Dewislen",primary:"Cynradd",secondary:"Uwchradd","post-16":"Ôl 16",subjects:"Pynciau",maths:"Mathemateg",science:"Gwyddoniaeth",geography:"Daearyddiaeth",spanish:"Sbaeneg",english:"Saesneg",history:"Hanes",french:"Ffrangeg","all-subjects":"Pob pwnc...","63-more-subjects":"63 o bynciau eraill"},"ga-GB":{england:"Sasana","northern-ireland":"Tuaisceart Eireann",scotland:"Albain",wales:"An Bhreatain Bheag",home:"Baile","learn-revise":"Foghlaim",support:"Tacaíocht",careers:"Gairmeacha","about-us":"Fúinn","my-bitesize":"Mo Bitesize","all-bitesize":"Bitesize Uilig",menu:"Clàr",primary:"Bunoideachas",secondary:"Meánoideachas","post-16":"Iar-16",subjects:"Ábhair",maths:"Matamaitic",science:"Eolaíocht",geography:"Tíreolaíocht",spanish:"Spáinnis",english:"Béarla",history:"Stair",french:"Fraincis","63-more-subjects":"63 ábhar eile"},"gd-GB":{england:"Sasainn","northern-ireland":"Eirinn a Tuath",scotland:"Alba",wales:"A'Chuimrigh",home:"Dachaigh","learn-revise":"Ionnsaich",support:"Taic",careers:"Dreuchdan","about-us":"Mu ar deidhinn","my-bitesize":"Bitesize agamsa","all-bitesize":"Bitesize gu lèir",menu:"Roghchlár",primary:"Bun-sgoil",secondary:"Àrd-sgoil","post-16":"Nas sine na 16",subjects:"Cuspairean",maths:"Matamataig",science:"Saidheans",geography:"Cruinn-eòlas",spanish:"Spàinntis",english:"Beurla",history:"Eachdraidh",french:"Fraingis","63-more-subjects":"63 cuspairean a bharrachd"}};t.default=r,e.exports=t.default},function(e,t){e.exports=n(81)},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),o=r(n(1)),i=r(n(2)),u=r(n(13)),l=r(n(5)),c=r(n(3)),f=r(n(7)),s=r(n(4)),d=function(e){return e.toLowerCase().replace(/[^\w]+/,"-")},p=function(e,t,n){return(0,u.default)([n,t],"/bitesize".concat(e.href))},g=function(e){var t=e.buckets,n=e.pageType,r=e.language,o=e.href,u=e.onClick,g=e.showDrawer,h=e.includeLanguageSelector,y=e.linkToHighlight;return c.default.initLocalisations({language:r,localisations:s.default}),a.default.createElement("ul",{className:"global-navigation__list"},t.map(function(e){var t=(0,i.default)("global-navigation__list__item",{"global-navigation__list__item--highlighted":p(e,o,y)});return a.default.createElement("li",{className:t,key:d(e.title)},a.default.createElement("a",{className:"global-navigation__list__link",href:"/bitesize".concat(e.href),"data-bbc-container":"global-navigation","data-bbc-title":e.dataTitle,"data-bbc-ignore-views":1,"data-bbc-result":"/bitesize".concat(e.href)},a.default.createElement("span",{className:"global-navigation__list__link-text"},c.default.localise(d(e.title)))))}),a.default.createElement("li",null,a.default.createElement("ul",{className:"global-navigation__list__items--pinned"},a.default.createElement("li",{className:(0,i.default)("global-navigation__list__item",{"global-navigation__list__item--highlighted":"my"===n}),key:"my-bitesize"},a.default.createElement("a",{className:"global-navigation__list__link",href:"/bitesize/my","data-bbc-container":"global-navigation","data-bbc-title":"MyBitesize","data-bbc-ignore-views":1,"data-bbc-result":"/bitesize/my"},a.default.createElement("span",{className:(0,i.default)("global-navigation__list__link-my-bitesize",{"global-navigation__list__link-my-bitesize--no-border":g})},c.default.localise("my-bitesize")))),h&&a.default.createElement("li",{className:"global-navigation__list__item",key:"language-selector"},a.default.createElement(f.default,{language:r})),a.default.createElement("li",{className:"global-navigation__list__item global-navigation__list__item--pinned global-navigation__list__item--all-bitesize",key:"all-bitesize"},a.default.createElement("button",{type:"button","data-bbc-container":"global-navigation","data-bbc-title":"AllBitesize","data-bbc-ignore-views":1,"data-bbc-result":g?"collapsed-menu":"expanded-menu",onClick:u,className:(0,i.default)("global-navigation__list__link--button","global-navigation__list__link--button--pinned",{"global-navigation__list__link--button--pinned--open":g}),"aria-live":"polite","aria-label":"Menu button, this menu is ".concat(g?"open":"closed")},a.default.createElement("span",{className:"gel-icon gel-icon--list-view"},a.default.createElement(l.default,null)),a.default.createElement("span",{className:"global-navigation__list__link-text"},c.default.localise("all-bitesize")))))))};g.defaultProps={pageType:"",language:"en-GB",includeLanguageSelector:!1,href:null,linkToHighlight:""},g.propTypes={buckets:o.default.arrayOf(o.default.shape({title:o.default.string.isRequired,href:o.default.string.isRequired}).isRequired).isRequired,href:o.default.string,pageType:o.default.string,language:o.default.string,onClick:o.default.func.isRequired,showDrawer:o.default.bool.isRequired,includeLanguageSelector:o.default.bool,linkToHighlight:o.default.string};var h=g;t.default=h,e.exports=t.default},function(e,t,n){function r(e){"@babel/helpers - typeof";return(r="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})(e)}function a(e){return e&&e.__esModule?e:{default:e}}function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=h();return function(){var n,r=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return x(e)||w(e,t)||m(e,t)||v()}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){u=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(u)throw a}}return o}}function x(e){if(Array.isArray(e))return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var O=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=i?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(a,u,l):a[u]=e[u]}return a.default=e,n&&n.set(e,a),a}(n(0)),j=a(n(1)),E=a(n(2)),S=a(n(14)),k=a(n(15)),z=function(){var e=new Date;return e.setYear(e.getFullYear()+1),e},P=function(e,t){var n=window.bbccookies._getCurrentDomain()||".bbc.co.uk";n="."===n.charAt(0)?n:".".concat(n),window.bbccookies.set(e,t,{path:"/",domain:n,expires:z()})},R=function(e){var t=e.split("-")[0];P("ckps_language",t),window.location.reload(!0)},T=function(e){return b(S.default.filter(function(t){return t.languageCode===e}),1)[0]||S.default[0]},C=function(e){function t(){var e;return u(this,t),e=n.call(this),e.state={showLanguages:!1},e.close=e.close.bind(g(e)),e.closeClickEvent=e.closeClickEvent.bind(g(e)),e.toggle=e.toggle.bind(g(e)),e.handleKeyPress=e.handleKeyPress.bind(g(e)),e.handleFocusOut=e.handleFocusOut.bind(g(e)),e}f(t,e);var n=d(t);return c(t,[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyPress),document.addEventListener("mousedown",this.closeClickEvent),document.addEventListener("touchstart",this.closeClickEvent),document.addEventListener("focusout",this.handleFocusOut)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyPress),document.removeEventListener("mousedown",this.closeClickEvent),document.removeEventListener("touchstart",this.closeClickEvent),document.removeEventListener("focusout",this.handleFocusOut)}},{key:"closeClickEvent",value:function(e){this.state.showLanguages&&!this.languageSelector.contains(e.target)&&this.setState({showLanguages:!1})}},{key:"handleFocusOut",value:function(e){this.closeClickEvent({target:e.relatedTarget||e.target})}},{key:"handleKeyPress",value:function(e){27===e.keyCode&&this.setState({showLanguages:!1})}},{key:"close",value:function(){this.setState({showLanguages:!1})}},{key:"toggle",value:function(){this.setState(function(e){return{showLanguages:!e.showLanguages}})}},{key:"render",value:function(){var e=this,t=this.props,n=t.language,r=t.className,a=this.state.showLanguages,o=T(n),u=S.default.filter(function(e){return e.languageCode!==o.languageCode});return O.default.createElement("div",{className:(0,E.default)("global-language-selector",r),ref:function(t){e.languageSelector=t}},O.default.createElement("button",{type:"button",onClick:this.toggle,className:"global-language-selector__drawer ".concat(a?"global-language-selector__drawer--open":"global-language-selector__drawer--closed")},O.default.createElement("span",{className:"global-language-selector__drawer-text"},o.languageLabel)),O.default.createElement("div",{className:(0,E.default)("global-language-selector__container",{"global-language-selector__container--hidden":!a})},O.default.createElement("ol",{className:"global-language-selector__list"},O.default.createElement(k.default,i({},o,{onClick:R,selected:!0})),u.map(function(e){return O.default.createElement(k.default,i({key:"".concat(e.languageCode)},e,{onClick:R}))}))))}}]),t}(O.Component);C.defaultProps={language:"en-GB",className:""},C.propTypes={language:j.default.string,className:j.default.string};var N=C;t.default=N,e.exports=t.default},function(e,t){e.exports={buckets:[{title:"Home",href:"",dataTitle:"Home"},{title:"learn-revise",href:"/learn",dataTitle:"Learn"},{title:"Support",href:"/support",dataTitle:"Support"},{title:"Careers",href:"/careers",dataTitle:"Careers"}],englishBuckets:[{title:"Home",href:"",dataTitle:"Home"},{title:"Learn",href:"/learn",dataTitle:"Learn"},{title:"Support",href:"/support",dataTitle:"Support"},{title:"Careers",href:"/careers",dataTitle:"Careers"}],mobileBuckets:[{title:"Home",href:"",dataTitle:"Home"},{title:"learn-revise",href:"/learn",dataTitle:"Learn"},{title:"Support",href:"/support",dataTitle:"Support"},{title:"Careers",href:"/careers",dataTitle:"Careers"},{title:"about-us",href:"/articles/z6x992p"}],mobileEnglishBuckets:[{title:"Home",href:"",dataTitle:"Home"},{title:"Learn",href:"/learn",dataTitle:"Learn"},{title:"Support",href:"/support",dataTitle:"Support"},{title:"Careers",href:"/careers",dataTitle:"Careers"},{title:"about-us",href:"/articles/z6x992p"}],pinned:{title:"My Bitesize",href:"/my",dataTitle:"MyBitesize"},allBitesize:[{section:"Primary",regions:[{region:"England",aria:"English curriculum",content:[{title:"KS1",href:"/levels/z3g4d2p",zid:"z3g4d2p",aria:"Key Stage one England"},{title:"KS2",href:"/levels/zbr9wmn",zid:"zbr9wmn",aria:"Key Stage two England"}]},{region:"Northern Ireland",aria:"Northern Irish curriculum",content:[{title:"Foundation Stage",href:"/levels/znyh7nb",zid:"znyh7nb",aria:"Foundation Stage"},{title:"KS1",href:"/levels/zcwyp4j",zid:"zcwyp4j",aria:"Key Stage one Northern Ireland"},{title:"KS2",href:"/levels/zjmj92p",zid:"zjmj92p",aria:"Key Stage two Northern Ireland"}]},{region:"Scotland",aria:"Scottish curriculum",content:[{title:"Early level",href:"/levels/zf7hgwx",zid:"zf7hgwx",aria:"Early level"},{title:"1st level",href:"/levels/zgckjxs",zid:"zgckjxs",aria:"First level"},{title:"2nd Level",href:"/levels/zr48q6f",zid:"zr48q6f",aria:"Second level"},{title:"An Tràth Ìre",href:"/levels/zggh6g8 ",zid:"zggh6g8",aria:"An Tràth Ìre"},{title:"A' Chiad Ìre ",href:"/levels/zk3xy9q",zid:"zk3xy9q",aria:"A' Chiad Ìre "},{title:"An Dàrna Ìre",href:"/levels/z4y2scw",zid:"z4y2scw",aria:"An Dàrna Ìre"}]},{region:"Wales",aria:"Welsh curriculum",content:[{title:"Foundation Phase",href:"/levels/zxybmsg",zid:"zxybmsg",aria:"Foundation phase"},{title:"KS2",href:"/levels/zbr9wmn",zid:"zbr9wmn",aria:"Key Stage two Wales"},{title:"Cyfnod Sylfaen",href:"/levels/z4js6v4",zid:"z4js6v4",aria:"Cyfnod Sylfaen"},{title:"CA2",href:"/levels/zbpwt39",zid:"zbpwt39",aria:"CA2"}]}]},{section:"Secondary",regions:[{region:"England",aria:"English curriculum",content:[{title:"KS3",href:"/levels/z4kw2hv",zid:"z4kw2hv",aria:"Key Stage three England"},{title:"GCSE",href:"/levels/z98jmp3",zid:"z98jmp3",aria:"GCSE England"}]},{region:"Northern Ireland",aria:"Northern Irish curriculum",content:[{title:"KS3",href:"/levels/z4kw2hv",zid:"z4kw2hv",aria:"Key Stage three Northern Ireland"},{title:"GCSE",href:"/levels/z98jmp3",zid:"z98jmp3",aria:"GCSE Northern Ireland"}]},{region:"Scotland",aria:"Scottish curriculum",content:[{title:"3rd level",href:"/levels/zy4qn39",zid:"zy4qn39",aria:"Third level"},{title:"4th level",href:"/levels/zvk2fg8",zid:"zvk2fg8",aria:"Fourth level"},{title:"Nàiseanta 4",href:"/levels/z8hhvcw",zid:"z8hhvcw",aria:"Naiseanta four"},{title:"Nàiseanta 5",href:"/levels/zdpp34j",zid:"zdpp34j",aria:"Naiseanta five"},{title:"National 4",href:"/levels/zp3d7ty",zid:"zp3d7ty",aria:"National four"},{title:"National 5",href:"/levels/z6gw2hv",zid:"z6gw2hv",aria:"National five"},{title:"Àrd Ìre",href:"/levels/zqq4wxs",zid:"zqq4wxs",aria:"Ard Ire"},{title:"Higher",href:"/levels/zkdqxnb",zid:"zkdqxnb",aria:"Higher Scotland"}]},{region:"Wales",aria:"Welsh curriculum",content:[{title:"CA3",href:"/levels/zh6vr82",zid:"zh6vr82",aria:"CA3"},{title:"KS3",href:"/levels/z4kw2hv",zid:"z4kw2hv",aria:"Key Stage three Wales"},{title:"CBC",href:"/levels/zqxy8mn",zid:"zqxy8mn",aria:"CBC"},{title:"GCSE",href:"/levels/z98jmp3",zid:"z98jmp3",aria:"GCSE Wales"},{title:"TGAU",href:"/levels/z8w76sg",zid:"z8w76sg",aria:"TGAU"},{title:"WBQ",href:"/levels/z9wtgdm",zid:"z9wtgdm",aria:"WBQ"}]}]},{section:"Post-16",regions:[{region:"England",aria:"English curriculum",content:[{title:"Functional Skills",href:"/levels/zvhtng8",zid:"",aria:"Functional Skills levels one and two"}]},{region:"Northern Ireland",aria:"Northern Irish curriculum",content:[]},{region:"Scotland",aria:"Scottish curriculum",content:[{title:"Core Skills",href:"/levels/z66jhbk",zid:"z66jhbk",aria:"Core skills level three"}]},{region:"Wales",aria:"Welsh curriculum",content:[{title:"Essential Skills",href:"/levels/zhh7nrd",zid:"zhh7nrd",aria:"Essential skills levels one and two"}]}]},{section:"Subjects",regions:[{region:"",aria:"",content:[{title:"Maths",href:"/subjects/z6vg9j6",zid:"z6vg9j6",aria:"Maths"},{title:"English",href:"/subjects/zt3rkqt",zid:"zt3rkqt",aria:"English"}]},{region:"",aria:"",content:[{title:"Science",href:"/subjects/z7nygk7",zid:"z7nygk7",aria:"Science"},{title:"Cymraeg",href:"/subjects/zf48q6f",zid:"zf48q6f",aria:"Cymraeg"}]},{region:"",aria:"",content:[{title:"Gàidhlig",href:"/subjects/zgj2tfr",zid:"zgj2tfr",aria:"Gàidhlig"},{title:"63 more subjects",href:"/subjects/",zid:"",aria:"63 more subjects"}]}]},{section:"Support",href:"/support",aria:"Support"},{section:"Careers",href:"/careers",aria:"Careers"},{section:"about-us",href:"/articles/z6x992p",aria:"About us"}]}},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),o=r(n(1)),i=r(n(10)),u=r(n(8)),l=function(e){var t=e.language,n=e.href,r=e.pageType,o=e.phase,l=e.headerData;return a.default.createElement(i.default,{language:t,href:n,pageType:r,phase:o,headerData:l,navigationData:u.default,subdirectory:"bitesize"})};l.defaultProps={headerData:{}},l.propTypes={language:o.default.string.isRequired,href:o.default.string.isRequired,pageType:o.default.string.isRequired,phase:o.default.string.isRequired,headerData:o.default.shape({title:o.default.string.isRequired,children:o.default.arrayOf(o.default.shape({title:o.default.string.isRequired,href:o.default.string.isRequired})).isRequired})};var c=l;t.default=c,e.exports=t.default},function(e,t,n){function r(e){"@babel/helpers - typeof";return(r="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})(e)}function a(e){return e&&e.__esModule?e:{default:e}}function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=g();return function(){var n,r=h(e);if(t){var a=h(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var y=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=i?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(a,u,l):a[u]=e[u]}return a.default=e,n&&n.set(e,a),a}(n(0)),b=a(n(1)),v=a(n(11)),m=a(n(19)),_=n(25),w=function(e){function t(e){var r;return i(this,t),r=n.call(this,e),r.state={showDrawer:!1},r.toggleDrawer=r.toggleDrawer.bind(p(r)),r}c(t,e);var n=s(t);return l(t,[{key:"componentDidMount",value:function(){var e=document.querySelector(".global-navigation__header__logo__link");null!==e&&e.addEventListener("animationend",function(e){e.target.classList.remove("global-navigation__header__logo__link--animate"),e.target.classList.remove("global-navigation__header__logo__link--delay-animation")})}},{key:"toggleDrawer",value:function(){document.body.classList.toggle("drawer-open"),this.setState(function(e){return{showDrawer:!e.showDrawer}})}},{key:"render",value:function(){var e=this.props,t=e.pageType,n=e.language,r=e.subdirectory,a=e.navigationData,o=e.href,i=e.phase,u=e.headerData,l=this.state.showDrawer;return y.default.createElement("div",{className:"global-navigation"},y.default.createElement(v.default,{buckets:(0,_.MobileBucketProvider)(n),pageType:t,href:o,language:n,subdirectory:r,onClick:this.toggleDrawer,showDrawer:l,phase:i,headerData:u}),y.default.createElement(m.default,{allBitesize:a.allBitesize,buckets:(0,_.BucketProvider)(n),href:o,pageType:t,language:n,subdirectory:r,onClick:this.toggleDrawer,showDrawer:l,headerData:u}))}}]),t}(y.Component);w.defaultProps={pageType:"",href:"",subdirectory:"bitesize",language:"en-GB",phase:"",headerData:{href:null}},w.propTypes={navigationData:b.default.shape({allBitesize:b.default.arrayOf({}),buckets:b.default.arrayOf(b.default.shape({title:b.default.string.isRequired,href:b.default.string.isRequired}).isRequired).isRequired,mobileBuckets:b.default.arrayOf(b.default.shape({title:b.default.string.isRequired,href:b.default.string.isRequired}).isRequired).isRequired}).isRequired,href:b.default.string,pageType:b.default.string,subdirectory:b.default.string,language:b.default.string,phase:b.default.string,headerData:b.default.shape({href:b.default.string,title:b.default.string.isRequired,children:b.default.arrayOf(b.default.shape({title:b.default.string.isRequired,href:b.default.string.isRequired})).isRequired})};var x=w;t.default=x,e.exports=t.default},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),o=r(n(1)),i=r(n(5)),u=r(n(3)),l=r(n(2)),c=r(n(4)),f=r(n(12)),s=function(e){var t=e.buckets,n=e.pageType,r=e.href,o=e.language,s=e.subdirectory,d=e.onClick,p=e.showDrawer,g=e.phase,h=e.headerData;return u.default.initLocalisations({language:o,localisations:c.default}),a.default.createElement("header",{className:"global-navigation__header"},a.default.createElement("div",{className:"global-navigation__header__wrap"},a.default.createElement("span",{className:"global-navigation__header__logo",tabIndex:"-1"},a.default.createElement("a",{className:"global-navigation__header__logo__link--animate global-navigation__header__logo__link--delay-animation ".concat(g?"global-navigation__header__logo__link global-navigation__header__logo__link--phase-".concat(g.toLowerCase()):"global-navigation__header__logo__link"),href:"/".concat(s),onMouseEnter:function(e){e.target.classList.add("global-navigation__header__logo__link--animate")}},"Bitesize")),a.default.createElement("button",{type:"button","data-bbc-container":"global-navigation","data-bbc-title":"AllBitesize","data-bbc-ignore-views":1,"data-bbc-result":"expand-menu/collapse-menu",className:(0,l.default)("global-navigation__header__menu-button",{"global-navigation__header__menu-button-active":p}),onClick:function(){return d()},"aria-label":"Open menu"},a.default.createElement("i",{className:"gel-icon gel-icon--list-view global-navigation__header__menu-button__list-view"},a.default.createElement(i.default,null)),a.default.createElement("span",{className:"global-navigation__header__menu-button__text"},u.default.localise("all-bitesize"))),a.default.createElement(f.default,{href:r,buckets:t,pageType:n,language:o,subdirectory:s,showDrawer:p,onClick:d,headerData:h})))};s.displayName="Header",s.defaultProps={href:"",language:"en-GB",pageType:"",phase:"",showDrawer:!1,subdirectory:"bitesize",headerData:{}},s.propTypes={buckets:o.default.arrayOf(o.default.shape({title:o.default.string.isRequired,href:o.default.string.isRequired}).isRequired).isRequired,href:o.default.string,language:o.default.string,onClick:o.default.func.isRequired,pageType:o.default.string,phase:o.default.string,showDrawer:o.default.bool,subdirectory:o.default.string,headerData:o.default.shape({title:o.default.string.isRequired,children:o.default.arrayOf(o.default.shape({title:o.default.string.isRequired,href:o.default.string.isRequired})).isRequired})};var d=s;t.default=d,e.exports=t.default},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),o=r(n(1)),i=r(n(6)),u=r(n(17)),l=function(e){return e&&"title"in e&&"children"in e&&e.children.length>0&&""!==e.children[0].title},c=function(e){var t=e.showDrawer,n=e.buckets,r=e.pageType,o=e.language,c=e.href,f=e.onClick,s=e.headerData;return a.default.createElement("div",{className:"global-navigation__mobile-nav"},t&&a.default.createElement("div",{className:"global-navigation__mobile-nav__drawer"},a.default.createElement(i.default,{buckets:n,pageType:r,language:o,href:c,onClick:f,showDrawer:t,linkToHighlight:s?s.href:null,includeLanguageSelector:!0})),l(s)&&a.default.createElement(u.default,{submenu:s,currentPage:c}))};c.defaultProps={pageType:"",language:"en-GB",showDrawer:!1,href:null,headerData:{href:null}},c.propTypes={buckets:o.default.arrayOf(o.default.shape({title:o.default.string.isRequired,href:o.default.string.isRequired}).isRequired).isRequired,pageType:o.default.string,language:o.default.string,showDrawer:o.default.bool,onClick:o.default.func.isRequired,href:o.default.string,headerData:o.default.shape({href:o.default.string,title:o.default.string.isRequired,children:o.default.arrayOf(o.default.shape({title:o.default.string.isRequired,href:o.default.string.isRequired})).isRequired})};var f=c;t.default=f,e.exports=t.default},function(e,t){e.exports=n(108)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=[{languageCode:"en-GB",languageLabel:"Change language",label:"English"},{languageCode:"cy-GB",languageLabel:"Newid iaith",label:"Cymraeg"},{languageCode:"ga-GB",languageLabel:"Athraigh teanga",label:"Gaeilge"},{languageCode:"gd-GB",languageLabel:"Atharraich cànan",label:"Gàidhlig"}];t.default=r,e.exports=t.default},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),o=r(n(1)),i=r(n(2)),u=r(n(16)),l=function(e){var t=e.label,n=e.onClick,r=e.languageCode,o=e.selected;return a.default.createElement("li",{key:r,className:(0,i.default)("global-language-selector__language",{"global-language-selector__language--selected":o})},a.default.createElement("button",{type:"button",tabIndex:"0",lang:r,className:"global-language-selector__language-link",onClick:function(){return n(r)},"aria-label":o?"".concat(t,", selected"):t},a.default.createElement("span",{className:"global-language-selector__language-label",lang:r},t),o&&a.default.createElement("span",{className:"global-language-selector__icon-yes gel-icon gel-icon--yes"},a.default.createElement(u.default,null))))};l.defaultProps={selected:!1},l.propTypes={label:o.default.string.isRequired,onClick:o.default.func.isRequired,languageCode:o.default.string.isRequired,selected:o.default.bool};var c=l;t.default=c,e.exports=t.default},function(e,t){e.exports=n(141)},function(e,t,n){function r(e){"@babel/helpers - typeof";return(r="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})(e)}function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=p();return function(){var n,r=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var h=a(n(0)),y=a(n(1)),b=a(n(2)),v=a(n(18)),m=function(e){function t(e){var r;return o(this,t),r=n.call(this,e),r.toggleClick=r.toggleClick.bind(d(r)),r.state={isExpanded:!1},r}l(t,e);var n=f(t);return u(t,[{key:"toggleClick",value:function(){this.setState(function(e){return{isExpanded:!e.isExpanded}})}},{key:"render",value:function(){var e=this.props,t=e.submenu,n=t.title,r=t.children,a=e.currentPage,o=this.state.isExpanded;return h.default.createElement("nav",{className:(0,b.default)("global-navigation__mobile-sub-nav",{"global-navigation__mobile-sub-nav--expanded":o})},h.default.createElement("h3",{className:"global-navigation__mobile-sub-nav-title"},h.default.createElement("button",{type:"button",className:"global-navigation__mobile-sub-nav__toggle",onClick:this.toggleClick,"aria-expanded":o,"aria-controls":"mobile-sub-nav-menu"},h.default.createElement("span",{className:"global-navigation__mobile-sub-nav-title__text"},n),h.default.createElement("span",{className:"global-navigation__chevron__down-svg"},h.default.createElement(v.default,null)))),h.default.createElement("ul",{id:"mobile-sub-nav-menu",className:"global-navigation__mobile-sub-nav-menu",hidden:!o},r.map(function(e){var t=e.title,n=e.href,r=a===n;return h.default.createElement("li",{key:t,className:(0,b.default)("global-navigation__mobile-sub-nav-menu-item",{"global-navigation__mobile-sub-nav-menu-item--highlighted":r})},h.default.createElement("a",{className:"global-navigation__mobile-sub-nav-menu-link",href:n,"data-bbc-container":"global-navigation","aria-current":r?"page":null},t))})))}}]),t}(h.default.Component);m.displayName="MobileSubNav",m.propTypes={submenu:y.default.shape({title:y.default.string.isRequired,children:y.default.arrayOf(y.default.shape({title:y.default.string.isRequired,href:y.default.string.isRequired})).isRequired}).isRequired,currentPage:y.default.string.isRequired};var _=m;t.default=_,e.exports=t.default},function(e,t){e.exports=n(142)},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),o=r(n(1)),i=r(n(20)),u=r(n(6)),l=r(n(7)),c=r(n(24)),f=function(e){return e&&"title"in e&&"children"in e&&e.children.length>0&&""!==e.children[0].title},s=function(e){var t=e.allBitesize,n=e.buckets,r=e.pageType,o=e.language,s=e.subdirectory,d=e.onClick,p=e.showDrawer,g=e.href,h=e.headerData;return a.default.createElement("nav",{className:"global-navigation__primary-nav"},a.default.createElement("div",{className:"global-navigation__primary-nav__wrap"},a.default.createElement(l.default,{language:o}),a.default.createElement(u.default,{buckets:n,pageType:r,language:o,subdirectory:s,onClick:d,showDrawer:p,href:g,linkToHighlight:h?h.href:null})),p&&a.default.createElement(i.default,{language:o,allBitesize:t,subdirectory:s}),f(h)&&a.default.createElement("div",{className:"global-navigation__sub-nav-wrap"},a.default.createElement(c.default,{currentPage:g,submenu:h})))};s.displayName="PrimaryNav",s.defaultProps={pageType:"",subdirectory:"bitesize",language:"en-GB",showDrawer:!1,href:"",headerData:{href:null}},s.propTypes={allBitesize:o.default.arrayOf(o.default.shape({section:o.default.string.isRequired,content:o.default.arrayOf(o.default.shape({title:o.default.string.isRequired,href:o.default.string.isRequired}))})).isRequired,buckets:o.default.arrayOf(o.default.shape({title:o.default.string.isRequired,href:o.default.string.isRequired}).isRequired).isRequired,href:o.default.string,pageType:o.default.string,subdirectory:o.default.string,language:o.default.string,onClick:o.default.func.isRequired,showDrawer:o.default.bool,headerData:o.default.shape({href:o.default.string,title:o.default.string.isRequired,children:o.default.arrayOf(o.default.shape({title:o.default.string.isRequired,href:o.default.string.isRequired})).isRequired})};var d=s;t.default=d,e.exports=t.default},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),o=r(n(1)),i=r(n(21)),u=r(n(22)),l=r(n(23)),c=r(n(3)),f=r(n(4)),s=function(e){return e.toLowerCase().replace(/[^\w]+/g,"-")},d=function(e){var t=e.className,n=e.allBitesize,r=e.subdirectory,o=e.language;return c.default.initLocalisations({language:o,localisations:f.default}),a.default.createElement("div",{className:t},a.default.createElement("div",{className:"global-navigation__drawer__content"},a.default.createElement("ul",{className:"global-navigation__drawer__content-list global-navigation__drawer__content-list--primary-list"},n.map(function(e){return e.href?a.default.createElement("li",{key:(0,u.default)((0,i.default)(e.section)),className:"global-navigation__drawer__content-primary-list-item global-navigation__drawer__content-primary-list-item--clickable"},a.default.createElement("a",{className:"global-navigation__drawer__content-primary-list-item__link",href:"/".concat(r).concat(e.href),"aria-label":e.aria},a.default.createElement("h2",{className:"global-navigation__drawer__content-primary-list-item__link__header"},c.default.localise(s(e.section)),a.default.createElement(l.default,null)))):a.default.createElement("li",{key:(0,i.default)(e.section),className:"global-navigation__drawer__content-primary-list-item"},a.default.createElement("h2",{className:"global-navigation__drawer__content-primary-list-item__header"},c.default.localise(s(e.section))),a.default.createElement("ul",{className:"global-navigation__drawer__content-list global-navigation__drawer__content-list--secondary-list"},e.regions.map(function(e){return a.default.createElement("li",{key:(0,u.default)((0,i.default)(e.region)),className:"global-navigation__drawer__content-secondary-list-item-container"},a.default.createElement("h3",{"aria-label":e.aria,className:"global-navigation__drawer__content-secondary-list-item__header"},c.default.localise(s(e.region))),a.default.createElement("ul",{className:"global-navigation__drawer__content-list global-navigation__drawer__content-list--tertiary-list"},e.content.map(function(t){return a.default.createElement("li",{className:"global-navigation__drawer__content-tertiary-list-item",key:(0,u.default)(t.zid)},a.default.createElement("a",{className:"global-navigation__drawer__content-tertiary-list-item__link",href:"/".concat(r).concat(t.href),"aria-label":t.aria?t.aria:"".concat(t.title," ").concat(e.region)},a.default.createElement("p",{className:"global-navigation__drawer__content-tertiary-list-item__text-container"},a.default.createElement("span",{className:"global-navigation__drawer__content-tertiary-list-item__text"},c.default.localise(s(t.title))||t.title))))})))})))}))))};d.defaultProps={className:"global-navigation__drawer",allBitesize:[],subdirectory:"bitesize",language:"en-GB"},d.propTypes={className:o.default.string,allBitesize:o.default.arrayOf(o.default.shape({section:o.default.string.isRequired,content:o.default.arrayOf(o.default.shape({title:o.default.string.isRequired,href:o.default.string.isRequired}))})),subdirectory:o.default.string,language:o.default.string};var p=d;t.default=p,e.exports=t.default},function(e,t){e.exports=n(143)},function(e,t){e.exports=n(154)},function(e,t){e.exports=n(155)},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),o=r(n(1)),i=r(n(2)),u=function(e){var t=e.submenu.children,n=e.currentPage;return a.default.createElement("nav",{className:"global-navigation__sub-nav"},a.default.createElement("ul",{className:"global-navigation__sub-nav__menu"},t.map(function(e){var t=e.title,r=e.href,o=n===r;return a.default.createElement("li",{key:t,className:(0,i.default)("global-navigation__sub-nav__menu__item",{"global-navigation__sub-nav__menu__item--selected":o})},a.default.createElement("a",{className:"global-navigation__sub-nav__menu__link",href:r,"data-bbc-container":"global-navigation","aria-current":o?"page":null},t))})))};u.displayName="SubNav",u.propTypes={submenu:o.default.shape({title:o.default.string.isRequired,children:o.default.arrayOf(o.default.shape({title:o.default.string.isRequired,href:o.default.string.isRequired})).isRequired}).isRequired,currentPage:o.default.string.isRequired};var l=u;t.default=l,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MobileBucketProvider=t.BucketProvider=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),a=function(e){return"en-GB"===e?r.default.englishBuckets:r.default.buckets};t.BucketProvider=a;var o=function(e){return"en-GB"===e?r.default.mobileEnglishBuckets:r.default.mobileBuckets};t.MobileBucketProvider=o}])},function(e,t,n){e.exports=n(77)()},function(e,t,n){"use strict";function r(){}function a(){}var o=n(78);a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,i){if(i!==o){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r,a;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var i=n.apply(null,r);i&&e.push(i)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var u in r)o.call(r,u)&&r[u]&&e.push(u);else e.push(r.toString())}}return e.join(" ")}var o={}.hasOwnProperty;void 0!==e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(a=function(){return n}.apply(t,r))&&(e.exports=a))}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=["en-GB","ga-GB","gd-GB","cy-GB"],o="en-GB",i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=function(e,t){return void 0!==n[t]?n[t]:e};return e.replace(/{(\d+)}/g,a)},u=function(e){var t=e.language,n=e.localisations;a.indexOf(t)>=0&&(o=t),n&&(r=n)},l=function(){return o},c=function(e){if(!r)throw new Error("No localisation data has been set.");if(!r[o])return"";for(var t=r[o][e],n=arguments.length,a=new Array(n>1?n-1:0),u=1;u<n;u++)a[u-1]=arguments[u];return a.length>0?i.apply(void 0,[t].concat(a)):t},f={initLocalisations:u,getLocale:l,localise:c};t.default=f,e.exports=t.default},function(e,t,n){"use strict";function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function a(e){"@babel/helpers - typeof";return(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})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=p();return function(){var n,r=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(19),n(12),n(27),n(28),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(31),n(32),n(33),n(34),n(35);var h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=o?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(11)),y=function(e){function t(){return o(this,t),n.apply(this,arguments)}l(t,e);var n=f(t);return u(t,[{key:"componentDidMount",value:function(){this.svg.setAttribute("focusable","false")}},{key:"render",value:function(){var e=this;return h.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",ref:function(t){e.svg=t}},h.default.createElement("path",{d:"M0 0v8h32V0zM0 17v3h32v-8H0zM0 29v3h32v-8H0z"}))}}]),t}(h.Component),b=y;t.default=b,e.exports=t.default},function(e,t,n){var r=n(1)("unscopables"),a=Array.prototype;void 0==a[r]&&n(8)(a,r,{}),e.exports=function(e){a[r][e]=!0}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports=n(20)("native-function-to-string",Function.toString)},function(e,t,n){"use strict";var r=n(41),a=n(22),o=n(25),i={};n(8)(i,n(1)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(i,{next:a(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(9),a=n(3),o=n(16);e.exports=n(4)?Object.defineProperties:function(e,t){a(e);for(var n,i=o(t),u=i.length,l=0;u>l;)r.f(e,n=i[l++],t[n]);return e}},function(e,t,n){var r=n(10),a=n(42),o=n(88);e.exports=function(e){return function(t,n,i){var u,l=r(t),c=a(l.length),f=o(i,c);if(e&&n!=n){for(;c>f;)if((u=l[f++])!=u)return!0}else for(;c>f;f++)if((e||f in l)&&l[f]===n)return e||f||0;return!e&&-1}}},function(e,t,n){var r=n(43),a=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?a(e+t,0):o(e,t)}},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(7),a=n(26),o=n(44)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t,n){var r=n(43),a=n(39);e.exports=function(e){return function(t,n){var o,i,u=String(a(t)),l=r(n),c=u.length;return l<0||l>=c?e?"":void 0:(o=u.charCodeAt(l),o<55296||o>56319||l+1===c||(i=u.charCodeAt(l+1))<56320||i>57343?e?u.charAt(l):o:e?u.slice(l,l+2):i-56320+(o-55296<<10)+65536)}}},function(e,t,n){var r=n(93);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(0),a=n(56),o=n(1)("species");e.exports=function(e){var t;return a(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!a(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(4),a=n(16),o=n(46),i=n(30),u=n(26),l=n(37),c=Object.assign;e.exports=!c||n(6)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=u(e),c=arguments.length,f=1,s=o.f,d=i.f;c>f;)for(var p,g=l(arguments[f++]),h=s?a(g).concat(s(g)):a(g),y=h.length,b=0;y>b;)p=h[b++],r&&!d.call(g,p)||(n[p]=g[p]);return n}:c},function(e,t,n){"use strict";var r=n(57),a=n(29).getWeak,o=n(3),i=n(0),u=n(58),l=n(59),c=n(55),f=n(7),s=n(47),d=c(5),p=c(6),g=0,h=function(e){return e._l||(e._l=new y)},y=function(){this.a=[]},b=function(e,t){return d(e.a,function(e){return e[0]===t})};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var c=e(function(e,r){u(e,c,t,"_i"),e._t=t,e._i=g++,e._l=void 0,void 0!=r&&l(r,n,e[o],e)});return r(c.prototype,{delete:function(e){if(!i(e))return!1;var n=a(e);return!0===n?h(s(this,t)).delete(e):n&&f(n,this._i)&&delete n[this._i]},has:function(e){if(!i(e))return!1;var n=a(e);return!0===n?h(s(this,t)).has(e):n&&f(n,this._i)}}),c},def:function(e,t,n){var r=a(o(t),!0);return!0===r?h(e).set(t,n):r[e._i]=n,e},ufstore:h}},function(e,t,n){var r=n(3);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(15),a=n(1)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[a]===e)}},function(e,t,n){var r=n(60),a=n(1)("iterator"),o=n(15);e.exports=n(13).getIteratorMethod=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var r=n(2),a=n(23),o=n(5),i=n(57),u=n(29),l=n(59),c=n(58),f=n(0),s=n(6),d=n(100),p=n(25),g=n(101);e.exports=function(e,t,n,h,y,b){var v=r[e],m=v,_=y?"set":"add",w=m&&m.prototype,x={},O=function(e){var t=w[e];o(w,e,"delete"==e?function(e){return!(b&&!f(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!f(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return b&&!f(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof m&&(b||w.forEach&&!s(function(){(new m).entries().next()}))){var j=new m,E=j[_](b?{}:-0,1)!=j,S=s(function(){j.has(1)}),k=d(function(e){new m(e)}),z=!b&&s(function(){for(var e=new m,t=5;t--;)e[_](t,t);return!e.has(-0)});k||(m=t(function(t,n){c(t,m,e);var r=g(new v,t,m);return void 0!=n&&l(n,y,r[_],r),r}),m.prototype=w,w.constructor=m),(S||z)&&(O("delete"),O("has"),y&&O("get")),(z||E)&&O(_),b&&w.clear&&delete w.clear}else m=h.getConstructor(t,e,y,_),i(m.prototype,n),u.NEED=!0;return p(m,e),x[e]=m,a(a.G+a.W+a.F*(m!=v),x),b||h.setStrong(m,e,y),m}},function(e,t,n){var r=n(1)("iterator"),a=!1;try{var o=[7][r]();o.return=function(){a=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var o=[7],i=o[r]();i.next=function(){return{done:n=!0}},o[r]=function(){return i},e(o)}catch(e){}return n}},function(e,t,n){var r=n(0),a=n(102).set;e.exports=function(e,t,n){var o,i=t.constructor;return i!==n&&"function"==typeof i&&(o=i.prototype)!==n.prototype&&r(o)&&a&&a(e,o),e}},function(e,t,n){var r=n(0),a=n(3),o=function(e,t){if(a(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(24)(Function.call,n(61).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){var r=n(16),a=n(46),o=n(30);e.exports=function(e){var t=r(e),n=a.f;if(n)for(var i,u=n(e),l=o.f,c=0;u.length>c;)l.call(e,i=u[c++])&&t.push(i);return t}},function(e,t,n){var r=n(10),a=n(64).f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return a(e)}catch(e){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==o.call(e)?u(e):a(r(e))}},function(e,t,n){n(4)&&"g"!=/./g.flags&&n(9).f(RegExp.prototype,"flags",{configurable:!0,get:n(65)})},function(e,t,n){"use strict";var r=n(40),a=n(0),o=n(107),i=[].slice,u={},l=function(e,t,n){if(!(t in u)){for(var r=[],a=0;a<t;a++)r[a]="a["+a+"]";u[t]=Function("F,a","return new F("+r.join(",")+")")}return u[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),u=function(){var r=n.concat(i.call(arguments));return this instanceof u?l(t,r.length,r):o(t,r,e)};return a(t.prototype)&&(u.prototype=t.prototype),u}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){function r(e,t,n,r){e=o(e)?e:l(e),n=n&&!r?u(n):0;var f=e.length;return n<0&&(n=c(f+n,0)),i(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&a(e,t,n)>-1}var a=n(109),o=n(66),i=n(117),u=n(118),l=n(123),c=Math.max;e.exports=r},function(e,t,n){function r(e,t,n){return t===t?i(e,t,n):a(e,o,n)}var a=n(110),o=n(111),i=n(112);e.exports=r},function(e,t){function n(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}e.exports=n},function(e,t){function n(e){return e!==e}e.exports=n},function(e,t){function n(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}e.exports=n},function(e,t,n){function r(e){if(!o(e))return!1;var t=a(e);return t==u||t==l||t==i||t==c}var a=n(17),o=n(69),i="[object AsyncFunction]",u="[object Function]",l="[object GeneratorFunction]",c="[object Proxy]";e.exports=r},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){function r(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=u.call(e);return r&&(t?e[l]=n:delete e[l]),a}var a=n(48),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,l=a?a.toStringTag:void 0;e.exports=r},function(e,t){function n(e){return a.call(e)}var r=Object.prototype,a=r.toString;e.exports=n},function(e,t,n){function r(e){return"string"==typeof e||!o(e)&&i(e)&&a(e)==u}var a=n(17),o=n(49),i=n(18),u="[object String]";e.exports=r},function(e,t,n){function r(e){var t=a(e),n=t%1;return t===t?n?t-n:t:0}var a=n(119);e.exports=r},function(e,t,n){function r(e){return e?(e=a(e))===o||e===-o?(e<0?-1:1)*i:e===e?e:0:0===e?e:0}var a=n(120),o=1/0,i=1.7976931348623157e308;e.exports=r},function(e,t,n){function r(e){if("number"==typeof e)return e;if(i(e))return u;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=c.test(e);return n||f.test(e)?s(e.slice(2),n?2:8):l.test(e)?u:+e}var a=n(121),o=n(69),i=n(71),u=NaN,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,s=parseInt;e.exports=r},function(e,t,n){function r(e){return e?e.slice(0,a(e)+1).replace(o,""):e}var a=n(122),o=/^\s+/;e.exports=r},function(e,t){function n(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}var r=/\s/;e.exports=n},function(e,t,n){function r(e){return null==e?[]:a(e,o(e))}var a=n(124),o=n(125);e.exports=r},function(e,t,n){function r(e,t){return a(t,function(t){return e[t]})}var a=n(72);e.exports=r},function(e,t,n){function r(e){return i(e)?a(e):o(e)}var a=n(126),o=n(137),i=n(66);e.exports=r},function(e,t,n){function r(e,t){var n=i(e),r=!n&&o(e),f=!n&&!r&&u(e),d=!n&&!r&&!f&&c(e),p=n||r||f||d,g=p?a(e.length,String):[],h=g.length;for(var y in e)!t&&!s.call(e,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,h))||g.push(y);return g}var a=n(127),o=n(128),i=n(49),u=n(130),l=n(132),c=n(133),f=Object.prototype,s=f.hasOwnProperty;e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},function(e,t,n){var r=n(129),a=n(18),o=Object.prototype,i=o.hasOwnProperty,u=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return a(e)&&i.call(e,"callee")&&!u.call(e,"callee")};e.exports=l},function(e,t,n){function r(e){return o(e)&&a(e)==i}var a=n(17),o=n(18),i="[object Arguments]";e.exports=r},function(e,t,n){(function(e){var r=n(67),a=n(131),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,u=i&&i.exports===o,l=u?r.Buffer:void 0,c=l?l.isBuffer:void 0,f=c||a;e.exports=f}).call(t,n(73)(e))},function(e,t){function n(){return!1}e.exports=n},function(e,t){function n(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&a.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,a=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t,n){var r=n(134),a=n(135),o=n(136),i=o&&o.isTypedArray,u=i?a(i):r;e.exports=u},function(e,t,n){function r(e){return i(e)&&o(e.length)&&!!u[a(e)]}var a=n(17),o=n(70),i=n(18),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,e.exports=r},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){(function(e){var r=n(68),a="object"==typeof t&&t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===a,u=i&&r.process,l=function(){try{return o&&o.require&&o.require("util").types||u&&u.binding&&u.binding("util")}catch(e){}}();e.exports=l}).call(t,n(73)(e))},function(e,t,n){function r(e){if(!a(e))return o(e);var t=[];for(var n in Object(e))u.call(e,n)&&"constructor"!=n&&t.push(n);return t}var a=n(138),o=n(139),i=Object.prototype,u=i.hasOwnProperty;e.exports=r},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t,n){var r=n(140),a=r(Object.keys,Object);e.exports=a},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){"use strict";function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function a(e){"@babel/helpers - typeof";return(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})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=p();return function(){var n,r=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(19),n(12),n(27),n(28),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(31),n(32),n(33),n(34),n(35);var h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=o?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(11)),y=function(e){function t(){return o(this,t),n.apply(this,arguments)}l(t,e);var n=f(t);return u(t,[{key:"componentDidMount",value:function(){this.svg.setAttribute("focusable","false")}},{key:"render",value:function(){var e=this;return h.default.createElement("svg",{className:"bitesize-yes-svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"31.8px",height:"32px",viewBox:"0 0 31.8 32",enableBackground:"new 0 0 31.8 32",ref:function(t){e.svg=t}},h.default.createElement("polygon",{points:"12.8,28.9 31.8,6.3 28,3.1 12.2,21.9 3.2,14.4 0,18.2 \t"}))}}]),t}(h.Component),b=y;t.default=b,e.exports=t.default},function(e,t,n){"use strict";function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function a(e){"@babel/helpers - typeof";return(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})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=p();return function(){var n,r=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(19),n(12),n(27),n(28),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(31),n(32),n(33),n(34),n(35);var h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=o?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(11)),y=function(e){function t(){return o(this,t),n.apply(this,arguments)}l(t,e);var n=f(t);return u(t,[{key:"componentDidMount",value:function(){this.svg.setAttribute("focusable","false")}},{key:"render",value:function(){var e=this;return h.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"32px",height:"32px",viewBox:"0 0 32 32",enableBackground:"new 0 0 32 32",ref:function(t){e.svg=t}},h.default.createElement("g",{id:"Grid"}),h.default.createElement("g",{id:"Layer_2"},h.default.createElement("polygon",{points:"16,29 32,3 24.8,3 16,18.3 7.2,3 0,3"})))}}]),t}(h.Component),b=y;t.default=b,e.exports=t.default},function(e,t,n){var r=n(144),a=r(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=a},function(e,t,n){function r(e){return function(t){return a(i(o(t).replace(u,"")),e,"")}}var a=n(145),o=n(146),i=n(150),u=RegExp("['’]","g");e.exports=r},function(e,t){function n(e,t,n,r){var a=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++a]);++a<o;)n=t(n,e[a],a,e);return n}e.exports=n},function(e,t,n){function r(e){return(e=o(e))&&e.replace(i,a).replace(u,"")}var a=n(147),o=n(50),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=r},function(e,t,n){var r=n(148),a={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},o=r(a);e.exports=o},function(e,t){function n(e){return function(t){return null==e?void 0:e[t]}}e.exports=n},function(e,t,n){function r(e){if("string"==typeof e)return e;if(i(e))return o(e,r)+"";if(u(e))return f?f.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}var a=n(48),o=n(72),i=n(49),u=n(71),l=1/0,c=a?a.prototype:void 0,f=c?c.toString:void 0;e.exports=r},function(e,t,n){function r(e,t,n){return e=i(e),t=n?void 0:t,void 0===t?o(e)?u(e):a(e):e.match(t)||[]}var a=n(151),o=n(152),i=n(50),u=n(153);e.exports=r},function(e,t){function n(e){return e.match(r)||[]}var r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=n},function(e,t){function n(e){return r.test(e)}var r=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=n},function(e,t){function n(e){return e.match(g)||[]}var r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+r+"]",o="[a-z\\xdf-\\xf6\\xf8-\\xff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",l="[A-Z\\xc0-\\xd6\\xd8-\\xde]",c="(?:"+o+"|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])",f="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",s="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",i,u].join("|")+")[\\ufe0e\\ufe0f]?"+f+")*",d="[\\ufe0e\\ufe0f]?"+f+s,p="(?:"+["[\\u2700-\\u27bf]",i,u].join("|")+")"+d,g=RegExp([l+"?"+o+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[a,l,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[a,l+c,"$"].join("|")+")",l+"?"+c+"+(?:['’](?:d|ll|m|re|s|t|ve))?",l+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",p].join("|"),"g");e.exports=n},function(e,t,n){function r(e){var t=++o;return a(e)+t}var a=n(50),o=0;e.exports=r},function(e,t,n){"use strict";function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function a(e){"@babel/helpers - typeof";return(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})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=p();return function(){var n,r=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(19),n(12),n(27),n(28),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(31),n(32),n(33),n(34),n(35);var h=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var u=o?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(11)),y=function(e){function t(){return o(this,t),n.apply(this,arguments)}l(t,e);var n=f(t);return u(t,[{key:"componentDidMount",value:function(){this.svg.setAttribute("focusable","false")}},{key:"render",value:function(){var e=this;return h.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"31.9",height:"32",viewBox:"0 0 31.9 32",ref:function(t){e.svg=t}},h.default.createElement("path",{d:"M29 16L3 0v7.2L17.6 16 3 24.8V32z"}))}}]),t}(h.Component),b=y;t.default=b,e.exports=t.default}]);; });</script><script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-bitesize-header-view@8.125.0"]={"@babel/runtime":"7.16.7","@bbc/bitesize-branding":"12.0.0","@bbc/education-share-tools":"1.0.0","@bbc/mr-sparkle":"3.0.0","bbc-morph-bitesize-class-clip-data":"2.2.1","bbc-morph-bitesize-core-components":"12.3.0","bbc-morph-bitesize-examspec":"3.0.2","bbc-morph-bitesize-field-of-study":"1.3.2","bbc-morph-bitesize-header-data":"1.31.0","bbc-morph-bitesize-global-navigation-view":"1.54.1","bbc-morph-bitesize-level":"3.2.0","bbc-morph-bitesize-personalisation-client-tools":"11.9.1","bbc-morph-bitesize-programme-of-study":"4.2.1","bbc-morph-bitesize-this-terms-topics-data":"2.5.0","bbc-morph-blocks-article-data":"5.12.0","classnames":"2.3.1","lodash":"4.17.21","lodash.endswith":"4.2.1","morph-container":"4.0.0","react":"0.14.7","react-dom":"0.14.7"}; !function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},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=98)}([function(t,e){t.exports=React},function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){t.exports=n(234)()},function(t,e,n){var r=n(61),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){n(82)("asyncIterator")},function(t,e,n){"use strict";var r=n(7),o=n(13),i=n(12),u=n(206),a=n(86),c=n(210).KEY,f=n(34),s=n(32),l=n(211),p=n(14),d=n(44),h=n(83),y=n(82),v=n(212),g=n(218),b=n(33),m=n(15),_=n(16),w=n(45),x=n(47),O=n(219),j=n(222),P=n(223),k=n(11),T=n(48),E=P.f,S=k.f,z=j.f,A=r.Symbol,I=r.JSON,C=I&&I.stringify,M=d("_hidden"),R=d("toPrimitive"),W={}.propertyIsEnumerable,D=s("symbol-registry"),L=s("symbols"),B=s("op-symbols"),N=Object.prototype,F="function"==typeof A,q=r.QObject,U=!q||!q.prototype||!q.prototype.findChild,$=i&&f(function(){return 7!=O(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=E(N,e);r&&delete N[e],S(t,e,n),r&&t!==N&&S(N,e,r)}:S,G=function(t){var e=L[t]=O(A.prototype);return e._k=t,e},K=F&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},H=function(t,e,n){return t===N&&H(B,e,n),b(t),e=w(e,!0),b(n),o(L,e)?(n.enumerable?(o(t,M)&&t[M][e]&&(t[M][e]=!1),n=O(n,{enumerable:x(0,!1)})):(o(t,M)||S(t,M,x(1,{})),t[M][e]=!0),$(t,e,n)):S(t,e,n)},Z=function(t,e){b(t);for(var n,r=v(e=_(e)),o=0,i=r.length;i>o;)H(t,n=r[o++],e[n]);return t},V=function(t,e){return void 0===e?O(t):Z(O(t),e)},Y=function(t){var e=W.call(this,t=w(t,!0));return!(this===N&&o(L,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(L,t)||o(this,M)&&this[M][t])||e)},J=function(t,e){if(t=_(t),e=w(e,!0),t!==N||!o(L,e)||o(B,e)){var n=E(t,e);return!n||!o(L,e)||o(t,M)&&t[M][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=z(_(t)),r=[],i=0;n.length>i;)o(L,e=n[i++])||e==M||e==c||r.push(e);return r},Q=function(t){for(var e,n=t===N,r=z(n?B:_(t)),i=[],u=0;r.length>u;)!o(L,e=r[u++])||n&&!o(N,e)||i.push(L[e]);return i};F||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===N&&e.call(B,n),o(this,M)&&o(this[M],t)&&(this[M][t]=!1),$(this,t,x(1,n))};return i&&U&&$(N,t,{configurable:!0,set:e}),G(t)},a(A.prototype,"toString",function(){return this._k}),P.f=J,k.f=H,n(92).f=j.f=X,n(50).f=Y,n(91).f=Q,i&&!n(43)&&a(N,"propertyIsEnumerable",Y,!0),h.f=function(t){return G(d(t))}),u(u.G+u.W+u.F*!F,{Symbol:A});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)d(tt[et++]);for(var nt=T(d.store),rt=0;nt.length>rt;)y(nt[rt++]);u(u.S+u.F*!F,"Symbol",{for:function(t){return o(D,t+="")?D[t]:D[t]=A(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),u(u.S+u.F*!F,"Object",{create:V,defineProperty:H,defineProperties:Z,getOwnPropertyDescriptor:J,getOwnPropertyNames:X,getOwnPropertySymbols:Q}),I&&u(u.S+u.F*(!F||f(function(){var t=A();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(m(e)||void 0!==t)&&!K(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),r[1]=e,C.apply(I,r)}}),A.prototype[R]||n(46)(A.prototype,R,A.prototype.valueOf),l(A,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!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){function r(t,e){var n=i(t,e);return o(n)?n:void 0}var o=n(114),i=n(119);t.exports=r},function(t,e,n){function r(t){return null==t?void 0===t?c:a:f&&f in Object(t)?i(t):u(t)}var o=n(21),i=n(115),u=n(116),a="[object Null]",c="[object Undefined]",f=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){var r=n(33),o=n(84),i=n(45),u=Object.defineProperty;e.f=n(12)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(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){t.exports=!n(34)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(213),o=n(214);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.openWindow=void 0;var r=function(t,e){var n=(t-e)/2;return n>0?Math.floor(n):0},o=function(t,e){if(window){var n=window.innerWidth||window.document.documentElement.clientWidth||window.document.body.clientWidth,o=window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight,i=r(n,575),u=r(o,400),a="status=1,width=".concat(575,",height=").concat(400,",left=").concat(i,",top=").concat(u);window.open(t,e,a).moveTo(i,u)}};e.openWindow=o},function(t,e,n){"use strict";var r=n(51),o=n(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(52)),u=o(n(53)),a=o(n(54)),c=o(n(55)),f=o(n(56)),s=o(n(237)),l=r(n(0)),p=o(n(29)),d=n(0).PropTypes||n(2),h=function(t){var e=t.icon,n=t.lowerCaseName,r=t.standalone,o=(0,p.default)("ec-share-icon__svg",(0,s.default)({"ec-share-icon__svg--standalone":r},"ec-share-icon__svg--".concat(n),n));return l.default.createElement("span",{className:o},e)};h.propTypes={icon:d.element.isRequired,lowerCaseName:d.string.isRequired,standalone:d.bool.isRequired};var y=function(t){function e(t){var n;return(0,i.default)(this,e),n=(0,a.default)(this,(0,c.default)(e).call(this,t)),n.buttonRef=null,n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"render",value:function(){var t=this,e=this.props,n=e.icon,r=e.name,o=e.standalone,i=e.onClick,u=e.position,a=(r||"").toLowerCase(),c=(0,p.default)("ec-share-button","ec-share-button--transparent",(0,s.default)({},"ec-share-button--".concat(a),a)),f=(0,p.default)("ec-share-cta-text",(0,s.default)({},"ec-share-cta-text--display-only-to-screen-reader",o));return l.default.createElement("button",{ref:function(e){t.buttonRef=e},className:c,"data-bbc-container":"Share Tools","data-bbc-title":r,"data-bbc-metadata":JSON.stringify({CHD:"".concat(o?"button":"menu-item",":: ").concat(u)}),"data-bbc-result":o?"share-pop-up":"share-menu","data-bbc-ignore-views":1,onClick:function(){i()}},l.default.createElement(h,{icon:n,lowerCaseName:a,standalone:o}),l.default.createElement("span",{className:f},r))}}]),e}(l.Component);y.propTypes={icon:d.node.isRequired,name:d.string.isRequired,standalone:d.bool.isRequired,onClick:d.func.isRequired,position:d.number.isRequired},y.defaultProps={dataBbc:{}};var v=y;e.default=v},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(104),i=n(105),u=n(106),a=n(107),c=n(108);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=u,r.prototype.has=a,r.prototype.set=c,t.exports=r},function(t,e,n){function r(t,e){for(var n=t.length;n--;)if(o(t[n][0],e))return n;return-1}var o=n(59);t.exports=r},function(t,e,n){var r=n(3),o=r.Symbol;t.exports=o},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){var r=n(8),o=r(Object,"create");t.exports=o},function(t,e,n){function r(t,e){var n=t.__data__;return o(e)?n["string"==typeof e?"string":"hash"]:n.map}var o=n(128);t.exports=r},function(t,e,n){function r(t){return u(t)?o(t):i(t)}var o=n(149),i=n(156),u=n(39);t.exports=r},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){function r(t){return"symbol"==typeof t||i(t)&&o(t)==u}var o=n(9),i=n(10),u="[object Symbol]";t.exports=r},function(t,e,n){function r(t){if("string"==typeof t||o(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}var o=n(27),i=1/0;t.exports=r},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)){if(r.length){var u=n.apply(null,r);u&&t.push(u)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var a in r)i.call(r,a)&&r[a]&&t.push(a);else t.push(r.toString())}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?(n.default=n,t.exports=n):(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e){t.exports=Morph.modules["prop-types@15.7.2"]},function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(31),o=n(7),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(43)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(15);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(8),o=n(3),i=r(o,"Map");t.exports=i},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(120),i=n(127),u=n(129),a=n(130),c=n(131);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=u,r.prototype.has=a,r.prototype.set=c,t.exports=r},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e,n){function r(t){return null!=t&&i(t.length)&&!o(t)}var o=n(60),i=n(38);t.exports=r},function(t,e,n){function r(t,e){if(o(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!u.test(t)||null!=e&&t in Object(e))}var o=n(4),i=n(27),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=r},function(t,e,n){function r(t){var e=o(t),n=e%1;return e===e?n?e-n:e:0}var o=n(178);t.exports=r},function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}t.exports=n},function(t,e){t.exports=!1},function(t,e,n){var r=n(32)("wks"),o=n(14),i=n(7).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(15);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(11),o=n(47);t.exports=n(12)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},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 r=n(87),o=n(49);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}function o(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=r(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}var i=n(96).default;t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){function r(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}var o=n(96).default,i=n(97);t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){function r(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}var o=n(233);t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){function r(t){return"function"==typeof t?t:null==t?u:"object"==typeof t?a(t)?i(t[0],t[1]):o(t):c(t)}var o=n(102),i=n(166),u=n(173),a=n(4),c=n(174);t.exports=r},function(t,e,n){function r(t){var e=this.__data__=new o(t);this.size=e.size}var o=n(19),i=n(109),u=n(110),a=n(111),c=n(112),f=n(113);r.prototype.clear=i,r.prototype.delete=u,r.prototype.get=a,r.prototype.has=c,r.prototype.set=f,t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t){if(!i(t))return!1;var e=o(t);return e==a||e==c||e==u||e==f}var o=n(9),i=n(22),u="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",f="[object Proxy]";t.exports=r},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(36))},function(t,e){function n(t){if(null!=t){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var r=Function.prototype,o=r.toString;t.exports=n},function(t,e,n){function r(t,e,n,u,a){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:o(t,e,n,u,r,a))}var o=n(132),i=n(10);t.exports=r},function(t,e,n){function r(t,e,n,r,f,s){var l=n&a,p=t.length,d=e.length;if(p!=d&&!(l&&d>p))return!1;var h=s.get(t),y=s.get(e);if(h&&y)return h==e&&y==t;var v=-1,g=!0,b=n&c?new o:void 0;for(s.set(t,e),s.set(e,t);++v<p;){var m=t[v],_=e[v];if(r)var w=l?r(_,m,v,e,t,s):r(m,_,v,t,e,s);if(void 0!==w){if(w)continue;g=!1;break}if(b){if(!i(e,function(t,e){if(!u(b,e)&&(m===t||f(m,t,n,r,s)))return b.push(e)})){g=!1;break}}else if(m!==_&&!f(m,_,n,r,s)){g=!1;break}}return s.delete(t),s.delete(e),g}var o=n(133),i=n(136),u=n(137),a=1,c=2;t.exports=r},function(t,e,n){var r=n(151),o=n(10),i=Object.prototype,u=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return o(t)&&u.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},function(t,e,n){(function(t){var r=n(3),o=n(152),i="object"==typeof e&&e&&!e.nodeType&&e,u=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=u&&u.exports===i,c=a?r.Buffer:void 0,f=c?c.isBuffer:void 0,s=f||o;t.exports=s}).call(e,n(26)(t))},function(t,e){function n(t,e){var n=typeof t;return!!(e=null==e?r:e)&&("number"==n||"symbol"!=n&&o.test(t))&&t>-1&&t%1==0&&t<e}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,e,n){var r=n(153),o=n(154),i=n(155),u=i&&i.isTypedArray,a=u?o(u):r;t.exports=a},function(t,e,n){function r(t){return t===t&&!o(t)}var o=n(22);t.exports=r},function(t,e){function n(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}t.exports=n},function(t,e,n){function r(t,e,n){var r=null==t?void 0:o(t,e);return void 0===r?n:r}var o=n(72);t.exports=r},function(t,e,n){function r(t,e){e=o(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[i(e[n++])];return n&&n==r?t:void 0}var o=n(73),i=n(28);t.exports=r},function(t,e,n){function r(t,e){return o(t)?t:i(t,e)?[t]:u(a(t))}var o=n(4),i=n(40),u=n(167),a=n(74);t.exports=r},function(t,e,n){function r(t){return null==t?"":o(t)}var o=n(75);t.exports=r},function(t,e,n){function r(t){if("string"==typeof t)return t;if(u(t))return i(t,r)+"";if(a(t))return s?s.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}var o=n(21),i=n(76),u=n(4),a=n(27),c=1/0,f=o?o.prototype:void 0,s=f?f.toString:void 0;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}t.exports=n},function(t,e){function n(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}t.exports=n},function(t,e){t.exports=Morph.modules["bbc-morph-promise@1.0.6"]},function(t,e,n){"use strict";var r=n(42);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(78)),i=function(){return window.Promise||(window.Promise=o.default),new window.Promise(function(t,e){requirejs(["idcta-v2/id-config"],function(n){n.getConfigAsync().then(function(n){n["id-availability"]&&"RED"!==n["id-availability"]?t():e(new Error("Flagpole RED or value missing"))})},function(t){e(t)})})},u={checkFlagpole:i};e.default=u,t.exports=e.default},function(t,e){t.exports=Morph.modules["whatwg-fetch@2.0.4"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={live:{uasApiKey:"f84u0qqpuquhr",newtonApiKey:"hY7m6nL3dPAXyn9kK763kW65tu3hG0A0",quizApiKey:"x6g18dFNAN8pufHLtyHtT7t4bhpLzZTna1vtFpKi"},test:{uasApiKey:"rn5lii9febqql",newtonApiKey:"0YIvZUWEyGJxVGIyyuHIHKANb4cshSXt",quizApiKey:"gyJA7CAmNW7S43zF2BArI9FhTGzxG0ehmfEKGI8c"}},o=function(){return"undefined"!=typeof window&&window.Morph&&""!==window.Morph.config.pushEnv?window.Morph.config.pushEnv:"test"},i=function(){return window&&window.location&&window.location.hostname&&window.location.hostname.indexOf("bbc.co.uk")>-1?"co.uk":"com"},u={test:".test",live:""},a=function(){return u[o()]},c=function(){return r[o()].uasApiKey},f=function(){return"https://activity".concat(a(),".api.bbc.").concat(i())},s=function(){return"https://newton".concat(a(),".api.bbc.").concat(i())},l=function(){return r[o()].newtonApiKey},p=function(){return"https://idcta".concat(a(),".api.bbc.co.uk")},d=function(){return"https://push".concat(a(),".api.bbci.co.uk")},h=function(){return"https://www".concat(a(),".bbc.").concat(i())},y=function(){return"https://bitesize".concat(a(),".api.bbci.co.uk")},v=function(){return r[o()].quizApiKey},g={getUASHost:f,getUASApiKey:c,getNewtonHost:s,getNewtonApiKey:l,getIdHost:p,getMorphPushProxyHost:d,getBBCHost:h,getEnv:o,getQuizHost:y,getQuizApiKey:v};e.default=g,t.exports=e.default},function(t,e,n){var r=n(7),o=n(31),i=n(43),u=n(83),a=n(11).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e,n){e.f=n(44)},function(t,e,n){t.exports=!n(12)&&!n(34)(function(){return 7!=Object.defineProperty(n(85)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(15),o=n(7).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(7),o=n(46),i=n(13),u=n(14)("src"),a=n(207),c=(""+a).split("toString");n(31).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var f="function"==typeof n;f&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(f&&(i(n,u)||o(n,u,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||a.call(this)})},function(t,e,n){var r=n(13),o=n(16),i=n(215)(!1),u=n(90)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),c=0,f=[];for(n in a)n!=u&&r(a,n)&&f.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~i(f,n)||f.push(n));return f}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(32)("keys"),o=n(14);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(87),o=n(49).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(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&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(5),n(6);var p=function(t){return t&&t.__esModule?t:{default:t}}(n(0)),d=function(t){function e(){return o(this,e),a(this,f(e).apply(this,arguments))}return s(e,t),u(e,[{key:"componentDidMount",value:function(){this.node.setAttribute("focusable","false")}},{key:"render",value:function(){var t=this;return p.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"18px",height:"18px",viewBox:"0 0 32 32",enableBackground:"new 0 0 32 32",xmlSpace:"preserve",ref:function(e){t.node=e}},p.default.createElement("polygon",{points:"32,3.5 28.5,0 16,12.5 3.5,0 0,3.5 12.5,16 0,28.5 3.5,32 16,19.5 28.5,32 32,28.5 19.5,16"}))}}]),e}(p.default.Component),h=d;e.default=h,t.exports=e.default},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(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&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(5),n(6);var p=function(t){return t&&t.__esModule?t:{default:t}}(n(0)),d=function(t){function e(){return o(this,e),a(this,f(e).apply(this,arguments))}return s(e,t),u(e,[{key:"componentDidMount",value:function(){this.node.setAttribute("focusable","false")}},{key:"render",value:function(){var t=this;return p.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"18px",height:"26px",viewBox:"0 0 32 48",enableBackground:"new 0 0 32 48",xmlSpace:"preserve",ref:function(e){t.node=e}},p.default.createElement("polygon",{points:"32,3.5 28.5,0 16,12.5 3.5,0 0,3.5 12.5,16 0,28.5 3.5,32 16,19.5 28.5,32 32,28.5 19.5,16"}),p.default.createElement("rect",{y:"43.8",x:"0",height:"4.2",width:"32"}))}}]),e}(p.default.Component),h=d;e.default=h,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(0)),i=(r(n(30)),function(t){var e=t.onClick,n=t.text,r=t.isEnabled,i=t.className,u=t.children,a=t.aria;return o.default.createElement("button",{type:"button",className:"bitesize__button ".concat(i),disabled:!r,onClick:e,"aria-live":a},u,n)});i.defaultProps={className:"",isEnabled:!0,text:"",aria:"off",children:""};var u=i;e.default=u,t.exports=e.default},function(t,e){function n(e){"@babel/helpers - typeof";return t.exports=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.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},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,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99),o=n.n(r);Morph.modules["bbc-morph-bitesize-header-view@8.125.0"]=o.a},function(t,e,n){"use strict";t.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},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=39)}([function(t,e){t.exports=n(0)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(20)),o={"en-GB":{counter:{clips:{plural:"$numberOfClassClips Classroom videos",singular:"$numberOfClassClips Classroom video"},guides:{plural:"$numberOfLearnerGuides learner guides",singular:"$numberOfLearnerGuides learner guide"}},partOf:"Part of","class-clips":"Classroom videos",duration:"Duration $clipDuration","Learn & revise":"Learn & revise",buttonText:{added:"Added",addToMyBitesize:"Add to My Bitesize",adding:"Adding",removing:"Removing",remove:"Remove"},errorSavingNotification:"Sorry, we haven't been able to save your changes",signInUpsellToolTipTitle:"Add this learner guide to My Bitesize",signInUpsellToolTipText:"You need to be signed in to add this to My Bitesize",shareTools:{ctaText:"Share",headerText:"Share this with",readMoreText:"Read more about sharing",copyLinkText:"Copy link",copiedText:"Copied!"}},"ga-GB":{counter:{clips:{plural:"$numberOfClassClips Físeáin Ranga",singular:"$numberOfClassClips Físeán Ranga"},guides:{plural:"$numberOfLearnerGuides treoir d'fhoghlaimeoirí",singular:"$numberOfLearnerGuides treoir d'fhoghlaimeoirí"}},partOf:"Cuid de","class-clips":"Físeáin Ranga",duration:"Fad $clipDuration","Learn & revise":"Foghlaim",buttonText:{added:"Curtha leis",addToMyBitesize:"Cuir le Mo Bitesize",adding:"Ag cur leis",removing:"Á bhaint",remove:"Bain"},errorSavingNotification:"Buartha, níor éirigh linn d'athruithe a shábháil",signInUpsellToolTipTitle:"Add this learner guide to My Bitesize",signInUpsellToolTipText:"You need to be signed in to add this to My Bitesize",shareTools:{ctaText:"Roinn",headerText:"Roinn é seo le",readMoreText:"Léigh níos mó maidir le comhroinnt",copyLinkText:"Cóipeáil an nasc",copiedText:"Cóipeáilte!"}},"gd-GB":{counter:{clips:{plural:"$numberOfClassClips Bhidiothan clas",singular:"$numberOfClassClips Bhidio clas"},guides:{plural:"$numberOfLearnerGuides Iùil luchd-ionnsachaidh",singular:"$numberOfLearnerGuides Iùl Luchd-ionnsachaidh"}},partOf:"Pàirt de","class-clips":"Bhidiothan clas",duration:"Fad $clipDuration","Learn & revise":"Ionnsaich",buttonText:{added:"Air a chur-ris",addToMyBitesize:"Cuir ri Bitesize Agamsa",adding:"A' cur-ris",removing:"A' dubhadh às",remove:"Dubh às"},errorSavingNotification:"Duilich, cha deach againn air d' atharrachaidhean a shàbhaladh",signInUpsellToolTipTitle:"Cuir an t-iùil-ionnsachaidh seo ri Bitesize Agamsa",signInUpsellToolTipText:"Feumaidh tu logadh a-steach airson seo a chur ri Bitesize Agamsa",shareTools:{ctaText:"Sgaoil",headerText:"Sgaoil seo gu",readMoreText:"Leugh tuilleadh mu sgaoileadh",copyLinkText:"Leth-bhreac den cheangal",copiedText:"Leth-bhreac dèanta!"}},"cy-GB":{counter:{clips:{plural:"$numberOfClassClips Fideos Ystafell ddosbarth",singular:"$numberOfClassClips Fideo Ystafell ddosbarth"},guides:{plural:"$numberOfLearnerGuides o ganllawiau i ddysgwyr",singular:"$numberOfLearnerGuides canllaw i ddysgwyr"}},partOf:"Rhan o bwnc",partOfWelshAlternative:"Rhan o'r adran","class-clips":"Fideos Ystafell ddosbarth",duration:"Hyd $clipDuration","Learn & revise":"Dysgu ac adolygu",buttonText:{added:"Wedi ychwanegu",addToMyBitesize:"Ychwanegu i Fy Bitesize",adding:"Wrthi'n ychwanegu",removing:"Wrthi'n dileu",remove:"Dileu"},errorSavingNotification:"Dyw dy newidiadau ddim wedi cael eu cadw",signInUpsellToolTipTitle:"Ychwanegu’r canllaw dysgu yma i Fy Bitesize",signInUpsellToolTipText:"Rhaid i ti fewngofnodi i ychwanegu hwn i Fy Bitesize",shareTools:{ctaText:"Rhannu",headerText:"Rhannu hwn gyda",readMoreText:"Darllen mwy am rannu",copyLinkText:"Copïo’r ddolen",copiedText:"Wedi copïo"}}},i=function(){return{"en-gb":"en-GB","ga-gb":"ga-GB","gd-gb":"gd-GB","cy-gb":"cy-GB"}[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase()]||"en-GB"},u=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=(0,r.default)(o,"".concat(i(t),".").concat(e),"");return Object.keys(n).reduce(function(t,e){return t.replace("$".concat(e),n[e])},u)}};e.default=u,t.exports=e.default},function(t,e){t.exports=n(100)},function(t,e){t.exports=n(29)},function(t,e){t.exports=n(182)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.validateDuration=e.formatDuration=void 0;var r=/PT(?:(\d+)H)?(?:(\d+)M)?(\d+)S?/,o=function(t){return"string"==typeof t&&t.match(r)||!1};e.validateDuration=o;var i=function(t){var e=o(t);if(!e)return"";e.shift();var n=e.filter(function(t){return void 0!==t});return n.map(function(e,r){var o=e&&1===e.toString().length?"0".concat(e):e;return r<n.length-1?"".concat(o,":"):1===n.length&&t.indexOf("M")>0?"".concat(o,":00"):1===n.length&&t.indexOf("S")>0?"00:".concat(o):o}).concat().join("")};e.formatDuration=i},function(t,e){t.exports=n(189)},function(t,e){t.exports=n(190)},function(t,e,n){var r=function(t){return t&&t.__esModule?t:{default:t}}(n(2)),o=["https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/10435de9-7258-4254-957c-203067baccdf#id","https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/543d8d8c-44ed-4020-8328-f14615098c48#id","https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/8328092b-cddc-4201-a05e-db0c075cd5bd#id","https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/999a43f6-53ae-4cd2-a81c-a65886423094#id","https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/a3009169-62f3-4264-b6e8-56b6043cbabc#id","https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/f338d1b2-1330-49a7-91f9-0c17f4fe33bb#id","https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/405f00e2-d547-4b11-85c6-3cc41c2c4c3d#id","https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/8ff85747-2ac0-44ed-8b4f-e06ad21dee61#id","https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/893413eb-36d3-4aac-9b5c-fe70a75665b9#id","https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/fec8c8c7-8826-443b-8649-faaa98627e16#id"],i=[{label:"Year 1 and P2 lessons",slug:"year-1-and-p2-lessons",zid:"zjpqqp3",url:"https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/10435de9-7258-4254-957c-203067baccdf#id"},{label:"Year 2 and P3 lessons",slug:"year-2-and-p3-lessons",zid:"z7s22sg",url:"https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/543d8d8c-44ed-4020-8328-f14615098c48#id"},{label:"Year 3 and P4 lessons",slug:"year-3-and-p4-lessons",zid:"zmyxxyc",url:"https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/8328092b-cddc-4201-a05e-db0c075cd5bd#id"},{label:"Year 4 and P5 lessons",slug:"year-4-and-p5-lessons",zid:"z63tt39",url:"https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/999a43f6-53ae-4cd2-a81c-a65886423094#id"},{label:"Year 5 and P6 lessons",slug:"year-5-and-p6-lessons",zid:"zhgppg8",url:"https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/a3009169-62f3-4264-b6e8-56b6043cbabc#id"},{label:"Year 6 and P7 lessons",slug:"year-6-and-p7-lessons",zid:"zncsscw",url:"https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/f338d1b2-1330-49a7-91f9-0c17f4fe33bb#id"},{label:"Year 7 and S1 lessons",slug:"year-7-and-s1-lessons",zid:"zf9yy9q",url:"https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/405f00e2-d547-4b11-85c6-3cc41c2c4c3d#id"},{label:"Year 8 and S2 lessons",slug:"year-8-and-s2-lessons",zid:"zvdbbdm",url:"https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/8ff85747-2ac0-44ed-8b4f-e06ad21dee61#id"},{label:"Year 9 and S3 lessons",slug:"year-9-and-s3-lessons",zid:"zbjrrj6",url:"https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/893413eb-36d3-4aac-9b5c-fe70a75665b9#id"},{label:"Year 10 and S4 lessons",slug:"year-10-and-s4-lessons",zid:"zr7447h",url:"https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/things/fec8c8c7-8826-443b-8649-faaa98627e16#id"}],u=function(t){return(0,r.default)(t,function(t){return o.indexOf(t.url)>-1})},a=function(t){var e=(0,r.default)(i,function(e){return e.url===t.url});return e?{label:e.label,zid:e.zid,path:"/bitesize/tags/".concat(e.zid,"/").concat(e.slug)}:null};t.exports={findAgeTag:u,getExtraData:a}},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(7)),i=r(n(6)),u=function(t,e){return i.default.getDetails().then(function(n){return n.hasPersonalisationEnabled?o.default.postReadForAnArticle(t,e):Promise.resolve()})},a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"favourited",n=arguments.length>2?arguments[2]:void 0;return o.default.postFavourite({id:t,type:n,action:e})},c={submitRead:u,submitFavourite:a};e.default=c,t.exports=e.default},function(t,e){t.exports=n(197)},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(i=function(t){return t?n:e})(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(){return f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f.apply(this,arguments)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function d(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=b();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return g(t)}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var _=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=i(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(0)),w=o(n(3)),x=o(n(12)),O=o(n(13)),j=o(n(14)),P=o(n(4)),k=n(15),T=o(n(16)),E=o(n(37)),S=function(t,e){return(0,w.default)("header-image-no-logo",{"header-image-container--in-app":t},{"header-image-container--no-illustration":!e})},z=function(t){return(0,w.default)("bitesize-header--pageType",{"bitesize-header--primary-index":"primary-index"===t},{"bitesize-header--secondary-index":"secondary-index"===t},{"bitesize-header--this-terms-topics":"this-terms-topics"===t})},A=function(t,e){return(0,w.default)("bitesize-header-background",t?"bitesize-header-background--phase-".concat(t.toLowerCase()):"",{"bitesize-header-background--in-app":e})},I=function(t){var e=["programme-of-study","examspecs","primary-index","secondary-index","this-terms-topics","course","subject-courses"];return(0,P.default)(e,t)},C=function(t,e){var n=["zgkw2hv","zjxhfg8","z6svr82","z826n39","zv48q6f","z2pfb9q","zyhbwmn","zvnrq6f","zwxhfg8","zdm3nrd","zbkw2hv","z7hs34j","z39d7ty","zxsvr82","zsbc87h"],r=["primary-index","secondary-index","this-terms-topics"];return(0,P.default)(n,e)||(0,P.default)(r,t)},M=function(t,e){return I(t)&&!C(t,e)},R=function(t){function e(t){var n;return s(this,e),n=r.call(this,t),n.state={notificationMessage:"",notificationError:!1},n}d(e,t);var r=y(e);return p(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.phase,r=t.fosZid;n(38);var o=e.toLowerCase();window.mrSparkle({phase:o,selector:".bitesize-header-background",zid:r})}},{key:"render",value:function(){var t=this,e=this.props,n=e.phase,r=e.isInApp,o=e.fosZid,i=e.isPreview,u=e.pageType,c=e.headerData,s=e.zid,l=(e.language,e.href,this.state),p=l.notificationMessage,d=l.notificationError,h=["index-page","flashcards","tags","collection-index","secondary-games"],y=!r&&["primary-index","secondary-index","quizzes"].indexOf(u)<0,v=function(e,n){t.setState({notificationMessage:e,notificationError:n})},g=I(u),b=M(u,s);return _.default.createElement("div",{className:z(u)},_.default.createElement("div",{className:A(n,r)}),_.default.createElement(j.default,{message:p,notificationClearedAction:function(){t.state.notificationMessage="",t.state.notificationError=!1},isError:d}),_.default.createElement("div",null,!r&&_.default.createElement(x.default,f({},this.props,{headerData:c})),_.default.createElement(O.default,{fosZid:o,className:S(r,g)},i&&_.default.createElement("p",{className:"preview-panel"},"THIS IS A PREVIEW PAGE"),h.indexOf(u)<0&&_.default.createElement(T.default,f({},this.props,{displayPartialWidth:b,displaySubjectIllustration:g,setNotificationMessage:v,showPartOf:y})),g&&_.default.createElement("span",{className:"primary-index"===u?"primary-index-header-wrapper":""},_.default.createElement(E.default,{pageHasPartialWidthContextPanel:b,url:(0,k.getIllustrationUrl)(a({},this.props))})))))}}]),e}(_.Component);R.displayName="Header",R.defaultProps={description:"",mobileDescription:"",zid:null,topicId:null,label:"",isPreview:void 0,numberOfClassClips:0,numberOfLearnerGuides:0,hasTopics:!1,fosZid:"",subdirectory:"education",globalNav:"false",phase:"",isTaggedWithMultipleTopics:!1,headerData:{title:"",href:"",children:[{href:"",title:""}]},href:""},R.propTypes={href:_.PropTypes.string,description:_.PropTypes.string,mobileDescription:_.PropTypes.string,fosZid:_.PropTypes.string,label:_.PropTypes.string,language:_.PropTypes.string.isRequired,numberOfClassClips:_.PropTypes.number,numberOfLearnerGuides:_.PropTypes.number,hasTopics:_.PropTypes.bool,pageType:_.PropTypes.string.isRequired,zid:_.PropTypes.string,topicId:_.PropTypes.string,isPreview:_.PropTypes.string,subdirectory:_.PropTypes.string,globalNav:_.PropTypes.string,phase:_.PropTypes.string,isInApp:_.PropTypes.bool.isRequired,isTaggedWithMultipleTopics:_.PropTypes.bool,headerData:_.PropTypes.shape({title:_.PropTypes.string.isRequired,href:_.PropTypes.string.isRequired,children:_.PropTypes.arrayOf(_.PropTypes.shape({title:_.PropTypes.string.isRequired,href:_.PropTypes.string.isRequired})).isRequired})};var W=R;e.default=W,t.exports=e.default},function(t,e){t.exports=n(202)},function(t,e){t.exports=n(203)},function(t,e){t.exports=n(205)},function(t,e,n){var r=function(t){return"primary-index"===t.pageType?"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/images/phases/primary/primary-index-alt.png":"secondary-index"===t.pageType?"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/images/phases/secondary/".concat(t.pageType,".svg"):"this-terms-topics"===t.pageType?"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/images/svgs/this-terms-topics.svg":"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/images/svgs/subjects/v2/".concat(t.phase.toLowerCase(),"/").concat(t.fosZid,".svg")};t.exports={getIllustrationUrl:r}},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(i=function(t){return t?n:e})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=i(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(0)),a=o(n(4)),c=o(n(3)),f=o(n(17)),s=o(n(18)),l=o(n(22)),p=n(5),d=o(n(23)),h=o(n(25)),y=o(n(35)),v=function(t,e,n){var r="404"!==t,o=""!==e;return r&&o&&!n},g=function(t,e,n){var r=["z98jmp3","z6gw2hv","zdpp34j","z8w76sg","zp3d7ty","z8hhvcw","zkdqxnb","zqq4wxs"];return!n&&(0,a.default)(r,t)&&"guide"===e},b=function(t,e){var n=["zmnmmfr","zvqgsk7","zknj4xs"];return!e&&!(0,a.default)(n,t)},m=function(t,e,n){var r=t;return e&&(r=r.replace(new RegExp("^(".concat(e,"\\s)([\\-|\\–]\\s)?"),"g"),"").trim()),n&&(r=r.replace(new RegExp("(\\s[\\-|\\–])?(\\s\\b".concat(n,")?$"),"g"),"")),r},_=function(t,e){return(0,c.default)("context-panel".concat(t?" context-panel--partial-width":""),{"context-panel-primary-index":"primary-index"===e},{"context-panel-secondary-index":"secondary-index"===e})},w=function(t,e){return!t&&e?"context-panel__info-container":null},x=function(t){return"context-panel__description".concat(["primary-index","secondary-index"].indexOf(t)<0?"":" context-panel__description--large")},O=function(t){return"context-panel__mobile-description".concat(["primary-index","secondary-index"].indexOf(t)<0?"":" context-panel__mobile-description--large")},j=function(t){var e=t.contentId,n=t.description,r=t.mobileDescription,o=t.hasTopics,i=t.label,a=t.language,c=t.levelId,j=t.levelLabel,P=t.examspecLabel,k=t.numberOfClassClips,T=t.numberOfLearnerGuides,E=t.pageType,S=t.zid,z=t.duration,A=t.subdirectory,I=t.isInApp,C=t.setNotificationMessage,M=t.showPartOf,R=t.displayPartialWidth,W=t.displaySubjectIllustration,D=m(i,j,P);return u.default.createElement("header",{className:_(R,E)},v(E,j,I)&&u.default.createElement(f.default,t),u.default.createElement("div",{className:w(R,W)},u.default.createElement("div",{className:"context-panel__header-container"},"guide"===E&&u.default.createElement("h2",{className:"context-panel__header"},D),"guide"!==E&&u.default.createElement("h1",{className:"context-panel__header"},D)),n&&u.default.createElement("div",{className:"context-panel__description-container"},u.default.createElement("p",{className:x(E)},n)),r&&u.default.createElement("div",{className:"context-panel__mobile-description-container"},u.default.createElement("p",{className:O(E)},r)),M&&u.default.createElement(d.default,t),!o&&("clips"===E||T>0)&&u.default.createElement(s.default,{subdirectory:A,language:a,numberOfClassClips:k,numberOfLearnerGuides:T,pageType:E,zid:S}),!o&&(0,p.validateDuration)(z)&&u.default.createElement(l.default,{duration:z,language:a}),b(S,I)&&u.default.createElement(h.default,{contentId:e,pageType:E,setNotificationMessage:C,language:a}),g(c,E,I)&&u.default.createElement(y.default,{zid:e,language:a})))};j.displayName="ContextPanel",j.defaultProps={contentId:"",description:"",mobileDescription:"",numberOfClassClips:0,numberOfLearnerGuides:0,hasTopics:!1,zid:"",topicId:"",levelLabel:"",examspecLabel:"",subdirectory:"bitesize",examspecId:"",levelId:"",duration:"",isInApp:!1,showPartOf:!0,displaySubjectIllustration:!1},j.propTypes={contentId:u.PropTypes.string,description:u.PropTypes.string,mobileDescription:u.PropTypes.string,label:u.PropTypes.string.isRequired,language:u.PropTypes.string.isRequired,numberOfClassClips:u.PropTypes.number,numberOfLearnerGuides:u.PropTypes.number,hasTopics:u.PropTypes.bool,pageType:u.PropTypes.string.isRequired,zid:u.PropTypes.string,topicId:u.PropTypes.string,levelLabel:u.PropTypes.string,examspecLabel:u.PropTypes.string,subdirectory:u.PropTypes.string,examspecId:u.PropTypes.string,levelId:u.PropTypes.string,duration:u.PropTypes.string,isInApp:u.PropTypes.bool,setNotificationMessage:u.PropTypes.func.isRequired,showPartOf:u.PropTypes.bool,displayPartialWidth:u.PropTypes.bool.isRequired,displaySubjectIllustration:u.PropTypes.bool};var P=j;e.default=P,t.exports=e.default},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(i,a,c):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}(n(0)),u=function(t){var e=t.levelLabel,n=t.levelId,r=t.yearId,o=t.examspecLabel,u=t.examspecId,a=t.subdirectory;return i.default.createElement("div",{className:"level-filter"},i.default.createElement("div",{className:"level-filter__items"},i.default.createElement("div",{className:"level-filter__item"},i.default.createElement("a",{className:"level-filter__item-level",href:"/".concat(a,"/levels/").concat(r||n),"data-bbc-container":"context-navigation","data-bbc-metadata":JSON.stringify({CHD:"level"})},e)),o&&i.default.createElement("div",{className:"level-filter__item"},i.default.createElement("a",{className:"level-filter__item-examspec",href:"/".concat(a,"/examspecs/").concat(u),"data-bbc-container":"context-navigation","data-bbc-metadata":JSON.stringify({CHD:"examspec"})},o))))};u.displayName="LevelFilter",u.defaultProps={levelLabel:"",levelId:"",yearId:"",examspecLabel:"",examspecId:"",subdirectory:"bitesize"},u.propTypes={levelLabel:i.PropTypes.string,levelId:i.PropTypes.string,yearId:i.PropTypes.string,examspecLabel:i.PropTypes.string,examspecId:i.PropTypes.string,subdirectory:i.PropTypes.string};var a=u;e.default=a,t.exports=e.default},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(i=function(t){return t?n:e})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=i(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(0)),a=o(n(19)),c=o(n(21)),f=function(t){var e=t.pageType;return u.default.createElement("div",{className:"resource-counter__container"},"clips"===e?u.default.createElement(a.default,t):u.default.createElement(c.default,t))};f.displayName="ResourceCounter",f.propTypes={pageType:u.PropTypes.string.isRequired};var s=f;e.default=s,t.exports=e.default},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(i,a,c):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}(n(0)),u=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),a=function(t){return t>1?"plural":"singular"},c=function(t){var e=t.language,n=t.numberOfClassClips,r=t.numberOfLearnerGuides,o=t.subdirectory,c=t.zid,f=(0,u.default)(e),s=r>0&&n>0?" + ":"";return i.default.createElement("p",{className:"resource-counter__container-text"},r>0&&i.default.createElement("a",{className:"resource-counter__container-link",href:"/".concat(o,"/topics/").concat(c)},f("counter.guides.".concat(a(r)),{numberOfLearnerGuides:r})),s,n>0&&f("counter.clips.".concat(a(n)),{numberOfClassClips:n}))};c.displayName="ClipsResourceCounter",c.defaultProps={numberOfClassClips:0,numberOfLearnerGuides:0,subdirectory:"bitesize"},c.propTypes={language:i.PropTypes.string.isRequired,numberOfClassClips:i.PropTypes.number,numberOfLearnerGuides:i.PropTypes.number,subdirectory:i.PropTypes.string,zid:i.PropTypes.string.isRequired};var f=c;e.default=f,t.exports=e.default},function(t,e){t.exports=n(71)},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(i,a,c):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}(n(0)),u=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),a=function(t){return t>1?"plural":"singular"},c=function(t){var e=t.language,n=t.numberOfClassClips,r=t.numberOfLearnerGuides,o=t.zid,c=(0,u.default)(e);return i.default.createElement("p",{className:"resource-counter__container-text"},r>0&&c("counter.guides.".concat(a(r)),{numberOfLearnerGuides:r})+(n>0?" + ":""),n>0&&i.default.createElement("a",{className:"resource-counter__container-link",href:"/bitesize/topics/".concat(o,"/resources/1")},c("counter.clips.".concat(a(n)),{numberOfClassClips:n})))};c.displayName="TopicsResourceCounter",c.defaultProps={numberOfClassClips:0,numberOfLearnerGuides:0},c.propTypes={language:i.PropTypes.string.isRequired,numberOfClassClips:i.PropTypes.number,numberOfLearnerGuides:i.PropTypes.number,zid:i.PropTypes.string.isRequired};var f=c;e.default=f,t.exports=e.default},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(i,a,c):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}(n(0)),u=n(5),a=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),c=function(t){var e=t.language,n=t.duration,r=(0,a.default)(e),o=(0,u.formatDuration)(n);return""!==o?i.default.createElement("div",{className:"context-panel__duration"},i.default.createElement("span",null,r("duration",{clipDuration:o}))):i.default.createElement("span",null)};c.displayName="Duration",c.propTypes={language:i.PropTypes.string.isRequired,duration:i.PropTypes.string.isRequired};var f=c;e.default=f,t.exports=e.default},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(i=function(t){return t?n:e})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=i(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(0)),a=o(n(2)),c=o(n(24)),f=function(t,e,n,r){if(((0,a.default)(r,{label:"Welsh language"})||(0,a.default)(r,{label:"Welsh"}))&&(0,a.default)(r,{label:"Curated topic"}))return{label:"Dysgu Gartref",link:"/bitesize/articles/zx6q96f"};if(((0,a.default)(r,{label:"Welsh language"})||(0,a.default)(r,{label:"Welsh"}))&&(0,a.default)(r,{label:"Catch-up lessons"}))return{label:"Dysgu Gartref",link:"/bitesize/articles/zx6q96f"};if((0,a.default)(r,{label:"Catch-up lessons"}))return{label:"Learning at Home",link:"/bitesize/this-terms-topics"};var o=["Support","Careers"],i=r&&(0,a.default)(r,function(t){return o.indexOf(t.label)>-1}),u=i?i.label:null;return!n&&u?{label:u,link:"/".concat(t,"/").concat(u.toLowerCase())}:{label:e?e.label:"Learn & revise",link:e&&e.id?"/".concat(t,"/subjects/").concat(e.id):"/".concat(t).concat("/learn")}},s=function(t){var e=t.subdirectory,n=t.tags,r=t.topicLabel,o=t.topicId,i=t.posId,a=t.posLabel,s=t.language,l=t.stubs,p=o&&r&&{topicId:o,topicLabel:r},d=i&&a&&{id:i,label:a},h=f(e,d,p,n);return u.default.createElement(c.default,{subdirectory:e,language:s,context:h,tags:n,stubs:l})},l=function(t){return u.default.createElement(s,t)};l.displayName="ContextLabelContainer",l.defaultProps={subdirectory:"",language:"en-GB",tags:[],topicLabel:void 0,topicId:void 0,posId:void 0,posLabel:void 0,stubs:[]},l.propTypes={subdirectory:u.PropTypes.string,language:u.PropTypes.string,tags:u.PropTypes.arrayOf(u.PropTypes.shape({label:u.PropTypes.string})),topicLabel:u.PropTypes.string,topicId:u.PropTypes.string,posId:u.PropTypes.string,posLabel:u.PropTypes.string,stubs:u.default.PropTypes.shape({id:u.default.PropTypes.string.isRequired,label:u.default.PropTypes.string.isRequired,path:u.default.PropTypes.string.isRequired})};var p=l;e.default=p,t.exports=e.default},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(i=function(t){return t?n:e})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=i(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(0)),a=o(n(1)),c=o(n(8)),f=function(t){return null!==t.match(/subjects/)?"part-of-subject":null!==t.match(/topics/)?"part-of-topic":"part-of-section"},s=function(t,e){if(!Boolean(c.default.findAgeTag(e)))return t.map(function(t){return u.default.createElement("div",{className:"context-label__item"},u.default.createElement("a",{className:"context-label__item-link",href:t.path,"data-bbc-container":"context-navigation","data-bbc-metadata":JSON.stringify({CHD:"".concat(f(t.path))})},t.label))})},l=function(t){var e=t.context,n=t.language,r=t.tags,o=t.stubs,i=(0,a.default)(n),c=e.label,l=e.link,p=e&&null!==c.match(/Learn & revise|Support|This Term's Topics|Dysgu Gartref|Catch-up|Gwersi Dal i Fyny/i)&&"cy-GB"===n?"partOfWelshAlternative":"partOf";return u.default.createElement("div",{className:"context-label"},u.default.createElement("div",{className:"context-label__title"},i(p)),u.default.createElement("div",{className:"context-label__items"},e&&u.default.createElement("div",{className:"context-label__item"},u.default.createElement("a",{className:"context-label__item-link",href:l,"data-bbc-container":"context-navigation","data-bbc-metadata":JSON.stringify({CHD:"".concat(f(l))})},i(c)||c)),s(o,r)))};l.displayName="ContextLabel",l.defaultProps={language:"en-GB",tags:void 0,stubs:[]},l.propTypes={context:u.PropTypes.shape({label:u.PropTypes.string,link:u.PropTypes.string}).isRequired,language:u.PropTypes.string,stubs:u.default.PropTypes.arrayOf(u.PropTypes.shape({id:u.default.PropTypes.string.isRequired,label:u.default.PropTypes.string.isRequired,path:u.default.PropTypes.string.isRequired}).isRequired),tags:u.PropTypes.arrayOf(u.PropTypes.shape({label:u.PropTypes.string}))};var p=l;e.default=p,t.exports=e.default},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(i=function(t){return t?n:e})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=h();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var v=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=i(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(0)),g=o(n(6)),b=o(n(26)),m=o(n(27)),_=o(n(28)),w=o(n(29)),x=o(n(7)),O=o(n(30)),j=o(n(9)),P=o(n(1)),k=o(n(31)),T=function(t){return t?"favourited":"unfavourited"},E=function(t){return T(!t)},S=function(t){return"guide"===t||"blocks"===t},z=function(t){return"guide"===t?"study-guide":"article"},A=function(t){function e(t){var r;u(this,e),r=n.call(this,t);var o=(0,P.default)(t.language);return r.localisations={buttonText:o("buttonText"),errorMessage:o("errorSavingNotification"),signInUpsellToolTipTitle:o("signInUpsellToolTipTitle"),signInUpsellToolTipText:o("signInUpsellToolTipText")},r.state={isFavourited:!1,saveInProgress:!1,uasClientType:z(t.pageType),isSignedIn:!1,isLoading:!0},r.save=r.save.bind(d(r)),r.getButtonContent=r.getButtonContent.bind(d(r)),r}f(e,t);var n=l(e);return c(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props,n=e.contentId,r=e.pageType,o=this.state.uasClientType;this.setState({isLoading:!1}),S(r)&&g.default.getDetails().then(function(e){e.isSignedIn&&(t.setState({isSignedIn:!0}),x.default.isFavourited(n,o).then(function(e){t.setState({isFavourited:e})}))}).catch(function(){})}},{key:"getButtonContent",value:function(){var t=this.state,e=t.isFavourited,n=t.saveInProgress,r=this.localisations.buttonText,o="bitesize-header__add-to-my-bitesize bitesize-header__add-to-my-bitesize--action-".concat(T(e));return e?{buttonClass:o,text:r.added,icon:v.default.createElement(_.default,null),hoverText:r.remove,hoverIcon:v.default.createElement(w.default,null),savingText:r.removing,saveInProgress:n}:{buttonClass:o,text:r.addToMyBitesize,icon:v.default.createElement(m.default,null),hoverText:r.addToMyBitesize,hoverIcon:v.default.createElement(m.default,null),savingText:r.adding,saveInProgress:n}}},{key:"createPreLoadingButtonView",value:function(){var t=this.localisations.buttonText;return v.default.createElement(b.default,{disabled:!1,onClick:function(){},className:"bitesize-header__add-to-my-bitesize",aria:"polite"},v.default.createElement("span",null,v.default.createElement("span",{className:"bitesize-header__add-button-content bitesize-header__add-button-content--normal"},v.default.createElement(m.default,null),v.default.createElement("span",null,t.addToMyBitesize)),v.default.createElement("span",{className:"bitesize-header__add-button-content bitesize-header__add-button-content--hover"},v.default.createElement(m.default,null),v.default.createElement("span",null,t.addToMyBitesize))))}},{key:"createButtonView",value:function(){var t=this.getButtonContent(),e=t.buttonClass,n=t.text,r=t.icon,o=t.hoverText,i=t.hoverIcon,u=t.savingText,a=t.saveInProgress;return v.default.createElement(b.default,{disabled:a,onClick:this.save,className:e,aria:"polite"},a&&v.default.createElement("span",{className:"bitesize-header__add-button-content bitesize-header__add-button-content--saving"},i,v.default.createElement("span",null,u)),!a&&v.default.createElement("span",null,v.default.createElement("span",{className:"bitesize-header__add-button-content bitesize-header__add-button-content--normal"},r,v.default.createElement("span",null,n)),v.default.createElement("span",{className:"bitesize-header__add-button-content bitesize-header__add-button-content--hover"},i,v.default.createElement("span",null,o))))}},{key:"createSignedOutButtonView",value:function(){var t=this.props.language,e=this.localisations,n=e.signInUpsellToolTipText,r=e.signInUpsellToolTipTitle,o=e.buttonText,i=v.default.createElement("span",null,v.default.createElement(m.default,null),v.default.createElement("span",null,o.addToMyBitesize));return v.default.createElement(O.default,{title:r,text:n,buttonContent:i,body:v.default.createElement(k.default,{language:t})})}},{key:"save",value:function(){var t=this,e=this.state,n=e.isFavourited,r=e.uasClientType,o=e.isSignedIn,i=this.localisations.errorMessage;if(o){var u=this.props,a=u.contentId,c=u.setNotificationMessage;this.setState({saveInProgress:!0}),j.default.submitFavourite(a,E(n),r).then(function(){t.setState({isFavourited:!n,saveInProgress:!1})}).catch(function(){t.setState({saveInProgress:!1}),c(i,!0)})}}},{key:"render",value:function(){var t=this.state,e=t.isLoading,n=t.isSignedIn,r=this.props.pageType;return S(r)?e?v.default.createElement("div",{className:"bitesize-header__my-bitesize bitesize-header__my-bitesize-preloaded"},this.createPreLoadingButtonView()):v.default.createElement("div",{className:"bitesize-header__my-bitesize"},n?this.createButtonView():this.createSignedOutButtonView()):null}}]),e}(v.Component);A.propTypes={contentId:v.PropTypes.string.isRequired,pageType:v.PropTypes.string.isRequired,setNotificationMessage:v.PropTypes.func.isRequired,language:v.PropTypes.string.isRequired};var I=A;e.default=I,t.exports=e.default},function(t,e){t.exports=n(95)},function(t,e){t.exports=n(225)},function(t,e){t.exports=n(226)},function(t,e){t.exports=n(227)},function(t,e){t.exports=n(228)},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(i=function(t){return t?n:e})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=h();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var v=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=i(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(0)),g=o(n(32)),b=o(n(33)),m=o(n(34)),_=function(t){function e(t){var r;return u(this,e),r=n.call(this,t),r.state={idcta:void 0},r}f(e,t);var n=l(e);return c(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props,n=e.language,r=e.purposeText;g.default.checkFlagpole().then(function(){var e=window.location.href;(0,b.default)(n,r,e).then(function(e){document.head.insertAdjacentHTML("beforeend",e.inlineHead),t.setState({idcta:{__html:e.html}})}).catch(function(){})}).catch(function(){})}},{key:"render",value:function(){var t=this.state.idcta;return t?v.default.createElement("div",{className:"my-bitesize__idcta-container",dangerouslySetInnerHTML:t}):v.default.createElement("div",{className:"my-bitesize__idcta-container"},v.default.createElement(m.default,null))}}]),e}(v.default.Component);_.defaultProps={language:"en-GB",purposeText:""},_.propTypes={language:v.PropTypes.string,purposeText:v.PropTypes.string};var w=_;e.default=w,t.exports=e.default},function(t,e){t.exports=n(79)},function(t,e){t.exports=n(229)},function(t,e){t.exports=n(230)},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(i,a,c):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}(n(0)),u=n(36),a=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),c=function(t){var e=t.zid,n=t.language,r="https://web.archive.org/web/20220121005457/https://www.bbc.co.uk/bitesize/guides/".concat(e),o=(0,a.default)(n),c=o("shareTools"),f=c.ctaText,s=c.headerText,l=c.readMoreText,p=c.copyLinkText,d=c.copiedText;return i.default.createElement("span",{className:"bitesize-sharetools"},i.default.createElement("span",{className:"bitesize-sharetools__standalone-buttons"},i.default.createElement(u.Twitter,{link:r,position:0,standalone:!0}),i.default.createElement(u.Facebook,{link:r,position:1,standalone:!0}),i.default.createElement(u.WhatsApp,{link:r,position:2,standalone:!0})),i.default.createElement(u.SharePanel,{ctaText:f,headerText:s,readMoreText:l},i.default.createElement(u.Twitter,{link:r,position:0}),i.default.createElement(u.Facebook,{link:r,position:1}),i.default.createElement(u.WhatsApp,{link:r,position:2}),i.default.createElement(u.CopyLinkBox,{link:r,shareText:p,copiedText:d,position:3})))};c.displayName="BitesizeShareTools",c.propTypes={zid:i.PropTypes.string.isRequired,language:i.PropTypes.string.isRequired};var f=c;e.default=f,t.exports=e.default},function(t,e){t.exports=n(231)},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(i,a,c):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}(n(0)),u=function(t){var e=t.pageHasPartialWidthContextPanel,n=t.url;return i.default.createElement("span",{className:e?"bitesize-header__subject-illustration--partial-width":"bitesize-header__subject-illustration",style:{backgroundImage:"url(".concat(n,")")}})};u.propTypes={pageHasPartialWidthContextPanel:i.PropTypes.bool.isRequired,url:i.PropTypes.string.isRequired};var a=u;e.default=a,t.exports=e.default},function(t,e){t.exports=n(245)},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function i(t,e){if(null==t)return{};var n,r,o=u(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function u(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n(0)),c=r(n(40)),f=r(n(41)),s=r(n(42)),l=r(n(43)),p=r(n(44)),d=r(n(45)),h=r(n(46)),y=r(n(47)),v=r(n(48)),g=r(n(49)),b=r(n(50)),m=r(n(51)),_=r(n(52)),w=r(n(53)),x=r(n(54)),O=r(n(56)),j=r(n(57)),P=r(n(58)),k=r(n(59)),T=r(n(60)),E=r(n(61)),S=r(n(62)),z=r(n(63)),A=r(n(64)),I=["pageType"],C=["pageType"],M={"all-subjects":p.default,blocks:w.default,clips:l.default,clip:s.default,"collection-index":O.default,course:z.default,"subject-courses":A.default,examspecs:d.default,"field-of-study":h.default,flashcards:x.default,guide:y.default,"index-page":x.default,levels:v.default,"programme-of-study":g.default,"primary-index":P.default,"secondary-index":k.default,"secondary-games":T.default,tags:j.default,"this-terms-topics":S.default,topic:b.default,quizzes:E.default,404:m.default,500:_.default},R=function(t){var e=t.pageType,n=i(t,I);return M[e].getData(n)},W=function(t){var e=t.pageType,n=i(t,C);return M[e].parseData(n)},D=function(t){return a.default.createElement(f.default,o({},t,{parseData:W}))},L=c.default.create(D,{data:function(t){return R(t)?{context:{uri:R(t),requireSuccess:!0,updates:!1},levels:{uri:{data:"bbc-morph-bitesize-level"},requireSuccess:!1,updates:!1}}:{}}}),B=function(t){if(t.pageType in M)return a.default.createElement(L,t);throw new Error("".concat(t.pageType," is an invalid page type"))},N=B;e.default=N,t.exports=e.default},function(t,e){t.exports=n(246)},function(t,e,n){function r(t){"@babel/helpers - typeof";return(r="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 o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(i=function(t){return t?n:e})(t)}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=y();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var g=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=i(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var c=u?Object.getOwnPropertyDescriptor(t,a):null;c&&(c.get||c.set)?Object.defineProperty(o,a,c):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o}(n(0)),b=o(n(2)),m=o(n(11)),_=o(n(9)),w=function(t){function e(){return a(this,e),n.apply(this,arguments)}s(e,t);var n=p(e);return f(e,[{key:"componentDidMount",value:function(){if("blocks"===this.props.pageType){var t=this.props,e=t.context.body,n=e.id,r=e.topics,o=t.isPreview,i=r.map(function(t){return t.keyStage.id}).join(","),u=r.map(function(t){return t.programmeOfStudy.id}).join(","),a={levelId:i,posId:u},c=r.map(function(t){if(t.examSpecification&&t.examSpecification.id)return t.examSpecification.id}).filter(Boolean).join(",");""!==c&&Object.assign(a,{examspecId:c}),"true"!==o&&_.default.submitRead(n,a)}}},{key:"render",value:function(){var t=this.props,e=t.language,n=t.href,r=t.parseData,o=t.pageType,i=t.isPreview,a=t.subdirectory,c=t.zid,f=t.topicId,s=t.yearId,l=t.context.body,p=t.levels,d=t.isInApp,h=t.messagingBannerType,y=t.displayAltBerryMan,v=r({pageType:o,data:l,language:e,zid:c,topicId:f}),_="";if(p){var w=(0,b.default)(p.body,function(t){return t.id===v.levelId});_=w?w.phase:""}return g.default.createElement(m.default,u({href:n,language:e,pageType:o,isPreview:i,subdirectory:a,yearId:s,phase:_,isInApp:d,messagingBannerType:h},v,{displayAltBerryMan:y}))}}]),e}(g.Component);w.defaultProps={context:{body:{}},levels:void 0,globalNav:"false",isPreview:void 0,zid:void 0,topicId:void 0,isInApp:!1,href:"",yearId:"",messagingBannerType:"",displayAltBerryMan:!1},w.propTypes={zid:g.PropTypes.string,topicId:g.PropTypes.string,pageType:g.PropTypes.string.isRequired,href:g.PropTypes.string,parseData:g.PropTypes.func.isRequired,context:g.PropTypes.oneOfType([g.PropTypes.shape({body:g.PropTypes.shape()}),g.PropTypes.shape({body:g.PropTypes.shape({id:g.PropTypes.string.isRequired,label:g.PropTypes.string.isRequired,description:g.PropTypes.string.isRequired,mobileDescription:g.PropTypes.string.isRequired,programmeOfStudy:g.PropTypes.shape({label:g.PropTypes.string.isRequired}),fieldOfStudy:g.PropTypes.shape({label:g.PropTypes.string})})}),g.PropTypes.array]),levels:g.PropTypes.shape({body:g.PropTypes.arrayOf(g.PropTypes.shape({id:g.PropTypes.string.isRequired,label:g.PropTypes.string,description:g.PropTypes.string,mobileDescription:g.PropTypes.string,lowerAge:g.PropTypes.number,phase:g.PropTypes.string,subLevelOf:g.PropTypes.string,type:g.PropTypes.string,upperAge:g.PropTypes.number,nations:g.PropTypes.arrayOf(g.PropTypes.shape({id:g.PropTypes.string.isRequired,label:g.PropTypes.string.isRequired,type:g.PropTypes.string}))}))}),globalNav:g.PropTypes.string,language:g.PropTypes.string.isRequired,subdirectory:g.PropTypes.string.isRequired,yearId:g.PropTypes.string,isPreview:g.PropTypes.string,isInApp:g.PropTypes.bool,messagingBannerType:g.PropTypes.string,displayAltBerryMan:g.PropTypes.bool};var x=w;e.default=x,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){return{data:"bbc-morph-bitesize-class-clip-data",clipId:t.zid}},o=function(t){var e=t.data;return{label:e.title,fosZid:e.topicOfStudy.fieldOfStudy.id,zid:e.topicOfStudyId,levelLabel:e.topicOfStudy.level.label,levelId:e.topicOfStudy.level.id,topicLabel:e.topicOfStudy.label,topicId:e.topicOfStudy.id,posId:e.topicOfStudy.programmeOfStudy.id,posLabel:e.topicOfStudy.programmeOfStudy.shortLabel,duration:e.media?e.media.duration:null,stubs:[{id:e.topicOfStudy.id,label:e.topicOfStudy.label,path:"/bitesize/topics/".concat(e.topicOfStudy.id)}]}},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),o=function(t){return{data:"bbc-morph-bitesize-header-data",pageType:"clips",zid:t.zid}},i=function(t){var e=t.data,n=t.language,o=t.zid,i=e.label,u=e.fosZid,a=e.zid,c=e.numberOfClassClips,f=e.numberOfLearnerGuides,s=e.levelLabel,l=e.levelId,p=e.posZid,d=e.posShortLabel,h=(0,r.default)(n);return{label:"".concat(i," ").concat(h("class-clips")),fosZid:u,zid:o,numberOfClassClips:c,numberOfLearnerGuides:f,levelLabel:s,levelId:l,topicLabel:i,topicId:a,posId:p,posLabel:d,stubs:[{id:a,label:i,path:"/bitesize/topics/".concat(a)}]}},u={getData:o,parseData:i};e.default=u,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){return{data:"bbc-morph-bitesize-header-data",pageType:"all-subjects",language:t.language}},o=function(t){return t.data},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){return{data:"bbc-morph-bitesize-examspec",zid:t.zid}},o=function(t){var e=t.data,n=t.zid;return{label:"".concat(e.programmeOfStudy.label," - ").concat(e.label),fosZid:e.programmeOfStudy.fieldOfStudy.id,zid:n,levelLabel:e.programmeOfStudy.keyStage.label,levelId:e.programmeOfStudy.keyStage.id,examspecLabel:e.label,examspecId:n,posId:e.programmeOfStudy.id,posLabel:e.programmeOfStudy.shortLabel}},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){return{data:"bbc-morph-bitesize-header-data",pageType:"field-of-study",language:t.language,zid:t.zid}},o=function(t){return t.data},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){if(null==t)return{};var n,r,o=a(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function a(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=n(10),f=["posZid","shortLabel"],s=(0,c.omitBy)(c.isNil),l=function(t){var e=t.zid,n=t.chapterType,r=t.cacheBuster;return s({data:"bbc-morph-bitesize-header-data",zid:e,chapterType:n,pageType:"guide",pageIndex:1,cacheBuster:r})},p=function(t){var e=t.data;return o({posId:e.posZid,posLabel:e.shortLabel},u(e,f))},d={getData:l,parseData:p};e.default=d,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){return{data:"bbc-morph-bitesize-header-data",pageType:"level-page",language:t.language,zid:t.zid}},o=function(t){var e=t.data,n=t.zid;return n&&"undefined"!==n?{label:e.headerLabel,fosZid:e.fosZid?e.fosZid:"",description:e.description,zid:n,levelLabel:e.label,levelId:e.id?e.id:n,phase:e.phase}:e},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){return{data:"bbc-morph-bitesize-header-data",zid:t.zid,yearId:t.yearId,pageType:"programme-of-study"}},o=function(t){return t.data},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){return{data:"bbc-morph-bitesize-header-data",pageType:"topic",zid:t.zid}},o=function(t){var e=t.data;return{label:e.label,fosZid:e.taughtInFieldZid,numberOfClassClips:e.numberOfClassClips,numberOfLearnerGuides:e.numberOfLearnerGuides,zid:e.zid,hasTopics:e.hasTopics,levelLabel:e.levelLabel,levelId:e.levelId,examspecLabel:e.examspecLabel,examspecId:e.examspecId,posId:e.posZid,posLabel:e.posShortLabel}},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){},o=function(){return{label:"Sorry, but we’re having difficulties showing you the page you asked for.",description:"The content might have been moved or deleted, or you may have mis-typed the link."}},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){},o=function(){return{label:"Sorry, but we’re having difficulties showing you the page you asked for.",description:"Please try again later."}},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n(2)),c=r(n(8)),f=function(t){return{data:"bbc-morph-blocks-article-data",projectName:"blocks-bitesize",zid:t.zid,preview:t.preview,timestamp:t.timestamp}},s=function(t,e){return e&&t&&t.length?(0,a.default)(t,function(t){return t.id===e}):null},l=function(t,e){var n=t.topics;if(n&&n.length){var r=s(n,e)||n[0],o=r.id,u=r.label,a=r.fieldOfStudy,c=r.keyStage,f=r.examSpecification,l=r.programmeOfStudy,p=[{id:o,label:u,path:"/bitesize/topics/".concat(o)}];return i({levelLabel:c.label,levelId:c.id,examspecLabel:f.label,examspecId:f.id,stubs:p,fosZid:a.id,posId:l.id,posLabel:l.shortLabel},n.length>1?{topicId:o}:{})}return null},p=function(t){var e=t.tags,n=c.default.findAgeTag(e);if(!n)return null;var r=c.default.getExtraData(n);return{stubs:[{id:r.zid,label:r.label,path:r.path}]}},d=function(t,e){var n=l(t,e);return n||p(t)},h=function(t){var e=t.data,n=t.topicId,r=e.headline,o=e.topics,u=e.tags,a=o&&1===o.length,c=o&&o.length>1;return i({label:r,zid:a?o[0].id:e.id,contentId:e.id,tags:u,isTaggedWithMultipleTopics:c},d(e,n))},y={getData:f,parseData:h};e.default=y,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(10),o=function(t){return t&&t.__esModule?t:{default:t}}(n(55)),i=(0,r.omitBy)(r.isNil),u=function(t){var e=t.href,n=t.language,r=void 0===n?"en-GB":n,u=t.cacheBuster;if(e&&(0,o.default)(e,"support")||(0,o.default)(e,"careers"))return i({data:"bbc-morph-bitesize-header-data",pageType:"index-page",href:e,language:r,cacheBuster:u})},a=function(t){return{headerData:t.data}},c={getData:u,parseData:a};e.default=c,t.exports=e.default},function(t,e){t.exports=n(247)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(10),o=(0,r.omitBy)(r.isNil),i=function(t){var e=t.slug,n=t.language,r=void 0===n?"en-GB":n,i=t.cacheBuster;return o({data:"bbc-morph-bitesize-header-data",pageType:"collection-index",slug:e,language:r,cacheBuster:i})},u=function(t){return{headerData:t.data||{}}},a={getData:i,parseData:u};e.default=a,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(10),o=(0,r.omitBy)(r.isNil),i=function(t){var e=t.zid,n=t.language,r=void 0===n?"en-GB":n,i=t.cacheBuster;return o({data:"bbc-morph-bitesize-header-data",pageType:"tags",zid:e,language:r,cacheBuster:i})},u=function(t){var e=t.data,n=t.zid;return{headerData:e||{},zid:n}},a={getData:i,parseData:u};e.default=a,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){return{data:"bbc-morph-bitesize-header-data",pageType:"primary-index",language:t.language}},o=function(t){return t.data},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){return{data:"bbc-morph-bitesize-header-data",pageType:"secondary-index"}},o=function(t){return t.data},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){},o=function(){return{phase:"secondary"}},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){},o=function(){return{label:"Get your GCSE science study suggestions",description:"This is a new feature, we’ll be improving it over time to make it smarter. We’ll also be expanding it by adding more questions and subjects.",zid:"z98jmp3",levelLabel:"GCSE",levelId:"z98jmp3",phase:"secondary"}},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){return{data:"bbc-morph-bitesize-this-terms-topics-data"}},o=function(t){var e=t.data,n=t.language,r=e[n]?e[n].pageText:e["en-GB"].pageText;return{label:r.title,description:r.description,mobileDescription:r.mobileDescription}},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){return{data:"bbc-morph-bitesize-header-data",pageType:"course",zid:t.zid}},o=function(t){var e=t.data;return{zid:e.zid,description:e.description,mobileDescription:e.description,posId:e.posZid,fosZid:e.fosZid,label:e.title,posLabel:e.posShortLabel,levelLabel:e.levelLabel,levelId:e.levelId}},i={getData:r,parseData:o};e.default=i,t.exports=e.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){return{data:"bbc-morph-bitesize-header-data",pageType:"subject-courses",zid:t.zid,language:t.language}},o=function(t){var e=t.data;return{zid:e.zid,description:e.description,mobileDescription:e.description,posId:e.posZid,fosZid:e.fosZid,label:e.title,posLabel:e.posShortLabel,levelLabel:e.levelLabel,levelId:e.levelId}},i={getData:r,parseData:o};e.default=i,t.exports=e.default}])},function(t,e,n){var r=n(101),o=n(177),i=r(o);t.exports=i},function(t,e,n){function r(t){return function(e,n,r){var a=Object(e);if(!i(e)){var c=o(n,3);e=u(e),n=function(t){return c(a[t],t,a)}}var f=t(e,n,r);return f>-1?a[c?e[f]:f]:void 0}}var o=n(57),i=n(39),u=n(25);t.exports=r},function(t,e,n){function r(t){var e=i(t);return 1==e.length&&e[0][2]?u(e[0][0],e[0][1]):function(n){return n===t||o(n,t,e)}}var o=n(103),i=n(165),u=n(70);t.exports=r},function(t,e,n){function r(t,e,n,r){var c=n.length,f=c,s=!r;if(null==t)return!f;for(t=Object(t);c--;){var l=n[c];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++c<f;){l=n[c];var p=l[0],d=t[p],h=l[1];if(s&&l[2]){if(void 0===d&&!(p in t))return!1}else{var y=new o;if(r)var v=r(d,h,p,t,e,y);if(!(void 0===v?i(h,d,u|a,r,y):v))return!1}}return!0}var o=n(58),i=n(63),u=1,a=2;t.exports=r},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=o(e,t);return!(n<0)&&(n==e.length-1?e.pop():u.call(e,n,1),--this.size,!0)}var o=n(20),i=Array.prototype,u=i.splice;t.exports=r},function(t,e,n){function r(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]}var o=n(20);t.exports=r},function(t,e,n){function r(t){return o(this.__data__,t)>-1}var o=n(20);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var o=n(20);t.exports=r},function(t,e,n){function r(){this.__data__=new o,this.size=0}var o=n(19);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length<a-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new u(r)}return n.set(t,e),this.size=n.size,this}var o=n(19),i=n(35),u=n(37),a=200;t.exports=r},function(t,e,n){function r(t){return!(!u(t)||i(t))&&(o(t)?h:f).test(a(t))}var o=n(60),i=n(117),u=n(22),a=n(62),c=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,p=s.toString,d=l.hasOwnProperty,h=RegExp("^"+p.call(d).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t,e,n){function r(t){var e=u.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[c]=n:delete t[c]),o}var o=n(21),i=Object.prototype,u=i.hasOwnProperty,a=i.toString,c=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return o.call(t)}var r=Object.prototype,o=r.toString;t.exports=n},function(t,e,n){function r(t){return!!i&&i in t}var o=n(118),i=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=r},function(t,e,n){var r=n(3),o=r["__core-js_shared__"];t.exports=o},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e,n){function r(){this.size=0,this.__data__={hash:new o,map:new(u||i),string:new o}}var o=n(121),i=n(19),u=n(35);t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(122),i=n(123),u=n(124),a=n(125),c=n(126);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=u,r.prototype.has=a,r.prototype.set=c,t.exports=r},function(t,e,n){function r(){this.__data__=o?o(null):{},this.size=0}var o=n(23);t.exports=r},function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},function(t,e,n){function r(t){var e=this.__data__;if(o){var n=e[t];return n===i?void 0:n}return a.call(e,t)?e[t]:void 0}var o=n(23),i="__lodash_hash_undefined__",u=Object.prototype,a=u.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){var e=this.__data__;return o?void 0!==e[t]:u.call(e,t)}var o=n(23),i=Object.prototype,u=i.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=o&&void 0===e?i:e,this}var o=n(23),i="__lodash_hash_undefined__";t.exports=r},function(t,e,n){function r(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}var o=n(24);t.exports=r},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function r(t){return o(this,t).get(t)}var o=n(24);t.exports=r},function(t,e,n){function r(t){return o(this,t).has(t)}var o=n(24);t.exports=r},function(t,e,n){function r(t,e){var n=o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var o=n(24);t.exports=r},function(t,e,n){function r(t,e,n,r,v,b){var m=f(t),_=f(e),w=m?h:c(t),x=_?h:c(e);w=w==d?y:w,x=x==d?y:x;var O=w==y,j=x==y,P=w==x;if(P&&s(t)){if(!s(e))return!1;m=!0,O=!1}if(P&&!O)return b||(b=new o),m||l(t)?i(t,e,n,r,v,b):u(t,e,w,n,r,v,b);if(!(n&p)){var k=O&&g.call(t,"__wrapped__"),T=j&&g.call(e,"__wrapped__");if(k||T){var E=k?t.value():t,S=T?e.value():e;return b||(b=new o),v(E,S,n,r,b)}}return!!P&&(b||(b=new o),a(t,e,n,r,v,b))}var o=n(58),i=n(64),u=n(138),a=n(142),c=n(160),f=n(4),s=n(66),l=n(68),p=1,d="[object Arguments]",h="[object Array]",y="[object Object]",v=Object.prototype,g=v.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new o;++e<n;)this.add(t[e])}var o=n(37),i=n(134),u=n(135);r.prototype.add=r.prototype.push=i,r.prototype.has=u,t.exports=r},function(t,e){function n(t){return this.__data__.set(t,r),this}var r="__lodash_hash_undefined__";t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}t.exports=n},function(t,e){function n(t,e){return t.has(e)}t.exports=n},function(t,e,n){function r(t,e,n,r,o,O,P){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w:return!(t.byteLength!=e.byteLength||!O(new i(t),new i(e)));case p:case d:case v:return u(+t,+e);case h:return t.name==e.name&&t.message==e.message;case g:case m:return t==e+"";case y:var k=c;case b:var T=r&s;if(k||(k=f),t.size!=e.size&&!T)return!1;var E=P.get(t);if(E)return E==e;r|=l,P.set(t,e);var S=a(k(t),k(e),r,o,O,P);return P.delete(t),S;case _:if(j)return j.call(t)==j.call(e)}return!1}var o=n(21),i=n(139),u=n(59),a=n(64),c=n(140),f=n(141),s=1,l=2,p="[object Boolean]",d="[object Date]",h="[object Error]",y="[object Map]",v="[object Number]",g="[object RegExp]",b="[object Set]",m="[object String]",_="[object Symbol]",w="[object ArrayBuffer]",x="[object DataView]",O=o?o.prototype:void 0,j=O?O.valueOf:void 0;t.exports=r},function(t,e,n){var r=n(3),o=r.Uint8Array;t.exports=o},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}t.exports=n},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}t.exports=n},function(t,e,n){function r(t,e,n,r,u,c){var f=n&i,s=o(t),l=s.length;if(l!=o(e).length&&!f)return!1;for(var p=l;p--;){var d=s[p];if(!(f?d in e:a.call(e,d)))return!1}var h=c.get(t),y=c.get(e);if(h&&y)return h==e&&y==t;var v=!0;c.set(t,e),c.set(e,t);for(var g=f;++p<l;){d=s[p];var b=t[d],m=e[d];if(r)var _=f?r(m,b,d,e,t,c):r(b,m,d,t,e,c);if(!(void 0===_?b===m||u(b,m,n,r,c):_)){v=!1;break}g||(g="constructor"==d)}if(v&&!g){var w=t.constructor,x=e.constructor;w!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(v=!1)}return c.delete(t),c.delete(e),v}var o=n(143),i=1,u=Object.prototype,a=u.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){return o(t,u,i)}var o=n(144),i=n(146),u=n(25);t.exports=r},function(t,e,n){function r(t,e,n){var r=e(t);return i(t)?r:o(r,n(t))}var o=n(145),i=n(4);t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}t.exports=n},function(t,e,n){var r=n(147),o=n(148),i=Object.prototype,u=i.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),r(a(t),function(e){return u.call(t,e)}))}:o;t.exports=c},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u,n,t)&&(i[o++]=u)}return i}t.exports=n},function(t,e){function n(){return[]}t.exports=n},function(t,e,n){function r(t,e){var n=u(t),r=!n&&i(t),s=!n&&!r&&a(t),p=!n&&!r&&!s&&f(t),d=n||r||s||p,h=d?o(t.length,String):[],y=h.length;for(var v in t)!e&&!l.call(t,v)||d&&("length"==v||s&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,y))||h.push(v);return h}var o=n(150),i=n(65),u=n(4),a=n(66),c=n(67),f=n(68),s=Object.prototype,l=s.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}t.exports=n},function(t,e,n){function r(t){return i(t)&&o(t)==u}var o=n(9),i=n(10),u="[object Arguments]";t.exports=r},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){function r(t){return u(t)&&i(t.length)&&!!a[o(t)]}var o=n(9),i=n(38),u=n(10),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=r},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e,n){(function(t){var r=n(61),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===o,a=u&&r.process,c=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c}).call(e,n(26)(t))},function(t,e,n){function r(t){if(!o(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}var o=n(157),i=n(158),u=Object.prototype,a=u.hasOwnProperty;t.exports=r},function(t,e){function n(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}var r=Object.prototype;t.exports=n},function(t,e,n){var r=n(159),o=r(Object.keys,Object);t.exports=o},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){var r=n(161),o=n(35),i=n(162),u=n(163),a=n(164),c=n(9),f=n(62),s=f(r),l=f(o),p=f(i),d=f(u),h=f(a),y=c;(r&&"[object DataView]"!=y(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=y(new o)||i&&"[object Promise]"!=y(i.resolve())||u&&"[object Set]"!=y(new u)||a&&"[object WeakMap]"!=y(new a))&&(y=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?f(n):"";if(r)switch(r){case s:return"[object DataView]";case l:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return e}),t.exports=y},function(t,e,n){var r=n(8),o=n(3),i=r(o,"DataView");t.exports=i},function(t,e,n){var r=n(8),o=n(3),i=r(o,"Promise");t.exports=i},function(t,e,n){var r=n(8),o=n(3),i=r(o,"Set");t.exports=i},function(t,e,n){var r=n(8),o=n(3),i=r(o,"WeakMap");t.exports=i},function(t,e,n){function r(t){for(var e=i(t),n=e.length;n--;){var r=e[n],u=t[r];e[n]=[r,u,o(u)]}return e}var o=n(69),i=n(25);t.exports=r},function(t,e,n){function r(t,e){return a(t)&&c(e)?f(s(t),e):function(n){var r=i(n,t);return void 0===r&&r===e?u(n,t):o(e,r,l|p)}}var o=n(63),i=n(71),u=n(170),a=n(40),c=n(69),f=n(70),s=n(28),l=1,p=2;t.exports=r},function(t,e,n){var r=n(168),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)}),e});t.exports=u},function(t,e,n){function r(t){var e=o(t,function(t){return n.size===i&&n.clear(),t}),n=e.cache;return e}var o=n(169),i=500;t.exports=r},function(t,e,n){function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(r.Cache||o),n}var o=n(37),i="Expected a function";r.Cache=o,t.exports=r},function(t,e,n){function r(t,e){return null!=t&&i(t,e,o)}var o=n(171),i=n(172);t.exports=r},function(t,e){function n(t,e){return null!=t&&e in Object(t)}t.exports=n},function(t,e,n){function r(t,e,n){e=o(e,t);for(var r=-1,s=e.length,l=!1;++r<s;){var p=f(e[r]);if(!(l=null!=t&&n(t,p)))break;t=t[p]}return l||++r!=s?l:!!(s=null==t?0:t.length)&&c(s)&&a(p,s)&&(u(t)||i(t))}var o=n(73),i=n(65),u=n(4),a=n(67),c=n(38),f=n(28);t.exports=r},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function r(t){return u(t)?o(a(t)):i(t)}var o=n(175),i=n(176),u=n(40),a=n(28);t.exports=r},function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},function(t,e,n){function r(t){return function(e){return o(e,t)}}var o=n(72);t.exports=r},function(t,e,n){function r(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var c=null==n?0:u(n);return c<0&&(c=a(r+c,0)),o(t,i(e,3),c)}var o=n(77),i=n(57),u=n(41),a=Math.max;t.exports=r},function(t,e,n){function r(t){if(!t)return 0===t?t:0;if((t=o(t))===i||t===-i){return(t<0?-1:1)*u}return t===t?t:0}var o=n(179),i=1/0,u=1.7976931348623157e308;t.exports=r},function(t,e,n){function r(t){if("number"==typeof t)return t;if(u(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=o(t);var n=f.test(t);return n||s.test(t)?l(t.slice(2),n?2:8):c.test(t)?a:+t}var o=n(180),i=n(22),u=n(27),a=NaN,c=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;t.exports=r},function(t,e,n){function r(t){return t?t.slice(0,o(t)+1).replace(i,""):t}var o=n(181),i=/^\s+/;t.exports=r},function(t,e){function n(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e}var r=/\s/;t.exports=n},function(t,e,n){function r(t,e,n,r){t=i(t)?t:c(t),n=n&&!r?a(n):0;var s=t.length;return n<0&&(n=f(s+n,0)),u(t)?n<=s&&t.indexOf(e,n)>-1:!!s&&o(t,e,n)>-1}var o=n(183),i=n(39),u=n(186),a=n(41),c=n(187),f=Math.max;t.exports=r},function(t,e,n){function r(t,e,n){return e===e?u(t,e,n):o(t,i,n)}var o=n(77),i=n(184),u=n(185);t.exports=r},function(t,e){function n(t){return t!==t}t.exports=n},function(t,e){function n(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}t.exports=n},function(t,e,n){function r(t){return"string"==typeof t||!i(t)&&u(t)&&o(t)==a}var o=n(9),i=n(4),u=n(10),a="[object String]";t.exports=r},function(t,e,n){function r(t){return null==t?[]:o(t,i(t))}var o=n(188),i=n(25);t.exports=r},function(t,e,n){function r(t,e){return o(e,function(e){return t[e]})}var o=n(76);t.exports=r},function(t,e,n){"use strict";var r=n(42);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(78)),i=r(n(79)),u=function(){return window.Promise||(window.Promise=o.default),new window.Promise(function(t,e){requirejs(["idcta-v2/idcta-1","orb/cookies"],function(e,n){t({idcta:e,cookiesLib:n})},function(t){e(t)})})},a={isSignedIn:!1},c=function(){return u().then(function(t){var e=t.idcta,n=t.cookiesLib,r=n.readPolicy();return e.hasCookie()?i.default.checkFlagpole().then(function(){return e.initiateTokenRefresh().then(function(){var t=e.getUserDetailsFromCookie();return{isSignedIn:!0,isUnderThirteen:"u13"===t.ab,hasPersonalisationEnabled:t.ep,displayName:t.dn,personalisationCookiesEnabled:r.personalisation}}).catch(function(t){return a})}):a})},f={getDetails:c};e.default=f,t.exports=e.default},function(t,e,n){"use strict";var r=n(42);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(191));n(80);var i=n(192),u=n(81),a="urn:bbc:isite2:file_id:",c={origin:"web"},f={"programme-of-study":"biteprogrammestudy",exam:"biteexamspecification","study-guide":"bitestudyguide",article:"article"},s=function(t){return f[t]},l=function(t){return"article"===t?"blocks-bitesize":"education"},p=function(t){return t.map(function(t){var e=t.id,n=t.type,r=t.action;return{resourceId:e,resourceDomain:"learning",resourceType:s(n),action:r}})},d=function(t){return{resourceId:"".concat(a).concat(l(t.type),":").concat(t.id),resourceDomain:"learning",resourceType:s(t.type),action:t.action}},h=function(t){var e={resourceId:"".concat(a).concat(l(t.type),":").concat(t.id),resourceDomain:"learning",resourceType:s(t.type),metaData:c};return e.metaData.levelId=t.keyStageId,t.examspecId&&(e.metaData.examspecId=t.examspecId),t.posId&&(e.metaData.posId=t.posId),e},y=function(t,e){return{resourceId:"".concat(a,"blocks-bitesize:").concat(t),resourceDomain:"learning",resourceType:f.article,metaData:(0,o.default)(c,e)}},v=function(t,e){return"".concat(a).concat(l(e),":").concat(t)},g=function(t){return"urn:bbc:learning:article:isite2:file_id:blocks-bitesize:".concat(t)},b=function(t,e){return fetch("".concat((0,u.getUASHost)()).concat(t),{method:"POST",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Authentication-Provider":"idv5","X-Api-Key":(0,u.getUASApiKey)()}),credentials:"include",body:JSON.stringify(e)}).then(function(t){return 202!==t.status?t.json():void 0}).then(function(e){if(e)throw new Error("Error posting resource(s) to '".concat(t,"': ").concat(JSON.stringify(e,null,2)))})},m=b,_=function(t,e){var n=(0,i.chunk)(50,e).map(function(e){return b(t,e)});return Promise.all(n).then(function(){})},w=function(t){var e="";return t&&(Object.keys(t).forEach(function(n){e+="&".concat(n,"=").concat(t[n])}),e="?".concat(e.substr(1))),e},x=function(t){return fetch("".concat((0,u.getUASHost)()).concat(t),{method:"GET",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Authentication-Provider":"idv5","X-Api-Key":(0,u.getUASApiKey)()}),credentials:"include"}).then(function(e){if(200!==e.status)throw new Error("Error getting '".concat(t,"': ").concat(JSON.stringify(e.json(),null,2)));return e.json()})},O=function(t){return fetch("".concat((0,u.getUASHost)()).concat(t),{method:"GET",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Authentication-Provider":"idv5","X-Api-Key":(0,u.getUASApiKey)()}),credentials:"include"}).then(function(e){if(200!==e.status)throw new Error("Error getting '".concat(t,"': ").concat(JSON.stringify(e.json(),null,2)));return e.json()}).then(function(t){return t.items})},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return O("/my/favourites/unlimited?resourceDomain=learning&action=favourited").then(function(t){return t.filter(function(t){return t.resourceType===f["study-guide"]||t.resourceType===f.article})}).then(function(e){return t>0?(0,i.take)(t,e):e})},P=function(t){return _("/my/batch/follows",p(t))},k=function(t){return m("/my/follows",t)},T=function(t){return x("/my/follows/".concat(t))},E=function(t){return O("/my/follows".concat(w(t)))},S=function(t){return m("/my/reads",h(t))},z=function(t){return O("/my/reads".concat(w(t)))},A=function(t,e){return m("/my/reads",y(t,e))},I=function(t){return m("/my/favourites",d(t))},C=function(t,e){return O("/my/favourites/unlimited?resourceDomain=learning&action=favourited&resourceType=".concat(s(e))).then(function(n){return(0,i.some)({resourceId:v(t,e)},n)})},M=function(t){return O("/my/reads/".concat(g(t))).then(function(){return!0}).catch(function(){return!1})},R={getFollow:T,getFollows:E,getSavedForLater:j,postFollow:k,postFollows:P,getReads:z,postRead:S,postReadForAnArticle:A,postFavourite:I,isFavourited:C,isArticleRead:M};e.default=R,t.exports=e.default},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 r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}t.exports=n},function(t,e,n){var r=n(193).runInContext();t.exports=n(194)(r,r)},function(t,e,n){(function(t,r){var o;(function(){function i(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function u(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var u=t[o];e(r,u,n(u),t)}return r}function a(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function c(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function f(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function s(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u,n,t)&&(i[o++]=u)}return i}function l(t,e){return!!(null==t?0:t.length)&&x(t,e,0)>-1}function p(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function d(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function h(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function y(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function v(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function g(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function b(t){return t.split("")}function m(t){return t.match(Le)||[]}function _(t,e,n){var r;return n(t,function(t,n,o){if(e(t,n,o))return r=n,!1}),r}function w(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function x(t,e,n){return e===e?V(t,e,n):w(t,j,n)}function O(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function j(t){return t!==t}function P(t,e){var n=null==t?0:t.length;return n?z(t,e)/n:Ct}function k(t){return function(e){return null==e?nt:e[t]}}function T(t){return function(e){return null==t?nt:t[e]}}function E(t,e,n,r,o){return o(t,function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)}),n}function S(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function z(t,e){for(var n,r=-1,o=t.length;++r<o;){var i=e(t[r]);i!==nt&&(n=n===nt?i:n+i)}return n}function A(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function I(t,e){return d(e,function(e){return[e,t[e]]})}function C(t){return function(e){return t(e)}}function M(t,e){return d(e,function(e){return t[e]})}function R(t,e){return t.has(e)}function W(t,e){for(var n=-1,r=t.length;++n<r&&x(e,t[n],0)>-1;);return n}function D(t,e){for(var n=t.length;n--&&x(e,t[n],0)>-1;);return n}function L(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function B(t){return"\\"+Dn[t]}function N(t,e){return null==t?nt:t[e]}function F(t){return En.test(t)}function q(t){return Sn.test(t)}function U(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function $(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function G(t,e){return function(n){return t(e(n))}}function K(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var u=t[n];u!==e&&u!==ct||(t[n]=ct,i[o++]=n)}return i}function H(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function Z(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function V(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}function Y(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}function J(t){return F(t)?Q(t):tr(t)}function X(t){return F(t)?tt(t):b(t)}function Q(t){for(var e=kn.lastIndex=0;kn.test(t);)++e;return e}function tt(t){return t.match(kn)||[]}function et(t){return t.match(Tn)||[]}var nt,rt=200,ot="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",it="Expected a function",ut="__lodash_hash_undefined__",at=500,ct="__lodash_placeholder__",ft=1,st=2,lt=4,pt=1,dt=2,ht=1,yt=2,vt=4,gt=8,bt=16,mt=32,_t=64,wt=128,xt=256,Ot=512,jt=30,Pt="...",kt=800,Tt=16,Et=1,St=2,zt=1/0,At=9007199254740991,It=1.7976931348623157e308,Ct=NaN,Mt=4294967295,Rt=Mt-1,Wt=Mt>>>1,Dt=[["ary",wt],["bind",ht],["bindKey",yt],["curry",gt],["curryRight",bt],["flip",Ot],["partial",mt],["partialRight",_t],["rearg",xt]],Lt="[object Arguments]",Bt="[object Array]",Nt="[object AsyncFunction]",Ft="[object Boolean]",qt="[object Date]",Ut="[object DOMException]",$t="[object Error]",Gt="[object Function]",Kt="[object GeneratorFunction]",Ht="[object Map]",Zt="[object Number]",Vt="[object Null]",Yt="[object Object]",Jt="[object Promise]",Xt="[object Proxy]",Qt="[object RegExp]",te="[object Set]",ee="[object String]",ne="[object Symbol]",re="[object Undefined]",oe="[object WeakMap]",ie="[object WeakSet]",ue="[object ArrayBuffer]",ae="[object DataView]",ce="[object Float32Array]",fe="[object Float64Array]",se="[object Int8Array]",le="[object Int16Array]",pe="[object Int32Array]",de="[object Uint8Array]",he="[object Uint8ClampedArray]",ye="[object Uint16Array]",ve="[object Uint32Array]",ge=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,me=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,we=/[&<>"']/g,xe=RegExp(_e.source),Oe=RegExp(we.source),je=/<%-([\s\S]+?)%>/g,Pe=/<%([\s\S]+?)%>/g,ke=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ee=/^\w*$/,Se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ze=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(ze.source),Ie=/^\s+|\s+$/g,Ce=/^\s+/,Me=/\s+$/,Re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,We=/\{\n\/\* \[wrapped with (.+)\] \*/,De=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Be=/\\(\\)?/g,Ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fe=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Ue=/^0b[01]+$/i,$e=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,He=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Ve=/['\n\r\u2028\u2029\\]/g,Ye="\\ud800-\\udfff",Je="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xe="\\u2700-\\u27bf",Qe="a-z\\xdf-\\xf6\\xf8-\\xff",tn="A-Z\\xc0-\\xd6\\xd8-\\xde",en="\\ufe0e\\ufe0f",nn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rn="['’]",on="["+nn+"]",un="["+Je+"]",an="["+Qe+"]",cn="[^"+Ye+nn+"\\d+"+Xe+Qe+tn+"]",fn="\\ud83c[\\udffb-\\udfff]",sn="[^"+Ye+"]",ln="(?:\\ud83c[\\udde6-\\uddff]){2}",pn="[\\ud800-\\udbff][\\udc00-\\udfff]",dn="["+tn+"]",hn="\\u200d",yn="(?:"+an+"|"+cn+")",vn="(?:['’](?:d|ll|m|re|s|t|ve))?",gn="(?:['’](?:D|LL|M|RE|S|T|VE))?",bn="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",mn="["+en+"]?",_n="(?:"+hn+"(?:"+[sn,ln,pn].join("|")+")"+mn+bn+")*",wn=mn+bn+_n,xn="(?:"+["[\\u2700-\\u27bf]",ln,pn].join("|")+")"+wn,On="(?:"+[sn+un+"?",un,ln,pn,"[\\ud800-\\udfff]"].join("|")+")",jn=RegExp(rn,"g"),Pn=RegExp(un,"g"),kn=RegExp(fn+"(?="+fn+")|"+On+wn,"g"),Tn=RegExp([dn+"?"+an+"+"+vn+"(?="+[on,dn,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+"+gn+"(?="+[on,dn+yn,"$"].join("|")+")",dn+"?"+yn+"+"+vn,dn+"+"+gn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",xn].join("|"),"g"),En=RegExp("["+hn+Ye+Je+en+"]"),Sn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],An=-1,In={};In[ce]=In[fe]=In[se]=In[le]=In[pe]=In[de]=In[he]=In[ye]=In[ve]=!0,In[Lt]=In[Bt]=In[ue]=In[Ft]=In[ae]=In[qt]=In[$t]=In[Gt]=In[Ht]=In[Zt]=In[Yt]=In[Qt]=In[te]=In[ee]=In[oe]=!1;var Cn={};Cn[Lt]=Cn[Bt]=Cn[ue]=Cn[ae]=Cn[Ft]=Cn[qt]=Cn[ce]=Cn[fe]=Cn[se]=Cn[le]=Cn[pe]=Cn[Ht]=Cn[Zt]=Cn[Yt]=Cn[Qt]=Cn[te]=Cn[ee]=Cn[ne]=Cn[de]=Cn[he]=Cn[ye]=Cn[ve]=!0,Cn[$t]=Cn[Gt]=Cn[oe]=!1;var Mn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Rn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Dn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ln=parseFloat,Bn=parseInt,Nn="object"==typeof t&&t&&t.Object===Object&&t,Fn="object"==typeof self&&self&&self.Object===Object&&self,qn=Nn||Fn||Function("return this")(),Un="object"==typeof e&&e&&!e.nodeType&&e,$n=Un&&"object"==typeof r&&r&&!r.nodeType&&r,Gn=$n&&$n.exports===Un,Kn=Gn&&Nn.process,Hn=function(){try{var t=$n&&$n.require&&$n.require("util").types;return t||Kn&&Kn.binding&&Kn.binding("util")}catch(t){}}(),Zn=Hn&&Hn.isArrayBuffer,Vn=Hn&&Hn.isDate,Yn=Hn&&Hn.isMap,Jn=Hn&&Hn.isRegExp,Xn=Hn&&Hn.isSet,Qn=Hn&&Hn.isTypedArray,tr=k("length"),er=T(Mn),nr=T(Rn),rr=T(Wn),or=function t(e){function n(t){if(nc(t)&&!hp(t)&&!(t instanceof b)){if(t instanceof o)return t;if(hs.call(t,"__wrapped__"))return Qi(t)}return new o(t)}function r(){}function o(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=nt}function b(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mt,this.__views__=[]}function T(){var t=new b(this.__wrapped__);return t.__actions__=Mo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mo(this.__views__),t}function V(){if(this.__filtered__){var t=new b(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Q(){var t=this.__wrapped__.value(),e=this.__dir__,n=hp(t),r=e<0,o=n?t.length:0,i=Oi(0,o,this.__views__),u=i.start,a=i.end,c=a-u,f=r?a:u-1,s=this.__iteratees__,l=s.length,p=0,d=$s(c,this.__takeCount__);if(!n||!r&&o==c&&d==c)return go(t,this.__actions__);var h=[];t:for(;c--&&p<d;){f+=e;for(var y=-1,v=t[f];++y<l;){var g=s[y],b=g.iteratee,m=g.type,_=b(v);if(m==St)v=_;else if(!_){if(m==Et)continue t;break t}}h[p++]=v}return h}function tt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Le(){this.__data__=tl?tl(null):{},this.size=0}function Ye(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Je(t){var e=this.__data__;if(tl){var n=e[t];return n===ut?nt:n}return hs.call(e,t)?e[t]:nt}function Xe(t){var e=this.__data__;return tl?e[t]!==nt:hs.call(e,t)}function Qe(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=tl&&e===nt?ut:e,this}function tn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function en(){this.__data__=[],this.size=0}function nn(t){var e=this.__data__,n=Mn(e,t);return!(n<0||(n==e.length-1?e.pop():Es.call(e,n,1),--this.size,0))}function rn(t){var e=this.__data__,n=Mn(e,t);return n<0?nt:e[n][1]}function on(t){return Mn(this.__data__,t)>-1}function un(t,e){var n=this.__data__,r=Mn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function an(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function cn(){this.size=0,this.__data__={hash:new tt,map:new(Ys||tn),string:new tt}}function fn(t){var e=mi(this,t).delete(t);return this.size-=e?1:0,e}function sn(t){return mi(this,t).get(t)}function ln(t){return mi(this,t).has(t)}function pn(t,e){var n=mi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function dn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new an;++e<n;)this.add(t[e])}function hn(t){return this.__data__.set(t,ut),this}function yn(t){return this.__data__.has(t)}function vn(t){this.size=(this.__data__=new tn(t)).size}function gn(){this.__data__=new tn,this.size=0}function bn(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function mn(t){return this.__data__.get(t)}function _n(t){return this.__data__.has(t)}function wn(t,e){var n=this.__data__;if(n instanceof tn){var r=n.__data__;if(!Ys||r.length<rt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new an(r)}return n.set(t,e),this.size=n.size,this}function xn(t,e){var n=hp(t),r=!n&&dp(t),o=!n&&!r&&vp(t),i=!n&&!r&&!o&&wp(t),u=n||r||o||i,a=u?A(t.length,as):[],c=a.length;for(var f in t)!e&&!hs.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||Ai(f,c))||a.push(f);return a}function On(t){var e=t.length;return e?t[Jr(0,e-1)]:nt}function kn(t,e){return Vi(Mo(t),Un(e,0,t.length))}function Tn(t){return Vi(Mo(t))}function En(t,e,n){(n===nt||qa(t[e],n))&&(n!==nt||e in t)||Nn(t,e,n)}function Sn(t,e,n){var r=t[e];hs.call(t,e)&&qa(r,n)&&(n!==nt||e in t)||Nn(t,e,n)}function Mn(t,e){for(var n=t.length;n--;)if(qa(t[n][0],e))return n;return-1}function Rn(t,e,n,r){return pl(t,function(t,o,i){e(r,t,n(t),i)}),r}function Wn(t,e){return t&&Ro(e,Dc(e),t)}function Dn(t,e){return t&&Ro(e,Lc(e),t)}function Nn(t,e,n){"__proto__"==e&&Is?Is(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Fn(t,e){for(var n=-1,r=e.length,o=ts(r),i=null==t;++n<r;)o[n]=i?nt:Mc(t,e[n]);return o}function Un(t,e,n){return t===t&&(n!==nt&&(t=t<=n?t:n),e!==nt&&(t=t>=e?t:e)),t}function $n(t,e,n,r,o,i){var u,c=e&ft,f=e&st,s=e&lt;if(n&&(u=o?n(t,r,o,i):n(t)),u!==nt)return u;if(!ec(t))return t;var l=hp(t);if(l){if(u=ki(t),!c)return Mo(t,u)}else{var p=jl(t),d=p==Gt||p==Kt;if(vp(t))return jo(t,c);if(p==Yt||p==Lt||d&&!o){if(u=f||d?{}:Ti(t),!c)return f?Do(t,Dn(u,t)):Wo(t,Wn(u,t))}else{if(!Cn[p])return o?t:{};u=Ei(t,p,c)}}i||(i=new vn);var h=i.get(t);if(h)return h;i.set(t,u),_p(t)?t.forEach(function(r){u.add($n(r,e,n,r,t,i))}):bp(t)&&t.forEach(function(r,o){u.set(o,$n(r,e,n,o,t,i))});var y=s?f?yi:hi:f?Lc:Dc,v=l?nt:y(t);return a(v||t,function(r,o){v&&(o=r,r=t[o]),Sn(u,o,$n(r,e,n,o,t,i))}),u}function Kn(t){var e=Dc(t);return function(n){return Hn(n,t,e)}}function Hn(t,e,n){var r=n.length;if(null==t)return!r;for(t=is(t);r--;){var o=n[r],i=e[o],u=t[o];if(u===nt&&!(o in t)||!i(u))return!1}return!0}function tr(t,e,n){if("function"!=typeof t)throw new cs(it);return Tl(function(){t.apply(nt,n)},e)}function ir(t,e,n,r){var o=-1,i=l,u=!0,a=t.length,c=[],f=e.length;if(!a)return c;n&&(e=d(e,C(n))),r?(i=p,u=!1):e.length>=rt&&(i=R,u=!1,e=new dn(e));t:for(;++o<a;){var s=t[o],h=null==n?s:n(s);if(s=r||0!==s?s:0,u&&h===h){for(var y=f;y--;)if(e[y]===h)continue t;c.push(s)}else i(e,h,r)||c.push(s)}return c}function ur(t,e){var n=!0;return pl(t,function(t,r,o){return n=!!e(t,r,o)}),n}function ar(t,e,n){for(var r=-1,o=t.length;++r<o;){var i=t[r],u=e(i);if(null!=u&&(a===nt?u===u&&!dc(u):n(u,a)))var a=u,c=i}return c}function cr(t,e,n,r){var o=t.length;for(n=mc(n),n<0&&(n=-n>o?0:o+n),r=r===nt||r>o?o:mc(r),r<0&&(r+=o),r=n>r?0:_c(r);n<r;)t[n++]=e;return t}function fr(t,e){var n=[];return pl(t,function(t,r,o){e(t,r,o)&&n.push(t)}),n}function sr(t,e,n,r,o){var i=-1,u=t.length;for(n||(n=zi),o||(o=[]);++i<u;){var a=t[i];e>0&&n(a)?e>1?sr(a,e-1,n,r,o):h(o,a):r||(o[o.length]=a)}return o}function lr(t,e){return t&&hl(t,e,Dc)}function pr(t,e){return t&&yl(t,e,Dc)}function dr(t,e){return s(e,function(e){return Xa(t[e])})}function hr(t,e){e=xo(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[Yi(e[n++])];return n&&n==r?t:nt}function yr(t,e,n){var r=e(t);return hp(t)?r:h(r,n(t))}function vr(t){return null==t?t===nt?re:Vt:As&&As in is(t)?xi(t):qi(t)}function gr(t,e){return t>e}function br(t,e){return null!=t&&hs.call(t,e)}function mr(t,e){return null!=t&&e in is(t)}function _r(t,e,n){return t>=$s(e,n)&&t<Us(e,n)}function wr(t,e,n){for(var r=n?p:l,o=t[0].length,i=t.length,u=i,a=ts(i),c=1/0,f=[];u--;){var s=t[u];u&&e&&(s=d(s,C(e))),c=$s(s.length,c),a[u]=!n&&(e||o>=120&&s.length>=120)?new dn(u&&s):nt}s=t[0];var h=-1,y=a[0];t:for(;++h<o&&f.length<c;){var v=s[h],g=e?e(v):v;if(v=n||0!==v?v:0,!(y?R(y,g):r(f,g,n))){for(u=i;--u;){var b=a[u];if(!(b?R(b,g):r(t[u],g,n)))continue t}y&&y.push(g),f.push(v)}}return f}function xr(t,e,n,r){return lr(t,function(t,o,i){e(r,n(t),o,i)}),r}function Or(t,e,n){e=xo(e,t),t=$i(t,e);var r=null==t?t:t[Yi(bu(e))];return null==r?nt:i(r,t,n)}function jr(t){return nc(t)&&vr(t)==Lt}function Pr(t){return nc(t)&&vr(t)==ue}function kr(t){return nc(t)&&vr(t)==qt}function Tr(t,e,n,r,o){return t===e||(null==t||null==e||!nc(t)&&!nc(e)?t!==t&&e!==e:Er(t,e,n,r,Tr,o))}function Er(t,e,n,r,o,i){var u=hp(t),a=hp(e),c=u?Bt:jl(t),f=a?Bt:jl(e);c=c==Lt?Yt:c,f=f==Lt?Yt:f;var s=c==Yt,l=f==Yt,p=c==f;if(p&&vp(t)){if(!vp(e))return!1;u=!0,s=!1}if(p&&!s)return i||(i=new vn),u||wp(t)?si(t,e,n,r,o,i):li(t,e,c,n,r,o,i);if(!(n&pt)){var d=s&&hs.call(t,"__wrapped__"),h=l&&hs.call(e,"__wrapped__");if(d||h){var y=d?t.value():t,v=h?e.value():e;return i||(i=new vn),o(y,v,n,r,i)}}return!!p&&(i||(i=new vn),pi(t,e,n,r,o,i))}function Sr(t){return nc(t)&&jl(t)==Ht}function zr(t,e,n,r){var o=n.length,i=o,u=!r;if(null==t)return!i;for(t=is(t);o--;){var a=n[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){a=n[o];var c=a[0],f=t[c],s=a[1];if(u&&a[2]){if(f===nt&&!(c in t))return!1}else{var l=new vn;if(r)var p=r(f,s,c,t,e,l);if(!(p===nt?Tr(s,f,pt|dt,r,l):p))return!1}}return!0}function Ar(t){return!(!ec(t)||Wi(t))&&(Xa(t)?_s:$e).test(Ji(t))}function Ir(t){return nc(t)&&vr(t)==Qt}function Cr(t){return nc(t)&&jl(t)==te}function Mr(t){return nc(t)&&tc(t.length)&&!!In[vr(t)]}function Rr(t){return"function"==typeof t?t:null==t?Ef:"object"==typeof t?hp(t)?Fr(t[0],t[1]):Nr(t):Wf(t)}function Wr(t){if(!Di(t))return qs(t);var e=[];for(var n in is(t))hs.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Dr(t){if(!ec(t))return Fi(t);var e=Di(t),n=[];for(var r in t)("constructor"!=r||!e&&hs.call(t,r))&&n.push(r);return n}function Lr(t,e){return t<e}function Br(t,e){var n=-1,r=Ua(t)?ts(t.length):[];return pl(t,function(t,o,i){r[++n]=e(t,o,i)}),r}function Nr(t){var e=_i(t);return 1==e.length&&e[0][2]?Bi(e[0][0],e[0][1]):function(n){return n===t||zr(n,t,e)}}function Fr(t,e){return Ci(t)&&Li(e)?Bi(Yi(t),e):function(n){var r=Mc(n,t);return r===nt&&r===e?Wc(n,t):Tr(e,r,pt|dt)}}function qr(t,e,n,r,o){t!==e&&hl(e,function(i,u){if(o||(o=new vn),ec(i))Ur(t,e,u,n,qr,r,o);else{var a=r?r(Ki(t,u),i,u+"",t,e,o):nt;a===nt&&(a=i),En(t,u,a)}},Lc)}function Ur(t,e,n,r,o,i,u){var a=Ki(t,n),c=Ki(e,n),f=u.get(c);if(f)return En(t,n,f),nt;var s=i?i(a,c,n+"",t,e,u):nt,l=s===nt;if(l){var p=hp(c),d=!p&&vp(c),h=!p&&!d&&wp(c);s=c,p||d||h?hp(a)?s=a:$a(a)?s=Mo(a):d?(l=!1,s=jo(c,!0)):h?(l=!1,s=So(c,!0)):s=[]:sc(c)||dp(c)?(s=a,dp(a)?s=xc(a):ec(a)&&!Xa(a)||(s=Ti(c))):l=!1}l&&(u.set(c,s),o(s,c,r,i,u),u.delete(c)),En(t,n,s)}function $r(t,e){var n=t.length;if(n)return e+=e<0?n:0,Ai(e,n)?t[e]:nt}function Gr(t,e,n){e=e.length?d(e,function(t){return hp(t)?function(e){return hr(e,1===t.length?t[0]:t)}:t}):[Ef];var r=-1;return e=d(e,C(bi())),S(Br(t,function(t,n,o){return{criteria:d(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return Ao(t,e,n)})}function Kr(t,e){return Hr(t,e,function(e,n){return Wc(t,n)})}function Hr(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var u=e[r],a=hr(t,u);n(a,u)&&ro(i,xo(u,t),a)}return i}function Zr(t){return function(e){return hr(e,t)}}function Vr(t,e,n,r){var o=r?O:x,i=-1,u=e.length,a=t;for(t===e&&(e=Mo(e)),n&&(a=d(t,C(n)));++i<u;)for(var c=0,f=e[i],s=n?n(f):f;(c=o(a,s,c,r))>-1;)a!==t&&Es.call(a,c,1),Es.call(t,c,1);return t}function Yr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Ai(o)?Es.call(t,o,1):ho(t,o)}}return t}function Jr(t,e){return t+Ds(Hs()*(e-t+1))}function Xr(t,e,n,r){for(var o=-1,i=Us(Ws((e-t)/(n||1)),0),u=ts(i);i--;)u[r?i:++o]=t,t+=n;return u}function Qr(t,e){var n="";if(!t||e<1||e>At)return n;do{e%2&&(n+=t),(e=Ds(e/2))&&(t+=t)}while(e);return n}function to(t,e){return El(Ui(t,e,Ef),t+"")}function eo(t){return On(Yc(t))}function no(t,e){var n=Yc(t);return Vi(n,Un(e,0,n.length))}function ro(t,e,n,r){if(!ec(t))return t;e=xo(e,t);for(var o=-1,i=e.length,u=i-1,a=t;null!=a&&++o<i;){var c=Yi(e[o]),f=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=u){var s=a[c];(f=r?r(s,c,a):nt)===nt&&(f=ec(s)?s:Ai(e[o+1])?[]:{})}Sn(a,c,f),a=a[c]}return t}function oo(t){return Vi(Yc(t))}function io(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=ts(o);++r<o;)i[r]=t[r+e];return i}function uo(t,e){var n;return pl(t,function(t,r,o){return!(n=e(t,r,o))}),!!n}function ao(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e===e&&o<=Wt){for(;r<o;){var i=r+o>>>1,u=t[i];null!==u&&!dc(u)&&(n?u<=e:u<e)?r=i+1:o=i}return o}return co(t,e,Ef,n)}function co(t,e,n,r){var o=0,i=null==t?0:t.length;if(0===i)return 0;e=n(e);for(var u=e!==e,a=null===e,c=dc(e),f=e===nt;o<i;){var s=Ds((o+i)/2),l=n(t[s]),p=l!==nt,d=null===l,h=l===l,y=dc(l);if(u)var v=r||h;else v=f?h&&(r||p):a?h&&p&&(r||!d):c?h&&p&&!d&&(r||!y):!d&&!y&&(r?l<=e:l<e);v?o=s+1:i=s}return $s(i,Rt)}function fo(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var u=t[n],a=e?e(u):u;if(!n||!qa(a,c)){var c=a;i[o++]=0===u?0:u}}return i}function so(t){return"number"==typeof t?t:dc(t)?Ct:+t}function lo(t){if("string"==typeof t)return t;if(hp(t))return d(t,lo)+"";if(dc(t))return sl?sl.call(t):"";var e=t+"";return"0"==e&&1/t==-zt?"-0":e}function po(t,e,n){var r=-1,o=l,i=t.length,u=!0,a=[],c=a;if(n)u=!1,o=p;else if(i>=rt){var f=e?null:_l(t);if(f)return H(f);u=!1,o=R,c=new dn}else c=e?[]:a;t:for(;++r<i;){var s=t[r],d=e?e(s):s;if(s=n||0!==s?s:0,u&&d===d){for(var h=c.length;h--;)if(c[h]===d)continue t;e&&c.push(d),a.push(s)}else o(c,d,n)||(c!==a&&c.push(d),a.push(s))}return a}function ho(t,e){return e=xo(e,t),null==(t=$i(t,e))||delete t[Yi(bu(e))]}function yo(t,e,n,r){return ro(t,e,n(hr(t,e)),r)}function vo(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?io(t,r?0:i,r?i+1:o):io(t,r?i+1:0,r?o:i)}function go(t,e){var n=t;return n instanceof b&&(n=n.value()),y(e,function(t,e){return e.func.apply(e.thisArg,h([t],e.args))},n)}function bo(t,e,n){var r=t.length;if(r<2)return r?po(t[0]):[];for(var o=-1,i=ts(r);++o<r;)for(var u=t[o],a=-1;++a<r;)a!=o&&(i[o]=ir(i[o]||u,t[a],e,n));return po(sr(i,1),e,n)}function mo(t,e,n){for(var r=-1,o=t.length,i=e.length,u={};++r<o;)n(u,t[r],r<i?e[r]:nt);return u}function _o(t){return $a(t)?t:[]}function wo(t){return"function"==typeof t?t:Ef}function xo(t,e){return hp(t)?t:Ci(t,e)?[t]:Sl(jc(t))}function Oo(t,e,n){var r=t.length;return n=n===nt?r:n,!e&&n>=r?t:io(t,e,n)}function jo(t,e){if(e)return t.slice();var n=t.length,r=js?js(n):new t.constructor(n);return t.copy(r),r}function Po(t){var e=new t.constructor(t.byteLength);return new Os(e).set(new Os(t)),e}function ko(t,e){return new t.constructor(e?Po(t.buffer):t.buffer,t.byteOffset,t.byteLength)}function To(t){var e=new t.constructor(t.source,Fe.exec(t));return e.lastIndex=t.lastIndex,e}function Eo(t){return fl?is(fl.call(t)):{}}function So(t,e){return new t.constructor(e?Po(t.buffer):t.buffer,t.byteOffset,t.length)}function zo(t,e){if(t!==e){var n=t!==nt,r=null===t,o=t===t,i=dc(t),u=e!==nt,a=null===e,c=e===e,f=dc(e);if(!a&&!f&&!i&&t>e||i&&u&&c&&!a&&!f||r&&u&&c||!n&&c||!o)return 1;if(!r&&!i&&!f&&t<e||f&&n&&o&&!r&&!i||a&&n&&o||!u&&o||!c)return-1}return 0}function Ao(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,u=o.length,a=n.length;++r<u;){var c=zo(o[r],i[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}function Io(t,e,n,r){for(var o=-1,i=t.length,u=n.length,a=-1,c=e.length,f=Us(i-u,0),s=ts(c+f),l=!r;++a<c;)s[a]=e[a];for(;++o<u;)(l||o<i)&&(s[n[o]]=t[o]);for(;f--;)s[a++]=t[o++];return s}function Co(t,e,n,r){for(var o=-1,i=t.length,u=-1,a=n.length,c=-1,f=e.length,s=Us(i-a,0),l=ts(s+f),p=!r;++o<s;)l[o]=t[o];for(var d=o;++c<f;)l[d+c]=e[c];for(;++u<a;)(p||o<i)&&(l[d+n[u]]=t[o++]);return l}function Mo(t,e){var n=-1,r=t.length;for(e||(e=ts(r));++n<r;)e[n]=t[n];return e}function Ro(t,e,n,r){var o=!n;n||(n={});for(var i=-1,u=e.length;++i<u;){var a=e[i],c=r?r(n[a],t[a],a,n,t):nt;c===nt&&(c=t[a]),o?Nn(n,a,c):Sn(n,a,c)}return n}function Wo(t,e){return Ro(t,xl(t),e)}function Do(t,e){return Ro(t,Ol(t),e)}function Lo(t,e){return function(n,r){var o=hp(n)?u:Rn,i=e?e():{};return o(n,t,bi(r,2),i)}}function Bo(t){return to(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:nt,u=o>2?n[2]:nt;for(i=t.length>3&&"function"==typeof i?(o--,i):nt,u&&Ii(n[0],n[1],u)&&(i=o<3?nt:i,o=1),e=is(e);++r<o;){var a=n[r];a&&t(e,a,r,i)}return e})}function No(t,e){return function(n,r){if(null==n)return n;if(!Ua(n))return t(n,r);for(var o=n.length,i=e?o:-1,u=is(n);(e?i--:++i<o)&&!1!==r(u[i],i,u););return n}}function Fo(t){return function(e,n,r){for(var o=-1,i=is(e),u=r(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===n(i[c],c,i))break}return e}}function qo(t,e,n){function r(){return(this&&this!==qn&&this instanceof r?i:t).apply(o?n:this,arguments)}var o=e&ht,i=Go(t);return r}function Uo(t){return function(e){e=jc(e);var n=F(e)?X(e):nt,r=n?n[0]:e.charAt(0),o=n?Oo(n,1).join(""):e.slice(1);return r[t]()+o}}function $o(t){return function(e){return y(Of(nf(e).replace(jn,"")),t,"")}}function Go(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=ll(t.prototype),r=t.apply(n,e);return ec(r)?r:n}}function Ko(t,e,n){function r(){for(var u=arguments.length,a=ts(u),c=u,f=gi(r);c--;)a[c]=arguments[c];var s=u<3&&a[0]!==f&&a[u-1]!==f?[]:K(a,f);return u-=s.length,u<n?ri(t,e,Vo,r.placeholder,nt,a,s,nt,nt,n-u):i(this&&this!==qn&&this instanceof r?o:t,this,a)}var o=Go(t);return r}function Ho(t){return function(e,n,r){var o=is(e);if(!Ua(e)){var i=bi(n,3);e=Dc(e),n=function(t){return i(o[t],t,o)}}var u=t(e,n,r);return u>-1?o[i?e[u]:u]:nt}}function Zo(t){return di(function(e){var n=e.length,r=n,i=o.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new cs(it);if(i&&!a&&"wrapper"==vi(u))var a=new o([],!0)}for(r=a?r:n;++r<n;){u=e[r];var c=vi(u),f="wrapper"==c?wl(u):nt;a=f&&Ri(f[0])&&f[1]==(wt|gt|mt|xt)&&!f[4].length&&1==f[9]?a[vi(f[0])].apply(a,f[3]):1==u.length&&Ri(u)?a[c]():a.thru(u)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&hp(r))return a.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}})}function Vo(t,e,n,r,o,i,u,a,c,f){function s(){for(var g=arguments.length,b=ts(g),m=g;m--;)b[m]=arguments[m];if(h)var _=gi(s),w=L(b,_);if(r&&(b=Io(b,r,o,h)),i&&(b=Co(b,i,u,h)),g-=w,h&&g<f)return ri(t,e,Vo,s.placeholder,n,b,K(b,_),a,c,f-g);var x=p?n:this,O=d?x[t]:t;return g=b.length,a?b=Gi(b,a):y&&g>1&&b.reverse(),l&&c<g&&(b.length=c),this&&this!==qn&&this instanceof s&&(O=v||Go(O)),O.apply(x,b)}var l=e&wt,p=e&ht,d=e&yt,h=e&(gt|bt),y=e&Ot,v=d?nt:Go(t);return s}function Yo(t,e){return function(n,r){return xr(n,t,e(r),{})}}function Jo(t,e){return function(n,r){var o;if(n===nt&&r===nt)return e;if(n!==nt&&(o=n),r!==nt){if(o===nt)return r;"string"==typeof n||"string"==typeof r?(n=lo(n),r=lo(r)):(n=so(n),r=so(r)),o=t(n,r)}return o}}function Xo(t){return di(function(e){return e=d(e,C(bi())),to(function(n){var r=this;return t(e,function(t){return i(t,r,n)})})})}function Qo(t,e){e=e===nt?" ":lo(e);var n=e.length;if(n<2)return n?Qr(e,t):e;var r=Qr(e,Ws(t/J(e)));return F(e)?Oo(X(r),0,t).join(""):r.slice(0,t)}function ti(t,e,n,r){function o(){for(var e=-1,c=arguments.length,f=-1,s=r.length,l=ts(s+c),p=this&&this!==qn&&this instanceof o?a:t;++f<s;)l[f]=r[f];for(;c--;)l[f++]=arguments[++e];return i(p,u?n:this,l)}var u=e&ht,a=Go(t);return o}function ei(t){return function(e,n,r){return r&&"number"!=typeof r&&Ii(e,n,r)&&(n=r=nt),e=bc(e),n===nt?(n=e,e=0):n=bc(n),r=r===nt?e<n?1:-1:bc(r),Xr(e,n,r,t)}}function ni(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=wc(e),n=wc(n)),t(e,n)}}function ri(t,e,n,r,o,i,u,a,c,f){var s=e&gt,l=s?u:nt,p=s?nt:u,d=s?i:nt,h=s?nt:i;e|=s?mt:_t,(e&=~(s?_t:mt))&vt||(e&=~(ht|yt));var y=[t,e,o,d,l,h,p,a,c,f],v=n.apply(nt,y);return Ri(t)&&kl(v,y),v.placeholder=r,Hi(v,t,e)}function oi(t){var e=os[t];return function(t,n){if(t=wc(t),(n=null==n?0:$s(mc(n),292))&&Ns(t)){var r=(jc(t)+"e").split("e");return r=(jc(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}function ii(t){return function(e){var n=jl(e);return n==Ht?$(e):n==te?Z(e):I(e,t(e))}}function ui(t,e,n,r,o,i,u,a){var c=e&yt;if(!c&&"function"!=typeof t)throw new cs(it);var f=r?r.length:0;if(f||(e&=~(mt|_t),r=o=nt),u=u===nt?u:Us(mc(u),0),a=a===nt?a:mc(a),f-=o?o.length:0,e&_t){var s=r,l=o;r=o=nt}var p=c?nt:wl(t),d=[t,e,n,r,o,s,l,i,u,a];if(p&&Ni(d,p),t=d[0],e=d[1],n=d[2],r=d[3],o=d[4],a=d[9]=d[9]===nt?c?0:t.length:Us(d[9]-f,0),!a&&e&(gt|bt)&&(e&=~(gt|bt)),e&&e!=ht)h=e==gt||e==bt?Ko(t,e,a):e!=mt&&e!=(ht|mt)||o.length?Vo.apply(nt,d):ti(t,e,n,r);else var h=qo(t,e,n);return Hi((p?vl:kl)(h,d),t,e)}function ai(t,e,n,r){return t===nt||qa(t,ls[n])&&!hs.call(r,n)?e:t}function ci(t,e,n,r,o,i){return ec(t)&&ec(e)&&(i.set(e,t),qr(t,e,nt,ci,i),i.delete(e)),t}function fi(t){return sc(t)?nt:t}function si(t,e,n,r,o,i){var u=n&pt,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var f=i.get(t),s=i.get(e);if(f&&s)return f==e&&s==t;var l=-1,p=!0,d=n&dt?new dn:nt;for(i.set(t,e),i.set(e,t);++l<a;){var h=t[l],y=e[l];if(r)var v=u?r(y,h,l,e,t,i):r(h,y,l,t,e,i);if(v!==nt){if(v)continue;p=!1;break}if(d){if(!g(e,function(t,e){if(!R(d,e)&&(h===t||o(h,t,n,r,i)))return d.push(e)})){p=!1;break}}else if(h!==y&&!o(h,y,n,r,i)){p=!1;break}}return i.delete(t),i.delete(e),p}function li(t,e,n,r,o,i,u){switch(n){case ae:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ue:return!(t.byteLength!=e.byteLength||!i(new Os(t),new Os(e)));case Ft:case qt:case Zt:return qa(+t,+e);case $t:return t.name==e.name&&t.message==e.message;case Qt:case ee:return t==e+"";case Ht:var a=$;case te:var c=r&pt;if(a||(a=H),t.size!=e.size&&!c)return!1;var f=u.get(t);if(f)return f==e;r|=dt,u.set(t,e);var s=si(a(t),a(e),r,o,i,u);return u.delete(t),s;case ne:if(fl)return fl.call(t)==fl.call(e)}return!1}function pi(t,e,n,r,o,i){var u=n&pt,a=hi(t),c=a.length;if(c!=hi(e).length&&!u)return!1;for(var f=c;f--;){var s=a[f];if(!(u?s in e:hs.call(e,s)))return!1}var l=i.get(t),p=i.get(e);if(l&&p)return l==e&&p==t;var d=!0;i.set(t,e),i.set(e,t);for(var h=u;++f<c;){s=a[f];var y=t[s],v=e[s];if(r)var g=u?r(v,y,s,e,t,i):r(y,v,s,t,e,i);if(!(g===nt?y===v||o(y,v,n,r,i):g)){d=!1;break}h||(h="constructor"==s)}if(d&&!h){var b=t.constructor,m=e.constructor;b!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof m&&m instanceof m)&&(d=!1)}return i.delete(t),i.delete(e),d}function di(t){return El(Ui(t,nt,su),t+"")}function hi(t){return yr(t,Dc,xl)}function yi(t){return yr(t,Lc,Ol)}function vi(t){for(var e=t.name+"",n=nl[e],r=hs.call(nl,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e}function gi(t){return(hs.call(n,"placeholder")?n:t).placeholder}function bi(){var t=n.iteratee||Sf;return t=t===Sf?Rr:t,arguments.length?t(arguments[0],arguments[1]):t}function mi(t,e){var n=t.__data__;return Mi(e)?n["string"==typeof e?"string":"hash"]:n.map}function _i(t){for(var e=Dc(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Li(o)]}return e}function wi(t,e){var n=N(t,e);return Ar(n)?n:nt}function xi(t){var e=hs.call(t,As),n=t[As];try{t[As]=nt;var r=!0}catch(t){}var o=gs.call(t);return r&&(e?t[As]=n:delete t[As]),o}function Oi(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],u=i.size;switch(i.type){case"drop":t+=u;break;case"dropRight":e-=u;break;case"take":e=$s(e,t+u);break;case"takeRight":t=Us(t,e-u)}}return{start:t,end:e}}function ji(t){var e=t.match(We);return e?e[1].split(De):[]}function Pi(t,e,n){e=xo(e,t);for(var r=-1,o=e.length,i=!1;++r<o;){var u=Yi(e[r]);if(!(i=null!=t&&n(t,u)))break;t=t[u]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&tc(o)&&Ai(u,o)&&(hp(t)||dp(t))}function ki(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&hs.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Ti(t){return"function"!=typeof t.constructor||Di(t)?{}:ll(Ps(t))}function Ei(t,e,n){var r=t.constructor;switch(e){case ue:return Po(t);case Ft:case qt:return new r(+t);case ae:return ko(t,n);case ce:case fe:case se:case le:case pe:case de:case he:case ye:case ve:return So(t,n);case Ht:return new r;case Zt:case ee:return new r(t);case Qt:return To(t);case te:return new r;case ne:return Eo(t)}}function Si(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Re,"{\n/* [wrapped with "+e+"] */\n")}function zi(t){return hp(t)||dp(t)||!!(Ss&&t&&t[Ss])}function Ai(t,e){var n=typeof t;return!!(e=null==e?At:e)&&("number"==n||"symbol"!=n&&Ke.test(t))&&t>-1&&t%1==0&&t<e}function Ii(t,e,n){if(!ec(n))return!1;var r=typeof e;return!!("number"==r?Ua(n)&&Ai(e,n.length):"string"==r&&e in n)&&qa(n[e],t)}function Ci(t,e){if(hp(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!dc(t))||Ee.test(t)||!Te.test(t)||null!=e&&t in is(e)}function Mi(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Ri(t){var e=vi(t),r=n[e];if("function"!=typeof r||!(e in b.prototype))return!1;if(t===r)return!0;var o=wl(r);return!!o&&t===o[0]}function Wi(t){return!!vs&&vs in t}function Di(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ls)}function Li(t){return t===t&&!ec(t)}function Bi(t,e){return function(n){return null!=n&&n[t]===e&&(e!==nt||t in is(n))}}function Ni(t,e){var n=t[1],r=e[1],o=n|r,i=o<(ht|yt|wt),u=r==wt&&n==gt||r==wt&&n==xt&&t[7].length<=e[8]||r==(wt|xt)&&e[7].length<=e[8]&&n==gt;if(!i&&!u)return t;r&ht&&(t[2]=e[2],o|=n&ht?0:vt);var a=e[3];if(a){var c=t[3];t[3]=c?Io(c,a,e[4]):a,t[4]=c?K(t[3],ct):e[4]}return a=e[5],a&&(c=t[5],t[5]=c?Co(c,a,e[6]):a,t[6]=c?K(t[5],ct):e[6]),a=e[7],a&&(t[7]=a),r&wt&&(t[8]=null==t[8]?e[8]:$s(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o,t}function Fi(t){var e=[];if(null!=t)for(var n in is(t))e.push(n);return e}function qi(t){return gs.call(t)}function Ui(t,e,n){return e=Us(e===nt?t.length-1:e,0),function(){for(var r=arguments,o=-1,u=Us(r.length-e,0),a=ts(u);++o<u;)a[o]=r[e+o];o=-1;for(var c=ts(e+1);++o<e;)c[o]=r[o];return c[e]=n(a),i(t,this,c)}}function $i(t,e){return e.length<2?t:hr(t,io(e,0,-1))}function Gi(t,e){for(var n=t.length,r=$s(e.length,n),o=Mo(t);r--;){var i=e[r];t[r]=Ai(i,n)?o[i]:nt}return t}function Ki(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Hi(t,e,n){var r=e+"";return El(t,Si(r,Xi(ji(r),n)))}function Zi(t){var e=0,n=0;return function(){var r=Gs(),o=Tt-(r-n);if(n=r,o>0){if(++e>=kt)return arguments[0]}else e=0;return t.apply(nt,arguments)}}function Vi(t,e){var n=-1,r=t.length,o=r-1;for(e=e===nt?r:e;++n<e;){var i=Jr(n,o),u=t[i];t[i]=t[n],t[n]=u}return t.length=e,t}function Yi(t){if("string"==typeof t||dc(t))return t;var e=t+"";return"0"==e&&1/t==-zt?"-0":e}function Ji(t){if(null!=t){try{return ds.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Xi(t,e){return a(Dt,function(n){var r="_."+n[0];e&n[1]&&!l(t,r)&&t.push(r)}),t.sort()}function Qi(t){if(t instanceof b)return t.clone();var e=new o(t.__wrapped__,t.__chain__);return e.__actions__=Mo(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function tu(t,e,n){e=(n?Ii(t,e,n):e===nt)?1:Us(mc(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var o=0,i=0,u=ts(Ws(r/e));o<r;)u[i++]=io(t,o,o+=e);return u}function eu(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o}function nu(){var t=arguments.length;if(!t)return[];for(var e=ts(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return h(hp(n)?Mo(n):[n],sr(e,1))}function ru(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===nt?1:mc(e),io(t,e<0?0:e,r)):[]}function ou(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===nt?1:mc(e),e=r-e,io(t,0,e<0?0:e)):[]}function iu(t,e){return t&&t.length?vo(t,bi(e,3),!0,!0):[]}function uu(t,e){return t&&t.length?vo(t,bi(e,3),!0):[]}function au(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Ii(t,e,n)&&(n=0,r=o),cr(t,e,n,r)):[]}function cu(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:mc(n);return o<0&&(o=Us(r+o,0)),w(t,bi(e,3),o)}function fu(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==nt&&(o=mc(n),o=n<0?Us(r+o,0):$s(o,r-1)),w(t,bi(e,3),o,!0)}function su(t){return(null==t?0:t.length)?sr(t,1):[]}function lu(t){return(null==t?0:t.length)?sr(t,zt):[]}function pu(t,e){return(null==t?0:t.length)?(e=e===nt?1:mc(e),sr(t,e)):[]}function du(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r}function hu(t){return t&&t.length?t[0]:nt}function yu(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:mc(n);return o<0&&(o=Us(r+o,0)),x(t,e,o)}function vu(t){return(null==t?0:t.length)?io(t,0,-1):[]}function gu(t,e){return null==t?"":Fs.call(t,e)}function bu(t){var e=null==t?0:t.length;return e?t[e-1]:nt}function mu(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==nt&&(o=mc(n),o=o<0?Us(r+o,0):$s(o,r-1)),e===e?Y(t,e,o):w(t,j,o,!0)}function _u(t,e){return t&&t.length?$r(t,mc(e)):nt}function wu(t,e){return t&&t.length&&e&&e.length?Vr(t,e):t}function xu(t,e,n){return t&&t.length&&e&&e.length?Vr(t,e,bi(n,2)):t}function Ou(t,e,n){return t&&t.length&&e&&e.length?Vr(t,e,nt,n):t}function ju(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=bi(e,3);++r<i;){var u=t[r];e(u,r,t)&&(n.push(u),o.push(r))}return Yr(t,o),n}function Pu(t){return null==t?t:Zs.call(t)}function ku(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Ii(t,e,n)?(e=0,n=r):(e=null==e?0:mc(e),n=n===nt?r:mc(n)),io(t,e,n)):[]}function Tu(t,e){return ao(t,e)}function Eu(t,e,n){return co(t,e,bi(n,2))}function Su(t,e){var n=null==t?0:t.length;if(n){var r=ao(t,e);if(r<n&&qa(t[r],e))return r}return-1}function zu(t,e){return ao(t,e,!0)}function Au(t,e,n){return co(t,e,bi(n,2),!0)}function Iu(t,e){if(null==t?0:t.length){var n=ao(t,e,!0)-1;if(qa(t[n],e))return n}return-1}function Cu(t){return t&&t.length?fo(t):[]}function Mu(t,e){return t&&t.length?fo(t,bi(e,2)):[]}function Ru(t){var e=null==t?0:t.length;return e?io(t,1,e):[]}function Wu(t,e,n){return t&&t.length?(e=n||e===nt?1:mc(e),io(t,0,e<0?0:e)):[]}function Du(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===nt?1:mc(e),e=r-e,io(t,e<0?0:e,r)):[]}function Lu(t,e){return t&&t.length?vo(t,bi(e,3),!1,!0):[]}function Bu(t,e){return t&&t.length?vo(t,bi(e,3)):[]}function Nu(t){return t&&t.length?po(t):[]}function Fu(t,e){return t&&t.length?po(t,bi(e,2)):[]}function qu(t,e){return e="function"==typeof e?e:nt,t&&t.length?po(t,nt,e):[]}function Uu(t){if(!t||!t.length)return[];var e=0;return t=s(t,function(t){if($a(t))return e=Us(t.length,e),!0}),A(e,function(e){return d(t,k(e))})}function $u(t,e){if(!t||!t.length)return[];var n=Uu(t);return null==e?n:d(n,function(t){return i(e,nt,t)})}function Gu(t,e){return mo(t||[],e||[],Sn)}function Ku(t,e){return mo(t||[],e||[],ro)}function Hu(t){var e=n(t);return e.__chain__=!0,e}function Zu(t,e){return e(t),t}function Vu(t,e){return e(t)}function Yu(){return Hu(this)}function Ju(){return new o(this.value(),this.__chain__)}function Xu(){this.__values__===nt&&(this.__values__=gc(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?nt:this.__values__[this.__index__++]}}function Qu(){return this}function ta(t){for(var e,n=this;n instanceof r;){var o=Qi(n);o.__index__=0,o.__values__=nt,e?i.__wrapped__=o:e=o;var i=o;n=n.__wrapped__}return i.__wrapped__=t,e}function ea(){var t=this.__wrapped__;if(t instanceof b){var e=t;return this.__actions__.length&&(e=new b(this)),e=e.reverse(),e.__actions__.push({func:Vu,args:[Pu],thisArg:nt}),new o(e,this.__chain__)}return this.thru(Pu)}function na(){return go(this.__wrapped__,this.__actions__)}function ra(t,e,n){var r=hp(t)?f:ur;return n&&Ii(t,e,n)&&(e=nt),r(t,bi(e,3))}function oa(t,e){return(hp(t)?s:fr)(t,bi(e,3))}function ia(t,e){return sr(la(t,e),1)}function ua(t,e){return sr(la(t,e),zt)}function aa(t,e,n){return n=n===nt?1:mc(n),sr(la(t,e),n)}function ca(t,e){return(hp(t)?a:pl)(t,bi(e,3))}function fa(t,e){return(hp(t)?c:dl)(t,bi(e,3))}function sa(t,e,n,r){t=Ua(t)?t:Yc(t),n=n&&!r?mc(n):0;var o=t.length;return n<0&&(n=Us(o+n,0)),pc(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&x(t,e,n)>-1}function la(t,e){return(hp(t)?d:Br)(t,bi(e,3))}function pa(t,e,n,r){return null==t?[]:(hp(e)||(e=null==e?[]:[e]),n=r?nt:n,hp(n)||(n=null==n?[]:[n]),Gr(t,e,n))}function da(t,e,n){var r=hp(t)?y:E,o=arguments.length<3;return r(t,bi(e,4),n,o,pl)}function ha(t,e,n){var r=hp(t)?v:E,o=arguments.length<3;return r(t,bi(e,4),n,o,dl)}function ya(t,e){return(hp(t)?s:fr)(t,Sa(bi(e,3)))}function va(t){return(hp(t)?On:eo)(t)}function ga(t,e,n){return e=(n?Ii(t,e,n):e===nt)?1:mc(e),(hp(t)?kn:no)(t,e)}function ba(t){return(hp(t)?Tn:oo)(t)}function ma(t){if(null==t)return 0;if(Ua(t))return pc(t)?J(t):t.length;var e=jl(t);return e==Ht||e==te?t.size:Wr(t).length}function _a(t,e,n){var r=hp(t)?g:uo;return n&&Ii(t,e,n)&&(e=nt),r(t,bi(e,3))}function wa(t,e){if("function"!=typeof e)throw new cs(it);return t=mc(t),function(){if(--t<1)return e.apply(this,arguments)}}function xa(t,e,n){return e=n?nt:e,e=t&&null==e?t.length:e,ui(t,wt,nt,nt,nt,nt,e)}function Oa(t,e){var n;if("function"!=typeof e)throw new cs(it);return t=mc(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=nt),n}}function ja(t,e,n){e=n?nt:e;var r=ui(t,gt,nt,nt,nt,nt,nt,e);return r.placeholder=ja.placeholder,r}function Pa(t,e,n){e=n?nt:e;var r=ui(t,bt,nt,nt,nt,nt,nt,e);return r.placeholder=Pa.placeholder,r}function ka(t,e,n){function r(e){var n=p,r=d;return p=d=nt,b=e,y=t.apply(r,n)}function o(t){return b=t,v=Tl(a,e),m?r(t):y}function i(t){var n=t-g,r=t-b,o=e-n;return _?$s(o,h-r):o}function u(t){var n=t-g,r=t-b;return g===nt||n>=e||n<0||_&&r>=h}function a(){var t=np();return u(t)?c(t):(v=Tl(a,i(t)),nt)}function c(t){return v=nt,w&&p?r(t):(p=d=nt,y)}function f(){v!==nt&&ml(v),b=0,p=g=d=v=nt}function s(){return v===nt?y:c(np())}function l(){var t=np(),n=u(t);if(p=arguments,d=this,g=t,n){if(v===nt)return o(g);if(_)return ml(v),v=Tl(a,e),r(g)}return v===nt&&(v=Tl(a,e)),y}var p,d,h,y,v,g,b=0,m=!1,_=!1,w=!0;if("function"!=typeof t)throw new cs(it);return e=wc(e)||0,ec(n)&&(m=!!n.leading,_="maxWait"in n,h=_?Us(wc(n.maxWait)||0,e):h,w="trailing"in n?!!n.trailing:w),l.cancel=f,l.flush=s,l}function Ta(t){return ui(t,Ot)}function Ea(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new cs(it);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(Ea.Cache||an),n}function Sa(t){if("function"!=typeof t)throw new cs(it);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function za(t){return Oa(2,t)}function Aa(t,e){if("function"!=typeof t)throw new cs(it);return e=e===nt?e:mc(e),to(t,e)}function Ia(t,e){if("function"!=typeof t)throw new cs(it);return e=null==e?0:Us(mc(e),0),to(function(n){var r=n[e],o=Oo(n,0,e);return r&&h(o,r),i(t,this,o)})}function Ca(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new cs(it);return ec(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ka(t,e,{leading:r,maxWait:e,trailing:o})}function Ma(t){return xa(t,1)}function Ra(t,e){return cp(wo(e),t)}function Wa(){if(!arguments.length)return[];var t=arguments[0];return hp(t)?t:[t]}function Da(t){return $n(t,lt)}function La(t,e){return e="function"==typeof e?e:nt,$n(t,lt,e)}function Ba(t){return $n(t,ft|lt)}function Na(t,e){return e="function"==typeof e?e:nt,$n(t,ft|lt,e)}function Fa(t,e){return null==e||Hn(t,e,Dc(e))}function qa(t,e){return t===e||t!==t&&e!==e}function Ua(t){return null!=t&&tc(t.length)&&!Xa(t)}function $a(t){return nc(t)&&Ua(t)}function Ga(t){return!0===t||!1===t||nc(t)&&vr(t)==Ft}function Ka(t){return nc(t)&&1===t.nodeType&&!sc(t)}function Ha(t){if(null==t)return!0;if(Ua(t)&&(hp(t)||"string"==typeof t||"function"==typeof t.splice||vp(t)||wp(t)||dp(t)))return!t.length;var e=jl(t);if(e==Ht||e==te)return!t.size;if(Di(t))return!Wr(t).length;for(var n in t)if(hs.call(t,n))return!1;return!0}function Za(t,e){return Tr(t,e)}function Va(t,e,n){n="function"==typeof n?n:nt;var r=n?n(t,e):nt;return r===nt?Tr(t,e,nt,n):!!r}function Ya(t){if(!nc(t))return!1;var e=vr(t);return e==$t||e==Ut||"string"==typeof t.message&&"string"==typeof t.name&&!sc(t)}function Ja(t){return"number"==typeof t&&Ns(t)}function Xa(t){if(!ec(t))return!1;var e=vr(t);return e==Gt||e==Kt||e==Nt||e==Xt}function Qa(t){return"number"==typeof t&&t==mc(t)}function tc(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=At}function ec(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function nc(t){return null!=t&&"object"==typeof t}function rc(t,e){return t===e||zr(t,e,_i(e))}function oc(t,e,n){return n="function"==typeof n?n:nt,zr(t,e,_i(e),n)}function ic(t){return fc(t)&&t!=+t}function uc(t){if(Pl(t))throw new ns(ot);return Ar(t)}function ac(t){return null===t}function cc(t){return null==t}function fc(t){return"number"==typeof t||nc(t)&&vr(t)==Zt}function sc(t){if(!nc(t)||vr(t)!=Yt)return!1;var e=Ps(t);if(null===e)return!0;var n=hs.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ds.call(n)==bs}function lc(t){return Qa(t)&&t>=-At&&t<=At}function pc(t){return"string"==typeof t||!hp(t)&&nc(t)&&vr(t)==ee}function dc(t){return"symbol"==typeof t||nc(t)&&vr(t)==ne}function hc(t){return t===nt}function yc(t){return nc(t)&&jl(t)==oe}function vc(t){return nc(t)&&vr(t)==ie}function gc(t){if(!t)return[];if(Ua(t))return pc(t)?X(t):Mo(t);if(zs&&t[zs])return U(t[zs]());var e=jl(t);return(e==Ht?$:e==te?H:Yc)(t)}function bc(t){return t?(t=wc(t))===zt||t===-zt?(t<0?-1:1)*It:t===t?t:0:0===t?t:0}function mc(t){var e=bc(t),n=e%1;return e===e?n?e-n:e:0}function _c(t){return t?Un(mc(t),0,Mt):0}function wc(t){if("number"==typeof t)return t;if(dc(t))return Ct;if(ec(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ec(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ie,"");var n=Ue.test(t);return n||Ge.test(t)?Bn(t.slice(2),n?2:8):qe.test(t)?Ct:+t}function xc(t){return Ro(t,Lc(t))}function Oc(t){return t?Un(mc(t),-At,At):0===t?t:0}function jc(t){return null==t?"":lo(t)}function Pc(t,e){var n=ll(t);return null==e?n:Wn(n,e)}function kc(t,e){return _(t,bi(e,3),lr)}function Tc(t,e){return _(t,bi(e,3),pr)}function Ec(t,e){return null==t?t:hl(t,bi(e,3),Lc)}function Sc(t,e){return null==t?t:yl(t,bi(e,3),Lc)}function zc(t,e){return t&&lr(t,bi(e,3))}function Ac(t,e){return t&&pr(t,bi(e,3))}function Ic(t){return null==t?[]:dr(t,Dc(t))}function Cc(t){return null==t?[]:dr(t,Lc(t))}function Mc(t,e,n){var r=null==t?nt:hr(t,e);return r===nt?n:r}function Rc(t,e){return null!=t&&Pi(t,e,br)}function Wc(t,e){return null!=t&&Pi(t,e,mr)}function Dc(t){return Ua(t)?xn(t):Wr(t)}function Lc(t){return Ua(t)?xn(t,!0):Dr(t)}function Bc(t,e){var n={};return e=bi(e,3),lr(t,function(t,r,o){Nn(n,e(t,r,o),t)}),n}function Nc(t,e){var n={};return e=bi(e,3),lr(t,function(t,r,o){Nn(n,r,e(t,r,o))}),n}function Fc(t,e){return qc(t,Sa(bi(e)))}function qc(t,e){if(null==t)return{};var n=d(yi(t),function(t){return[t]});return e=bi(e),Hr(t,n,function(t,n){return e(t,n[0])})}function Uc(t,e,n){e=xo(e,t);var r=-1,o=e.length;for(o||(o=1,t=nt);++r<o;){var i=null==t?nt:t[Yi(e[r])];i===nt&&(r=o,i=n),t=Xa(i)?i.call(t):i}return t}function $c(t,e,n){return null==t?t:ro(t,e,n)}function Gc(t,e,n,r){return r="function"==typeof r?r:nt,null==t?t:ro(t,e,n,r)}function Kc(t,e,n){var r=hp(t),o=r||vp(t)||wp(t);if(e=bi(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:ec(t)&&Xa(i)?ll(Ps(t)):{}}return(o?a:lr)(t,function(t,r,o){return e(n,t,r,o)}),n}function Hc(t,e){return null==t||ho(t,e)}function Zc(t,e,n){return null==t?t:yo(t,e,wo(n))}function Vc(t,e,n,r){return r="function"==typeof r?r:nt,null==t?t:yo(t,e,wo(n),r)}function Yc(t){return null==t?[]:M(t,Dc(t))}function Jc(t){return null==t?[]:M(t,Lc(t))}function Xc(t,e,n){return n===nt&&(n=e,e=nt),n!==nt&&(n=wc(n),n=n===n?n:0),e!==nt&&(e=wc(e),e=e===e?e:0),Un(wc(t),e,n)}function Qc(t,e,n){return e=bc(e),n===nt?(n=e,e=0):n=bc(n),t=wc(t),_r(t,e,n)}function tf(t,e,n){if(n&&"boolean"!=typeof n&&Ii(t,e,n)&&(e=n=nt),n===nt&&("boolean"==typeof e?(n=e,e=nt):"boolean"==typeof t&&(n=t,t=nt)),t===nt&&e===nt?(t=0,e=1):(t=bc(t),e===nt?(e=t,t=0):e=bc(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Hs();return $s(t+o*(e-t+Ln("1e-"+((o+"").length-1))),e)}return Jr(t,e)}function ef(t){return Hp(jc(t).toLowerCase())}function nf(t){return(t=jc(t))&&t.replace(He,er).replace(Pn,"")}function rf(t,e,n){t=jc(t),e=lo(e);var r=t.length;n=n===nt?r:Un(mc(n),0,r);var o=n;return(n-=e.length)>=0&&t.slice(n,o)==e}function of(t){return t=jc(t),t&&Oe.test(t)?t.replace(we,nr):t}function uf(t){return t=jc(t),t&&Ae.test(t)?t.replace(ze,"\\$&"):t}function af(t,e,n){t=jc(t),e=mc(e);var r=e?J(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return Qo(Ds(o),n)+t+Qo(Ws(o),n)}function cf(t,e,n){t=jc(t),e=mc(e);var r=e?J(t):0;return e&&r<e?t+Qo(e-r,n):t}function ff(t,e,n){t=jc(t),e=mc(e);var r=e?J(t):0;return e&&r<e?Qo(e-r,n)+t:t}function sf(t,e,n){return n||null==e?e=0:e&&(e=+e),Ks(jc(t).replace(Ce,""),e||0)}function lf(t,e,n){return e=(n?Ii(t,e,n):e===nt)?1:mc(e),Qr(jc(t),e)}function pf(){var t=arguments,e=jc(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function df(t,e,n){return n&&"number"!=typeof n&&Ii(t,e,n)&&(e=n=nt),(n=n===nt?Mt:n>>>0)?(t=jc(t),t&&("string"==typeof e||null!=e&&!mp(e))&&!(e=lo(e))&&F(t)?Oo(X(t),0,n):t.split(e,n)):[]}function hf(t,e,n){return t=jc(t),n=null==n?0:Un(mc(n),0,t.length),e=lo(e),t.slice(n,n+e.length)==e}function yf(t,e,r){var o=n.templateSettings;r&&Ii(t,e,r)&&(e=nt),t=jc(t),e=kp({},e,o,ai);var i,u,a=kp({},e.imports,o.imports,ai),c=Dc(a),f=M(a,c),s=0,l=e.interpolate||Ze,p="__p += '",d=us((e.escape||Ze).source+"|"+l.source+"|"+(l===ke?Ne:Ze).source+"|"+(e.evaluate||Ze).source+"|$","g"),h="//# sourceURL="+(hs.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++An+"]")+"\n";t.replace(d,function(e,n,r,o,a,c){return r||(r=o),p+=t.slice(s,c).replace(Ve,B),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),a&&(u=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=c+e.length,e}),p+="';\n";var y=hs.call(e,"variable")&&e.variable;y||(p="with (obj) {\n"+p+"\n}\n"),p=(u?p.replace(ge,""):p).replace(be,"$1").replace(me,"$1;"),p="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Zp(function(){return rs(c,h+"return "+p).apply(nt,f)});if(v.source=p,Ya(v))throw v;return v}function vf(t){return jc(t).toLowerCase()}function gf(t){return jc(t).toUpperCase()}function bf(t,e,n){if((t=jc(t))&&(n||e===nt))return t.replace(Ie,"");if(!t||!(e=lo(e)))return t;var r=X(t),o=X(e);return Oo(r,W(r,o),D(r,o)+1).join("")}function mf(t,e,n){if((t=jc(t))&&(n||e===nt))return t.replace(Me,"");if(!t||!(e=lo(e)))return t;var r=X(t);return Oo(r,0,D(r,X(e))+1).join("")}function _f(t,e,n){if((t=jc(t))&&(n||e===nt))return t.replace(Ce,"");if(!t||!(e=lo(e)))return t;var r=X(t);return Oo(r,W(r,X(e))).join("")}function wf(t,e){var n=jt,r=Pt;if(ec(e)){var o="separator"in e?e.separator:o;n="length"in e?mc(e.length):n,r="omission"in e?lo(e.omission):r}t=jc(t);var i=t.length;if(F(t)){var u=X(t);i=u.length}if(n>=i)return t;var a=n-J(r);if(a<1)return r;var c=u?Oo(u,0,a).join(""):t.slice(0,a);if(o===nt)return c+r;if(u&&(a+=c.length-a),mp(o)){if(t.slice(a).search(o)){var f,s=c;for(o.global||(o=us(o.source,jc(Fe.exec(o))+"g")),o.lastIndex=0;f=o.exec(s);)var l=f.index;c=c.slice(0,l===nt?a:l)}}else if(t.indexOf(lo(o),a)!=a){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r}function xf(t){return t=jc(t),t&&xe.test(t)?t.replace(_e,rr):t}function Of(t,e,n){return t=jc(t),e=n?nt:e,e===nt?q(t)?et(t):m(t):t.match(e)||[]}function jf(t){var e=null==t?0:t.length,n=bi();return t=e?d(t,function(t){if("function"!=typeof t[1])throw new cs(it);return[n(t[0]),t[1]]}):[],to(function(n){for(var r=-1;++r<e;){var o=t[r];if(i(o[0],this,n))return i(o[1],this,n)}})}function Pf(t){return Kn($n(t,ft))}function kf(t){return function(){return t}}function Tf(t,e){return null==t||t!==t?e:t}function Ef(t){return t}function Sf(t){return Rr("function"==typeof t?t:$n(t,ft))}function zf(t){return Nr($n(t,ft))}function Af(t,e){return Fr(t,$n(e,ft))}function If(t,e,n){var r=Dc(e),o=dr(e,r);null!=n||ec(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=dr(e,Dc(e)));var i=!(ec(n)&&"chain"in n&&!n.chain),u=Xa(t);return a(o,function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__);return(n.__actions__=Mo(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,h([this.value()],arguments))})}),t}function Cf(){return qn._===this&&(qn._=ms),this}function Mf(){}function Rf(t){return t=mc(t),to(function(e){return $r(e,t)})}function Wf(t){return Ci(t)?k(Yi(t)):Zr(t)}function Df(t){return function(e){return null==t?nt:hr(t,e)}}function Lf(){return[]}function Bf(){return!1}function Nf(){return{}}function Ff(){return""}function qf(){return!0}function Uf(t,e){if((t=mc(t))<1||t>At)return[];var n=Mt,r=$s(t,Mt);e=bi(e),t-=Mt;for(var o=A(r,e);++n<t;)e(n);return o}function $f(t){return hp(t)?d(t,Yi):dc(t)?[t]:Mo(Sl(jc(t)))}function Gf(t){var e=++ys;return jc(t)+e}function Kf(t){return t&&t.length?ar(t,Ef,gr):nt}function Hf(t,e){return t&&t.length?ar(t,bi(e,2),gr):nt}function Zf(t){return P(t,Ef)}function Vf(t,e){return P(t,bi(e,2))}function Yf(t){return t&&t.length?ar(t,Ef,Lr):nt}function Jf(t,e){return t&&t.length?ar(t,bi(e,2),Lr):nt}function Xf(t){return t&&t.length?z(t,Ef):0}function Qf(t,e){return t&&t.length?z(t,bi(e,2)):0}e=null==e?qn:or.defaults(qn.Object(),e,or.pick(qn,zn));var ts=e.Array,es=e.Date,ns=e.Error,rs=e.Function,os=e.Math,is=e.Object,us=e.RegExp,as=e.String,cs=e.TypeError,fs=ts.prototype,ss=rs.prototype,ls=is.prototype,ps=e["__core-js_shared__"],ds=ss.toString,hs=ls.hasOwnProperty,ys=0,vs=function(){var t=/[^.]+$/.exec(ps&&ps.keys&&ps.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),gs=ls.toString,bs=ds.call(is),ms=qn._,_s=us("^"+ds.call(hs).replace(ze,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ws=Gn?e.Buffer:nt,xs=e.Symbol,Os=e.Uint8Array,js=ws?ws.allocUnsafe:nt,Ps=G(is.getPrototypeOf,is),ks=is.create,Ts=ls.propertyIsEnumerable,Es=fs.splice,Ss=xs?xs.isConcatSpreadable:nt,zs=xs?xs.iterator:nt,As=xs?xs.toStringTag:nt,Is=function(){try{var t=wi(is,"defineProperty");return t({},"",{}),t}catch(t){}}(),Cs=e.clearTimeout!==qn.clearTimeout&&e.clearTimeout,Ms=es&&es.now!==qn.Date.now&&es.now,Rs=e.setTimeout!==qn.setTimeout&&e.setTimeout,Ws=os.ceil,Ds=os.floor,Ls=is.getOwnPropertySymbols,Bs=ws?ws.isBuffer:nt,Ns=e.isFinite,Fs=fs.join,qs=G(is.keys,is),Us=os.max,$s=os.min,Gs=es.now,Ks=e.parseInt,Hs=os.random,Zs=fs.reverse,Vs=wi(e,"DataView"),Ys=wi(e,"Map"),Js=wi(e,"Promise"),Xs=wi(e,"Set"),Qs=wi(e,"WeakMap"),tl=wi(is,"create"),el=Qs&&new Qs,nl={},rl=Ji(Vs),ol=Ji(Ys),il=Ji(Js),ul=Ji(Xs),al=Ji(Qs),cl=xs?xs.prototype:nt,fl=cl?cl.valueOf:nt,sl=cl?cl.toString:nt,ll=function(){function t(){}return function(e){if(!ec(e))return{};if(ks)return ks(e);t.prototype=e;var n=new t;return t.prototype=nt,n}}();n.templateSettings={escape:je,evaluate:Pe,interpolate:ke,variable:"",imports:{_:n}},n.prototype=r.prototype,n.prototype.constructor=n,o.prototype=ll(r.prototype),o.prototype.constructor=o,b.prototype=ll(r.prototype),b.prototype.constructor=b,tt.prototype.clear=Le,tt.prototype.delete=Ye,tt.prototype.get=Je,tt.prototype.has=Xe,tt.prototype.set=Qe,tn.prototype.clear=en,tn.prototype.delete=nn,tn.prototype.get=rn,tn.prototype.has=on,tn.prototype.set=un,an.prototype.clear=cn,an.prototype.delete=fn,an.prototype.get=sn,an.prototype.has=ln,an.prototype.set=pn,dn.prototype.add=dn.prototype.push=hn,dn.prototype.has=yn,vn.prototype.clear=gn,vn.prototype.delete=bn,vn.prototype.get=mn,vn.prototype.has=_n,vn.prototype.set=wn;var pl=No(lr),dl=No(pr,!0),hl=Fo(),yl=Fo(!0),vl=el?function(t,e){return el.set(t,e),t}:Ef,gl=Is?function(t,e){return Is(t,"toString",{configurable:!0,enumerable:!1,value:kf(e),writable:!0})}:Ef,bl=to,ml=Cs||function(t){return qn.clearTimeout(t)},_l=Xs&&1/H(new Xs([,-0]))[1]==zt?function(t){return new Xs(t)}:Mf,wl=el?function(t){return el.get(t)}:Mf,xl=Ls?function(t){return null==t?[]:(t=is(t),s(Ls(t),function(e){return Ts.call(t,e)}))}:Lf,Ol=Ls?function(t){for(var e=[];t;)h(e,xl(t)),t=Ps(t);return e}:Lf,jl=vr;(Vs&&jl(new Vs(new ArrayBuffer(1)))!=ae||Ys&&jl(new Ys)!=Ht||Js&&jl(Js.resolve())!=Jt||Xs&&jl(new Xs)!=te||Qs&&jl(new Qs)!=oe)&&(jl=function(t){var e=vr(t),n=e==Yt?t.constructor:nt,r=n?Ji(n):"";if(r)switch(r){case rl:return ae;case ol:return Ht;case il:return Jt;case ul:return te;case al:return oe}return e});var Pl=ps?Xa:Bf,kl=Zi(vl),Tl=Rs||function(t,e){return qn.setTimeout(t,e)},El=Zi(gl),Sl=function(t){var e=Ea(t,function(t){return n.size===at&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Se,function(t,n,r,o){e.push(r?o.replace(Be,"$1"):n||t)}),e}),zl=to(function(t,e){return $a(t)?ir(t,sr(e,1,$a,!0)):[]}),Al=to(function(t,e){var n=bu(e);return $a(n)&&(n=nt),$a(t)?ir(t,sr(e,1,$a,!0),bi(n,2)):[]}),Il=to(function(t,e){var n=bu(e);return $a(n)&&(n=nt),$a(t)?ir(t,sr(e,1,$a,!0),nt,n):[]}),Cl=to(function(t){var e=d(t,_o);return e.length&&e[0]===t[0]?wr(e):[]}),Ml=to(function(t){var e=bu(t),n=d(t,_o);return e===bu(n)?e=nt:n.pop(),n.length&&n[0]===t[0]?wr(n,bi(e,2)):[]}),Rl=to(function(t){var e=bu(t),n=d(t,_o);return e="function"==typeof e?e:nt,e&&n.pop(),n.length&&n[0]===t[0]?wr(n,nt,e):[]}),Wl=to(wu),Dl=di(function(t,e){var n=null==t?0:t.length,r=Fn(t,e);return Yr(t,d(e,function(t){return Ai(t,n)?+t:t}).sort(zo)),r}),Ll=to(function(t){return po(sr(t,1,$a,!0))}),Bl=to(function(t){var e=bu(t);return $a(e)&&(e=nt),po(sr(t,1,$a,!0),bi(e,2))}),Nl=to(function(t){var e=bu(t);return e="function"==typeof e?e:nt,po(sr(t,1,$a,!0),nt,e)}),Fl=to(function(t,e){return $a(t)?ir(t,e):[]}),ql=to(function(t){return bo(s(t,$a))}),Ul=to(function(t){var e=bu(t);return $a(e)&&(e=nt),bo(s(t,$a),bi(e,2))}),$l=to(function(t){var e=bu(t);return e="function"==typeof e?e:nt,bo(s(t,$a),nt,e)}),Gl=to(Uu),Kl=to(function(t){var e=t.length,n=e>1?t[e-1]:nt;return n="function"==typeof n?(t.pop(),n):nt,$u(t,n)}),Hl=di(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Fn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof b&&Ai(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Vu,args:[i],thisArg:nt}),new o(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(nt),t})):this.thru(i)}),Zl=Lo(function(t,e,n){hs.call(t,n)?++t[n]:Nn(t,n,1)}),Vl=Ho(cu),Yl=Ho(fu),Jl=Lo(function(t,e,n){hs.call(t,n)?t[n].push(e):Nn(t,n,[e])}),Xl=to(function(t,e,n){var r=-1,o="function"==typeof e,u=Ua(t)?ts(t.length):[];return pl(t,function(t){u[++r]=o?i(e,t,n):Or(t,e,n)}),u}),Ql=Lo(function(t,e,n){Nn(t,n,e)}),tp=Lo(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),ep=to(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Ii(t,e[0],e[1])?e=[]:n>2&&Ii(e[0],e[1],e[2])&&(e=[e[0]]),Gr(t,sr(e,1),[])}),np=Ms||function(){return qn.Date.now()},rp=to(function(t,e,n){var r=ht;if(n.length){var o=K(n,gi(rp));r|=mt}return ui(t,r,e,n,o)}),op=to(function(t,e,n){var r=ht|yt;if(n.length){var o=K(n,gi(op));r|=mt}return ui(e,r,t,n,o)}),ip=to(function(t,e){return tr(t,1,e)}),up=to(function(t,e,n){return tr(t,wc(e)||0,n)});Ea.Cache=an;var ap=bl(function(t,e){e=1==e.length&&hp(e[0])?d(e[0],C(bi())):d(sr(e,1),C(bi()));var n=e.length;return to(function(r){for(var o=-1,u=$s(r.length,n);++o<u;)r[o]=e[o].call(this,r[o]);return i(t,this,r)})}),cp=to(function(t,e){return ui(t,mt,nt,e,K(e,gi(cp)))}),fp=to(function(t,e){return ui(t,_t,nt,e,K(e,gi(fp)))}),sp=di(function(t,e){return ui(t,xt,nt,nt,nt,e)}),lp=ni(gr),pp=ni(function(t,e){return t>=e}),dp=jr(function(){return arguments}())?jr:function(t){return nc(t)&&hs.call(t,"callee")&&!Ts.call(t,"callee")},hp=ts.isArray,yp=Zn?C(Zn):Pr,vp=Bs||Bf,gp=Vn?C(Vn):kr,bp=Yn?C(Yn):Sr,mp=Jn?C(Jn):Ir,_p=Xn?C(Xn):Cr,wp=Qn?C(Qn):Mr,xp=ni(Lr),Op=ni(function(t,e){return t<=e}),jp=Bo(function(t,e){if(Di(e)||Ua(e))return Ro(e,Dc(e),t),nt;for(var n in e)hs.call(e,n)&&Sn(t,n,e[n])}),Pp=Bo(function(t,e){Ro(e,Lc(e),t)}),kp=Bo(function(t,e,n,r){Ro(e,Lc(e),t,r)}),Tp=Bo(function(t,e,n,r){Ro(e,Dc(e),t,r)}),Ep=di(Fn),Sp=to(function(t,e){t=is(t);var n=-1,r=e.length,o=r>2?e[2]:nt;for(o&&Ii(e[0],e[1],o)&&(r=1);++n<r;)for(var i=e[n],u=Lc(i),a=-1,c=u.length;++a<c;){var f=u[a],s=t[f];(s===nt||qa(s,ls[f])&&!hs.call(t,f))&&(t[f]=i[f])}return t}),zp=to(function(t){return t.push(nt,ci),i(Rp,nt,t)}),Ap=Yo(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=gs.call(e)),t[e]=n},kf(Ef)),Ip=Yo(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=gs.call(e)),hs.call(t,e)?t[e].push(n):t[e]=[n]},bi),Cp=to(Or),Mp=Bo(function(t,e,n){qr(t,e,n)}),Rp=Bo(function(t,e,n,r){qr(t,e,n,r)}),Wp=di(function(t,e){var n={};if(null==t)return n;var r=!1;e=d(e,function(e){return e=xo(e,t),r||(r=e.length>1),e}),Ro(t,yi(t),n),r&&(n=$n(n,ft|st|lt,fi));for(var o=e.length;o--;)ho(n,e[o]);return n}),Dp=di(function(t,e){return null==t?{}:Kr(t,e)}),Lp=ii(Dc),Bp=ii(Lc),Np=$o(function(t,e,n){return e=e.toLowerCase(),t+(n?ef(e):e)}),Fp=$o(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),qp=$o(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Up=Uo("toLowerCase"),$p=$o(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Gp=$o(function(t,e,n){return t+(n?" ":"")+Hp(e)}),Kp=$o(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Hp=Uo("toUpperCase"),Zp=to(function(t,e){try{return i(t,nt,e)}catch(t){return Ya(t)?t:new ns(t)}}),Vp=di(function(t,e){return a(e,function(e){e=Yi(e),Nn(t,e,rp(t[e],t))}),t}),Yp=Zo(),Jp=Zo(!0),Xp=to(function(t,e){return function(n){return Or(n,t,e)}}),Qp=to(function(t,e){return function(n){return Or(t,n,e)}}),td=Xo(d),ed=Xo(f),nd=Xo(g),rd=ei(),od=ei(!0),id=Jo(function(t,e){return t+e},0),ud=oi("ceil"),ad=Jo(function(t,e){return t/e},1),cd=oi("floor"),fd=Jo(function(t,e){return t*e},1),sd=oi("round"),ld=Jo(function(t,e){return t-e},0);return n.after=wa,n.ary=xa,n.assign=jp,n.assignIn=Pp,n.assignInWith=kp,n.assignWith=Tp,n.at=Ep,n.before=Oa,n.bind=rp,n.bindAll=Vp,n.bindKey=op,n.castArray=Wa,n.chain=Hu,n.chunk=tu,n.compact=eu,n.concat=nu,n.cond=jf,n.conforms=Pf,n.constant=kf,n.countBy=Zl,n.create=Pc,n.curry=ja,n.curryRight=Pa,n.debounce=ka,n.defaults=Sp,n.defaultsDeep=zp,n.defer=ip,n.delay=up,n.difference=zl,n.differenceBy=Al,n.differenceWith=Il,n.drop=ru,n.dropRight=ou,n.dropRightWhile=iu,n.dropWhile=uu,n.fill=au,n.filter=oa,n.flatMap=ia,n.flatMapDeep=ua,n.flatMapDepth=aa,n.flatten=su,n.flattenDeep=lu,n.flattenDepth=pu,n.flip=Ta,n.flow=Yp,n.flowRight=Jp,n.fromPairs=du,n.functions=Ic,n.functionsIn=Cc,n.groupBy=Jl,n.initial=vu,n.intersection=Cl,n.intersectionBy=Ml,n.intersectionWith=Rl,n.invert=Ap,n.invertBy=Ip,n.invokeMap=Xl,n.iteratee=Sf,n.keyBy=Ql,n.keys=Dc,n.keysIn=Lc,n.map=la,n.mapKeys=Bc,n.mapValues=Nc,n.matches=zf,n.matchesProperty=Af,n.memoize=Ea,n.merge=Mp,n.mergeWith=Rp,n.method=Xp,n.methodOf=Qp,n.mixin=If,n.negate=Sa,n.nthArg=Rf,n.omit=Wp,n.omitBy=Fc,n.once=za,n.orderBy=pa,n.over=td,n.overArgs=ap,n.overEvery=ed,n.overSome=nd,n.partial=cp,n.partialRight=fp,n.partition=tp,n.pick=Dp,n.pickBy=qc,n.property=Wf,n.propertyOf=Df,n.pull=Wl,n.pullAll=wu,n.pullAllBy=xu,n.pullAllWith=Ou,n.pullAt=Dl,n.range=rd,n.rangeRight=od,n.rearg=sp,n.reject=ya,n.remove=ju,n.rest=Aa,n.reverse=Pu,n.sampleSize=ga,n.set=$c,n.setWith=Gc,n.shuffle=ba,n.slice=ku,n.sortBy=ep,n.sortedUniq=Cu,n.sortedUniqBy=Mu,n.split=df,n.spread=Ia,n.tail=Ru,n.take=Wu,n.takeRight=Du,n.takeRightWhile=Lu,n.takeWhile=Bu,n.tap=Zu,n.throttle=Ca,n.thru=Vu,n.toArray=gc,n.toPairs=Lp,n.toPairsIn=Bp,n.toPath=$f,n.toPlainObject=xc,n.transform=Kc,n.unary=Ma,n.union=Ll,n.unionBy=Bl,n.unionWith=Nl,n.uniq=Nu,n.uniqBy=Fu,n.uniqWith=qu,n.unset=Hc,n.unzip=Uu,n.unzipWith=$u,n.update=Zc,n.updateWith=Vc,n.values=Yc,n.valuesIn=Jc,n.without=Fl,n.words=Of,n.wrap=Ra,n.xor=ql,n.xorBy=Ul,n.xorWith=$l,n.zip=Gl,n.zipObject=Gu,n.zipObjectDeep=Ku,n.zipWith=Kl,n.entries=Lp,n.entriesIn=Bp,n.extend=Pp,n.extendWith=kp,If(n,n),n.add=id,n.attempt=Zp,n.camelCase=Np,n.capitalize=ef,n.ceil=ud,n.clamp=Xc,n.clone=Da,n.cloneDeep=Ba,n.cloneDeepWith=Na,n.cloneWith=La,n.conformsTo=Fa,n.deburr=nf,n.defaultTo=Tf,n.divide=ad,n.endsWith=rf,n.eq=qa,n.escape=of,n.escapeRegExp=uf,n.every=ra,n.find=Vl,n.findIndex=cu,n.findKey=kc,n.findLast=Yl,n.findLastIndex=fu,n.findLastKey=Tc,n.floor=cd,n.forEach=ca,n.forEachRight=fa,n.forIn=Ec,n.forInRight=Sc,n.forOwn=zc,n.forOwnRight=Ac,n.get=Mc,n.gt=lp,n.gte=pp,n.has=Rc,n.hasIn=Wc,n.head=hu,n.identity=Ef,n.includes=sa,n.indexOf=yu,n.inRange=Qc,n.invoke=Cp,n.isArguments=dp,n.isArray=hp,n.isArrayBuffer=yp,n.isArrayLike=Ua,n.isArrayLikeObject=$a,n.isBoolean=Ga,n.isBuffer=vp,n.isDate=gp,n.isElement=Ka,n.isEmpty=Ha,n.isEqual=Za,n.isEqualWith=Va,n.isError=Ya,n.isFinite=Ja,n.isFunction=Xa,n.isInteger=Qa,n.isLength=tc,n.isMap=bp,n.isMatch=rc,n.isMatchWith=oc,n.isNaN=ic,n.isNative=uc,n.isNil=cc,n.isNull=ac,n.isNumber=fc,n.isObject=ec,n.isObjectLike=nc,n.isPlainObject=sc,n.isRegExp=mp,n.isSafeInteger=lc,n.isSet=_p,n.isString=pc,n.isSymbol=dc,n.isTypedArray=wp,n.isUndefined=hc,n.isWeakMap=yc,n.isWeakSet=vc,n.join=gu,n.kebabCase=Fp,n.last=bu,n.lastIndexOf=mu,n.lowerCase=qp,n.lowerFirst=Up,n.lt=xp,n.lte=Op,n.max=Kf,n.maxBy=Hf,n.mean=Zf,n.meanBy=Vf,n.min=Yf,n.minBy=Jf,n.stubArray=Lf,n.stubFalse=Bf,n.stubObject=Nf,n.stubString=Ff,n.stubTrue=qf,n.multiply=fd,n.nth=_u,n.noConflict=Cf,n.noop=Mf,n.now=np,n.pad=af,n.padEnd=cf,n.padStart=ff,n.parseInt=sf,n.random=tf,n.reduce=da,n.reduceRight=ha,n.repeat=lf,n.replace=pf,n.result=Uc,n.round=sd,n.runInContext=t,n.sample=va,n.size=ma,n.snakeCase=$p,n.some=_a,n.sortedIndex=Tu,n.sortedIndexBy=Eu,n.sortedIndexOf=Su,n.sortedLastIndex=zu,n.sortedLastIndexBy=Au,n.sortedLastIndexOf=Iu,n.startCase=Gp,n.startsWith=hf,n.subtract=ld,n.sum=Xf,n.sumBy=Qf,n.template=yf,n.times=Uf,n.toFinite=bc,n.toInteger=mc,n.toLength=_c,n.toLower=vf,n.toNumber=wc,n.toSafeInteger=Oc,n.toString=jc,n.toUpper=gf,n.trim=bf,n.trimEnd=mf,n.trimStart=_f,n.truncate=wf,n.unescape=xf,n.uniqueId=Gf,n.upperCase=Kp,n.upperFirst=Hp,n.each=ca,n.eachRight=fa,n.first=hu,If(n,function(){var t={};return lr(n,function(e,r){hs.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION="4.17.20",a(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),a(["drop","take"],function(t,e){b.prototype[t]=function(n){n=n===nt?1:Us(mc(n),0);var r=this.__filtered__&&!e?new b(this):this.clone();return r.__filtered__?r.__takeCount__=$s(n,r.__takeCount__):r.__views__.push({size:$s(n,Mt),type:t+(r.__dir__<0?"Right":"")}),r},b.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),a(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==Et||3==n;b.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:bi(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),a(["head","last"],function(t,e){var n="take"+(e?"Right":"");b.prototype[t]=function(){return this[n](1).value()[0]}}),a(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");b.prototype[t]=function(){return this.__filtered__?new b(this):this[n](1)}}),b.prototype.compact=function(){return this.filter(Ef)},b.prototype.find=function(t){return this.filter(t).head()},b.prototype.findLast=function(t){return this.reverse().find(t)},b.prototype.invokeMap=to(function(t,e){return"function"==typeof t?new b(this):this.map(function(n){return Or(n,t,e)})}),b.prototype.reject=function(t){return this.filter(Sa(bi(t)))},b.prototype.slice=function(t,e){t=mc(t);var n=this;return n.__filtered__&&(t>0||e<0)?new b(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==nt&&(e=mc(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},b.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},b.prototype.toArray=function(){return this.take(Mt)},lr(b.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),u=n[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);u&&(n.prototype[e]=function(){var e=this.__wrapped__,c=i?[1]:arguments,f=e instanceof b,s=c[0],l=f||hp(e),p=function(t){var e=u.apply(n,h([t],c));return i&&d?e[0]:e};l&&r&&"function"==typeof s&&1!=s.length&&(f=l=!1);var d=this.__chain__,y=!!this.__actions__.length,v=a&&!d,g=f&&!y;if(!a&&l){e=g?e:new b(this);var m=t.apply(e,c);return m.__actions__.push({func:Vu,args:[p],thisArg:nt}),new o(m,d)}return v&&g?t.apply(this,c):(m=this.thru(p),v?i?m.value()[0]:m.value():m)})}),a(["pop","push","shift","sort","splice","unshift"],function(t){var e=fs[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",o=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(o&&!this.__chain__){var n=this.value();return e.apply(hp(n)?n:[],t)}return this[r](function(n){return e.apply(hp(n)?n:[],t)})}}),lr(b.prototype,function(t,e){var r=n[e];if(r){var o=r.name+"";hs.call(nl,o)||(nl[o]=[]),nl[o].push({name:e,func:r})}}),nl[Vo(nt,yt).name]=[{name:"wrapper",func:nt}],b.prototype.clone=T,b.prototype.reverse=V,b.prototype.value=Q,n.prototype.at=Hl,n.prototype.chain=Yu,n.prototype.commit=Ju,n.prototype.next=Xu,n.prototype.plant=ta,n.prototype.reverse=ea,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=na,n.prototype.first=n.prototype.head,zs&&(n.prototype[zs]=Qu),n}();qn._=or,void 0!==(o=function(){return or}.call(e,n,e,r))&&(r.exports=o)}).call(this)}).call(e,n(36),n(26)(t))},function(t,e,n){function r(t,e){return 2==e?function(e,n){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}function o(t,e){return 2==e?function(e,n){return t(e,n)}:function(e){return t(e)}}function i(t){for(var e=t?t.length:0,n=Array(e);e--;)n[e]=t[e];return n}function u(t){return function(e){return t({},e)}}function a(t,e){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var i=o[e],u=o.slice(0,e);return i&&p.apply(u,i),e!=r&&p.apply(u,o.slice(e+1)),t.apply(this,u)}}function c(t,e){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=e.apply(void 0,r);return t.apply(void 0,r),o}}}function f(t,e,n,p){function d(t,e){if(k.cap){var n=s.iterateeRearg[t];if(n)return w(e,n);var r=!j&&s.iterateeAry[t];if(r)return _(e,r)}return e}function h(t,e,n){return E||k.curry&&n>1?W(e,n):e}function y(t,e,n){if(k.fixed&&(S||!s.skipFixed[t])){var r=s.methodSpread[t],o=r&&r.start;return void 0===o?C(e,n):a(e,o)}return e}function v(t,e,n){return k.rearg&&n>1&&(z||!s.skipRearg[t])?U(e,s.methodRearg[t]||s.aryRearg[n]):e}function g(t,e){e=G(e);for(var n=-1,r=e.length,o=r-1,i=R(Object(t)),u=i;null!=u&&++n<r;){var a=e[n],c=u[a];null==c||N(c)||B(c)||F(c)||(u[a]=R(n==o?c:Object(c))),u=u[a]}return i}function b(t){return Z.runInContext.convert(t)(void 0)}function m(t,e){var n=s.aliasToReal[t]||t,r=s.remap[n]||n,o=p;return function(t){var i=j?A:I,u=j?A[r]:e,a=M(M({},o),t);return f(i,n,u,a)}}function _(t,e){return x(t,function(t){return"function"==typeof t?o(t,e):t})}function w(t,e){return x(t,function(t){var n=e.length;return r(U(o(t,n),e),n)})}function x(t,e){return function(){var n=arguments.length;if(!n)return t();for(var r=Array(n);n--;)r[n]=arguments[n];var o=k.rearg?0:n-1;return r[o]=e(r[o]),t.apply(void 0,r)}}function O(t,e,n){var r,o=s.aliasToReal[t]||t,a=e,f=H[o];return f?a=f(e):k.immutable&&(s.mutate.array[o]?a=c(e,i):s.mutate.object[o]?a=c(e,u(e)):s.mutate.set[o]&&(a=c(e,g))),D(K,function(t){return D(s.aryMethod[t],function(e){if(o==e){var n=s.methodSpread[o],i=n&&n.afterRearg;return r=i?y(o,v(o,a,t),t):v(o,y(o,a,t),t),r=d(o,r),r=h(o,r,t),!1}}),!r}),r||(r=a),r==e&&(r=E?W(r,1):function(){return e.apply(this,arguments)}),r.convert=m(o,e),r.placeholder=e.placeholder=n,r}var j="function"==typeof e,P=e===Object(e);if(P&&(p=n,n=e,e=void 0),null==n)throw new TypeError;p||(p={});var k={cap:!("cap"in p)||p.cap,curry:!("curry"in p)||p.curry,fixed:!("fixed"in p)||p.fixed,immutable:!("immutable"in p)||p.immutable,rearg:!("rearg"in p)||p.rearg},T=j?n:l,E="curry"in p&&p.curry,S="fixed"in p&&p.fixed,z="rearg"in p&&p.rearg,A=j?n.runInContext():void 0,I=j?n:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},C=I.ary,M=I.assign,R=I.clone,W=I.curry,D=I.forEach,L=I.isArray,B=I.isError,N=I.isFunction,F=I.isWeakMap,q=I.keys,U=I.rearg,$=I.toInteger,G=I.toPath,K=q(s.aryMethod),H={castArray:function(t){return function(){var e=arguments[0];return L(e)?t(i(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[0],n=arguments[1],r=t(e,n),i=r.length;return k.cap&&"number"==typeof n?(n=n>2?n-2:1,i&&i<=n?r:o(r,n)):r}},mixin:function(t){return function(e){var n=this;if(!N(n))return t(n,Object(e));var r=[];return D(q(e),function(t){N(e[t])&&r.push([t,n.prototype[t]])}),t(n,Object(e)),D(r,function(t){var e=t[1];N(e)?n.prototype[t[0]]=e:delete n.prototype[t[0]]}),n}},nthArg:function(t){return function(e){var n=e<0?1:$(e)+1;return W(t(e),n)}},rearg:function(t){return function(e,n){var r=n?n.length:0;return W(t(e,n),r)}},runInContext:function(e){return function(n){return f(t,e(n),p)}}};if(!P)return O(e,n,T);var Z=n,V=[];return D(K,function(t){D(s.aryMethod[t],function(t){var e=Z[s.remap[t]||t];e&&V.push([t,O(t,e,Z)])})}),D(q(Z),function(t){var e=Z[t];if("function"==typeof e){for(var n=V.length;n--;)if(V[n][0]==t)return;e.convert=m(t,e),V.push([t,e])}}),D(V,function(t){Z[t[0]]=t[1]}),Z.convert=b,Z.placeholder=Z,D(q(Z),function(t){D(s.realToAlias[t]||[],function(e){Z[e]=Z[t]})}),Z}var s=n(195),l=n(196),p=Array.prototype.push;t.exports=f},function(t,e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var o in n){var i=n[o];t.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},function(t,e){t.exports={}},function(t,e,n){var r=n(198).runInContext();t.exports=n(199)(r,r)},function(t,e,n){(function(t,r){var o;(function(){function i(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function u(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var u=t[o];e(r,u,n(u),t)}return r}function a(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function c(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function f(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function s(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u,n,t)&&(i[o++]=u)}return i}function l(t,e){return!!(null==t?0:t.length)&&x(t,e,0)>-1}function p(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function d(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function h(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function y(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function v(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function g(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function b(t){return t.split("")}function m(t){return t.match(Ne)||[]}function _(t,e,n){var r;return n(t,function(t,n,o){if(e(t,n,o))return r=n,!1}),r}function w(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function x(t,e,n){return e===e?Y(t,e,n):w(t,j,n)}function O(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function j(t){return t!==t}function P(t,e){var n=null==t?0:t.length;return n?z(t,e)/n:Wt}function k(t){return function(e){return null==e?ot:e[t]}}function T(t){return function(e){return null==t?ot:t[e]}}function E(t,e,n,r,o){return o(t,function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)}),n}function S(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function z(t,e){for(var n,r=-1,o=t.length;++r<o;){var i=e(t[r]);i!==ot&&(n=n===ot?i:n+i)}return n}function A(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function I(t,e){return d(e,function(e){return[e,t[e]]})}function C(t){return t?t.slice(0,tt(t)+1).replace(Re,""):t}function M(t){return function(e){return t(e)}}function R(t,e){return d(e,function(e){return t[e]})}function W(t,e){return t.has(e)}function D(t,e){for(var n=-1,r=t.length;++n<r&&x(e,t[n],0)>-1;);return n}function L(t,e){for(var n=t.length;n--&&x(e,t[n],0)>-1;);return n}function B(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function N(t){return"\\"+Nn[t]}function F(t,e){return null==t?ot:t[e]}function q(t){return An.test(t)}function U(t){return In.test(t)}function $(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function G(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function K(t,e){return function(n){return t(e(n))}}function H(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var u=t[n];u!==e&&u!==lt||(t[n]=lt,i[o++]=n)}return i}function Z(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function V(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function Y(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}function J(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}function X(t){return q(t)?et(t):rr(t)}function Q(t){return q(t)?nt(t):b(t)}function tt(t){for(var e=t.length;e--&&We.test(t.charAt(e)););return e}function et(t){for(var e=Sn.lastIndex=0;Sn.test(t);)++e;return e}function nt(t){return t.match(Sn)||[]}function rt(t){return t.match(zn)||[]}var ot,it=200,ut="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",at="Expected a function",ct="Invalid `variable` option passed into `_.template`",ft="__lodash_hash_undefined__",st=500,lt="__lodash_placeholder__",pt=1,dt=2,ht=4,yt=1,vt=2,gt=1,bt=2,mt=4,_t=8,wt=16,xt=32,Ot=64,jt=128,Pt=256,kt=512,Tt=30,Et="...",St=800,zt=16,At=1,It=2,Ct=1/0,Mt=9007199254740991,Rt=1.7976931348623157e308,Wt=NaN,Dt=4294967295,Lt=Dt-1,Bt=Dt>>>1,Nt=[["ary",jt],["bind",gt],["bindKey",bt],["curry",_t],["curryRight",wt],["flip",kt],["partial",xt],["partialRight",Ot],["rearg",Pt]],Ft="[object Arguments]",qt="[object Array]",Ut="[object AsyncFunction]",$t="[object Boolean]",Gt="[object Date]",Kt="[object DOMException]",Ht="[object Error]",Zt="[object Function]",Vt="[object GeneratorFunction]",Yt="[object Map]",Jt="[object Number]",Xt="[object Null]",Qt="[object Object]",te="[object Promise]",ee="[object Proxy]",ne="[object RegExp]",re="[object Set]",oe="[object String]",ie="[object Symbol]",ue="[object Undefined]",ae="[object WeakMap]",ce="[object WeakSet]",fe="[object ArrayBuffer]",se="[object DataView]",le="[object Float32Array]",pe="[object Float64Array]",de="[object Int8Array]",he="[object Int16Array]",ye="[object Int32Array]",ve="[object Uint8Array]",ge="[object Uint8ClampedArray]",be="[object Uint16Array]",me="[object Uint32Array]",_e=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Oe=/&(?:amp|lt|gt|quot|#39);/g,je=/[&<>"']/g,Pe=RegExp(Oe.source),ke=RegExp(je.source),Te=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Se=/<%=([\s\S]+?)%>/g,ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ae=/^\w*$/,Ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(Ce.source),Re=/^\s+/,We=/\s/,De=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Le=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,Ne=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fe=/[()=,{}\[\]\/\s]/,qe=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,Ge=/^[-+]0x[0-9a-f]+$/i,Ke=/^0b[01]+$/i,He=/^\[object .+?Constructor\]$/,Ze=/^0o[0-7]+$/i,Ve=/^(?:0|[1-9]\d*)$/,Ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,Qe="\\ud800-\\udfff",tn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",en="\\u2700-\\u27bf",nn="a-z\\xdf-\\xf6\\xf8-\\xff",rn="A-Z\\xc0-\\xd6\\xd8-\\xde",on="\\ufe0e\\ufe0f",un="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",an="['’]",cn="["+un+"]",fn="["+tn+"]",sn="["+nn+"]",ln="[^"+Qe+un+"\\d+"+en+nn+rn+"]",pn="\\ud83c[\\udffb-\\udfff]",dn="[^"+Qe+"]",hn="(?:\\ud83c[\\udde6-\\uddff]){2}",yn="[\\ud800-\\udbff][\\udc00-\\udfff]",vn="["+rn+"]",gn="\\u200d",bn="(?:"+sn+"|"+ln+")",mn="(?:['’](?:d|ll|m|re|s|t|ve))?",_n="(?:['’](?:D|LL|M|RE|S|T|VE))?",wn="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",xn="["+on+"]?",On="(?:"+gn+"(?:"+[dn,hn,yn].join("|")+")"+xn+wn+")*",jn=xn+wn+On,Pn="(?:"+["[\\u2700-\\u27bf]",hn,yn].join("|")+")"+jn,kn="(?:"+[dn+fn+"?",fn,hn,yn,"[\\ud800-\\udfff]"].join("|")+")",Tn=RegExp(an,"g"),En=RegExp(fn,"g"),Sn=RegExp(pn+"(?="+pn+")|"+kn+jn,"g"),zn=RegExp([vn+"?"+sn+"+"+mn+"(?="+[cn,vn,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+"+_n+"(?="+[cn,vn+bn,"$"].join("|")+")",vn+"?"+bn+"+"+mn,vn+"+"+_n,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",Pn].join("|"),"g"),An=RegExp("["+gn+Qe+tn+on+"]"),In=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Cn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mn=-1,Rn={};Rn[le]=Rn[pe]=Rn[de]=Rn[he]=Rn[ye]=Rn[ve]=Rn[ge]=Rn[be]=Rn[me]=!0,Rn[Ft]=Rn[qt]=Rn[fe]=Rn[$t]=Rn[se]=Rn[Gt]=Rn[Ht]=Rn[Zt]=Rn[Yt]=Rn[Jt]=Rn[Qt]=Rn[ne]=Rn[re]=Rn[oe]=Rn[ae]=!1;var Wn={};Wn[Ft]=Wn[qt]=Wn[fe]=Wn[se]=Wn[$t]=Wn[Gt]=Wn[le]=Wn[pe]=Wn[de]=Wn[he]=Wn[ye]=Wn[Yt]=Wn[Jt]=Wn[Qt]=Wn[ne]=Wn[re]=Wn[oe]=Wn[ie]=Wn[ve]=Wn[ge]=Wn[be]=Wn[me]=!0,Wn[Ht]=Wn[Zt]=Wn[ae]=!1;var Dn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Ln={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Bn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fn=parseFloat,qn=parseInt,Un="object"==typeof t&&t&&t.Object===Object&&t,$n="object"==typeof self&&self&&self.Object===Object&&self,Gn=Un||$n||Function("return this")(),Kn="object"==typeof e&&e&&!e.nodeType&&e,Hn=Kn&&"object"==typeof r&&r&&!r.nodeType&&r,Zn=Hn&&Hn.exports===Kn,Vn=Zn&&Un.process,Yn=function(){try{var t=Hn&&Hn.require&&Hn.require("util").types;return t||Vn&&Vn.binding&&Vn.binding("util")}catch(t){}}(),Jn=Yn&&Yn.isArrayBuffer,Xn=Yn&&Yn.isDate,Qn=Yn&&Yn.isMap,tr=Yn&&Yn.isRegExp,er=Yn&&Yn.isSet,nr=Yn&&Yn.isTypedArray,rr=k("length"),or=T(Dn),ir=T(Ln),ur=T(Bn),ar=function t(e){function n(t){if(oc(t)&&!vp(t)&&!(t instanceof b)){if(t instanceof o)return t;if(vs.call(t,"__wrapped__"))return eu(t)}return new o(t)}function r(){}function o(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=ot}function b(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Dt,this.__views__=[]}function T(){var t=new b(this.__wrapped__);return t.__actions__=Wo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Wo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Wo(this.__views__),t}function Y(){if(this.__filtered__){var t=new b(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function et(){var t=this.__wrapped__.value(),e=this.__dir__,n=vp(t),r=e<0,o=n?t.length:0,i=Pi(0,o,this.__views__),u=i.start,a=i.end,c=a-u,f=r?a:u-1,s=this.__iteratees__,l=s.length,p=0,d=Ks(c,this.__takeCount__);if(!n||!r&&o==c&&d==c)return mo(t,this.__actions__);var h=[];t:for(;c--&&p<d;){f+=e;for(var y=-1,v=t[f];++y<l;){var g=s[y],b=g.iteratee,m=g.type,_=b(v);if(m==It)v=_;else if(!_){if(m==At)continue t;break t}}h[p++]=v}return h}function nt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function We(){this.__data__=nl?nl(null):{},this.size=0}function Ne(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Qe(t){var e=this.__data__;if(nl){var n=e[t];return n===ft?ot:n}return vs.call(e,t)?e[t]:ot}function tn(t){var e=this.__data__;return nl?e[t]!==ot:vs.call(e,t)}function en(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nl&&e===ot?ft:e,this}function nn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function rn(){this.__data__=[],this.size=0}function on(t){var e=this.__data__,n=In(e,t);return!(n<0||(n==e.length-1?e.pop():zs.call(e,n,1),--this.size,0))}function un(t){var e=this.__data__,n=In(e,t);return n<0?ot:e[n][1]}function an(t){return In(this.__data__,t)>-1}function cn(t,e){var n=this.__data__,r=In(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function fn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function sn(){this.size=0,this.__data__={hash:new nt,map:new(Xs||nn),string:new nt}}function ln(t){var e=wi(this,t).delete(t);return this.size-=e?1:0,e}function pn(t){return wi(this,t).get(t)}function dn(t){return wi(this,t).has(t)}function hn(t,e){var n=wi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function yn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new fn;++e<n;)this.add(t[e])}function vn(t){return this.__data__.set(t,ft),this}function gn(t){return this.__data__.has(t)}function bn(t){this.size=(this.__data__=new nn(t)).size}function mn(){this.__data__=new nn,this.size=0}function _n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function wn(t){return this.__data__.get(t)}function xn(t){return this.__data__.has(t)}function On(t,e){var n=this.__data__;if(n instanceof nn){var r=n.__data__;if(!Xs||r.length<it-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new fn(r)}return n.set(t,e),this.size=n.size,this}function jn(t,e){var n=vp(t),r=!n&&yp(t),o=!n&&!r&&bp(t),i=!n&&!r&&!o&&Op(t),u=n||r||o||i,a=u?A(t.length,fs):[],c=a.length;for(var f in t)!e&&!vs.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||Ci(f,c))||a.push(f);return a}function Pn(t){var e=t.length;return e?t[Qr(0,e-1)]:ot}function kn(t,e){return Ji(Wo(t),$n(e,0,t.length))}function Sn(t){return Ji(Wo(t))}function zn(t,e,n){(n===ot||$a(t[e],n))&&(n!==ot||e in t)||Nn(t,e,n)}function An(t,e,n){var r=t[e];vs.call(t,e)&&$a(r,n)&&(n!==ot||e in t)||Nn(t,e,n)}function In(t,e){for(var n=t.length;n--;)if($a(t[n][0],e))return n;return-1}function Dn(t,e,n,r){return hl(t,function(t,o,i){e(r,t,n(t),i)}),r}function Ln(t,e){return t&&Do(e,Bc(e),t)}function Bn(t,e){return t&&Do(e,Nc(e),t)}function Nn(t,e,n){"__proto__"==e&&Ms?Ms(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Un(t,e){for(var n=-1,r=e.length,o=ns(r),i=null==t;++n<r;)o[n]=i?ot:Wc(t,e[n]);return o}function $n(t,e,n){return t===t&&(n!==ot&&(t=t<=n?t:n),e!==ot&&(t=t>=e?t:e)),t}function Kn(t,e,n,r,o,i){var u,c=e&pt,f=e&dt,s=e&ht;if(n&&(u=o?n(t,r,o,i):n(t)),u!==ot)return u;if(!rc(t))return t;var l=vp(t);if(l){if(u=Ei(t),!c)return Wo(t,u)}else{var p=kl(t),d=p==Zt||p==Vt;if(bp(t))return ko(t,c);if(p==Qt||p==Ft||d&&!o){if(u=f||d?{}:Si(t),!c)return f?Bo(t,Bn(u,t)):Lo(t,Ln(u,t))}else{if(!Wn[p])return o?t:{};u=zi(t,p,c)}}i||(i=new bn);var h=i.get(t);if(h)return h;i.set(t,u),xp(t)?t.forEach(function(r){u.add(Kn(r,e,n,r,t,i))}):_p(t)&&t.forEach(function(r,o){u.set(o,Kn(r,e,n,o,t,i))});var y=s?f?gi:vi:f?Nc:Bc,v=l?ot:y(t);return a(v||t,function(r,o){v&&(o=r,r=t[o]),An(u,o,Kn(r,e,n,o,t,i))}),u}function Hn(t){var e=Bc(t);return function(n){return Vn(n,t,e)}}function Vn(t,e,n){var r=n.length;if(null==t)return!r;for(t=as(t);r--;){var o=n[r],i=e[o],u=t[o];if(u===ot&&!(o in t)||!i(u))return!1}return!0}function Yn(t,e,n){if("function"!=typeof t)throw new ss(at);return Sl(function(){t.apply(ot,n)},e)}function rr(t,e,n,r){var o=-1,i=l,u=!0,a=t.length,c=[],f=e.length;if(!a)return c;n&&(e=d(e,M(n))),r?(i=p,u=!1):e.length>=it&&(i=W,u=!1,e=new yn(e));t:for(;++o<a;){var s=t[o],h=null==n?s:n(s);if(s=r||0!==s?s:0,u&&h===h){for(var y=f;y--;)if(e[y]===h)continue t;c.push(s)}else i(e,h,r)||c.push(s)}return c}function cr(t,e){var n=!0;return hl(t,function(t,r,o){return n=!!e(t,r,o)}),n}function fr(t,e,n){for(var r=-1,o=t.length;++r<o;){var i=t[r],u=e(i);if(null!=u&&(a===ot?u===u&&!yc(u):n(u,a)))var a=u,c=i}return c}function sr(t,e,n,r){var o=t.length;for(n=wc(n),n<0&&(n=-n>o?0:o+n),r=r===ot||r>o?o:wc(r),r<0&&(r+=o),r=n>r?0:xc(r);n<r;)t[n++]=e;return t}function lr(t,e){var n=[];return hl(t,function(t,r,o){e(t,r,o)&&n.push(t)}),n}function pr(t,e,n,r,o){var i=-1,u=t.length;for(n||(n=Ii),o||(o=[]);++i<u;){var a=t[i];e>0&&n(a)?e>1?pr(a,e-1,n,r,o):h(o,a):r||(o[o.length]=a)}return o}function dr(t,e){return t&&vl(t,e,Bc)}function hr(t,e){return t&&gl(t,e,Bc)}function yr(t,e){return s(e,function(e){return tc(t[e])})}function vr(t,e){e=jo(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[Xi(e[n++])];return n&&n==r?t:ot}function gr(t,e,n){var r=e(t);return vp(t)?r:h(r,n(t))}function br(t){return null==t?t===ot?ue:Xt:Cs&&Cs in as(t)?ji(t):$i(t)}function mr(t,e){return t>e}function _r(t,e){return null!=t&&vs.call(t,e)}function wr(t,e){return null!=t&&e in as(t)}function xr(t,e,n){return t>=Ks(e,n)&&t<Gs(e,n)}function Or(t,e,n){for(var r=n?p:l,o=t[0].length,i=t.length,u=i,a=ns(i),c=1/0,f=[];u--;){var s=t[u];u&&e&&(s=d(s,M(e))),c=Ks(s.length,c),a[u]=!n&&(e||o>=120&&s.length>=120)?new yn(u&&s):ot}s=t[0];var h=-1,y=a[0];t:for(;++h<o&&f.length<c;){var v=s[h],g=e?e(v):v;if(v=n||0!==v?v:0,!(y?W(y,g):r(f,g,n))){for(u=i;--u;){var b=a[u];if(!(b?W(b,g):r(t[u],g,n)))continue t}y&&y.push(g),f.push(v)}}return f}function jr(t,e,n,r){return dr(t,function(t,o,i){e(r,n(t),o,i)}),r}function Pr(t,e,n){e=jo(e,t),t=Ki(t,e);var r=null==t?t:t[Xi(_u(e))];return null==r?ot:i(r,t,n)}function kr(t){return oc(t)&&br(t)==Ft}function Tr(t){return oc(t)&&br(t)==fe}function Er(t){return oc(t)&&br(t)==Gt}function Sr(t,e,n,r,o){return t===e||(null==t||null==e||!oc(t)&&!oc(e)?t!==t&&e!==e:zr(t,e,n,r,Sr,o))}function zr(t,e,n,r,o,i){var u=vp(t),a=vp(e),c=u?qt:kl(t),f=a?qt:kl(e);c=c==Ft?Qt:c,f=f==Ft?Qt:f;var s=c==Qt,l=f==Qt,p=c==f;if(p&&bp(t)){if(!bp(e))return!1;u=!0,s=!1}if(p&&!s)return i||(i=new bn),u||Op(t)?pi(t,e,n,r,o,i):di(t,e,c,n,r,o,i);if(!(n&yt)){var d=s&&vs.call(t,"__wrapped__"),h=l&&vs.call(e,"__wrapped__");if(d||h){var y=d?t.value():t,v=h?e.value():e;return i||(i=new bn),o(y,v,n,r,i)}}return!!p&&(i||(i=new bn),hi(t,e,n,r,o,i))}function Ar(t){return oc(t)&&kl(t)==Yt}function Ir(t,e,n,r){var o=n.length,i=o,u=!r;if(null==t)return!i;for(t=as(t);o--;){var a=n[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){a=n[o];var c=a[0],f=t[c],s=a[1];if(u&&a[2]){if(f===ot&&!(c in t))return!1}else{var l=new bn;if(r)var p=r(f,s,c,t,e,l);if(!(p===ot?Sr(s,f,yt|vt,r,l):p))return!1}}return!0}function Cr(t){return!(!rc(t)||Li(t))&&(tc(t)?xs:He).test(Qi(t))}function Mr(t){return oc(t)&&br(t)==ne}function Rr(t){return oc(t)&&kl(t)==re}function Wr(t){return oc(t)&&nc(t.length)&&!!Rn[br(t)]}function Dr(t){return"function"==typeof t?t:null==t?zf:"object"==typeof t?vp(t)?Ur(t[0],t[1]):qr(t):Lf(t)}function Lr(t){if(!Bi(t))return $s(t);var e=[];for(var n in as(t))vs.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Br(t){if(!rc(t))return Ui(t);var e=Bi(t),n=[];for(var r in t)("constructor"!=r||!e&&vs.call(t,r))&&n.push(r);return n}function Nr(t,e){return t<e}function Fr(t,e){var n=-1,r=Ga(t)?ns(t.length):[];return hl(t,function(t,o,i){r[++n]=e(t,o,i)}),r}function qr(t){var e=xi(t);return 1==e.length&&e[0][2]?Fi(e[0][0],e[0][1]):function(n){return n===t||Ir(n,t,e)}}function Ur(t,e){return Ri(t)&&Ni(e)?Fi(Xi(t),e):function(n){var r=Wc(n,t);return r===ot&&r===e?Lc(n,t):Sr(e,r,yt|vt)}}function $r(t,e,n,r,o){t!==e&&vl(e,function(i,u){if(o||(o=new bn),rc(i))Gr(t,e,u,n,$r,r,o);else{var a=r?r(Zi(t,u),i,u+"",t,e,o):ot;a===ot&&(a=i),zn(t,u,a)}},Nc)}function Gr(t,e,n,r,o,i,u){var a=Zi(t,n),c=Zi(e,n),f=u.get(c);if(f)return zn(t,n,f),ot;var s=i?i(a,c,n+"",t,e,u):ot,l=s===ot;if(l){var p=vp(c),d=!p&&bp(c),h=!p&&!d&&Op(c);s=c,p||d||h?vp(a)?s=a:Ka(a)?s=Wo(a):d?(l=!1,s=ko(c,!0)):h?(l=!1,s=Ao(c,!0)):s=[]:pc(c)||yp(c)?(s=a,yp(a)?s=jc(a):rc(a)&&!tc(a)||(s=Si(c))):l=!1}l&&(u.set(c,s),o(s,c,r,i,u),u.delete(c)),zn(t,n,s)}function Kr(t,e){var n=t.length;if(n)return e+=e<0?n:0,Ci(e,n)?t[e]:ot}function Hr(t,e,n){e=e.length?d(e,function(t){return vp(t)?function(e){return vr(e,1===t.length?t[0]:t)}:t}):[zf];var r=-1;return e=d(e,M(_i())),S(Fr(t,function(t,n,o){return{criteria:d(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return Co(t,e,n)})}function Zr(t,e){return Vr(t,e,function(e,n){return Lc(t,n)})}function Vr(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var u=e[r],a=vr(t,u);n(a,u)&&io(i,jo(u,t),a)}return i}function Yr(t){return function(e){return vr(e,t)}}function Jr(t,e,n,r){var o=r?O:x,i=-1,u=e.length,a=t;for(t===e&&(e=Wo(e)),n&&(a=d(t,M(n)));++i<u;)for(var c=0,f=e[i],s=n?n(f):f;(c=o(a,s,c,r))>-1;)a!==t&&zs.call(a,c,1),zs.call(t,c,1);return t}function Xr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Ci(o)?zs.call(t,o,1):vo(t,o)}}return t}function Qr(t,e){return t+Bs(Vs()*(e-t+1))}function to(t,e,n,r){for(var o=-1,i=Gs(Ls((e-t)/(n||1)),0),u=ns(i);i--;)u[r?i:++o]=t,t+=n;return u}function eo(t,e){var n="";if(!t||e<1||e>Mt)return n;do{e%2&&(n+=t),(e=Bs(e/2))&&(t+=t)}while(e);return n}function no(t,e){return zl(Gi(t,e,zf),t+"")}function ro(t){return Pn(Xc(t))}function oo(t,e){var n=Xc(t);return Ji(n,$n(e,0,n.length))}function io(t,e,n,r){if(!rc(t))return t;e=jo(e,t);for(var o=-1,i=e.length,u=i-1,a=t;null!=a&&++o<i;){var c=Xi(e[o]),f=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=u){var s=a[c];(f=r?r(s,c,a):ot)===ot&&(f=rc(s)?s:Ci(e[o+1])?[]:{})}An(a,c,f),a=a[c]}return t}function uo(t){return Ji(Xc(t))}function ao(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=ns(o);++r<o;)i[r]=t[r+e];return i}function co(t,e){var n;return hl(t,function(t,r,o){return!(n=e(t,r,o))}),!!n}function fo(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e===e&&o<=Bt){for(;r<o;){var i=r+o>>>1,u=t[i];null!==u&&!yc(u)&&(n?u<=e:u<e)?r=i+1:o=i}return o}return so(t,e,zf,n)}function so(t,e,n,r){var o=0,i=null==t?0:t.length;if(0===i)return 0;e=n(e);for(var u=e!==e,a=null===e,c=yc(e),f=e===ot;o<i;){var s=Bs((o+i)/2),l=n(t[s]),p=l!==ot,d=null===l,h=l===l,y=yc(l);if(u)var v=r||h;else v=f?h&&(r||p):a?h&&p&&(r||!d):c?h&&p&&!d&&(r||!y):!d&&!y&&(r?l<=e:l<e);v?o=s+1:i=s}return Ks(i,Lt)}function lo(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var u=t[n],a=e?e(u):u;if(!n||!$a(a,c)){var c=a;i[o++]=0===u?0:u}}return i}function po(t){return"number"==typeof t?t:yc(t)?Wt:+t}function ho(t){if("string"==typeof t)return t;if(vp(t))return d(t,ho)+"";if(yc(t))return pl?pl.call(t):"";var e=t+"";return"0"==e&&1/t==-Ct?"-0":e}function yo(t,e,n){var r=-1,o=l,i=t.length,u=!0,a=[],c=a;if(n)u=!1,o=p;else if(i>=it){var f=e?null:xl(t);if(f)return Z(f);u=!1,o=W,c=new yn}else c=e?[]:a;t:for(;++r<i;){var s=t[r],d=e?e(s):s;if(s=n||0!==s?s:0,u&&d===d){for(var h=c.length;h--;)if(c[h]===d)continue t;e&&c.push(d),a.push(s)}else o(c,d,n)||(c!==a&&c.push(d),a.push(s))}return a}function vo(t,e){return e=jo(e,t),null==(t=Ki(t,e))||delete t[Xi(_u(e))]}function go(t,e,n,r){return io(t,e,n(vr(t,e)),r)}function bo(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?ao(t,r?0:i,r?i+1:o):ao(t,r?i+1:0,r?o:i)}function mo(t,e){var n=t;return n instanceof b&&(n=n.value()),y(e,function(t,e){return e.func.apply(e.thisArg,h([t],e.args))},n)}function _o(t,e,n){var r=t.length;if(r<2)return r?yo(t[0]):[];for(var o=-1,i=ns(r);++o<r;)for(var u=t[o],a=-1;++a<r;)a!=o&&(i[o]=rr(i[o]||u,t[a],e,n));return yo(pr(i,1),e,n)}function wo(t,e,n){for(var r=-1,o=t.length,i=e.length,u={};++r<o;)n(u,t[r],r<i?e[r]:ot);return u}function xo(t){return Ka(t)?t:[]}function Oo(t){return"function"==typeof t?t:zf}function jo(t,e){return vp(t)?t:Ri(t,e)?[t]:Al(kc(t))}function Po(t,e,n){var r=t.length;return n=n===ot?r:n,!e&&n>=r?t:ao(t,e,n)}function ko(t,e){if(e)return t.slice();var n=t.length,r=ks?ks(n):new t.constructor(n);return t.copy(r),r}function To(t){var e=new t.constructor(t.byteLength);return new Ps(e).set(new Ps(t)),e}function Eo(t,e){return new t.constructor(e?To(t.buffer):t.buffer,t.byteOffset,t.byteLength)}function So(t){var e=new t.constructor(t.source,$e.exec(t));return e.lastIndex=t.lastIndex,e}function zo(t){return ll?as(ll.call(t)):{}}function Ao(t,e){return new t.constructor(e?To(t.buffer):t.buffer,t.byteOffset,t.length)}function Io(t,e){if(t!==e){var n=t!==ot,r=null===t,o=t===t,i=yc(t),u=e!==ot,a=null===e,c=e===e,f=yc(e);if(!a&&!f&&!i&&t>e||i&&u&&c&&!a&&!f||r&&u&&c||!n&&c||!o)return 1;if(!r&&!i&&!f&&t<e||f&&n&&o&&!r&&!i||a&&n&&o||!u&&o||!c)return-1}return 0}function Co(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,u=o.length,a=n.length;++r<u;){var c=Io(o[r],i[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}function Mo(t,e,n,r){for(var o=-1,i=t.length,u=n.length,a=-1,c=e.length,f=Gs(i-u,0),s=ns(c+f),l=!r;++a<c;)s[a]=e[a];for(;++o<u;)(l||o<i)&&(s[n[o]]=t[o]);for(;f--;)s[a++]=t[o++];return s}function Ro(t,e,n,r){for(var o=-1,i=t.length,u=-1,a=n.length,c=-1,f=e.length,s=Gs(i-a,0),l=ns(s+f),p=!r;++o<s;)l[o]=t[o];for(var d=o;++c<f;)l[d+c]=e[c];for(;++u<a;)(p||o<i)&&(l[d+n[u]]=t[o++]);return l}function Wo(t,e){var n=-1,r=t.length;for(e||(e=ns(r));++n<r;)e[n]=t[n];return e}function Do(t,e,n,r){var o=!n;n||(n={});for(var i=-1,u=e.length;++i<u;){var a=e[i],c=r?r(n[a],t[a],a,n,t):ot;c===ot&&(c=t[a]),o?Nn(n,a,c):An(n,a,c)}return n}function Lo(t,e){return Do(t,jl(t),e)}function Bo(t,e){return Do(t,Pl(t),e)}function No(t,e){return function(n,r){var o=vp(n)?u:Dn,i=e?e():{};return o(n,t,_i(r,2),i)}}function Fo(t){return no(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:ot,u=o>2?n[2]:ot;for(i=t.length>3&&"function"==typeof i?(o--,i):ot,u&&Mi(n[0],n[1],u)&&(i=o<3?ot:i,o=1),e=as(e);++r<o;){var a=n[r];a&&t(e,a,r,i)}return e})}function qo(t,e){return function(n,r){if(null==n)return n;if(!Ga(n))return t(n,r);for(var o=n.length,i=e?o:-1,u=as(n);(e?i--:++i<o)&&!1!==r(u[i],i,u););return n}}function Uo(t){return function(e,n,r){for(var o=-1,i=as(e),u=r(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===n(i[c],c,i))break}return e}}function $o(t,e,n){function r(){return(this&&this!==Gn&&this instanceof r?i:t).apply(o?n:this,arguments)}var o=e&gt,i=Ho(t);return r}function Go(t){return function(e){e=kc(e);var n=q(e)?Q(e):ot,r=n?n[0]:e.charAt(0),o=n?Po(n,1).join(""):e.slice(1);return r[t]()+o}}function Ko(t){return function(e){return y(Pf(of(e).replace(Tn,"")),t,"")}}function Ho(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=dl(t.prototype),r=t.apply(n,e);return rc(r)?r:n}}function Zo(t,e,n){function r(){for(var u=arguments.length,a=ns(u),c=u,f=mi(r);c--;)a[c]=arguments[c];var s=u<3&&a[0]!==f&&a[u-1]!==f?[]:H(a,f);return u-=s.length,u<n?ii(t,e,Jo,r.placeholder,ot,a,s,ot,ot,n-u):i(this&&this!==Gn&&this instanceof r?o:t,this,a)}var o=Ho(t);return r}function Vo(t){return function(e,n,r){var o=as(e);if(!Ga(e)){var i=_i(n,3);e=Bc(e),n=function(t){return i(o[t],t,o)}}var u=t(e,n,r);return u>-1?o[i?e[u]:u]:ot}}function Yo(t){return yi(function(e){var n=e.length,r=n,i=o.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new ss(at);if(i&&!a&&"wrapper"==bi(u))var a=new o([],!0)}for(r=a?r:n;++r<n;){u=e[r];var c=bi(u),f="wrapper"==c?Ol(u):ot;a=f&&Di(f[0])&&f[1]==(jt|_t|xt|Pt)&&!f[4].length&&1==f[9]?a[bi(f[0])].apply(a,f[3]):1==u.length&&Di(u)?a[c]():a.thru(u)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&vp(r))return a.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}})}function Jo(t,e,n,r,o,i,u,a,c,f){function s(){for(var g=arguments.length,b=ns(g),m=g;m--;)b[m]=arguments[m];if(h)var _=mi(s),w=B(b,_);if(r&&(b=Mo(b,r,o,h)),i&&(b=Ro(b,i,u,h)),g-=w,h&&g<f)return ii(t,e,Jo,s.placeholder,n,b,H(b,_),a,c,f-g);var x=p?n:this,O=d?x[t]:t;return g=b.length,a?b=Hi(b,a):y&&g>1&&b.reverse(),l&&c<g&&(b.length=c),this&&this!==Gn&&this instanceof s&&(O=v||Ho(O)),O.apply(x,b)}var l=e&jt,p=e&gt,d=e&bt,h=e&(_t|wt),y=e&kt,v=d?ot:Ho(t);return s}function Xo(t,e){return function(n,r){return jr(n,t,e(r),{})}}function Qo(t,e){return function(n,r){var o;if(n===ot&&r===ot)return e;if(n!==ot&&(o=n),r!==ot){if(o===ot)return r;"string"==typeof n||"string"==typeof r?(n=ho(n),r=ho(r)):(n=po(n),r=po(r)),o=t(n,r)}return o}}function ti(t){return yi(function(e){return e=d(e,M(_i())),no(function(n){var r=this;return t(e,function(t){return i(t,r,n)})})})}function ei(t,e){e=e===ot?" ":ho(e);var n=e.length;if(n<2)return n?eo(e,t):e;var r=eo(e,Ls(t/X(e)));return q(e)?Po(Q(r),0,t).join(""):r.slice(0,t)}function ni(t,e,n,r){function o(){for(var e=-1,c=arguments.length,f=-1,s=r.length,l=ns(s+c),p=this&&this!==Gn&&this instanceof o?a:t;++f<s;)l[f]=r[f];for(;c--;)l[f++]=arguments[++e];return i(p,u?n:this,l)}var u=e&gt,a=Ho(t);return o}function ri(t){return function(e,n,r){return r&&"number"!=typeof r&&Mi(e,n,r)&&(n=r=ot),e=_c(e),n===ot?(n=e,e=0):n=_c(n),r=r===ot?e<n?1:-1:_c(r),to(e,n,r,t)}}function oi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Oc(e),n=Oc(n)),t(e,n)}}function ii(t,e,n,r,o,i,u,a,c,f){var s=e&_t,l=s?u:ot,p=s?ot:u,d=s?i:ot,h=s?ot:i;e|=s?xt:Ot,(e&=~(s?Ot:xt))&mt||(e&=~(gt|bt));var y=[t,e,o,d,l,h,p,a,c,f],v=n.apply(ot,y);return Di(t)&&El(v,y),v.placeholder=r,Vi(v,t,e)}function ui(t){var e=us[t];return function(t,n){if(t=Oc(t),(n=null==n?0:Ks(wc(n),292))&&qs(t)){var r=(kc(t)+"e").split("e");return r=(kc(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}function ai(t){return function(e){var n=kl(e);return n==Yt?G(e):n==re?V(e):I(e,t(e))}}function ci(t,e,n,r,o,i,u,a){var c=e&bt;if(!c&&"function"!=typeof t)throw new ss(at);var f=r?r.length:0;if(f||(e&=~(xt|Ot),r=o=ot),u=u===ot?u:Gs(wc(u),0),a=a===ot?a:wc(a),f-=o?o.length:0,e&Ot){var s=r,l=o;r=o=ot}var p=c?ot:Ol(t),d=[t,e,n,r,o,s,l,i,u,a];if(p&&qi(d,p),t=d[0],e=d[1],n=d[2],r=d[3],o=d[4],a=d[9]=d[9]===ot?c?0:t.length:Gs(d[9]-f,0),!a&&e&(_t|wt)&&(e&=~(_t|wt)),e&&e!=gt)h=e==_t||e==wt?Zo(t,e,a):e!=xt&&e!=(gt|xt)||o.length?Jo.apply(ot,d):ni(t,e,n,r);else var h=$o(t,e,n);return Vi((p?bl:El)(h,d),t,e)}function fi(t,e,n,r){return t===ot||$a(t,ds[n])&&!vs.call(r,n)?e:t}function si(t,e,n,r,o,i){return rc(t)&&rc(e)&&(i.set(e,t),$r(t,e,ot,si,i),i.delete(e)),t}function li(t){return pc(t)?ot:t}function pi(t,e,n,r,o,i){var u=n&yt,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var f=i.get(t),s=i.get(e);if(f&&s)return f==e&&s==t;var l=-1,p=!0,d=n&vt?new yn:ot;for(i.set(t,e),i.set(e,t);++l<a;){var h=t[l],y=e[l];if(r)var v=u?r(y,h,l,e,t,i):r(h,y,l,t,e,i);if(v!==ot){if(v)continue;p=!1;break}if(d){if(!g(e,function(t,e){if(!W(d,e)&&(h===t||o(h,t,n,r,i)))return d.push(e)})){p=!1;break}}else if(h!==y&&!o(h,y,n,r,i)){p=!1;break}}return i.delete(t),i.delete(e),p}function di(t,e,n,r,o,i,u){switch(n){case se:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case fe:return!(t.byteLength!=e.byteLength||!i(new Ps(t),new Ps(e)));case $t:case Gt:case Jt:return $a(+t,+e);case Ht:return t.name==e.name&&t.message==e.message;case ne:case oe:return t==e+"";case Yt:var a=G;case re:var c=r&yt;if(a||(a=Z),t.size!=e.size&&!c)return!1;var f=u.get(t);if(f)return f==e;r|=vt,u.set(t,e);var s=pi(a(t),a(e),r,o,i,u);return u.delete(t),s;case ie:if(ll)return ll.call(t)==ll.call(e)}return!1}function hi(t,e,n,r,o,i){var u=n&yt,a=vi(t),c=a.length;if(c!=vi(e).length&&!u)return!1;for(var f=c;f--;){var s=a[f];if(!(u?s in e:vs.call(e,s)))return!1}var l=i.get(t),p=i.get(e);if(l&&p)return l==e&&p==t;var d=!0;i.set(t,e),i.set(e,t);for(var h=u;++f<c;){s=a[f];var y=t[s],v=e[s];if(r)var g=u?r(v,y,s,e,t,i):r(y,v,s,t,e,i);if(!(g===ot?y===v||o(y,v,n,r,i):g)){d=!1;break}h||(h="constructor"==s)}if(d&&!h){var b=t.constructor,m=e.constructor;b!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof m&&m instanceof m)&&(d=!1)}return i.delete(t),i.delete(e),d}function yi(t){return zl(Gi(t,ot,pu),t+"")}function vi(t){return gr(t,Bc,jl)}function gi(t){return gr(t,Nc,Pl)}function bi(t){for(var e=t.name+"",n=ol[e],r=vs.call(ol,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e}function mi(t){return(vs.call(n,"placeholder")?n:t).placeholder}function _i(){var t=n.iteratee||Af;return t=t===Af?Dr:t,arguments.length?t(arguments[0],arguments[1]):t}function wi(t,e){var n=t.__data__;return Wi(e)?n["string"==typeof e?"string":"hash"]:n.map}function xi(t){for(var e=Bc(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Ni(o)]}return e}function Oi(t,e){var n=F(t,e);return Cr(n)?n:ot}function ji(t){var e=vs.call(t,Cs),n=t[Cs];try{t[Cs]=ot;var r=!0}catch(t){}var o=ms.call(t);return r&&(e?t[Cs]=n:delete t[Cs]),o}function Pi(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],u=i.size;switch(i.type){case"drop":t+=u;break;case"dropRight":e-=u;break;case"take":e=Ks(e,t+u);break;case"takeRight":t=Gs(t,e-u)}}return{start:t,end:e}}function ki(t){var e=t.match(Le);return e?e[1].split(Be):[]}function Ti(t,e,n){e=jo(e,t);for(var r=-1,o=e.length,i=!1;++r<o;){var u=Xi(e[r]);if(!(i=null!=t&&n(t,u)))break;t=t[u]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&nc(o)&&Ci(u,o)&&(vp(t)||yp(t))}function Ei(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vs.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Si(t){return"function"!=typeof t.constructor||Bi(t)?{}:dl(Ts(t))}function zi(t,e,n){var r=t.constructor;switch(e){case fe:return To(t);case $t:case Gt:return new r(+t);case se:return Eo(t,n);case le:case pe:case de:case he:case ye:case ve:case ge:case be:case me:return Ao(t,n);case Yt:return new r;case Jt:case oe:return new r(t);case ne:return So(t);case re:return new r;case ie:return zo(t)}}function Ai(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(De,"{\n/* [wrapped with "+e+"] */\n")}function Ii(t){return vp(t)||yp(t)||!!(As&&t&&t[As])}function Ci(t,e){var n=typeof t;return!!(e=null==e?Mt:e)&&("number"==n||"symbol"!=n&&Ve.test(t))&&t>-1&&t%1==0&&t<e}function Mi(t,e,n){if(!rc(n))return!1;var r=typeof e;return!!("number"==r?Ga(n)&&Ci(e,n.length):"string"==r&&e in n)&&$a(n[e],t)}function Ri(t,e){if(vp(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!yc(t))||Ae.test(t)||!ze.test(t)||null!=e&&t in as(e)}function Wi(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Di(t){var e=bi(t),r=n[e];if("function"!=typeof r||!(e in b.prototype))return!1;if(t===r)return!0;var o=Ol(r);return!!o&&t===o[0]}function Li(t){return!!bs&&bs in t}function Bi(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ds)}function Ni(t){return t===t&&!rc(t)}function Fi(t,e){return function(n){return null!=n&&n[t]===e&&(e!==ot||t in as(n))}}function qi(t,e){var n=t[1],r=e[1],o=n|r,i=o<(gt|bt|jt),u=r==jt&&n==_t||r==jt&&n==Pt&&t[7].length<=e[8]||r==(jt|Pt)&&e[7].length<=e[8]&&n==_t;if(!i&&!u)return t;r&gt&&(t[2]=e[2],o|=n&gt?0:mt);var a=e[3];if(a){var c=t[3];t[3]=c?Mo(c,a,e[4]):a,t[4]=c?H(t[3],lt):e[4]}return a=e[5],a&&(c=t[5],t[5]=c?Ro(c,a,e[6]):a,t[6]=c?H(t[5],lt):e[6]),a=e[7],a&&(t[7]=a),r&jt&&(t[8]=null==t[8]?e[8]:Ks(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o,t}function Ui(t){var e=[];if(null!=t)for(var n in as(t))e.push(n);return e}function $i(t){return ms.call(t)}function Gi(t,e,n){return e=Gs(e===ot?t.length-1:e,0),function(){for(var r=arguments,o=-1,u=Gs(r.length-e,0),a=ns(u);++o<u;)a[o]=r[e+o];o=-1;for(var c=ns(e+1);++o<e;)c[o]=r[o];return c[e]=n(a),i(t,this,c)}}function Ki(t,e){return e.length<2?t:vr(t,ao(e,0,-1))}function Hi(t,e){for(var n=t.length,r=Ks(e.length,n),o=Wo(t);r--;){var i=e[r];t[r]=Ci(i,n)?o[i]:ot}return t}function Zi(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Vi(t,e,n){var r=e+"";return zl(t,Ai(r,tu(ki(r),n)))}function Yi(t){var e=0,n=0;return function(){var r=Hs(),o=zt-(r-n);if(n=r,o>0){if(++e>=St)return arguments[0]}else e=0;return t.apply(ot,arguments)}}function Ji(t,e){var n=-1,r=t.length,o=r-1;for(e=e===ot?r:e;++n<e;){var i=Qr(n,o),u=t[i];t[i]=t[n],t[n]=u}return t.length=e,t}function Xi(t){if("string"==typeof t||yc(t))return t;var e=t+"";return"0"==e&&1/t==-Ct?"-0":e}function Qi(t){if(null!=t){try{return ys.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function tu(t,e){return a(Nt,function(n){var r="_."+n[0];e&n[1]&&!l(t,r)&&t.push(r)}),t.sort()}function eu(t){if(t instanceof b)return t.clone();var e=new o(t.__wrapped__,t.__chain__);return e.__actions__=Wo(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function nu(t,e,n){e=(n?Mi(t,e,n):e===ot)?1:Gs(wc(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var o=0,i=0,u=ns(Ls(r/e));o<r;)u[i++]=ao(t,o,o+=e);return u}function ru(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o}function ou(){var t=arguments.length;if(!t)return[];for(var e=ns(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return h(vp(n)?Wo(n):[n],pr(e,1))}function iu(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===ot?1:wc(e),ao(t,e<0?0:e,r)):[]}function uu(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===ot?1:wc(e),e=r-e,ao(t,0,e<0?0:e)):[]}function au(t,e){return t&&t.length?bo(t,_i(e,3),!0,!0):[]}function cu(t,e){return t&&t.length?bo(t,_i(e,3),!0):[]}function fu(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Mi(t,e,n)&&(n=0,r=o),sr(t,e,n,r)):[]}function su(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:wc(n);return o<0&&(o=Gs(r+o,0)),w(t,_i(e,3),o)}function lu(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==ot&&(o=wc(n),o=n<0?Gs(r+o,0):Ks(o,r-1)),w(t,_i(e,3),o,!0)}function pu(t){return(null==t?0:t.length)?pr(t,1):[]}function du(t){return(null==t?0:t.length)?pr(t,Ct):[]}function hu(t,e){return(null==t?0:t.length)?(e=e===ot?1:wc(e),pr(t,e)):[]}function yu(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r}function vu(t){return t&&t.length?t[0]:ot}function gu(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:wc(n);return o<0&&(o=Gs(r+o,0)),x(t,e,o)}function bu(t){return(null==t?0:t.length)?ao(t,0,-1):[]}function mu(t,e){return null==t?"":Us.call(t,e)}function _u(t){var e=null==t?0:t.length;return e?t[e-1]:ot}function wu(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==ot&&(o=wc(n),o=o<0?Gs(r+o,0):Ks(o,r-1)),e===e?J(t,e,o):w(t,j,o,!0)}function xu(t,e){return t&&t.length?Kr(t,wc(e)):ot}function Ou(t,e){return t&&t.length&&e&&e.length?Jr(t,e):t}function ju(t,e,n){return t&&t.length&&e&&e.length?Jr(t,e,_i(n,2)):t}function Pu(t,e,n){return t&&t.length&&e&&e.length?Jr(t,e,ot,n):t}function ku(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=_i(e,3);++r<i;){var u=t[r];e(u,r,t)&&(n.push(u),o.push(r))}return Xr(t,o),n}function Tu(t){return null==t?t:Ys.call(t)}function Eu(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Mi(t,e,n)?(e=0,n=r):(e=null==e?0:wc(e),n=n===ot?r:wc(n)),ao(t,e,n)):[]}function Su(t,e){return fo(t,e)}function zu(t,e,n){return so(t,e,_i(n,2))}function Au(t,e){var n=null==t?0:t.length;if(n){var r=fo(t,e);if(r<n&&$a(t[r],e))return r}return-1}function Iu(t,e){return fo(t,e,!0)}function Cu(t,e,n){return so(t,e,_i(n,2),!0)}function Mu(t,e){if(null==t?0:t.length){var n=fo(t,e,!0)-1;if($a(t[n],e))return n}return-1}function Ru(t){return t&&t.length?lo(t):[]}function Wu(t,e){return t&&t.length?lo(t,_i(e,2)):[]}function Du(t){var e=null==t?0:t.length;return e?ao(t,1,e):[]}function Lu(t,e,n){return t&&t.length?(e=n||e===ot?1:wc(e),ao(t,0,e<0?0:e)):[]}function Bu(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===ot?1:wc(e),e=r-e,ao(t,e<0?0:e,r)):[]}function Nu(t,e){return t&&t.length?bo(t,_i(e,3),!1,!0):[]}function Fu(t,e){return t&&t.length?bo(t,_i(e,3)):[]}function qu(t){return t&&t.length?yo(t):[]}function Uu(t,e){return t&&t.length?yo(t,_i(e,2)):[]}function $u(t,e){return e="function"==typeof e?e:ot,t&&t.length?yo(t,ot,e):[]}function Gu(t){if(!t||!t.length)return[];var e=0;return t=s(t,function(t){if(Ka(t))return e=Gs(t.length,e),!0}),A(e,function(e){return d(t,k(e))})}function Ku(t,e){if(!t||!t.length)return[];var n=Gu(t);return null==e?n:d(n,function(t){return i(e,ot,t)})}function Hu(t,e){return wo(t||[],e||[],An)}function Zu(t,e){return wo(t||[],e||[],io)}function Vu(t){var e=n(t);return e.__chain__=!0,e}function Yu(t,e){return e(t),t}function Ju(t,e){return e(t)}function Xu(){return Vu(this)}function Qu(){return new o(this.value(),this.__chain__)}function ta(){this.__values__===ot&&(this.__values__=mc(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?ot:this.__values__[this.__index__++]}}function ea(){return this}function na(t){for(var e,n=this;n instanceof r;){var o=eu(n);o.__index__=0,o.__values__=ot,e?i.__wrapped__=o:e=o;var i=o;n=n.__wrapped__}return i.__wrapped__=t,e}function ra(){var t=this.__wrapped__;if(t instanceof b){var e=t;return this.__actions__.length&&(e=new b(this)),e=e.reverse(),e.__actions__.push({func:Ju,args:[Tu],thisArg:ot}),new o(e,this.__chain__)}return this.thru(Tu)}function oa(){return mo(this.__wrapped__,this.__actions__)}function ia(t,e,n){var r=vp(t)?f:cr;return n&&Mi(t,e,n)&&(e=ot),r(t,_i(e,3))}function ua(t,e){return(vp(t)?s:lr)(t,_i(e,3))}function aa(t,e){return pr(da(t,e),1)}function ca(t,e){return pr(da(t,e),Ct)}function fa(t,e,n){return n=n===ot?1:wc(n),pr(da(t,e),n)}function sa(t,e){return(vp(t)?a:hl)(t,_i(e,3))}function la(t,e){return(vp(t)?c:yl)(t,_i(e,3))}function pa(t,e,n,r){t=Ga(t)?t:Xc(t),n=n&&!r?wc(n):0;var o=t.length;return n<0&&(n=Gs(o+n,0)),hc(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&x(t,e,n)>-1}function da(t,e){return(vp(t)?d:Fr)(t,_i(e,3))}function ha(t,e,n,r){return null==t?[]:(vp(e)||(e=null==e?[]:[e]),n=r?ot:n,vp(n)||(n=null==n?[]:[n]),Hr(t,e,n))}function ya(t,e,n){var r=vp(t)?y:E,o=arguments.length<3;return r(t,_i(e,4),n,o,hl)}function va(t,e,n){var r=vp(t)?v:E,o=arguments.length<3;return r(t,_i(e,4),n,o,yl)}function ga(t,e){return(vp(t)?s:lr)(t,Aa(_i(e,3)))}function ba(t){return(vp(t)?Pn:ro)(t)}function ma(t,e,n){return e=(n?Mi(t,e,n):e===ot)?1:wc(e),(vp(t)?kn:oo)(t,e)}function _a(t){return(vp(t)?Sn:uo)(t)}function wa(t){if(null==t)return 0;if(Ga(t))return hc(t)?X(t):t.length;var e=kl(t);return e==Yt||e==re?t.size:Lr(t).length}function xa(t,e,n){var r=vp(t)?g:co;return n&&Mi(t,e,n)&&(e=ot),r(t,_i(e,3))}function Oa(t,e){if("function"!=typeof e)throw new ss(at);return t=wc(t),function(){if(--t<1)return e.apply(this,arguments)}}function ja(t,e,n){return e=n?ot:e,e=t&&null==e?t.length:e,ci(t,jt,ot,ot,ot,ot,e)}function Pa(t,e){var n;if("function"!=typeof e)throw new ss(at);return t=wc(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=ot),n}}function ka(t,e,n){e=n?ot:e;var r=ci(t,_t,ot,ot,ot,ot,ot,e);return r.placeholder=ka.placeholder,r}function Ta(t,e,n){e=n?ot:e;var r=ci(t,wt,ot,ot,ot,ot,ot,e);return r.placeholder=Ta.placeholder,r}function Ea(t,e,n){function r(e){var n=p,r=d;return p=d=ot,b=e,y=t.apply(r,n)}function o(t){return b=t,v=Sl(a,e),m?r(t):y}function i(t){var n=t-g,r=t-b,o=e-n;return _?Ks(o,h-r):o}function u(t){var n=t-g,r=t-b;return g===ot||n>=e||n<0||_&&r>=h}function a(){var t=op();return u(t)?c(t):(v=Sl(a,i(t)),ot)}function c(t){return v=ot,w&&p?r(t):(p=d=ot,y)}function f(){v!==ot&&wl(v),b=0,p=g=d=v=ot}function s(){return v===ot?y:c(op())}function l(){var t=op(),n=u(t);if(p=arguments,d=this,g=t,n){if(v===ot)return o(g);if(_)return wl(v),v=Sl(a,e),r(g)}return v===ot&&(v=Sl(a,e)),y}var p,d,h,y,v,g,b=0,m=!1,_=!1,w=!0;if("function"!=typeof t)throw new ss(at);return e=Oc(e)||0,rc(n)&&(m=!!n.leading,_="maxWait"in n,h=_?Gs(Oc(n.maxWait)||0,e):h,w="trailing"in n?!!n.trailing:w),l.cancel=f,l.flush=s,l}function Sa(t){return ci(t,kt)}function za(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new ss(at);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(za.Cache||fn),n}function Aa(t){if("function"!=typeof t)throw new ss(at);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Ia(t){return Pa(2,t)}function Ca(t,e){if("function"!=typeof t)throw new ss(at);return e=e===ot?e:wc(e),no(t,e)}function Ma(t,e){if("function"!=typeof t)throw new ss(at);return e=null==e?0:Gs(wc(e),0),no(function(n){var r=n[e],o=Po(n,0,e);return r&&h(o,r),i(t,this,o)})}function Ra(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new ss(at);return rc(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ea(t,e,{leading:r,maxWait:e,trailing:o})}function Wa(t){return ja(t,1)}function Da(t,e){return sp(Oo(e),t)}function La(){if(!arguments.length)return[];var t=arguments[0];return vp(t)?t:[t]}function Ba(t){return Kn(t,ht)}function Na(t,e){return e="function"==typeof e?e:ot,Kn(t,ht,e)}function Fa(t){return Kn(t,pt|ht)}function qa(t,e){return e="function"==typeof e?e:ot,Kn(t,pt|ht,e)}function Ua(t,e){return null==e||Vn(t,e,Bc(e))}function $a(t,e){return t===e||t!==t&&e!==e}function Ga(t){return null!=t&&nc(t.length)&&!tc(t)}function Ka(t){return oc(t)&&Ga(t)}function Ha(t){return!0===t||!1===t||oc(t)&&br(t)==$t}function Za(t){return oc(t)&&1===t.nodeType&&!pc(t)}function Va(t){if(null==t)return!0;if(Ga(t)&&(vp(t)||"string"==typeof t||"function"==typeof t.splice||bp(t)||Op(t)||yp(t)))return!t.length;var e=kl(t);if(e==Yt||e==re)return!t.size;if(Bi(t))return!Lr(t).length;for(var n in t)if(vs.call(t,n))return!1;return!0}function Ya(t,e){return Sr(t,e)}function Ja(t,e,n){n="function"==typeof n?n:ot;var r=n?n(t,e):ot;return r===ot?Sr(t,e,ot,n):!!r}function Xa(t){if(!oc(t))return!1;var e=br(t);return e==Ht||e==Kt||"string"==typeof t.message&&"string"==typeof t.name&&!pc(t)}function Qa(t){return"number"==typeof t&&qs(t)}function tc(t){if(!rc(t))return!1;var e=br(t);return e==Zt||e==Vt||e==Ut||e==ee}function ec(t){return"number"==typeof t&&t==wc(t)}function nc(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Mt}function rc(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function oc(t){return null!=t&&"object"==typeof t}function ic(t,e){return t===e||Ir(t,e,xi(e))}function uc(t,e,n){return n="function"==typeof n?n:ot,Ir(t,e,xi(e),n)}function ac(t){return lc(t)&&t!=+t}function cc(t){if(Tl(t))throw new os(ut);return Cr(t)}function fc(t){return null===t}function sc(t){return null==t}function lc(t){return"number"==typeof t||oc(t)&&br(t)==Jt}function pc(t){if(!oc(t)||br(t)!=Qt)return!1;var e=Ts(t);if(null===e)return!0;var n=vs.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ys.call(n)==_s}function dc(t){return ec(t)&&t>=-Mt&&t<=Mt}function hc(t){return"string"==typeof t||!vp(t)&&oc(t)&&br(t)==oe}function yc(t){return"symbol"==typeof t||oc(t)&&br(t)==ie}function vc(t){return t===ot}function gc(t){return oc(t)&&kl(t)==ae}function bc(t){return oc(t)&&br(t)==ce}function mc(t){if(!t)return[];if(Ga(t))return hc(t)?Q(t):Wo(t);if(Is&&t[Is])return $(t[Is]());var e=kl(t);return(e==Yt?G:e==re?Z:Xc)(t)}function _c(t){return t?(t=Oc(t))===Ct||t===-Ct?(t<0?-1:1)*Rt:t===t?t:0:0===t?t:0}function wc(t){var e=_c(t),n=e%1;return e===e?n?e-n:e:0}function xc(t){return t?$n(wc(t),0,Dt):0}function Oc(t){if("number"==typeof t)return t;if(yc(t))return Wt;if(rc(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=rc(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=C(t);var n=Ke.test(t);return n||Ze.test(t)?qn(t.slice(2),n?2:8):Ge.test(t)?Wt:+t}function jc(t){return Do(t,Nc(t))}function Pc(t){return t?$n(wc(t),-Mt,Mt):0===t?t:0}function kc(t){return null==t?"":ho(t)}function Tc(t,e){var n=dl(t);return null==e?n:Ln(n,e)}function Ec(t,e){return _(t,_i(e,3),dr)}function Sc(t,e){return _(t,_i(e,3),hr)}function zc(t,e){return null==t?t:vl(t,_i(e,3),Nc)}function Ac(t,e){return null==t?t:gl(t,_i(e,3),Nc)}function Ic(t,e){return t&&dr(t,_i(e,3))}function Cc(t,e){return t&&hr(t,_i(e,3))}function Mc(t){return null==t?[]:yr(t,Bc(t))}function Rc(t){return null==t?[]:yr(t,Nc(t))}function Wc(t,e,n){var r=null==t?ot:vr(t,e);return r===ot?n:r}function Dc(t,e){return null!=t&&Ti(t,e,_r)}function Lc(t,e){return null!=t&&Ti(t,e,wr)}function Bc(t){return Ga(t)?jn(t):Lr(t)}function Nc(t){return Ga(t)?jn(t,!0):Br(t)}function Fc(t,e){var n={};return e=_i(e,3),dr(t,function(t,r,o){Nn(n,e(t,r,o),t)}),n}function qc(t,e){var n={};return e=_i(e,3),dr(t,function(t,r,o){Nn(n,r,e(t,r,o))}),n}function Uc(t,e){return $c(t,Aa(_i(e)))}function $c(t,e){if(null==t)return{};var n=d(gi(t),function(t){return[t]});return e=_i(e),Vr(t,n,function(t,n){return e(t,n[0])})}function Gc(t,e,n){e=jo(e,t);var r=-1,o=e.length;for(o||(o=1,t=ot);++r<o;){var i=null==t?ot:t[Xi(e[r])];i===ot&&(r=o,i=n),t=tc(i)?i.call(t):i}return t}function Kc(t,e,n){return null==t?t:io(t,e,n)}function Hc(t,e,n,r){return r="function"==typeof r?r:ot,null==t?t:io(t,e,n,r)}function Zc(t,e,n){var r=vp(t),o=r||bp(t)||Op(t);if(e=_i(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:rc(t)&&tc(i)?dl(Ts(t)):{}}return(o?a:dr)(t,function(t,r,o){return e(n,t,r,o)}),n}function Vc(t,e){return null==t||vo(t,e)}function Yc(t,e,n){return null==t?t:go(t,e,Oo(n))}function Jc(t,e,n,r){return r="function"==typeof r?r:ot,null==t?t:go(t,e,Oo(n),r)}function Xc(t){return null==t?[]:R(t,Bc(t))}function Qc(t){return null==t?[]:R(t,Nc(t))}function tf(t,e,n){return n===ot&&(n=e,e=ot),n!==ot&&(n=Oc(n),n=n===n?n:0),e!==ot&&(e=Oc(e),e=e===e?e:0),$n(Oc(t),e,n)}function ef(t,e,n){return e=_c(e),n===ot?(n=e,e=0):n=_c(n),t=Oc(t),xr(t,e,n)}function nf(t,e,n){if(n&&"boolean"!=typeof n&&Mi(t,e,n)&&(e=n=ot),n===ot&&("boolean"==typeof e?(n=e,e=ot):"boolean"==typeof t&&(n=t,t=ot)),t===ot&&e===ot?(t=0,e=1):(t=_c(t),e===ot?(e=t,t=0):e=_c(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Vs();return Ks(t+o*(e-t+Fn("1e-"+((o+"").length-1))),e)}return Qr(t,e)}function rf(t){return Vp(kc(t).toLowerCase())}function of(t){return(t=kc(t))&&t.replace(Ye,or).replace(En,"")}function uf(t,e,n){t=kc(t),e=ho(e);var r=t.length;n=n===ot?r:$n(wc(n),0,r);var o=n;return(n-=e.length)>=0&&t.slice(n,o)==e}function af(t){return t=kc(t),t&&ke.test(t)?t.replace(je,ir):t}function cf(t){return t=kc(t),t&&Me.test(t)?t.replace(Ce,"\\$&"):t}function ff(t,e,n){t=kc(t),e=wc(e);var r=e?X(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return ei(Bs(o),n)+t+ei(Ls(o),n)}function sf(t,e,n){t=kc(t),e=wc(e);var r=e?X(t):0;return e&&r<e?t+ei(e-r,n):t}function lf(t,e,n){t=kc(t),e=wc(e);var r=e?X(t):0;return e&&r<e?ei(e-r,n)+t:t}function pf(t,e,n){return n||null==e?e=0:e&&(e=+e),Zs(kc(t).replace(Re,""),e||0)}function df(t,e,n){return e=(n?Mi(t,e,n):e===ot)?1:wc(e),eo(kc(t),e)}function hf(){var t=arguments,e=kc(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function yf(t,e,n){return n&&"number"!=typeof n&&Mi(t,e,n)&&(e=n=ot),(n=n===ot?Dt:n>>>0)?(t=kc(t),t&&("string"==typeof e||null!=e&&!wp(e))&&!(e=ho(e))&&q(t)?Po(Q(t),0,n):t.split(e,n)):[]}function vf(t,e,n){return t=kc(t),n=null==n?0:$n(wc(n),0,t.length),e=ho(e),t.slice(n,n+e.length)==e}function gf(t,e,r){var o=n.templateSettings;r&&Mi(t,e,r)&&(e=ot),t=kc(t),e=Ep({},e,o,fi);var i,u,a=Ep({},e.imports,o.imports,fi),c=Bc(a),f=R(a,c),s=0,l=e.interpolate||Je,p="__p += '",d=cs((e.escape||Je).source+"|"+l.source+"|"+(l===Se?Ue:Je).source+"|"+(e.evaluate||Je).source+"|$","g"),h="//# sourceURL="+(vs.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mn+"]")+"\n";t.replace(d,function(e,n,r,o,a,c){return r||(r=o),p+=t.slice(s,c).replace(Xe,N),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),a&&(u=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=c+e.length,e}),p+="';\n";var y=vs.call(e,"variable")&&e.variable;if(y){if(Fe.test(y))throw new os(ct)}else p="with (obj) {\n"+p+"\n}\n";p=(u?p.replace(_e,""):p).replace(we,"$1").replace(xe,"$1;"),p="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Yp(function(){return is(c,h+"return "+p).apply(ot,f)});if(v.source=p,Xa(v))throw v;return v}function bf(t){return kc(t).toLowerCase()}function mf(t){return kc(t).toUpperCase()}function _f(t,e,n){if((t=kc(t))&&(n||e===ot))return C(t);if(!t||!(e=ho(e)))return t;var r=Q(t),o=Q(e);return Po(r,D(r,o),L(r,o)+1).join("")}function wf(t,e,n){if((t=kc(t))&&(n||e===ot))return t.slice(0,tt(t)+1);if(!t||!(e=ho(e)))return t;var r=Q(t);return Po(r,0,L(r,Q(e))+1).join("")}function xf(t,e,n){if((t=kc(t))&&(n||e===ot))return t.replace(Re,"");if(!t||!(e=ho(e)))return t;var r=Q(t);return Po(r,D(r,Q(e))).join("")}function Of(t,e){var n=Tt,r=Et;if(rc(e)){var o="separator"in e?e.separator:o;n="length"in e?wc(e.length):n,r="omission"in e?ho(e.omission):r}t=kc(t);var i=t.length;if(q(t)){var u=Q(t);i=u.length}if(n>=i)return t;var a=n-X(r);if(a<1)return r;var c=u?Po(u,0,a).join(""):t.slice(0,a);if(o===ot)return c+r;if(u&&(a+=c.length-a),wp(o)){if(t.slice(a).search(o)){var f,s=c;for(o.global||(o=cs(o.source,kc($e.exec(o))+"g")),o.lastIndex=0;f=o.exec(s);)var l=f.index;c=c.slice(0,l===ot?a:l)}}else if(t.indexOf(ho(o),a)!=a){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r}function jf(t){return t=kc(t),t&&Pe.test(t)?t.replace(Oe,ur):t}function Pf(t,e,n){return t=kc(t),e=n?ot:e,e===ot?U(t)?rt(t):m(t):t.match(e)||[]}function kf(t){var e=null==t?0:t.length,n=_i();return t=e?d(t,function(t){if("function"!=typeof t[1])throw new ss(at);return[n(t[0]),t[1]]}):[],no(function(n){for(var r=-1;++r<e;){var o=t[r];if(i(o[0],this,n))return i(o[1],this,n)}})}function Tf(t){return Hn(Kn(t,pt))}function Ef(t){return function(){return t}}function Sf(t,e){return null==t||t!==t?e:t}function zf(t){return t}function Af(t){return Dr("function"==typeof t?t:Kn(t,pt))}function If(t){return qr(Kn(t,pt))}function Cf(t,e){return Ur(t,Kn(e,pt))}function Mf(t,e,n){var r=Bc(e),o=yr(e,r);null!=n||rc(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=yr(e,Bc(e)));var i=!(rc(n)&&"chain"in n&&!n.chain),u=tc(t);return a(o,function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__);return(n.__actions__=Wo(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,h([this.value()],arguments))})}),t}function Rf(){return Gn._===this&&(Gn._=ws),this}function Wf(){}function Df(t){return t=wc(t),no(function(e){return Kr(e,t)})}function Lf(t){return Ri(t)?k(Xi(t)):Yr(t)}function Bf(t){return function(e){return null==t?ot:vr(t,e)}}function Nf(){return[]}function Ff(){return!1}function qf(){return{}}function Uf(){return""}function $f(){return!0}function Gf(t,e){if((t=wc(t))<1||t>Mt)return[];var n=Dt,r=Ks(t,Dt);e=_i(e),t-=Dt;for(var o=A(r,e);++n<t;)e(n);return o}function Kf(t){return vp(t)?d(t,Xi):yc(t)?[t]:Wo(Al(kc(t)))}function Hf(t){var e=++gs;return kc(t)+e}function Zf(t){return t&&t.length?fr(t,zf,mr):ot}function Vf(t,e){return t&&t.length?fr(t,_i(e,2),mr):ot}function Yf(t){return P(t,zf)}function Jf(t,e){return P(t,_i(e,2))}function Xf(t){return t&&t.length?fr(t,zf,Nr):ot}function Qf(t,e){return t&&t.length?fr(t,_i(e,2),Nr):ot}function ts(t){return t&&t.length?z(t,zf):0}function es(t,e){return t&&t.length?z(t,_i(e,2)):0}e=null==e?Gn:ar.defaults(Gn.Object(),e,ar.pick(Gn,Cn));var ns=e.Array,rs=e.Date,os=e.Error,is=e.Function,us=e.Math,as=e.Object,cs=e.RegExp,fs=e.String,ss=e.TypeError,ls=ns.prototype,ps=is.prototype,ds=as.prototype,hs=e["__core-js_shared__"],ys=ps.toString,vs=ds.hasOwnProperty,gs=0,bs=function(){var t=/[^.]+$/.exec(hs&&hs.keys&&hs.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ms=ds.toString,_s=ys.call(as),ws=Gn._,xs=cs("^"+ys.call(vs).replace(Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Os=Zn?e.Buffer:ot,js=e.Symbol,Ps=e.Uint8Array,ks=Os?Os.allocUnsafe:ot,Ts=K(as.getPrototypeOf,as),Es=as.create,Ss=ds.propertyIsEnumerable,zs=ls.splice,As=js?js.isConcatSpreadable:ot,Is=js?js.iterator:ot,Cs=js?js.toStringTag:ot,Ms=function(){try{var t=Oi(as,"defineProperty");return t({},"",{}),t}catch(t){}}(),Rs=e.clearTimeout!==Gn.clearTimeout&&e.clearTimeout,Ws=rs&&rs.now!==Gn.Date.now&&rs.now,Ds=e.setTimeout!==Gn.setTimeout&&e.setTimeout,Ls=us.ceil,Bs=us.floor,Ns=as.getOwnPropertySymbols,Fs=Os?Os.isBuffer:ot,qs=e.isFinite,Us=ls.join,$s=K(as.keys,as),Gs=us.max,Ks=us.min,Hs=rs.now,Zs=e.parseInt,Vs=us.random,Ys=ls.reverse,Js=Oi(e,"DataView"),Xs=Oi(e,"Map"),Qs=Oi(e,"Promise"),tl=Oi(e,"Set"),el=Oi(e,"WeakMap"),nl=Oi(as,"create"),rl=el&&new el,ol={},il=Qi(Js),ul=Qi(Xs),al=Qi(Qs),cl=Qi(tl),fl=Qi(el),sl=js?js.prototype:ot,ll=sl?sl.valueOf:ot,pl=sl?sl.toString:ot,dl=function(){function t(){}return function(e){if(!rc(e))return{};if(Es)return Es(e);t.prototype=e;var n=new t;return t.prototype=ot,n}}();n.templateSettings={escape:Te,evaluate:Ee,interpolate:Se,variable:"",imports:{_:n}},n.prototype=r.prototype,n.prototype.constructor=n,o.prototype=dl(r.prototype),o.prototype.constructor=o,b.prototype=dl(r.prototype),b.prototype.constructor=b,nt.prototype.clear=We,nt.prototype.delete=Ne,nt.prototype.get=Qe,nt.prototype.has=tn,nt.prototype.set=en,nn.prototype.clear=rn,nn.prototype.delete=on,nn.prototype.get=un,nn.prototype.has=an,nn.prototype.set=cn,fn.prototype.clear=sn,fn.prototype.delete=ln,fn.prototype.get=pn,fn.prototype.has=dn,fn.prototype.set=hn,yn.prototype.add=yn.prototype.push=vn,yn.prototype.has=gn,bn.prototype.clear=mn,bn.prototype.delete=_n,bn.prototype.get=wn,bn.prototype.has=xn,bn.prototype.set=On;var hl=qo(dr),yl=qo(hr,!0),vl=Uo(),gl=Uo(!0),bl=rl?function(t,e){return rl.set(t,e),t}:zf,ml=Ms?function(t,e){return Ms(t,"toString",{configurable:!0,enumerable:!1,value:Ef(e),writable:!0})}:zf,_l=no,wl=Rs||function(t){return Gn.clearTimeout(t)},xl=tl&&1/Z(new tl([,-0]))[1]==Ct?function(t){return new tl(t)}:Wf,Ol=rl?function(t){return rl.get(t)}:Wf,jl=Ns?function(t){return null==t?[]:(t=as(t),s(Ns(t),function(e){return Ss.call(t,e)}))}:Nf,Pl=Ns?function(t){for(var e=[];t;)h(e,jl(t)),t=Ts(t);return e}:Nf,kl=br;(Js&&kl(new Js(new ArrayBuffer(1)))!=se||Xs&&kl(new Xs)!=Yt||Qs&&kl(Qs.resolve())!=te||tl&&kl(new tl)!=re||el&&kl(new el)!=ae)&&(kl=function(t){var e=br(t),n=e==Qt?t.constructor:ot,r=n?Qi(n):"";if(r)switch(r){case il:return se;case ul:return Yt;case al:return te;case cl:return re;case fl:return ae}return e});var Tl=hs?tc:Ff,El=Yi(bl),Sl=Ds||function(t,e){return Gn.setTimeout(t,e)},zl=Yi(ml),Al=function(t){var e=za(t,function(t){return n.size===st&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ie,function(t,n,r,o){e.push(r?o.replace(qe,"$1"):n||t)}),e}),Il=no(function(t,e){return Ka(t)?rr(t,pr(e,1,Ka,!0)):[]}),Cl=no(function(t,e){var n=_u(e);return Ka(n)&&(n=ot),Ka(t)?rr(t,pr(e,1,Ka,!0),_i(n,2)):[]}),Ml=no(function(t,e){var n=_u(e);return Ka(n)&&(n=ot),Ka(t)?rr(t,pr(e,1,Ka,!0),ot,n):[]}),Rl=no(function(t){var e=d(t,xo);return e.length&&e[0]===t[0]?Or(e):[]}),Wl=no(function(t){var e=_u(t),n=d(t,xo);return e===_u(n)?e=ot:n.pop(),n.length&&n[0]===t[0]?Or(n,_i(e,2)):[]}),Dl=no(function(t){var e=_u(t),n=d(t,xo);return e="function"==typeof e?e:ot,e&&n.pop(),n.length&&n[0]===t[0]?Or(n,ot,e):[]}),Ll=no(Ou),Bl=yi(function(t,e){var n=null==t?0:t.length,r=Un(t,e);return Xr(t,d(e,function(t){return Ci(t,n)?+t:t}).sort(Io)),r}),Nl=no(function(t){return yo(pr(t,1,Ka,!0))}),Fl=no(function(t){var e=_u(t);return Ka(e)&&(e=ot),yo(pr(t,1,Ka,!0),_i(e,2))}),ql=no(function(t){var e=_u(t);return e="function"==typeof e?e:ot,yo(pr(t,1,Ka,!0),ot,e)}),Ul=no(function(t,e){return Ka(t)?rr(t,e):[]}),$l=no(function(t){return _o(s(t,Ka))}),Gl=no(function(t){var e=_u(t);return Ka(e)&&(e=ot),_o(s(t,Ka),_i(e,2))}),Kl=no(function(t){var e=_u(t);return e="function"==typeof e?e:ot,_o(s(t,Ka),ot,e)}),Hl=no(Gu),Zl=no(function(t){var e=t.length,n=e>1?t[e-1]:ot;return n="function"==typeof n?(t.pop(),n):ot,Ku(t,n)}),Vl=yi(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Un(e,t)};return!(e>1||this.__actions__.length)&&r instanceof b&&Ci(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Ju,args:[i],thisArg:ot}),new o(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(ot),t})):this.thru(i)}),Yl=No(function(t,e,n){vs.call(t,n)?++t[n]:Nn(t,n,1)}),Jl=Vo(su),Xl=Vo(lu),Ql=No(function(t,e,n){vs.call(t,n)?t[n].push(e):Nn(t,n,[e])}),tp=no(function(t,e,n){var r=-1,o="function"==typeof e,u=Ga(t)?ns(t.length):[];return hl(t,function(t){u[++r]=o?i(e,t,n):Pr(t,e,n)}),u}),ep=No(function(t,e,n){Nn(t,n,e)}),np=No(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),rp=no(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Mi(t,e[0],e[1])?e=[]:n>2&&Mi(e[0],e[1],e[2])&&(e=[e[0]]),Hr(t,pr(e,1),[])}),op=Ws||function(){return Gn.Date.now()},ip=no(function(t,e,n){var r=gt;if(n.length){var o=H(n,mi(ip));r|=xt}return ci(t,r,e,n,o)}),up=no(function(t,e,n){var r=gt|bt;if(n.length){var o=H(n,mi(up));r|=xt}return ci(e,r,t,n,o)}),ap=no(function(t,e){return Yn(t,1,e)}),cp=no(function(t,e,n){return Yn(t,Oc(e)||0,n)});za.Cache=fn;var fp=_l(function(t,e){e=1==e.length&&vp(e[0])?d(e[0],M(_i())):d(pr(e,1),M(_i()));var n=e.length;return no(function(r){for(var o=-1,u=Ks(r.length,n);++o<u;)r[o]=e[o].call(this,r[o]);return i(t,this,r)})}),sp=no(function(t,e){return ci(t,xt,ot,e,H(e,mi(sp)))}),lp=no(function(t,e){return ci(t,Ot,ot,e,H(e,mi(lp)))}),pp=yi(function(t,e){return ci(t,Pt,ot,ot,ot,e)}),dp=oi(mr),hp=oi(function(t,e){return t>=e}),yp=kr(function(){return arguments}())?kr:function(t){return oc(t)&&vs.call(t,"callee")&&!Ss.call(t,"callee")},vp=ns.isArray,gp=Jn?M(Jn):Tr,bp=Fs||Ff,mp=Xn?M(Xn):Er,_p=Qn?M(Qn):Ar,wp=tr?M(tr):Mr,xp=er?M(er):Rr,Op=nr?M(nr):Wr,jp=oi(Nr),Pp=oi(function(t,e){return t<=e}),kp=Fo(function(t,e){if(Bi(e)||Ga(e))return Do(e,Bc(e),t),ot;for(var n in e)vs.call(e,n)&&An(t,n,e[n])}),Tp=Fo(function(t,e){Do(e,Nc(e),t)}),Ep=Fo(function(t,e,n,r){Do(e,Nc(e),t,r)}),Sp=Fo(function(t,e,n,r){Do(e,Bc(e),t,r)}),zp=yi(Un),Ap=no(function(t,e){t=as(t);var n=-1,r=e.length,o=r>2?e[2]:ot;for(o&&Mi(e[0],e[1],o)&&(r=1);++n<r;)for(var i=e[n],u=Nc(i),a=-1,c=u.length;++a<c;){var f=u[a],s=t[f];(s===ot||$a(s,ds[f])&&!vs.call(t,f))&&(t[f]=i[f])}return t}),Ip=no(function(t){return t.push(ot,si),i(Dp,ot,t)}),Cp=Xo(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=ms.call(e)),t[e]=n},Ef(zf)),Mp=Xo(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=ms.call(e)),vs.call(t,e)?t[e].push(n):t[e]=[n]},_i),Rp=no(Pr),Wp=Fo(function(t,e,n){$r(t,e,n)}),Dp=Fo(function(t,e,n,r){$r(t,e,n,r)}),Lp=yi(function(t,e){var n={};if(null==t)return n;var r=!1;e=d(e,function(e){return e=jo(e,t),r||(r=e.length>1),e}),Do(t,gi(t),n),r&&(n=Kn(n,pt|dt|ht,li));for(var o=e.length;o--;)vo(n,e[o]);return n}),Bp=yi(function(t,e){return null==t?{}:Zr(t,e)}),Np=ai(Bc),Fp=ai(Nc),qp=Ko(function(t,e,n){return e=e.toLowerCase(),t+(n?rf(e):e)}),Up=Ko(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),$p=Ko(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Gp=Go("toLowerCase"),Kp=Ko(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Hp=Ko(function(t,e,n){return t+(n?" ":"")+Vp(e)}),Zp=Ko(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Vp=Go("toUpperCase"),Yp=no(function(t,e){try{return i(t,ot,e)}catch(t){return Xa(t)?t:new os(t)}}),Jp=yi(function(t,e){return a(e,function(e){e=Xi(e),Nn(t,e,ip(t[e],t))}),t}),Xp=Yo(),Qp=Yo(!0),td=no(function(t,e){return function(n){return Pr(n,t,e)}}),ed=no(function(t,e){return function(n){return Pr(t,n,e)}}),nd=ti(d),rd=ti(f),od=ti(g),id=ri(),ud=ri(!0),ad=Qo(function(t,e){return t+e},0),cd=ui("ceil"),fd=Qo(function(t,e){return t/e},1),sd=ui("floor"),ld=Qo(function(t,e){return t*e},1),pd=ui("round"),dd=Qo(function(t,e){return t-e},0);return n.after=Oa,n.ary=ja,n.assign=kp,n.assignIn=Tp,n.assignInWith=Ep,n.assignWith=Sp,n.at=zp,n.before=Pa,n.bind=ip,n.bindAll=Jp,n.bindKey=up,n.castArray=La,n.chain=Vu,n.chunk=nu,n.compact=ru,n.concat=ou,n.cond=kf,n.conforms=Tf,n.constant=Ef,n.countBy=Yl,n.create=Tc,n.curry=ka,n.curryRight=Ta,n.debounce=Ea,n.defaults=Ap,n.defaultsDeep=Ip,n.defer=ap,n.delay=cp,n.difference=Il,n.differenceBy=Cl,n.differenceWith=Ml,n.drop=iu,n.dropRight=uu,n.dropRightWhile=au,n.dropWhile=cu,n.fill=fu,n.filter=ua,n.flatMap=aa,n.flatMapDeep=ca,n.flatMapDepth=fa,n.flatten=pu,n.flattenDeep=du,n.flattenDepth=hu,n.flip=Sa,n.flow=Xp,n.flowRight=Qp,n.fromPairs=yu,n.functions=Mc,n.functionsIn=Rc,n.groupBy=Ql,n.initial=bu,n.intersection=Rl,n.intersectionBy=Wl,n.intersectionWith=Dl,n.invert=Cp,n.invertBy=Mp,n.invokeMap=tp,n.iteratee=Af,n.keyBy=ep,n.keys=Bc,n.keysIn=Nc,n.map=da,n.mapKeys=Fc,n.mapValues=qc,n.matches=If,n.matchesProperty=Cf,n.memoize=za,n.merge=Wp,n.mergeWith=Dp,n.method=td,n.methodOf=ed,n.mixin=Mf,n.negate=Aa,n.nthArg=Df,n.omit=Lp,n.omitBy=Uc,n.once=Ia,n.orderBy=ha,n.over=nd,n.overArgs=fp,n.overEvery=rd,n.overSome=od,n.partial=sp,n.partialRight=lp,n.partition=np,n.pick=Bp,n.pickBy=$c,n.property=Lf,n.propertyOf=Bf,n.pull=Ll,n.pullAll=Ou,n.pullAllBy=ju,n.pullAllWith=Pu,n.pullAt=Bl,n.range=id,n.rangeRight=ud,n.rearg=pp,n.reject=ga,n.remove=ku,n.rest=Ca,n.reverse=Tu,n.sampleSize=ma,n.set=Kc,n.setWith=Hc,n.shuffle=_a,n.slice=Eu,n.sortBy=rp,n.sortedUniq=Ru,n.sortedUniqBy=Wu,n.split=yf,n.spread=Ma,n.tail=Du,n.take=Lu,n.takeRight=Bu,n.takeRightWhile=Nu,n.takeWhile=Fu,n.tap=Yu,n.throttle=Ra,n.thru=Ju,n.toArray=mc,n.toPairs=Np,n.toPairsIn=Fp,n.toPath=Kf,n.toPlainObject=jc,n.transform=Zc,n.unary=Wa,n.union=Nl,n.unionBy=Fl,n.unionWith=ql,n.uniq=qu,n.uniqBy=Uu,n.uniqWith=$u,n.unset=Vc,n.unzip=Gu,n.unzipWith=Ku,n.update=Yc,n.updateWith=Jc,n.values=Xc,n.valuesIn=Qc,n.without=Ul,n.words=Pf,n.wrap=Da,n.xor=$l,n.xorBy=Gl,n.xorWith=Kl,n.zip=Hl,n.zipObject=Hu,n.zipObjectDeep=Zu,n.zipWith=Zl,n.entries=Np,n.entriesIn=Fp,n.extend=Tp,n.extendWith=Ep,Mf(n,n),n.add=ad,n.attempt=Yp,n.camelCase=qp,n.capitalize=rf,n.ceil=cd,n.clamp=tf,n.clone=Ba,n.cloneDeep=Fa,n.cloneDeepWith=qa,n.cloneWith=Na,n.conformsTo=Ua,n.deburr=of,n.defaultTo=Sf,n.divide=fd,n.endsWith=uf,n.eq=$a,n.escape=af,n.escapeRegExp=cf,n.every=ia,n.find=Jl,n.findIndex=su,n.findKey=Ec,n.findLast=Xl,n.findLastIndex=lu,n.findLastKey=Sc,n.floor=sd,n.forEach=sa,n.forEachRight=la,n.forIn=zc,n.forInRight=Ac,n.forOwn=Ic,n.forOwnRight=Cc,n.get=Wc,n.gt=dp,n.gte=hp,n.has=Dc,n.hasIn=Lc,n.head=vu,n.identity=zf,n.includes=pa,n.indexOf=gu,n.inRange=ef,n.invoke=Rp,n.isArguments=yp,n.isArray=vp,n.isArrayBuffer=gp,n.isArrayLike=Ga,n.isArrayLikeObject=Ka,n.isBoolean=Ha,n.isBuffer=bp,n.isDate=mp,n.isElement=Za,n.isEmpty=Va,n.isEqual=Ya,n.isEqualWith=Ja,n.isError=Xa,n.isFinite=Qa,n.isFunction=tc,n.isInteger=ec,n.isLength=nc,n.isMap=_p,n.isMatch=ic,n.isMatchWith=uc,n.isNaN=ac,n.isNative=cc,n.isNil=sc,n.isNull=fc,n.isNumber=lc,n.isObject=rc,n.isObjectLike=oc,n.isPlainObject=pc,n.isRegExp=wp,n.isSafeInteger=dc,n.isSet=xp,n.isString=hc,n.isSymbol=yc,n.isTypedArray=Op,n.isUndefined=vc,n.isWeakMap=gc,n.isWeakSet=bc,n.join=mu,n.kebabCase=Up,n.last=_u,n.lastIndexOf=wu,n.lowerCase=$p,n.lowerFirst=Gp,n.lt=jp,n.lte=Pp,n.max=Zf,n.maxBy=Vf,n.mean=Yf,n.meanBy=Jf,n.min=Xf,n.minBy=Qf,n.stubArray=Nf,n.stubFalse=Ff,n.stubObject=qf,n.stubString=Uf,n.stubTrue=$f,n.multiply=ld,n.nth=xu,n.noConflict=Rf,n.noop=Wf,n.now=op,n.pad=ff,n.padEnd=sf,n.padStart=lf,n.parseInt=pf,n.random=nf,n.reduce=ya,n.reduceRight=va,n.repeat=df,n.replace=hf,n.result=Gc,n.round=pd,n.runInContext=t,n.sample=ba,n.size=wa,n.snakeCase=Kp,n.some=xa,n.sortedIndex=Su,n.sortedIndexBy=zu,n.sortedIndexOf=Au,n.sortedLastIndex=Iu,n.sortedLastIndexBy=Cu,n.sortedLastIndexOf=Mu,n.startCase=Hp,n.startsWith=vf,n.subtract=dd,n.sum=ts,n.sumBy=es,n.template=gf,n.times=Gf,n.toFinite=_c,n.toInteger=wc,n.toLength=xc,n.toLower=bf,n.toNumber=Oc,n.toSafeInteger=Pc,n.toString=kc,n.toUpper=mf,n.trim=_f,n.trimEnd=wf,n.trimStart=xf,n.truncate=Of,n.unescape=jf,n.uniqueId=Hf,n.upperCase=Zp,n.upperFirst=Vp,n.each=sa,n.eachRight=la,n.first=vu,Mf(n,function(){var t={};return dr(n,function(e,r){vs.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION="4.17.21",a(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),a(["drop","take"],function(t,e){b.prototype[t]=function(n){n=n===ot?1:Gs(wc(n),0);var r=this.__filtered__&&!e?new b(this):this.clone();return r.__filtered__?r.__takeCount__=Ks(n,r.__takeCount__):r.__views__.push({size:Ks(n,Dt),type:t+(r.__dir__<0?"Right":"")}),r},b.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),a(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==At||3==n;b.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:_i(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),a(["head","last"],function(t,e){var n="take"+(e?"Right":"");b.prototype[t]=function(){return this[n](1).value()[0]}}),a(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");b.prototype[t]=function(){return this.__filtered__?new b(this):this[n](1)}}),b.prototype.compact=function(){return this.filter(zf)},b.prototype.find=function(t){return this.filter(t).head()},b.prototype.findLast=function(t){return this.reverse().find(t)},b.prototype.invokeMap=no(function(t,e){return"function"==typeof t?new b(this):this.map(function(n){return Pr(n,t,e)})}),b.prototype.reject=function(t){return this.filter(Aa(_i(t)))},b.prototype.slice=function(t,e){t=wc(t);var n=this;return n.__filtered__&&(t>0||e<0)?new b(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==ot&&(e=wc(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},b.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},b.prototype.toArray=function(){return this.take(Dt)},dr(b.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),u=n[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);u&&(n.prototype[e]=function(){var e=this.__wrapped__,c=i?[1]:arguments,f=e instanceof b,s=c[0],l=f||vp(e),p=function(t){var e=u.apply(n,h([t],c));return i&&d?e[0]:e};l&&r&&"function"==typeof s&&1!=s.length&&(f=l=!1);var d=this.__chain__,y=!!this.__actions__.length,v=a&&!d,g=f&&!y;if(!a&&l){e=g?e:new b(this);var m=t.apply(e,c);return m.__actions__.push({func:Ju,args:[p],thisArg:ot}),new o(m,d)}return v&&g?t.apply(this,c):(m=this.thru(p),v?i?m.value()[0]:m.value():m)})}),a(["pop","push","shift","sort","splice","unshift"],function(t){var e=ls[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",o=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(o&&!this.__chain__){var n=this.value();return e.apply(vp(n)?n:[],t)}return this[r](function(n){return e.apply(vp(n)?n:[],t)})}}),dr(b.prototype,function(t,e){var r=n[e];if(r){var o=r.name+"";vs.call(ol,o)||(ol[o]=[]),ol[o].push({name:e,func:r})}}),ol[Jo(ot,bt).name]=[{name:"wrapper",func:ot}],b.prototype.clone=T,b.prototype.reverse=Y,b.prototype.value=et,n.prototype.at=Vl,n.prototype.chain=Xu,n.prototype.commit=Qu,n.prototype.next=ta,n.prototype.plant=na,n.prototype.reverse=ra,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=oa,n.prototype.first=n.prototype.head,Is&&(n.prototype[Is]=ea),n}();Gn._=ar,void 0!==(o=function(){return ar}.call(e,n,e,r))&&(r.exports=o)}).call(this)}).call(e,n(36),n(26)(t))},function(t,e,n){function r(t,e){return 2==e?function(e,n){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}function o(t,e){return 2==e?function(e,n){return t(e,n)}:function(e){return t(e)}}function i(t){for(var e=t?t.length:0,n=Array(e);e--;)n[e]=t[e];return n}function u(t){return function(e){return t({},e)}}function a(t,e){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var i=o[e],u=o.slice(0,e);return i&&p.apply(u,i),e!=r&&p.apply(u,o.slice(e+1)),t.apply(this,u)}}function c(t,e){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=e.apply(void 0,r);return t.apply(void 0,r),o}}}function f(t,e,n,p){function d(t,e){if(k.cap){var n=s.iterateeRearg[t];if(n)return w(e,n);var r=!j&&s.iterateeAry[t];if(r)return _(e,r)}return e}function h(t,e,n){return E||k.curry&&n>1?W(e,n):e}function y(t,e,n){if(k.fixed&&(S||!s.skipFixed[t])){var r=s.methodSpread[t],o=r&&r.start;return void 0===o?C(e,n):a(e,o)}return e}function v(t,e,n){return k.rearg&&n>1&&(z||!s.skipRearg[t])?U(e,s.methodRearg[t]||s.aryRearg[n]):e}function g(t,e){e=G(e);for(var n=-1,r=e.length,o=r-1,i=R(Object(t)),u=i;null!=u&&++n<r;){var a=e[n],c=u[a];null==c||N(c)||B(c)||F(c)||(u[a]=R(n==o?c:Object(c))),u=u[a]}return i}function b(t){return Z.runInContext.convert(t)(void 0)}function m(t,e){var n=s.aliasToReal[t]||t,r=s.remap[n]||n,o=p;return function(t){var i=j?A:I,u=j?A[r]:e,a=M(M({},o),t);return f(i,n,u,a)}}function _(t,e){return x(t,function(t){return"function"==typeof t?o(t,e):t})}function w(t,e){return x(t,function(t){var n=e.length;return r(U(o(t,n),e),n)})}function x(t,e){return function(){var n=arguments.length;if(!n)return t();for(var r=Array(n);n--;)r[n]=arguments[n];var o=k.rearg?0:n-1;return r[o]=e(r[o]),t.apply(void 0,r)}}function O(t,e,n){var r,o=s.aliasToReal[t]||t,a=e,f=H[o];return f?a=f(e):k.immutable&&(s.mutate.array[o]?a=c(e,i):s.mutate.object[o]?a=c(e,u(e)):s.mutate.set[o]&&(a=c(e,g))),D(K,function(t){return D(s.aryMethod[t],function(e){if(o==e){var n=s.methodSpread[o],i=n&&n.afterRearg;return r=i?y(o,v(o,a,t),t):v(o,y(o,a,t),t),r=d(o,r),r=h(o,r,t),!1}}),!r}),r||(r=a),r==e&&(r=E?W(r,1):function(){return e.apply(this,arguments)}),r.convert=m(o,e),r.placeholder=e.placeholder=n,r}var j="function"==typeof e,P=e===Object(e);if(P&&(p=n,n=e,e=void 0),null==n)throw new TypeError;p||(p={});var k={cap:!("cap"in p)||p.cap,curry:!("curry"in p)||p.curry,fixed:!("fixed"in p)||p.fixed,immutable:!("immutable"in p)||p.immutable,rearg:!("rearg"in p)||p.rearg},T=j?n:l,E="curry"in p&&p.curry,S="fixed"in p&&p.fixed,z="rearg"in p&&p.rearg,A=j?n.runInContext():void 0,I=j?n:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},C=I.ary,M=I.assign,R=I.clone,W=I.curry,D=I.forEach,L=I.isArray,B=I.isError,N=I.isFunction,F=I.isWeakMap,q=I.keys,U=I.rearg,$=I.toInteger,G=I.toPath,K=q(s.aryMethod),H={castArray:function(t){return function(){var e=arguments[0];return L(e)?t(i(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[0],n=arguments[1],r=t(e,n),i=r.length;return k.cap&&"number"==typeof n?(n=n>2?n-2:1,i&&i<=n?r:o(r,n)):r}},mixin:function(t){return function(e){var n=this;if(!N(n))return t(n,Object(e));var r=[];return D(q(e),function(t){N(e[t])&&r.push([t,n.prototype[t]])}),t(n,Object(e)),D(r,function(t){var e=t[1];N(e)?n.prototype[t[0]]=e:delete n.prototype[t[0]]}),n}},nthArg:function(t){return function(e){var n=e<0?1:$(e)+1;return W(t(e),n)}},rearg:function(t){return function(e,n){var r=n?n.length:0;return W(t(e,n),r)}},runInContext:function(e){return function(n){return f(t,e(n),p)}}};if(!P)return O(e,n,T);var Z=n,V=[];return D(K,function(t){D(s.aryMethod[t],function(t){var e=Z[s.remap[t]||t];e&&V.push([t,O(t,e,Z)])})}),D(q(Z),function(t){var e=Z[t];if("function"==typeof e){for(var n=V.length;n--;)if(V[n][0]==t)return;e.convert=m(t,e),V.push([t,e])}}),D(V,function(t){Z[t[0]]=t[1]}),Z.convert=b,Z.placeholder=Z,D(q(Z),function(t){D(s.realToAlias[t]||[],function(e){Z[e]=Z[t]})}),Z}var s=n(200),l=n(201),p=Array.prototype.push;t.exports=f},function(t,e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var o in n){var i=n[o];t.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},function(t,e){t.exports={}},function(t,e){t.exports=Morph.modules["bbc-morph-bitesize-global-navigation-view@1.54.1"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.HeaderImageContainer=void 0;var o=r(n(0)),i=(r(n(30)),r(n(204))),u=function(t){var e=t.children,n=t.fosZid,r=t.className,u=t.ariaHidden;return o.default.createElement("div",{className:(0,i.default)("header-image-container","header-image-container--".concat(n||"homepage"),r),"aria-hidden":u},o.default.createElement("div",{className:"header-image-container__wrap"},e))};e.HeaderImageContainer=u,u.defaultProps={className:"",fosZid:"",ariaHidden:!1};var a=u;e.default=a},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var u=n.apply(null,r);u&&t.push(u)}else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&t.push(a)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?(n.default=n,t.exports=n):(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){return(o="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(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function c(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?s(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(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&&p(t,e)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(5),n(6);var d=r(n(0)),h=(r(n(30)),r(n(93))),y=r(n(94)),v=r(n(224)),g={height:{desktop:40,mobile:32},width:{desktop:600}},b=function(t){function e(t){var n;return i(this,e),n=c(this,f(e).call(this,t)),n.state={isOrbVisible:!0,windowWidth:0,message:null},n.currentTimer=null,n.setOrbVisibilityState=n.setOrbVisibilityState.bind(s(n)),n.handleResize=n.handleResize.bind(s(n)),n.setMessage=n.setMessage.bind(s(n)),n.clearMessage=n.clearMessage.bind(s(n)),n}return l(e,t),a(e,[{key:"componentDidMount",value:function(){var t=this;this.handleResize(),this.setState({message:""}),window.addEventListener?(window.addEventListener("resize",this.handleResize),window.addEventListener("scroll",this.setOrbVisibilityState)):(window.attachEvent("scroll",this.setOrbVisibilityState),document.body.onresize=function(){return t.handleResize()})}},{key:"componentWillReceiveProps",value:function(t){this.setMessage(t.message,t.isError)}},{key:"componentWillUnmount",value:function(){window.removeEventListener?(window.removeEventListener("resize",this.handleResize),window.removeEventListener("scroll",this.setOrbVisibilityState)):(window.detachEvent("scroll",this.setOrbVisibilityState),document.body.onresize=function(){})}},{key:"setMessage",value:function(t,e){var n=this;this.setState({message:t,isError:e}),""!==t&&(window.clearTimeout(this.currentTimer),this.currentTimer=setTimeout(function(){n.clearMessage()},5e3))}},{key:"setOrbVisibilityState",value:function(){var t=this.state.windowWidth<g.width.desktop?g.height.mobile:g.height.desktop,e=window.scrollY||window.pageYOffset||document.documentElement.scrollTop,n=e<t;n!==this.state.isOrbVisible&&this.setState({isOrbVisible:n})}},{key:"clearMessage",value:function(){this.currentTimer&&(window.clearTimeout(this.currentTimer),this.currentTimer=null,this.setState({message:""}),this.props.notificationClearedAction())}},{key:"handleResize",value:function(){this.state.windowWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.setOrbVisibilityState()}},{key:"render",value:function(){if(!this.state.message)return null;var t=["bitesize__notification-bar"];return this.state.isOrbVisible&&t.push("bitesize__notification-orb-visible"),this.state.message&&t.push("bitesize__notification-active"),this.state.isError&&t.push("bitesize__notification-error"),d.default.createElement("div",{className:t.join(" ")},d.default.createElement("div",{className:"bitesize__notification-wrap"},d.default.createElement("div",{className:"bitesize__notification-bar__inner"},d.default.createElement("span",{className:"bitesize__notification-icon--error"},d.default.createElement(v.default,null)),d.default.createElement("p",{role:"alert","aria-live":"assertive",className:"bitesize__notification-text"},this.state.message),d.default.createElement("button",{className:"bitesize__notification-dismiss-button",type:"button",onClick:this.clearMessage},d.default.createElement("span",{className:"bitesize__notification-icon"},d.default.createElement(h.default,null)),d.default.createElement("span",{className:"bitesize__notification-icon--hover"},d.default.createElement(y.default,null))))))}}]),e}(d.default.Component);b.defaultProps={isError:null};var m=b;e.default=m,t.exports=e.default},function(t,e,n){var r=n(7),o=n(31),i=n(46),u=n(86),a=n(208),c=function(t,e,n){var f,s,l,p,d=t&c.F,h=t&c.G,y=t&c.S,v=t&c.P,g=t&c.B,b=h?r:y?r[e]||(r[e]={}):(r[e]||{}).prototype,m=h?o:o[e]||(o[e]={}),_=m.prototype||(m.prototype={});h&&(n=e);for(f in n)s=!d&&b&&void 0!==b[f],l=(s?b:n)[f],p=g&&s?a(l,r):v&&"function"==typeof l?a(Function.call,l):l,b&&u(b,f,l,t&c.U),m[f]!=l&&i(m,f,p),v&&_[f]!=l&&(_[f]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){t.exports=n(32)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(209);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(14)("meta"),o=n(15),i=n(13),u=n(11).f,a=0,c=Object.isExtensible||function(){return!0},f=!n(34)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";s(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;s(t)}return t[r].w},d=function(t){return f&&h.NEED&&c(t)&&!i(t,r)&&s(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(11).f,o=n(13),i=n(44)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(48),o=n(91),i=n(50);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,a=n(t),c=i.f,f=0;a.length>f;)c.call(t,u=a[f++])&&e.push(u);return e}},function(t,e,n){var r=n(88);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(16),o=n(216),i=n(217);t.exports=function(t){return function(e,n,u){var a,c=r(e),f=o(c.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(89),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(89),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(88);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(33),o=n(220),i=n(49),u=n(90)("IE_PROTO"),a=function(){},c=function(){var t,e=n(85)("iframe"),r=i.length;for(e.style.display="none",n(221).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[u]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(11),o=n(33),i=n(48);t.exports=n(12)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),a=u.length,c=0;a>c;)r.f(t,n=u[c++],e[n]);return t}},function(t,e,n){var r=n(7).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(16),o=n(92).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?a(t):o(r(t))}},function(t,e,n){var r=n(50),o=n(47),i=n(16),u=n(45),a=n(13),c=n(84),f=Object.getOwnPropertyDescriptor;e.f=n(12)?f:function(t,e){if(t=i(t),e=u(e,!0),c)try{return f(t,e)}catch(t){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(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&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(5),n(6);var p=function(t){return t&&t.__esModule?t:{default:t}}(n(0)),d=function(t){function e(){return o(this,e),a(this,f(e).apply(this,arguments))}return s(e,t),u(e,[{key:"componentDidMount",value:function(){this.node.setAttribute("focusable","false")}},{key:"render",value:function(){var t=this;return p.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"32px",height:"32px",viewBox:"0 0 32 32",enableBackground:"new 0 0 32 32",xmlSpace:"preserve",ref:function(e){t.node=e}},p.default.createElement("g",{id:"Grid"}),p.default.createElement("g",{id:"Layer_2"},p.default.createElement("g",null,p.default.createElement("path",{d:"M16,2L0,30h32L16,2z M18,27h-4v-4h4V27z M14,21V11h4v10H14z"}))))}}]),e}(p.default.Component),h=d;e.default=h,t.exports=e.default},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(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&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(5),n(6);var p=function(t){return t&&t.__esModule?t:{default:t}}(n(0)),d=function(t){function e(){return o(this,e),a(this,f(e).apply(this,arguments))}return s(e,t),u(e,[{key:"componentDidMount",value:function(){this.node.setAttribute("focusable","false")}},{key:"render",value:function(){var t=this;return p.default.createElement("svg",{className:"bitesize-add-svg",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",ref:function(e){t.node=e}},p.default.createElement("polygon",{points:"31.5,13.5 18.5,13.5 18.5,0.5 13.5,0.5 13.5,13.5 0.5,13.5 0.5,18.5 13.5,18.5 13.5,31.5 18.5,31.5 18.5,18.5 31.5,18.5"}))}}]),e}(p.default.Component),h=d;e.default=h,t.exports=e.default},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(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&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(5),n(6);var p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(0)),d=function(t){function e(){return o(this,e),a(this,f(e).apply(this,arguments))}return s(e,t),u(e,[{key:"componentDidMount",value:function(){this.svg.setAttribute("focusable","false")}},{key:"render",value:function(){var t=this;return p.default.createElement("svg",{className:"bitesize-yes-svg",version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"31.8px",height:"32px",viewBox:"0 0 31.8 32",enableBackground:"new 0 0 31.8 32",ref:function(e){t.svg=e}},p.default.createElement("polygon",{points:"12.8,28.9 31.8,6.3 28,3.1 12.2,21.9 3.2,14.4 0,18.2 \t"}))}}]),e}(p.Component),h=d;e.default=h,t.exports=e.default},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(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&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(5),n(6);var p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(0)),d=function(t){function e(){return o(this,e),a(this,f(e).apply(this,arguments))}return s(e,t),u(e,[{key:"componentDidMount",value:function(){this.svg.setAttribute("focusable","false")}},{key:"render",value:function(){var t=this;return p.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",ref:function(e){t.svg=e}},p.default.createElement("path",{d:"M32 3.5L28.5 0 16 12.5 3.5 0 0 3.5 12.5 16 0 28.5 3.5 32 16 19.5 28.5 32l3.5-3.5L19.5 16z"}))}}]),e}(p.Component),h=d;e.default=h,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){return(o="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(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function c(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?s(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(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&&p(t,e)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(5),n(6);var d=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(0)),h=(r(n(30)),r(n(93))),y=r(n(94)),v=r(n(95)),g=function(t){function e(t){var n;return i(this,e),n=c(this,f(e).call(this,t)),n.state={visible:!1},n.closeToolTip=n.closeToolTip.bind(s(n)),n.handleKeyPress=n.handleKeyPress.bind(s(n)),n.toggleToolTip=n.toggleToolTip.bind(s(n)),n}return l(e,t),a(e,[{key:"componentWillUnmount",value:function(){this.removeCloseEventListeners()}},{key:"setupCloseEventListeners",value:function(){document.addEventListener("keydown",this.handleKeyPress)}},{key:"removeCloseEventListeners",value:function(){document.removeEventListener("keydown",this.handleKeyPress)}},{key:"closeToolTip",value:function(){this.removeCloseEventListeners(),this.setState({visible:!1})}},{key:"handleKeyPress",value:function(t){"Escape"===t.key&&(this.removeCloseEventListeners(),this.setState({visible:!1}))}},{key:"toggleToolTip",value:function(){this.removeCloseEventListeners(),this.setupCloseEventListeners(),this.setState(function(t){return{visible:!t.visible}})}},{key:"render",value:function(){var t=this.state.visible,e=this.props.buttonContent;return d.default.createElement("div",null,t&&d.default.createElement("div",{className:"bitesize-tooltip-popup__background",onClick:this.closeToolTip,"aria-hidden":"true"}),d.default.createElement("div",{className:"bitesize-tooltip-popup__container"},d.default.createElement(v.default,{onClick:this.toggleToolTip},e),t&&d.default.createElement("div",{className:"bitesize-tooltip-popup__popup-box"},d.default.createElement("p",{className:"bitesize-tooltip-popup__title",aria:"assertive"},this.props.title),d.default.createElement("p",{className:"bitesize-tooltip-popup__text",aria:"assertive"},this.props.text),d.default.createElement("div",{className:"bitesize-tooltip-popup__cta-container"},this.props.body),d.default.createElement("button",{type:"button",className:"bitesize-tooltip-popup__closebutton",onClick:this.closeToolTip},d.default.createElement("span",{className:"bitesize-tooltip-popup__close-icon"},d.default.createElement(h.default,null)),d.default.createElement("span",{className:"bitesize-tooltip-popup__close-icon--hover"},d.default.createElement(y.default,null))))))}}]),e}(d.Component),b=g;e.default=b,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(80);var r=n(81),o=function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"blue",i="".concat((0,r.getIdHost)(),"/idcta/init?ptrt=").concat(n,"&lang=").concat(t,"&purpose=").concat(e,"&context=").concat("bitesize","&pathway=").concat("bitesize","&buttonSize=").concat("small","&buttonColour=").concat(o);return fetch(i).then(function(t){return t.json()})};e.default=o,t.exports=e.default},function(t,e,n){"use strict";function r(t){return(r="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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(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&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(5),n(6);var p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(0)),d=function(t){function e(){return o(this,e),a(this,f(e).apply(this,arguments))}return s(e,t),u(e,[{key:"componentDidMount",value:function(){this.svg.setAttribute("focusable","false")}},{key:"render",value:function(){var t=this;return p.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",ref:function(e){t.svg=e}},p.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"}))}}]),e}(p.Component),h=d;e.default=h,t.exports=e.default},function(t,e,n){"use strict";var r=n(1);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"CopyLinkBox",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Facebook",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Pinterest",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"SharePanel",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Twitter",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"WhatsApp",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Yummly",{enumerable:!0,get:function(){return s.default}});var o=r(n(232)),i=r(n(236)),u=r(n(238)),a=r(n(239)),c=r(n(242)),f=r(n(243)),s=r(n(244))},function(t,e,n){"use strict";var r=n(51),o=n(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(52)),u=o(n(53)),a=o(n(54)),c=o(n(55)),f=o(n(56)),s=r(n(0)),l=n(0).PropTypes||n(2),p=function(t){function e(t){var n;return(0,i.default)(this,e),n=(0,a.default)(this,(0,c.default)(e).call(this,t)),n.state={copied:!1},n}return(0,f.default)(e,t),(0,u.default)(e,[{key:"handleCopyUrl",value:function(){try{this.inputElement.select(),document.execCommand("copy"),this.setState({copied:!0})}catch(t){}}},{key:"render",value:function(){var t=this,e=this.props,n=e.copiedText,r=e.shareText,o=e.onClickCallback,i=e.link,u=e.position,a=this.state.copied;return s.default.createElement("div",{className:"ec-share-copy-link","data-bbc-container":"Share Tools","data-bbc-title":"Copy Link","data-bbc-metadata":JSON.stringify({CHD:"copy-link:: ".concat(u)})},s.default.createElement("label",{className:"ec-share-copy-link__text"},a?n:r),s.default.createElement("input",{className:"ec-share-copy-link__input",onClick:function(){o&&o(),t.handleCopyUrl()},readOnly:!0,ref:function(e){t.inputElement=e},type:"text",value:i}))}}]),e}(s.Component);p.defaultProps={shareText:"Copy and share link",copiedText:"Copied!"},p.propTypes={link:l.string.isRequired,copiedText:l.string,shareText:l.string,onClickCallback:l.func,position:l.number.isRequired};var d=p;e.default=d},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e,r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";function r(){}function o(){}var i=n(235);o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,u){if(u!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";var r=n(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(0)),i=n(17),u=r(n(18)),a=n(0).PropTypes||n(2),c=o.default.createElement("svg",{focusable:"false",viewBox:"0 0 32 32"},o.default.createElement("path",{d:"M12.1 32V17H8v-5.4h4.1V7c0-3.6 2.4-7 8-7 2.2 0 3.9.2 3.9.2l-.1 5.1h-3.6c-2 0-2.3.9-2.3 2.4v3.9h6l-.3 5.4H18v15h-5.9z"})),f=function(t){var e=t.caption,n=t.description,r=t.link,a=t.name,f=t.picture,s=t.standalone,l=t.onClickCallback,p=t.position;return o.default.createElement(u.default,{icon:c,name:"Facebook",standalone:s,onClick:function(){l&&l();var t="https://web.archive.org/web/20220121005457/https://www.facebook.com/dialog/feed?app_id=58567469885&redirect_uri=http%3A%2F%2Fwww.bbc.co.uk%2Fmodules%2Fshare%2Fclose&display=popup";n&&(t+="&description=".concat(encodeURIComponent(n))),e&&(t+="&caption=".concat(encodeURIComponent(e))),f&&(t+="&picture=".concat(encodeURIComponent(f))),a&&(t+="&name=".concat(encodeURIComponent(a))),t+="&link=".concat(encodeURIComponent(r)),(0,i.openWindow)(t)},position:p})};f.propTypes={link:a.string.isRequired,description:a.string,picture:a.string,name:a.string,caption:a.string,standalone:a.bool,onClickCallback:a.func,position:a.number.isRequired},f.defaultProps={standalone:!1};var s=f;e.default=s},function(t,e){function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r=n(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(0)),i=n(17),u=r(n(18)),a=n(0).PropTypes||n(2),c=o.default.createElement("svg",{focusable:"false",viewBox:"-3 -3 82 82"},o.default.createElement("path",{d:"M27.5 71c3.3 1 6.7 1.6 10.3 1.6C57 72.6 72.6 57 72.6 37.8 72.6 18.6 57 3 37.8 3 18.6 3 3 18.6 3 37.8c0 14.8 9.3 27.5 22.4 32.5-.3-2.7-.6-7.2 0-10.3l4-17.2s-1-2-1-5.2c0-4.8 3-8.4 6.4-8.4 3 0 4.4 2.2 4.4 5 0 3-2 7.3-3 11.4C35.6 49 38 52 41.5 52c6.2 0 11-6.6 11-16 0-8.3-6-14-14.6-14-9.8 0-15.6 7.3-15.6 15 0 3 1 6 2.6 8 .3.2.3.5.2 1l-1 3.8c0 .6-.4.8-1 .4-4.4-2-7-8.3-7-13.4 0-11 7.8-21 22.8-21 12 0 21.3 8.6 21.3 20 0 12-7.4 21.6-18 21.6-3.4 0-6.7-1.8-7.8-4L32 61.7c-.8 3-3 7-4.5 9.4z"})),f=function(t){var e=t.link,n=t.media,r=t.standalone,a=t.onClickCallback,f=t.position;return o.default.createElement(u.default,{icon:c,name:"Pinterest",standalone:r,onClick:function(){a&&a(),(0,i.openWindow)("".concat("https://web.archive.org/web/20220121005457/https://www.pinterest.com/pin/create/button","?url=").concat(e).concat(n?"&media=".concat(encodeURIComponent(n)):""))},position:f})};f.propTypes={link:a.string.isRequired,media:a.string,standalone:a.bool,onClickCallback:a.func,position:a.number.isRequired},f.defaultProps={standalone:!1};var s=f;e.default=s},function(t,e,n){"use strict";var r=n(51),o=n(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(52)),u=o(n(53)),a=o(n(54)),c=o(n(55)),f=o(n(97)),s=o(n(56)),l=r(n(0)),p=o(n(29)),d=o(n(240)),h=o(n(241)),y=n(0).PropTypes||n(2),v=function(t){return[].concat(t)},g=function(t){function e(t){var n;return(0,i.default)(this,e),n=(0,a.default)(this,(0,c.default)(e).call(this,t)),n.closeSharePanel=n.closeSharePanel.bind((0,f.default)(n)),n.handleFocusOut=n.handleFocusOut.bind((0,f.default)(n)),n.state={isOpen:!1},n}return(0,s.default)(e,t),(0,u.default)(e,[{key:"toggleSharePanel",value:function(t){this.setState({isOpen:!this.state.isOpen}),t.stopPropagation(),t.preventDefault()}},{key:"closeSharePanel",value:function(t){this.state.isOpen&&!this.sharePanel.contains(t.target)&&this.setState({isOpen:!1})}},{key:"handleFocusOut",value:function(t){this.closeSharePanel({target:t.relatedTarget||t.target})}},{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.closeSharePanel),document.addEventListener("touchstart",this.closeSharePanel),document.addEventListener("focusout",this.handleFocusOut)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.closeSharePanel),document.removeEventListener("touchstart",this.closeSharePanel),document.removeEventListener("focusout",this.handleFocusOut)}},{key:"render",value:function(){var t=this,e=this.props,n=e.className,r=e.children,o=e.ctaText,i=e.headerText,u=e.readMoreText,a=e.shareButtonComponent,c=e.onClickCallback;return l.default.createElement("div",{className:(0,p.default)("ec-share-tools",n),ref:function(e){t.sharePanel=e}},l.default.createElement(a,{className:"ec-share-tools__open-button",active:this.state.isOpen,onButtonClick:function(e){c&&c(),t.toggleSharePanel(e)},ctaText:o}),l.default.createElement("div",{className:(0,p.default)({"ec-share-panel":!0,"ec-share-panel--open":this.state.isOpen})},l.default.createElement("div",{className:"ec-share-panel__header"},l.default.createElement("span",{className:"ec-share-panel__header-text"},i),l.default.createElement(d.default,{onClick:function(e){return t.toggleSharePanel(e)}})),l.default.createElement("div",{className:"ec-share-panel__body"},l.default.createElement("ul",{className:"ec-share-panel__items"},v(r).map(function(t,e){return l.default.createElement("li",{key:e,className:"ec-share-panel__item"},t)}),l.default.createElement("li",{className:"ec-share-panel__item"},l.default.createElement("a",{className:"ec-share-panel__read-more-link",href:"https://web.archive.org/web/20220121005457/http://www.bbc.co.uk/faqs/questions/bbc_online/sharing"},u))))))}}]),e}(l.Component);g.defaultProps={children:[],ctaText:"Share",direction:"up",headerText:"Share this with",isOpen:!1,readMoreText:"Read more about sharing.",shareButtonComponent:h.default},g.propTypes={direction:y.string,children:y.node,className:y.string,ctaText:y.string,headerText:y.string,isOpen:y.bool,readMoreText:y.string,shareButtonComponent:y.func,onClickCallback:y.func};var b=g;e.default=b},function(t,e,n){"use strict";var r=n(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(0)),i=n(0).PropTypes||n(2),u=function(t){var e=t.onClick;return o.default.createElement("button",{className:"ec-share-panel__close-button",onClick:e},o.default.createElement("span",{className:"ec-share-panel__close-button-icon"},o.default.createElement("svg",{focusable:"false",viewBox:"0 0 32 32",width:"16",height:"16"},o.default.createElement("path",{d:"M32 3.5L28.5 0 16 12.5 3.5 0 0 3.5 12.5 16 0 28.5 3.5 32 16 19.5 28.5 32l3.5-3.5L19.5 16"}))))};u.propTypes={onClick:i.func.isRequired};var a=u;e.default=a},function(t,e,n){"use strict";var r=n(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(0)),i=r(n(29)),u=n(0).PropTypes||n(2),a=function(t){var e=t.children;return o.default.createElement("span",null,o.default.createElement("span",{className:"ec-share-icon__svg"},o.default.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 32 32"},o.default.createElement("path",{d:"M6.8 22.2c1.6 0 3-.7 4-1.8l9 4.8c-.1.4-.2.8-.2 1.3 0 3 2.5 5.5 5.5 5.5s5.5-2.4 5.5-5.5-2.5-5.5-5.5-5.5c-1.6 0-3 .7-4 1.8l-9.5-5.2-.1-2.8 9.7-5.5c1 1 2.3 1.5 3.8 1.5 3 0 5.5-2.5 5.5-5.5S28.2 0 25.2 0s-5.5 2.4-5.5 5.5c0 .6.1 1.1.2 1.6l-9.3 5.7c-1-.9-2.3-1.5-3.8-1.5-3 0-5.5 2.4-5.5 5.5.1 2.9 2.5 5.4 5.5 5.4z"}))),o.default.createElement("span",{className:"ec-share-cta-text"},e))};a.propTypes={children:u.node.isRequired};var c=function(t){var e=t.active,n=t.ctaText,r=t.onButtonClick;return o.default.createElement("button",{className:(0,i.default)({"ec-share-button":!0,"ec-share-button__share":!0,"ec-share-button__share--open":e}),onClick:r,"data-bbc-container":"Share Tools","data-bbc-title":"Share Icon"},o.default.createElement(a,null,n))};c.defaultProps={active:!1},c.propTypes={active:u.bool,ctaText:u.string.isRequired,onButtonClick:u.func.isRequired};var f=c;e.default=f},function(t,e,n){"use strict";var r=n(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(0)),i=n(17),u=r(n(18)),a=n(0).PropTypes||n(2),c=o.default.createElement("svg",{focusable:"false",viewBox:"0 0 32 32"},o.default.createElement("path",{d:"M32 6.1c-1.2.5-2.4.9-3.8 1 1.4-.8 2.4-2.1 2.9-3.6-1.3.8-2.7 1.3-4.2 1.6C25.7 3.8 24 3 22.2 3c-3.6 0-6.6 2.9-6.6 6.6 0 .5.1 1 .2 1.5-5.5-.3-10.3-2.9-13.6-6.9-.6 1-.9 2.1-.9 3.3 0 2.3 1.2 4.3 2.9 5.5-1.1 0-2.1-.3-3-.8v.1c0 3.2 2.3 5.8 5.3 6.4-.6.1-1.1.2-1.7.2-.4 0-.8 0-1.2-.1.8 2.6 3.3 4.5 6.1 4.6-2.2 1.8-5.1 2.8-8.2 2.8-.5 0-1.1 0-1.6-.1 3 1.8 6.5 2.9 10.2 2.9 12.1 0 18.7-10 18.7-18.7v-.9c1.2-.9 2.3-2 3.2-3.3z"})),f=function(t){var e=t.text,n=t.hashTags,r=t.link,a=t.via,f=t.standalone,s=t.onClickCallback,l=t.position;return o.default.createElement(u.default,{icon:c,name:"Twitter",standalone:f,onClick:function(){s&&s();var t="".concat("https://web.archive.org/web/20220121005457/https://twitter.com/intent/tweet","?url=").concat(r);e&&(t+="&text=".concat(encodeURIComponent(e))),n&&(t+="&hashtags=".concat(n.join(","))),a&&(t+="&via=".concat(a)),(0,i.openWindow)(t)},position:l})};f.propTypes={text:a.string,hashTags:a.arrayOf(a.string),link:a.string.isRequired,via:a.string,standalone:a.bool,onClickCallback:a.func,position:a.number.isRequired},f.defaultProps={standalone:!1};var s=f;e.default=s},function(t,e,n){"use strict";var r=n(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(0)),i=n(17),u=r(n(18)),a=n(0).PropTypes||n(2),c=o.default.createElement("svg",{focusable:"false",viewBox:"0 0 24 24"},o.default.createElement("path",{d:"M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"})),f=function(t){var e=t.link,n=t.via,r=t.standalone,a=t.onClickCallback,f=t.position;return o.default.createElement(u.default,{icon:c,name:"WhatsApp",standalone:r,onClick:function(){a&&a();var t="".concat(window.innerWidth<=600?"https://web.archive.org/web/20220121005457/https://api.whatsapp.com/send":"https://web.archive.org/web/20220121005457/https://web.whatsapp.com/send","?text=").concat(encodeURIComponent(e));n&&(t+="&via=".concat(encodeURIComponent("".concat(n)))),(0,i.openWindow)(t)},position:f})};f.propTypes={link:a.string.isRequired,via:a.string,standalone:a.bool,onClickCallback:a.func,position:a.number.isRequired},f.defaultProps={standalone:!1};var s=f;e.default=s},function(t,e,n){"use strict";var r=n(1);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(0)),i=n(17),u=r(n(18)),a=n(0).PropTypes||n(2),c=o.default.createElement("svg",{focusable:"false",viewBox:"-3 0 29 29"},o.default.createElement("path",{d:"m23.55,22c0,-0.2 -0.2,-0.3 -0.3,-0.3c-0.3,-0.1 -0.5,0 -1.3,-0.4c-0.6,-0.3 -3.5,-1.7 -7.5,-2.1l2.9,-16.4c0.1,-0.7 0.1,-1.3 -0.1,-1.7c-0.3,-0.6 -1.1,-0.7 -1.9,-0.6c-0.7,0.1 -1.2,0.3 -1.3,0.4s-0.2,0.2 -0.2,0.4c0,0.3 0.3,0.6 0.1,1.7c0,0.3 -1,5.5 -1.8,10c-2.1,1.3 -4.9,1.9 -5.5,1.1c-0.3,-0.4 -0.2,-1.1 0.1,-2.2c0.1,-0.2 1.3,-4.9 1.6,-6.3c0.7,-2.6 0.2,-4.9 -2.5,-5.2c-2.3,-0.2 -4.5,1.1 -5.2,1.9c-0.5,0.5 -0.3,1.1 0.1,1.9c0.3,0.6 0.8,1 0.9,1c0.1,0.1 0.3,0.1 0.4,0c0.8,-0.9 2.2,-1.5 2.7,-1.1c0.4,0.4 0.3,1 0.1,1.7c0,0 -1.5,5.6 -2.1,8c-0.4,1.7 0,3.3 1.3,4.1c0.9,0.6 2.3,0.5 3.4,0.4c2.4,-0.3 3.8,-1.3 4,-1.5c-0.3,1.5 -0.4,2.5 -0.4,2.5s-2.7,0.2 -4.9,1.6c-2.9,1.7 -4.1,5.7 -2.2,7.8c1.9,2.1 5.1,1.3 6.5,0.4c1.3,-0.9 2.9,-2.7 3.7,-6.8c4.4,0.2 5.5,2.5 7.4,2.6c1.2,-0.2 2.1,-1.5 2,-2.9zm-15,4c-0.6,0.4 -1.3,0.4 -1.7,0c-0.4,-0.5 -0.5,-3.1 3.6,-3.8c0,-0.1 -0.7,3 -1.9,3.8z",id:"svg_8"})),f=function(t){var e=t.link,n=t.title,r=t.image,a=t.standalone,f=t.onClickCallback,s=t.position;return o.default.createElement(u.default,{icon:c,name:"Yummly",standalone:a,onClick:function(){f&&f();var t="".concat("https://web.archive.org/web/20220121005457/http://www.yummly.com/urb/verify","?url=").concat(encodeURIComponent(e));n&&(t+="&title=".concat(encodeURIComponent("".concat(n)))),r&&(t+="&image=".concat(encodeURIComponent("".concat(r)))),(0,i.openWindow)(t)},position:s})};f.propTypes={link:a.string.isRequired,title:a.string,image:a.string,standalone:a.bool,onClickCallback:a.func,position:a.number.isRequired},f.defaultProps={standalone:!1};var s=f;e.default=s},function(t,e,n){"use strict";function r(t,e){return u(t)||i(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function i(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}function u(t){if(Array.isArray(t))return t}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){c(t,e,n[e])})}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}var p={primary:{universal:"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-universal-primary.js",geography:"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-primary-geography.js","english-lit":"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-primary-english-lit.js","english-lang":"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-primary-english-lang.js",language:"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-primary-language.js",maths:"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-primary-maths.js",science:"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-primary-science.js"},secondary:{universal:"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-universal-secondary.js",geography:"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-secondary-geography.js","english-lit":"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-secondary-english-lit.js","english-lang":"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-secondary-english-lang.js",language:"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-secondary-language.js",maths:"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-secondary-maths.js",science:"https://web.archive.org/web/20220121005457/https://bitesize.files.bbci.co.uk/scripts/sparks/v2/sparks-secondary-science.js"}},d={zt3rkqt:"english-lang",z2f3cdm:"geography",zkxhfg8:"language",z426n39:"language",zc7xpv4:"language",z86pyrd:"language",zrqmhyc:"language",z9mtsbk:"language",zjpfb9q:"language",z9frq6f:"language",z3cr9j6:"language",zqnygk7:"language",z8rdtfr:"english-lit",zhbc87h:"english-lit",zy9d7ty:"english-lit",z6vg9j6:"maths",z37qtfr:"maths",z7nygk7:"science",z2svr82:"science",zmf3cdm:"science",zxyb4wx:"science"},h=function(t){return d[t]?d[t]:null},y=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,t);var o={opacity:1,opacityTransition:.5,scale:1};this.config=a({},o,n),this.svg=e.cloneNode(!0);var i=this.svg.getAttribute("viewBox").split(" "),u=r(i,4),c=u[2],s=u[3];this.baseWidth=c,this.baseHeight=s,this.opacity=this.config.opacity,this.opacityTransition=this.config.opacityTransition,this.scale=this.config.scale,this.svg.setAttribute("focusable","false"),this.hide()}return l(t,[{key:"hasPosition",value:function(){return!!this.config.position}},{key:"show",value:function(){this.svg.style.display="block",this.svg.style.opacity=this.opacity}},{key:"fadeIn",value:function(){var t=this;requestAnimationFrame(function(){t.svg.style.display="block",requestAnimationFrame(function(){t.svg.style.opacity=t.opacity})})}},{key:"hide",value:function(){this.svg.style.display="none",this.svg.style.opacity=0}},{key:"opacity",get:function(){return this.config.opacity},set:function(t){this.config.opacity=t,this.svg.style.opacity=t}},{key:"opacityTransition",get:function(){return this.config.opacityTransition},set:function(t){this.config.opacityTransition=t,this.svg.style.transitionDuration="".concat(t,"s")}},{key:"position",get:function(){return this.config.position},set:function(t){var e=r(t,2),n=e[0],o=e[1],i="string"==typeof n?n:"".concat(n.toString(),"px"),u="string"==typeof o?o:"".concat(o.toString(),"px");this.config.position=[i,u],this.svg.style.left="".concat(n,"px"),this.svg.style.top="".concat(o,"px")}},{key:"scale",get:function(){return this.config.scale},set:function(t){this.config.scale=t,this.svg.style.width="".concat(this.baseWidth*t,"px"),this.svg.style.height="".concat(this.baseHeight*t,"px")}}]),t}(),v=function(t){return t%2==0},g=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},b=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=[],n=0;n<t;n++)e.push(n);return e},m=function(){function t(e,n){f(this,t),this.parentElement=e,this.sparkSource=n,this.sparks=[]}return l(t,[{key:"getRandomSpark",value:function(){return this.sparkSource[g(0,this.sparkSource.length-1)]}},{key:"addSparkStylesheet",value:function(){if(!document.getElementById("spark-styles")){var t=document.createElement("style");t.id="spark-styles",t.textContent="\n .bitesize-spark-background {\n z-index: -1;\n overflow: hidden;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .bitesize-spark {\n display: none;\n opacity: 0;\n position: absolute;\n transition-property: opacity;\n transition-timing-function: ease-in;\n }\n ",document.head.appendChild(t)}}},{key:"initialize",value:function(){var t=document.createElement("div");t.classList.add("bitesize-spark-background");for(var e=0;e<100;e++){var n=this.getRandomSpark(),r=new y(n,{opacityTransition:g(200,500)/1e3,scale:g(25,75)/100});this.sparks[e]=r}this.sparks.forEach(function(e){return t.appendChild(e.svg)});var o=window.getComputedStyle(this.parentElement),i=o.backgroundColor,u=o.backgroundImage,a=o.backgroundPosition,c=o.backgroundSize,f=o.backgroundRepeat;t.style.backgroundColor=i,t.style.backgroundImage=u,t.style.backgroundPosition=a,t.style.backgroundSize=c,t.style.backgroundRepeat=f,this.addSparkStylesheet(),this.parentElement.appendChild(t),this.parentElement.style.background="none"}},{key:"distribute",value:function(){var t=this;if(window.matchMedia("(max-width: 600px)").matches)return void this.hideAllSparks();var e={horizontalSlots:Math.floor(this.parentElement.clientWidth/128),verticalSlots:Math.floor(this.parentElement.clientHeight/64)},n=b(e.horizontalSlots),r=b(e.verticalSlots);n.map(function(t){return r}).map(function(t,e){return t.filter(function(t){return v(t)===v(e)})}).map(function(t,e){return t.map(function(t){return{xCoordinate:e,yCoordinate:t}})}).reduce(function(t,e){return t.concat(e)},[]).forEach(function(e,n){var r=e.xCoordinate,o=e.yCoordinate,i=t.sparks[n];if(!i.hasPosition()){var u=128*r+g(-32,32)+64+16,a=64*o+g(-32,32)+32;i.position=[u,a]}i.fadeIn()})}},{key:"hideAllSparks",value:function(){this.sparks.forEach(function(t){return t.hide()})}}]),t}(),_=function(t){return"secondary"===t||"post-16"===t?"secondary":"primary"},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"primary",e=arguments.length>1?arguments[1]:void 0,n=e?"".concat(t,"-").concat(e):t,r="#bitesize-sparks-".concat(n," > svg");return document.querySelectorAll(r)},x=function(t){t.initialize(),t.distribute(),window.addEventListener("resize",function(){t.distribute()})};window.mrSparkle=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.zid?h(t.zid):null,n=document.querySelector(t.selector);if(null!==n){var r=_(t.phase),o=w(r,e);if(o.length){var i=new m(n,o);x(i)}else{var u=p[r][e||"universal"];window.require([u],function(){o=w(r,e);var t=new m(n,o);x(t)})}}}},function(t,e){t.exports={create:function(t,e){return Morph.createContainerWithCaller("bbc-morph-bitesize-header-view@8.125.0",t,e)}}},function(t,e,n){function r(t,e,n){t=a(t),e=i(e);var r=t.length;n=void 0===n?r:o(u(n),0,r);var c=n;return(n-=e.length)>=0&&t.slice(n,c)==e}var o=n(248),i=n(75),u=n(41),a=n(74);t.exports=r},function(t,e){function n(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}t.exports=n}]); //# sourceMappingURL=bundle.js.map; });</script><script>Morph.toInit.payloads.push(function() { Morph.setPayload('/data/bbc-morph-bitesize-header-data/pageType/programme-of-study/version/1.31.0/yearId/undefined/zid/zvc9q6f', {"meta":{"responseCode":200,"errorMessage":null,"headers":{"content-type":"application\/json"}},"body":{"label":"KS3 Computer Science","fosZid":"zft3d2p","description":" ","zid":"zvc9q6f","levelLabel":"KS3","levelId":"z4kw2hv","posId":null,"posLabel":null,"stubs":[]}}); });</script><script>Morph.toInit.payloads.push(function() { Morph.setPayload('/data/bbc-morph-bitesize-level/version/3.2.0', {"meta":{"responseCode":200,"errorMessage":null,"headers":{"content-type":"application\/json"}},"body":[{"id":"zggh6g8","type":"keyStage","label":"An Tràth Ìre","description":"Tha An Tràth Ìre na ceum ann an Curraicealam airson Sàr-mhathais ann an Alba, mar as trice do chlann aois 3 gu 6 bliadhna.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":3,"upperAge":6,"phase":"Primary"},{"id":"z4js6v4","type":"keyStage","label":"Cyfnod Sylfaen","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"zmvg9j6","type":"nation","label":"Wales"}],"lowerAge":3,"upperAge":7,"phase":"Primary"},{"id":"zf7hgwx","type":"keyStage","label":"Early level","description":"Early Level is a stage of Scotland’s Curriculum for Excellence, usually for children aged 3 to 6 years in Pre-School or Primary 1.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":3,"upperAge":6,"phase":"Primary"},{"id":"znyh7nb","type":"keyStage","label":"Foundation Stage","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"z6bc87h","type":"nation","label":"Northern Ireland"}],"lowerAge":3,"upperAge":5,"phase":"Primary"},{"id":"z3g4d2p","type":"keyStage","label":"KS1","description":"Key Stage 1 is a phase of primary education for pupils aged 5 to 7 in England.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"z2yb4wx","type":"nation","label":"England"}],"lowerAge":5,"upperAge":7,"phase":"Primary"},{"id":"zjpqqp3","type":"year","label":"Year 1","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/dca5a133-822b-48bf-b826-588c8dfea9c0#id","nations":null,"lowerAge":5,"upperAge":6,"phase":null},{"id":"zxybmsg","type":"keyStage","label":"Foundation Phase","description":"Foundation Phase is the statutory curriculum for primary school pupils aged 3 to 7 in Wales.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"zmvg9j6","type":"nation","label":"Wales"}],"lowerAge":3,"upperAge":7,"phase":"Primary"},{"id":"zcwyp4j","type":"keyStage","label":"KS1","description":"Key Stage 1 is a phase of primary education for pupils aged 6 to 8 in Northern Ireland.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"z6bc87h","type":"nation","label":"Northern Ireland"}],"lowerAge":6,"upperAge":8,"phase":"Primary"},{"id":"z7s22sg","type":"year","label":"Year 2","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/dca5a133-822b-48bf-b826-588c8dfea9c0#id","nations":null,"lowerAge":6,"upperAge":7,"phase":null},{"id":"zmyxxyc","type":"year","label":"Year 3","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/d19e064d-ef25-45f2-beb7-c26bea320261#id","nations":null,"lowerAge":7,"upperAge":8,"phase":null},{"id":"zgckjxs","type":"keyStage","label":"1st level","description":"First Level is a stage of Scotland’s Curriculum for Excellence, usually for children aged 5 to 9 years in Primary 2, Primary 3 and Primary 4.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":5,"upperAge":9,"phase":"Primary"},{"id":"zk3xy9q","type":"keyStage","label":"A' Chiad Ìre","description":"Tha a’ Chiad Ìre na ceum ann an Curraicealam airson Sàr-mhathais ann an Alba, mar as trice do chlann eadar 5 agus 9 bliadhna ann an Clas 2, Clas 3 agus Clas 4.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":5,"upperAge":9,"phase":"Primary"},{"id":"zjmj92p","type":"keyStage","label":"KS2","description":"Key Stage 2 is a phase of primary education for pupils aged 8 to 11 in Northern Ireland.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"z6bc87h","type":"nation","label":"Northern Ireland"}],"lowerAge":8,"upperAge":11,"phase":"Primary"},{"id":"z63tt39","type":"year","label":"Year 4","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/d19e064d-ef25-45f2-beb7-c26bea320261#id","nations":null,"lowerAge":8,"upperAge":9,"phase":null},{"id":"zhgppg8","type":"year","label":"Year 5","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/d19e064d-ef25-45f2-beb7-c26bea320261#id","nations":null,"lowerAge":9,"upperAge":10,"phase":null},{"id":"zvbc87h","type":"phase","label":"Primary","description":" ","subLevelOf":"","nations":null,"lowerAge":3,"upperAge":11,"phase":null},{"id":"zbpwt39","type":"keyStage","label":"CA2","description":"Mae Cyfnod Allweddol 2 yn rhan o addysg gynradd ar gyfer disgyblion oed 7 i 11 yng Nghymru.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"zmvg9j6","type":"nation","label":"Wales"}],"lowerAge":7,"upperAge":11,"phase":"Primary"},{"id":"zbr9wmn","type":"keyStage","label":"KS2","description":"Key Stage 2 is a phase of primary education for pupils aged 7 to 11 in England and Wales.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"z2yb4wx","type":"nation","label":"England"},{"id":"zmvg9j6","type":"nation","label":"Wales"}],"lowerAge":7,"upperAge":11,"phase":"Primary"},{"id":"zncsscw","type":"year","label":"Year 6","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/d19e064d-ef25-45f2-beb7-c26bea320261#id","nations":null,"lowerAge":10,"upperAge":11,"phase":null},{"id":"zr48q6f","type":"keyStage","label":"2nd level","description":"Second Level is a phase of primary education in Scotland, generally for pupils aged 9 to 12.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":9,"upperAge":12,"phase":"Primary"},{"id":"z4y2scw","type":"keyStage","label":"An Dàrna Ìre","description":"Tha an Dàrna Ìre na ceum ann an Curraicealam airson Sàr-mhathais ann an Alba, mar as trice do chlann eadar 8 agus 12 bliadhna Clas 5, Clas 6 agus Clas 7.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/675a7ea0-5a75-41db-b0cb-f3124b80afa3#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":9,"upperAge":12,"phase":"Primary"},{"id":"zy4qn39","type":"keyStage","label":"3rd level","description":"Third Level is a phase of education in Scotland, generally for pupils aged 11 to 15, in their first three years of secondary school.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":11,"upperAge":15,"phase":"Secondary"},{"id":"zvk2fg8","type":"keyStage","label":"4th level","description":"Fourth Level is a phase of education in Scotland, generally for pupils aged 11 to 15, in their first three years of secondary school.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":11,"upperAge":15,"phase":"Secondary"},{"id":"zh6vr82","type":"keyStage","label":"CA3","description":"Mae Cyfnod Allweddol 3 yn cynrychioli’r tair blynedd cyntaf yn addysg ysgolion uwchradd Cymru, ar gyfer disgyblion 11-14 blwydd oed.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"zmvg9j6","type":"nation","label":"Wales"}],"lowerAge":11,"upperAge":14,"phase":"Secondary"},{"id":"z4kw2hv","type":"keyStage","label":"KS3","description":"Key Stage 3 is the first three years of secondary school education in England, Wales and Northern Ireland, for pupils aged 11 to 14.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"z2yb4wx","type":"nation","label":"England"},{"id":"z6bc87h","type":"nation","label":"Northern Ireland"},{"id":"zmvg9j6","type":"nation","label":"Wales"}],"lowerAge":11,"upperAge":14,"phase":"Secondary"},{"id":"zqxy8mn","type":"keyStage","label":"CBC","description":"Mae Bagloriaeth Cymru (CBC) yn galluogi dysgwyr i ddeall a datblygu sgiliau hanfodol a chyflogadwyedd. Mae'n darparu cyfleoedd asesu mewn sefyllfaoedd bywyd go iawn, trwy gyfrwng tair her a phroject unigol.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"zmvg9j6","type":"nation","label":"Wales"}],"lowerAge":14,"upperAge":16,"phase":"Secondary"},{"id":"z98jmp3","type":"keyStage","label":"GCSE","description":"GCSE is the qualification taken by 15 and 16 year olds to mark their graduation from the Key Stage 4 phase of secondary education in England, Northern Ireland and Wales.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"z2yb4wx","type":"nation","label":"England"},{"id":"z6bc87h","type":"nation","label":"Northern Ireland"},{"id":"zmvg9j6","type":"nation","label":"Wales"}],"lowerAge":14,"upperAge":16,"phase":"Secondary"},{"id":"z8hhvcw","type":"keyStage","label":"Nàiseanta 4","description":"'S e teisteanas do sgoilearan ann an Alba, a tha sa bhitheantas air a ghabhail aig ceann shuas na h-àrd-sgoile, a th' ann an Ìre Nàiseanta 4.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":14,"upperAge":17,"phase":"Secondary"},{"id":"zdpp34j","type":"keyStage","label":"Nàiseanta 5","description":"'S e teisteanas do sgoilearan ann an Alba, a tha sa bhitheantas air a ghabhail aig ceann shuas na h-àrd-sgoile, a th' ann an Ìre Nàiseanta 5.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":14,"upperAge":17,"phase":"Secondary"},{"id":"zp3d7ty","type":"keyStage","label":"National 4","description":"National 4 is a qualification taken by students in Scotland, generally during their secondary senior phase of education.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":14,"upperAge":17,"phase":"Secondary"},{"id":"z6gw2hv","type":"keyStage","label":"National 5","description":"National 5 is a qualification taken by students in Scotland, generally during their secondary senior phase of education.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":14,"upperAge":17,"phase":"Secondary"},{"id":"z8w76sg","type":"keyStage","label":"TGAU","description":"Cymhwyster ar gyfer disgyblion 15 -16 blwydd oed yw TGAU. Mae’r cymhwyster yn dangos bod disgyblion wedi llwyddo i gwblhau Cyfnod Allweddol 4 yn ystod eu haddysg uwchradd yng Nghymru.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"zmvg9j6","type":"nation","label":"Wales"}],"lowerAge":14,"upperAge":16,"phase":"Secondary"},{"id":"z9wtgdm","type":"keyStage","label":"WBQ","description":"The Welsh Baccalaureate (WBQ) is a qualification that helps learners to understand and develop essential and employability skills. It provides opportunities for assessment in real-life contexts through three challenge briefs and an individual project.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"zmvg9j6","type":"nation","label":"Wales"}],"lowerAge":14,"upperAge":16,"phase":"Secondary"},{"id":"zyw87hv","type":"year","label":"Year 10","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/0c035f05-4827-45f0-a2c7-7d714e2e4cb3#id","nations":[{"id":"z2yb4wx","type":"nation","label":"England"}],"lowerAge":14,"upperAge":15,"phase":null},{"id":"zghtfrd","type":"year","label":"Year 10","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/458f336d-6c5c-4a97-bd28-89fbd30575df#id","nations":[{"id":"zmvg9j6","type":"nation","label":"Wales"}],"lowerAge":14,"upperAge":15,"phase":null},{"id":"z8vyrdm","type":"year","label":"Year 11","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/0c035f05-4827-45f0-a2c7-7d714e2e4cb3#id","nations":[{"id":"z6bc87h","type":"nation","label":"Northern Ireland"}],"lowerAge":14,"upperAge":15,"phase":null},{"id":"z37jxsg","type":"year","label":"Year 11","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/0c035f05-4827-45f0-a2c7-7d714e2e4cb3#id","nations":[{"id":"z2yb4wx","type":"nation","label":"England"}],"lowerAge":15,"upperAge":16,"phase":null},{"id":"zcnpv4j","type":"year","label":"Year 11","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/458f336d-6c5c-4a97-bd28-89fbd30575df#id","nations":[{"id":"zmvg9j6","type":"nation","label":"Wales"}],"lowerAge":15,"upperAge":16,"phase":null},{"id":"z9fsbk7","type":"year","label":"Year 12","description":" ","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/0c035f05-4827-45f0-a2c7-7d714e2e4cb3#id","nations":[{"id":"z6bc87h","type":"nation","label":"Northern Ireland"}],"lowerAge":15,"upperAge":16,"phase":null},{"id":"zc9d7ty","type":"phase","label":"Secondary","description":" ","subLevelOf":"","nations":null,"lowerAge":11,"upperAge":18,"phase":null},{"id":"zqq4wxs","type":"keyStage","label":"Àrd Ìre","description":"'S e deuchainnean do sgoilearan ann an Alba a tha aig aois an sgoil fhàgail agus teisteanas inntrigidh oilthigh a th’ anns an Àrd Ìre.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":15,"upperAge":18,"phase":"Secondary"},{"id":"zkdqxnb","type":"keyStage","label":"Higher","description":"Highers are national school-leaving certificate exams and university entrance qualifications taken by 16 to 18 year olds in Scotland.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/bbc739e2-2a3c-4490-a7f1-219d5e819315#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":15,"upperAge":18,"phase":"Secondary"},{"id":"z66jhbk","type":"keyStage","label":"Core Skills","description":"Core Skills qualifications teach post-16 and adult learners in Scotland how to apply practical Maths and English skills to real-life and vocational contexts.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/1b1bee12-6352-4b4a-81e1-632035945230#id","nations":[{"id":"zx3rkqt","type":"nation","label":"Scotland"}],"lowerAge":16,"upperAge":100,"phase":"Post-16"},{"id":"zhh7nrd","type":"keyStage","label":"Essential Skills","description":"Essential Skills qualifications teach post-16 and adult learners in Wales how to apply practical Maths and English skills to real-life and vocational contexts.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/1b1bee12-6352-4b4a-81e1-632035945230#id","nations":[{"id":"zmvg9j6","type":"nation","label":"Wales"}],"lowerAge":16,"upperAge":100,"phase":"Post-16"},{"id":"zvhtng8","type":"keyStage","label":"Functional Skills","description":"Functional Skills qualifications teach post-16 and adult learners in England how to apply practical Maths and English skills to real-life and vocational contexts.","subLevelOf":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/things\/1b1bee12-6352-4b4a-81e1-632035945230#id","nations":[{"id":"z2yb4wx","type":"nation","label":"England"}],"lowerAge":16,"upperAge":100,"phase":"Post-16"},{"id":"zfxmtv4","type":"phase","label":"Post-16","description":" ","subLevelOf":"","nations":null,"lowerAge":16,"upperAge":100,"phase":null}]}); });</script><script>Morph.toInit.registers.push(function() { Morph.register({"view":"bbc-morph-bitesize-header-view","pageType":"programme-of-study","zid":"zvc9q6f","globalNav":"true","partOf":"true","subdirectory":"bitesize","branding":"phase2","language":"en-GB","version":"8.125.0","_mrrVersion":"2.2.1"},'u8505836438109107'); });</script><script>Morph.init = function() { if (!Morph.initCalled) { Morph.markPerformance('morph-init'); Morph.initCalled = true; requirejs.config({ paths: { 'morph/react' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-react/1.0.0/react.min', 'morph/react-dom' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-react-dom/1.0.0/react-dom.min', 'morph/es5-shim' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-shim.min', 'morph/es5-sham' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-sham.min', 'morph/module/morph': '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/morph/5.3.1/bundle', 'live-push' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/morph-push-proxy-client/1.0.13/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(); } /* u8505836438109107 */</script><script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-bitesize-sign-in-banner-view@0.11.0"]={"@babel/core":"7.11.6","@babel/plugin-transform-object-assign":"7.10.4","@babel/runtime":"7.11.2","@bbc/bitesize-branding":"10.2.0","@bbc/education-sign-in-banner":"0.6.0","bbc-morph-bitesize-personalisation-client-tools":"11.9.1",classnames:"2.2.6",react:"0.14.7","react-dom":"0.14.7","react-motion":"0.4.8","whatwg-fetch":"2.0.3"},function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){Morph.modules["bbc-morph-bitesize-sign-in-banner-view@0.11.0"]=n(1)},function(t,e,n){t.exports=n(2)},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},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=0)}([function(t,e,n){"use strict";function r(t){var e=o();return function(){var n,r=(0,d.default)(t);if(e){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.default)(this,n)}}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}var i=n(1),a=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=a(n(3)),c=a(n(4)),s=a(n(5)),f=a(n(6)),l=a(n(7)),p=a(n(8)),d=a(n(9)),h=a(n(10)),y=i(n(11)),v=a(n(12)),m=a(n(13)),g=a(n(14)),b=a(n(15)),w=a(n(16)),x=["homepage","programme-of-study","super-programme-of-study","topic-of-study","examspecs","exam-boards","primary-level"],_=function(t){return(0,v.default)("sign-in-banner__container",(0,h.default)({},"sign-in-banner__container--".concat(t),x.includes(t)))},E=function(t){return"homepage"===t?"/bitesize/my":null},O=function(t){function e(t){var r;return(0,s.default)(this,e),r=n.call(this,t),r.state={displaySignInBanner:!1,env:""},r}(0,l.default)(e,t);var n=r(e);return(0,f.default)(e,[{key:"componentDidMount",value:function(){function t(){return e.apply(this,arguments)}var e=(0,c.default)(u.default.mark(function t(){var e,n,r;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g.default.getDetails();case 2:e=t.sent,n=e.isSignedIn,n||(r=w.default.get(),this.setState({displaySignInBanner:!0,env:r}));case 5:case"end":return t.stop()}},t,this)}));return t}()},{key:"render",value:function(){var t=this.props,e=t.language,n=t.contextName,r=this.state,o=r.displaySignInBanner,i=r.env,a=_(n),u=E(n);return o&&y.default.createElement("div",{className:a},y.default.createElement(m.default,{language:e,env:i,contextName:"bitesize-homepage",idctaConfig:b.default,pageToReturnTo:u}))}}]),e}(y.Component);O.propTypes={language:y.PropTypes.string,contextName:y.PropTypes.string},O.defaultProps={language:"en-GB",contextName:null};var S=O;e.default=S,t.exports=e.default},function(t,e){t.exports=n(3)},function(t,e){t.exports=n(5)},function(t,e){t.exports=n(6)},function(t,e){t.exports=n(8)},function(t,e){t.exports=n(9)},function(t,e){t.exports=n(10)},function(t,e){t.exports=n(11)},function(t,e){t.exports=n(13)},function(t,e){t.exports=n(15)},function(t,e){t.exports=n(16)},function(t,e){t.exports=n(17)},function(t,e){t.exports=n(18)},function(t,e){t.exports=n(19)},function(t,e){t.exports=n(39)},function(t,e){t.exports=n(46)},function(t,e,n){"use strict";t.exports={get:function(){return window.Morph.config.pushEnv}}}])},function(t,e,n){function r(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return r=function(){return t},t}function o(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var e=r();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var u=o?Object.getOwnPropertyDescriptor(t,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=t[a]}return n.default=t,e&&e.set(t,n),n}var i=n(4);t.exports=o},function(t,e){function n(e){"@babel/helpers - typeof";return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}t.exports=n},function(t,e,n){t.exports=n(7)},function(t,e,n){var r=function(t){"use strict";function e(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}function n(t,e,n,r){var i=e&&e.prototype instanceof o?e:o,a=Object.create(i.prototype),u=new d(r||[]);return a._invoke=s(t,n,u),a}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function a(){}function u(t){["next","throw","return"].forEach(function(n){e(t,n,function(t){return this._invoke(n,t)})})}function c(t,e){function n(o,i,a,u){var c=r(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&g.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,u)},function(t){n("throw",t,a,u)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,u)})}u(c.arg)}function o(t,r){function o(){return new e(function(e,o){n(t,r,e,o)})}return i=i?i.then(o,o):o()}var i;this._invoke=o}function s(t,e,n){var o=E;return function(i,a){if(o===S)throw new Error("Generator is already running");if(o===j){if("throw"===i)throw a;return y()}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=f(u,n);if(c){if(c===T)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===E)throw o=j,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=S;var s=r(t,e,n);if("normal"===s.type){if(o=n.done?j:O,s.arg===T)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=j,n.method="throw",n.arg=s.arg)}}}function f(t,e){var n=t.iterator[e.method];if(n===v){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=v,f(t,e),"throw"===e.method))return T;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var o=r(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,T;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=v),e.delegate=null,T):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,T)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function h(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(g.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=v,e.done=!0,e};return r.next=r}}return{next:y}}function y(){return{value:v,done:!0}}var v,m=Object.prototype,g=m.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},w=b.iterator||"@@iterator",x=b.asyncIterator||"@@asyncIterator",_=b.toStringTag||"@@toStringTag";try{e({},"")}catch(t){e=function(t,e,n){return t[e]=n}}t.wrap=n;var E="suspendedStart",O="suspendedYield",S="executing",j="completed",T={},P={};P[w]=function(){return this};var k=Object.getPrototypeOf,A=k&&k(k(h([])));A&&A!==m&&g.call(A,w)&&(P=A);var C=a.prototype=o.prototype=Object.create(P);return i.prototype=C.constructor=a,a.constructor=i,i.displayName=e(a,_,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,e(t,_,"GeneratorFunction")),t.prototype=Object.create(C),t},t.awrap=function(t){return{__await:t}},u(c.prototype),c.prototype[x]=function(){return this},t.AsyncIterator=c,t.async=function(e,r,o,i,a){void 0===a&&(a=Promise);var u=new c(n(e,r,o,i),a);return t.isGeneratorFunction(r)?u:u.next().then(function(t){return t.done?t.value:u.next()})},u(C),e(C,_,"Generator"),C[w]=function(){return this},C.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=h,d.prototype={constructor:d,reset:function(t){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(p),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=v)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,r&&(n.method="next",n.arg=v),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=g.call(o,"catchLoc"),u=g.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,T):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),T},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),p(n),T}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:h(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=v),T}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){function n(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise(function(o,i){function a(t){n(c,o,i,a,u,"next",t)}function u(t){n(c,o,i,a,u,"throw",t)}var c=t.apply(e,r);a(void 0)})}}t.exports=r},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 r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}t.exports=r},function(t,e,n){function r(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&&o(t,e)}var o=n(12);t.exports=r},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,r)}t.exports=n},function(t,e,n){function r(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?i(t):e}var o=n(4),i=n(14);t.exports=r},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){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){function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t.exports=n},function(t,e){t.exports=React},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&t.push(a)}else if("object"===o)for(var u in r)i.call(r,u)&&r[u]&&t.push(u)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?(n.default=n,t.exports=n):(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){"use strict";var r=n(5);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(20)),i=o.default;e.default=i},function(t,e,n){"use strict";var r=n(3),o=n(5);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(6)),a=o(n(8)),u=o(n(9)),c=o(n(10)),s=o(n(13)),f=o(n(15)),l=o(n(11)),p=r(n(17)),d=o(n(21)),h=o(n(32)),y=o(n(37)),v=o(n(38)),m=n(17).PropTypes||n(22),g=function(t){function e(t,n){var r;return(0,u.default)(this,e),r=(0,s.default)(this,(0,f.default)(e).call(this,t,n)),r.idctaRef=null,r.state={idctaInnerHtml:null},r.setIdctaBannerRef=function(t){r.idctaRef=t},r}return(0,l.default)(e,t),(0,c.default)(e,[{key:"componentDidMount",value:function(){function t(){return e.apply(this,arguments)}var e=(0,a.default)(i.default.mark(function t(){var e,n,r,o,a,u,c,s,f;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.props,n=e.env,r=e.language,o=e.idctaConfig,a=e.size,u=e.pageToReturnTo,t.prev=1,t.next=4,h.default.fetchIdctaData({env:n,language:r,idctaConfig:o,size:a,pageToReturnTo:u});case 4:c=t.sent,s=c.inlineHead,f=c.html,document.head.insertAdjacentHTML("beforeend",s),this.setState({idctaInnerHtml:f}),t.next=13;break;case 11:t.prev=11,t.t0=t.catch(1);case 13:case"end":return t.stop()}},t,this,[[1,11]])}));return t}()},{key:"componentDidUpdate",value:function(){this.state.idctaInnerHtml&&(0,v.default)(this.idctaRef,this.props.customAtiAttribs)}},{key:"render",value:function(){var t=this.props,e=t.showHeading,n=t.showSubheading,r=t.language,o=this.state.idctaInnerHtml;return p.default.createElement(d.default,{heading:e?(0,y.default)(r,"heading"):null,subheading:n?(0,y.default)(r,"subheading"):null,idctaInnerHtml:o,setBannerRef:this.setIdctaBannerRef})}}]),e}(p.Component);g.propTypes={language:m.string,env:m.string,size:m.string,showHeading:m.bool,showSubheading:m.bool,pageToReturnTo:m.string,idctaConfig:m.shape({checkFlagpole:m.func,purpose:m.string,buttonColour:m.string}),customAtiAttribs:m.arrayOf(m.shape({attribute:m.string.isRequired,value:m.string}))},g.defaultProps={language:"en-GB",env:"test",size:"small",showHeading:!0,showSubheading:!0,pageToReturnTo:null,idctaConfig:null,customAtiAttribs:null};var b=g;e.default=b},function(t,e,n){"use strict";var r=n(5);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(17)),i=n(17).PropTypes||n(22),a=function(t){var e=t.heading,n=t.subheading,r=t.idctaInnerHtml,i=t.setBannerRef;return r?o.default.createElement("aside",{className:"ec-sign-in-banner--light-grey-container"},e&&o.default.createElement("p",{className:"ec-sign-in-banner__heading"},e),n&&o.default.createElement("p",{className:"ec-sign-in-banner__subheading"},n),o.default.createElement("div",{ref:i,className:"ec-sign-in-banner__idcta-external-component",dangerouslySetInnerHTML:{__html:r}})):o.default.createElement("noscript",null)};a.propTypes={heading:i.string,subheading:i.string,idctaInnerHtml:i.string,setBannerRef:i.any},a.defaultProps={heading:"",subheading:"",idctaInnerHtml:""};var u=a;e.default=u},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var r=n(24);t.exports=n(27)(r.isElement,!0)}else t.exports=n(31)()}).call(e,n(23))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function a(){y&&d&&(y=!1,d.length?h=d.concat(h):v=-1,h.length&&u())}function u(){if(!y){var t=o(a);y=!0;for(var e=h.length;e;){for(d=h,h=[];++v<e;)d&&d[v].run();v=-1,e=h.length}d=null,y=!1,i(t)}}function c(t,e){this.fun=t,this.array=e}function s(){}var f,l,p=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(t){f=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var d,h=[],y=!1,v=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new c(t,e)),1!==h.length||y||o(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=s,p.addListener=s,p.once=s,p.off=s,p.removeListener=s,p.removeAllListeners=s,p.emit=s,p.prependListener=s,p.prependOnceListener=s,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e,n){(function(e){"use strict";"production"===e.env.NODE_ENV?t.exports=n(25):t.exports=n(26)}).call(e,n(23))},function(t,e){"use strict";function n(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case p:case d:case u:case s:case c:case y:return t;default:switch(t=t&&t.$$typeof){case l:case h:case g:case m:case f:return t;default:return e}}case a:return e}}}function r(t){return n(t)===d}var o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,f=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,y=o?Symbol.for("react.suspense"):60113,v=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,w=o?Symbol.for("react.fundamental"):60117,x=o?Symbol.for("react.responder"):60118,_=o?Symbol.for("react.scope"):60119;e.AsyncMode=p,e.ConcurrentMode=d,e.ContextConsumer=l,e.ContextProvider=f,e.Element=i,e.ForwardRef=h,e.Fragment=u,e.Lazy=g,e.Memo=m,e.Portal=a,e.Profiler=s,e.StrictMode=c,e.Suspense=y,e.isAsyncMode=function(t){return r(t)||n(t)===p},e.isConcurrentMode=r,e.isContextConsumer=function(t){return n(t)===l},e.isContextProvider=function(t){return n(t)===f},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return n(t)===h},e.isFragment=function(t){return n(t)===u},e.isLazy=function(t){return n(t)===g},e.isMemo=function(t){return n(t)===m},e.isPortal=function(t){return n(t)===a},e.isProfiler=function(t){return n(t)===s},e.isStrictMode=function(t){return n(t)===c},e.isSuspense=function(t){return n(t)===y},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===u||t===d||t===s||t===c||t===y||t===v||"object"==typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===m||t.$$typeof===f||t.$$typeof===l||t.$$typeof===h||t.$$typeof===w||t.$$typeof===x||t.$$typeof===_||t.$$typeof===b)},e.typeOf=n},function(t,e,n){(function(t){"use strict";"production"!==t.env.NODE_ENV&&function(){function t(t){return"string"==typeof t||"function"==typeof t||t===b||t===S||t===x||t===w||t===T||t===P||"object"==typeof t&&null!==t&&(t.$$typeof===A||t.$$typeof===k||t.$$typeof===_||t.$$typeof===E||t.$$typeof===j||t.$$typeof===I||t.$$typeof===R||t.$$typeof===N||t.$$typeof===C)}function n(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case m:var n=t.type;switch(n){case O:case S:case b:case x:case w:case T:return n;default:var r=n&&n.$$typeof;switch(r){case E:case j:case A:case k:case _:return r;default:return e}}case g:return e}}}function r(t){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),o(t)||n(t)===O}function o(t){return n(t)===S}function i(t){return n(t)===E}function a(t){return n(t)===_}function u(t){return"object"==typeof t&&null!==t&&t.$$typeof===m}function c(t){return n(t)===j}function s(t){return n(t)===b}function f(t){return n(t)===A}function l(t){return n(t)===k}function p(t){return n(t)===g}function d(t){return n(t)===x}function h(t){return n(t)===w}function y(t){return n(t)===T}var v="function"==typeof Symbol&&Symbol.for,m=v?Symbol.for("react.element"):60103,g=v?Symbol.for("react.portal"):60106,b=v?Symbol.for("react.fragment"):60107,w=v?Symbol.for("react.strict_mode"):60108,x=v?Symbol.for("react.profiler"):60114,_=v?Symbol.for("react.provider"):60109,E=v?Symbol.for("react.context"):60110,O=v?Symbol.for("react.async_mode"):60111,S=v?Symbol.for("react.concurrent_mode"):60111,j=v?Symbol.for("react.forward_ref"):60112,T=v?Symbol.for("react.suspense"):60113,P=v?Symbol.for("react.suspense_list"):60120,k=v?Symbol.for("react.memo"):60115,A=v?Symbol.for("react.lazy"):60116,C=v?Symbol.for("react.block"):60121,I=v?Symbol.for("react.fundamental"):60117,R=v?Symbol.for("react.responder"):60118,N=v?Symbol.for("react.scope"):60119,$=O,L=S,M=E,z=_,F=m,B=j,D=b,q=A,V=k,H=g,G=x,W=w,U=T,Y=!1;e.AsyncMode=$,e.ConcurrentMode=L,e.ContextConsumer=M,e.ContextProvider=z,e.Element=F,e.ForwardRef=B,e.Fragment=D,e.Lazy=q,e.Memo=V,e.Portal=H,e.Profiler=G,e.StrictMode=W,e.Suspense=U,e.isAsyncMode=r,e.isConcurrentMode=o,e.isContextConsumer=i,e.isContextProvider=a,e.isElement=u,e.isForwardRef=c,e.isFragment=s,e.isLazy=f,e.isMemo=l,e.isPortal=p,e.isProfiler=d,e.isStrictMode=h,e.isSuspense=y,e.isValidElementType=t,e.typeOf=n}()}).call(e,n(23))},function(t,e,n){(function(e){"use strict";function r(){return null}var o=n(24),i=n(28),a=n(29),u=n(30),c=Function.call.bind(Object.prototype.hasOwnProperty),s=function(){};"production"!==e.env.NODE_ENV&&(s=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),t.exports=function(t,n){function f(t){var e=t&&(P&&t[P]||t[k]);if("function"==typeof e)return e}function l(t,e){return t===e?0!==t||1/t==1/e:t!==t&&e!==e}function p(t){this.message=t,this.stack=""}function d(t){function r(r,u,c,f,l,d,h){if(f=f||A,d=d||c,h!==a){if(n){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!==e.env.NODE_ENV&&"undefined"!=typeof console){var v=f+":"+c;!o[v]&&i<3&&(s("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+f+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),o[v]=!0,i++)}}return null==u[c]?r?new p(null===u[c]?"The "+l+" `"+d+"` is marked as required in `"+f+"`, but its value is `null`.":"The "+l+" `"+d+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:t(u,c,f,l,d)}if("production"!==e.env.NODE_ENV)var o={},i=0;var u=r.bind(null,!1);return u.isRequired=r.bind(null,!0),u}function h(t){function e(e,n,r,o,i,a){var u=e[n];if(O(u)!==t)return new p("Invalid "+o+" `"+i+"` of type `"+S(u)+"` supplied to `"+r+"`, expected `"+t+"`.");return null}return d(e)}function y(t){function e(e,n,r,o,i){if("function"!=typeof t)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=e[n];if(!Array.isArray(u)){return new p("Invalid "+o+" `"+i+"` of type `"+O(u)+"` supplied to `"+r+"`, expected an array.")}for(var c=0;c<u.length;c++){var s=t(u,c,r,o,i+"["+c+"]",a);if(s instanceof Error)return s}return null}return d(e)}function v(t){function e(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||A;return new p("Invalid "+o+" `"+i+"` of type `"+T(e[n])+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null}return d(e)}function m(t){function n(e,n,r,o,i){for(var a=e[n],u=0;u<t.length;u++)if(l(a,t[u]))return null;var c=JSON.stringify(t,function(t,e){return"symbol"===S(e)?String(e):e});return new p("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")}return Array.isArray(t)?d(n):("production"!==e.env.NODE_ENV&&s(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),r)}function g(t){function e(e,n,r,o,i){if("function"!=typeof t)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=e[n],s=O(u);if("object"!==s)return new p("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var f in u)if(c(u,f)){var l=t(u,f,r,o,i+"."+f,a);if(l instanceof Error)return l}return null}return d(e)}function b(t){function n(e,n,r,o,i){for(var u=0;u<t.length;u++){if(null==(0,t[u])(e,n,r,o,i,a))return null}return new p("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&s("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var o=0;o<t.length;o++){var i=t[o];if("function"!=typeof i)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+j(i)+" at index "+o+"."),r}return d(n)}function w(t){function e(e,n,r,o,i){var u=e[n],c=O(u);if("object"!==c)return new p("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var s in t){var f=t[s];if(f){var l=f(u,s,r,o,i+"."+s,a);if(l)return l}}return null}return d(e)}function x(t){function e(e,n,r,o,u){var c=e[n],s=O(c);if("object"!==s)return new p("Invalid "+o+" `"+u+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");var f=i({},e[n],t);for(var l in f){var d=t[l];if(!d)return new p("Invalid "+o+" `"+u+"` key `"+l+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var h=d(c,l,r,o,u+"."+l,a);if(h)return h}return null}return d(e)}function _(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(_);if(null===e||t(e))return!0;var n=f(e);if(!n)return!1;var r,o=n.call(e);if(n!==e.entries){for(;!(r=o.next()).done;)if(!_(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!_(i[1]))return!1}return!0;default:return!1}}function E(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function O(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":E(e,t)?"symbol":e}function S(t){if(void 0===t||null===t)return""+t;var e=O(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function j(t){var e=S(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function T(t){return t.constructor&&t.constructor.name?t.constructor.name:A}var P="function"==typeof Symbol&&Symbol.iterator,k="@@iterator",A="<<anonymous>>",C={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:function(){return d(r)}(),arrayOf:y,element:function(){function e(e,n,r,o,i){var a=e[n];if(!t(a)){return new p("Invalid "+o+" `"+i+"` of type `"+O(a)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return d(e)}(),elementType:function(){function t(t,e,n,r,i){var a=t[e];if(!o.isValidElementType(a)){return new p("Invalid "+r+" `"+i+"` of type `"+O(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")}return null}return d(t)}(),instanceOf:v,node:function(){function t(t,e,n,r,o){return _(t[e])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return d(t)}(),objectOf:g,oneOf:m,oneOfType:b,shape:w,exact:x};return p.prototype=Error.prototype,C.checkPropTypes=u,C.resetWarningCache=u.resetWarningCache,C.PropTypes=C,C}}).call(e,n(23))},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var a,u,c=n(t),s=1;s<arguments.length;s++){a=Object(arguments[s]);for(var f in a)o.call(a,f)&&(c[f]=a[f]);if(r){u=r(a);for(var l=0;l<u.length;l++)i.call(a,u[l])&&(c[u[l]]=a[u[l]])}}return c}},function(t,e){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){(function(e){"use strict";function r(t,n,r,c,s){if("production"!==e.env.NODE_ENV)for(var f in t)if(u(t,f)){var l;try{if("function"!=typeof t[f]){var p=Error((c||"React class")+": "+r+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[f]+"`.");throw p.name="Invariant Violation",p}l=t[f](n,f,c,r,null,i)}catch(t){l=t}if(!l||l instanceof Error||o((c||"React class")+": type specification of "+r+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in a)){a[l.message]=!0;var d=s?s():"";o("Failed "+r+" type: "+l.message+(null!=d?d:""))}}}var o=function(){};if("production"!==e.env.NODE_ENV){var i=n(29),a={},u=Function.call.bind(Object.prototype.hasOwnProperty);o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}r.resetWarningCache=function(){"production"!==e.env.NODE_ENV&&(a={})},t.exports=r}).call(e,n(23))},function(t,e,n){"use strict" ;function r(){}function o(){}var i=n(29);o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,a){if(a!==i){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(t,e,n){"use strict";var r=n(5);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(6)),i=r(n(8));n(33);var a=r(n(34)),u=r(n(37)),c=function(){return window.location.pathname},s=function(t){return/^\/.*/.test(t)?t:"/".concat(t)},f=function(t){return t?s(t):c()},l=function(t){var e=f(t);return(0,a.default)(e).href},p=function(t){return Object.keys(t).filter(function(e){return t[e]}).map(function(e){return"".concat(e,"=").concat(t[e])}).join("&")},d=function(t){var e=t.env,n=t.language,r=t.size,o=t.pageToReturnTo,i=t.idctaConfig,a="live"===e?"":".".concat(e),c=void 0!==i.purpose?i.purpose:(0,u.default)(n,"bitesizeCTA"),s=i.buttonColour||"blue",f=l(o),d="live"===e?"BITESIZE":"BITESIZE_TEST",h={lang:n,locale:n,purpose:c,context:"BITESIZE",ptrt:f,pathway:"BITESIZE",buttonSize:r,userOrigin:d,buttonColour:s},y=p(h);return"https://idcta".concat(a,".api.bbc.co.uk/idcta/init?").concat(y)},h=function(){var t=(0,i.default)(o.default.mark(function t(e){var n,r,i,a,u,c,s,f;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.env,r=e.language,i=e.idctaConfig,a=e.size,u=e.pageToReturnTo,t.next=3,i.checkFlagpole();case 3:return c=d({env:n,language:r,size:a,pageToReturnTo:u,idctaConfig:i}),t.next=6,window.fetch(c);case 6:if(s=t.sent,s.ok){t.next=12;break}throw f="HTTP Error: ".concat(s.status," - ").concat(s.statusText),new Error(f);case 12:return t.abrupt("return",s.json());case 13:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),y={fetchIdctaData:h};e.default=y},function(t,e){t.exports=Morph.modules["whatwg-fetch@2.0.3"]},function(t,e,n){(function(e){"use strict";function r(t){return(t||"").toString().replace(h,"")}function o(t){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};var r=n.location||{};t=t||r;var o,i={},a=typeof t;if("blob:"===t.protocol)i=new u(unescape(t.pathname),{});else if("string"===a){i=new u(t,{});for(o in v)delete i[o]}else if("object"===a){for(o in t)o in v||(i[o]=t[o]);void 0===i.slashes&&(i.slashes=p.test(t.href))}return i}function i(t){t=r(t);var e=d.exec(t);return{protocol:e[1]?e[1].toLowerCase():"",slashes:!!e[2],rest:e[3]}}function a(t,e){if(""===t)return e;for(var n=(e||"/").split("/").slice(0,-1).concat(t.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}function u(t,e,n){if(t=r(t),!(this instanceof u))return new u(t,e,n);var c,s,p,d,h,v,m=y.slice(),g=typeof e,b=this,w=0;for("object"!==g&&"string"!==g&&(n=e,e=null),n&&"function"!=typeof n&&(n=l.parse),e=o(e),s=i(t||""),c=!s.protocol&&!s.slashes,b.slashes=s.slashes||c&&e.slashes,b.protocol=s.protocol||e.protocol||"",t=s.rest,s.slashes||(m[3]=[/(.*)/,"pathname"]);w<m.length;w++)d=m[w],"function"!=typeof d?(p=d[0],v=d[1],p!==p?b[v]=t:"string"==typeof p?~(h=t.indexOf(p))&&("number"==typeof d[2]?(b[v]=t.slice(0,h),t=t.slice(h+d[2])):(b[v]=t.slice(h),t=t.slice(0,h))):(h=p.exec(t))&&(b[v]=h[1],t=t.slice(0,h.index)),b[v]=b[v]||(c&&d[3]?e[v]||"":""),d[4]&&(b[v]=b[v].toLowerCase())):t=d(t);n&&(b.query=n(b.query)),c&&e.slashes&&"/"!==b.pathname.charAt(0)&&(""!==b.pathname||""!==e.pathname)&&(b.pathname=a(b.pathname,e.pathname)),f(b.port,b.protocol)||(b.host=b.hostname,b.port=""),b.username=b.password="",b.auth&&(d=b.auth.split(":"),b.username=d[0]||"",b.password=d[1]||""),b.origin=b.protocol&&b.host&&"file:"!==b.protocol?b.protocol+"//"+b.host:"null",b.href=b.toString()}function c(t,e,n){var r=this;switch(t){case"query":"string"==typeof e&&e.length&&(e=(n||l.parse)(e)),r[t]=e;break;case"port":r[t]=e,f(e,r.protocol)?e&&(r.host=r.hostname+":"+e):(r.host=r.hostname,r[t]="");break;case"hostname":r[t]=e,r.port&&(e+=":"+r.port),r.host=e;break;case"host":r[t]=e,/:\d+$/.test(e)?(e=e.split(":"),r.port=e.pop(),r.hostname=e.join(":")):(r.hostname=e,r.port="");break;case"protocol":r.protocol=e.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(e){var o="pathname"===t?"/":"#";r[t]=e.charAt(0)!==o?o+e:e}else r[t]=e;break;default:r[t]=e}for(var i=0;i<y.length;i++){var a=y[i];a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.origin=r.protocol&&r.host&&"file:"!==r.protocol?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function s(t){t&&"function"==typeof t||(t=l.stringify);var e,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var o=r+(n.slashes?"//":"");return n.username&&(o+=n.username,n.password&&(o+=":"+n.password),o+="@"),o+=n.host+n.pathname,e="object"==typeof n.query?t(n.query):n.query,e&&(o+="?"!==e.charAt(0)?"?"+e:e),n.hash&&(o+=n.hash),o}var f=n(35),l=n(36),p=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,d=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,h=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+"),y=[["#","hash"],["?","query"],function(t){return t.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],v={hash:1,query:1};u.prototype={set:c,toString:s},u.extractProtocol=i,u.location=o,u.trimLeft=r,u.qs=l,t.exports=u}).call(e,function(){return this}())},function(t,e){"use strict";t.exports=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},function(t,e){"use strict";function n(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function r(t){try{return encodeURIComponent(t)}catch(t){return null}}function o(t){for(var e,r=/([^=?#&]+)=?([^&]*)/g,o={};e=r.exec(t);){var i=n(e[1]),a=n(e[2]);null===i||null===a||i in o||(o[i]=a)}return o}function i(t,e){e=e||"";var n,o,i=[];"string"!=typeof e&&(e="?");for(o in t)if(u.call(t,o)){if(n=t[o],n||null!==n&&n!==a&&!isNaN(n)||(n=""),o=r(o),n=r(n),null===o||null===n)continue;i.push(o+"="+n)}return i.length?e+i.join("&"):""}var a,u=Object.prototype.hasOwnProperty;e.stringify=i,e.parse=o},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={"en-GB":{heading:"Sign in, save time",subheading:"We’ll remember what you’ve looked at so you can jump back in.",bitesizeCTA:"personalise your Bitesize now."},"cy-GB":{heading:"Mewngofnoda i arbed amser",subheading:"Byddwn ni’n cofio beth wyt ti eisoes wedi ei weld er mwyn i ti allu dychwelyd heb drafferth.",bitesizeCTA:"bersonoleiddio dy Bitesize."},"ga-GB":{heading:"Sínigh isteach, sábháil am",subheading:"Cuimhneoidh muid ar an mhéid a d'amharc tú air le go dtig leat léim isteach arís.",bitesizeCTA:"le do Bitesize a phearsantú láithreach."},"gd-GB":{heading:"Soidhnig a-steach, sàbhail ùine",subheading:"Cuimhnichidh sinn air na rudan ris na choimhead thu gus am faigh thu air leum a-steach a-rithist.",bitesizeCTA:"gus Bitesize a phearsanachadh an-dràsta."}},r=function(t,e){return n[n[t]?t:"en-GB"][e]||""};e.default=r},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=[{attribute:"data-bbc-container",value:"Sign in cta banner"},{attribute:"data-bbc-source",value:"BBC Bitesize"}],r=[].concat(n,[{attribute:"data-bbc-title",value:"Sign_In"}]),o=[].concat(n,[{attribute:"data-bbc-title",value:"Register"}]),i=function(t,e,n){t.forEach(function(t){var r=t.attribute,o=t.value;e.querySelector(n).setAttribute(r,o)})},a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t&&(i(r,t,".id4-cta-signin"),i(o,t,".id4-cta-register"),e&&(i(e,t,".id4-cta-signin"),i(e,t,".id4-cta-register")))},u=a;e.default=u},function(t,e,n){"use strict";var r=n(40);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(41)),i=r(n(46)),a=function(){return window.Promise||(window.Promise=o.default),new window.Promise(function(t,e){requirejs(["idcta-v2/idcta-1","orb/cookies"],function(e,n){t({idcta:e,cookiesLib:n})},function(t){e(t)})})},u={isSignedIn:!1},c=function(){return a().then(function(t){var e=t.idcta,n=t.cookiesLib,r=n.readPolicy();return e.hasCookie()?i.default.checkFlagpole().then(function(){return e.initiateTokenRefresh().then(function(){var t=e.getUserDetailsFromCookie();return{isSignedIn:!0,isUnderThirteen:"u13"===t.ab,hasPersonalisationEnabled:t.ep,displayName:t.dn,personalisationCookiesEnabled:r.personalisation}}).catch(function(t){return u})}):u})},s={getDetails:c};e.default=s,t.exports=e.default},function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}t.exports=n},function(t,e,n){var r=n(42).Promise;t.exports=r},function(t,e,n){var r;(function(t,o,i){(function(){"use strict";function a(t){return"function"==typeof t||"object"==typeof t&&null!==t}function u(t){return"function"==typeof t}function c(t){W=t}function s(t){J=t}function f(){return function(){G(p)}}function l(){return function(){setTimeout(p,1)}}function p(){for(var t=0;t<Z;t+=2){(0,nt[t])(nt[t+1]),nt[t]=void 0,nt[t+1]=void 0}Z=0}function d(t,e){var n=this,r=new this.constructor(y);void 0===r[it]&&N(r);var o=n._state;if(o){var i=arguments[o-1];J(function(){C(o,r,i,n._result)})}else T(n,r,t,e);return r}function h(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(y);return E(n,t),n}function y(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function m(){return new TypeError("A promises callback cannot return that same promise.")}function g(t){try{return t.then}catch(t){return st.error=t,st}}function b(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function w(t,e,n){J(function(t){var r=!1,o=b(n,e,function(n){r||(r=!0,e!==n?E(t,n):S(t,n))},function(e){r||(r=!0,j(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,j(t,o))},t)}function x(t,e){e._state===ut?S(t,e._result):e._state===ct?j(t,e._result):T(e,void 0,function(e){E(t,e)},function(e){j(t,e)})}function _(t,e,n){e.constructor===t.constructor&&n===rt&&constructor.resolve===ot?x(t,e):n===st?j(t,st.error):void 0===n?S(t,e):u(n)?w(t,e,n):S(t,e)}function E(t,e){t===e?j(t,v()):a(e)?_(t,e,g(e)):S(t,e)}function O(t){t._onerror&&t._onerror(t._result),P(t)}function S(t,e){t._state===at&&(t._result=e,t._state=ut,0!==t._subscribers.length&&J(P,t))}function j(t,e){t._state===at&&(t._state=ct,t._result=e,J(O,t))}function T(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+ut]=n,o[i+ct]=r,0===i&&t._state&&J(P,t)}function P(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?C(n,r,o,i):o(i);t._subscribers.length=0}}function k(){this.error=null}function A(t,e){try{return t(e)}catch(t){return ft.error=t,ft}}function C(t,e,n,r){var o,i,a,c,s=u(n);if(s){if(o=A(n,r),o===ft?(c=!0,i=o.error,o=null):a=!0,e===o)return void j(e,m())}else o=r,a=!0;e._state!==at||(s&&a?E(e,o):c?j(e,i):t===ut?S(e,o):t===ct&&j(e,o))}function I(t,e){try{e(function(e){E(t,e)},function(e){j(t,e)})}catch(e){j(t,e)}}function R(){return lt++}function N(t){t[it]=lt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function $(t){return new vt(this,t).promise}function L(t){var e=this;return new e(Y(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){e(new TypeError("You must pass an array to race."))})}function M(t){var e=this,n=new e(y);return j(n,t),n}function z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function F(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function B(t){this[it]=R(),this._result=this._state=void 0,this._subscribers=[],y!==t&&("function"!=typeof t&&z(),this instanceof B?I(this,t):F())}function D(t,e){this._instanceConstructor=t,this.promise=new t(y),this.promise[it]||N(this.promise),Y(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&S(this.promise,this._result))):j(this.promise,q())}function q(){return new Error("Array Methods must be provided an Array")}function V(){var t;if(void 0!==o)t=o;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;e&&"[object Promise]"===Object.prototype.toString.call(e.resolve())&&!e.cast||(t.Promise=yt)}var H;H=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var G,W,U,Y=H,Z=0,J=function(t,e){nt[Z]=t,nt[Z+1]=e,2===(Z+=2)&&(W?W(p):U())},K="undefined"!=typeof window?window:void 0,Q=K||{},X=Q.MutationObserver||Q.WebKitMutationObserver,tt="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),et="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,nt=new Array(1e3);U=tt?function(){return function(){t.nextTick(p)}}():X?function(){var t=0,e=new X(p),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}():et?function(){var t=new MessageChannel;return t.port1.onmessage=p,function(){t.port2.postMessage(0)}}():void 0===K?function(){try{var t=n(44);return G=t.runOnLoop||t.runOnContext,f()}catch(t){return l()}}():l();var rt=d,ot=h,it=Math.random().toString(36).substring(16),at=void 0,ut=1,ct=2,st=new k,ft=new k,lt=0,pt=$,dt=L,ht=M,yt=B;B.all=pt,B.race=dt,B.resolve=ot,B.reject=ht,B._setScheduler=c,B._setAsap=s,B._asap=J,B.prototype={constructor:B,then:rt,catch:function(t){return this.then(null,t)}};var vt=D;D.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===at&&n<t;n++)this._eachEntry(e[n],n)},D.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===ot){var o=g(t);if(o===rt&&t._state!==at)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===yt){var i=new n(y);_(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n(function(e){e(t)}),e)}else this._willSettleAt(r(t),e)},D.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===at&&(this._remaining--,t===ct?j(r,n):this._result[e]=n),0===this._remaining&&S(r,this._result)},D.prototype._willSettleAt=function(t,e){var n=this;T(t,void 0,function(t){n._settledAt(ut,e,t)},function(t){n._settledAt(ct,e,t)})};var mt=V,gt={Promise:yt,polyfill:mt};n(45).amd?void 0!==(r=function(){return gt}.call(e,n,e,i))&&(i.exports=r):void 0!==i&&i.exports?i.exports=gt:void 0!==this&&(this.ES6Promise=gt),mt()}).call(this)}).call(e,n(23),function(){return this}(),n(43)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e,n){"use strict";var r=n(40);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(41)),i=function(){return window.Promise||(window.Promise=o.default),new window.Promise(function(t,e){requirejs(["idcta-v2/id-config"],function(n){n.getConfigAsync().then(function(n){n["id-availability"]&&"RED"!==n["id-availability"]?t():e(new Error("Flagpole RED or value missing"))})},function(t){e(t)})})},a={checkFlagpole:i};e.default=a,t.exports=e.default}]);; });</script><script>Morph.toInit.registers.push(function() { Morph.register({"view":"bbc-morph-bitesize-sign-in-banner-view","contextName":"programme-of-study","language":"en-GB","version":"0.11.0","_mrrVersion":"2.2.1"},'u5211958471397782'); });</script><script>Morph.init = function() { if (!Morph.initCalled) { Morph.markPerformance('morph-init'); Morph.initCalled = true; requirejs.config({ paths: { 'morph/react' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-react/1.0.0/react.min', 'morph/react-dom' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-react-dom/1.0.0/react-dom.min', 'morph/es5-shim' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-shim.min', 'morph/es5-sham' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-sham.min', 'morph/module/morph': '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/morph/5.3.1/bundle', 'live-push' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/morph-push-proxy-client/1.0.13/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(); } /* u5211958471397782 */</script><script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-bitesize-course-promo-view@3.6.3"]={"@babel/runtime":"7.15.4","@bbcce/bitesize-branding":"13.0.0","@bbcce/education-grid":"1.0.0","@bbcce/education-promo":"3.2.0","@bbcce/education-up-next-banner":"2.0.6","bbc-morph-bitesize-courses-data":"2.1.0","bbc-morph-bitesize-topics-for-web":"3.0.2","core-js":"3.18.0","morph-container":"4.0.0","react":"0.14.7"}; !function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=107)}([function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(t,r(61))},function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t,r){var n=r(1),o=r(31),i=r(6),a=r(33),u=r(43),c=r(63),s=o("wks"),l=n.Symbol,f=c?l:l&&l.withoutSetter||a;e.exports=function(e){return i(s,e)&&(u||"string"==typeof s[e])||(u&&i(l,e)?s[e]=l[e]:s[e]=f("Symbol."+e)),s[e]}},function(e,t,r){var n=r(1),o=r(20).f,i=r(14),a=r(12),u=r(46),c=r(67),s=r(71);e.exports=function(e,t){var r,l,f,p,d,v=e.target,y=e.global,h=e.stat;if(r=y?n:h?n[v]||u(v,{}):(n[v]||{}).prototype)for(l in t){if(p=t[l],e.noTargetGet?(d=o(r,l),f=d&&d.value):f=r[l],!s(y?l:v+(h?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(r,l,p,e)}}},function(e,t,r){var n=r(2);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},function(e,t,r){var n=r(11),o={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return o.call(n(e),t)}},function(e,t,r){var n=r(5);e.exports=function(e){if(n(e))return e;throw TypeError(String(e)+" is not an object")}},function(e,t,r){var n=r(0);e.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,r){var n=r(8),o=r(65),i=r(7),a=r(28),u=Object.defineProperty;t.f=n?u:function(e,t,r){if(i(e),t=a(t),i(r),o)try{return u(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(26),o=r(22);e.exports=function(e){return n(o(e))}},function(e,t,r){var n=r(22);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(1),o=r(2),i=r(6),a=r(14),u=r(46),c=r(48),s=r(15),l=r(49).CONFIGURABLE,f=s.get,p=s.enforce,d=String(String).split("String");(e.exports=function(e,t,r,c){var s,f=!!c&&!!c.unsafe,v=!!c&&!!c.enumerable,y=!!c&&!!c.noTargetGet,h=c&&void 0!==c.name?c.name:t;if(o(r)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(r,"name")||l&&r.name!==h)&&a(r,"name",h),s=p(r),s.source||(s.source=d.join("string"==typeof h?h:""))),e===n)return void(v?e[t]=r:u(t,r));f?!y&&e[t]&&(v=!0):delete e[t],v?e[t]=r:a(e,t,r)})(Function.prototype,"toString",function(){return o(this)&&f(this).source||c(this)})},function(e,t,r){var n=r(1),o=r(2),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},function(e,t,r){var n=r(8),o=r(9),i=r(21);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n,o,i,a=r(66),u=r(1),c=r(5),s=r(14),l=r(6),f=r(45),p=r(34),d=r(23),v=u.WeakMap,y=function(e){return i(e)?o(e):n(e,{})},h=function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};if(a||f.state){var g=f.state||(f.state=new v),b=g.get,m=g.has,x=g.set;n=function(e,t){if(m.call(g,e))throw new TypeError("Object already initialized");return t.facade=e,x.call(g,e,t),t},o=function(e){return b.call(g,e)||{}},i=function(e){return m.call(g,e)}}else{var w=p("state");d[w]=!0,n=function(e,t){if(l(e,w))throw new TypeError("Object already initialized");return t.facade=e,s(e,w,t),t},o=function(e){return l(e,w)?e[w]:{}},i=function(e){return l(e,w)}}e.exports={set:n,get:o,has:i,enforce:y,getterFor:h}},function(e,t,r){var n=r(36),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t,r){var n,o=r(7),i=r(115),a=r(50),u=r(23),c=r(116),s=r(47),l=r(34),f=l("IE_PROTO"),p=function(){},d=function(e){return"<script>"+e+"<\/script>"},v=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=s("iframe");return t.style.display="none",c.appendChild(t),t.src=String("javascript:"),e=t.contentWindow.document,e.open(),e.write(d("document.F=Object")),e.close(),e.F},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}h="undefined"!=typeof document?document.domain&&n?v(n):y():v(n);for(var e=a.length;e--;)delete h.prototype[a[e]];return h()};u[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p.prototype=o(e),r=new p,p.prototype=null,r[f]=e):r=h(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(38);e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},function(e,t,r){var n=r(9).f,o=r(6),i=r(3),a=i("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},function(e,t,r){var n=r(8),o=r(41),i=r(21),a=r(10),u=r(28),c=r(6),s=r(65),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=a(e),t=u(t),s)try{return l(e,t)}catch(e){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports={}},function(e,t,r){var n=r(72),o=r(26),i=r(11),a=r(16),u=r(73),c=[].push,s=function(e){var t=1==e,r=2==e,s=3==e,l=4==e,f=6==e,p=7==e,d=5==e||f;return function(v,y,h,g){for(var b,m,x=i(v),w=o(x),O=n(y,h,3),P=a(w.length),_=0,j=g||u,T=t?j(v,P):r||p?j(v,0):void 0;P>_;_++)if((d||_ in w)&&(b=w[_],m=O(b,_,x),e))if(t)T[_]=m;else if(m)switch(e){case 3:return!0;case 5:return b;case 6:return _;case 2:c.call(T,b)}else switch(e){case 4:return!1;case 7:c.call(T,b)}return f?-1:s||l?l:T}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(e,t){e.exports={}},function(e,t,r){var n=r(0),o=r(27),i="".split;e.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(109),o=r(42);e.exports=function(e){var t=n(e,"string");return o(t)?t:String(t)}},function(e,t,r){var n=r(30);e.exports=function(e,t){var r=e[t];return null==r?void 0:n(r)}},function(e,t,r){var n=r(2),o=r(64);e.exports=function(e){if(n(e))return e;throw TypeError(o(e)+" is not a function")}},function(e,t,r){var n=r(32),o=r(45);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.0",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t,r){var n=r(31),o=r(33),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,r){var n=r(69),o=r(50),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},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(27);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(53),o=r(2),i=r(27),a=r(3),u=a("toStringTag"),c="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=s(t=Object(e),u))?r:c?i(t):"Object"==(n=i(t))&&o(t.callee)?"Arguments":n}},function(e,t,r){var n=r(0),o=r(3),i=r(44),a=o("species");e.exports=function(e){return i>=51||!n(function(){var t=[],r=t.constructor={};return r[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,r){var n=r(69),o=r(50);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},function(e,t,r){var n=r(2),o=r(13),i=r(63);e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return n(t)&&Object(e)instanceof t}},function(e,t,r){var n=r(44),o=r(0);e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},function(e,t,r){var n,o,i=r(1),a=r(110),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,l=s&&s.v8;l?(n=l.split("."),o=n[0]<4?1:n[0]+n[1]):a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},function(e,t,r){var n=r(1),o=r(46),i=n["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,r){var n=r(1);e.exports=function(e,t){try{Object.defineProperty(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(1),o=r(5),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,r){var n=r(2),o=r(45),i=Function.toString;n(o.inspectSource)||(o.inspectSource=function(e){return i.call(e)}),e.exports=o.inspectSource},function(e,t,r){var n=r(8),o=r(6),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(0),o=r(2),i=r(38),a=r(13),u=r(48),c=[],s=a("Reflect","construct"),l=/^\s*(?:class|function)\b/,f=l.exec,p=!l.exec(function(){}),d=function(e){if(!o(e))return!1;try{return s(Object,c,e),!0}catch(e){return!1}},v=function(e){if(!o(e))return!1;switch(i(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return p||!!f.call(l,u(e))};e.exports=!s||n(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?v:d},function(e,t,r){var n=r(3),o=n("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},function(e,t,r){"use strict";var n=r(28),o=r(9),i=r(21);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},function(e,t,r){var n=r(118),o=r(6),i=r(78),a=r(9).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,r){var n=r(6),o=r(2),i=r(11),a=r(34),u=r(82),c=a("IE_PROTO"),s=Object.prototype;e.exports=u?Object.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof Object?s:null}},function(e,t,r){"use strict";var n=r(10),o=r(123),i=r(25),a=r(15),u=r(83),c=a.set,s=a.getterFor("Array Iterator");e.exports=u(Array,"Array",function(e,t){c(this,{type:"Array Iterator",target:n(e),index:0,kind:t})},function(){var e=s(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,r){var n=r(4),o=r(23),i=r(5),a=r(6),u=r(9).f,c=r(35),s=r(77),l=r(33),f=r(126),p=!1,d=l("meta"),v=0,y=Object.isExtensible||function(){return!0},h=function(e){u(e,d,{value:{objectID:"O"+v++,weakData:{}}})},g=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,d)){if(!y(e))return"F";if(!t)return"E";h(e)}return e[d].objectID},b=function(e,t){if(!a(e,d)){if(!y(e))return!0;if(!t)return!1;h(e)}return e[d].weakData},m=function(e){return f&&p&&y(e)&&!a(e,d)&&h(e),e},x=function(){w.enable=function(){},p=!0;var e=c.f,t=[].splice,r={};r[d]=1,e(r).length&&(c.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===d){t.call(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},w=e.exports={enable:x,fastKey:g,getWeakData:b,onFreeze:m};o[d]=!0},function(e,t,r){"use strict";var n=r(4),o=r(60);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,r){"use strict";var n=r(18),o=r(141),i=r(142),a=r(31),u=r(17),c=r(15).get,s=r(143),l=r(144),f=RegExp.prototype.exec,p=a("native-string-replace",String.prototype.replace),d=f,v=function(){var e=/a/,t=/b*/g;return f.call(e,"a"),f.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),y=i.UNSUPPORTED_Y||i.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(v||h||y||s||l)&&(d=function(e){var t,r,i,a,s,l,g,b=this,m=c(b),x=n(e),w=m.raw;if(w)return w.lastIndex=b.lastIndex,t=d.call(w,x),b.lastIndex=w.lastIndex,t;var O=m.groups,P=y&&b.sticky,_=o.call(b),j=b.source,T=0,S=x;if(P&&(_=_.replace("y",""),-1===_.indexOf("g")&&(_+="g"),S=x.slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&"\n"!==x.charAt(b.lastIndex-1))&&(j="(?: "+j+")",S=" "+S,T++),r=new RegExp("^(?:"+j+")",_)),h&&(r=new RegExp("^"+j+"$(?!\\s)",_)),v&&(i=b.lastIndex),a=f.call(P?r:b,S),P?a?(a.input=a.input.slice(T),a[0]=a[0].slice(T),a.index=b.lastIndex,b.lastIndex+=a[0].length):b.lastIndex=0:v&&a&&(b.lastIndex=b.global?a.index+a[0].length:i),h&&a&&a.length>1&&p.call(a[0],r,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(a[s]=void 0)}),a&&O)for(a.groups=l=u(null),s=0;s<O.length;s++)g=O[s],l[g[0]]=a[g[1]];return a}),e.exports=d},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(4),o=r(24).map;n({target:"Array",proto:!0,forced:!r(39)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(43);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t){e.exports=function(e){try{return String(e)}catch(e){return"Object"}}},function(e,t,r){var n=r(8),o=r(0),i=r(47);e.exports=!n&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(1),o=r(2),i=r(48),a=n.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},function(e,t,r){var n=r(6),o=r(68),i=r(20),a=r(9);e.exports=function(e,t){for(var r=o(t),u=a.f,c=i.f,s=0;s<r.length;s++){var l=r[s];n(e,l)||u(e,l,c(t,l))}}},function(e,t,r){var n=r(13),o=r(35),i=r(51),a=r(7);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=i.f;return r?t.concat(r(e)):t}},function(e,t,r){var n=r(6),o=r(10),i=r(112).indexOf,a=r(23);e.exports=function(e,t){var r,u=o(e),c=0,s=[];for(r in u)!n(a,r)&&n(u,r)&&s.push(r);for(;t.length>c;)n(u,r=t[c++])&&(~i(s,r)||s.push(r));return s}},function(e,t,r){var n=r(36),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},function(e,t,r){var n=r(0),o=r(2),i=/#|\.prototype\./,a=function(e,t){var r=c[u(e)];return r==l||r!=s&&(o(t)?n(t):!!t)},u=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},function(e,t,r){var n=r(30);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};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,r){var n=r(113);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},function(e,t,r){var n=r(4),o=r(13),i=r(114),a=r(7),u=r(5),c=r(17),s=r(117),l=r(0),f=o("Reflect","construct"),p=l(function(){function e(){}return!(f(function(){},[],e)instanceof e)}),d=!l(function(){f(function(){})}),v=p||d;n({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){i(e),a(t);var r=arguments.length<3?e:i(arguments[2]);if(d&&!p)return f(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(s.apply(e,n))}var o=r.prototype,l=c(u(o)?o:Object.prototype),v=Function.apply.call(e,l,t);return u(v)?v:l}})},function(e,t,r){"use strict";var n=r(4),o=r(0),i=r(37),a=r(5),u=r(11),c=r(16),s=r(54),l=r(73),f=r(39),p=r(3),d=r(44),v=p("isConcatSpreadable"),y=d>=51||!o(function(){var e=[];return e[v]=!1,e.concat()[0]!==e}),h=f("concat"),g=function(e){if(!a(e))return!1;var t=e[v];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,forced:!y||!h},{concat:function(e){var t,r,n,o,i,a=u(this),f=l(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(i=-1===t?a:arguments[t],g(i)){if(o=c(i.length),p+o>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,p++)r in i&&s(f,p,i[r])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(f,p++,i)}return f.length=p,f}})},function(e,t,r){"use strict";var n=r(4),o=r(1),i=r(13),a=r(32),u=r(8),c=r(43),s=r(0),l=r(6),f=r(37),p=r(2),d=r(5),v=r(42),y=r(7),h=r(11),g=r(10),b=r(28),m=r(18),x=r(21),w=r(17),O=r(40),P=r(35),_=r(77),j=r(51),T=r(20),S=r(9),E=r(41),I=r(12),M=r(31),R=r(34),N=r(23),A=r(33),k=r(3),C=r(78),D=r(55),z=r(19),L=r(15),B=r(24).forEach,q=R("hidden"),W=k("toPrimitive"),G=L.set,F=L.getterFor("Symbol"),J=Object.prototype,U=o.Symbol,$=i("JSON","stringify"),V=T.f,H=S.f,Y=_.f,K=E.f,X=M("symbols"),Z=M("op-symbols"),Q=M("string-to-symbol-registry"),ee=M("symbol-to-string-registry"),te=M("wks"),re=o.QObject,ne=!re||!re.prototype||!re.prototype.findChild,oe=u&&s(function(){return 7!=w(H({},"a",{get:function(){return H(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=V(J,t);n&&delete J[t],H(e,t,r),n&&e!==J&&H(J,t,n)}:H,ie=function(e,t){var r=X[e]=w(U.prototype);return G(r,{type:"Symbol",tag:e,description:t}),u||(r.description=t),r},ae=function(e,t,r){e===J&&ae(Z,t,r),y(e);var n=b(t);return y(r),l(X,n)?(r.enumerable?(l(e,q)&&e[q][n]&&(e[q][n]=!1),r=w(r,{enumerable:x(0,!1)})):(l(e,q)||H(e,q,x(1,{})),e[q][n]=!0),oe(e,n,r)):H(e,n,r)},ue=function(e,t){y(e);var r=g(t),n=O(r).concat(pe(r));return B(n,function(t){u&&!se.call(r,t)||ae(e,t,r[t])}),e},ce=function(e,t){return void 0===t?w(e):ue(w(e),t)},se=function(e){var t=b(e),r=K.call(this,t);return!(this===J&&l(X,t)&&!l(Z,t))&&(!(r||!l(this,t)||!l(X,t)||l(this,q)&&this[q][t])||r)},le=function(e,t){var r=g(e),n=b(t);if(r!==J||!l(X,n)||l(Z,n)){var o=V(r,n);return!o||!l(X,n)||l(r,q)&&r[q][n]||(o.enumerable=!0),o}},fe=function(e){var t=Y(g(e)),r=[];return B(t,function(e){l(X,e)||l(N,e)||r.push(e)}),r},pe=function(e){var t=e===J,r=Y(t?Z:g(e)),n=[];return B(r,function(e){!l(X,e)||t&&!l(J,e)||n.push(X[e])}),n};if(c||(U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=A(e),r=function(e){this===J&&r.call(Z,e),l(this,q)&&l(this[q],t)&&(this[q][t]=!1),oe(this,t,x(1,e))};return u&&ne&&oe(J,t,{configurable:!0,set:r}),ie(t,e)},I(U.prototype,"toString",function(){return F(this).tag}),I(U,"withoutSetter",function(e){return ie(A(e),e)}),E.f=se,S.f=ae,T.f=le,P.f=_.f=fe,j.f=pe,C.f=function(e){return ie(k(e),e)},u&&(H(U.prototype,"description",{configurable:!0,get:function(){return F(this).description}}),a||I(J,"propertyIsEnumerable",se,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:U}),B(O(te),function(e){D(e)}),n({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=m(e);if(l(Q,t))return Q[t];var r=U(t);return Q[t]=r,ee[r]=t,r},keyFor:function(e){if(!v(e))throw TypeError(e+" is not a symbol");if(l(ee,e))return ee[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:ce,defineProperty:ae,defineProperties:ue,getOwnPropertyDescriptor:le}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:fe,getOwnPropertySymbols:pe}),n({target:"Object",stat:!0,forced:s(function(){j.f(1)})},{getOwnPropertySymbols:function(e){return j.f(h(e))}}),$){n({target:"JSON",stat:!0,forced:!c||s(function(){var e=U();return"[null]"!=$([e])||"{}"!=$({a:e})||"{}"!=$(Object(e))})},{stringify:function(e,t,r){for(var n,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=t,(d(t)||void 0!==e)&&!v(e))return f(t)||(t=function(e,t){if(p(n)&&(t=n.call(this,e,t)),!v(t))return t}),o[1]=t,$.apply(null,o)}})}if(!U.prototype[W]){var de=U.prototype.valueOf;I(U.prototype,W,function(){return de.apply(this,arguments)})}z(U,"Symbol"),N[q]=!0},function(e,t,r){var n=r(10),o=r(35).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return o(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?u(e):o(n(e))}},function(e,t,r){var n=r(3);t.f=n},function(e,t,r){"use strict";var n=r(4),o=r(8),i=r(1),a=r(6),u=r(2),c=r(5),s=r(9).f,l=r(67),f=i.Symbol;if(o&&u(f)&&(!("description"in f.prototype)||void 0!==f().description)){var p={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new f(e):void 0===e?f():f(e);return""===e&&(p[t]=!0),t};l(d,f);var v=d.prototype=f.prototype;v.constructor=d;var y=v.toString,h="Symbol(test)"==String(f("test")),g=/^Symbol\((.*)\)[^)]+$/;s(v,"description",{configurable:!0,get:function(){var e=c(this)?this.valueOf():this,t=y.call(e);if(a(p,e))return"";var r=h?t.slice(7,-1):t.replace(g,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:d})}},function(e,t,r){var n=r(53),o=r(12),i=r(119);n||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,r){var n=r(4),o=r(0),i=r(11),a=r(56),u=r(82);n({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!u},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,r){var n=r(0);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,r){"use strict";var n=r(4),o=r(32),i=r(49),a=r(2),u=r(124),c=r(56),s=r(85),l=r(19),f=r(14),p=r(12),d=r(3),v=r(25),y=r(84),h=i.PROPER,g=i.CONFIGURABLE,b=y.IteratorPrototype,m=y.BUGGY_SAFARI_ITERATORS,x=d("iterator"),w=function(){return this};e.exports=function(e,t,r,i,d,y,O){u(r,t,i);var P,_,j,T=function(e){if(e===d&&R)return R;if(!m&&e in I)return I[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},S=t+" Iterator",E=!1,I=e.prototype,M=I[x]||I["@@iterator"]||d&&I[d],R=!m&&M||T(d),N="Array"==t?I.entries||M:M;if(N&&(P=c(N.call(new e)))!==Object.prototype&&P.next&&(o||c(P)===b||(s?s(P,b):a(P[x])||p(P,x,w)),l(P,S,!0,!0),o&&(v[S]=w)),h&&"values"==d&&M&&"values"!==M.name&&(!o&&g?f(I,"name","values"):(E=!0,R=function(){return M.call(this)})),d)if(_={values:T("values"),keys:y?R:T("keys"),entries:T("entries")},O)for(j in _)!m&&!E&&j in I||p(I,j,_[j]);else n({target:t,proto:!0,forced:m||E},_);return o&&!O||I[x]===R||p(I,x,R,{name:d}),v[t]=R,_}},function(e,t,r){"use strict";var n,o,i,a=r(0),u=r(2),c=r(17),s=r(56),l=r(12),f=r(3),p=r(32),d=f("iterator"),v=!1;[].keys&&(i=[].keys(),"next"in i?(o=s(s(i)))!==Object.prototype&&(n=o):v=!0),void 0==n||a(function(){var e={};return n[d].call(e)!==e})?n={}:p&&(n=c(n)),u(n[d])||l(n,d,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},function(e,t,r){var n=r(7),o=r(125);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(r,[]),t=r instanceof Array}catch(e){}return function(r,i){return n(r),o(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},function(e,t,r){"use strict";var n=r(87).charAt,o=r(18),i=r(15),a=r(83),u=i.set,c=i.getterFor("String Iterator");a(String,"String",function(e){u(this,{type:"String Iterator",string:o(e),index:0})},function(){var e,t=c(this),r=t.string,o=t.index;return o>=r.length?{value:void 0,done:!0}:(e=n(r,o),t.index+=e.length,{value:e,done:!1})})},function(e,t,r){var n=r(36),o=r(18),i=r(22),a=function(e){return function(t,r){var a,u,c=o(i(t)),s=n(r),l=c.length;return s<0||s>=l?e?"":void 0:(a=c.charCodeAt(s),a<55296||a>56319||s+1===l||(u=c.charCodeAt(s+1))<56320||u>57343?e?c.charAt(s):a:e?c.slice(s,s+2):u-56320+(a-55296<<10)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},function(e,t,r){"use strict";var n,o=r(1),i=r(89),a=r(58),u=r(127),c=r(133),s=r(5),l=r(15).enforce,f=r(66),p=!o.ActiveXObject&&"ActiveXObject"in o,d=Object.isExtensible,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},y=e.exports=u("WeakMap",v,c);if(f&&p){n=c.getConstructor(v,"WeakMap",!0),a.enable();var h=y.prototype,g=h.delete,b=h.has,m=h.get,x=h.set;i(h,{delete:function(e){if(s(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new n),g.call(this,e)||t.frozen.delete(e)}return g.call(this,e)},has:function(e){if(s(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new n),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(s(e)&&!d(e)){var t=l(this);return t.frozen||(t.frozen=new n),b.call(this,e)?m.call(this,e):t.frozen.get(e)}return m.call(this,e)},set:function(e,t){if(s(e)&&!d(e)){var r=l(this);r.frozen||(r.frozen=new n),b.call(this,e)?x.call(this,e,t):r.frozen.set(e,t)}else x.call(this,e,t);return this}})}},function(e,t,r){var n=r(12);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},function(e,t,r){var n=r(7),o=r(128),i=r(16),a=r(72),u=r(129),c=r(91),s=r(130),l=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var f,p,d,v,y,h,g,b=r&&r.that,m=!(!r||!r.AS_ENTRIES),x=!(!r||!r.IS_ITERATOR),w=!(!r||!r.INTERRUPTED),O=a(t,b,1+m+w),P=function(e){return f&&s(f,"normal",e),new l(!0,e)},_=function(e){return m?(n(e),w?O(e[0],e[1],P):O(e[0],e[1])):w?O(e,P):O(e)};if(x)f=e;else{if(!(p=c(e)))throw TypeError(String(e)+" is not iterable");if(o(p)){for(d=0,v=i(e.length);v>d;d++)if((y=_(e[d]))&&y instanceof l)return y;return new l(!1)}f=u(e,p)}for(h=f.next;!(g=h.call(f)).done;){try{y=_(g.value)}catch(e){s(f,"throw",e)}if("object"==typeof y&&y&&y instanceof l)return y}return new l(!1)}},function(e,t,r){var n=r(38),o=r(29),i=r(25),a=r(3),u=a("iterator");e.exports=function(e){if(void 0!=e)return o(e,u)||o(e,"@@iterator")||i[n(e)]}},function(e,t){e.exports=function(e,t,r){if(e instanceof t)return e;throw TypeError("Incorrect "+(r?r+" ":"")+"invocation")}},function(e,t,r){var n=r(1),o=r(94),i=r(95),a=r(57),u=r(14),c=r(3),s=c("iterator"),l=c("toStringTag"),f=a.values,p=function(e,t){if(e){if(e[s]!==f)try{u(e,s,f)}catch(t){e[s]=f}if(e[l]||u(e,l,t),o[t])for(var r in a)if(e[r]!==a[r])try{u(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var d in o)p(n[d]&&n[d].prototype,d);p(i,"DOMTokenList")},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){var n=r(47),o=n("span").classList,i=o&&o.constructor&&o.constructor.prototype;e.exports=i===Object.prototype?void 0:i},function(e,t,r){var n=r(4),o=r(0),i=r(10),a=r(20).f,u=r(8),c=o(function(){a(1)});n({target:"Object",stat:!0,forced:!u||c,sham:!u},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,r){r(55)("iterator")},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){throw 1},1)})}},function(e,t,r){var n=r(4),o=r(11),i=r(40);n({target:"Object",stat:!0,forced:r(0)(function(){i(1)})},{keys:function(e){return i(o(e))}})},function(e,t,r){"use strict";var n=r(4),o=r(24).filter;n({target:"Array",proto:!0,forced:!r(39)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(1),o=r(94),i=r(95),a=r(138),u=r(14),c=function(e){if(e&&e.forEach!==a)try{u(e,"forEach",a)}catch(t){e.forEach=a}};for(var s in o)c(n[s]&&n[s].prototype);c(i)},function(e,t,r){var n=r(4),o=r(8),i=r(68),a=r(10),u=r(20),c=r(54);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,r,n=a(e),o=u.f,s=i(n),l={},f=0;s.length>f;)void 0!==(r=o(n,t=s[f++]))&&c(l,t,r);return l}})},function(e,t,r){"use strict";var n=r(4),o=r(139);n({target:"String",proto:!0,forced:r(140)("link")},{link:function(e){return o(this,"a","href",e)}})},function(e,t,r){"use strict";var n=r(145),o=r(0),i=r(7),a=r(2),u=r(36),c=r(16),s=r(18),l=r(22),f=r(146),p=r(29),d=r(147),v=r(148),y=r(3),h=y("replace"),g=Math.max,b=Math.min,m=function(e){return void 0===e?e:String(e)},x=function(){return"$0"==="a".replace(/./,"$0")}(),w=function(){return!!/./[h]&&""===/./[h]("a","$0")}(),O=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});n("replace",function(e,t,r){var n=w?"$":"$0";return[function(e,r){var n=l(this),o=void 0==e?void 0:p(e,h);return o?o.call(e,n,r):t.call(s(n),e,r)},function(e,o){var l=i(this),p=s(e);if("string"==typeof o&&-1===o.indexOf(n)&&-1===o.indexOf("$<")){var y=r(t,l,p,o);if(y.done)return y.value}var h=a(o);h||(o=s(o));var x=l.global;if(x){var w=l.unicode;l.lastIndex=0}for(var O=[];;){var P=v(l,p);if(null===P)break;if(O.push(P),!x)break;""===s(P[0])&&(l.lastIndex=f(p,c(l.lastIndex),w))}for(var _="",j=0,T=0;T<O.length;T++){P=O[T];for(var S=s(P[0]),E=g(b(u(P.index),p.length),0),I=[],M=1;M<P.length;M++)I.push(m(P[M]));var R=P.groups;if(h){var N=[S].concat(I,E,p);void 0!==R&&N.push(R);var A=s(o.apply(void 0,N))}else A=d(S,p,E,I,R,o);E>=j&&(_+=p.slice(j,E)+A,j=E+S.length)}return _+p.slice(j)}]},!O||!x||w)},function(e,t,r){"use strict";var n=r(4),o=r(37),i=r(52),a=r(5),u=r(70),c=r(16),s=r(10),l=r(54),f=r(3),p=r(39),d=p("slice"),v=f("species"),y=[].slice,h=Math.max;n({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var r,n,f,p=s(this),d=c(p.length),g=u(e,d),b=u(void 0===t?d:t,d);if(o(p)&&(r=p.constructor,i(r)&&(r===Array||o(r.prototype))?r=void 0:a(r)&&null===(r=r[v])&&(r=void 0),r===Array||void 0===r))return y.call(p,g,b);for(n=new(void 0===r?Array:r)(h(b-g,0)),f=0;g<b;g++,f++)g in p&&l(n,f,p[g]);return n.length=f,n}})},function(e,t){function r(t){"@babel/helpers - typeof";return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=r=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(108),o=r.n(n);Morph.modules["bbc-morph-bitesize-course-promo-view@3.6.3"]=o.a},function(e,t,r){"use strict";(function(t){function n(e){"@babel/helpers - typeof";return(n="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})(e)}r(62),r(74),r(75),r(76),r(79),r(80),r(120),r(121),r(122),r(81),r(57),r(86),r(88),r(93),r(96),r(97),r(134),r(135),r(136),r(99),r(100),r(101),r(102),r(103),r(59),r(104),r(105),function(){var o={5311:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(6689)),i=r(6689).PropTypes||r(580),a=function(e){var t=e.asList?"li":"div",r=e.asList?"ul":"div",n=o.default.Children.map(e.children,function(r){return o.default.createElement(t,{className:"ec-grid__item--".concat(e.layout)},o.default.createElement("span",{className:"ec-grid__item-content-wrapper--".concat(e.layout)},r))});return o.default.createElement("div",{className:"ec-grid--".concat(e.layout)},o.default.createElement(r,{className:"ec-grid__item-wrapper--".concat(e.layout)},n))};a.propTypes={children:i.node.isRequired,layout:i.string,asList:i.bool},a.defaultProps={layout:"default",asList:!1};var u=a;t.default=u},47:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(5311)).default;t.default=o},5035:function(e,t,r){var n=r(4428),o=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(8213)),a=o(r(7537)),u=o(r(8765)),c=o(r(5370)),s=o(r(9548)),l=o(r(3761)),f=n(r(6689)),p=o(r(9003)),d=o(r(942)),v=r(6689).PropTypes||r(580),y=function(e){function t(){return(0,a.default)(this,t),o.apply(this,arguments)}(0,c.default)(t,e);var r,n,o=(r=t,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=(0,l.default)(r);if(n){var o=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return(0,s.default)(this,e)});return(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.brand;e.lazyload&&(0,d.default)(".ec-promo__image--".concat(t,"--lazyload"),"ec-promo__image--".concat(t,"--lazyloaded"))}},{key:"render",value:function(){var e=this.props,t=e.altText,r=e.className,n=e.imageUrl,o=e.title,a=e.synopsis,u=e.linkUrl,c=e.label,s=e.brand,l=e.attribution,d=e.lazyload,v=e.dataATIProps,y=e.completionStatus,h=e.showChevronLink,g="unseen"===y?"":"--".concat(y);return f.default.createElement("div",{className:(0,p.default)("ec-promo--".concat(s),r)},f.default.createElement("a",(0,i.default)({href:u,className:"ec-promo__link--".concat(s)},v),f.default.createElement("div",{className:"ec-promo__image-container--".concat(s)},f.default.createElement("div",{className:"ec-promo__image-container__16/9"},d?f.default.createElement("div",{className:"ec-promo-image-lazyload-container","aria-hidden":!0},n&&f.default.createElement("div",{className:"ec-promo__image--".concat(s,"--lazyload"),"data-src":n,"data-alt":t||o,"data-class":"promo-image"})):f.default.createElement("img",{className:"ec-promo__image--".concat(s),"data-class":"ec-promo__image",src:n,alt:t}),c?f.default.createElement("span",{"aria-hidden":!0,className:"ec-promo__label--".concat(s)},c):null)),f.default.createElement("div",{className:"ec-promo__text-container--".concat(s)},f.default.createElement("div",{className:"ec-promo__text--".concat(s)},c?f.default.createElement("span",{className:"ec-promo__invisible--".concat(s)},"".concat(c,":")):null,f.default.createElement("h3",{className:"ec-promo__title--".concat(s).concat(g).concat(h?"__with-chevron-link":"")},o),f.default.createElement("p",{className:"ec-promo__synopsis--".concat(s)},a))),l?f.default.createElement("h5",{className:"ec-promo__attribution--".concat(s)},l):null))}}]),t}(f.Component);t.default=y,y.propTypes={altText:v.string,className:v.string,imageUrl:v.string.isRequired,title:v.string.isRequired,synopsis:v.string,linkUrl:v.string.isRequired,label:v.string,brand:v.string,attribution:v.string,lazyload:v.bool,dataATIProps:v.shape({}),completionStatus:v.string,showChevronLink:v.bool},y.defaultProps={altText:"",className:"",brand:"default",dataATIProps:{},completionStatus:"unseen"}},3024:function(e,t,r){var n=r(7880);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(5035)).default;t.default=o},942:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".lazyload",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"lazyloaded",n=r(5223);window.document.querySelector("[data-class]")&&new n(e,{availableWidths:[160,208,240,288,320,336,448,480,576,608,688,832],className:t,lazyload:!0,lazyloadOffset:200,scrollDelay:100})}},9007:function(e,r,o){e.exports=function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==n(e)&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(o,i,function(t){return e[t]}.bind(null,i));return o},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=12)}([function(e,t){e.exports=o(6689)},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){e.exports=r(14)()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function r(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),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var n=r(10).default,o=r(17);e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?o(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var n=r(18);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){function n(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return n=function(){return e},e}var o=r(10).default;e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=n();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var n=r(1),o=n(r(13)),i=n(r(16)),a=n(r(19)),u=n(r(20)),c=n(r(21)),s=n(r(22)),l=n(r(23)),f=n(r(24)),p=n(r(25)),d=n(r(26)),v=n(r(27)),y=n(r(28)),h=n(r(29)),g=n(r(30)),b=n(r(31)),m=n(r(32));e.exports={GelAddIcon:o.default,GelChevronRightIcon:i.default,GelCloseIcon:a.default,GelDownIcon:u.default,GelIconDuration:c.default,GelListenIcon:s.default,GelNextIcon:l.default,GelNoIcon:f.default,GelPlayIcon:p.default,GelPreviousIcon:d.default,GelRecentActivityIcon:v.default,GelSearchIcon:y.default,GelStopIcon:h.default,GelYesIcon:g.default,GelLoadingIcon:b.default,GelAlertIcon:m.default}},function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?(e.exports=r=function(e){return n(e)},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},e.exports.default=e.exports,e.exports.__esModule=!0),r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var o;!function(){function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var a=n(o);if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)&&o.length){var u=r.apply(null,o);u&&e.push(u)}else if("object"===a)for(var c in o)i.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}var i={}.hasOwnProperty;e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,r){e.exports=r(33)},function(e,t,r){var n=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(0)),i=r(0).PropTypes||r(2),a=function(e){var t=e.className;return o.default.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"white"},o.default.createElement("polygon",{points:"31.5,13.5 18.5,13.5 18.5,0.5 13.5,0.5 13.5,13.5 0.5,13.5 0.5,18.5 13.5,18.5 13.5,31.5 18.5,31.5 18.5,18.5 31.5,18.5"}))};a.propTypes={className:i.string},a.defaultProps={className:""};var u=a;t.default=u},function(e,t,r){function n(){}function o(){}var i=r(15);o.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,o,a){if(a!==i){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:n};return r.PropTypes=r,r}},function(e,t,r){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){var n=r(8),o=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(3)),a=o(r(4)),u=o(r(5)),c=o(r(6)),s=o(r(7)),l=n(r(0)),f=r(0).PropTypes||r(2),p=function(e){function t(){return(0,i.default)(this,t),(0,u.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,s.default)(t,e),(0,a.default)(t,[{key:"componentDidMount",value:function(){this.icon.setAttribute("focusable","false")}},{key:"render",value:function(){var e=this,t=this.props.className;return l.default.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",ref:function(t){e.icon=t}},l.default.createElement("polygon",{points:"29 16 3 0 3 7.2 17.6 16 3 24.8 3 32 29 16"}))}}]),t}(l.Component);p.propTypes={className:f.string},p.defaultProps={className:""};var d=p;t.default=d},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,r(t,n)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var n=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(3)),i=n(r(4)),a=n(r(5)),u=n(r(6)),c=n(r(7)),s=n(r(0)),l=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,u.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){this.node.setAttribute("focusable","false")}},{key:"render",value:function(){var e=this;return s.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"18px",height:"18px",viewBox:"0 0 32 32",enableBackground:"new 0 0 32 32",xmlSpace:"preserve",ref:function(t){e.node=t}},s.default.createElement("polygon",{points:"32,3.5 28.5,0 16,12.5 3.5,0 0,3.5 12.5,16 0,28.5 3.5,32 16,19.5 28.5,32 32,28.5 19.5,16"}))}}]),t}(s.default.Component);t.default=l},function(e,t,r){var n=r(8),o=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(3)),a=o(r(4)),u=o(r(5)),c=o(r(6)),s=o(r(7)),l=n(r(0)),f=function(e){function t(){return(0,i.default)(this,t),(0,u.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,s.default)(t,e),(0,a.default)(t,[{key:"componentDidMount",value:function(){this.icon.setAttribute("focusable","false")}},{key:"render",value:function(){var e=this;return l.default.createElement("svg",{version:"1.1",x:"0px",y:"0px",width:"18px",height:"18px",viewBox:"0 0 32 32",ref:function(t){e.icon=t}},l.default.createElement("g",{id:"Grid","data-reactid":".2fuuqwria3c.1.0.1.0.0.3.1.0.0.$KS3.0.2.0.0"}),l.default.createElement("g",{id:"Layer_2","data-reactid":".2fuuqwria3c.1.0.1.0.0.3.1.0.0.$KS3.0.2.0.1"}),l.default.createElement("polygon",{points:"16,29 32,3 24.8,3 16,18.3 7.2,3 0,3","data-reactid":".2fuuqwria3c.1.0.1.0.0.3.1.0.0.$KS3.0.2.0.1.0"}))}}]),t}(l.Component);t.default=f},function(e,t,r){var n=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(0));t.default=function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},o.default.createElement("polygon",{points:"17 15.4 17 6 15 6 15 16.6 23.8 21.7 24.8 19.9 17 15.4"}),o.default.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12,12,0,0,1,16,4m0-4A16,16,0,1,0,32,16,16,16,0,0,0,16,0Z"}))}},function(e,t,r){var n=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(0)),i=r(0).PropTypes||r(2),a=function(e){var t=e.className;return o.default.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},o.default.createElement("title",null,"listen"),o.default.createElement("path",{d:"M21.4,4.8,20,6.2a14,14,0,0,1,0,19.6l1.4,1.4a16,16,0,0,0,0-22.4Z"}),o.default.createElement("path",{d:"M25.6.5,24.2,2a19.9,19.9,0,0,1,0,28.1l1.4,1.4A22,22,0,0,0,25.6.5Z"}),o.default.createElement("polygon",{points:"16 4 10 10 0 10 0 22 10 22 16 28 16 4"}))};a.propTypes={className:i.string},a.defaultProps={className:""};var u=a;t.default=u},function(e,t,r){var n=r(8),o=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(3)),a=o(r(4)),u=o(r(5)),c=o(r(6)),s=o(r(7)),l=n(r(0)),f=function(e){function t(){return(0,i.default)(this,t),(0,u.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,s.default)(t,e),(0,a.default)(t,[{key:"componentDidMount",value:function(){this.icon.setAttribute("focusable","false")}},{key:"render",value:function(){var e=this;return l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32","aria-labelledby":"next-chevron-title",ref:function(t){e.icon=t}},l.default.createElement("title",{id:"next-chevron-title"},"Next"),l.default.createElement("desc",null,"Move to the next page"),l.default.createElement("polygon",{points:"26,16 0,0 0,7.2 14.6,16 0,24.8 0,32"}))}}]),t}(l.Component);t.default=f},function(e,t,r){var n=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(0));t.default=function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},o.default.createElement("title",null,"no"),o.default.createElement("polygon",{points:"32 3.5 28.5 0 16 12.5 3.5 0 0 3.5 12.5 16 0 28.5 3.5 32 16 19.5 28.5 32 32 28.5 19.5 16 32 3.5"}))}},function(e,t,r){var n=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(0)),i=r(0).PropTypes||r(2),a=function(e){var t=e.className;return o.default.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},o.default.createElement("title",null,"play"),o.default.createElement("polygon",{points:"3 32 29 16 3 0 3 32"}))};a.propTypes={className:i.string},a.defaultProps={className:""};var u=a;t.default=u},function(e,t,r){var n=r(8),o=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(3)),a=o(r(4)),u=o(r(5)),c=o(r(6)),s=o(r(7)),l=n(r(0)),f=function(e){function t(){return(0,i.default)(this,t),(0,u.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,s.default)(t,e),(0,a.default)(t,[{key:"componentDidMount",value:function(){this.icon.setAttribute("focusable","false")}},{key:"render",value:function(){var e=this;return l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32","aria-labelledby":"previous-chevron-title",ref:function(t){e.icon=t}},l.default.createElement("title",{id:"previous-chevron-title"},"Previous"),l.default.createElement("desc",null,"Move to the previous page"),l.default.createElement("polygon",{points:"0,16 26,0 26,7.2 11.4,16 26,24.8 26,32"}))}}]),t}(l.Component);t.default=f},function(e,t,r){var n=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(0)),i=r(0).PropTypes||r(2),a=function(e){var t=e.className;return o.default.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},o.default.createElement("path",{d:"M16 28C9.4 28 4 22.6 4 16S9.4 4 16 4c.3 0 .7 0 1 .1v-4c-.3-.1-.7-.1-1-.1C7.2 0 0 7.2 0 16s7.2 16 16 16c6.3 0 11.7-3.6 14.3-8.9l-3.5-2c-1.9 4.1-6 6.9-10.8 6.9z"}),o.default.createElement("path",{d:"M15 6v10.6l8.8 5.1 1-1.8-7.8-4.5V6"}),o.default.createElement("circle",{cx:"30",cy:"16",r:"2"}),o.default.createElement("circle",{cx:"28",cy:"9",r:"2"}),o.default.createElement("circle",{cx:"23",cy:"4",r:"2"}))};a.propTypes={className:i.string},a.defaultProps={className:""};var u=a;t.default=u},function(e,t,r){var n=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(0));t.default=function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},o.default.createElement("title",null,"search"),o.default.createElement("path",{d:"M32,28.5l-8.2-8.2a13,13,0,1,0-3.5,3.5L28.5,32ZM6.6,19.4A9,9,0,1,1,13,22,8.9,8.9,0,0,1,6.6,19.4Z"}))}},function(e,t,r){var n=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(0)),i=r(0).PropTypes||r(2),a=function(e){var t=e.className,r=e.height,n=e.width;return o.default.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:n,height:r,viewBox:"0 0 ".concat(n," ").concat(r)},o.default.createElement("title",null,"stop"),o.default.createElement("rect",{width:n,height:r}))};a.propTypes={className:i.string,height:i.number,width:i.number},a.defaultProps={className:"",height:32,width:32};var u=a;t.default=u},function(e,t,r){var n=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(0));t.default=function(){return o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},o.default.createElement("title",null,"yes"),o.default.createElement("polygon",{points:"12.9 28.9 31.9 6.3 28.1 3.1 12.3 21.9 3.3 14.4 0.1 18.2 12.9 28.9"}))}},function(e,t,r){var n=r(8),o=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(3)),a=o(r(4)),u=o(r(5)),c=o(r(6)),s=o(r(7)),l=n(r(0)),f=function(e){function t(){return(0,i.default)(this,t),(0,u.default)(this,(0,c.default)(t).apply(this,arguments))}return(0,s.default)(t,e),(0,a.default)(t,[{key:"componentDidMount",value:function(){this.svg.setAttribute("focusable","false")}},{key:"render",value:function(){var e=this;return l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",ref:function(t){e.svg=t}},l.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"}))}}]),t}(l.Component);t.default=f},function(e,t,r){var n=r(1);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(3)),i=n(r(4)),a=n(r(5)),u=n(r(6)),c=n(r(7)),s=n(r(0)),l=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,u.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,i.default)(t,[{key:"componentDidMount",value:function(){this.node.setAttribute("focusable","false")}},{key:"render",value:function(){var e=this;return s.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"32px",height:"32px",viewBox:"0 0 32 32",enableBackground:"new 0 0 32 32",xmlSpace:"preserve",ref:function(t){e.node=t}},s.default.createElement("g",{id:"Grid"}),s.default.createElement("g",{id:"Layer_2"},s.default.createElement("g",null,s.default.createElement("path",{d:"M16,2L0,30h32L16,2z M18,27h-4v-4h4V27z M14,21V11h4v10H14z"}))))}}]),t}(s.default.Component);t.default=l},function(e,r,o){function i(e){return(i="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}function a(){return(a=Object.assign||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}).apply(this,arguments)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}o.r(r);var f=o(0),p=o.n(f),d=o(9),v=o(11),y=o.n(v),h=o(0).PropTypes||o(2),g=function(e){function r(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var n=(t=o.call(this,e)).props.getAnchorDivRef;return t.state={showBanner:!1,closeBanner:!1},t.setShowBanner=t.setShowBanner.bind(s(t)),t.closeBanner=t.closeBanner.bind(s(t)),t.isAnimated=!!n,t}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(r,e);var n,o=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var o=l(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return c(this,r)}}(r);return(n=[{key:"componentDidMount",value:function(){t.window&&(t.window.addEventListener("resize",this.setShowBanner),t.window.addEventListener("scroll",this.setShowBanner),this.setShowBanner())}},{key:"componentWillUnmount",value:function(){t.window&&(t.window.removeEventListener("resize",this.setShowBanner),t.window.removeEventListener("scroll",this.setShowBanner))}},{key:"setShowBanner",value:function(){var e=this.bannerContainerRef,t=this.props.getAnchorDivRef;if(e&&t){var r=this.isDivInViewport();this.setState({showBanner:r})}}},{key:"closeBanner",value:function(){(0,this.props.onClosed)(),this.setState({closeBanner:!0})}},{key:"isDivInViewport",value:function(){var e=this.props.getAnchorDivRef();if(t.window&&e){var r=e.getBoundingClientRect().top;return t.window.innerHeight>r}return!1}},{key:"render",value:function(){var e=this,t=this.props,r=t.zid,n=t.imageUrl,o=t.title,i=t.label,u=t.url,c=t.showCloseButton,s=this.state,l=s.showBanner,f=s.closeBanner,v={"data-bbc-source":"bbc bitesize","data-bbc-container":"onward journey pop-up","data-bbc-title":"".concat(i," - ").concat(r)},h=n?p.a.createElement("div",{className:"ec-up-next-banner__image-container"},p.a.createElement("img",{className:"ec-up-next-banner__image",src:n,alt:""})):"";return f?null:p.a.createElement("div",a({className:y()("ec-up-next-banner",{"ec-up-next-banner__hide":this.isAnimated&&!l}),ref:function(t){e.bannerContainerRef=t}},v),p.a.createElement("a",{className:"ec-up-next-banner__link",href:u,"aria-label":"The next guide in this topic is '".concat(i,"'")},p.a.createElement("div",{className:"ec-up-next-banner__grid-wrap"},p.a.createElement("div",{className:"ec-up-next-banner__grid-row"},h,p.a.createElement("div",{className:"ec-up-next-banner__labels"},p.a.createElement("p",{className:"ec-up-next-banner__item-title"},o),p.a.createElement("p",{className:"ec-up-next-banner__item-label"},p.a.createElement("span",{className:"ec-up-next-banner__item-label-text"},i))),p.a.createElement("div",{className:"ec-up-next-banner__gel-icon-next"},p.a.createElement(d.GelNextIcon,null))))),c&&p.a.createElement("div",{className:"ec-up-next-banner-close"},p.a.createElement("button",{type:"button",tabIndex:"0","aria-label":"close banner",className:"ec-up-next-banner-close__button","data-bbc-source":"bbc bitesize","data-bbc-container":"onward journey pop-up","data-bbc-title":"close",onClick:this.closeBanner},p.a.createElement("div",{className:"ec-up-next-banner-close__button-icon"},p.a.createElement(d.GelCloseIcon,null)))))}}])&&function(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),Object.defineProperty(e,n.key,n)}}(r.prototype,n),r}(p.a.Component);g.displayName="UpNextBanner",g.defaultProps={getAnchorDivRef:void 0,showCloseButton:!1,onClosed:function(){}},g.propTypes={getAnchorDivRef:h.func,zid:h.string.isRequired,imageUrl:h.string.isRequired,title:h.string.isRequired,label:h.string.isRequired,url:h.string.isRequired,showCloseButton:h.bool,onClosed:h.func};var b=g;r.default=b}])},9709:function(e,t,r){function o(e){return(o="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}r(1624),r(1e3),r(2047),r(1157),r(8534),r(5226),r(444),r(1076),r(5547),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=i(void 0);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=a?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(n,u,c):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n}(r(6689)),c=r(1912),s=(a=r(7991))&&a.__esModule?a:{default:a},l=function(e){var t=e.courseData,r=t.meta,n=t.body,o=e.translationsData.body,i=e.articleId,a=e.language;if(200!==r.responseCode)return u.default.createElement("div",null);var l=(0,c.parseCourse)(n),f=JSON.parse(o)[a];return u.default.createElement(s.default,{courseData:l,translationsData:f,articleId:i})};l.propTypes={courseData:u.PropTypes.shape({meta:u.PropTypes.shape({responseCode:u.PropTypes.number}).isRequired,body:u.PropTypes.shape({courseTitle:u.PropTypes.string.isRequired,listItems:u.PropTypes.arrayOf(u.PropTypes.shape({id:u.PropTypes.string,title:u.PropTypes.string,description:u.PropTypes.string,articleId:u.PropTypes.string,url:u.PropTypes.string})).isRequired,id:u.PropTypes.string.isRequired})}).isRequired,translationsData:u.PropTypes.shape({meta:u.PropTypes.shape({responseCode:u.PropTypes.number}).isRequired,body:u.PropTypes.string}).isRequired,articleId:u.PropTypes.string.isRequired,language:u.PropTypes.string.isRequired},l.defaultProps={};var f=l;t.default=f,e.exports=t.default},7991:function(e,t,r){function o(e){return(o="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(5128),r(444),r(4011),r(5226),r(3275),r(9270),r(1624),r(1e3),r(2047),r(1157),r(8534),r(1076),r(5547),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(3133),r(3114),r(7037);var s,l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=i(void 0);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=a?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(n,u,c):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n}(r(6689)),f=(s=r(1827))&&s.__esModule?s:{default:s},p=r(6178),d=function(e,t,r,n,o){return t.map(function(t){var i="".concat((0,p.getPromoPosition)(e,t)," ").concat(o," ").concat(e.length),a=t.articleId===r?n:"";return u(u({},t),{},{attribution:i,label:a})})},v=function(e){var t=e.courseData,r=e.translationsData,n=e.articleId,o=t.courseTitle,i=t.listItems,a=t.link,u=r.subtitle,c=r.currentPromoLabel,s=r.attributionProposition,v=r.upNextLabel,y=(0,p.getPromoSequence)(i,n),h=(0,p.getNextPromo)(y,n),g=h&&y.some(function(e){return e.articleId===n})&&y[y.length-1].articleId!==n;return y.length<=1?l.default.createElement("div",null):i.some(function(e){return e.articleId===n})?l.default.createElement("div",{className:"course-view"},l.default.createElement(f.default,{title:o,link:a,promos:d(i,y,n,c,s),showUpNextBanner:g,upNextLabel:v,upNextPromo:h,subtitle:u,dataBBCContainer:"course-promos"})):l.default.createElement("div",null)};v.displayName="CourseView",v.propTypes={courseData:l.PropTypes.shape({courseTitle:l.PropTypes.string.isRequired,link:l.PropTypes.string.isRequired,listItems:l.PropTypes.arrayOf(l.PropTypes.shape({id:l.PropTypes.string,title:l.PropTypes.string,description:l.PropTypes.string,articleId:l.PropTypes.string,url:l.PropTypes.string})).isRequired}).isRequired,translationsData:l.PropTypes.shape({subtitle:l.PropTypes.string,currentPromoLabel:l.PropTypes.string,attributionProposition:l.PropTypes.string,upNextLabel:l.PropTypes.string}).isRequired,articleId:l.PropTypes.string.isRequired},v.defaultProps={};var y=v;t.default=y,e.exports=t.default},1827:function(e,t,r){function o(e){return(o="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}function i(e){return e&&e.__esModule?e:{default:e}}function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}r(1624),r(1e3),r(2047),r(1157),r(8534),r(5226),r(444),r(1076),r(5547),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(3524),r(9344),r(7037),r(3133);var u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=a(void 0);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=i?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(n,u,c):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n}(r(6689)),c=i(r(3024)),s=i(r(47)),l=i(r(9007)),f=function(e,t,r){return{"data-bbc-container":r,"data-bbc-metadata":JSON.stringify({CHD:"card::".concat(e)}),"data-bbc-title":t}},p=function(e){var t=e.title,r=e.subtitle,n=e.promos,o=e.link,i=e.showUpNextBanner,a=e.upNextLabel,p=e.upNextPromo,d=e.dataBBCContainer,v=e.withLargeTitle;return u.default.createElement("div",{className:"promo-slice ".concat(i?"promo-slice__with-up-next-banner":"")},u.default.createElement("div",{className:"promo-slice__content-container"},u.default.createElement("div",null,u.default.createElement("div",{className:"promo-slice__title-container"},u.default.createElement("a",{className:"promo-slice__title-link",href:o},u.default.createElement("h2",{className:"promo-slice__title ".concat(v?"promo-slice__with-large-title":"")},t))),r&&u.default.createElement("div",{className:"promo-slice__subTitle"},r),n&&n.length>=1&&u.default.createElement("div",null,u.default.createElement(s.default,{layout:"bitesize",asList:!0},n.map(function(e,t){return u.default.createElement(c.default,{label:e.label,title:e.title,imageUrl:(r=e.image,n=r.recipe,n?"https://".concat(n.replace("$recipe","{width}xn")):""),linkUrl:e.url,lazyload:!0,key:e.id,dataATIProps:f(t+1,e.title,d),brand:"bitesize",attribution:e.attribution,showChevronLink:e.showChevronLink});var r,n}))))),i&&u.default.createElement(l.default,{title:a,label:p.title,url:p.url,zid:p.articleId,imageUrl:"https://".concat(p.image.recipe.replace("$recipe","240xn"))}))};p.displayName="PromoSlice",p.propTypes={title:u.PropTypes.string.isRequired,subtitle:u.PropTypes.string,showUpNextBanner:u.PropTypes.bool,upNextLabel:u.PropTypes.string,upNextPromo:u.PropTypes.shape({id:u.PropTypes.string,title:u.PropTypes.string,description:u.PropTypes.string,articleId:u.PropTypes.string,image:u.PropTypes.shape({recipe:u.PropTypes.string}),url:u.PropTypes.string}),promos:u.PropTypes.arrayOf(u.PropTypes.shape({id:u.PropTypes.string,title:u.PropTypes.string,description:u.PropTypes.string,imagePid:u.PropTypes.string,url:u.PropTypes.string})),link:u.PropTypes.string.isRequired,dataBBCContainer:u.PropTypes.string,withLargeTitle:u.PropTypes.bool},p.defaultProps={promos:[],upNextPromo:{},showUpNextBanner:!1,upNextLabel:"Up next",subtitle:null,dataBBCContainer:"",withLargeTitle:!1};var d=p;t.default=d,e.exports=t.default},2667:function(e,t,r){function o(e){return(o="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}r(1624),r(1e3),r(2047),r(1157),r(8534),r(5226),r(444),r(1076),r(5547),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=i(void 0);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=a?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(n,u,c):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n}(r(6689)),c=r(1912),s=r(6178),l=(a=r(1827))&&a.__esModule?a:{default:a},f=function(e){var t=e.subjectData,r=t.meta,n=t.body,o=e.translationsData.body,i=e.subjectId,a=e.language;if(200!==r.responseCode)return u.default.createElement("div",null);var f="/bitesize/subjects/".concat(i,"/courses"),p=function(e,t){return JSON.parse(e)[t]}(o,a),d=p.title,v=p.subtitle,y=p.attributionLabel,h=function(e,t,r){var n=(0,c.parseSubjectCourses)(e,r),o=(0,s.getPromoSequenceForSubject)(n),i=o.promos;return o.showAllCoursesPromo&&i.push(function(e){return{id:"all-courses",title:"All courses",image:{recipe:"ichef.bbci.co.uk/images/ic/$recipe/p09qs3c7.png"},url:"/bitesize/subjects/".concat(e,"/courses"),showChevronLink:!0}}(t)),i}(n.courses,n.programmeOfStudyId,y);return u.default.createElement("div",{className:"subject-onward-journey"},u.default.createElement(l.default,{title:d,subtitle:v,link:f,promos:h,dataBBCContainer:"course-promos",withLargeTitle:!0}))};f.displayName="SubjectOnwardJourney",f.propTypes={subjectId:u.PropTypes.string.isRequired,subjectData:u.PropTypes.shape({meta:u.PropTypes.shape({responseCode:u.PropTypes.number}).isRequired,body:u.PropTypes.shape({programmeOfStudyId:u.PropTypes.string,courses:u.PropTypes.arrayOf(u.PropTypes.shape({id:u.PropTypes.string,courseTitle:u.PropTypes.string,seoTitle:u.PropTypes.string,description:u.PropTypes.string,numberOfListItems:u.PropTypes.number,image:u.PropTypes.shape({recipe:u.PropTypes.string,alt:u.PropTypes.string})})).isRequired})}).isRequired,translationsData:u.PropTypes.shape({meta:u.PropTypes.shape({responseCode:u.PropTypes.number}).isRequired,body:u.PropTypes.string}).isRequired,language:u.PropTypes.string.isRequired};var p=f;t.default=p,e.exports=t.default},1452:function(e,t,r){function o(e){return(o="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}r(1624),r(1e3),r(2047),r(1157),r(8534),r(5226),r(444),r(1076),r(5547),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=i(void 0);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=a?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(n,u,c):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n}(r(6689)),c=(a=r(7991))&&a.__esModule?a:{default:a},s=r(1912),l=function(e){var t=e.topicData,r=t.meta,n=t.body,o=e.translationsData.body,i=e.language,a=e.articleId;if(200!==r.responseCode)return u.default.createElement("div",null);if(0===n.content.length)return u.default.createElement("div",null);var l=(0,s.parseTopic)(n),f=JSON.parse(o)[i];return u.default.createElement(c.default,{courseData:l,articleId:a,translationsData:f})};l.propTypes={topicData:u.PropTypes.shape({meta:u.PropTypes.shape({responseCode:u.PropTypes.number}).isRequired,body:u.PropTypes.shape({label:u.PropTypes.string.isRequired,content:u.PropTypes.arrayOf(u.PropTypes.shape({id:u.PropTypes.string,label:u.PropTypes.string,description:u.PropTypes.string,guideId:u.PropTypes.string,url:u.PropTypes.string})).isRequired,id:u.PropTypes.string.isRequired})}).isRequired,translationsData:u.PropTypes.shape({meta:u.PropTypes.shape({responseCode:u.PropTypes.number}).isRequired,body:u.PropTypes.string}).isRequired,language:u.PropTypes.string.isRequired,articleId:u.PropTypes.string.isRequired},l.defaultProps={};var f=l;t.default=f,e.exports=t.default},2260:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSubjectData=t.getTopicData=t.getCourseData=void 0,t.getCourseData=function(e){return{courseData:{uri:{data:"bbc-morph-bitesize-courses-data",courseId:e},requireSuccess:!1,updates:!1},translationsData:{uri:{service:"bitesize-files",path:"/courses/in-page-courses.json"},updates:!1,requireSuccess:!0}}},t.getTopicData=function(e){return{topicData:{uri:{data:"bbc-morph-bitesize-topics-for-web",zid:e},requireSuccess:!1,updates:!1},translationsData:{uri:{service:"bitesize-files",path:"/courses/in-page-courses.json"},updates:!1,requireSuccess:!0}}},t.getSubjectData=function(e){return{subjectData:{uri:{data:"bbc-morph-bitesize-courses-data",subjectId:e},requireSuccess:!1,updates:!1},translationsData:{uri:{service:"bitesize-files",path:"/courses/subject-courses.json"},updates:!1,requireSuccess:!0}}}},8767:function(e,t,r){function o(e){return(o="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}function i(e){return e&&e.__esModule?e:{default:e}}function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(9616),r(1624),r(1e3),r(2047),r(1157),r(8534),r(5226),r(444),r(1076),r(5547),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(3064);var p=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=a(void 0);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=i?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(n,u,c):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n}(r(6689)),d=i(r(6618)),v=r(2260),y=r(5236),h=i(r(1452)),g=i(r(9709)),b=i(r(2667)),m=d.default.create(g.default,{data:function(e){var t=e.courseId;return(0,v.getCourseData)(t)}}),x=d.default.create(h.default,{data:function(e){var t=e.topicId;return(0,v.getTopicData)(t)}}),w=d.default.create(b.default,{data:function(e){var t=e.subjectId;return(0,v.getSubjectData)(t)}}),O=function(e){function t(){return u(this,t),a.apply(this,arguments)}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e);var r,n,o,i,a=(o=t,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(i){var r=f(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return l(this,e)});return r=t,(n=[{key:"render",value:function(){var e=this.props,t=e.courseId,r=e.articleId,n=e.topicId,o=e.priorityCourseId,i=e.hasTopicOnwardJourneyEnabled,a=e.topicJourney,u=e.subjectId,c=e.language,s=(0,y.getOnwardJourney)({courseId:t,topicId:n,subjectId:u,hasTopicOnwardJourneyEnabled:i,priorityCourseId:o,topicJourney:a}),l=s.id,f=s.topicOnwardJourney,d=s.courseOnwardJourney,v=s.subjectOnwardJourney;return d?p.default.createElement(m,{courseId:l,articleId:r,language:c}):f?p.default.createElement(x,{topicId:l,articleId:r,language:c}):v?p.default.createElement(w,{subjectId:u,language:c}):p.default.createElement("div",null)}}])&&c(r.prototype,n),t}(p.Component);O.propTypes={articleId:p.PropTypes.string,courseId:p.PropTypes.string,priorityCourseId:p.PropTypes.string,topicId:p.PropTypes.string,hasTopicOnwardJourneyEnabled:p.PropTypes.string,topicJourney:p.PropTypes.string,subjectId:p.PropTypes.string,language:p.PropTypes.string},O.defaultProps={articleId:void 0,courseId:void 0,priorityCourseId:void 0,topicId:void 0,hasTopicOnwardJourneyEnabled:"false",topicJourney:"false",subjectId:void 0,language:"en-GB"};var P=O;t.default=P,e.exports=t.default},5236:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getOnwardJourney=void 0,t.getOnwardJourney=function(e){var t=e.courseId,r=e.topicId,n=e.subjectId,o=e.hasTopicOnwardJourneyEnabled,i=e.priorityCourseId,a=e.topicJourney,u=function(e){var t=e.priorityCourseId;return e.courseId||(t&&"true"!==e.topicJourney?t:null)}({topicJourney:a,courseId:t,priorityCourseId:i});if(u)return{id:u,courseOnwardJourney:!0};var c=function(e){var t=e.topicId;return"true"!==e.topicJourney&&"true"!==e.hasTopicOnwardJourneyEnabled||!t?null:t}({topicId:r,hasTopicOnwardJourneyEnabled:o,topicJourney:a});if(c)return{id:c,topicOnwardJourney:!0};var s={subjectId:n}.subjectId||null;return s?{id:s,subjectOnwardJourney:!0}:{}}},1912:function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(5128),r(5226),r(3275),r(9270),Object.defineProperty(t,"__esModule",{value:!0}),t.parseSubjectCourses=t.parseCourse=t.parseTopic=void 0,r(4011),r(3133),r(3114),r(444),r(1076),t.parseTopic=function(e){var t;return function(e){return{id:e.id,courseTitle:e.label,link:"/bitesize/topics/".concat(e.id),listItems:e.content.map(function(e){return{id:e.id,title:e.label,image:e.image,articleId:e.guideId,url:"".concat(e.url,"?topicJourney=true")}})}}(o(o({},t=e),{},{content:t.content.filter(function(e){return"promo"===e.type&&"guide"===e.promoType})}))},t.parseCourse=function(e){var t=e.id,r=e.courseTitle,n=e.listItems;return{id:t,courseTitle:r,link:"/bitesize/courses/".concat(t),listItems:n.map(function(e){return o(o({},e),{},{url:"".concat(e.url,"?course=").concat(t)})})}},t.parseSubjectCourses=function(e,t){return e&&e.length>=1?e.map(function(e){return{id:e.id,title:e.courseTitle,description:e.description,image:e.image,url:"/bitesize/courses/".concat(e.id),attribution:"".concat(e.numberOfListItems," ").concat(t)}}):[]}},6178:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.getPromoSequenceForSubject=t.getPromoPosition=t.getNextPromo=t.getPromoSequence=void 0,r(4011),r(6257);var n=function(e,t){return e.indexOf(e.filter(function(e){return e.articleId===t})[0])};t.getNextPromo=function(e,t){return e[n(e,t)+1]},t.getPromoPosition=function(e,t){return n(e,t.articleId)+1},t.getPromoSequence=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,o=n(e,t),i=e.length,a=r-4;if(o<=1||i<=r)return e.slice(0,r);if(o>=2&&o<=i-3){var u=o-a-1;return e.slice(u,u+r)}if(o===i-2){var c=o-a-2;return e.slice(c,c+r)}var s=o-a-3;return e.slice(s,s+r)},t.getPromoSequenceForSubject=function(e){return e&&e.length>=1&&e.length<=4?{promos:e,showAllCoursesPromo:!1}:e&&e.length>=5?{promos:e.slice(0,3),showAllCoursesPromo:!0}:{promos:[],showAllCoursesPromo:!1}}},7537:function(e){e.exports=r(149)},8765:function(e){e.exports=r(150)},8213:function(e){e.exports=r(151)},3761:function(e){e.exports=r(152)},5370:function(e){e.exports=r(153)},7880:function(e){e.exports=r(155)},4428:function(e){e.exports=r(156)},9548:function(e){e.exports=r(157)},9003:function(e){e.exports=r(159)},3114:function(e){e.exports=r(75)},4011:function(e){e.exports=r(100)},1624:function(e){e.exports=r(57)},3133:function(e){e.exports=r(62)},6257:function(e){e.exports=r(105)},5226:function(e){e.exports=r(96)},9270:function(e){e.exports=r(102)},3064:function(e){e.exports=r(81)},5128:function(e){e.exports=r(99)},1e3:function(e){e.exports=r(80)},9616:function(e){e.exports=r(74)},3524:function(e){e.exports=r(59)},2047:function(e){e.exports=r(86)},7037:function(e){e.exports=r(103)},9344:function(e){e.exports=r(104)},1076:function(e){e.exports=r(79)},5547:function(e){e.exports=r(97)},444:function(e){e.exports=r(76)},1157:function(e){e.exports=r(88)},3275:function(e){e.exports=r(101)},8534:function(e){e.exports=r(93)},5223:function(e){e.exports=r(160)},6618:function(e){e.exports=r(161)},580:function(e){e.exports=r(162)},6689:function(e){e.exports=r(165)}},i={},a=function e(t){var r=i[t];if(void 0!==r)return r.exports;var n=i[t]={exports:{}};return o[t](n,n.exports,e),n.exports}(8767);e.exports=a}()}).call(t,r(61))},function(e,t,r){var n=r(5),o=r(42),i=r(29),a=r(111),u=r(3),c=u("toPrimitive");e.exports=function(e,t){if(!n(e)||o(e))return e;var r,u=i(e,c);if(u){if(void 0===t&&(t="default"),r=u.call(e,t),!n(r)||o(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},function(e,t,r){var n=r(13);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n=r(2),o=r(5);e.exports=function(e,t){var r,i;if("string"===t&&n(r=e.toString)&&!o(i=r.call(e)))return i;if(n(r=e.valueOf)&&!o(i=r.call(e)))return i;if("string"!==t&&n(r=e.toString)&&!o(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(10),o=r(16),i=r(70),a=function(e){return function(t,r,a){var u,c=n(t),s=o(c.length),l=i(a,s);if(e&&r!=r){for(;s>l;)if((u=c[l++])!=u)return!0}else for(;s>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,r){var n=r(37),o=r(52),i=r(5),a=r(3),u=a("species");e.exports=function(e){var t;return n(e)&&(t=e.constructor,o(t)&&(t===Array||n(t.prototype))?t=void 0:i(t)&&null===(t=t[u])&&(t=void 0)),void 0===t?Array:t}},function(e,t,r){var n=r(52),o=r(64);e.exports=function(e){if(n(e))return e;throw TypeError(o(e)+" is not a constructor")}},function(e,t,r){var n=r(8),o=r(9),i=r(7),a=r(40);e.exports=n?Object.defineProperties:function(e,t){i(e);for(var r,n=a(t),u=n.length,c=0;u>c;)o.f(e,r=n[c++],t[r]);return e}},function(e,t,r){var n=r(13);e.exports=n("document","documentElement")},function(e,t,r){"use strict";var n=r(30),o=r(5),i=[].slice,a={},u=function(e,t,r){if(!(t in a)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";a[t]=Function("C,a","return new C("+n.join(",")+")")}return a[t](e,r)};e.exports=Function.bind||function(e){var t=n(this),r=i.call(arguments,1),a=function(){var n=r.concat(i.call(arguments));return this instanceof a?u(t,n.length,n):t.apply(e,n)};return o(t.prototype)&&(a.prototype=t.prototype),a}},function(e,t,r){var n=r(1);e.exports=n},function(e,t,r){"use strict";var n=r(53),o=r(38);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,r){r(55)("toStringTag")},function(e,t,r){var n=r(1);r(19)(n.JSON,"JSON",!0)},function(e,t,r){r(19)(Math,"Math",!0)},function(e,t,r){var n=r(3),o=r(17),i=r(9),a=n("unscopables"),u=Array.prototype;void 0==u[a]&&i.f(u,a,{configurable:!0,value:o(null)}),e.exports=function(e){u[a][e]=!0}},function(e,t,r){"use strict";var n=r(84).IteratorPrototype,o=r(17),i=r(21),a=r(19),u=r(25),c=function(){return this};e.exports=function(e,t,r){var s=t+" Iterator";return e.prototype=o(n,{next:i(1,r)}),a(e,s,!1,!0),u[s]=c,e}},function(e,t,r){var n=r(2);e.exports=function(e){if("object"==typeof e||n(e))return e;throw TypeError("Can't set "+String(e)+" as a prototype")}},function(e,t,r){var n=r(0);e.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,r){"use strict";var n=r(4),o=r(1),i=r(71),a=r(12),u=r(58),c=r(90),s=r(92),l=r(2),f=r(5),p=r(0),d=r(131),v=r(19),y=r(132);e.exports=function(e,t,r){var h=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),b=h?"set":"add",m=o[e],x=m&&m.prototype,w=m,O={},P=function(e){var t=x[e];a(x,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!f(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!f(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!f(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(i(e,!l(m)||!(g||x.forEach&&!p(function(){(new m).entries().next()}))))w=r.getConstructor(t,e,h,b),u.enable();else if(i(e,!0)){var _=new w,j=_[b](g?{}:-0,1)!=_,T=p(function(){_.has(1)}),S=d(function(e){new m(e)}),E=!g&&p(function(){for(var e=new m,t=5;t--;)e[b](t,t);return!e.has(-0)});S||(w=t(function(t,r){s(t,w,e);var n=y(new m,t,w);return void 0!=r&&c(r,n[b],{that:n,AS_ENTRIES:h}),n}),w.prototype=x,x.constructor=w),(T||E)&&(P("delete"),P("has"),h&&P("get")),(E||j)&&P(b),g&&x.clear&&delete x.clear}return O[e]=w,n({global:!0,forced:w!=m},O),v(w,e),g||r.setStrong(w,e,h),w}},function(e,t,r){var n=r(3),o=r(25),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,r){var n=r(30),o=r(7),i=r(91);e.exports=function(e,t){var r=arguments.length<2?i(e):t;if(n(r))return o(r.call(e));throw TypeError(String(e)+" is not iterable")}},function(e,t,r){var n=r(7),o=r(29);e.exports=function(e,t,r){var i,a;n(e);try{if(!(i=o(e,"return"))){if("throw"===t)throw r;return r}i=i.call(e)}catch(e){a=!0,i=e}if("throw"===t)throw r;if(a)throw i;return n(i),r}},function(e,t,r){var n=r(3),o=n("iterator"),i=!1;try{var a=0,u={next:function(){return{done:!!a++}},return:function(){i=!0}};u[o]=function(){return this},Array.from(u,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var n={};n[o]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}},function(e,t,r){var n=r(2),o=r(5),i=r(85);e.exports=function(e,t,r){var a,u;return i&&n(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&i(e,u),e}},function(e,t,r){"use strict";var n=r(89),o=r(58).getWeakData,i=r(7),a=r(5),u=r(92),c=r(90),s=r(24),l=r(6),f=r(15),p=f.set,d=f.getterFor,v=s.find,y=s.findIndex,h=0,g=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},m=function(e,t){return v(e.entries,function(e){return e[0]===t})};b.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var r=m(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=y(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,s){var f=e(function(e,n){u(e,f,t),p(e,{type:t,id:h++,frozen:void 0}),void 0!=n&&c(n,e[s],{that:e,AS_ENTRIES:r})}),v=d(t),y=function(e,t,r){var n=v(e),a=o(i(t),!0);return!0===a?g(n).set(t,r):a[n.id]=r,e};return n(f.prototype,{delete:function(e){var t=v(this);if(!a(e))return!1;var r=o(e);return!0===r?g(t).delete(e):r&&l(r,t.id)&&delete r[t.id]},has:function(e){var t=v(this);if(!a(e))return!1;var r=o(e);return!0===r?g(t).has(e):r&&l(r,t.id)}}),n(f.prototype,r?{get:function(e){var t=v(this);if(a(e)){var r=o(e);return!0===r?g(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return y(this,e,t)}}:{add:function(e){return y(this,e,!0)}}),f}}},function(e,t,r){"use strict";var n=r(4),o=r(26),i=r(10),a=r(98),u=[].join,c=o!=Object,s=a("join",",");n({target:"Array",proto:!0,forced:c||!s},{join:function(e){return u.call(i(this),void 0===e?",":e)}})},function(e,t,r){var n=r(8),o=r(49).EXISTS,i=r(9).f,a=Function.prototype,u=a.toString,c=/^\s*function ([^ (]*)/;n&&!o&&i(a,"name",{configurable:!0,get:function(){try{return u.call(this).match(c)[1]}catch(e){return""}}})},function(e,t,r){var n=r(4),o=r(137);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,r){"use strict";var n=r(8),o=r(0),i=r(40),a=r(51),u=r(41),c=r(11),s=r(26),l=Object.assign,f=Object.defineProperty;e.exports=!l||o(function(){if(n&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach(function(e){t[e]=e}),7!=l({},e)[r]||i(l({},t)).join("")!=o})?function(e,t){for(var r=c(e),o=arguments.length,l=1,f=a.f,p=u.f;o>l;)for(var d,v=s(arguments[l++]),y=f?i(v).concat(f(v)):i(v),h=y.length,g=0;h>g;)d=y[g++],n&&!p.call(v,d)||(r[d]=v[d]);return r}:l},function(e,t,r){"use strict";var n=r(24).forEach,o=r(98),i=o("forEach");e.exports=i?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,r){var n=r(22),o=r(18),i=/"/g;e.exports=function(e,t,r,a){var u=o(n(e)),c="<"+t;return""!==r&&(c+=" "+r+'="'+o(a).replace(i,"&quot;")+'"'),c+">"+u+"</"+t+">"}},function(e,t,r){var n=r(0);e.exports=function(e){return n(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},function(e,t,r){"use strict";var n=r(7);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){var n=r(0),o=r(1),i=o.RegExp;t.UNSUPPORTED_Y=n(function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),t.BROKEN_CARET=n(function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},function(e,t,r){var n=r(0),o=r(1),i=o.RegExp;e.exports=n(function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})},function(e,t,r){var n=r(0),o=r(1),i=o.RegExp;e.exports=n(function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},function(e,t,r){"use strict";r(59);var n=r(12),o=r(60),i=r(0),a=r(3),u=r(14),c=a("species"),s=RegExp.prototype;e.exports=function(e,t,r,l){var f=a(e),p=!i(function(){var t={};return t[f]=function(){return 7},7!=""[e](t)}),d=p&&!i(function(){var t=!1,r=/a/;return"split"===e&&(r={},r.constructor={},r.constructor[c]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return t=!0,null},r[f](""),!t});if(!p||!d||r){var v=/./[f],y=t(f,""[e],function(e,t,r,n,i){var a=t.exec;return a===o||a===s.exec?p&&!i?{done:!0,value:v.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}});n(String.prototype,e,y[0]),n(s,f,y[1])}l&&u(s[f],"sham",!0)}},function(e,t,r){"use strict";var n=r(87).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},function(e,t,r){var n=r(11),o=Math.floor,i="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,c,s,l){var f=r+e.length,p=c.length,d=u;return void 0!==s&&(s=n(s),d=a),i.call(l,d,function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(f);case"<":a=s[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>p){var l=o(u/10);return 0===l?n:l<=p?void 0===c[l-1]?i.charAt(1):c[l-1]+i.charAt(1):n}a=c[u-1]}return void 0===a?"":a})}},function(e,t,r){var n=r(7),o=r(2),i=r(27),a=r(60);e.exports=function(e,t){var r=e.exec;if(o(r)){var u=r.call(e,t);return null!==u&&n(u),u}if("RegExp"===i(e))return a.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")}},function(e,t){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function r(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),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function r(){return e.exports=r=Object.assign||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},e.exports.default=e.exports,e.exports.__esModule=!0,r.apply(this,arguments)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}var o=r(154);e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,r(t,n)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function r(e){return e&&e.__esModule?e:{default:e}}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=a?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}var i=r(106).default;e.exports=o,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){function n(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}var o=r(106).default,i=r(158);e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var n,o;!function(){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var u in n)i.call(n,u)&&n[u]&&e.push(u);else e.push(n.toString())}}return e.join(" ")}var i={}.hasOwnProperty;void 0!==e&&e.exports?(r.default=r,e.exports=r):(n=[],void 0!==(o=function(){return r}.apply(t,n))&&(e.exports=o))}()},function(e,t,r){var n;!function(o,i){"use strict";var a=function(){return i.addEventListener?function(e,t,r){return e.addEventListener(t,r,!1)}:function(e,t,r){return e.attachEvent("on"+t,r)}}(),u=[96,130,165,200,235,270,304,340,375,410,445,485,520,555,590,625,660,695,736],c="function"==typeof Object.keys?Object.keys:function(e){var t,r=[];for(t in e)r.push(t);return r},s=function(e,t){for(var r=0,n=e.length,o=[];r<n;r++)o[r]=t(e[r],r);return o},l=function(e){return e},f=function(){},p=function(){return!0},d=function(e,t){var r;return function(){var n=this,o=arguments,i=function(){r=null,e.apply(n,o)};clearTimeout(r),r=setTimeout(i,t)}},v=function(e,t){var r=this,n=i;t=t||{},void 0!==e&&("string"==typeof e?(t.selector=e,e=void 0):void 0===e.length&&(t=e,e=void 0)),this.viewportHeight=n.documentElement.clientHeight,this.selector=e?null:t.selector||".delayed-image-load",this.className=t.className||"image-replace",this.gif=n.createElement("img"),this.gif.src="data:image/gif;base64,R0lGODlhEAAJAIAAAP///wAAACH5BAEAAAAALAAAAAAQAAkAAAIKhI+py+0Po5yUFQA7",this.gif.className=this.className,this.gif.alt="",this.lazyloadOffset=t.lazyloadOffset||0,this.scrollDelay=t.scrollDelay||250,this.onResize=!t.hasOwnProperty("onResize")||t.onResize,this.lazyload=!!t.hasOwnProperty("lazyload")&&t.lazyload,this.scrolled=!1,this.availablePixelRatios=t.availablePixelRatios||[1,2],this.availableWidths=t.availableWidths||u,this.onImagesReplaced=t.onImagesReplaced||f,this.widthsMap={},this.refreshPixelRatio(),this.widthInterpolator=t.widthInterpolator||l,this.gif.removeAttribute("height"),this.gif.removeAttribute("width"),"function"!=typeof this.availableWidths&&("number"==typeof this.availableWidths.length?this.widthsMap=v.createWidthsMap(this.availableWidths,this.widthInterpolator,this.devicePixelRatio):(this.widthsMap=this.availableWidths,this.availableWidths=c(this.availableWidths)),this.availableWidths=this.availableWidths.sort(function(e,t){return e-t})),this.divs=[],this.add(e||this.selector),this.ready(t.onReady),setTimeout(function(){r.init()},0)};v.prototype.add=function(e){e=e||this.selector;var t="string"==typeof e?i.querySelectorAll(e):e;if(t&&t.length){var r=s(t,l);this.changeDivsToEmptyImages(r),this.divs=this.divs.concat(r)}},v.prototype.scrollCheck=function(){var e=this,t=0,r=[];this.scrolled&&(s(this.divs,function(n){e.isPlaceholder(n)&&(++t,e.isThisElementOnScreen(n)&&r.push(n))}),0===t&&o.clearInterval(e.interval),this.changeDivsToEmptyImages(r),this.scrolled=!1)},v.prototype.init=function(){var e=this;this.initialized=!0;var t=p;this.lazyload?(this.registerScrollEvent(),this.scrolled=!0,e.scrollCheck(),t=function(t){return!1===e.isPlaceholder(t)}):this.checkImagesNeedReplacing(this.divs),this.onResize&&this.registerResizeEvent(t),this.onReady()},v.prototype.ready=function(e){this.onReady=e||f},v.prototype.createGif=function(e){if(e.className.match(new RegExp("(^| )"+this.className+"( |$)")))return e;var t=e.getAttribute("data-class"),r=e.getAttribute("data-width"),n=this.gif.cloneNode(!1);return r&&(n.width=r,n.setAttribute("data-width",r)),n.className=(t?t+" ":"")+this.className,n.setAttribute("data-src",e.getAttribute("data-src")),n.setAttribute("alt",e.getAttribute("data-alt")||e.alt||this.gif.alt),e.parentNode.replaceChild(n,e),n},v.prototype.changeDivsToEmptyImages=function(e){var t=this;s(e,function(r,n){e[n]=t.createGif(r)}),this.initialized&&this.checkImagesNeedReplacing(e)},v.prototype.isPlaceholder=function(e){return e.src===this.gif.src},v.prototype.isThisElementOnScreen=function(e){var t=0,r=v.getPageOffset()+this.lazyloadOffset;if(e.offsetParent)do{t+=e.offsetTop}while(e=e.offsetParent);return t<this.viewportHeight+r},v.prototype.checkImagesNeedReplacing=function(e,t){var r=this;t=t||p,this.isResizing||(this.isResizing=!0,this.refreshPixelRatio(),s(e,function(e){t(e)&&r.replaceImagesBasedOnScreenDimensions(e)}),this.isResizing=!1,this.onImagesReplaced(e))},v.prototype.replaceImagesBasedOnScreenDimensions=function(e){var t,r;r=v.getNaturalWidth(e),t="function"==typeof this.availableWidths?this.availableWidths(e):this.determineAppropriateResolution(e),e.width=t,!this.isPlaceholder(e)&&t<=r||(e.src=this.changeImageSrcToUseNewImageDimensions(e.getAttribute("data-src"),t),e.removeAttribute("width"),e.removeAttribute("height"))},v.prototype.determineAppropriateResolution=function(e){return v.getClosestValue(e.getAttribute("data-width")||e.parentNode.clientWidth,this.availableWidths)},v.prototype.refreshPixelRatio=function(){this.devicePixelRatio=v.getClosestValue(v.getPixelRatio(),this.availablePixelRatios)},v.prototype.changeImageSrcToUseNewImageDimensions=function(e,t){return e.replace(/{width}/g,v.transforms.width(t,this.widthsMap)).replace(/{pixel_ratio}/g,v.transforms.pixelRatio(this.devicePixelRatio))},v.getPixelRatio=function(e){return(e||o).devicePixelRatio||1},v.createWidthsMap=function(e,t,r){for(var n={},o=e.length;o--;)n[e[o]]=t(e[o],r);return n},v.transforms={pixelRatio:function(e){return 1===e?"":"-"+e+"x"},width:function(e,t){return t[e]||e}},v.getClosestValue=function(e,t){var r=t.length,n=t[r-1];for(e=parseFloat(e);r--;)e<=t[r]&&(n=t[r]);return n},v.prototype.registerResizeEvent=function(e){var t=this;a(o,"resize",d(function(){t.checkImagesNeedReplacing(t.divs,e)},100))},v.prototype.registerScrollEvent=function(){var e=this;this.scrolled=!1,this.interval=o.setInterval(function(){e.scrollCheck()},e.scrollDelay),a(o,"scroll",function(){e.scrolled=!0}),a(o,"resize",function(){e.viewportHeight=i.documentElement.clientHeight,e.scrolled=!0})},v.getPageOffsetGenerator=function(e){return e?function(){return o.pageYOffset}:function(){return i.documentElement.scrollTop}},v.getNaturalWidth=function(){return"naturalWidth"in new Image?function(e){return e.naturalWidth}:function(e){var t=i.createElement("img");return t.src=e.src,t.width}}(),v.getPageOffset=v.getPageOffsetGenerator(Object.prototype.hasOwnProperty.call(o,"pageYOffset")),v.applyEach=s,v.addEvent=a,v.debounce=d,"object"==typeof e&&"object"==typeof e.exports?e.exports=t=v:void 0!==(n=function(){return v}.call(t,r,t,e))&&(e.exports=n)}(window,document)},function(e,t){e.exports={create:function(e,t){return Morph.createContainerWithCaller("bbc-morph-bitesize-course-promo-view@3.6.3",e,t)}}},function(e,t,r){e.exports=r(163)()},function(e,t,r){"use strict";function n(){}function o(){}var i=r(164);o.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,o,a){if(a!==i){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:n};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=React}]); //# sourceMappingURL=bundle.js.map; });</script><script>Morph.toInit.payloads.push(function() { Morph.setPayload('/data/bbc-morph-bitesize-courses-data/subjectId/zvc9q6f/version/2.1.0', {"meta":{"responseCode":404,"errorMessage":"Courses not found","headers":{"content-type":"text\/plain"}},"body":null}); });</script><script>Morph.toInit.payloads.push(function() { Morph.setPayload('/path/%2Fcourses%2Fsubject-courses.json/service/bitesize-files/version/undefined', {"body":"{\n \"en-GB\": {\n \"title\": \"Courses\",\n \"subtitle\": \"These courses will help you through a topic one step at a time.\",\n \"attributionLabel\": \"GUIDES\"\n },\n \"cy-GB\": {\n \"title\": \"Cyrsiau\",\n \"subtitle\": \"Bydd y cyrsiau hyn yn dy helpu i weithio ar bwnc cam wrth gam.\",\n \"attributionLabel\": \"O GANLLAWIAU\"\n },\n \"ga-GB\": {\n \"title\": \"Cúrsaí\",\n \"subtitle\": \"Cuideoidh na treoracha seo tú a thógáil céim ar chéim tríd topaic.\",\n \"attributionLabel\": \"TREOIR\"\n },\n \"gd-GB\": {\n \"title\": \"Cùrsaichean\",\n \"subtitle\": \"Bheir na cùrsaichean seo thu tro na cuspairean ceum air cheum.\",\n \"attributionLabel\": \"IÙIL\"\n }\n}\n","meta":{"responseCode":200,"errorMessage":null,"headers":{"x-amz-id-2":"Isz8uv3GKlxGqUmEXG667Kfq5c4A\/6JclonoNnbbo6Y+nzM3Vd+k0Pb1a\/XwnuDam6eFlaj7MLU=","x-amz-request-id":"EB09HYKQHNXPG5TF","last-modified":"Tue, 31 Aug 2021 13:09:22 GMT","etag":"\"e423195d5878ee87b86f8798f17cf513\"","cache-control":"max-age=0","x-amz-version-id":"7MZYBPhM7BX_Bh9qnPcwYcweGEkLPC3c","accept-ranges":"bytes","content-type":"application\/json","server":"AmazonS3","content-length":"718","connection":"keep-alive","nel":"{\"report_to\":\"default\",\"max_age\": 604800,\"include_subdomains\":true,\"failure_fraction\":0.01}","report-to":"{\"group\":\"default\",\"max_age\":3600,\"endpoints\":[ {\"url\":\"https:\/\/europe-west1-bbc-otg-traf-mgr-bq-prod-4591.cloudfunctions.net\/report-endpoint\",\"priority\":1} ],\"include_subdomains\":true}","timing-allow-origin":"https:\/\/web.archive.org\/web\/20220121005457\/https:\/\/www.bbc.co.uk, https:\/\/www.bbc.com","access-control-max-age":"300","access-control-allow-credentials":"false","access-control-allow-headers":"*","access-control-allow-methods":"HEAD,GET","access-control-allow-origin":"*"}}}); });</script><script>Morph.toInit.registers.push(function() { Morph.register({"view":"bbc-morph-bitesize-course-promo-view","subjectId":"zvc9q6f","language":"en-GB","version":"3.6.3","_mrrVersion":"2.2.1"},'u4674157445950287'); });</script><script>Morph.init = function() { if (!Morph.initCalled) { Morph.markPerformance('morph-init'); Morph.initCalled = true; requirejs.config({ paths: { 'morph/react' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-react/1.0.0/react.min', 'morph/react-dom' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-react-dom/1.0.0/react-dom.min', 'morph/es5-shim' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-shim.min', 'morph/es5-sham' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-sham.min', 'morph/module/morph': '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/morph/5.3.1/bundle', 'live-push' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/morph-push-proxy-client/1.0.13/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(); } /* u4674157445950287 */</script><script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-bitesize-programme-of-study-view@1.24.0"]={"@bbc/bitesize-branding":"10.2.0","bbc-morph-bitesize-core-components":"13.14.0","bbc-morph-bitesize-subject-topics":"1.4.1","lodash.assign":"4.2.0","morph-container":"4.0.0",react:"0.14.7"},function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){Morph.modules["bbc-morph-bitesize-programme-of-study-view@1.24.0"]=n(1)},function(t,e,n){t.exports=n(2)},function(t,e,n){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},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=1)}([function(t,e){t.exports=n(3)},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="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 o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(i=function(t){return t?n:e})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=i(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var a=u?Object.getOwnPropertyDescriptor(t,c):null;a&&(a.get||a.set)?Object.defineProperty(o,c,a):o[c]=t[c]}return o.default=t,n&&n.set(t,o),o}(n(0)),c=o(n(2)),a=o(n(3)),f=function(t){var e=t.content.body,n=t.language,r=t.subdirectory,o=e.topics;return u.default.createElement(a.default,{topics:o,language:n,urlBasePath:"/".concat(r)})};f.displayName="TopicsContainer",f.defaultProps={language:"en-GB",subdirectory:"bitesize"},f.propTypes={content:u.PropTypes.shape({body:u.PropTypes.shape({topics:u.PropTypes.arrayOf(u.PropTypes.object).isRequired}).isRequired}).isRequired,language:u.PropTypes.string,subdirectory:u.PropTypes.string};var s=c.default.create(f,{data:function(t){return{content:{uri:{data:"bbc-morph-bitesize-subject-topics",zid:t.zid},updates:!1}}}});e.default=s,t.exports=e.default},function(t,e){t.exports=n(4)},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="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 o(t){return t&&t.__esModule?t:{default:t}}function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(i=function(t){return t?n:e})(t)}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=i(e);if(n&&n.has(t))return n.get(t);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var a=u?Object.getOwnPropertyDescriptor(t,c):null;a&&(a.get||a.set)?Object.defineProperty(o,c,a):o[c]=t[c]}return o.default=t,n&&n.set(t,o),o}(n(0)),a=o(n(4)),f=o(n(5)),s=function(t){var e=t.topics,n=t.language,r=t.urlBasePath;return c.default.createElement("div",{className:"topics"},c.default.createElement("h2",{className:"topics__title"},(0,f.default)(n)),e.map(function(t){var e={label:t.label,id:t.id,topics:t.subTopics,hasTopics:t.subTopics.length>0,numberOfClassClips:t.clipsCount,numberOfSubTopicsClassClips:t.subTopicsClipsCount,language:n,learnerGuides:t.content,urlBasePath:r};return c.default.createElement(a.default,u({},e,{key:"topic-".concat(t.id)}))}))};s.displayName="Topics",s.defaultProps={topics:[],language:"en-GB"},s.propTypes={topics:c.PropTypes.arrayOf(c.PropTypes.shape({id:c.PropTypes.string,label:c.PropTypes.string,subTopics:c.PropTypes.arrayOf(c.PropTypes.object),clipsCount:c.PropTypes.number,subTopicsClipsCount:c.PropTypes.number,content:c.PropTypes.arrayOf(c.PropTypes.object)})),language:c.PropTypes.string,urlBasePath:c.PropTypes.string.isRequired};var l=s;e.default=l,t.exports=e.default},function(t,e){t.exports=n(5)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={"en-GB":"Topics","cy-GB":"Is-bynciau","ga-GB":"Topaicí","gd-GB":"Fo-chuspairean"},o=function(t){return r[t]||r["en-GB"]};e.default=o,t.exports=e.default}])},function(t,e){t.exports=React},function(t,e){t.exports={create:function(t,e){return Morph.createContainerWithCaller("bbc-morph-bitesize-programme-of-study-view@1.24.0",t,e)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(6),n(40);var o=r(n(3)),i=(r(n(41)),r(n(51))),u=r(n(171)),c=r(n(175)),a=function(t){var e=t.label,n=t.id,r=t.topics,a=t.hasTopics,f=t.numberOfClassClips,s=t.numberOfSubTopicsClassClips,l=t.language,p=t.learnerGuides,y=t.urlBasePath;return o.default.createElement("section",{className:"topic",key:n},o.default.createElement("a",{className:"topic__header",href:p.length>0||!0===a?"".concat(y,"/topics/").concat(n):"".concat(y,"/topics/").concat(n,"/resources/1")},o.default.createElement("h3",{className:"topic__header-text"},e)),o.default.createElement("div",{className:"topic__content"},a||s>0?o.default.createElement("div",null,o.default.createElement("ul",{className:"topic__subtopics"},r.filter(function(t){var e=t.content;return e&&e.length>0}).map(function(t){return{className:"topic__subtopic",href:"".concat(y,"/topics/").concat(t.id),label:t.label,id:t.id,clipsCount:t.clipsCount,content:t.content,parentHref:"".concat(y,"/topics/").concat(n)}}).map(i.default)),s>0?o.default.createElement("div",{className:"topic_class-clip-total"},o.default.createElement(c.default,{language:l,numberOfClassClips:s,url:"".concat(y,"/topics/").concat(n)})):null):o.default.createElement("div",null,p.length>0?o.default.createElement(u.default,{language:l,learnerGuides:p,urlBasePath:y}):null,f>0?o.default.createElement(c.default,{language:l,numberOfClassClips:f,url:"".concat(y,"/topics/").concat(n,"/resources/1")}):null)))};a.defaultProps={topics:[],learnerGuides:[],urlBasePath:"/bitesize",numberOfSubTopicsClassClips:0};var f=a;e.default=f,t.exports=e.default},function(t,e,n){"use strict";var r=n(7),o=n(28)(1);r(r.P+r.F*!n(39)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(8),o=n(9),i=n(10),u=n(20),c=n(26),a=function(t,e,n){var f,s,l,p,y=t&a.F,d=t&a.G,v=t&a.S,h=t&a.P,b=t&a.B,m=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,g=d?o:o[e]||(o[e]={}),x=g.prototype||(g.prototype={});d&&(n=e);for(f in n)s=!y&&m&&void 0!==m[f],l=(s?m:n)[f],p=b&&s?c(l,r):h&&"function"==typeof l?c(Function.call,l):l,m&&u(m,f,l,t&a.U),g[f]!=l&&i(g,f,p),h&&x[f]!=l&&(x[f]=l)};r.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},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){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(11),o=n(19);t.exports=n(15)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(12),o=n(14),i=n(18),u=Object.defineProperty;e.f=n(15)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(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 r=n(13);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(15)&&!n(16)(function(){return 7!=Object.defineProperty(n(17)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){t.exports=!n(16)(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){var r=n(13),o=n(8).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(13);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},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 r=n(8),o=n(10),i=n(21),u=n(22)("src"),c=n(23),a=(""+c).split("toString");n(9).inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,c){var f="function"==typeof n;f&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(f&&(i(n,u)||o(n,u,t[e]?""+t[e]:a.join(String(e)))),t===r?t[e]=n:c?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){t.exports=n(24)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(9),o=n(8),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(25)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e,n){var r=n(27);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(26),o=n(29),i=n(31),u=n(33),c=n(35);t.exports=function(t,e){var n=1==t,a=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l,y=e||c;return function(e,c,d){for(var v,h,b=i(e),m=o(b),g=r(c,d,3),x=u(m.length),_=0,O=n?y(e,x):a?y(e,0):void 0;x>_;_++)if((p||_ in m)&&(v=m[_],h=g(v,_,b),t))if(n)O[_]=h;else if(h)switch(t){case 3:return!0;case 5:return v;case 6:return _;case 2:O.push(v)}else if(s)return!1;return l?-1:f||s?s:O}}},function(t,e,n){var r=n(30);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(32);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(36);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(13),o=n(37),i=n(38)("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(30);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(24)("wks"),o=n(22),i=n(8).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){"use strict";var r=n(16);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){"use strict";var r=n(7),o=n(28)(2);r(r.P+r.F*!n(39)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){(function(e){if("production"!==e.env.NODE_ENV){var r=n(43);t.exports=n(46)(r.isElement,!0)}else t.exports=n(50)()}).call(e,n(42))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(s===setTimeout)return setTimeout(t,0);if((s===n||!s)&&setTimeout)return s=setTimeout,setTimeout(t,0);try{return s(t,0)}catch(e){try{return s.call(null,t,0)}catch(e){return s.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function u(){v&&y&&(v=!1,y.length?d=y.concat(d):h=-1,d.length&&c())}function c(){if(!v){var t=o(u);v=!0;for(var e=d.length;e;){for(y=d,d=[];++h<e;)y&&y[h].run();h=-1,e=d.length}y=null,v=!1,i(t)}}function a(t,e){this.fun=t,this.array=e}function f(){}var s,l,p=t.exports={};!function(){try{s="function"==typeof setTimeout?setTimeout:n}catch(t){s=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var y,d=[],v=!1,h=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new a(t,e)),1!==d.length||v||o(c)},a.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=f,p.addListener=f,p.once=f,p.off=f,p.removeListener=f,p.removeAllListeners=f,p.emit=f,p.prependListener=f,p.prependOnceListener=f,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e,n){(function(e){"use strict";"production"===e.env.NODE_ENV?t.exports=n(44):t.exports=n(45)}).call(e,n(42))},function(t,e){"use strict";function n(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case p:case y:case c:case f:case a:case v:return t;default:switch(t=t&&t.$$typeof){case l:case d:case m:case b:case s:return t;default:return e}}case u:return e}}}function r(t){return n(t)===y}var o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,u=o?Symbol.for("react.portal"):60106,c=o?Symbol.for("react.fragment"):60107,a=o?Symbol.for("react.strict_mode"):60108,f=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,y=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,v=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.suspense_list"):60120,b=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,g=o?Symbol.for("react.block"):60121,x=o?Symbol.for("react.fundamental"):60117,_=o?Symbol.for("react.responder"):60118,O=o?Symbol.for("react.scope"):60119;e.AsyncMode=p,e.ConcurrentMode=y,e.ContextConsumer=l,e.ContextProvider=s,e.Element=i,e.ForwardRef=d,e.Fragment=c,e.Lazy=m,e.Memo=b,e.Portal=u,e.Profiler=f,e.StrictMode=a,e.Suspense=v,e.isAsyncMode=function(t){return r(t)||n(t)===p},e.isConcurrentMode=r,e.isContextConsumer=function(t){return n(t)===l},e.isContextProvider=function(t){return n(t)===s},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return n(t)===d},e.isFragment=function(t){return n(t)===c},e.isLazy=function(t){return n(t)===m},e.isMemo=function(t){return n(t)===b},e.isPortal=function(t){return n(t)===u},e.isProfiler=function(t){return n(t)===f},e.isStrictMode=function(t){return n(t)===a},e.isSuspense=function(t){return n(t)===v},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===c||t===y||t===f||t===a||t===v||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===b||t.$$typeof===s||t.$$typeof===l||t.$$typeof===d||t.$$typeof===x||t.$$typeof===_||t.$$typeof===O||t.$$typeof===g)},e.typeOf=n},function(t,e,n){(function(t){"use strict";"production"!==t.env.NODE_ENV&&function(){function t(t){return"string"==typeof t||"function"==typeof t||t===g||t===S||t===_||t===x||t===E||t===T||"object"==typeof t&&null!==t&&(t.$$typeof===M||t.$$typeof===k||t.$$typeof===O||t.$$typeof===w||t.$$typeof===P||t.$$typeof===$||t.$$typeof===N||t.$$typeof===R||t.$$typeof===C)}function n(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case b:var n=t.type;switch(n){case j:case S:case g:case _:case x:case E:return n;default:var r=n&&n.$$typeof;switch(r){case w:case P:case M:case k:case O:return r;default:return e}}case m:return e}}}function r(t){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),o(t)||n(t)===j}function o(t){return n(t)===S}function i(t){return n(t)===w}function u(t){return n(t)===O}function c(t){return"object"==typeof t&&null!==t&&t.$$typeof===b}function a(t){return n(t)===P}function f(t){return n(t)===g}function s(t){return n(t)===M}function l(t){return n(t)===k}function p(t){return n(t)===m}function y(t){return n(t)===_}function d(t){return n(t)===x}function v(t){return n(t)===E}var h="function"==typeof Symbol&&Symbol.for,b=h?Symbol.for("react.element"):60103,m=h?Symbol.for("react.portal"):60106,g=h?Symbol.for("react.fragment"):60107,x=h?Symbol.for("react.strict_mode"):60108,_=h?Symbol.for("react.profiler"):60114,O=h?Symbol.for("react.provider"):60109,w=h?Symbol.for("react.context"):60110,j=h?Symbol.for("react.async_mode"):60111,S=h?Symbol.for("react.concurrent_mode"):60111,P=h?Symbol.for("react.forward_ref"):60112,E=h?Symbol.for("react.suspense"):60113,T=h?Symbol.for("react.suspense_list"):60120,k=h?Symbol.for("react.memo"):60115,M=h?Symbol.for("react.lazy"):60116,C=h?Symbol.for("react.block"):60121,$=h?Symbol.for("react.fundamental"):60117,N=h?Symbol.for("react.responder"):60118,R=h?Symbol.for("react.scope"):60119,A=j,F=S,I=w,D=O,L=b,G=P,B=g,z=M,W=k,V=m,q=_,U=x,Y=E,J=!1;e.AsyncMode=A,e.ConcurrentMode=F,e.ContextConsumer=I,e.ContextProvider=D,e.Element=L,e.ForwardRef=G,e.Fragment=B,e.Lazy=z,e.Memo=W,e.Portal=V,e.Profiler=q,e.StrictMode=U,e.Suspense=Y,e.isAsyncMode=r,e.isConcurrentMode=o,e.isContextConsumer=i,e.isContextProvider=u,e.isElement=c,e.isForwardRef=a,e.isFragment=f,e.isLazy=s,e.isMemo=l,e.isPortal=p,e.isProfiler=y,e.isStrictMode=d,e.isSuspense=v,e.isValidElementType=t,e.typeOf=n}()}).call(e,n(42))},function(t,e,n){(function(e){"use strict";function r(){return null}var o=n(43),i=n(47),u=n(48),c=n(49),a=Function.call.bind(Object.prototype.hasOwnProperty),f=function(){};"production"!==e.env.NODE_ENV&&(f=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),t.exports=function(t,n){function s(t){var e=t&&(T&&t[T]||t[k]);if("function"==typeof e)return e}function l(t,e){return t===e?0!==t||1/t==1/e:t!==t&&e!==e}function p(t){this.message=t,this.stack=""}function y(t){function r(r,c,a,s,l,y,d){if(s=s||M,y=y||a,d!==u){if(n){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}if("production"!==e.env.NODE_ENV&&"undefined"!=typeof console){var h=s+":"+a;!o[h]&&i<3&&(f("You are manually calling a React.PropTypes validation function for the `"+y+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),o[h]=!0,i++)}}return null==c[a]?r?new p(null===c[a]?"The "+l+" `"+y+"` is marked as required in `"+s+"`, but its value is `null`.":"The "+l+" `"+y+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:t(c,a,s,l,y)}if("production"!==e.env.NODE_ENV)var o={},i=0;var c=r.bind(null,!1);return c.isRequired=r.bind(null,!0),c}function d(t){function e(e,n,r,o,i,u){var c=e[n];if(j(c)!==t)return new p("Invalid "+o+" `"+i+"` of type `"+S(c)+"` supplied to `"+r+"`, expected `"+t+"`.");return null}return y(e)}function v(t){function e(e,n,r,o,i){if("function"!=typeof t)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c)){return new p("Invalid "+o+" `"+i+"` of type `"+j(c)+"` supplied to `"+r+"`, expected an array.")}for(var a=0;a<c.length;a++){var f=t(c,a,r,o,i+"["+a+"]",u);if(f instanceof Error)return f}return null}return y(e)}function h(t){function e(e,n,r,o,i){if(!(e[n]instanceof t)){var u=t.name||M;return new p("Invalid "+o+" `"+i+"` of type `"+E(e[n])+"` supplied to `"+r+"`, expected instance of `"+u+"`.")}return null}return y(e)}function b(t){function n(e,n,r,o,i){for(var u=e[n],c=0;c<t.length;c++)if(l(u,t[c]))return null;var a=JSON.stringify(t,function(t,e){return"symbol"===S(e)?String(e):e});return new p("Invalid "+o+" `"+i+"` of value `"+String(u)+"` supplied to `"+r+"`, expected one of "+a+".")}return Array.isArray(t)?y(n):("production"!==e.env.NODE_ENV&&f(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),r)}function m(t){function e(e,n,r,o,i){if("function"!=typeof t)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=e[n],f=j(c);if("object"!==f)return new p("Invalid "+o+" `"+i+"` of type `"+f+"` supplied to `"+r+"`, expected an object.");for(var s in c)if(a(c,s)){var l=t(c,s,r,o,i+"."+s,u);if(l instanceof Error)return l}return null}return y(e)}function g(t){function n(e,n,r,o,i){for(var c=0;c<t.length;c++){if(null==(0,t[c])(e,n,r,o,i,u))return null}return new p("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}if(!Array.isArray(t))return"production"!==e.env.NODE_ENV&&f("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var o=0;o<t.length;o++){var i=t[o];if("function"!=typeof i)return f("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+P(i)+" at index "+o+"."),r}return y(n)}function x(t){function e(e,n,r,o,i){var c=e[n],a=j(c);if("object"!==a)return new p("Invalid "+o+" `"+i+"` of type `"+a+"` supplied to `"+r+"`, expected `object`.");for(var f in t){var s=t[f];if(s){var l=s(c,f,r,o,i+"."+f,u);if(l)return l}}return null}return y(e)}function _(t){function e(e,n,r,o,c){var a=e[n],f=j(a);if("object"!==f)return new p("Invalid "+o+" `"+c+"` of type `"+f+"` supplied to `"+r+"`, expected `object`.");var s=i({},e[n],t);for(var l in s){var y=t[l];if(!y)return new p("Invalid "+o+" `"+c+"` key `"+l+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var d=y(a,l,r,o,c+"."+l,u);if(d)return d}return null}return y(e)}function O(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(O);if(null===e||t(e))return!0;var n=s(e);if(!n)return!1;var r,o=n.call(e);if(n!==e.entries){for(;!(r=o.next()).done;)if(!O(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!O(i[1]))return!1}return!0;default:return!1}}function w(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function j(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":w(e,t)?"symbol":e}function S(t){if(void 0===t||null===t)return""+t;var e=j(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function P(t){var e=S(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function E(t){return t.constructor&&t.constructor.name?t.constructor.name:M}var T="function"==typeof Symbol&&Symbol.iterator,k="@@iterator",M="<<anonymous>>",C={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:function(){return y(r)}(),arrayOf:v,element:function(){function e(e,n,r,o,i){var u=e[n];if(!t(u)){return new p("Invalid "+o+" `"+i+"` of type `"+j(u)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return y(e)}(),elementType:function(){function t(t,e,n,r,i){var u=t[e];if(!o.isValidElementType(u)){return new p("Invalid "+r+" `"+i+"` of type `"+j(u)+"` supplied to `"+n+"`, expected a single ReactElement type.")}return null}return y(t)}(),instanceOf:h,node:function(){function t(t,e,n,r,o){return O(t[e])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return y(t)}(),objectOf:m,oneOf:b,oneOfType:g,shape:x,exact:_};return p.prototype=Error.prototype,C.checkPropTypes=c,C.resetWarningCache=c.resetWarningCache,C.PropTypes=C,C}}).call(e,n(42))},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var u,c,a=n(t),f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var s in u)o.call(u,s)&&(a[s]=u[s]);if(r){c=r(u);for(var l=0;l<c.length;l++)i.call(u,c[l])&&(a[c[l]]=u[c[l]])}}return a}},function(t,e){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){(function(e){"use strict";function r(t,n,r,a,f){if("production"!==e.env.NODE_ENV)for(var s in t)if(c(t,s)){var l;try{if("function"!=typeof t[s]){var p=Error((a||"React class")+": "+r+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[s]+"`.");throw p.name="Invariant Violation",p}l=t[s](n,s,a,r,null,i)}catch(t){l=t}if(!l||l instanceof Error||o((a||"React class")+": type specification of "+r+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in u)){u[l.message]=!0;var y=f?f():"";o("Failed "+r+" type: "+l.message+(null!=y?y:""))}}}var o=function(){};if("production"!==e.env.NODE_ENV){var i=n(48),u={},c=Function.call.bind(Object.prototype.hasOwnProperty);o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}r.resetWarningCache=function(){"production"!==e.env.NODE_ENV&&(u={})},t.exports=r}).call(e,n(42))},function(t,e,n){"use strict";function r(){}function o(){}var i=n(48);o.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,o,u){if(u!==i){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=(r(n(41)),r(n(52))),u=r(n(53)),c=r(n(54)),a=r(n(109)),f=r(n(110)),s=function(t){var e=t.attribution,n=t.bestOnDesktop,r=t.className,s=t.href,l=t.id,p=t.label,y=t.language,d=t.subscription,v=t.type,h=(0,f.default)(y);return o.default.createElement("li",{className:(0,i.default)(r,"topic__subitem"),key:l},o.default.createElement("a",{className:"topic__subitem-link",href:s},o.default.createElement("div",null,o.default.createElement("div",{className:"topic__subitem-label"},p),n?o.default.createElement(u.default,null,h("bestOnDesktop")):null),e?o.default.createElement(c.default,{attribution:e,type:v}):null,d?o.default.createElement(a.default,null,h("subscription")):null))};s.defaultProps={attribution:"",bestOnDesktop:!1,subscription:!1};var l=s;e.default=l,t.exports=e.default},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)){if(r.length){var u=n.apply(null,r);u&&t.push(u)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var c in r)i.call(r,c)&&r[c]&&t.push(c);else t.push(r.toString())}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?(n.default=n,t.exports=n):(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=(r(n(41)),function(t){return o.default.createElement("div",{className:"topic__best-on-desktop"},o.default.createElement("span",{className:"topic__best-on-desktop-text"},t.children))}),u=i;e.default=u,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=(r(n(41)),r(n(55))),u=function(t){var e=t.attribution,n=t.type;return o.default.createElement("div",{className:"topic__attribution"},"external"===n?o.default.createElement("div",{className:"gel-icon gel-icon--external-link"},o.default.createElement(i.default,null)):null,e)},c=u;e.default=c,t.exports=e.default},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="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 o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function a(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&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=y();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(56),n(69),n(90),n(95),n(96),n(99),n(100),n(102),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(108);var v=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var a=u?Object.getOwnPropertyDescriptor(t,c):null;a&&(a.get||a.set)?Object.defineProperty(i,c,a):i[c]=t[c]}return i.default=t,n&&n.set(t,i),i}(n(3)),h=function(t){function e(){return i(this,e),n.apply(this,arguments)}a(e,t);var n=s(e);return c(e,[{key:"componentDidMount",value:function(){this.svg.setAttribute("focusable","false")}},{key:"render",value:function(){var t=this;return v.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"32px",height:"32px",viewBox:"0 0 32 32",enableBackground:"new 0 0 32 32",ref:function(e){t.svg=e}},v.default.createElement("g",{id:"Grid"}),v.default.createElement("g",{id:"Layer_2"},v.default.createElement("polygon",{points:"12,0 12,5 23.5,5 18.5,10 0,10 0,32 22,32 22,17.5 20,19.5 20,30 2,30 2,14 2,12 16.5,12 8.7,19.7 12.3,23.3 27,8.5 27,20 32,20 32,0 \t"})))}}]),e}(v.Component),b=h;e.default=b,t.exports=e.default},function(t,e,n){var r=n(7),o=n(57),i=n(27),u=n(12),c=n(13),a=n(16),f=n(67),s=(n(8).Reflect||{}).construct,l=a(function(){function t(){}return!(s(function(){},[],t)instanceof t)}),p=!a(function(){s(function(){})});r(r.S+r.F*(l||p),"Reflect",{construct:function(t,e){i(t),u(e);var n=arguments.length<3?t:i(arguments[2]);if(p&&!l)return s(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(f.apply(t,r))}var a=n.prototype,y=o(c(a)?a:Object.prototype),d=Function.apply.call(t,y,e);return c(d)?d:y}})},function(t,e,n){var r=n(12),o=n(58),i=n(65),u=n(64)("IE_PROTO"),c=function(){},a=function(){var t,e=n(17)("iframe"),r=i.length;for(e.style.display="none",n(66).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[u]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(11),o=n(12),i=n(59);t.exports=n(15)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,a=0;c>a;)r.f(t,n=u[a++],e[n]);return t}},function(t,e,n){var r=n(60),o=n(65);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(21),o=n(61),i=n(62)(!1),u=n(64)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)n!=u&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(f,n)||f.push(n));return f}},function(t,e,n){var r=n(29),o=n(32);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(61),o=n(33),i=n(63);t.exports=function(t){return function(e,n,u){var c,a=r(e),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(34),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(24)("keys"),o=n(22);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(8).document;t.exports=r&&r.documentElement},function(t,e,n){"use strict";var r=n(27),o=n(13),i=n(68),u=[].slice,c={},a=function(t,e,n){if(!(e in c)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";c[e]=Function("F,a","return new F("+r.join(",")+")")}return c[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=u.call(arguments,1),c=function(){var r=n.concat(u.call(arguments));return this instanceof c?a(e,r.length,r):i(e,r,t)};return o(e.prototype)&&(c.prototype=e.prototype),c}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?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,n){"use strict";var r,o=n(8),i=n(28)(0),u=n(20),c=n(70),a=n(71),f=n(74),s=n(13),l=n(83),p=n(83),y=!o.ActiveXObject&&"ActiveXObject"in o,d=c.getWeak,v=Object.isExtensible,h=f.ufstore,b=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(s(t)){var e=d(t);return!0===e?h(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return f.def(l(this,"WeakMap"),t,e)}},g=t.exports=n(84)("WeakMap",b,m,f,!0,!0);p&&y&&(r=f.getConstructor(b,"WeakMap"),a(r.prototype,m),c.NEED=!0,i(["delete","has","get","set"],function(t){var e=g.prototype,n=e[t];u(e,t,function(e,o){if(s(e)&&!v(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)})}))},function(t,e,n){var r=n(22)("meta"),o=n(13),i=n(21),u=n(11).f,c=0,a=Object.isExtensible||function(){return!0},f=!n(16)(function(){return a(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!a(t))return"F";if(!e)return"E";s(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!a(t))return!0;if(!e)return!1;s(t)}return t[r].w},y=function(t){return f&&d.NEED&&a(t)&&!i(t,r)&&s(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:y}},function(t,e,n){"use strict";var r=n(15),o=n(59),i=n(72),u=n(73),c=n(31),a=n(29),f=Object.assign;t.exports=!f||n(16)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||Object.keys(f({},e)).join("")!=r})?function(t,e){for(var n=c(t),f=arguments.length,s=1,l=i.f,p=u.f;f>s;)for(var y,d=a(arguments[s++]),v=l?o(d).concat(l(d)):o(d),h=v.length,b=0;h>b;)y=v[b++],r&&!p.call(d,y)||(n[y]=d[y]);return n}:f},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";var r=n(75),o=n(70).getWeak,i=n(12),u=n(13),c=n(76),a=n(77),f=n(28),s=n(21),l=n(83),p=f(5),y=f(6),d=0,v=function(t){return t._l||(t._l=new h)},h=function(){this.a=[]},b=function(t,e){return p(t.a,function(t){return t[0]===e})};h.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=y(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var f=t(function(t,r){c(t,f,e,"_i"),t._t=e,t._i=d++,t._l=void 0,void 0!=r&&a(r,n,t[i],t)});return r(f.prototype,{delete:function(t){if(!u(t))return!1;var n=o(t);return!0===n?v(l(this,e)).delete(t):n&&s(n,this._i)&&delete n[this._i]},has:function(t){if(!u(t))return!1;var n=o(t);return!0===n?v(l(this,e)).has(t):n&&s(n,this._i)}}),f},def:function(t,e,n){var r=o(i(e),!0);return!0===r?v(t).set(e,n):r[t._i]=n,t},ufstore:v}},function(t,e,n){var r=n(20);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(26),o=n(78),i=n(79),u=n(12),c=n(33),a=n(81),f={},s={},e=t.exports=function(t,e,n,l,p){var y,d,v,h,b=p?function(){return t}:a(t),m=r(n,l,e?2:1),g=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(i(b)){for(y=c(t.length);y>g;g++)if((h=e?m(u(d=t[g])[0],d[1]):m(t[g]))===f||h===s)return h}else for(v=b.call(t);!(d=v.next()).done;)if((h=o(v,m,d.value,e))===f||h===s)return h};e.BREAK=f,e.RETURN=s},function(t,e,n){var r=n(12);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(80),o=n(38)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e){t.exports={}},function(t,e,n){var r=n(82),o=n(38)("iterator"),i=n(80);t.exports=n(9).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(30),o=n(38)("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),o))?n:i?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},function(t,e,n){var r=n(13);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";var r=n(8),o=n(7),i=n(20),u=n(75),c=n(70),a=n(77),f=n(76),s=n(13),l=n(16),p=n(85),y=n(86),d=n(87);t.exports=function(t,e,n,v,h,b){var m=r[t],g=m,x=h?"set":"add",_=g&&g.prototype,O={},w=function(t){var e=_[t];i(_,t,"delete"==t?function(t){return!(b&&!s(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!s(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return b&&!s(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof g&&(b||_.forEach&&!l(function(){(new g).entries().next()}))){var j=new g,S=j[x](b?{}:-0,1)!=j,P=l(function(){j.has(1)}),E=p(function(t){new g(t)}),T=!b&&l(function(){for(var t=new g,e=5;e--;)t[x](e,e);return!t.has(-0)});E||(g=e(function(e,n){f(e,g,t);var r=d(new m,e,g);return void 0!=n&&a(n,h,r[x],r),r}),g.prototype=_,_.constructor=g),(P||T)&&(w("delete"),w("has"),h&&w("get")),(T||S)&&w(x),b&&_.clear&&delete _.clear}else g=v.getConstructor(e,t,h,x),u(g.prototype,n),c.NEED=!0;return y(g,t),O[t]=g,o(o.G+o.W+o.F*(g!=m),O),b||v.setStrong(g,t,h),g}},function(t,e,n){var r=n(38)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(t){}return n}},function(t,e,n){var r=n(11).f,o=n(21),i=n(38)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(13),o=n(88).set;t.exports=function(t,e,n){var i,u=e.constructor;return u!==n&&"function"==typeof u&&(i=u.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){var r=n(13),o=n(12),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(26)(Function.call,n(89).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(73),o=n(19),i=n(61),u=n(18),c=n(21),a=n(14),f=Object.getOwnPropertyDescriptor;e.f=n(15)?f:function(t,e){if(t=i(t),e=u(e,!0),a)try{return f(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";var r=n(91)(!0);n(92)(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=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(34),o=n(32);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),a=r(n),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a),i<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(25),o=n(7),i=n(20),u=n(10),c=n(80),a=n(93),f=n(86),s=n(94),l=n(38)("iterator"),p=!([].keys&&"next"in[].keys()),y=function(){return this};t.exports=function(t,e,n,d,v,h,b){a(n,e,d);var m,g,x,_=function(t){if(!p&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",w="values"==v,j=!1,S=t.prototype,P=S[l]||S["@@iterator"]||v&&S[v],E=P||_(v),T=v?w?_("entries"):E:void 0,k="Array"==e?S.entries||P:P;if(k&&(x=s(k.call(new t)))!==Object.prototype&&x.next&&(f(x,O,!0),r||"function"==typeof x[l]||u(x,l,y)),w&&P&&"values"!==P.name&&(j=!0,E=function(){return P.call(this)}),r&&!b||!p&&!j&&S[l]||u(S,l,E),c[e]=E,c[O]=y,v)if(m={values:w?E:_("values"),keys:h?E:_("keys"),entries:T},b)for(g in m)g in S||i(S,g,m[g]);else o(o.P+o.F*(p||j),e,m);return m}},function(t,e,n){"use strict";var r=n(57),o=n(19),i=n(86),u={};n(10)(u,n(38)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(21),o=n(31),i=n(64)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){"use strict";var r=n(82),o={};o[n(38)("toStringTag")]="z",o+""!="[object z]"&&n(20)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){"use strict";var r=n(97),o=n(98),i=n(80),u=n(61);t.exports=n(92)(Array,"Array",function(t,e){this._t=u(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,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(38)("unscopables"),o=Array.prototype;void 0==o[r]&&n(10)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){for(var r=n(96),o=n(59),i=n(20),u=n(8),c=n(10),a=n(80),f=n(38),s=f("iterator"),l=f("toStringTag"),p=a.Array,y={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},d=o(y),v=0;v<d.length;v++){var h,b=d[v],m=y[b],g=u[b],x=g&&g.prototype;if(x&&(x[s]||c(x,s,p),x[l]||c(x,l,b),a[b]=p,m))for(h in r)x[h]||i(x,h,r[h],!0)}},function(t,e,n){var r=n(61),o=n(89).f;n(101)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){var r=n(7),o=n(9),i=n(16);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){"use strict";var r=n(8),o=n(21),i=n(15),u=n(7),c=n(20),a=n(70).KEY,f=n(16),s=n(24),l=n(86),p=n(22),y=n(38),d=n(103),v=n(104),h=n(105),b=n(37),m=n(12),g=n(13),x=n(31),_=n(61),O=n(18),w=n(19),j=n(57),S=n(106),P=n(89),E=n(72),T=n(11),k=n(59),M=P.f,C=T.f,$=S.f,N=r.Symbol,R=r.JSON,A=R&&R.stringify,F=y("_hidden"),I=y("toPrimitive"),D={}.propertyIsEnumerable,L=s("symbol-registry"),G=s("symbols"),B=s("op-symbols"),z=Object.prototype,W="function"==typeof N&&!!E.f,V=r.QObject,q=!V||!V.prototype||!V.prototype.findChild,U=i&&f(function(){return 7!=j(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=M(z,e);r&&delete z[e],C(t,e,n),r&&t!==z&&C(z,e,r)}:C,Y=function(t){var e=G[t]=j(N.prototype);return e._k=t,e},J=W&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof N},H=function(t,e,n){return t===z&&H(B,e,n),m(t),e=O(e,!0),m(n),o(G,e)?(n.enumerable?(o(t,F)&&t[F][e]&&(t[F][e]=!1),n=j(n,{enumerable:w(0,!1)})):(o(t,F)||C(t,F,w(1,{})),t[F][e]=!0),U(t,e,n)):C(t,e,n)},K=function(t,e){m(t);for(var n,r=h(e=_(e)),o=0,i=r.length;i>o;)H(t,n=r[o++],e[n]);return t},X=function(t,e){return void 0===e?j(t):K(j(t),e)},Q=function(t){var e=D.call(this,t=O(t,!0));return!(this===z&&o(G,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(G,t)||o(this,F)&&this[F][t])||e)},Z=function(t,e){if(t=_(t),e=O(e,!0),t!==z||!o(G,e)||o(B,e)){var n=M(t,e);return!n||!o(G,e)||o(t,F)&&t[F][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=$(_(t)),r=[],i=0;n.length>i;)o(G,e=n[i++])||e==F||e==a||r.push(e);return r},et=function(t){for(var e,n=t===z,r=$(n?B:_(t)),i=[],u=0;r.length>u;)!o(G,e=r[u++])||n&&!o(z,e)||i.push(G[e]);return i};W||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(B,n),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),U(this,t,w(1,n))};return i&&q&&U(z,t,{configurable:!0,set:e}),Y(t)},c(N.prototype,"toString",function(){return this._k}),P.f=Z,T.f=H,n(107).f=S.f=tt,n(73).f=Q,E.f=et,i&&!n(25)&&c(z,"propertyIsEnumerable",Q,!0),d.f=function(t){return Y(y(t))}),u(u.G+u.W+u.F*!W,{Symbol:N});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)y(nt[rt++]);for(var ot=k(y.store),it=0;ot.length>it;)v(ot[it++]);u(u.S+u.F*!W,"Symbol",{for:function(t){return o(L,t+="")?L[t]:L[t]=N(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var e in L)if(L[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),u(u.S+u.F*!W,"Object",{create:X,defineProperty:H,defineProperties:K,getOwnPropertyDescriptor:Z,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var ut=f(function(){E.f(1)});u(u.S+u.F*ut,"Object",{getOwnPropertySymbols:function(t){return E.f(x(t))}}),R&&u(u.S+u.F*(!W||f(function(){var t=N();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(g(e)||void 0!==t)&&!J(t))return b(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!J(e))return e}),r[1]=e,A.apply(R,r)}}),N.prototype[I]||n(10)(N.prototype,I,N.prototype.valueOf),l(N,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){e.f=n(38)},function(t,e,n){var r=n(8),o=n(9),i=n(25),u=n(103),c=n(11).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:u.f(t)})}},function(t,e,n){var r=n(59),o=n(72),i=n(73);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,c=n(t),a=i.f,f=0;c.length>f;)a.call(t,u=c[f++])&&e.push(u);return e}},function(t,e,n){var r=n(61),o=n(107).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,e,n){var r=n(60),o=n(65).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(31),o=n(94);n(101)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=(r(n(41)),function(t){var e=t.children;return o.default.createElement("div",null,o.default.createElement("span",{className:"topic__subscription"},e))}),u=i;e.default=u,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(111),n(112);var r=function(t){return t&&t.__esModule?t:{default:t}}(n(119)),o={"en-GB":{bestOnDesktop:"Works best on Desktop",subscription:"Subscription",classClips:{singular:"$number Classroom video",plural:"$number Classroom videos"},learnerGuides:{singular:"$number Learner Guide",plural:"$number Learner Guides"}},"cy-GB":{bestOnDesktop:"yn gweithio orau ar gyfrifiadur",subscription:"tanysgrifiad",classClips:{singular:"Fideo Ystafell ddosbarth: $number",plural:"Fideos Ystafell ddosbarth: $number"},learnerGuides:{singular:"$number canllaw i ddysgwyr",plural:"$number o ganllawiau i ddysgwyr"}},"ga-GB":{bestOnDesktop:"ar ríomhaire deisce is fearr a oibríonn sé",subscription:"síntiús",classClips:{singular:"$number Físeán Ranga",plural:"$number Físeáin Ranga"},learnerGuides:{singular:"$number Treoir d'Fhoghlaimeoirí",plural:"$number Treoir d'Fhoghlaimeoirí"}},"gd-GB":{bestOnDesktop:"obraichidh seo nas fheàrr air coimpiutair",subscription:"seirbheis pàighte",classClips:{singular:"Bhidio clas: $number",plural:"Bhidiothan clas: $number"},learnerGuides:{singular:"$number Iùl Luchd-ionnsachaidh",plural:"$number Iùil Luchd-ionnsachaidh"}}},i=function(){return{"en-gb":"en-GB","ga-gb":"ga-GB","gd-gb":"gd-GB","cy-gb":"cy-GB"}[(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase()]||"en-GB"},u=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=(0,r.default)(o,"".concat(i(t),".").concat(e),"");return Object.keys(n).reduce(function(t,e){return t.replace("$".concat(e),n[e])},u)}};e.default=u,t.exports=e.default},function(t,e,n){var r=n(31),o=n(59);n(101)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){"use strict";var r=n(12),o=n(31),i=n(33),u=n(34),c=n(113),a=n(114),f=Math.max,s=Math.min,l=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,y=/\$([$&`']|\d\d?)/g,d=function(t){return void 0===t?t:String(t)};n(115)("replace",2,function(t,e,n,v){function h(t,e,r,i,u,c){var a=r+t.length,f=i.length,s=y;return void 0!==u&&(u=o(u),s=p),n.call(c,s,function(n,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(a);case"<":c=u[o.slice(1,-1)];break;default:var s=+o;if(0===s)return n;if(s>f){var p=l(s/10);return 0===p?n:p<=f?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}c=i[s-1]}return void 0===c?"":c})}return[function(r,o){var i=t(this),u=void 0==r?void 0:r[e];return void 0!==u?u.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=v(n,t,this,e);if(o.done)return o.value;var l=r(t),p=String(this),y="function"==typeof e;y||(e=String(e));var b=l.global;if(b){var m=l.unicode;l.lastIndex=0}for(var g=[];;){var x=a(l,p);if(null===x)break;if(g.push(x),!b)break;""===String(x[0])&&(l.lastIndex=c(p,i(l.lastIndex),m))}for(var _="",O=0,w=0;w<g.length;w++){x=g[w];for(var j=String(x[0]),S=f(s(u(x.index),p.length),0),P=[],E=1;E<x.length;E++)P.push(d(x[E]));var T=x.groups;if(y){var k=[j].concat(P,S,p);void 0!==T&&k.push(T);var M=String(e.apply(void 0,k))}else M=h(j,p,S,P,T,e);S>=O&&(_+=p.slice(O,S)+M,O=S+j.length)}return _+p.slice(O)}]})},function(t,e,n){"use strict";var r=n(91)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){"use strict";var r=n(82),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(116);var r=n(20),o=n(10),i=n(16),u=n(32),c=n(38),a=n(117),f=c("species"),s=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=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 p=c(t),y=!i(function(){var e={};return e[p]=function(){return 7},7!=""[t](e)}),d=y?!i(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[f]=function(){return n}),n[p](""),!e}):void 0;if(!y||!d||"replace"===t&&!s||"split"===t&&!l){var v=/./[p],h=n(u,p,""[t],function(t,e,n,r,o){return e.exec===a?y&&!o?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),b=h[0],m=h[1];r(String.prototype,t,b),o(RegExp.prototype,p,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 r=n(117);n(7)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){"use strict";var r=n(118),o=RegExp.prototype.exec,i=String.prototype.replace,u=o,c=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),a=void 0!==/()??/.exec("")[1];(c||a)&&(u=function(t){var e,n,u,f,s=this;return a&&(n=new RegExp("^"+s.source+"$(?!\\s)",r.call(s))),c&&(e=s.lastIndex),u=o.call(s,t),c&&u&&(s.lastIndex=s.global?u.index+u[0].length:e),a&&u&&u.length>1&&i.call(u[0],n,function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(u[f]=void 0)}),u}),t.exports=u},function(t,e,n){"use strict";var r=n(12);t.exports=function(){var t=r(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){function r(t,e,n){var r=null==t?void 0:o(t,e);return void 0===r?n:r}var o=n(120);t.exports=r},function(t,e,n){function r(t,e){e=o(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[i(e[n++])];return n&&n==r?t:void 0}var o=n(121),i=n(170);t.exports=r},function(t,e,n){function r(t,e){return o(t)?t:i(t,e)?[t]:u(c(t))}var o=n(122),i=n(123),u=n(132),c=n(167);t.exports=r},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){function r(t,e){if(o(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(c.test(t)||!u.test(t)||null!=e&&t in Object(e))}var o=n(122),i=n(124),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;t.exports=r},function(t,e,n){function r(t){return"symbol"==typeof t||i(t)&&o(t)==u}var o=n(125),i=n(131),u="[object Symbol]";t.exports=r},function(t,e,n){function r(t){return null==t?void 0===t?a:c:f&&f in Object(t)?i(t):u(t)}var o=n(126),i=n(129),u=n(130),c="[object Null]",a="[object Undefined]",f=o?o.toStringTag:void 0;t.exports=r},function(t,e,n){var r=n(127),o=r.Symbol;t.exports=o},function(t,e,n){var r=n(128),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t,e,n){function r(t){var e=u.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var o=c.call(t);return r&&(e?t[a]=n:delete t[a]),o}var o=n(126),i=Object.prototype,u=i.hasOwnProperty,c=i.toString,a=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return o.call(t)}var r=Object.prototype,o=r.toString;t.exports=n},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){var r=n(133),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)}),e});t.exports=u},function(t,e,n){function r(t){var e=o(t,function(t){return n.size===i&&n.clear(),t}),n=e.cache;return e}var o=n(134),i=500;t.exports=r},function(t,e,n){function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(r.Cache||o),n}var o=n(135),i="Expected a function";r.Cache=o,t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(136),i=n(161),u=n(164),c=n(165),a=n(166);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=u,r.prototype.has=c,r.prototype.set=a,t.exports=r},function(t,e,n){function r(){this.size=0,this.__data__={hash:new o,map:new(u||i),string:new o}}var o=n(137),i=n(152),u=n(160);t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(138),i=n(148),u=n(149),c=n(150),a=n(151);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=u,r.prototype.has=c,r.prototype.set=a,t.exports=r},function(t,e,n){function r(){this.__data__=o?o(null):{},this.size=0}var o=n(139);t.exports=r},function(t,e,n){var r=n(140),o=r(Object,"create");t.exports=o},function(t,e,n){function r(t,e){var n=i(t,e);return o(n)?n:void 0}var o=n(141),i=n(147);t.exports=r},function(t,e,n){function r(t){return!(!u(t)||i(t))&&(o(t)?d:f).test(c(t))}var o=n(142),i=n(144),u=n(143),c=n(146),a=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,p=s.toString,y=l.hasOwnProperty,d=RegExp("^"+p.call(y).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t,e,n){function r(t){if(!i(t))return!1;var e=o(t);return e==c||e==a||e==u||e==f}var o=n(125),i=n(143),u="[object AsyncFunction]",c="[object Function]",a="[object GeneratorFunction]",f="[object Proxy]";t.exports=r},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){function r(t){return!!i&&i in t}var o=n(145),i=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=r},function(t,e,n){var r=n(127),o=r["__core-js_shared__"];t.exports=o},function(t,e){function n(t){if(null!=t){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var r=Function.prototype,o=r.toString;t.exports=n},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},function(t,e,n){function r(t){var e=this.__data__;if(o){var n=e[t];return n===i?void 0:n}return c.call(e,t)?e[t]:void 0}var o=n(139),i="__lodash_hash_undefined__",u=Object.prototype,c=u.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){var e=this.__data__;return o?void 0!==e[t]:u.call(e,t)}var o=n(139),i=Object.prototype,u=i.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=o&&void 0===e?i:e,this}var o=n(139),i="__lodash_hash_undefined__";t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(153),i=n(154),u=n(157),c=n(158),a=n(159);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=u,r.prototype.has=c,r.prototype.set=a,t.exports=r},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=o(e,t);return!(n<0)&&(n==e.length-1?e.pop():u.call(e,n,1),--this.size,!0)}var o=n(155),i=Array.prototype,u=i.splice;t.exports=r},function(t,e,n){function r(t,e){ for(var n=t.length;n--;)if(o(t[n][0],e))return n;return-1}var o=n(156);t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]}var o=n(155);t.exports=r},function(t,e,n){function r(t){return o(this.__data__,t)>-1}var o=n(155);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var o=n(155);t.exports=r},function(t,e,n){var r=n(140),o=n(127),i=r(o,"Map");t.exports=i},function(t,e,n){function r(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}var o=n(162);t.exports=r},function(t,e,n){function r(t,e){var n=t.__data__;return o(e)?n["string"==typeof e?"string":"hash"]:n.map}var o=n(163);t.exports=r},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function r(t){return o(this,t).get(t)}var o=n(162);t.exports=r},function(t,e,n){function r(t){return o(this,t).has(t)}var o=n(162);t.exports=r},function(t,e,n){function r(t,e){var n=o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var o=n(162);t.exports=r},function(t,e,n){function r(t){return null==t?"":o(t)}var o=n(168);t.exports=r},function(t,e,n){function r(t){if("string"==typeof t)return t;if(u(t))return i(t,r)+"";if(c(t))return s?s.call(t):"";var e=t+"";return"0"==e&&1/t==-a?"-0":e}var o=n(126),i=n(169),u=n(122),c=n(124),a=1/0,f=o?o.prototype:void 0,s=f?f.toString:void 0;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}t.exports=n},function(t,e,n){function r(t){if("string"==typeof t||o(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}var o=n(124),i=1/0;t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(111),n(102),n(40),n(100),n(172),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(6);var c=r(n(3)),a=(r(n(41)),r(n(51))),f=function(t,e){return{"study-guide":"".concat(e,"/guides/").concat(t.id,"/revision/1"),guide:"/guides/".concat(t.guideId)}[t.type]||t.url},s=function(t){var e=t.language,n=t.learnerGuides,r=t.urlBasePath;return c.default.createElement("div",{className:"topic__learner-guides"},c.default.createElement("ul",{className:"topic__learner-guides-list"},n.map(function(t){return i(i({},t),{},{className:"topic__learner-guide",href:f(t,r),language:e})}).map(a.default)))};s.defaultProps={learnerGuides:[]};var l=s;e.default=l,t.exports=e.default},function(t,e,n){var r=n(7),o=n(173),i=n(61),u=n(89),c=n(174);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),a=u.f,f=o(r),s={},l=0;f.length>l;)void 0!==(n=a(r,e=f[l++]))&&c(s,e,n);return s}})},function(t,e,n){var r=n(107),o=n(72),i=n(12),u=n(8).Reflect;t.exports=u&&u.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){"use strict";var r=n(11),o=n(19);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=(r(n(41)),r(n(176))),u=r(n(110)),c=function(t){var e=t.language,n=t.numberOfClassClips,r=t.url,c=(0,u.default)(e),a=n>1?"plural":"singular";return o.default.createElement("a",{className:"topic__class-clips",href:r},o.default.createElement(i.default,null),o.default.createElement("div",{className:"topic__class-clips-text"},c("classClips.".concat(a),{number:n})))},a=c;e.default=a,t.exports=e.default},function(t,e,n){"use strict";function r(t){"@babel/helpers - typeof";return(r="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 o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function a(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&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=y();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(56),n(69),n(90),n(95),n(96),n(99),n(100),n(102),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(108);var v=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var a=u?Object.getOwnPropertyDescriptor(t,c):null;a&&(a.get||a.set)?Object.defineProperty(i,c,a):i[c]=t[c]}return i.default=t,n&&n.set(t,i),i}(n(3)),h=function(t){function e(){return i(this,e),n.apply(this,arguments)}a(e,t);var n=s(e);return c(e,[{key:"componentDidMount",value:function(){this.svg.setAttribute("focusable","false")}},{key:"render",value:function(){var t=this;return v.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",ref:function(e){t.svg=e}},v.default.createElement("path",{d:"M3 32l26-16L3 0"}))}}]),e}(v.Component),b=h;e.default=b,t.exports=e.default}]);; });</script><script>Morph.toInit.payloads.push(function() { Morph.setPayload('/data/bbc-morph-bitesize-subject-topics/version/1.4.1/zid/zvc9q6f', {"meta":{"responseCode":200,"errorMessage":null,"headers":{"content-type":"application\/json"}},"body":{"programmeOfStudyId":"zvc9q6f","programmeOfStudyLabel":"KS3 Computer Science","topics":[{"id":"z7tp34j","type":"content","content":[{"id":"zp92mp3","label":"Introduction to computational thinking","type":"study-guide","url":"\/bitesize\/guides\/zp92mp3","content":[{"type":"revision","url":"\/guides\/zp92mp3\/revision\/1"},{"type":"test","url":"\/guides\/zp92mp3\/test"}],"image":null},{"id":"zqqfyrd","label":"Decomposition","type":"study-guide","url":"\/bitesize\/guides\/zqqfyrd","content":[{"type":"revision","url":"\/guides\/zqqfyrd\/revision\/1"},{"type":"test","url":"\/guides\/zqqfyrd\/test"}],"image":null},{"id":"zxxbgk7","label":"Pattern recognition","type":"study-guide","url":"\/bitesize\/guides\/zxxbgk7","content":[{"type":"revision","url":"\/guides\/zxxbgk7\/revision\/1"},{"type":"test","url":"\/guides\/zxxbgk7\/test"}],"image":null},{"id":"zttrcdm","label":"Abstraction","type":"study-guide","url":"\/bitesize\/guides\/zttrcdm","content":[{"type":"revision","url":"\/guides\/zttrcdm\/revision\/1"},{"type":"test","url":"\/guides\/zttrcdm\/test"}],"image":null},{"id":"zpp49j6","label":"Algorithms","type":"study-guide","url":"\/bitesize\/guides\/zpp49j6","content":[{"type":"revision","url":"\/guides\/zpp49j6\/revision\/1"},{"type":"test","url":"\/guides\/zpp49j6\/test"}],"image":null},{"id":"zssk87h","label":"Evaluating solutions","type":"study-guide","url":"\/bitesize\/guides\/zssk87h","content":[{"type":"revision","url":"\/guides\/zssk87h\/revision\/1"},{"type":"test","url":"\/guides\/zssk87h\/test"}],"image":null}],"subTopics":[],"clipsCount":1,"clips":[{"title":"Description of an early computer","synopsis":"A description of the computer used to assist with vote counting during the 1955 general election.","pid":"p008jxpm","id":"zwb7tyc"}],"url":"\/bitesize\/topics\/z7tp34j","label":"Computational thinking","subTopicsClipsCount":0},{"id":"z7d634j","type":"content","content":[{"id":"z3bq7ty","label":"Designing an algorithm","type":"study-guide","url":"\/bitesize\/guides\/z3bq7ty","content":[{"type":"revision","url":"\/guides\/z3bq7ty\/revision\/1"},{"type":"test","url":"\/guides\/z3bq7ty\/test"}],"image":null},{"id":"zgr2mp3","label":"Searching","type":"study-guide","url":"\/bitesize\/guides\/zgr2mp3","content":[{"type":"revision","url":"\/guides\/zgr2mp3\/revision\/1"},{"type":"test","url":"\/guides\/zgr2mp3\/test"}],"image":null},{"id":"z2m3b9q","label":"Sorting","type":"study-guide","url":"\/bitesize\/guides\/z2m3b9q","content":[{"type":"revision","url":"\/guides\/z2m3b9q\/revision\/1"},{"type":"test","url":"\/guides\/z2m3b9q\/test"}],"image":null},{"id":"zsf8d2p","label":"Sequencing","type":"study-guide","url":"\/bitesize\/guides\/zsf8d2p","content":[{"type":"revision","url":"\/guides\/zsf8d2p\/revision\/1"},{"type":"test","url":"\/guides\/zsf8d2p\/test"}],"image":null},{"id":"zy3q7ty","label":"Selection","type":"study-guide","url":"\/bitesize\/guides\/zy3q7ty","content":[{"type":"revision","url":"\/guides\/zy3q7ty\/revision\/1"},{"type":"test","url":"\/guides\/zy3q7ty\/test"}],"image":null},{"id":"zg46tfr","label":"Iteration","type":"study-guide","url":"\/bitesize\/guides\/zg46tfr","content":[{"type":"revision","url":"\/guides\/zg46tfr\/revision\/1"},{"type":"test","url":"\/guides\/zg46tfr\/test"}],"image":null},{"id":"z8jfyrd","label":"Logical reasoning","type":"study-guide","url":"\/bitesize\/guides\/z8jfyrd","content":[{"type":"revision","url":"\/guides\/z8jfyrd\/revision\/1"},{"type":"test","url":"\/guides\/z8jfyrd\/test"}],"image":null}],"subTopics":[],"clipsCount":3,"clips":[{"title":"How sequences are used in programming","synopsis":"An explanation of sequences and how they are used in algorithms and programming.","pid":"p025lrv7","id":"zxy9d2p"},{"title":"What is iteration?","synopsis":"A simple explanation of iteration as used in algorithms and programming.","pid":"p025lqxz","id":"ztsckqt"},{"title":"What is selection?","synopsis":"An explanation of selection as used in algorithms and programming.","pid":"p025lrh0","id":"zxf487h"}],"url":"\/bitesize\/topics\/z7d634j","label":"Algorithms","subTopicsClipsCount":0},{"id":"zhy39j6","type":"content","content":[{"id":"zts8d2p","label":"Introduction to programming","type":"study-guide","url":"\/bitesize\/guides\/zts8d2p","content":[{"type":"revision","url":"\/guides\/zts8d2p\/revision\/1"},{"type":"test","url":"\/guides\/zts8d2p\/test"}],"image":null},{"id":"zwmbgk7","label":"Programming basics","type":"study-guide","url":"\/bitesize\/guides\/zwmbgk7","content":[{"type":"revision","url":"\/guides\/zwmbgk7\/revision\/1"},{"type":"test","url":"\/guides\/zwmbgk7\/test"}],"image":null},{"id":"z2p9kqt","label":"Selection in programming","type":"study-guide","url":"\/bitesize\/guides\/z2p9kqt","content":[{"type":"revision","url":"\/guides\/z2p9kqt\/revision\/1"},{"type":"test","url":"\/guides\/z2p9kqt\/test"}],"image":null},{"id":"z3khpv4","label":"Iteration in programming","type":"study-guide","url":"\/bitesize\/guides\/z3khpv4","content":[{"type":"revision","url":"\/guides\/z3khpv4\/revision\/1"},{"type":"test","url":"\/guides\/z3khpv4\/test"}],"image":null},{"id":"zqp9kqt","label":"Boolean logic","type":"study-guide","url":"\/bitesize\/guides\/zqp9kqt","content":[{"type":"revision","url":"\/guides\/zqp9kqt\/revision\/1"},{"type":"test","url":"\/guides\/zqp9kqt\/test"}],"image":null},{"id":"zy9thyc","label":"Arrays and lists","type":"study-guide","url":"\/bitesize\/guides\/zy9thyc","content":[{"type":"revision","url":"\/guides\/zy9thyc\/revision\/1"},{"type":"test","url":"\/guides\/zy9thyc\/test"}],"image":null},{"id":"zqh49j6","label":"Procedures and functions","type":"study-guide","url":"\/bitesize\/guides\/zqh49j6","content":[{"type":"revision","url":"\/guides\/zqh49j6\/revision\/1"},{"type":"test","url":"\/guides\/zqh49j6\/test"}],"image":null},{"id":"zcjfyrd","label":"Writing error-free code","type":"study-guide","url":"\/bitesize\/guides\/zcjfyrd","content":[{"type":"revision","url":"\/guides\/zcjfyrd\/revision\/1"},{"type":"test","url":"\/guides\/zcjfyrd\/test"}],"image":null}],"subTopics":[],"clipsCount":6,"clips":[{"title":"How sequences are used in programming","synopsis":"An explanation of sequences and how they are used in algorithms and programming.","pid":"p025lrv7","id":"zpgw7ty"},{"title":"Introduction to logic gates","synopsis":"A simple explanation of NOT, AND, OR and XOR logic gates used in computer systems.","pid":"p0260s3j","id":"zwmf34j"},{"title":"What are overflow errors?","synopsis":"Explaining what an overflow error is, how it can occur and what problems it might cause.","pid":"p025lw9v","id":"zg8xhyc"},{"title":"What is data encryption?","synopsis":"An explanation of encryption and how it is used to send digital information securely.","pid":"p0263420","id":"zqf487h"},{"title":"What is iteration?","synopsis":"A simple explanation of iteration as used in algorithms and programming.","pid":"p025lqxz","id":"zgkmtfr"},{"title":"What is selection?","synopsis":"An explanation of selection as used in algorithms and programming.","pid":"p025lrh0","id":"zgwtn39"}],"url":"\/bitesize\/topics\/zhy39j6","label":"Programming","subTopicsClipsCount":0},{"id":"zxnfr82","type":"content","content":[{"id":"z26rcdm","label":"Binary","type":"study-guide","url":"\/bitesize\/guides\/z26rcdm","content":[{"type":"revision","url":"\/guides\/z26rcdm\/revision\/1"},{"type":"test","url":"\/guides\/z26rcdm\/test"}],"image":null},{"id":"zpfdwmn","label":"Representing text, images and sound","type":"study-guide","url":"\/bitesize\/guides\/zpfdwmn","content":[{"type":"revision","url":"\/guides\/zpfdwmn\/revision\/1"},{"type":"test","url":"\/guides\/zpfdwmn\/test"}],"image":null}],"subTopics":[],"clipsCount":4,"clips":[{"title":"Converting denary to binary (part 1 of 2)","synopsis":"How to convert a denary number to a binary number using the divide by two method.","pid":"p025lx40","id":"zc8xhyc"},{"title":"Converting denary to binary (part 2 of 2)","synopsis":"How to convert a denary number to a binary number using the place values method.","pid":"p025lwlc","id":"z8qpfg8"},{"title":"Explaining file compression","synopsis":"An explanation of how lossy and lossless compression is used to reduce file sizes.","pid":"p0261894","id":"zs47xnb"},{"title":"What is two's complement?","synopsis":"Explaining two's compliment and how it's used to show negative numbers in binary.","pid":"p025lsdz","id":"zqnr9j6"}],"url":"\/bitesize\/topics\/zxnfr82","label":"Data representation","subTopicsClipsCount":0},{"id":"zmpsgk7","type":"content","content":[{"id":"zxb72hv","label":"Digital devices","type":"study-guide","url":"\/bitesize\/guides\/zxb72hv","content":[{"type":"revision","url":"\/guides\/zxb72hv\/revision\/1"},{"type":"test","url":"\/guides\/zxb72hv\/test"}],"image":null},{"id":"zcxgr82","label":"Software ","type":"study-guide","url":"\/bitesize\/guides\/zcxgr82","content":[{"type":"revision","url":"\/guides\/zcxgr82\/revision\/1"},{"type":"test","url":"\/guides\/zcxgr82\/test"}],"image":null},{"id":"zws8d2p","label":"The CPU and the fetch-execute cycle","type":"study-guide","url":"\/bitesize\/guides\/zws8d2p","content":[{"type":"revision","url":"\/guides\/zws8d2p\/revision\/1"},{"type":"test","url":"\/guides\/zws8d2p\/test"}],"image":null},{"id":"zc6rcdm","label":"Introduction to networks","type":"study-guide","url":"\/bitesize\/guides\/zc6rcdm","content":[{"type":"revision","url":"\/guides\/zc6rcdm\/revision\/1"},{"type":"test","url":"\/guides\/zc6rcdm\/test"}],"image":null}],"subTopics":[],"clipsCount":3,"clips":[{"title":"Description of an early computer","synopsis":"A description of the computer used to assist with vote counting during the 1955 general election.","pid":"p008jxpm","id":"z8vjxsg"},{"title":"Types of memory in a computer","synopsis":"Key features of Random Access Memory (RAM), Read Only Memory (ROM) and virtual memory.","pid":"p026dp53","id":"ztgw7ty"},{"title":"What are overflow errors?","synopsis":"Explaining what an overflow error is, how it can occur and what problems it might cause.","pid":"p025lw9v","id":"z2pg4wx"}],"url":"\/bitesize\/topics\/zmpsgk7","label":"Hardware and software","subTopicsClipsCount":0},{"id":"z6sycdm","type":"content","content":[{"id":"z8nk87h","label":"Internet and communication","type":"study-guide","url":"\/bitesize\/guides\/z8nk87h","content":[{"type":"revision","url":"\/guides\/z8nk87h\/revision\/1"},{"type":"test","url":"\/guides\/z8nk87h\/test"}],"image":null},{"id":"zpkhpv4","label":"Search engines","type":"study-guide","url":"\/bitesize\/guides\/zpkhpv4","content":[{"type":"revision","url":"\/guides\/zpkhpv4\/revision\/1"},{"type":"test","url":"\/guides\/zpkhpv4\/test"}],"image":null}],"subTopics":[],"clipsCount":1,"clips":[{"title":"What is data encryption?","synopsis":"An explanation of encryption and how it is used to send digital information securely.","pid":"p0263420","id":"z2vkwmn"}],"url":"\/bitesize\/topics\/z6sycdm","label":"Internet communication","subTopicsClipsCount":0},{"id":"z67ncdm","type":"content","content":[{"id":"z9p9kqt","label":"Online safety","type":"study-guide","url":"\/bitesize\/guides\/z9p9kqt","content":[{"type":"revision","url":"\/guides\/z9p9kqt\/revision\/1"},{"type":"test","url":"\/guides\/z9p9kqt\/test"}],"image":null},{"id":"z2g2mp3","label":"Bias and reliability","type":"study-guide","url":"\/bitesize\/guides\/z2g2mp3","content":[{"type":"revision","url":"\/guides\/z2g2mp3\/revision\/1"},{"type":"test","url":"\/guides\/z2g2mp3\/test"}],"image":null},{"id":"z9nk87h","label":"The law and ethics","type":"study-guide","url":"\/bitesize\/guides\/z9nk87h","content":[{"type":"revision","url":"\/guides\/z9nk87h\/revision\/1"},{"type":"test","url":"\/guides\/z9nk87h\/test"}],"image":null}],"subTopics":[],"clipsCount":0,"clips":[],"url":"\/bitesize\/topics\/z67ncdm","label":"Safety and responsibility","subTopicsClipsCount":0}]}}); });</script><script>Morph.toInit.registers.push(function() { Morph.register({"view":"bbc-morph-bitesize-programme-of-study-view","zid":"zvc9q6f","subdirectory":"bitesize","language":"en-GB","version":"1.24.0","_mrrVersion":"2.2.1"},'u3938382590684688'); });</script><script>Morph.init = function() { if (!Morph.initCalled) { Morph.markPerformance('morph-init'); Morph.initCalled = true; requirejs.config({ paths: { 'morph/react' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-react/1.0.0/react.min', 'morph/react-dom' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-react-dom/1.0.0/react-dom.min', 'morph/es5-shim' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-shim.min', 'morph/es5-sham' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-sham.min', 'morph/module/morph': '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/morph/5.3.1/bundle', 'live-push' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/morph-push-proxy-client/1.0.13/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(); } /* u3938382590684688 */</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-gel-icons@5.0.5"]={"bbc-morph-classnames":"1.0.2","morph-require":"5.2.1","react":"0.14.7"}; !function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));Morph.modules["bbc-morph-gel-icons@5.0.5"]=r.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(2)),o=r(n(3)),a=r(n(4)),l=i.default.createClass({displayName:"Icon",render:function(){var e=this.props,t=e.iconName,n=e.additionalClassNames,r=e.iconOnly,l="";try{var u=o.default.selfTransitiveThenUpdate("gel-icon-".concat(t),this);if(!u)throw new Error;l=i.default.createElement(u,null)}catch(e){l=i.default.createElement("noscript",null)}if(r)return l;var c=(0,a.default)("gel-icon","gel-icon--".concat(t),n);return i.default.createElement("div",{className:c},l)}});l.displayName="GEL__Icon",l.propTypes={iconName:i.default.PropTypes.string,additionalClassNames:i.default.PropTypes.string,wrapperElement:i.default.PropTypes.string},l.ensureIcon=function(e){"undefined"==typeof window&&o.default.selfTransitive("gel-icon-".concat(e),null)};var u=l;t.default=u},function(e,t){e.exports=React},function(e,t){e.exports={transitive:function(e,t){return Morph.requireTransitiveWithCaller("bbc-morph-gel-icons@5.0.5",e,t)},selfTransitive:function(e,t){return Morph.requireTransitiveWithCaller("bbc-morph-gel-icons@5.0.5",e,t,!0)},transitiveThenUpdate:function(e,t){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-gel-icons@5.0.5",e,t)},selfTransitiveThenUpdate:function(e,t){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-gel-icons@5.0.5",e,t,!0)}}},function(e,t){e.exports=Morph.modules["bbc-morph-classnames@1.0.2"]}]); //# sourceMappingURL=bundle.js.map; });</script><script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-bitesize-related-links-view@3.3.1"]={"@bbc/bitesize-branding":"10.0.0","bbc-morph-bitesize-related-links":"4.0.2","bbc-morph-gel-icons":"5.0.5","morph-container":"4.0.0","prop-types":"15.7.2",react:"0.14.7","react-dom":"0.14.7","svg-react-loader":"0.3.7"},function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){Morph.modules["bbc-morph-bitesize-related-links-view@3.3.1"]=n(1)},function(e,t,n){e.exports=n(2)},function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(e,t){e.exports=n(3)},function(e,t){e.exports=n(4)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(0)),l=(r(n(1)),r(n(3))),i=r(n(4)),o=function(e,t,n,r,l){return a.default.createElement("div",{className:"related-links__promo"},a.default.createElement("a",{href:e,className:"related-links__promo__link"},a.default.createElement("img",{src:"https://web.archive.org/web/20220121005457/https://ichef.bbci.co.uk/images/ic/80x80/".concat(n,".jpg"),alt:r,width:"80",height:"80"})),a.default.createElement("div",{className:"related-links__promo__body"},a.default.createElement("a",{href:e,className:"related-links__promo__titlelink"},t),a.default.createElement("p",null,l)))},u=function(e,t){return a.default.createElement("a",{href:e,className:"related-links__link"},t)},c=function(e,t){return a.default.createElement("a",{href:e,className:"related-links__link"},a.default.createElement(l.default,{iconName:"external-link",additionalClassNames:"related-links__link-icon"}),a.default.createElement("span",{className:"related-links__link-title"},t))},s=function(e){var t=e.links,n=t.internalLinks,r=t.externalLinks,l=e.language,s=n&&n.length>0&&n[0].pid?n[0]:null;return a.default.createElement("div",{className:"related-links"},a.default.createElement("h2",{className:"related-links__header"},(0,i.default)(l).title),s&&o(s.url,s.title,s.pid,s.altText,s.shortDescription),a.default.createElement("ul",{className:"related-links__list related-links__list--internal"},n.map(function(e,t){return null!==s&&t>0&&t<6||null===s&&t<5?a.default.createElement("li",{key:e.url,className:"related-links__item","data-bbc-container":"internal-links","data-bbc-metadata":'{"EXT":false}',"data-bbc-title":e.title},u(e.url,e.title)):null})),n&&r&&a.default.createElement("hr",null),a.default.createElement("ul",{className:"related-links__list related-links__list--external"},r.map(function(e,t){return t<5?a.default.createElement("li",{key:e.url,className:"related-links__item","data-bbc-container":"external-links","data-bbc-metadata":'{"EXT":true}',"data-bbc-title":e.title},c(e.url,e.title),(e.subscription||e.requiresSubscription)&&a.default.createElement("span",{className:"related-links__subscription"},(0,i.default)(l).subscription)):null})))};s.defaultProps={language:"en-GB"},s.displayName="RelatedLinks";var f=s;t.default=f,e.exports=t.default},function(e,t){e.exports=n(5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){return{"en-GB":{title:"Links",subscription:"SUBSCRIPTION"},"cy-GB":{title:"Dolenni",subscription:"TANYSGRIFIAD"},"ga-GB":{title:"Naisc",subscription:"SÍNTIÚS"},"gd-GB":{title:"Ceanglaichean",subscription:"SEIRBHEIS PÀIGHTE"}}[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en-GB"]};t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(6)),l=r(n(7)),i=a.default.create(l.default,{data:function(e){return{relatedLinksData:{uri:{data:"bbc-morph-bitesize-related-links",zid:e.zid,pageType:e.pageType},updates:!1}}}});t.default=i,e.exports=t.default},function(e,t){e.exports=n(6)},function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return(r="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})(e)}function a(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=b();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(a,o,u):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}(n(0)),y=(a(n(1)),a(n(2))),h=function(e){function t(){return i(this,t),n.apply(this,arguments)}c(t,e);var n=f(t);return u(t,[{key:"render",value:function(){var e=this.props,t=e.relatedLinksData,n=e.language,r=e.phase,a=t.meta.responseCode,l=t.body;return 200===a?_.default.createElement("div",{className:r?"related-links-wrapper--".concat(r):"related-links-wrapper"},_.default.createElement("div",{className:"related-links-container"},_.default.createElement(y.default,{links:l,language:n}))):null}}]),t}(_.Component);h.defaultProps={language:"en-GB",phase:null},h.displayName="RelatedLinksContainer";var k=h;t.default=k,e.exports=t.default}])},function(e,t){e.exports=React},function(e,t){e.exports=Morph.modules["prop-types@15.7.2"]},function(e,t){e.exports=Morph.modules["bbc-morph-gel-icons@5.0.5"]},function(e,t){e.exports={create:function(e,t){return Morph.createContainerWithCaller("bbc-morph-bitesize-related-links-view@3.3.1",e,t)}}}]);; });</script><script>Morph.toInit.bundles.push(function() { !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));Morph.modules["bbc-morph-gel-icons@5.0.5/gel-icon-external-link"]=r.default},function(e,t,n){"use strict";var r=n(2);e.exports=function(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},r.createElement("title",null,"external-link"),r.createElement("path",{d:"M12 0v5h11.5l-5 5H0v22h22V17.5l-2 2V30H2V12h14.5l-7.8 7.7 3.6 3.6L27 8.5V20h5V0H12z"}))}},function(e,t){e.exports=React}]); //# sourceMappingURL=bundle.js.map; });</script><script>Morph.toInit.payloads.push(function() { Morph.setPayload('/data/bbc-morph-bitesize-related-links/pageType/programme-of-study/version/4.0.2/zid/zvc9q6f', {"meta":{"responseCode":200,"errorMessage":null,"headers":{"content-type":"application\/json"}},"body":{"internalLinks":[{"title":"BBC Click","url":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/programmes\/b006m9ry","shortDescription":"","pid":"","altText":"","type":"internal-link"},{"title":"BBC Webwise","url":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/webwise\/0\/","shortDescription":"","pid":"","altText":"","type":"internal-link"},{"title":"BBC Technology news","url":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/news\/technology\/","shortDescription":"","pid":"","altText":"","type":"internal-link"},{"title":"Let's Talk About Tech","url":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.bbc.co.uk\/podcasts\/series\/jot","shortDescription":"","pid":"","altText":"","type":"internal-link"}],"externalLinks":[{"title":"Headsqueeze","url":"https:\/\/web.archive.org\/web\/20220121005457\/http:\/\/www.youtube.com\/watch?v=vvPDRp3x620","shortDescription":"Provides students with a diverse source of scientific knowledge for anyone from 9 years and above.","pid":"","altText":"","type":"external-link","subscription":false},{"title":"Khan Academy","url":"https:\/\/web.archive.org\/web\/20220121005457\/https:\/\/www.khanacademy.org\/cs","shortDescription":"Khan Academy is a self-paced, mastery-based, personalized learning experience.","pid":"","altText":"","type":"external-link","subscription":false},{"title":"Raspberry Pi","url":"https:\/\/web.archive.org\/web\/20220121005457\/https:\/\/www.raspberrypi.org\/resources\/","shortDescription":"Project-based digital making activities suited to a wide range of disciplines and interests.","pid":"","altText":"","type":"external-link","subscription":false},{"title":"Code Club","url":"https:\/\/web.archive.org\/web\/20220121005457\/https:\/\/codeclubprojects.org\/en-GB\/","shortDescription":"Project-based digital making activities suited to a wide range of disciplines and interests.","pid":"","altText":"","type":"external-link","subscription":true},{"title":"Educational App Store","url":"https:\/\/web.archive.org\/web\/20220121005457\/https:\/\/www.educationalappstore.com\/app\/category\/computer-science-apps","shortDescription":"Educational App Store is a platform for to browse and download apps with the most educational value","pid":"","altText":"","type":"external-link","subscription":true}]}}); });</script><script>Morph.toInit.registers.push(function() { Morph.register({"view":"bbc-morph-bitesize-related-links-view","pageType":"programme-of-study","zid":"zvc9q6f","language":"en-GB","version":"3.3.1","_mrrVersion":"2.2.1"},'u7934514225976015'); });</script><script>Morph.init = function() { if (!Morph.initCalled) { Morph.markPerformance('morph-init'); Morph.initCalled = true; requirejs.config({ paths: { 'morph/react' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-react/1.0.0/react.min', 'morph/react-dom' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-react-dom/1.0.0/react-dom.min', 'morph/es5-shim' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-shim.min', 'morph/es5-sham' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-sham.min', 'morph/module/morph': '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/morph/5.3.1/bundle', 'live-push' : '//web.archive.org/web/20220121005457/https://m.files.bbci.co.uk/modules/morph-push-proxy-client/1.0.13/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(); } /* u7934514225976015 */</script><!-- Chartbeat Web Analytics code - start --> <script type="text/javascript"> /** CONFIGURATION START **/ (function() { var noCookies = true; var cookiePrefix = '_chartbeat'; if ("object" === typeof bbccookies && typeof bbccookies.readPolicy == 'function') { noCookies = !bbccookies.readPolicy().performance; } if (noCookies && document.cookie.indexOf(cookiePrefix) !== -1) { //Find and remove cookies whose names begin with '_chartbeat' var cookieSplit = document.cookie.split(';'); var cookieLength = cookieSplit.length; while (cookieLength--) { var cookie = cookieSplit[cookieLength].replace(/^s+|s+$/g, ''); var cookieName = cookie.split('=')[0]; if (cookieName.indexOf(cookiePrefix) === 0) { document.cookie = cookieName + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;'; } } } _sf_async_config.noCookies = noCookies; }()); /** 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/20220121005457/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> <!-- Chartbeat Web Analytics code - end --></body></html><!-- FILE ARCHIVED ON 00:54:57 Jan 21, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 00:03:38 Nov 30, 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.545 exclusion.robots: 0.037 exclusion.robots.policy: 0.027 esindex: 0.011 cdx.remote: 5.218 LoadShardBlock: 336.611 (3) PetaboxLoader3.datanode: 248.319 (5) PetaboxLoader3.resolve: 114.452 (3) load_resource: 160.703 loaddict: 63.893 -->

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