(()=>{"use strict";var t={1682:(t,n,r)=>{r.p="localhost"===window.location.hostname?"/assets/":"".concat(window.guardian.app.data.CAPI.config.frontendAssetsFullURL,"assets/")}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.p="",(()=>{r(1682);var t,n;t=function(){return".atom__iframe",t=[].slice.call(document.querySelectorAll(".atom__iframe")),window.addEventListener("message",(function(n){var r=t.find((function(t){try{return t.name===n.source.name}catch(t){return!1}}));if(r)try{var e=JSON.parse(n.data);switch(e.type){case"set-height":r.height=e.value}}catch(t){}})),t.forEach((function(t){var n=(t.getAttribute("srcdoc")||"").replace(/<gu-script>/g,"<script>").replace(/<\/gu-script>/g,"<\/script>");t.setAttribute("srcdoc",n)})),Promise.resolve();var t},n=function(){!function(t,n){var r=function(t){var n=window.performance,r="".concat(t,"-start"),e="".concat(t,"-end");return n?{start:function(){n.mark(r)},end:function(){n.mark(e),n.measure(t,r,e),console.log(JSON.stringify(n.getEntriesByName(t)));var a=n.getEntriesByName(t,"measure"),o=a&&a[0]&&a[0].duration||0;return Math.round(o)},clear:function(){n.clearMarks(r)}}:{start:function(){},end:function(){return 0},clear:function(){}}}(t),e=r.start,a=r.end;e(),n().then((function(){a()})).catch((function(){a()}))}("atomIframe",t.bind(null,null))},window.guardian.mustardCut||window.guardian.polyfilled?n():window.guardian.queue.push(n)})()})();
//# sourceMappingURL=atomIframe.legacy.dc07871168267bf8610a.js.map