1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[913],{30153:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bpage-preview/[preview]",function(){return t(2331)}])},2331:function(e,n,t){"use strict";t.r(n),t.d(n,{Page:function(){return W},default:function(){return K}});var r=t(94776),i=t.n(r),a=t(52322),u=t(2784),o=t(32527),c=t(41332),l=t(13607),s=t(32966),f=function(e){var n=e.children;return(0,a.jsx)(s.Z.Provider,{value:{experiments:{loaded:!0,stale:!1,declared:{"PAR-where-to-watch-release":{}},eligible:{"PAR-where-to-watch-release":{}},returned:{"PAR-where-to-watch-release":{value:"on"}}},getFeatureFlagValue:function(){return!1},getFeatureFlagPayload:function(){return!1},getExperimentValue:function(){return"control"}},children:n})},d=t(9772),b=function(e){var n=e.children;return(0,a.jsx)(d.$.Provider,{value:{status:"loading"},children:n})},h=t(53365),g=t(36001),p=function(e){var n=e.children;return(0,a.jsx)(g.Z.Provider,{value:{notify:function(){},observeArticleBottom:function(){}},children:n})},v=t(31066),m=t(43469),y=t(74809),w=t(63871),z=t(36491),x=t(27374),_=t(85361),j=t.n(_),A=(t(37594),"buzzPreview__n6E2Q");function P(e,n,t,r){var i=e.parentNode;e.setAttribute("title",n);var a=document.createElement("span");a.innerHTML=n,a.className="alt-text-display",a.setAttribute("style","width: ".concat(t,"px; height: ").concat(r,"px; top: 0px; left: 0px")),e.nextSibling&&"alt-text-display"===e.nextSibling.className&&i.removeChild(e.nextSibling),e.nextSibling?i.insertBefore(a,e.nextSibling):i.appendChild(a)}function E(e){var n=e.nodeName.toLowerCase();"img"===n&&function(e){var n=e.getAttribute("alt");n&&(e.complete?P(e,n,e.width,e.height):e.onload=function(){P(e,n,e.width,e.height)})}(e),"video"===n&&function(e){var n=e.getAttribute("aria-label").replace(/^GIF: /,"");n&&(e.readyState>=4?P(e,n,e.clientWidth,e.clientHeight):e.addEventListener("loadeddata",(function(){P(e,n,e.clientWidth,e.clientHeight)}),{once:!0}))}(e)}var O=t(42719),S=function(e){var n=e.children,t=function(){var e=(0,u.useRef)(null);return(0,u.useEffect)((function(){var n=e.current;n&&n.querySelectorAll("a[href]").forEach((function(e){e.setAttribute("target","_blank")}))})),e}(),r=function(){var e=(0,u.useRef)(null);return(0,u.useEffect)((function(){var n=e.current;return n&&window.location.search.includes("showalttext")?(Array.prototype.slice.call(n.querySelectorAll("\n figure.subbuzz__media img.subbuzz-picture,\n figure.subbuzz__media img.subbuzz__media-image,\n figure.subbuzz__media video.subbuzz__media-image\n ")).forEach((function(e){return E(e)})),Array.prototype.slice.call(n.querySelectorAll("figure.photo-set__media img.subbuzz__media-image, figure.photo-set__media video.subbuzz__media-image")).forEach((function(e){return E(e)})),function(){}):function(){}}),[e]),e}();return u.createElement("div",{ref:(0,O.Z)(t,r),className:A},n)},k=t(49277),N=t(76021),C=t(5103),Z=t(73385),I=t(30353);function R(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function q(e,n,t,r,i,a,u){try{var o=e[a](u),c=o.value}catch(l){return void t(l)}o.done?n(c):Promise.resolve(c).then(r,i)}function F(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){F(e,n,t[n])}))}return e}function L(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function D(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,a=[],u=!0,o=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);u=!0);}catch(c){o=!0,i=c}finally{try{u||null==t.return||t.return()}finally{if(o)throw i}}return a}}
1(e,n)||function(e,n){if(!e)return;if("string"===typeof e)return R(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return R(e,n)}(e,n)||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.")}()}var V,B=new Set(["preview_id","preview","signature","buzzId","view","google_nofetch","showalttext"]),H=(0,z.Z)((function(){return Promise.all([t.e(454),t.e(262)]).then(t.bind(t,85891))}),{ssr:!1}),M=(0,z.Z)((function(){return t.e(318).then(t.bind(t,66924))}),{ssr:!1});function W(e){var n=e.buzz,t=e.badges,r=e.subbuzzData,i=e.header,o=(0,u.useMemo)((function(){return[n,t,r]}),[n.id]),s=o[0],d=o[1],g=o[2],z=(0,x._)(s),_=(0,k.Z)("tracking"),A=_.consentValue,P=_.isConsentKnown,E=_.isConsentReady,O=(0,Z.s)(s,I.destinations[n.destination_name].base_url);return C.i18n.language!==n.language&&C.i18n.changeLanguage(n.language),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.E,{value:s,children:(0,a.jsx)(l.x,{value:{tracking:{consentValue:A,isConsentKnown:P,isConsentReady:E}},children:(0,a.jsx)(f,{children:(0,a.jsx)(w.n,{destination:s.destination_name,children:(0,a.jsx)(h.Z,{children:(0,a.jsx)(p,{children:(0,a.jsx)(b,{buzz:s,badges:d,children:(0,a.jsxs)(S,{children:[(0,a.jsx)(v.Z,T({},i)),z?(0,a.jsx)(y.Z,{buzz:s,badges:d}):(0,a.jsxs)(a.Fragment,{children:[s.isNews&&(0,a.jsx)("div",{className:"".concat(s.longform_custom_header?j().breakingBarWrapper:""," embed-breaking-bar"),children:(0,a.jsx)(M,{edition:s.country_code,track:O})}),(0,a.jsx)(m.Z,{buzz:s,subbuzzData:g,badges:d})]}),(0,a.jsx)(H,{buzz:s})]})})})})})})})}),(0,a.jsx)(N.z,{className:j().backToTop})]})}V=function(){var e,n=(e=i().mark((function e(n){var t,r,a,u,c,l,s,f,d,b,h,g,p,v,m,y;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.req,r=n.query,a={namespacesRequired:["common"]},u=r.preview_id,c=r.preview,l=r.signature,s=new URLSearchParams,Object.entries(r).forEach((function(e){var n=D(e,2),t=n[0],r=n[1];B.has(t)||(Array.isArray(r)?r.forEach((function(e){return s.append(t,e)})):void 0!==r&&s.append(t,r))})),f=s.toString(),d=f?"&".concat(f):"",e.next=9,(0,o.Io)("/preview/".concat(u,".json?buzzId=").concat(c,"&signature=").concat(l).concat(d),{req:t});case 9:if(b=e.sent,h=b.error,g=L(b,["error"]),!h){e.next=14;break}return e.abrupt("return",h);case 14:return p=g.buzz,v=g.badges,m=g.subbuzzes,y=g.header,e.abrupt("return",T({},a,{buzz:p,badges:v,header:y,subbuzzData:m}));case 16:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,i){var a=e.apply(n,t);function u(e){q(a,r,i,u,o,"next",e)}function o(e){q(a,r,i,u,o,"throw",e)}u(void 0)}))});return function(e){return n.apply(this,arguments)}}(),W.getInitialProps=V;var K=(0,C.withTranslation)("common")(W)},37594:function(){}},function(e){e.O(0,[242,995,774,888,179],(function(){return n=30153,e(e.s=n);var n}));var n=e.O();_N_E=n}]); 2//# sourceMappingURL=[preview]-0363b91c2e4f6373.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.