@times-components/article-skeleton 1.165.7 → 1.165.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/article-sidebar.js +26 -3
- package/dist/article-skeleton.js +30 -19
- package/package.json +3 -3
- package/rnw.js +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,14 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [1.165.8](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.165.7...@times-components/article-skeleton@1.165.8) (2025-05-22)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @times-components/article-skeleton
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
6
14
|
## [1.165.7](https://github.com/newsuk/times-components/compare/@times-components/article-skeleton@1.165.6...@times-components/article-skeleton@1.165.7) (2025-05-22)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package @times-components/article-skeleton
|
package/dist/article-sidebar.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.fetchSidebarData = exports.fetchPolygonData = void 0;
|
7
7
|
|
8
8
|
var _sidebarData = _interopRequireDefault(require("@times-components/provider-queries/src/sidebar-data.js"));
|
9
9
|
|
@@ -82,5 +82,28 @@ const fetchPolygonData = /*#__PURE__*/function () {
|
|
82
82
|
};
|
83
83
|
}();
|
84
84
|
|
85
|
-
|
86
|
-
|
85
|
+
exports.fetchPolygonData = fetchPolygonData;
|
86
|
+
|
87
|
+
const fetchSidebarData = /*#__PURE__*/function () {
|
88
|
+
var _ref3 = _asyncToGenerator(function* () {
|
89
|
+
try {
|
90
|
+
const response = yield fetch("https://tnl-render.tools.news/production/config/puzzles/config.json");
|
91
|
+
|
92
|
+
if (!response.ok) {
|
93
|
+
throw new Error("Failed to fetch");
|
94
|
+
}
|
95
|
+
|
96
|
+
const data = yield response.json();
|
97
|
+
return data[0].sidebar;
|
98
|
+
} catch (error) {
|
99
|
+
console.error("Error fetching sidebar data:", error);
|
100
|
+
return [];
|
101
|
+
}
|
102
|
+
});
|
103
|
+
|
104
|
+
return function fetchSidebarData() {
|
105
|
+
return _ref3.apply(this, arguments);
|
106
|
+
};
|
107
|
+
}();
|
108
|
+
|
109
|
+
exports.fetchSidebarData = fetchSidebarData;
|
package/dist/article-skeleton.js
CHANGED
@@ -59,7 +59,7 @@ var _messageBar = require("@times-components/message-bar");
|
|
59
59
|
|
60
60
|
var _saveAndShareBar = _interopRequireDefault(require("@times-components/save-and-share-bar"));
|
61
61
|
|
62
|
-
var _articleSidebar =
|
62
|
+
var _articleSidebar = require("./article-sidebar");
|
63
63
|
|
64
64
|
var _staticContent = _interopRequireDefault(require("./static-content"));
|
65
65
|
|
@@ -300,9 +300,14 @@ const ArticleSkeleton = _ref => {
|
|
300
300
|
polygonUrl = _useState4[0],
|
301
301
|
setPolygonUrl = _useState4[1];
|
302
302
|
|
303
|
+
const _useState5 = (0, _react.useState)(null),
|
304
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
305
|
+
sidebarData = _useState6[0],
|
306
|
+
setSidebarData = _useState6[1];
|
307
|
+
|
303
308
|
const fetchPolygon = /*#__PURE__*/function () {
|
304
309
|
var _ref4 = _asyncToGenerator(function* () {
|
305
|
-
const polygon = yield (0, _articleSidebar.
|
310
|
+
const polygon = yield (0, _articleSidebar.fetchPolygonData)();
|
306
311
|
setPolygonUrl(polygon);
|
307
312
|
});
|
308
313
|
|
@@ -316,6 +321,20 @@ const ArticleSkeleton = _ref => {
|
|
316
321
|
fetchPolygon();
|
317
322
|
}
|
318
323
|
}, [canShowSidebar]);
|
324
|
+
(0, _react.useEffect)(() => {
|
325
|
+
const loadSidebarData = /*#__PURE__*/function () {
|
326
|
+
var _ref5 = _asyncToGenerator(function* () {
|
327
|
+
const data = yield (0, _articleSidebar.fetchSidebarData)();
|
328
|
+
setSidebarData(data);
|
329
|
+
});
|
330
|
+
|
331
|
+
return function loadSidebarData() {
|
332
|
+
return _ref5.apply(this, arguments);
|
333
|
+
};
|
334
|
+
}();
|
335
|
+
|
336
|
+
loadSidebarData();
|
337
|
+
}, []);
|
319
338
|
return /*#__PURE__*/_react.default.createElement(_sticky.StickyProvider, null, /*#__PURE__*/_react.default.createElement(_tsComponents.TrackingContextProvider, {
|
320
339
|
context: {
|
321
340
|
component: "ArticleSkeleton",
|
@@ -389,22 +408,14 @@ const ArticleSkeleton = _ref => {
|
|
389
408
|
html: '<div id="nu-zephr-article-target-bottom-headercontainer"></div>'
|
390
409
|
})), /*#__PURE__*/_react.default.createElement(_responsive.BodyContainer, null, /*#__PURE__*/_react.default.createElement(_responsive.ArticleWrapper, null, canShowSidebar && /*#__PURE__*/_react.default.createElement(_responsive.SidebarWarpper, null, /*#__PURE__*/_react.default.createElement(_responsive.PuzzlesSidebar, {
|
391
410
|
ref: sidebarRef
|
392
|
-
}, categoryPath === "life-style" ? /*#__PURE__*/_react.default.createElement(_tsComponents.ArticleSidebar, {
|
411
|
+
}, categoryPath === "life-style" && Array.isArray(sidebarData) && sidebarData.length > 0 ? /*#__PURE__*/_react.default.createElement(_tsComponents.ArticleSidebar, {
|
393
412
|
pageLink: "".concat(domainSpecificUrl, "/puzzles"),
|
394
413
|
sectionTitle: "Puzzles",
|
395
|
-
data:
|
396
|
-
title:
|
397
|
-
url: "".concat(domainSpecificUrl, "/puzzles/
|
398
|
-
imgUrl:
|
399
|
-
}
|
400
|
-
title: "Polygon",
|
401
|
-
url: polygonUrl,
|
402
|
-
imgUrl: "https://www.thetimes.com/d/img/puzzles/new-illustrations/polygon-875ea55487.png"
|
403
|
-
}, {
|
404
|
-
title: "Sudoku",
|
405
|
-
url: "".concat(domainSpecificUrl, "/puzzles/sudoku"),
|
406
|
-
imgUrl: "https://www.thetimes.com/d/img/puzzles/new-illustrations/sudoku-ee2aea0209.png"
|
407
|
-
}]
|
414
|
+
data: sidebarData.map(item => ({
|
415
|
+
title: item.name,
|
416
|
+
url: item.type === "polygon" ? polygonUrl : item.link || "".concat(domainSpecificUrl, "/puzzles/").concat(item.type),
|
417
|
+
imgUrl: item.image
|
418
|
+
}))
|
408
419
|
}) : /*#__PURE__*/_react.default.createElement(_tsComponents.QuizleSidebar, {
|
409
420
|
pageLink: "".concat(domainSpecificUrl, "/quizle"),
|
410
421
|
sectionTitle: "Today's Quizle"
|
@@ -432,9 +443,9 @@ const ArticleSkeleton = _ref => {
|
|
432
443
|
})))), !removeTeaserContent && /*#__PURE__*/_react.default.createElement(_lazyLoad.default, {
|
433
444
|
rootMargin: (0, _tsStyleguide.spacing)(40),
|
434
445
|
threshold: 0
|
435
|
-
},
|
436
|
-
let observed =
|
437
|
-
registerNode =
|
446
|
+
}, _ref6 => {
|
447
|
+
let observed = _ref6.observed,
|
448
|
+
registerNode = _ref6.registerNode;
|
438
449
|
return /*#__PURE__*/_react.default.createElement(_articleExtras.default, {
|
439
450
|
analyticsStream: analyticsStream,
|
440
451
|
articleId: articleId,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@times-components/article-skeleton",
|
3
|
-
"version": "1.165.
|
3
|
+
"version": "1.165.8",
|
4
4
|
"description": "The article skeleton",
|
5
5
|
"main": "dist/article-skeleton",
|
6
6
|
"dev": "src/article-skeleton",
|
@@ -64,7 +64,7 @@
|
|
64
64
|
"@times-components/ad": "2.22.39",
|
65
65
|
"@times-components/article-extras": "0.39.10",
|
66
66
|
"@times-components/article-image": "7.20.2",
|
67
|
-
"@times-components/article-paragraph": "1.9.
|
67
|
+
"@times-components/article-paragraph": "1.9.416",
|
68
68
|
"@times-components/article-topics": "4.11.71",
|
69
69
|
"@times-components/caption": "3.8.71",
|
70
70
|
"@times-components/context": "1.25.9",
|
@@ -105,5 +105,5 @@
|
|
105
105
|
"publishConfig": {
|
106
106
|
"access": "public"
|
107
107
|
},
|
108
|
-
"gitHead": "
|
108
|
+
"gitHead": "51696a9db11a02ed558e358a0eca428c07be366d"
|
109
109
|
}
|
package/rnw.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("prop-types")},function(e,t){var n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/,i=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,d=l||s||Function("return this")();var p,u=Array.prototype,m=Function.prototype,f=Object.prototype,h=d["__core-js_shared__"],g=(p=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",b=m.toString,y=f.hasOwnProperty,w=f.toString,v=RegExp("^"+b.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=d.Symbol,E=u.splice,j=F(d,"Map"),x=F(Object,"create"),k=O?O.prototype:void 0,P=k?k.toString:void 0;function S(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function A(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function I(e,t){for(var i,a=0,o=(t=function(e,t){if(U(e))return!1;var i=typeof e;if("number"==i||"symbol"==i||"boolean"==i||null==e||q(e))return!0;return r.test(e)||!n.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:U(i=t)?i:N(i)).length;null!=e&&a<o;)e=e[D(t[a++])];return a&&a==o?e:void 0}function z(e){return!(!B(e)||(t=e,g&&g in t))&&(function(e){var t=B(e)?w.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?v:c).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function T(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function F(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return z(n)?n:void 0}S.prototype.clear=function(){this.__data__=x?x(null):{}},S.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},S.prototype.get=function(e){var t=this.__data__;if(x){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return y.call(t,e)?t[e]:void 0},S.prototype.has=function(e){var t=this.__data__;return x?void 0!==t[e]:y.call(t,e)},S.prototype.set=function(e,t){return this.__data__[e]=x&&void 0===t?"__lodash_hash_undefined__":t,this},_.prototype.clear=function(){this.__data__=[]},_.prototype.delete=function(e){var t=this.__data__,n=A(t,e);return!(n<0)&&(n==t.length-1?t.pop():E.call(t,n,1),!0)},_.prototype.get=function(e){var t=this.__data__,n=A(t,e);return n<0?void 0:t[n][1]},_.prototype.has=function(e){return A(this.__data__,e)>-1},_.prototype.set=function(e,t){var n=this.__data__,r=A(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new S,map:new(j||_),string:new S}},C.prototype.delete=function(e){return T(this,e).delete(e)},C.prototype.get=function(e){return T(this,e).get(e)},C.prototype.has=function(e){return T(this,e).has(e)},C.prototype.set=function(e,t){return T(this,e).set(e,t),this};var N=M((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(q(e))return P?P.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return i.test(e)&&n.push(""),e.replace(a,(function(e,t,r,i){n.push(r?i.replace(o,"$1"):t||e)})),n}));function D(e){if("string"==typeof e||q(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function M(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(M.Cache||C),n}M.Cache=C;var U=Array.isArray;function B(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function q(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==w.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:I(e,t);return void 0===r?n:r}},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t){e.exports=require("@times-components/ad/rnw")},function(e,t){e.exports=require("@times-components/sticky/rnw")},function(e,t){e.exports=require("@times-components/context/rnw")},function(e,t){e.exports=require("@times-components/tracking/rnw")},function(e,t){e.exports=require("@times-components/markup-forest/rnw")},function(e,t){e.exports=require("@times-components/user-state/rnw")},function(e,t){e.exports=require("@times-components/lazy-load/rnw")},function(e,t){e.exports=require("@times-components/save-and-share-bar/rnw")},function(e,t){e.exports=require("@times-components/link/rnw")},function(e,t){e.exports=require("@times-components/article-paragraph/rnw")},function(e,t){e.exports=require("@times-components/interactive-wrapper/rnw")},function(e,t){e.exports=require("@times-components/caption/rnw")},function(e,t){e.exports=require("@times-components/article-extras/rnw")},function(e,t){e.exports=require("@times-components/message-bar/rnw")},function(e,t){e.exports=require("@times-components/article-image/rnw")},function(e,t){e.exports=require("@times-components/key-facts/rnw")},function(e,t){e.exports=require("@times-components/markup/rnw")},function(e,t){e.exports=require("@times-components/pull-quote/rnw")},function(e,t){e.exports=require("@times-components/video/rnw")},function(e,t){e.exports=require("react-helmet-async")},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=n(4),o=n.n(a),c=n(7),l=n(19),s=n.n(l),d=n(13),p=n.n(d),u=n(8),m=n.n(u),f=n(10),h=n(3),g=n(1),b=n(12),y=n.n(b),w=n(20),v=n(14),O=n.n(v);function E(e,t,n,r,i,a,o){try{var c=e[a](o),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}function j(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}const x=new Intl.DateTimeFormat("en-UK",{timeZone:"Europe/London",year:"numeric",month:"2-digit",day:"2-digit"}).format(new Date).split("/"),k=(A=3,function(e){if(Array.isArray(e))return e}(C=x)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,i,a=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}}(C,A)||function(e,t){if(e){if("string"==typeof e)return j(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)?j(e,t):void 0}}(C,A)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),P=k[0],S=k[1],_=k[2];var C,A;const I="".concat(_,"-").concat(S,"-").concat(P);var z=function(){var e,t=(e=function*(){try{const e=yield fetch("https://api.thetimes.co.uk/graphql",{method:"POST",headers:{"x-use-standalone-puzzle-data":"true"},body:JSON.stringify({query:"\n query GetPuzzlesByType($puzzleStartDate: ShortDate!, $puzzleEndDate: ShortDate!, $type: String!) {\n puzzles(dateSince: $puzzleStartDate, dateBefore: $puzzleEndDate, type: $type){\n list(first:1){\n shortIdentifier\n slug\n }\n }\n }\n",variables:{puzzleStartDate:I,puzzleEndDate:I,type:"polygon"}})});if(!e.ok)throw new Error("Network response was not ok: ".concat(e.status));const t=yield e.json(),n=t&&t.data&&t.data.puzzles&&t.data.puzzles.list;return n?n.map(e=>{let t=e.slug,n=e.shortIdentifier;return"".concat("/puzzles/word-puzzles","/").concat(t,"-").concat(n)}):[]}catch(e){return console.error("Error fetching puzzle data:",e),[]}},function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){E(a,r,i,o,c,"next",e)}function c(e){E(a,r,i,o,c,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function M(e){e.children;let t=e.element,n=void 0===t?"div":t,i=e.html,a=D(e,["children","element","html"]);return Object(r.createElement)(n,F(F({},a),{},{undefined:void 0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i}}))}var U=n(21),B=n.n(U),q=n(16),L=n.n(q),R=n(9),W=n.n(R),H=n(17),V=n.n(H),$=n(22),K=n.n($),Q=n(23),G=n.n(Q),J=n(24),Y=n.n(J),Z=n(25),X=n.n(Z),ee=n(11),te=n.n(ee),ne=n(6),re=n(15),ie=n.n(re);const ae={base:"\n color: ".concat(g.colours.functional.action,";\n font-family: ").concat(g.fontsWithFallback.bodyRegular,";\n line-height: 26px;\n font-size: ").concat(g.fontSizes.bodyMobile,"px;\n margin-bottom: ").concat(Object(g.spacing)(5),"px;\n margin-top: 0;\n "),medium:"\n font-size: ".concat(g.fontSizes.body,"px;\n line-height: 30px;\n ")},oe={base:"\n font-size: inherit;\n text-decoration: none;\n color: ".concat(g.colours.functional.action,";\n ")};function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const de=e=>{let t=e.children,n=e.target,r=e.url,a=e.onPress,o=e.dropCap;return i.a.createElement(i.a.Fragment,null,0===t.length?i.a.createElement(i.a.Fragment,null,i.a.createElement(ie.a,{responsiveLinkStyles:ae,target:n,onPress:a,url:r},r)," "):i.a.createElement(ie.a,{underlined:!(o&&1===t[0].length),responsiveLinkStyles:o?oe:ae,target:n,url:r,onPress:a},t))};de.defaultProps=le(le({},ie.a.defaultProps),{},{onPress:()=>{},dropCap:!1});var pe,ue=(pe=de,Object(f.withTrackEvents)(pe,{analyticsEvents:[{actionName:"Pressed",eventName:"onPress",getAttrs:e=>{let t=e.target;return{url:e.url,target:t,linkText:e.children[0]}},trackingName:"ArticleLink"}]})),me=n(2),fe=n.n(me),he=n(18),ge=n.n(he);function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const we=fe()(ne.TcView).withConfig({displayName:"inset-caption__InsetCaptionStyle",componentId:"la2hkf-0"})(["padding-left:",";@media (min-width:","px){padding-left:0px;}"],Object(g.spacing)(2),g.breakpoints.medium),ve=e=>{let t=e.caption,n=e.credits;return i.a.createElement(we,null,i.a.createElement(ge.a,{credits:n,text:t}))};ve.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach((function(t){ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},ge.a.defaultProps);var Oe=ve;fe.a.div.withConfig({displayName:"responsive__ParagraphContainer",componentId:"sc-4v1r4q-0"})(["padding-left:",";padding-right:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(2),Object(g.spacing)(2),g.breakpoints.medium,g.breakpoints.wide),fe.a.p.withConfig({displayName:"responsive__Paragraph",componentId:"sc-4v1r4q-1"})(["color:",";font-family:",";line-height:26px;font-size:","px;margin-bottom:",";margin-top:0;display:block;@media (min-width:","px){font-size:","px;line-height:30px;}"],g.colours.functional.primary,g.fontsWithFallback.bodyRegular,g.fontSizes.bodyMobile,Object(g.spacing)(5),g.breakpoints.medium,g.fontSizes.body);const Ee=fe.a.div.withConfig({displayName:"responsive__InteractiveContainer",componentId:"sc-4v1r4q-2"})(["position:relative;margin-bottom:",";",";"],Object(g.spacing)(4),e=>e.fullWidth?Object(me.css)(["width:100%;"]):Object(me.css)(["padding:0 ",";@media (min-width:","px){width:80.8%;margin-left:auto;margin-right:auto;padding:0;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(2),g.breakpoints.medium,g.breakpoints.wide)),je=fe()(ne.TcView).withConfig({displayName:"responsive__PrimaryImg",componentId:"sc-4v1r4q-3"})(["width:100%;flex-direction:column;padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(5),g.breakpoints.medium,g.breakpoints.wide),xe=fe()(ne.TcView).withConfig({displayName:"responsive__FullWidthImg",componentId:"sc-4v1r4q-4"})(["padding-bottom:",";"],Object(g.spacing)(4)),ke=fe()(ne.TcView).withConfig({displayName:"responsive__SecondaryImg",componentId:"sc-4v1r4q-5"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(2),Object(g.spacing)(2),Object(g.spacing)(5),g.breakpoints.medium,g.breakpoints.wide),Pe=fe()(ne.TcView).withConfig({displayName:"responsive__InlineImg",componentId:"sc-4v1r4q-6"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:0;display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(2),Object(g.spacing)(2),g.breakpoints.medium,g.breakpoints.wide),Se=fe()(ne.TcView).withConfig({displayName:"responsive__PullQuoteResp",componentId:"sc-4v1r4q-7"})(["padding-left:",";padding-right:",";margin-bottom:",";@media (min-width:","px){width:50%;float:left;margin-right:",";margin-bottom:0px;margin-top:",";padding-left:0px;padding-right:0px;}"],Object(g.spacing)(2),Object(g.spacing)(2),Object(g.spacing)(2),g.breakpoints.medium,Object(g.spacing)(4),Object(g.spacing)(1)),_e=fe()(ne.TcView).withConfig({displayName:"responsive__PullQuoteContainer",componentId:"sc-4v1r4q-8"})(["display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],g.breakpoints.medium,g.breakpoints.wide),Ce="color: ".concat(g.colours.functional.primary,";\n font-family: ").concat(g.fontsWithFallback.headline,";\n font-weight: 400;\n margin: 0 auto ").concat(Object(g.spacing)(2),";\n padding-right: ").concat(Object(g.spacing)(2),";\n padding-left: ").concat(Object(g.spacing)(2),";\n\n @media (min-width: ").concat(g.breakpoints.medium,"px) {\n padding-left: 0;\n padding-right: 0;\n width: 80.8%;\n }\n\n @media (min-width: ").concat(g.breakpoints.wide,"px) {\n width: 56.2%;\n }"),Ae=fe.a.h2.withConfig({displayName:"responsive__Heading2",componentId:"sc-4v1r4q-9"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Ce,g.fontSizes.heading2Mobile,g.fontSizes.heading2Mobile,g.breakpoints.medium,g.fontSizes.heading2,g.fontSizes.heading2),Ie=fe.a.h3.withConfig({displayName:"responsive__Heading3",componentId:"sc-4v1r4q-10"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Ce,g.fontSizes.heading3Mobile,g.fontSizes.heading3Mobile,g.breakpoints.medium,g.fontSizes.heading3,g.fontSizes.heading3),ze=fe.a.h4.withConfig({displayName:"responsive__Heading4",componentId:"sc-4v1r4q-11"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Ce,g.fontSizes.heading4Mobile,g.fontSizes.heading4Mobile,g.breakpoints.medium,g.fontSizes.heading4,g.fontSizes.heading4),Te=fe.a.h5.withConfig({displayName:"responsive__Heading5",componentId:"sc-4v1r4q-12"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Ce,g.fontSizes.heading5Mobile,g.fontSizes.heading5Mobile,g.breakpoints.medium,g.fontSizes.heading5,g.fontSizes.heading5),Fe=fe.a.h6.withConfig({displayName:"responsive__Heading6",componentId:"sc-4v1r4q-13"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Ce,g.fontSizes.heading5Mobile,g.fontSizes.heading5Mobile,g.breakpoints.medium,g.fontSizes.heading5,g.fontSizes.heading5),Ne=fe.a.div.withConfig({displayName:"responsive__InlineAdWrapper",componentId:"sc-4v1r4q-14"})(["clear:both;min-height:283px;margin:30px 0;box-sizing:content-box;padding:0 0 10px;border-bottom:1px solid rgb(219,219,219);@media (min-width:768px){min-height:123px;}@media (min-width:1024px){min-height:283px;}"]),De=fe.a.span.withConfig({displayName:"responsive__InlineAdTitle",componentId:"sc-4v1r4q-15"})(["border-bottom:1px solid rgb(219,219,219);color:#696969;flex:1 1 100%;font:normal ","px / 17px ",";letter-spacing:0.6px;margin:0 0 10px;padding:0 0 5px;text-align:center;text-transform:uppercase;display:block;"],g.fontSizes.teaser,g.fontsWithFallback.bodyRegular),Me=fe.a.ul.withConfig({displayName:"article-list__StyledUl",componentId:"sc-1m2quer-0"})(["color:",";display:block;font-family:",";line-height:26px;font-size:","px;margin:0 auto ",";padding-right:",";padding-left:",";@media (min-width:","px){font-size:","px;line-height:30px;padding-left:",";padding-right:0;width:80.8%;}@media (min-width:","px){width:56.2%;}"],g.colours.functional.primary,g.fontsWithFallback.bodyRegular,g.fontSizes.bodyMobile,Object(g.spacing)(5),Object(g.spacing)(2),Object(g.spacing)(6),g.breakpoints.medium,g.fontSizes.body,Object(g.spacing)(3),g.breakpoints.wide),Ue=fe.a.li.withConfig({displayName:"article-list__StyledLi",componentId:"sc-1m2quer-1"})(["margin-bottom:16px;list-style:square;color:",";font-family:",";line-height:26px;font-size:","px;p{width:100% !important;margin-block-start:16px;margin-block-end:0;&:empty{display:none;}}"],g.colours.functional.primary,g.fontsWithFallback.bodyRegular,g.fontSizes.bodyMobile);function Be(){return(Be=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}).apply(this,arguments)}function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const We=(e,t)=>["c8bf6998-d498-11ed-b5c3-54651fc826e9"].includes(e)||t,He=e=>{switch(e){case"secondary":return ke;case"inline":return Pe;case"fullwidth":return xe;default:return je}},Ve=(e,t,n)=>{const r=e.get(t)&&e.get(t).clientWidth?e.get(t).clientWidth:null;return r&&window.devicePixelRatio>1&&"indepth"===n&&1.5*r||r},$e=e=>{let t=e.content,n=e.contextUrl,r=e.section,a=e.paidContentClassName,o=e.template,l=e.isPreview,s=e.swgProductId,d=e.inArticlePuffFlag,u=e.isLiveOrBreaking,m=e.articleHeadline,f=e.id,b=e.deckApiUrl,y=e.isWebPFormatActive,w=e.isExcludedFromAdsPathFromServer;return te()(t.map((e=>{let t=e.contextUrl,n=e.section;return e=>"ad"===e.name?Le(Le({},e),{},{attributes:Le(Le({},e.attributes),{},{contextUrl:t,section:n})}):e})({contextUrl:n,section:r})),(e=>{let t=e.paidContentClassName,n=e.template,r=e.analyticsStream,a=e.isPreview,o=e.isLiveOrBreaking,l=e.section,s=e.articleHeadline,d=e.articleId,u=e.deckApiUrl,m=e.isWebPFormatActive,f=e.isExcludedFromAdsPathFromServer;return Le(Le({},G.a),{},{ad:e=>We(d,f)?null:i.a.createElement(Ne,null,i.a.createElement(De,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inline-ad"})),inlineAd1:e=>We(d,f)?null:i.a.createElement(Ne,null,i.a.createElement(De,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd1"})),inlineAd2:e=>We(d,f)?null:i.a.createElement(Ne,null,i.a.createElement(De,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd2"})),inlineAd3:e=>We(d,f)?null:i.a.createElement(Ne,null,i.a.createElement(De,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd3"})),inlineAd4:e=>We(d,f)?null:i.a.createElement(Ne,null,i.a.createElement(De,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd4"})),dropCap:(e,t,n)=>i.a.createElement(W.a.Consumer,{key:e},e=>{let t=e.theme,r=t.dropCapFont,a=t.sectionColour,o=void 0===a?g.colours.section.default:a;return i.a.createElement(q.DropCapView,{colour:o,font:r},n)}),image(e,t){let r=t.id,a=t.display,o=t.ratio,c=t.url,l=t.caption,s=t.title,d=t.credits;const u=He(a);return i.a.createElement(p.a,{key:e,rootMargin:Object(g.spacing)(40),threshold:0},t=>{let p=t.observed,f=t.registerNode;return i.a.createElement("div",{id:e,ref:e=>f(e)},i.a.createElement("div",{id:r},i.a.createElement(u,null,i.a.createElement(B.a,{captionOptions:{caption:l,title:s,credits:d},imageOptions:{display:a,highResSize:Ve(p,e,n),lowResQuality:3,lowResSize:400,ratio:o,uri:c},isWebPFormatActive:m}))))})},interactive(e,t){let n=t.id,c=t.url,s=t.element,d=t.display;const p=s.attributes,m=s.value,f=u||"https://editorial-tm.newsapis.co.uk/prod/deck-component-data-api";switch(m){case"in-article-info-card":return i.a.createElement(W.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.InfoCard,{sectionColour:t.sectionColour})))});case"in-article-info-card-bulletpoints":return i.a.createElement(W.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.InfoCardBulletPoints,{sectionColour:t.sectionColour})))});case"in-article-big-numbers":return i.a.createElement(W.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.BigNumbers,{sectionColour:t.sectionColour})))});case"in-article-timelines":return i.a.createElement(W.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.Timelines,{sectionColour:t.sectionColour})))});case"gallery-carousel":return i.a.createElement(W.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.GalleryCarousel,{sectionColour:t.sectionColour})))});case"twitter-embed":case"instagram-embed":return i.a.createElement(Ee,{key:e},i.a.createElement(h.SocialMediaEmbed,{url:p.url,vendorName:m.split("-")[0],id:n}));case"times-embed-iframe-max":{const t=s.attributes&&s.attributes.src||"",r=t.includes("youtube"),a=t.includes("tiktok");return r&&a?i.a.createElement(Ee,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.SocialMediaEmbed,{url:a?decodeURIComponent(t):t,vendorName:r?"youtube":a&&"tiktok",id:n})):i.a.createElement(Ee,{key:e,fullWidth:"fullwidth"===d},i.a.createElement("div",{id:n},i.a.createElement(V.a,{attributes:p,element:m,key:e,source:c})))}case"times-travel-cta":{const t=s.attributes;return i.a.createElement(Ee,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.CtaButton,{attributes:t}))}case"times-text-collapse":{const t=s.attributes;return i.a.createElement(Ee,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.AffiliateLinkDisclaimer,{attributes:t}))}case"times-article-slices":{const t=s.attributes;return i.a.createElement(Ee,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.ArticleCard,{element:t}))}case"newsletter-puff":const t=p.code,u=p.copy,g=p.headline;return a?i.a.createElement("div",{id:n},i.a.createElement(h.PreviewNewsletterPuff,{copy:Object(h.safeDecodeURIComponent)(u),headline:Object(h.safeDecodeURIComponent)(g),section:l})):i.a.createElement("div",{id:n},i.a.createElement(h.InlineNewsletterPuff,{analyticsStream:r,key:e,code:t,copy:Object(h.safeDecodeURIComponent)(u),headline:Object(h.safeDecodeURIComponent)(g),section:l}));case"opta-cricket-scorecard":case"opta-cricket-scorecard-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaCricketScorecard,{competition:p.competition,match:p.match}));case"opta-football-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-football-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-football-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballSummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-lineups-v3":case"opta-football-top-scorers-v3":case"opta-football-match-commentary-v3":case"opta-football-hub":return null;case"opta-rugby-union-fixtures-v2":case"opta-rugby-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-rugby-union-standings-v2":case"opta-rugby-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-rugby-union-match-summary-v2":case"opta-rugby-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbySummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-rugby-union-match-stats-v2":case"opta-rugby-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"in-article-puff":return i.a.createElement(W.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.InArticlePuff,{sectionColour:t.sectionColour,forceImageAspectRatio:"3:2",isLiveOrBreaking:o})))});case"article-header":return i.a.createElement("div",{id:n},i.a.createElement(h.ArticleHeader,{updated:p.updated,breaking:p.breaking,headline:p.headline,authorSlug:p.slug,description:p.description}));default:return i.a.createElement(Ee,{key:e,fullWidth:"fullwidth"===d},i.a.createElement("div",{id:n},i.a.createElement(V.a,{attributes:p,element:m,key:e,source:c})))}},autoNewsletterPuff(e,t){const n=t.element.attributes,a=n.code,o=n.copy,c=n.headline;return i.a.createElement(h.AutoNewsletterPuff,{analyticsStream:r,key:e,code:a,copy:o,headline:c,section:l})},keyFacts:(e,t,n,r,a)=>i.a.createElement(K.a,{key:e,ast:a,section:l,headline:s,isLiveOrBreaking:o}),heading2:(e,t,n)=>i.a.createElement(Ae,null,n),heading3:(e,t,n)=>i.a.createElement(Ie,null,n),heading4:(e,t,n)=>i.a.createElement(ze,null,n),heading5:(e,t,n)=>i.a.createElement(Te,null,n),heading6:(e,t,n)=>i.a.createElement(Fe,null,n),link(e,t,n){const r=t.href,a=t.target,o=t.dropCap;return i.a.createElement(ue,{dropCap:o,key:e,target:a,url:r},n)},listElement:(e,t,n)=>i.a.createElement(Ue,{key:e},n),unorderedList:(e,t,n)=>i.a.createElement(Me,{key:e},n),paragraph(e,t,n){const r=t&&t.id;return i.a.createElement(L.a,Be({key:e},r?{id:r}:{}),n)},paywall:(e,n,r)=>i.a.createElement("span",{className:t,key:e},r),pullQuote(e,t,n){let r=t.caption,a=r.name,o=r.text,c=r.twitter;return i.a.createElement(W.a.Consumer,{key:e},e=>{let t=e.theme,r=t.pullQuoteFont,l=t.sectionColour,s=void 0===l?g.colours.section.default:l;return i.a.createElement(_e,null,i.a.createElement(Se,null,i.a.createElement(Y.a,{caption:a,font:r,quoteColour:s,text:o,twitter:c},n)))})},video(e,t){let n=t.id,r=t.is360,a=t.brightcovePolicyKey,o=t.brightcoveVideoId,c=t.brightcoveAccountId,l=t.brightcovePlayerId,s=t.caption,d=t.posterImageUrl;const p=He("primary");return i.a.createElement(p,{key:e},i.a.createElement("figure",{style:{margin:0}},i.a.createElement(ne.AspectRatioContainer,{aspectRatio:"16:9"},i.a.createElement(X.a,{id:n,is360:r,accountId:c,height:"100%",playerId:l,policyKey:a,poster:{uri:d},videoId:o,width:"100%"})),i.a.createElement("figcaption",null,i.a.createElement(Oe,{caption:s}))))}})})({paidContentClassName:a,template:o,isPreview:l,swgProductId:s,inArticlePuffFlag:d,isLiveOrBreaking:u,articleId:f,section:r,articleHeadline:m,deckApiUrl:b,isWebPFormatActive:y,contextUrl:n,isExcludedFromAdsPathFromServer:w}))};$e.propTypes={content:o.a.arrayOf(o.a.shape({attributes:o.a.object,children:o.a.arrayOf(o.a.object),name:o.a.string})).isRequired,contextUrl:o.a.string.isRequired,paidContentClassName:o.a.string,section:o.a.string};var Ke=$e;o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func,o.a.shape({account:o.a.string.isRequired}).isRequired,o.a.string,o.a.bool,o.a.bool;var Qe=n(5),Ge=n.n(Qe);const Je=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.registrationType?e.registrationType:""},Ye=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.customerType?e.customerType:""},Ze=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.isShared?"yes":"no"},Xe=e=>{const t=["LIVE","BREAKING"],n=e&&e.find(e=>t.includes(e.type.toUpperCase()));return n&&n.type},et=e=>{if(!e)return[];const t=e.find(e=>null===e.expiryTime||(new Date).getTime()<new Date(e.expiryTime).getTime());return t&&t.type&&t.type.toLowerCase()};function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach((function(t){rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var it=e=>{const t=e.find(e=>"paywall"===e.name);if(!t)return e;const n=t.children.filter(e=>"paragraph"===e.name).pop(),r=t.children.indexOf(n),i=t.children.map((e,t)=>t===r?nt(nt({},e),{},{attributes:nt(nt({},e.attributes),{},{id:"last-paragraph"})}):e);return e.map(e=>"paywall"===e.name?nt(nt({},e),{},{children:i}):e)};const at=fe.a.div.withConfig({displayName:"keylines__KeylineItem",componentId:"sc-1s03wwf-0"})(["border:solid ",";border-width:1px 0;& + &{margin-top:-1px !important;}"],g.colours.functional.keyline),ot=fe()(at).withConfig({displayName:"keylines__ArticleKeylineItem",componentId:"sc-1s03wwf-1"})(["@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],g.breakpoints.medium,Object(g.spacing)(6),g.breakpoints.medium,g.breakpoints.wide,Object(g.spacing)(2),Object(g.spacing)(2)),ct=fe.a.main.withConfig({displayName:"responsive__MainContainer",componentId:"sc-15gvuj2-1"})(["@media (min-width:","px){padding-top:",";margin:0 auto;}"],g.breakpoints.wide,Object(g.spacing)(4)),lt=fe()(ne.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"sc-15gvuj2-2"})(["display:flex;z-index:1;> ","{order:3;}"],ot),st=fe.a.article.withConfig({displayName:"responsive__BodyContainer",componentId:"sc-15gvuj2-3"})(["display:block;order:4;"]),dt=fe.a.div.withConfig({displayName:"responsive__UpdateButtonContainer",componentId:"sc-15gvuj2-4"})(["position:sticky;bottom:50px;display:flex;width:100%;justify-content:center;@media (min-width:","px){bottom:80px;}@media (min-width:","px){bottom:120px;}"],g.breakpoints.medium,g.breakpoints.wide),pt=fe.a.div.withConfig({displayName:"responsive__SidebarWarpper",componentId:"sc-15gvuj2-5"})(["position:sticky;top:162px;display:none;left:100%;@media (min-width:","px){width:19.8333%;display:inline-block;}@media (min-width:","px){width:18.8333%;top:112px;}"],g.breakpoints.wide,g.breakpoints.huge),ut=fe.a.div.withConfig({displayName:"responsive__PuzzlesSidebar",componentId:"sc-15gvuj2-6"})(["position:sticky;padding-left:",";z-index:1;@media (min-width:","px){padding-right:",";}@media (min-width:","px){padding-right:",";}"],Object(g.spacing)(4),g.breakpoints.wide,Object(g.spacing)(8),g.breakpoints.huge,Object(g.spacing)(10)),mt=fe.a.div.withConfig({displayName:"responsive__ArticleWrapper",componentId:"sc-15gvuj2-7"})(["position:relative;"]),ft=fe.a.div.withConfig({displayName:"responsive__ArticleContent",componentId:"sc-15gvuj2-8"})(["@media (min-width:","px){margin-top:",";transition:margin-top 0.2s ease;}"],g.breakpoints.wide,e=>e.showMargin?"-335px":"0"),ht=fe.a.div.withConfig({displayName:"responsive__EmailBannerContainer",componentId:"sc-15gvuj2-9"})(["position:sticky;top:80px;width:100%;z-index:100;display:flex;justify-content:center;height:100%;@media (max-width:","px){max-width:327px;height:100px;margin:auto;}"],g.breakpoints.medium);function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wt=e=>{const t=Object(g.styleguide)({scale:e}),n=t.colours,r=t.fontFactory,i=t.spacing,a=t.lineHeight;return{ad:{borderBottomColor:n.functional.keyline,borderBottomWidth:1,borderTopColor:n.functional.keyline,borderTopWidth:1,marginBottom:i(4),padding:i(2)},articleLink:bt(bt({color:n.functional.action},r({font:"body",fontSize:"bodyMobile"})),{},{lineHeight:a({font:"body",fontSize:"bodyMobile"}),marginBottom:i(5),marginTop:0}),articleMainContentRow:{paddingLeft:i(2),paddingRight:i(2)},articleTextElement:bt(bt({},r({font:"body",fontSize:"bodyMobile"})),{},{color:n.functional.primary,marginBottom:i(5)}),containerTablet:{alignSelf:"center"},imageContainerTablet:{alignSelf:"center"},interactiveContainer:{marginBottom:i(4),paddingLeft:i(2),paddingRight:i(2)},interactiveContainerTablet:{alignSelf:"center",width:g.tabletWidth},interactiveContainerFullWidth:{width:"100%",paddingLeft:0,paddingRight:0},leadAsset:{marginBottom:i(2)},primaryContainer:{flexDirection:"column",paddingBottom:i(5),width:"100%"},heading2:bt(bt({},r({font:"headline",fontSize:"heading2Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading3:bt(bt({},r({font:"headline",fontSize:"heading3Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading4:bt(bt({},r({font:"headline",fontSize:"heading4Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading5:bt(bt({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading6:bt(bt({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black})}};var vt={articleContainer:{backgroundColor:g.colours.functional.gutter},articleMainContentRow:{paddingLeft:Object(g.spacing)(2),paddingRight:Object(g.spacing)(2)}};function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xt=wt(),kt=Et(Et({},xt),{},{ad:Et(Et({},xt.ad),{},{marginBottom:Object(g.spacing)(6),marginTop:Object(g.spacing)(6),width:"100%"}),articleTextElement:Et(Et({},xt.articleTextElement),{},{marginTop:0}),adMarginStyle:{marginBottom:0}});var Pt=Et(Et({},vt),kt),St=n(26);const _t=["37a19ac4-1cbb-11ee-8198-bf96b6365670"];const Ct={SUNDAYTIMES:"The Sunday Times",TIMES:"The Times"},At=e=>Ge()(e,"crop169.url",null),It=e=>At(Ge()(e,"leadAsset.posterImage",Ge()(e,"leadAsset",null))),zt=e=>At(Ge()(e,"leadAsset",null)),Tt=e=>(e.hasVideo?It:zt)(e),Ft=e=>{const t=e.hasVideo,n=e.leadAsset,r=t?It(e):(e=>{const t=e.tiles&&e.tiles.find(e=>Ge()(e.leadAsset,"crop169.url",null));if(t)return t;const n=Ge()(e.listingAsset,"crop169.url",null);return n||Ge()(e.leadAsset,"crop169.url",null)})(e);if(r)return r;if(!n)return null;const i=n&&n.posterImage?n.posterImage:n,a=i.crop32,o=i.crop1251,c=i.crop11,l=i.crop45,s=i.crop23,d=i.crop2251,p=a||o||c||l||s||d;return p?p.url:""};function Nt(e){let t=e.article,n=e.articleUrl,r=e.logoUrl,a=e.paidContentClassName,o=e.getFallbackThumbnailUrl169,c=e.swgProductId,l=e.breadcrumbs,s=e.domainSpecificUrl;const d=t.descriptionMarkup,p=t.headline,u=t.leadAsset,m=t.publicationName,f=t.shortHeadline,h=t.publishedTime,g=t.updatedTime,b=t.hasVideo,y=t.seoDescription,w=t.keywords,v=u||{},O=v.brightcoveAccountId,E=v.brightcoveVideoId,j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="";if(void 0!==e)for(let n=0;n<e.length;n+=1)"LIVE"===e[n].type&&(t=e[n].expiryTime);return t}(t.expirableFlags),x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(void 0!==e){return void 0!==e.find(e=>"LIVE"===e.type&&(Date.now()<new Date(e.expiryTime)||null===e.expiryTime))}return!1}(t.expirableFlags),k=Ct[m],P=function(e){const t=e.bylines;if(!t)return null;const n=t.reduce((e,t)=>(Array.isArray(t.byline)?e.push(...t.byline):e.push(t.byline),e),[]);return Object(ee.renderTreeAsText)({children:n})}(t),S=y||(Array.isArray(d)&&d.length?Object(ee.renderTreeAsText)({children:d}):null),_=Ft(t)||(o?o():null),C=Object(ne.appendToImageURL)(Tt(t),"resize",1200)||_,A=function(e,t){return e.bylines?(n=e,n.bylines.map(e=>e.author).filter(e=>e)).map(e=>{let n=e.name,r=e.jobTitle,i=e.twitter,a=e.slug;const o="".concat(t,"/profile/").concat(a);return{"@type":"Person",name:n,jobTitle:r,sameAs:i?[o,"https://twitter.com/".concat(i)]:o}}):[];var n}(t,s),I=Ge()(u,"caption",null),z=p||f||"",T=h&&new Date(h).toISOString(),F=t.associatedDesks?t.associatedDesks[0]:"News",N=t.associatedDesks?t.associatedDesks.map(e=>"Section:".concat(e)):[],D=l.length>0?l.map(e=>"Section:".concat(e.title)):[],M=N.concat(D),U=M.length>0?[...new Set(M)].toString():"",B=g||T,q=P?{"@type":"Person",name:P}:null,L=(A&&A.length?A:q)||{"@type":"Organization",name:"The Times"},R={"@type":"Organization",name:k,logo:{"@type":"ImageObject",url:r}},W=((e,t,n)=>{const r=[];if(null===e)return r;const i=e.content,a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=/\D+/g,r=e.replace(n,""),i=/\b(\w)/g,a=t.match(i),o=null===a?"":a.join("");return"u_".concat(r).concat(o)};if(void 0!==i){let o;const c=i=>{for(let l=0;l<i.length;l+=1)if("interactive"===i[l].name){if(i[l].attributes.element&&"article-header"===i[l].attributes.element.value){void 0!==o&&r.push(o);const c=i[l].attributes.element.attributes;o={"@type":"BlogPosting",headline:c.headline,datePublished:c.updated,dateModified:c.updated,publisher:t,url:"".concat(e.url,"#").concat(a(c.updated,c.headline)),author:n}}}else if("paragraph"===i[l].name){if(void 0!==o){const e=Ge()(i[l],"children[0].attributes.value","");o.articleBody?o.articleBody+=" ".concat(e):o.articleBody=e}}else"image"===i[l].name?void 0!==o&&(o.image={"@type":"ImageObject",url:i[l].attributes.url,caption:i[l].attributes.caption}):"video"===i[l].name?void 0!==o&&(o.video={"@type":"VideoObject",thumbnail:i[l].attributes.posterImageUrl}):"paywall"===i[l].name&&i[l].children&&i[l].children.length>0&&c(i[l].children)};c(i),void 0!==o&&r.push(o)}return r})(t,R,L),H={"@context":"https://schema.org","@type":"NewsArticle",headline:z,publisher:{"@type":"Organization",name:k,logo:{"@type":"ImageObject",url:r}},mainEntityOfPage:{"@type":"WebPage","@id":n},dateCreated:h,datePublished:T,isAccessibleForFree:!1,hasPart:{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(a)},image:{"@type":"ImageObject",url:C,caption:I},thumbnailUrl:_,dateModified:B,author:L,articleSection:F,keywords:U,url:n};c&&(H.isPartOf={"@type":["CreativeWork","Product"],name:"The Times & The Sunday Times",productID:c});const V=b?{"@context":"https://schema.org","@type":"VideoObject",name:u&&u.title?u.title:z,uploadDate:B,thumbnailUrl:_,description:Array.isArray(d)&&d.length?Object(ee.renderTreeAsText)({children:d}):y||u.title||z,contentUrl:"https://players.brightcove.net/".concat(O,"/default_default/index.html?videoId=").concat(E)}:null,$={"@context":"https://schema.org","@type":"LiveBlogPosting",headline:p,description:y,mainEntityOfPage:{"@type":"WebPage","@id":n},datePublished:h,dateModified:g,coverageStartTime:h,coverageEndTime:j,url:n,keywords:w,image:{"@type":"ImageObject",url:C,caption:I},publisher:R,author:L,liveBlogUpdate:W,articleSection:F},K=_t.includes(t.id),Q=l&&l.length?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:l.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.title,item:"".concat(s,"/").concat(e.slug)}))}:null;return i.a.createElement(St.Helmet,{encodeSpecialCharacters:!1},i.a.createElement("title",null,z),K&&i.a.createElement("meta",{name:"robots",content:"noindex"}),i.a.createElement("meta",{name:"robots",content:"max-image-preview:large"}),i.a.createElement("meta",{content:z,name:"article:title"}),i.a.createElement("meta",{content:k,name:"article:publication"}),S&&i.a.createElement("meta",{content:S,name:"description"}),P&&i.a.createElement("meta",{content:P,name:"author"}),i.a.createElement("meta",{content:z,property:"og:title"}),i.a.createElement("meta",{content:"article",property:"og:type"}),i.a.createElement("meta",{content:n,property:"og:url"}),S&&i.a.createElement("meta",{content:S,property:"og:description"}),C&&i.a.createElement("meta",{content:C,property:"og:image"}),b&&i.a.createElement("meta",{name:"robots",content:"max-video-preview:-1"}),i.a.createElement("meta",{content:z,name:"twitter:title"}),i.a.createElement("meta",{content:"summary_large_image",name:"twitter:card"}),i.a.createElement("meta",{content:n,name:"twitter:url"}),S&&i.a.createElement("meta",{content:S,name:"twitter:description"}),C&&i.a.createElement("meta",{content:C,name:"twitter:image"}),x&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify($)),i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(H)),V&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(V)),Q&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(Q)),i.a.createElement("script",{type:"text/javascript",defer:!0,src:"https://platform.twitter.com/widgets.js"}))}Nt.defaultProps={swgProductId:null,breadcrumbs:[]};var Dt=Nt;var Mt=e=>{let t=e.id,n=e.componentName;if("undefined"!=typeof window){const e=Ge()(window,"paywallComponent.".concat(n));if(e)return i.a.createElement("div",{id:t,dangerouslySetInnerHTML:{__html:e}})}return i.a.createElement("div",{id:t})};function Ut(){return(Ut=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}).apply(this,arguments)}const Bt=fe.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareContainer",componentId:"hqppv0-0"})(["background-color:",";height:60px;display:flex;align-items:center;",";"],g.colours.functional.white,e=>e.isClient&&[u.selectors.sizer(Object(me.css)(["border-bottom:1px solid transparent;will-change:border-bottom-color;"])),u.selectors.sticky(Object(me.css)(["will-change:height,box-shadow;"])),Object(u.computeProgressStyles)(e=>Object(me.css)(["height:","px;box-shadow:0 2px 5px 0 ",";",";"],60-10*e,g.colours.functional.greyStickyBarBoxShadow,u.selectors.stickySizer(Object(me.css)(["border-bottom-color:",";"],g.colours.functional.greyStickyBarBorderBottom))))]),qt=fe.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareItem",componentId:"hqppv0-1"})(["order:3;& + &{margin-top:-1px !important;}@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],g.breakpoints.medium,Object(g.spacing)(2),g.breakpoints.medium,g.breakpoints.wide,Object(g.spacing)(2),Object(g.spacing)(2));function Lt(e){return i.a.createElement(ne.ServerClientRender,{client:()=>i.a.createElement(Bt,Ut({isClient:!0},e)),server:()=>i.a.createElement(Bt,e)})}const Rt=Object(u.mediaQuery)("(max-width: ".concat(g.breakpoints.huge,"px)"));var Wt=function(e){return i.a.createElement(qt,null,i.a.createElement(m.a,{Component:Lt,shouldBeSticky:Rt},i.a.createElement(O.a,e)))};var Ht=e=>t=>e&&void 0===t.find(e=>"paywall"===e.name)?[]:t;function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){Kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qt=["indepth","maincomment","magazinestandard","magazinecomment"],Gt=e=>{const t=e.children;if(0===t.length)return e;if("text"===t[0].name){const r=(n=Ge()(t[0],"attributes.value[0]"),/'|"|‘|“/.test(n)&&t[0].attributes.value.length>1?2:1);return $t($t({},e),{},{attributes:$t({},e.attributes),children:[$t($t({},t[0]),{},{attributes:$t($t({},t[0].attributes),{},{value:t[0].attributes.value.slice(0,r),dropCap:!0})}),$t($t({},t[0]),{},{attributes:$t($t({},t[0].attributes),{},{value:t[0].attributes.value.slice(r),dropCap:!0})}),...t.slice(1)]})}var n;if("link"===t[0].name&&0===t[0].children.length)return null;const r=Gt(t[0]);if(r.attributes.dropCap&&"paragraph"!==e.name){const n=$t($t({},e),{},{attributes:$t($t({},e.attributes),{},{dropCap:!0}),children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,n}const i=$t($t({},e),{},{children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,i},Jt=e=>{const t=e[0];return t&&t.attributes.dropCap&&"text"!==t.name?Jt(t.children):e};var Yt=(e,t,n)=>{try{if(t&&Qt.includes(t)&&!n&&e.length>0){const t=e.find(e=>"paragraph"===e.name);if(!t||0===t.children.length)return e;const n=e.indexOf(t),r=Gt(t),i=Gt(t);Jt(r.children).splice(1);Jt(i.children).splice(0,1);const a=[...e];return a.splice(n,1,{name:"dropCap",attributes:{},children:[r]},i),a}}catch(t){return e}return e},Zt=(e,t)=>n=>{const r=Yt(n,e,t),i=r.length>0&&r.find(e=>"dropCap"===e.name);if(i){const e=r.indexOf(i);return r[e].children=r[e].children[0].children.slice(0,1),r[e+1].children=[r[e],...r[e+1].children],r.splice(e,1),r}return r};function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nn=e=>({name:"autoNewsletterPuff",attributes:{element:{value:"newsletter-puff",attributes:en({label:"In your inbox"},e)}},children:[]}),rn=[{section:"news",payload:nn({code:"TNL-101",headline:"Daily Briefing",copy:"Our flagship newsletter featuring our top stories and analysis, delivered every morning.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F728c3e68-5311-4533-809a-b313a6503789.jpg?resize=800"})},{section:"business",payload:nn({code:"TNL-103",headline:"Business briefing",copy:"Morning and midday updates on financial and economic news from our award-winning business team.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F306637af-2b6f-48fc-b264-d661b2067818.jpg?resize=800"})},{section:"scotland",payload:nn({code:"TNL-134",headline:"Editor’s Choice – Scotland",copy:"The biggest stories from The Times and Sunday Times Scotland, every Saturday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F5777acf9-363f-4aa3-8176-1ea09cdae7d6.jpg?resize=800"})},{section:"money",payload:nn({code:"TNL-107",headline:"Money newsletter",copy:"Personal finance and investment news from our money experts, every Monday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2Ffd44b15f-2fb8-4e5d-b409-315648b10646.jpg?resize=800"})},{section:"law",payload:nn({code:"TNL-121",headline:"The Brief",copy:"Get expert analysis, news and commentary in The Brief, our legal editor's insider's guide, every Thursday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F27a231b4-5658-4852-a603-37c5210a946e.jpg?resize=800"})},{section:"home",payload:nn({code:"TNL-113",headline:"Property newsletter",copy:"Inside Britain's most exclusive homes, expert advice and what's really happening in the property market, every Monday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"luxury",payload:nn({code:"TNL-148",headline:"Luxury newsletter",copy:"Do you need more luxury in your life? Sign up to the Times Luxury newsletter with one click.",imageUri:"https://www.thetimes.co.uk/imageserver/image/%2Fmethode%2Ftimes%2Fprod%2Fweb%2Fbin%2Fcbd3c7a9-4d25-422a-b4a5-a48072778002.jpg?crop=1990%2C1322%2C0%2C0&resize=800"})},{section:"bricks & mortar",payload:nn({code:"TNL-113",headline:"Property newsletter",copy:"Get expert advice and find out what's really happening in the property market.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"ireland",payload:nn({code:"TNL-152",headline:"Best of Times Ireland newsletter:",copy:"The most compelling Irish news, business, sport and lifestyle stories from the week, every Sunday."})},{section:"irish sport",payload:nn({code:"TNL-152",headline:"Best of Times Ireland newsletter:",copy:"The most compelling Irish news, business, sport and lifestyle stories from the week, every Sunday."})}],an=e=>e.find(e=>"interactive"===e.name&&"newsletter-puff"===e.attributes.element.value),on=(e,t,n)=>en(en({},e),{},{children:e.children.reduce((e,r,i)=>i===t?[...e,n,r]:[...e,r],[])}),cn=e=>{const t=e.findIndex(e=>"paragraph"!==e.name);return-1===t?e.length:t};var ln=(e,t,n)=>r=>{if(t||Xe(n))return r;const i=(e=>{const t=e?rn.find(t=>t.section===e.toLowerCase()):void 0;return t?t.payload:void 0})(e);if(!i)return r;const a=r.find(e=>"paywall"===e.name);if(!a)return r;if(an(r)||an(a.children))return r;if(!((e,t)=>{const n=e.findIndex(e=>"paywall"===e.name),r=cn(e),i=cn(t.children);return r>=5||n===r&&r+i>=5})(r,a))return r;return r.reduce((e,t,n)=>3===n?[...e,i,t]:"paywall"===t.name?[...e,on(t,3-n,i)]:[...e,t],[])};function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var un=e=>t=>{const n=[...t];let r;const i=e?(r=n.findIndex(e=>"ad"===e.name),{children:n.slice(r)}):n.find(e=>"paywall"===e.name),a=e?n.slice(0,r).filter(e=>"paragraph"===e.name):n.filter(e=>"paragraph"===e.name);if(!i)return n;const o=i.children,c=o.map((e,t)=>dn(dn({},e),{},{index:t})).filter(e=>"paragraph"===e.name);c.pop();return[9,14,19,24].forEach((e,t)=>{if(!o.find(e=>e.name==="inlineAd".concat(t+1))){const n=c[e-a.length]?c[e-a.length].index:null;n&&null!==n&&o.splice(n+t+1,0,{name:"inlineAd".concat(t+1),children:[]})}}),e?[...t.slice(0,r),...o]:n};function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){hn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gn=function e(t){return t.map(t=>{if("paragraph"===t.name||"paywall"===t.name){if("paywall"===t.name){const n=e(t.children);return fn(fn({},t),{},{children:n})}if(1===t.children.length&&"unorderedList"===t.children[0].name)return fn({},t.children[0])}return t})};var bn=e=>{const t=e.find(e=>"paywall"===e.name);if(!t||!Array.isArray(t.children))return e;const n=t.children;for(let e=0;e<n.length-2;e++)if("paragraph"===n[e].name&&(n[e+1].name.includes("inlineAd")||"ad"===n[e+1].name)&&"interactive"===n[e+2].name&&"times-travel-cta"===n[e+2].attributes.element.value){var r=[n[e+2],n[e+1]];n[e+1]=r[0],n[e+2]=r[1]}return e};function yn(e,t,n,r,i,a,o){try{var c=e[a](o),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}function wn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,a=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vn(e,t)}(e,t)||function(){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 vn(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}n.d(t,"reduceArticleContent",(function(){return On})),n.d(t,"KeylineItem",(function(){return at})),n.d(t,"ArticleKeylineItem",(function(){return ot})),n.d(t,"InlineAdWrapper",(function(){return Ne})),n.d(t,"InlineAdTitle",(function(){return De})),n.d(t,"ArticleLink",(function(){return ue}));const On=(e,t)=>e&&e.length>0&&t.reduce((e,t)=>t(e),e),En=e=>{let t=e.analyticsStream,n=e.data,a=e.Header,o=e.Content,l=e.ContentFooter,d=e.logoUrl,m=e.receiveChildList,f=e.commentingConfig,b=e.articleDataFromRender,v=e.paidContentClassName,E=e.isPreview,j=e.swgProductId,x=e.getFallbackThumbnailUrl169,k=e.zephrDivs,P=e.showAudioPlayer,S=e.removeTeaserContent;const _=n.commentsEnabled,C=n.content,A=n.dropcapsDisabled,I=n.id,T=n.section,F=n.url,N=n.headline,D=n.shortHeadline,U=n.expirableFlags,B=n.topics,q=n.relatedArticleSlice,L=n.template,R=n.savingEnabled,W=n.sharingEnabled,H=n.publishedTime,V=wn(Object(r.useState)(!1),2),$=V[0],K=V[1],Q=Object(h.useSocialEmbedsContext)(),G=Q.isSocialEmbedAllowed,J=Q.isAllowedOnce;Object(r.useEffect)(()=>{(G.twitter||J.twitter)&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load()},[G.twitter,J.twitter]);const Y=Object(r.useRef)(),Z=()=>{const e=Y.current;if(e){const t=document.querySelectorAll(".responsive__InlineAdWrapper-sc-4v1r4q-17, .responsive__InlineAdWrapper-sc-4v1r4q-14, .responsive__FullWidthImg-sc-4v1r4q-4, .responsive__InteractiveContainer-sc-4v1r4q-2");let n=!1;t.forEach(t=>{if(t){const r=t.getBoundingClientRect();r.top<=e.getBoundingClientRect().bottom&&r.bottom>=e.getBoundingClientRect().top&&(n=!0)}}),e.style.opacity=n?"0":"1"}};Object(r.useEffect)(()=>{const e=!!JSON.parse(window.sessionStorage.getItem("verifyEmail"));K(e)},[]),Object(r.useEffect)(()=>{const e=Y.current;return e&&(e.style.transition="opacity 0.2s ease"),Z(),window.addEventListener("scroll",Z),()=>{window.removeEventListener("scroll",Z)}},[]);const X=b||{},ee=X.hostName,te=X.canonicalUrl,re=X.breadcrumbs,ie=X.categorisedArticles,ae=X.deckApiUrl,oe=X.isWebPFormatActive,ce=X.isExcludedFromAdsPathFromServer,le=ee&&te?"".concat(ee).concat(te):F,se=F&&F.split("/").filter(Boolean)[0]||null,de=!!se&&["culture","life-style"].includes(se),pe=[Ht(S),Zt(L,A),ln(T,E,U),un(E),it,gn,bn],ue=On(C,pe),me=Xe(U),he=ue&&i.a.createElement(Ke,{id:n.id,analyticsStream:t,content:ue,contextUrl:le,section:T,articleHeadline:N,paidContentClassName:v,template:L,isPreview:E,isLiveOrBreaking:me,deckApiUrl:ae,isWebPFormatActive:!!oe,isExcludedFromAdsPathFromServer:ce}),ge=(e=>{const t="indepth"===e;return fe()(ne.TcView).withConfig({displayName:"responsive",componentId:"sc-15gvuj2-0"})(["box-sizing:content-box;justify-content:center;min-height:50px;display:flex;border-top-color:",";border-bottom-color:",";border-bottom-width:",";padding-top:",";padding-bottom:",";@media (min-width:768px){min-height:90px;}@media (min-width:1024px){min-height:250px;}"],g.colours.functional.keyline,g.colours.functional.keyline,t?"0":"1px",Object(g.spacing)(2),t?"0":Object(g.spacing)(2))})(L);m([{elementId:"last-paragraph",name:"end of article",eventNavigationName:"Article : View End"},{elementId:"related-articles",name:"related articles"}]);const be=ee||"https://www.thetimes.co.uk",ye=i.a.createElement(y.a,{state:y.a.showSaveAndShareBar},i.a.createElement(w.MessageContext.Consumer,null,e=>{let t=e.showMessage;const n={articleId:I,articleHeadline:N,articleUrl:le,onCopyLink:()=>t("Article link copied"),onSaveToMyArticles:()=>{},onShareOnEmail:()=>{},savingEnabled:R,sharingEnabled:W,hostName:be};return o?i.a.createElement(O.a,n):i.a.createElement(Wt,n)})),we=wn(Object(r.useState)([]),2),ve=we[0],Oe=we[1],Ee=function(){var e,t=(e=function*(){const e=yield z();Oe(e)},function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){yn(a,r,i,o,c,"next",e)}function c(e){yn(a,r,i,o,c,"throw",e)}o(void 0)}))});return function(){return t.apply(this,arguments)}}();return Object(r.useEffect)(()=>{de&&Ee()},[de]),i.a.createElement(u.StickyProvider,null,i.a.createElement(h.TrackingContextProvider,{context:{component:"ArticleSkeleton",attrs:{article_name:N||D||"",section_details:T}},analyticsStream:t},$&&i.a.createElement(ht,null,i.a.createElement(h.Banner,{title:"Check your inbox",body:"Verify your email by clicking on the link sent to your inbox.",onClose:()=>{window.sessionStorage.setItem("verifyEmail",!1),K(!1)}})),E&&i.a.createElement("div",{className:"Container"},i.a.createElement("div",{className:"ArticleMetaBanner"},i.a.createElement("div",{className:"ArticleMetaBanner-field"},i.a.createElement("label",{htmlFor:"ArticleMetaBanner-uuid"},"UUID",i.a.createElement("input",{type:"text",placeholder:"UUID",name:"UUID",id:"ArticleMetaBanner-uuid",value:I,readOnly:!0})),i.a.createElement("button",{type:"button",className:"ArticleMetaBanner-button","data-clipboard-target":"#ArticleMetaBanner-uuid"},"Copy")))),i.a.createElement("div",{id:"article-marketing-header"}),i.a.createElement("article",{id:"article-main","data-article-identifier":n.id,"data-article-sectionname":T,"data-article-template":L},!!k&&i.a.createElement(M,{html:'<div id="nu-zephr-article-target-top-head"></div>'}),i.a.createElement(Dt,{article:n,articleUrl:le,logoUrl:d,paidContentClassName:v,getFallbackThumbnailUrl169:x,swgProductId:j,breadcrumbs:re,domainSpecificUrl:be}),!!k&&i.a.createElement(M,{html:'<div id="nu-zephr-article-target-below-head"></div>'}),o?i.a.createElement(o,{content:he,SaveAndShare:ye}):i.a.createElement(r.Fragment,null,!ce&&i.a.createElement(ge,{key:"headerAd"},i.a.createElement(c.AdContainer,{slotName:"header",style:Pt.adMarginStyle})),i.a.createElement(ct,null,i.a.createElement(h.WelcomeBanner,null),!!k&&i.a.createElement(M,{html:'<div id="nu-zephr-article-target-top-maincontainer"></div>'}),i.a.createElement(lt,{showAudioPlayer:P},!!k&&i.a.createElement(M,{html:'<div id="nu-zephr-article-target-top-headercontainer"></div>'}),i.a.createElement(a,null),ye,!!k&&i.a.createElement(M,{html:'<div id="nu-zephr-article-target-bottom-headercontainer"></div>'})),i.a.createElement(st,null,i.a.createElement(mt,null,de&&i.a.createElement(pt,null,i.a.createElement(ut,{ref:Y},"life-style"===se?i.a.createElement(h.ArticleSidebar,{pageLink:"".concat(be,"/puzzles"),sectionTitle:"Puzzles",data:[{title:"Crossword",url:"".concat(be,"/puzzles/crossword"),imgUrl:"https://www.thetimes.com/d/img/puzzles/new-illustrations/crossword-c7ae8934ef.png"},{title:"Polygon",url:ve,imgUrl:"https://www.thetimes.com/d/img/puzzles/new-illustrations/polygon-875ea55487.png"},{title:"Sudoku",url:"".concat(be,"/puzzles/sudoku"),imgUrl:"https://www.thetimes.com/d/img/puzzles/new-illustrations/sudoku-ee2aea0209.png"}]}):i.a.createElement(h.QuizleSidebar,{pageLink:"".concat(be,"/quizle"),sectionTitle:"Today's Quizle"}))),i.a.createElement(ft,{showMargin:de},!!k&&i.a.createElement(M,{html:'<div id="nu-zephr-article-target-top-bodycontainer"></div>'}),he,me&&i.a.createElement(y.a,{state:y.a.showLiveUpdateButton},i.a.createElement(dt,{"data-testid":"Update button container"},i.a.createElement(h.UpdateButtonWithDelay,{delay:8e3,update:!0,display:!0,label:"New update",handleClick:()=>(e=>{e.scroll({left:0,top:0}),e.location.reload(!0)})(window),updatedTime:n.publishedTime,articleId:n.id}))),i.a.createElement(Mt,{id:"paywall-portal-article-footer",componentName:"subscribe-cta"},!!k&&i.a.createElement(M,{html:'<div id="nu-zephr-article-target-paywall"></div>'})))),!S&&i.a.createElement(p.a,{rootMargin:Object(g.spacing)(40),threshold:0},e=>{let n=e.observed,r=e.registerNode;return i.a.createElement(s.a,{analyticsStream:t,articleId:I,articleHeadline:N,articleUrl:le,section:T,publishedTime:H,savingEnabled:R,sharingEnabled:W,commentsEnabled:_,registerNode:r,relatedArticleSlice:q,categorisedArticles:ie,relatedArticlesVisible:!!n.get("related-articles"),commentingConfig:f,topics:B,breadcrumbs:re,domainSpecificUrl:be,isWebPFormatActive:oe,isExcludedFromAdsPathFromServer:ce})}),!!k&&i.a.createElement(M,{html:'<div id="nu-zephr-article-target-bottom-bodycontainer"></div>'})),!!k&&i.a.createElement(M,{html:'<div id="nu-zephr-article-target-bottom-maincontainer"></div>'}))),l&&i.a.createElement(l,null),i.a.createElement(c.AdContainer,{slotName:"pixel"}),i.a.createElement(c.AdContainer,{slotName:"pixelteads"}),i.a.createElement(c.AdContainer,{slotName:"pixelskin"}))))};En.defaultProps={adConfig:{},data:{content:[]},Header:()=>null,receiveChildList:()=>{},swgProductId:null,zephrDivs:!1};t.default=(e=>Object(f.withTrackingContext)(e,{getAttrs:e=>{let t=e.data,n=e.pageSection,r=e.navigationMode,i=e.referralUrl,a=void 0===i?"":i,o="",c=!1;const l=t.expirableFlags;if(window&&window.__TIMES_ACCESS_AND_IDENTITY__&&window.__TIMES_ACCESS_AND_IDENTITY__.hasAccess&&(c=!0),r){const e=r.isMyArticles,t=r.isPastSixDays;o=e?"my articles":t?"past 6 days":"current edition"}return{articleId:Ge()(t,"id",""),article_topic_tags:t.topics?t.topics.map(e=>e.name):[],isLocked:c?"unlocked":"locked",bylines:Ge()(t,"bylines[0].byline[0].children[0].attributes.value",""),headline:Ge()(t,"headline",""),label:Ge()(t,"label",""),pageName:"".concat(Ge()(t,"slug",""),"-").concat(Ge()(t,"shortIdentifier","")),edition_type:o,publishedTime:Ge()(t,"publishedTime",""),parent_site:Ge()(t,"publicationName",""),referralUrl:a,section:n||Ge()(t,"section",""),template:Ge()(t,"template","Default"),registrationType:Je(),customerType:Ye(),shared:Ze(),article_flag:et(l)?et(l):"no flag",article_template_name:Xe(l)?"live template":"standard template"}},trackingObjectName:"Article"}))(Object(f.withTrackScrollDepth)(e=>i.a.createElement(h.SocialEmbedsProvider,null,i.a.createElement(En,e))))}]);
|
1
|
+
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,t){e.exports=require("styled-components")},function(e,t){e.exports=require("@times-components/ts-components/rnw")},function(e,t){e.exports=require("prop-types")},function(e,t){var n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/,i=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,l="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,d=l||s||Function("return this")();var p,u=Array.prototype,m=Function.prototype,f=Object.prototype,h=d["__core-js_shared__"],g=(p=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",b=m.toString,y=f.hasOwnProperty,v=f.toString,w=RegExp("^"+b.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=d.Symbol,E=u.splice,j=F(d,"Map"),x=F(Object,"create"),k=O?O.prototype:void 0,P=k?k.toString:void 0;function S(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function A(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function I(e,t){for(var i,a=0,o=(t=function(e,t){if(B(e))return!1;var i=typeof e;if("number"==i||"symbol"==i||"boolean"==i||null==e||q(e))return!0;return r.test(e)||!n.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:B(i=t)?i:N(i)).length;null!=e&&a<o;)e=e[D(t[a++])];return a&&a==o?e:void 0}function z(e){return!(!U(e)||(t=e,g&&g in t))&&(function(e){var t=U(e)?v.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?w:c).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function T(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function F(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return z(n)?n:void 0}S.prototype.clear=function(){this.__data__=x?x(null):{}},S.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},S.prototype.get=function(e){var t=this.__data__;if(x){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return y.call(t,e)?t[e]:void 0},S.prototype.has=function(e){var t=this.__data__;return x?void 0!==t[e]:y.call(t,e)},S.prototype.set=function(e,t){return this.__data__[e]=x&&void 0===t?"__lodash_hash_undefined__":t,this},_.prototype.clear=function(){this.__data__=[]},_.prototype.delete=function(e){var t=this.__data__,n=A(t,e);return!(n<0)&&(n==t.length-1?t.pop():E.call(t,n,1),!0)},_.prototype.get=function(e){var t=this.__data__,n=A(t,e);return n<0?void 0:t[n][1]},_.prototype.has=function(e){return A(this.__data__,e)>-1},_.prototype.set=function(e,t){var n=this.__data__,r=A(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new S,map:new(j||_),string:new S}},C.prototype.delete=function(e){return T(this,e).delete(e)},C.prototype.get=function(e){return T(this,e).get(e)},C.prototype.has=function(e){return T(this,e).has(e)},C.prototype.set=function(e,t){return T(this,e).set(e,t),this};var N=M((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(q(e))return P?P.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return i.test(e)&&n.push(""),e.replace(a,(function(e,t,r,i){n.push(r?i.replace(o,"$1"):t||e)})),n}));function D(e){if("string"==typeof e||q(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function M(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(M.Cache||C),n}M.Cache=C;var B=Array.isArray;function U(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function q(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==v.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:I(e,t);return void 0===r?n:r}},function(e,t){e.exports=require("@times-components/utils/rnw")},function(e,t){e.exports=require("@times-components/ad/rnw")},function(e,t){e.exports=require("@times-components/sticky/rnw")},function(e,t){e.exports=require("@times-components/context/rnw")},function(e,t){e.exports=require("@times-components/tracking/rnw")},function(e,t){e.exports=require("@times-components/markup-forest/rnw")},function(e,t){e.exports=require("@times-components/user-state/rnw")},function(e,t){e.exports=require("@times-components/lazy-load/rnw")},function(e,t){e.exports=require("@times-components/save-and-share-bar/rnw")},function(e,t){e.exports=require("@times-components/link/rnw")},function(e,t){e.exports=require("@times-components/article-paragraph/rnw")},function(e,t){e.exports=require("@times-components/interactive-wrapper/rnw")},function(e,t){e.exports=require("@times-components/caption/rnw")},function(e,t){e.exports=require("@times-components/article-extras/rnw")},function(e,t){e.exports=require("@times-components/message-bar/rnw")},function(e,t){e.exports=require("@times-components/article-image/rnw")},function(e,t){e.exports=require("@times-components/key-facts/rnw")},function(e,t){e.exports=require("@times-components/markup/rnw")},function(e,t){e.exports=require("@times-components/pull-quote/rnw")},function(e,t){e.exports=require("@times-components/video/rnw")},function(e,t){e.exports=require("react-helmet-async")},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=n(4),o=n.n(a),c=n(7),l=n(19),s=n.n(l),d=n(13),p=n.n(d),u=n(8),m=n.n(u),f=n(10),h=n(3),g=n(1),b=n(12),y=n.n(b),v=n(20),w=n(14),O=n.n(w);function E(e,t,n,r,i,a,o){try{var c=e[a](o),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}function j(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){E(a,r,i,o,c,"next",e)}function c(e){E(a,r,i,o,c,"throw",e)}o(void 0)}))}}function x(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}const k=new Intl.DateTimeFormat("en-UK",{timeZone:"Europe/London",year:"numeric",month:"2-digit",day:"2-digit"}).format(new Date).split("/"),P=(I=3,function(e){if(Array.isArray(e))return e}(A=k)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,i,a=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}}(A,I)||function(e,t){if(e){if("string"==typeof e)return x(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)?x(e,t):void 0}}(A,I)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),S=P[0],_=P[1],C=P[2];var A,I;const z="".concat(C,"-").concat(_,"-").concat(S),T=function(){var e=j((function*(){try{const e=yield fetch("https://api.thetimes.co.uk/graphql",{method:"POST",headers:{"x-use-standalone-puzzle-data":"true"},body:JSON.stringify({query:"\n query GetPuzzlesByType($puzzleStartDate: ShortDate!, $puzzleEndDate: ShortDate!, $type: String!) {\n puzzles(dateSince: $puzzleStartDate, dateBefore: $puzzleEndDate, type: $type){\n list(first:1){\n shortIdentifier\n slug\n }\n }\n }\n",variables:{puzzleStartDate:z,puzzleEndDate:z,type:"polygon"}})});if(!e.ok)throw new Error("Network response was not ok: ".concat(e.status));const t=yield e.json(),n=t&&t.data&&t.data.puzzles&&t.data.puzzles.list;return n?n.map(e=>{let t=e.slug,n=e.shortIdentifier;return"".concat("/puzzles/word-puzzles","/").concat(t,"-").concat(n)}):[]}catch(e){return console.error("Error fetching puzzle data:",e),[]}}));return function(){return e.apply(this,arguments)}}(),F=function(){var e=j((function*(){try{const e=yield fetch("https://tnl-render.tools.news/production/config/puzzles/config.json");if(!e.ok)throw new Error("Failed to fetch");return(yield e.json())[0].sidebar}catch(e){return console.error("Error fetching sidebar data:",e),[]}}));return function(){return e.apply(this,arguments)}}();function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function U(e){e.children;let t=e.element,n=void 0===t?"div":t,i=e.html,a=B(e,["children","element","html"]);return Object(r.createElement)(n,D(D({},a),{},{undefined:void 0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i}}))}var q=n(21),L=n.n(q),R=n(16),W=n.n(R),H=n(9),V=n.n(H),$=n(17),K=n.n($),Q=n(22),G=n.n(Q),J=n(23),Y=n.n(J),Z=n(24),X=n.n(Z),ee=n(25),te=n.n(ee),ne=n(11),re=n.n(ne),ie=n(6),ae=n(15),oe=n.n(ae);const ce={base:"\n color: ".concat(g.colours.functional.action,";\n font-family: ").concat(g.fontsWithFallback.bodyRegular,";\n line-height: 26px;\n font-size: ").concat(g.fontSizes.bodyMobile,"px;\n margin-bottom: ").concat(Object(g.spacing)(5),"px;\n margin-top: 0;\n "),medium:"\n font-size: ".concat(g.fontSizes.body,"px;\n line-height: 30px;\n ")},le={base:"\n font-size: inherit;\n text-decoration: none;\n color: ".concat(g.colours.functional.action,";\n ")};function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ue=e=>{let t=e.children,n=e.target,r=e.url,a=e.onPress,o=e.dropCap;return i.a.createElement(i.a.Fragment,null,0===t.length?i.a.createElement(i.a.Fragment,null,i.a.createElement(oe.a,{responsiveLinkStyles:ce,target:n,onPress:a,url:r},r)," "):i.a.createElement(oe.a,{underlined:!(o&&1===t[0].length),responsiveLinkStyles:o?le:ce,target:n,url:r,onPress:a},t))};ue.defaultProps=de(de({},oe.a.defaultProps),{},{onPress:()=>{},dropCap:!1});var me,fe=(me=ue,Object(f.withTrackEvents)(me,{analyticsEvents:[{actionName:"Pressed",eventName:"onPress",getAttrs:e=>{let t=e.target;return{url:e.url,target:t,linkText:e.children[0]}},trackingName:"ArticleLink"}]})),he=n(2),ge=n.n(he),be=n(18),ye=n.n(be);function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oe=ge()(ie.TcView).withConfig({displayName:"inset-caption__InsetCaptionStyle",componentId:"la2hkf-0"})(["padding-left:",";@media (min-width:","px){padding-left:0px;}"],Object(g.spacing)(2),g.breakpoints.medium),Ee=e=>{let t=e.caption,n=e.credits;return i.a.createElement(Oe,null,i.a.createElement(ye.a,{credits:n,text:t}))};Ee.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){we(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},ye.a.defaultProps);var je=Ee;ge.a.div.withConfig({displayName:"responsive__ParagraphContainer",componentId:"sc-4v1r4q-0"})(["padding-left:",";padding-right:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(2),Object(g.spacing)(2),g.breakpoints.medium,g.breakpoints.wide),ge.a.p.withConfig({displayName:"responsive__Paragraph",componentId:"sc-4v1r4q-1"})(["color:",";font-family:",";line-height:26px;font-size:","px;margin-bottom:",";margin-top:0;display:block;@media (min-width:","px){font-size:","px;line-height:30px;}"],g.colours.functional.primary,g.fontsWithFallback.bodyRegular,g.fontSizes.bodyMobile,Object(g.spacing)(5),g.breakpoints.medium,g.fontSizes.body);const xe=ge.a.div.withConfig({displayName:"responsive__InteractiveContainer",componentId:"sc-4v1r4q-2"})(["position:relative;margin-bottom:",";",";"],Object(g.spacing)(4),e=>e.fullWidth?Object(he.css)(["width:100%;"]):Object(he.css)(["padding:0 ",";@media (min-width:","px){width:80.8%;margin-left:auto;margin-right:auto;padding:0;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(2),g.breakpoints.medium,g.breakpoints.wide)),ke=ge()(ie.TcView).withConfig({displayName:"responsive__PrimaryImg",componentId:"sc-4v1r4q-3"})(["width:100%;flex-direction:column;padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(5),g.breakpoints.medium,g.breakpoints.wide),Pe=ge()(ie.TcView).withConfig({displayName:"responsive__FullWidthImg",componentId:"sc-4v1r4q-4"})(["padding-bottom:",";"],Object(g.spacing)(4)),Se=ge()(ie.TcView).withConfig({displayName:"responsive__SecondaryImg",componentId:"sc-4v1r4q-5"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:",";@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(2),Object(g.spacing)(2),Object(g.spacing)(5),g.breakpoints.medium,g.breakpoints.wide),_e=ge()(ie.TcView).withConfig({displayName:"responsive__InlineImg",componentId:"sc-4v1r4q-6"})(["width:100%;flex-direction:row;flex-wrap:nowrap;padding-left:",";padding-right:",";padding-bottom:0;display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],Object(g.spacing)(2),Object(g.spacing)(2),g.breakpoints.medium,g.breakpoints.wide),Ce=ge()(ie.TcView).withConfig({displayName:"responsive__PullQuoteResp",componentId:"sc-4v1r4q-7"})(["padding-left:",";padding-right:",";margin-bottom:",";@media (min-width:","px){width:50%;float:left;margin-right:",";margin-bottom:0px;margin-top:",";padding-left:0px;padding-right:0px;}"],Object(g.spacing)(2),Object(g.spacing)(2),Object(g.spacing)(2),g.breakpoints.medium,Object(g.spacing)(4),Object(g.spacing)(1)),Ae=ge()(ie.TcView).withConfig({displayName:"responsive__PullQuoteContainer",componentId:"sc-4v1r4q-8"})(["display:block;@media (min-width:","px){width:80.8%;margin:0 auto;padding-left:0;padding-right:0;}@media (min-width:","px){width:56.2%;}"],g.breakpoints.medium,g.breakpoints.wide),Ie="color: ".concat(g.colours.functional.primary,";\n font-family: ").concat(g.fontsWithFallback.headline,";\n font-weight: 400;\n margin: 0 auto ").concat(Object(g.spacing)(2),";\n padding-right: ").concat(Object(g.spacing)(2),";\n padding-left: ").concat(Object(g.spacing)(2),";\n\n @media (min-width: ").concat(g.breakpoints.medium,"px) {\n padding-left: 0;\n padding-right: 0;\n width: 80.8%;\n }\n\n @media (min-width: ").concat(g.breakpoints.wide,"px) {\n width: 56.2%;\n }"),ze=ge.a.h2.withConfig({displayName:"responsive__Heading2",componentId:"sc-4v1r4q-9"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Ie,g.fontSizes.heading2Mobile,g.fontSizes.heading2Mobile,g.breakpoints.medium,g.fontSizes.heading2,g.fontSizes.heading2),Te=ge.a.h3.withConfig({displayName:"responsive__Heading3",componentId:"sc-4v1r4q-10"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Ie,g.fontSizes.heading3Mobile,g.fontSizes.heading3Mobile,g.breakpoints.medium,g.fontSizes.heading3,g.fontSizes.heading3),Fe=ge.a.h4.withConfig({displayName:"responsive__Heading4",componentId:"sc-4v1r4q-11"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Ie,g.fontSizes.heading4Mobile,g.fontSizes.heading4Mobile,g.breakpoints.medium,g.fontSizes.heading4,g.fontSizes.heading4),Ne=ge.a.h5.withConfig({displayName:"responsive__Heading5",componentId:"sc-4v1r4q-12"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Ie,g.fontSizes.heading5Mobile,g.fontSizes.heading5Mobile,g.breakpoints.medium,g.fontSizes.heading5,g.fontSizes.heading5),De=ge.a.h6.withConfig({displayName:"responsive__Heading6",componentId:"sc-4v1r4q-13"})([""," font-size:","px;line-height:","px;@media (min-width:","px){font-size:","px;line-height:","px;}"],Ie,g.fontSizes.heading5Mobile,g.fontSizes.heading5Mobile,g.breakpoints.medium,g.fontSizes.heading5,g.fontSizes.heading5),Me=ge.a.div.withConfig({displayName:"responsive__InlineAdWrapper",componentId:"sc-4v1r4q-14"})(["clear:both;min-height:283px;margin:30px 0;box-sizing:content-box;padding:0 0 10px;border-bottom:1px solid rgb(219,219,219);@media (min-width:768px){min-height:123px;}@media (min-width:1024px){min-height:283px;}"]),Be=ge.a.span.withConfig({displayName:"responsive__InlineAdTitle",componentId:"sc-4v1r4q-15"})(["border-bottom:1px solid rgb(219,219,219);color:#696969;flex:1 1 100%;font:normal ","px / 17px ",";letter-spacing:0.6px;margin:0 0 10px;padding:0 0 5px;text-align:center;text-transform:uppercase;display:block;"],g.fontSizes.teaser,g.fontsWithFallback.bodyRegular),Ue=ge.a.ul.withConfig({displayName:"article-list__StyledUl",componentId:"sc-1m2quer-0"})(["color:",";display:block;font-family:",";line-height:26px;font-size:","px;margin:0 auto ",";padding-right:",";padding-left:",";@media (min-width:","px){font-size:","px;line-height:30px;padding-left:",";padding-right:0;width:80.8%;}@media (min-width:","px){width:56.2%;}"],g.colours.functional.primary,g.fontsWithFallback.bodyRegular,g.fontSizes.bodyMobile,Object(g.spacing)(5),Object(g.spacing)(2),Object(g.spacing)(6),g.breakpoints.medium,g.fontSizes.body,Object(g.spacing)(3),g.breakpoints.wide),qe=ge.a.li.withConfig({displayName:"article-list__StyledLi",componentId:"sc-1m2quer-1"})(["margin-bottom:16px;list-style:square;color:",";font-family:",";line-height:26px;font-size:","px;p{width:100% !important;margin-block-start:16px;margin-block-end:0;&:empty{display:none;}}"],g.colours.functional.primary,g.fontsWithFallback.bodyRegular,g.fontSizes.bodyMobile);function Le(){return(Le=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}).apply(this,arguments)}function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){He(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ve=(e,t)=>["c8bf6998-d498-11ed-b5c3-54651fc826e9"].includes(e)||t,$e=e=>{switch(e){case"secondary":return Se;case"inline":return _e;case"fullwidth":return Pe;default:return ke}},Ke=(e,t,n)=>{const r=e.get(t)&&e.get(t).clientWidth?e.get(t).clientWidth:null;return r&&window.devicePixelRatio>1&&"indepth"===n&&1.5*r||r},Qe=e=>{let t=e.content,n=e.contextUrl,r=e.section,a=e.paidContentClassName,o=e.template,l=e.isPreview,s=e.swgProductId,d=e.inArticlePuffFlag,u=e.isLiveOrBreaking,m=e.articleHeadline,f=e.id,b=e.deckApiUrl,y=e.isWebPFormatActive,v=e.isExcludedFromAdsPathFromServer;return re()(t.map((e=>{let t=e.contextUrl,n=e.section;return e=>"ad"===e.name?We(We({},e),{},{attributes:We(We({},e.attributes),{},{contextUrl:t,section:n})}):e})({contextUrl:n,section:r})),(e=>{let t=e.paidContentClassName,n=e.template,r=e.analyticsStream,a=e.isPreview,o=e.isLiveOrBreaking,l=e.section,s=e.articleHeadline,d=e.articleId,u=e.deckApiUrl,m=e.isWebPFormatActive,f=e.isExcludedFromAdsPathFromServer;return We(We({},Y.a),{},{ad:e=>Ve(d,f)?null:i.a.createElement(Me,null,i.a.createElement(Be,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inline-ad"})),inlineAd1:e=>Ve(d,f)?null:i.a.createElement(Me,null,i.a.createElement(Be,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd1"})),inlineAd2:e=>Ve(d,f)?null:i.a.createElement(Me,null,i.a.createElement(Be,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd2"})),inlineAd3:e=>Ve(d,f)?null:i.a.createElement(Me,null,i.a.createElement(Be,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd3"})),inlineAd4:e=>Ve(d,f)?null:i.a.createElement(Me,null,i.a.createElement(Be,null,"Advertisement"),i.a.createElement(c.AdContainer,{key:e,slotName:"inlineAd4"})),dropCap:(e,t,n)=>i.a.createElement(V.a.Consumer,{key:e},e=>{let t=e.theme,r=t.dropCapFont,a=t.sectionColour,o=void 0===a?g.colours.section.default:a;return i.a.createElement(R.DropCapView,{colour:o,font:r},n)}),image(e,t){let r=t.id,a=t.display,o=t.ratio,c=t.url,l=t.caption,s=t.title,d=t.credits;const u=$e(a);return i.a.createElement(p.a,{key:e,rootMargin:Object(g.spacing)(40),threshold:0},t=>{let p=t.observed,f=t.registerNode;return i.a.createElement("div",{id:e,ref:e=>f(e)},i.a.createElement("div",{id:r},i.a.createElement(u,null,i.a.createElement(L.a,{captionOptions:{caption:l,title:s,credits:d},imageOptions:{display:a,highResSize:Ke(p,e,n),lowResQuality:3,lowResSize:400,ratio:o,uri:c},isWebPFormatActive:m}))))})},interactive(e,t){let n=t.id,c=t.url,s=t.element,d=t.display;const p=s.attributes,m=s.value,f=u||"https://editorial-tm.newsapis.co.uk/prod/deck-component-data-api";switch(m){case"in-article-info-card":return i.a.createElement(V.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.InfoCard,{sectionColour:t.sectionColour})))});case"in-article-info-card-bulletpoints":return i.a.createElement(V.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.InfoCardBulletPoints,{sectionColour:t.sectionColour})))});case"in-article-big-numbers":return i.a.createElement(V.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.BigNumbers,{sectionColour:t.sectionColour})))});case"in-article-timelines":return i.a.createElement(V.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.Timelines,{sectionColour:t.sectionColour})))});case"gallery-carousel":return i.a.createElement(V.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.GalleryCarousel,{sectionColour:t.sectionColour})))});case"twitter-embed":case"instagram-embed":return i.a.createElement(xe,{key:e},i.a.createElement(h.SocialMediaEmbed,{url:p.url,vendorName:m.split("-")[0],id:n}));case"times-embed-iframe-max":{const t=s.attributes&&s.attributes.src||"",r=t.includes("youtube"),a=t.includes("tiktok");return r&&a?i.a.createElement(xe,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.SocialMediaEmbed,{url:a?decodeURIComponent(t):t,vendorName:r?"youtube":a&&"tiktok",id:n})):i.a.createElement(xe,{key:e,fullWidth:"fullwidth"===d},i.a.createElement("div",{id:n},i.a.createElement(K.a,{attributes:p,element:m,key:e,source:c})))}case"times-travel-cta":{const t=s.attributes;return i.a.createElement(xe,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.CtaButton,{attributes:t}))}case"times-text-collapse":{const t=s.attributes;return i.a.createElement(xe,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.AffiliateLinkDisclaimer,{attributes:t}))}case"times-article-slices":{const t=s.attributes;return i.a.createElement(xe,{key:e,fullWidth:"fullwidth"===d},i.a.createElement(h.ArticleCard,{element:t}))}case"newsletter-puff":const t=p.code,u=p.copy,g=p.headline;return a?i.a.createElement("div",{id:n},i.a.createElement(h.PreviewNewsletterPuff,{copy:Object(h.safeDecodeURIComponent)(u),headline:Object(h.safeDecodeURIComponent)(g),section:l})):i.a.createElement("div",{id:n},i.a.createElement(h.InlineNewsletterPuff,{analyticsStream:r,key:e,code:t,copy:Object(h.safeDecodeURIComponent)(u),headline:Object(h.safeDecodeURIComponent)(g),section:l}));case"opta-cricket-scorecard":case"opta-cricket-scorecard-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaCricketScorecard,{competition:p.competition,match:p.match}));case"opta-football-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-football-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-football-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballSummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaFootballMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"opta-football-match-lineups-v3":case"opta-football-top-scorers-v3":case"opta-football-match-commentary-v3":case"opta-football-hub":return null;case"opta-rugby-union-fixtures-v2":case"opta-rugby-fixtures-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyFixtures,{season:p.season,competition:p.competition,date_from:p["date-from"],date_to:p["date-to"]}));case"opta-rugby-union-standings-v2":case"opta-rugby-standings-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyStandings,{season:p.season,competition:p.competition,default_nav:p.group,navigation:!0}));case"opta-rugby-union-match-summary-v2":case"opta-rugby-match-summary-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbySummary,{season:p.season,competition:p.competition,match:p.match}));case"opta-rugby-union-match-stats-v2":case"opta-rugby-match-stats-v3":return i.a.createElement("div",{id:n},i.a.createElement(h.OptaRugbyMatchStats,{season:p.season,competition:p.competition,match:p.match}));case"in-article-puff":return i.a.createElement(V.a.Consumer,{key:e},e=>{let t=e.theme;return i.a.createElement("div",{id:n},i.a.createElement(h.FetchProvider,{url:"".concat(f,"?id=").concat(p["deck-id"])},i.a.createElement(h.InArticlePuff,{sectionColour:t.sectionColour,forceImageAspectRatio:"3:2",isLiveOrBreaking:o})))});case"article-header":return i.a.createElement("div",{id:n},i.a.createElement(h.ArticleHeader,{updated:p.updated,breaking:p.breaking,headline:p.headline,authorSlug:p.slug,description:p.description}));default:return i.a.createElement(xe,{key:e,fullWidth:"fullwidth"===d},i.a.createElement("div",{id:n},i.a.createElement(K.a,{attributes:p,element:m,key:e,source:c})))}},autoNewsletterPuff(e,t){const n=t.element.attributes,a=n.code,o=n.copy,c=n.headline;return i.a.createElement(h.AutoNewsletterPuff,{analyticsStream:r,key:e,code:a,copy:o,headline:c,section:l})},keyFacts:(e,t,n,r,a)=>i.a.createElement(G.a,{key:e,ast:a,section:l,headline:s,isLiveOrBreaking:o}),heading2:(e,t,n)=>i.a.createElement(ze,null,n),heading3:(e,t,n)=>i.a.createElement(Te,null,n),heading4:(e,t,n)=>i.a.createElement(Fe,null,n),heading5:(e,t,n)=>i.a.createElement(Ne,null,n),heading6:(e,t,n)=>i.a.createElement(De,null,n),link(e,t,n){const r=t.href,a=t.target,o=t.dropCap;return i.a.createElement(fe,{dropCap:o,key:e,target:a,url:r},n)},listElement:(e,t,n)=>i.a.createElement(qe,{key:e},n),unorderedList:(e,t,n)=>i.a.createElement(Ue,{key:e},n),paragraph(e,t,n){const r=t&&t.id;return i.a.createElement(W.a,Le({key:e},r?{id:r}:{}),n)},paywall:(e,n,r)=>i.a.createElement("span",{className:t,key:e},r),pullQuote(e,t,n){let r=t.caption,a=r.name,o=r.text,c=r.twitter;return i.a.createElement(V.a.Consumer,{key:e},e=>{let t=e.theme,r=t.pullQuoteFont,l=t.sectionColour,s=void 0===l?g.colours.section.default:l;return i.a.createElement(Ae,null,i.a.createElement(Ce,null,i.a.createElement(X.a,{caption:a,font:r,quoteColour:s,text:o,twitter:c},n)))})},video(e,t){let n=t.id,r=t.is360,a=t.brightcovePolicyKey,o=t.brightcoveVideoId,c=t.brightcoveAccountId,l=t.brightcovePlayerId,s=t.caption,d=t.posterImageUrl;const p=$e("primary");return i.a.createElement(p,{key:e},i.a.createElement("figure",{style:{margin:0}},i.a.createElement(ie.AspectRatioContainer,{aspectRatio:"16:9"},i.a.createElement(te.a,{id:n,is360:r,accountId:c,height:"100%",playerId:l,policyKey:a,poster:{uri:d},videoId:o,width:"100%"})),i.a.createElement("figcaption",null,i.a.createElement(je,{caption:s}))))}})})({paidContentClassName:a,template:o,isPreview:l,swgProductId:s,inArticlePuffFlag:d,isLiveOrBreaking:u,articleId:f,section:r,articleHeadline:m,deckApiUrl:b,isWebPFormatActive:y,contextUrl:n,isExcludedFromAdsPathFromServer:v}))};Qe.propTypes={content:o.a.arrayOf(o.a.shape({attributes:o.a.object,children:o.a.arrayOf(o.a.object),name:o.a.string})).isRequired,contextUrl:o.a.string.isRequired,paidContentClassName:o.a.string,section:o.a.string};var Ge=Qe;o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func.isRequired,o.a.shape({}),o.a.func,o.a.shape({account:o.a.string.isRequired}).isRequired,o.a.string,o.a.bool,o.a.bool;var Je=n(5),Ye=n.n(Je);const Ze=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.registrationType?e.registrationType:""},Xe=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.customerType?e.customerType:""},et=()=>{const e=global.nuk&&global.nuk.user||{};return e&&e.isShared?"yes":"no"},tt=e=>{const t=["LIVE","BREAKING"],n=e&&e.find(e=>t.includes(e.type.toUpperCase()));return n&&n.type},nt=e=>{if(!e)return[];const t=e.find(e=>null===e.expiryTime||(new Date).getTime()<new Date(e.expiryTime).getTime());return t&&t.type&&t.type.toLowerCase()};function rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(n),!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ot=e=>{const t=e.find(e=>"paywall"===e.name);if(!t)return e;const n=t.children.filter(e=>"paragraph"===e.name).pop(),r=t.children.indexOf(n),i=t.children.map((e,t)=>t===r?it(it({},e),{},{attributes:it(it({},e.attributes),{},{id:"last-paragraph"})}):e);return e.map(e=>"paywall"===e.name?it(it({},e),{},{children:i}):e)};const ct=ge.a.div.withConfig({displayName:"keylines__KeylineItem",componentId:"sc-1s03wwf-0"})(["border:solid ",";border-width:1px 0;& + &{margin-top:-1px !important;}"],g.colours.functional.keyline),lt=ge()(ct).withConfig({displayName:"keylines__ArticleKeylineItem",componentId:"sc-1s03wwf-1"})(["@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],g.breakpoints.medium,Object(g.spacing)(6),g.breakpoints.medium,g.breakpoints.wide,Object(g.spacing)(2),Object(g.spacing)(2)),st=ge.a.main.withConfig({displayName:"responsive__MainContainer",componentId:"sc-15gvuj2-1"})(["@media (min-width:","px){padding-top:",";margin:0 auto;}"],g.breakpoints.wide,Object(g.spacing)(4)),dt=ge()(ie.TcView).withConfig({displayName:"responsive__HeaderContainer",componentId:"sc-15gvuj2-2"})(["display:flex;z-index:1;> ","{order:3;}"],lt),pt=ge.a.article.withConfig({displayName:"responsive__BodyContainer",componentId:"sc-15gvuj2-3"})(["display:block;order:4;"]),ut=ge.a.div.withConfig({displayName:"responsive__UpdateButtonContainer",componentId:"sc-15gvuj2-4"})(["position:sticky;bottom:50px;display:flex;width:100%;justify-content:center;@media (min-width:","px){bottom:80px;}@media (min-width:","px){bottom:120px;}"],g.breakpoints.medium,g.breakpoints.wide),mt=ge.a.div.withConfig({displayName:"responsive__SidebarWarpper",componentId:"sc-15gvuj2-5"})(["position:sticky;top:162px;display:none;left:100%;@media (min-width:","px){width:19.8333%;display:inline-block;}@media (min-width:","px){width:18.8333%;top:112px;}"],g.breakpoints.wide,g.breakpoints.huge),ft=ge.a.div.withConfig({displayName:"responsive__PuzzlesSidebar",componentId:"sc-15gvuj2-6"})(["position:sticky;padding-left:",";z-index:1;@media (min-width:","px){padding-right:",";}@media (min-width:","px){padding-right:",";}"],Object(g.spacing)(4),g.breakpoints.wide,Object(g.spacing)(8),g.breakpoints.huge,Object(g.spacing)(10)),ht=ge.a.div.withConfig({displayName:"responsive__ArticleWrapper",componentId:"sc-15gvuj2-7"})(["position:relative;"]),gt=ge.a.div.withConfig({displayName:"responsive__ArticleContent",componentId:"sc-15gvuj2-8"})(["@media (min-width:","px){margin-top:",";transition:margin-top 0.2s ease;}"],g.breakpoints.wide,e=>e.showMargin?"-335px":"0"),bt=ge.a.div.withConfig({displayName:"responsive__EmailBannerContainer",componentId:"sc-15gvuj2-9"})(["position:sticky;top:80px;width:100%;z-index:100;display:flex;justify-content:center;height:100%;@media (max-width:","px){max-width:327px;height:100px;margin:auto;}"],g.breakpoints.medium);function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ot=e=>{const t=Object(g.styleguide)({scale:e}),n=t.colours,r=t.fontFactory,i=t.spacing,a=t.lineHeight;return{ad:{borderBottomColor:n.functional.keyline,borderBottomWidth:1,borderTopColor:n.functional.keyline,borderTopWidth:1,marginBottom:i(4),padding:i(2)},articleLink:vt(vt({color:n.functional.action},r({font:"body",fontSize:"bodyMobile"})),{},{lineHeight:a({font:"body",fontSize:"bodyMobile"}),marginBottom:i(5),marginTop:0}),articleMainContentRow:{paddingLeft:i(2),paddingRight:i(2)},articleTextElement:vt(vt({},r({font:"body",fontSize:"bodyMobile"})),{},{color:n.functional.primary,marginBottom:i(5)}),containerTablet:{alignSelf:"center"},imageContainerTablet:{alignSelf:"center"},interactiveContainer:{marginBottom:i(4),paddingLeft:i(2),paddingRight:i(2)},interactiveContainerTablet:{alignSelf:"center",width:g.tabletWidth},interactiveContainerFullWidth:{width:"100%",paddingLeft:0,paddingRight:0},leadAsset:{marginBottom:i(2)},primaryContainer:{flexDirection:"column",paddingBottom:i(5),width:"100%"},heading2:vt(vt({},r({font:"headline",fontSize:"heading2Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading3:vt(vt({},r({font:"headline",fontSize:"heading3Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading4:vt(vt({},r({font:"headline",fontSize:"heading4Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading5:vt(vt({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black}),heading6:vt(vt({},r({font:"headline",fontSize:"heading5Mobile"})),{},{marginBottom:i(2),color:n.functional.black})}};var Et={articleContainer:{backgroundColor:g.colours.functional.gutter},articleMainContentRow:{paddingLeft:Object(g.spacing)(2),paddingRight:Object(g.spacing)(2)}};function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pt=Ot(),St=xt(xt({},Pt),{},{ad:xt(xt({},Pt.ad),{},{marginBottom:Object(g.spacing)(6),marginTop:Object(g.spacing)(6),width:"100%"}),articleTextElement:xt(xt({},Pt.articleTextElement),{},{marginTop:0}),adMarginStyle:{marginBottom:0}});var _t=xt(xt({},Et),St),Ct=n(26);const At=["37a19ac4-1cbb-11ee-8198-bf96b6365670"];const It={SUNDAYTIMES:"The Sunday Times",TIMES:"The Times"},zt=e=>Ye()(e,"crop169.url",null),Tt=e=>zt(Ye()(e,"leadAsset.posterImage",Ye()(e,"leadAsset",null))),Ft=e=>zt(Ye()(e,"leadAsset",null)),Nt=e=>(e.hasVideo?Tt:Ft)(e),Dt=e=>{const t=e.hasVideo,n=e.leadAsset,r=t?Tt(e):(e=>{const t=e.tiles&&e.tiles.find(e=>Ye()(e.leadAsset,"crop169.url",null));if(t)return t;const n=Ye()(e.listingAsset,"crop169.url",null);return n||Ye()(e.leadAsset,"crop169.url",null)})(e);if(r)return r;if(!n)return null;const i=n&&n.posterImage?n.posterImage:n,a=i.crop32,o=i.crop1251,c=i.crop11,l=i.crop45,s=i.crop23,d=i.crop2251,p=a||o||c||l||s||d;return p?p.url:""};function Mt(e){let t=e.article,n=e.articleUrl,r=e.logoUrl,a=e.paidContentClassName,o=e.getFallbackThumbnailUrl169,c=e.swgProductId,l=e.breadcrumbs,s=e.domainSpecificUrl;const d=t.descriptionMarkup,p=t.headline,u=t.leadAsset,m=t.publicationName,f=t.shortHeadline,h=t.publishedTime,g=t.updatedTime,b=t.hasVideo,y=t.seoDescription,v=t.keywords,w=u||{},O=w.brightcoveAccountId,E=w.brightcoveVideoId,j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="";if(void 0!==e)for(let n=0;n<e.length;n+=1)"LIVE"===e[n].type&&(t=e[n].expiryTime);return t}(t.expirableFlags),x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(void 0!==e){return void 0!==e.find(e=>"LIVE"===e.type&&(Date.now()<new Date(e.expiryTime)||null===e.expiryTime))}return!1}(t.expirableFlags),k=It[m],P=function(e){const t=e.bylines;if(!t)return null;const n=t.reduce((e,t)=>(Array.isArray(t.byline)?e.push(...t.byline):e.push(t.byline),e),[]);return Object(ne.renderTreeAsText)({children:n})}(t),S=y||(Array.isArray(d)&&d.length?Object(ne.renderTreeAsText)({children:d}):null),_=Dt(t)||(o?o():null),C=Object(ie.appendToImageURL)(Nt(t),"resize",1200)||_,A=function(e,t){return e.bylines?(n=e,n.bylines.map(e=>e.author).filter(e=>e)).map(e=>{let n=e.name,r=e.jobTitle,i=e.twitter,a=e.slug;const o="".concat(t,"/profile/").concat(a);return{"@type":"Person",name:n,jobTitle:r,sameAs:i?[o,"https://twitter.com/".concat(i)]:o}}):[];var n}(t,s),I=Ye()(u,"caption",null),z=p||f||"",T=h&&new Date(h).toISOString(),F=t.associatedDesks?t.associatedDesks[0]:"News",N=t.associatedDesks?t.associatedDesks.map(e=>"Section:".concat(e)):[],D=l.length>0?l.map(e=>"Section:".concat(e.title)):[],M=N.concat(D),B=M.length>0?[...new Set(M)].toString():"",U=g||T,q=P?{"@type":"Person",name:P}:null,L=(A&&A.length?A:q)||{"@type":"Organization",name:"The Times"},R={"@type":"Organization",name:k,logo:{"@type":"ImageObject",url:r}},W=((e,t,n)=>{const r=[];if(null===e)return r;const i=e.content,a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=/\D+/g,r=e.replace(n,""),i=/\b(\w)/g,a=t.match(i),o=null===a?"":a.join("");return"u_".concat(r).concat(o)};if(void 0!==i){let o;const c=i=>{for(let l=0;l<i.length;l+=1)if("interactive"===i[l].name){if(i[l].attributes.element&&"article-header"===i[l].attributes.element.value){void 0!==o&&r.push(o);const c=i[l].attributes.element.attributes;o={"@type":"BlogPosting",headline:c.headline,datePublished:c.updated,dateModified:c.updated,publisher:t,url:"".concat(e.url,"#").concat(a(c.updated,c.headline)),author:n}}}else if("paragraph"===i[l].name){if(void 0!==o){const e=Ye()(i[l],"children[0].attributes.value","");o.articleBody?o.articleBody+=" ".concat(e):o.articleBody=e}}else"image"===i[l].name?void 0!==o&&(o.image={"@type":"ImageObject",url:i[l].attributes.url,caption:i[l].attributes.caption}):"video"===i[l].name?void 0!==o&&(o.video={"@type":"VideoObject",thumbnail:i[l].attributes.posterImageUrl}):"paywall"===i[l].name&&i[l].children&&i[l].children.length>0&&c(i[l].children)};c(i),void 0!==o&&r.push(o)}return r})(t,R,L),H={"@context":"https://schema.org","@type":"NewsArticle",headline:z,publisher:{"@type":"Organization",name:k,logo:{"@type":"ImageObject",url:r}},mainEntityOfPage:{"@type":"WebPage","@id":n},dateCreated:h,datePublished:T,isAccessibleForFree:!1,hasPart:{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(a)},image:{"@type":"ImageObject",url:C,caption:I},thumbnailUrl:_,dateModified:U,author:L,articleSection:F,keywords:B,url:n};c&&(H.isPartOf={"@type":["CreativeWork","Product"],name:"The Times & The Sunday Times",productID:c});const V=b?{"@context":"https://schema.org","@type":"VideoObject",name:u&&u.title?u.title:z,uploadDate:U,thumbnailUrl:_,description:Array.isArray(d)&&d.length?Object(ne.renderTreeAsText)({children:d}):y||u.title||z,contentUrl:"https://players.brightcove.net/".concat(O,"/default_default/index.html?videoId=").concat(E)}:null,$={"@context":"https://schema.org","@type":"LiveBlogPosting",headline:p,description:y,mainEntityOfPage:{"@type":"WebPage","@id":n},datePublished:h,dateModified:g,coverageStartTime:h,coverageEndTime:j,url:n,keywords:v,image:{"@type":"ImageObject",url:C,caption:I},publisher:R,author:L,liveBlogUpdate:W,articleSection:F},K=At.includes(t.id),Q=l&&l.length?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:l.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.title,item:"".concat(s,"/").concat(e.slug)}))}:null;return i.a.createElement(Ct.Helmet,{encodeSpecialCharacters:!1},i.a.createElement("title",null,z),K&&i.a.createElement("meta",{name:"robots",content:"noindex"}),i.a.createElement("meta",{name:"robots",content:"max-image-preview:large"}),i.a.createElement("meta",{content:z,name:"article:title"}),i.a.createElement("meta",{content:k,name:"article:publication"}),S&&i.a.createElement("meta",{content:S,name:"description"}),P&&i.a.createElement("meta",{content:P,name:"author"}),i.a.createElement("meta",{content:z,property:"og:title"}),i.a.createElement("meta",{content:"article",property:"og:type"}),i.a.createElement("meta",{content:n,property:"og:url"}),S&&i.a.createElement("meta",{content:S,property:"og:description"}),C&&i.a.createElement("meta",{content:C,property:"og:image"}),b&&i.a.createElement("meta",{name:"robots",content:"max-video-preview:-1"}),i.a.createElement("meta",{content:z,name:"twitter:title"}),i.a.createElement("meta",{content:"summary_large_image",name:"twitter:card"}),i.a.createElement("meta",{content:n,name:"twitter:url"}),S&&i.a.createElement("meta",{content:S,name:"twitter:description"}),C&&i.a.createElement("meta",{content:C,name:"twitter:image"}),x&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify($)),i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(H)),V&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(V)),Q&&i.a.createElement("script",{type:"application/ld+json"},JSON.stringify(Q)),i.a.createElement("script",{type:"text/javascript",defer:!0,src:"https://platform.twitter.com/widgets.js"}))}Mt.defaultProps={swgProductId:null,breadcrumbs:[]};var Bt=Mt;var Ut=e=>{let t=e.id,n=e.componentName;if("undefined"!=typeof window){const e=Ye()(window,"paywallComponent.".concat(n));if(e)return i.a.createElement("div",{id:t,dangerouslySetInnerHTML:{__html:e}})}return i.a.createElement("div",{id:t})};function qt(){return(qt=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}).apply(this,arguments)}const Lt=ge.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareContainer",componentId:"hqppv0-0"})(["background-color:",";height:60px;display:flex;align-items:center;",";"],g.colours.functional.white,e=>e.isClient&&[u.selectors.sizer(Object(he.css)(["border-bottom:1px solid transparent;will-change:border-bottom-color;"])),u.selectors.sticky(Object(he.css)(["will-change:height,box-shadow;"])),Object(u.computeProgressStyles)(e=>Object(he.css)(["height:","px;box-shadow:0 2px 5px 0 ",";",";"],60-10*e,g.colours.functional.greyStickyBarBoxShadow,u.selectors.stickySizer(Object(he.css)(["border-bottom-color:",";"],g.colours.functional.greyStickyBarBorderBottom))))]),Rt=ge.a.div.withConfig({displayName:"sticky-save-and-share-bar__SaveShareItem",componentId:"hqppv0-1"})(["order:3;& + &{margin-top:-1px !important;}@media (min-width:","px){margin:0 auto;}&:last-child{margin-bottom:",";}@media (min-width:","px){width:80.8%;}@media (min-width:","px){width:56.2%;}margin-left:",";margin-right:",";"],g.breakpoints.medium,Object(g.spacing)(2),g.breakpoints.medium,g.breakpoints.wide,Object(g.spacing)(2),Object(g.spacing)(2));function Wt(e){return i.a.createElement(ie.ServerClientRender,{client:()=>i.a.createElement(Lt,qt({isClient:!0},e)),server:()=>i.a.createElement(Lt,e)})}const Ht=Object(u.mediaQuery)("(max-width: ".concat(g.breakpoints.huge,"px)"));var Vt=function(e){return i.a.createElement(Rt,null,i.a.createElement(m.a,{Component:Wt,shouldBeSticky:Ht},i.a.createElement(O.a,e)))};var $t=e=>t=>e&&void 0===t.find(e=>"paywall"===e.name)?[]:t;function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach((function(t){Gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jt=["indepth","maincomment","magazinestandard","magazinecomment"],Yt=e=>{const t=e.children;if(0===t.length)return e;if("text"===t[0].name){const r=(n=Ye()(t[0],"attributes.value[0]"),/'|"|‘|“/.test(n)&&t[0].attributes.value.length>1?2:1);return Qt(Qt({},e),{},{attributes:Qt({},e.attributes),children:[Qt(Qt({},t[0]),{},{attributes:Qt(Qt({},t[0].attributes),{},{value:t[0].attributes.value.slice(0,r),dropCap:!0})}),Qt(Qt({},t[0]),{},{attributes:Qt(Qt({},t[0].attributes),{},{value:t[0].attributes.value.slice(r),dropCap:!0})}),...t.slice(1)]})}var n;if("link"===t[0].name&&0===t[0].children.length)return null;const r=Yt(t[0]);if(r.attributes.dropCap&&"paragraph"!==e.name){const n=Qt(Qt({},e),{},{attributes:Qt(Qt({},e.attributes),{},{dropCap:!0}),children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,n}const i=Qt(Qt({},e),{},{children:[r,...t.slice(1)]});return r.attributes.dropCap=!0,i},Zt=e=>{const t=e[0];return t&&t.attributes.dropCap&&"text"!==t.name?Zt(t.children):e};var Xt=(e,t,n)=>{try{if(t&&Jt.includes(t)&&!n&&e.length>0){const t=e.find(e=>"paragraph"===e.name);if(!t||0===t.children.length)return e;const n=e.indexOf(t),r=Yt(t),i=Yt(t);Zt(r.children).splice(1);Zt(i.children).splice(0,1);const a=[...e];return a.splice(n,1,{name:"dropCap",attributes:{},children:[r]},i),a}}catch(t){return e}return e},en=(e,t)=>n=>{const r=Xt(n,e,t),i=r.length>0&&r.find(e=>"dropCap"===e.name);if(i){const e=r.indexOf(i);return r[e].children=r[e].children[0].children.slice(0,1),r[e+1].children=[r[e],...r[e+1].children],r.splice(e,1),r}return r};function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const an=e=>({name:"autoNewsletterPuff",attributes:{element:{value:"newsletter-puff",attributes:nn({label:"In your inbox"},e)}},children:[]}),on=[{section:"news",payload:an({code:"TNL-101",headline:"Daily Briefing",copy:"Our flagship newsletter featuring our top stories and analysis, delivered every morning.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F728c3e68-5311-4533-809a-b313a6503789.jpg?resize=800"})},{section:"business",payload:an({code:"TNL-103",headline:"Business briefing",copy:"Morning and midday updates on financial and economic news from our award-winning business team.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F306637af-2b6f-48fc-b264-d661b2067818.jpg?resize=800"})},{section:"scotland",payload:an({code:"TNL-134",headline:"Editor’s Choice – Scotland",copy:"The biggest stories from The Times and Sunday Times Scotland, every Saturday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F5777acf9-363f-4aa3-8176-1ea09cdae7d6.jpg?resize=800"})},{section:"money",payload:an({code:"TNL-107",headline:"Money newsletter",copy:"Personal finance and investment news from our money experts, every Monday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2Ffd44b15f-2fb8-4e5d-b409-315648b10646.jpg?resize=800"})},{section:"law",payload:an({code:"TNL-121",headline:"The Brief",copy:"Get expert analysis, news and commentary in The Brief, our legal editor's insider's guide, every Thursday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F27a231b4-5658-4852-a603-37c5210a946e.jpg?resize=800"})},{section:"home",payload:an({code:"TNL-113",headline:"Property newsletter",copy:"Inside Britain's most exclusive homes, expert advice and what's really happening in the property market, every Monday.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"luxury",payload:an({code:"TNL-148",headline:"Luxury newsletter",copy:"Do you need more luxury in your life? Sign up to the Times Luxury newsletter with one click.",imageUri:"https://www.thetimes.co.uk/imageserver/image/%2Fmethode%2Ftimes%2Fprod%2Fweb%2Fbin%2Fcbd3c7a9-4d25-422a-b4a5-a48072778002.jpg?crop=1990%2C1322%2C0%2C0&resize=800"})},{section:"bricks & mortar",payload:an({code:"TNL-113",headline:"Property newsletter",copy:"Get expert advice and find out what's really happening in the property market.",imageUri:"https://www.thetimes.co.uk/imageserver/image/methode%2Ftimes%2Fprod%2Fweb%2Fbin%2F42a688ec-f9ba-4684-90ce-17a9d1c19d8a.jpg?resize=800"})},{section:"ireland",payload:an({code:"TNL-152",headline:"Best of Times Ireland newsletter:",copy:"The most compelling Irish news, business, sport and lifestyle stories from the week, every Sunday."})},{section:"irish sport",payload:an({code:"TNL-152",headline:"Best of Times Ireland newsletter:",copy:"The most compelling Irish news, business, sport and lifestyle stories from the week, every Sunday."})}],cn=e=>e.find(e=>"interactive"===e.name&&"newsletter-puff"===e.attributes.element.value),ln=(e,t,n)=>nn(nn({},e),{},{children:e.children.reduce((e,r,i)=>i===t?[...e,n,r]:[...e,r],[])}),sn=e=>{const t=e.findIndex(e=>"paragraph"!==e.name);return-1===t?e.length:t};var dn=(e,t,n)=>r=>{if(t||tt(n))return r;const i=(e=>{const t=e?on.find(t=>t.section===e.toLowerCase()):void 0;return t?t.payload:void 0})(e);if(!i)return r;const a=r.find(e=>"paywall"===e.name);if(!a)return r;if(cn(r)||cn(a.children))return r;if(!((e,t)=>{const n=e.findIndex(e=>"paywall"===e.name),r=sn(e),i=sn(t.children);return r>=5||n===r&&r+i>=5})(r,a))return r;return r.reduce((e,t,n)=>3===n?[...e,i,t]:"paywall"===t.name?[...e,ln(t,3-n,i)]:[...e,t],[])};function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){mn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fn=e=>t=>{const n=[...t];let r;const i=e?(r=n.findIndex(e=>"ad"===e.name),{children:n.slice(r)}):n.find(e=>"paywall"===e.name),a=e?n.slice(0,r).filter(e=>"paragraph"===e.name):n.filter(e=>"paragraph"===e.name);if(!i)return n;const o=i.children,c=o.map((e,t)=>un(un({},e),{},{index:t})).filter(e=>"paragraph"===e.name);c.pop();return[9,14,19,24].forEach((e,t)=>{if(!o.find(e=>e.name==="inlineAd".concat(t+1))){const n=c[e-a.length]?c[e-a.length].index:null;n&&null!==n&&o.splice(n+t+1,0,{name:"inlineAd".concat(t+1),children:[]})}}),e?[...t.slice(0,r),...o]:n};function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach((function(t){bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yn=function e(t){return t.map(t=>{if("paragraph"===t.name||"paywall"===t.name){if("paywall"===t.name){const n=e(t.children);return gn(gn({},t),{},{children:n})}if(1===t.children.length&&"unorderedList"===t.children[0].name)return gn({},t.children[0])}return t})};var vn=e=>{const t=e.find(e=>"paywall"===e.name);if(!t||!Array.isArray(t.children))return e;const n=t.children;for(let e=0;e<n.length-2;e++)if("paragraph"===n[e].name&&(n[e+1].name.includes("inlineAd")||"ad"===n[e+1].name)&&"interactive"===n[e+2].name&&"times-travel-cta"===n[e+2].attributes.element.value){var r=[n[e+2],n[e+1]];n[e+1]=r[0],n[e+2]=r[1]}return e};function wn(e,t,n,r,i,a,o){try{var c=e[a](o),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,i)}function On(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){wn(a,r,i,o,c,"next",e)}function c(e){wn(a,r,i,o,c,"throw",e)}o(void 0)}))}}function En(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,a=[],o=!0,c=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){c=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(c)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jn(e,t)}(e,t)||function(){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 jn(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}n.d(t,"reduceArticleContent",(function(){return xn})),n.d(t,"KeylineItem",(function(){return ct})),n.d(t,"ArticleKeylineItem",(function(){return lt})),n.d(t,"InlineAdWrapper",(function(){return Me})),n.d(t,"InlineAdTitle",(function(){return Be})),n.d(t,"ArticleLink",(function(){return fe}));const xn=(e,t)=>e&&e.length>0&&t.reduce((e,t)=>t(e),e),kn=e=>{let t=e.analyticsStream,n=e.data,a=e.Header,o=e.Content,l=e.ContentFooter,d=e.logoUrl,m=e.receiveChildList,f=e.commentingConfig,b=e.articleDataFromRender,w=e.paidContentClassName,E=e.isPreview,j=e.swgProductId,x=e.getFallbackThumbnailUrl169,k=e.zephrDivs,P=e.showAudioPlayer,S=e.removeTeaserContent;const _=n.commentsEnabled,C=n.content,A=n.dropcapsDisabled,I=n.id,z=n.section,N=n.url,D=n.headline,M=n.shortHeadline,B=n.expirableFlags,q=n.topics,L=n.relatedArticleSlice,R=n.template,W=n.savingEnabled,H=n.sharingEnabled,V=n.publishedTime,$=En(Object(r.useState)(!1),2),K=$[0],Q=$[1],G=Object(h.useSocialEmbedsContext)(),J=G.isSocialEmbedAllowed,Y=G.isAllowedOnce;Object(r.useEffect)(()=>{(J.twitter||Y.twitter)&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load()},[J.twitter,Y.twitter]);const Z=Object(r.useRef)(),X=()=>{const e=Z.current;if(e){const t=document.querySelectorAll(".responsive__InlineAdWrapper-sc-4v1r4q-17, .responsive__InlineAdWrapper-sc-4v1r4q-14, .responsive__FullWidthImg-sc-4v1r4q-4, .responsive__InteractiveContainer-sc-4v1r4q-2");let n=!1;t.forEach(t=>{if(t){const r=t.getBoundingClientRect();r.top<=e.getBoundingClientRect().bottom&&r.bottom>=e.getBoundingClientRect().top&&(n=!0)}}),e.style.opacity=n?"0":"1"}};Object(r.useEffect)(()=>{const e=!!JSON.parse(window.sessionStorage.getItem("verifyEmail"));Q(e)},[]),Object(r.useEffect)(()=>{const e=Z.current;return e&&(e.style.transition="opacity 0.2s ease"),X(),window.addEventListener("scroll",X),()=>{window.removeEventListener("scroll",X)}},[]);const ee=b||{},te=ee.hostName,ne=ee.canonicalUrl,re=ee.breadcrumbs,ae=ee.categorisedArticles,oe=ee.deckApiUrl,ce=ee.isWebPFormatActive,le=ee.isExcludedFromAdsPathFromServer,se=te&&ne?"".concat(te).concat(ne):N,de=N&&N.split("/").filter(Boolean)[0]||null,pe=!!de&&["culture","life-style"].includes(de),ue=[$t(S),en(R,A),dn(z,E,B),fn(E),ot,yn,vn],me=xn(C,ue),fe=tt(B),he=me&&i.a.createElement(Ge,{id:n.id,analyticsStream:t,content:me,contextUrl:se,section:z,articleHeadline:D,paidContentClassName:w,template:R,isPreview:E,isLiveOrBreaking:fe,deckApiUrl:oe,isWebPFormatActive:!!ce,isExcludedFromAdsPathFromServer:le}),be=(e=>{const t="indepth"===e;return ge()(ie.TcView).withConfig({displayName:"responsive",componentId:"sc-15gvuj2-0"})(["box-sizing:content-box;justify-content:center;min-height:50px;display:flex;border-top-color:",";border-bottom-color:",";border-bottom-width:",";padding-top:",";padding-bottom:",";@media (min-width:768px){min-height:90px;}@media (min-width:1024px){min-height:250px;}"],g.colours.functional.keyline,g.colours.functional.keyline,t?"0":"1px",Object(g.spacing)(2),t?"0":Object(g.spacing)(2))})(R);m([{elementId:"last-paragraph",name:"end of article",eventNavigationName:"Article : View End"},{elementId:"related-articles",name:"related articles"}]);const ye=te||"https://www.thetimes.co.uk",ve=i.a.createElement(y.a,{state:y.a.showSaveAndShareBar},i.a.createElement(v.MessageContext.Consumer,null,e=>{let t=e.showMessage;const n={articleId:I,articleHeadline:D,articleUrl:se,onCopyLink:()=>t("Article link copied"),onSaveToMyArticles:()=>{},onShareOnEmail:()=>{},savingEnabled:W,sharingEnabled:H,hostName:ye};return o?i.a.createElement(O.a,n):i.a.createElement(Vt,n)})),we=En(Object(r.useState)([]),2),Oe=we[0],Ee=we[1],je=En(Object(r.useState)(null),2),xe=je[0],ke=je[1],Pe=function(){var e=On((function*(){const e=yield T();Ee(e)}));return function(){return e.apply(this,arguments)}}();return Object(r.useEffect)(()=>{pe&&Pe()},[pe]),Object(r.useEffect)(()=>{(function(){var e=On((function*(){const e=yield F();ke(e)}));return function(){return e.apply(this,arguments)}})()()},[]),i.a.createElement(u.StickyProvider,null,i.a.createElement(h.TrackingContextProvider,{context:{component:"ArticleSkeleton",attrs:{article_name:D||M||"",section_details:z}},analyticsStream:t},K&&i.a.createElement(bt,null,i.a.createElement(h.Banner,{title:"Check your inbox",body:"Verify your email by clicking on the link sent to your inbox.",onClose:()=>{window.sessionStorage.setItem("verifyEmail",!1),Q(!1)}})),E&&i.a.createElement("div",{className:"Container"},i.a.createElement("div",{className:"ArticleMetaBanner"},i.a.createElement("div",{className:"ArticleMetaBanner-field"},i.a.createElement("label",{htmlFor:"ArticleMetaBanner-uuid"},"UUID",i.a.createElement("input",{type:"text",placeholder:"UUID",name:"UUID",id:"ArticleMetaBanner-uuid",value:I,readOnly:!0})),i.a.createElement("button",{type:"button",className:"ArticleMetaBanner-button","data-clipboard-target":"#ArticleMetaBanner-uuid"},"Copy")))),i.a.createElement("div",{id:"article-marketing-header"}),i.a.createElement("article",{id:"article-main","data-article-identifier":n.id,"data-article-sectionname":z,"data-article-template":R},!!k&&i.a.createElement(U,{html:'<div id="nu-zephr-article-target-top-head"></div>'}),i.a.createElement(Bt,{article:n,articleUrl:se,logoUrl:d,paidContentClassName:w,getFallbackThumbnailUrl169:x,swgProductId:j,breadcrumbs:re,domainSpecificUrl:ye}),!!k&&i.a.createElement(U,{html:'<div id="nu-zephr-article-target-below-head"></div>'}),o?i.a.createElement(o,{content:he,SaveAndShare:ve}):i.a.createElement(r.Fragment,null,!le&&i.a.createElement(be,{key:"headerAd"},i.a.createElement(c.AdContainer,{slotName:"header",style:_t.adMarginStyle})),i.a.createElement(st,null,i.a.createElement(h.WelcomeBanner,null),!!k&&i.a.createElement(U,{html:'<div id="nu-zephr-article-target-top-maincontainer"></div>'}),i.a.createElement(dt,{showAudioPlayer:P},!!k&&i.a.createElement(U,{html:'<div id="nu-zephr-article-target-top-headercontainer"></div>'}),i.a.createElement(a,null),ve,!!k&&i.a.createElement(U,{html:'<div id="nu-zephr-article-target-bottom-headercontainer"></div>'})),i.a.createElement(pt,null,i.a.createElement(ht,null,pe&&i.a.createElement(mt,null,i.a.createElement(ft,{ref:Z},"life-style"===de&&Array.isArray(xe)&&xe.length>0?i.a.createElement(h.ArticleSidebar,{pageLink:"".concat(ye,"/puzzles"),sectionTitle:"Puzzles",data:xe.map(e=>({title:e.name,url:"polygon"===e.type?Oe:e.link||"".concat(ye,"/puzzles/").concat(e.type),imgUrl:e.image}))}):i.a.createElement(h.QuizleSidebar,{pageLink:"".concat(ye,"/quizle"),sectionTitle:"Today's Quizle"}))),i.a.createElement(gt,{showMargin:pe},!!k&&i.a.createElement(U,{html:'<div id="nu-zephr-article-target-top-bodycontainer"></div>'}),he,fe&&i.a.createElement(y.a,{state:y.a.showLiveUpdateButton},i.a.createElement(ut,{"data-testid":"Update button container"},i.a.createElement(h.UpdateButtonWithDelay,{delay:8e3,update:!0,display:!0,label:"New update",handleClick:()=>(e=>{e.scroll({left:0,top:0}),e.location.reload(!0)})(window),updatedTime:n.publishedTime,articleId:n.id}))),i.a.createElement(Ut,{id:"paywall-portal-article-footer",componentName:"subscribe-cta"},!!k&&i.a.createElement(U,{html:'<div id="nu-zephr-article-target-paywall"></div>'})))),!S&&i.a.createElement(p.a,{rootMargin:Object(g.spacing)(40),threshold:0},e=>{let n=e.observed,r=e.registerNode;return i.a.createElement(s.a,{analyticsStream:t,articleId:I,articleHeadline:D,articleUrl:se,section:z,publishedTime:V,savingEnabled:W,sharingEnabled:H,commentsEnabled:_,registerNode:r,relatedArticleSlice:L,categorisedArticles:ae,relatedArticlesVisible:!!n.get("related-articles"),commentingConfig:f,topics:q,breadcrumbs:re,domainSpecificUrl:ye,isWebPFormatActive:ce,isExcludedFromAdsPathFromServer:le})}),!!k&&i.a.createElement(U,{html:'<div id="nu-zephr-article-target-bottom-bodycontainer"></div>'})),!!k&&i.a.createElement(U,{html:'<div id="nu-zephr-article-target-bottom-maincontainer"></div>'}))),l&&i.a.createElement(l,null),i.a.createElement(c.AdContainer,{slotName:"pixel"}),i.a.createElement(c.AdContainer,{slotName:"pixelteads"}),i.a.createElement(c.AdContainer,{slotName:"pixelskin"}))))};kn.defaultProps={adConfig:{},data:{content:[]},Header:()=>null,receiveChildList:()=>{},swgProductId:null,zephrDivs:!1};t.default=(e=>Object(f.withTrackingContext)(e,{getAttrs:e=>{let t=e.data,n=e.pageSection,r=e.navigationMode,i=e.referralUrl,a=void 0===i?"":i,o="",c=!1;const l=t.expirableFlags;if(window&&window.__TIMES_ACCESS_AND_IDENTITY__&&window.__TIMES_ACCESS_AND_IDENTITY__.hasAccess&&(c=!0),r){const e=r.isMyArticles,t=r.isPastSixDays;o=e?"my articles":t?"past 6 days":"current edition"}return{articleId:Ye()(t,"id",""),article_topic_tags:t.topics?t.topics.map(e=>e.name):[],isLocked:c?"unlocked":"locked",bylines:Ye()(t,"bylines[0].byline[0].children[0].attributes.value",""),headline:Ye()(t,"headline",""),label:Ye()(t,"label",""),pageName:"".concat(Ye()(t,"slug",""),"-").concat(Ye()(t,"shortIdentifier","")),edition_type:o,publishedTime:Ye()(t,"publishedTime",""),parent_site:Ye()(t,"publicationName",""),referralUrl:a,section:n||Ye()(t,"section",""),template:Ye()(t,"template","Default"),registrationType:Ze(),customerType:Xe(),shared:et(),article_flag:nt(l)?nt(l):"no flag",article_template_name:tt(l)?"live template":"standard template"}},trackingObjectName:"Article"}))(Object(f.withTrackScrollDepth)(e=>i.a.createElement(h.SocialEmbedsProvider,null,i.a.createElement(kn,e))))}]);
|