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