/*! * clipboard.js v2.0.0 * https://zenorocha.github.io/clipboard.js * * Licensed MIT © Zeno Rocha */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=3)}([function(t,e,n){var o,r,i;!function(a,c){r=[t,n(7)],o=c,void 0!==(i="function"==typeof o?o.apply(e,r):o)&&(t.exports=i)}(0,function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(t){return t&&t.__esModule?t:{default:t}}(e),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,o.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,o.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=a})},function(t,e,n){function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.fn(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return r(t,e,n);if(c.nodeList(t))return i(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function r(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function i(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return u(document.body,t,e,n)}var c=n(6),u=n(5);t.exports=o},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){r.off(t,o),e.apply(n,arguments)}var r=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;for(o;o0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,f.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return u("action",t)}},{key:"defaultTarget",value:function(t){var e=u("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return u("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}(s.default);t.exports=p})},function(t,e){function n(t,e){for(;t&&t.nodeType!==o;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var o=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}t.exports=n},function(t,e,n){function o(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function r(t,e,n,r,i){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return o(t,e,n,r,i)}))}function i(t,e,n,o){return function(n){n.delegateTarget=a(n.target,e),n.delegateTarget&&o.call(t,n)}}var a=n(4);t.exports=r},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e){function n(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}t.exports=n}])});; !function(e){var t={};function r(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(a,o,function(t){return e[t]}.bind(null,o));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/wp-content/themes/metro-parent/dist/",r(r.s=19)}({19:function(e,t,r){"use strict";r.r(t);var a=function(e,t){var r=e.getBoundingClientRect();return r.top<=0&&r.bottom>=(window.innerHeight||document.documentElement.clientHeight)||r.top>=0&&r.left>=0&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&r.right<=(window.innerWidth||document.documentElement.clientWidth)};metro.share={url:metro.share&&metro.share.url||"",pageTitle:"",init:function(){var e=window.location.href.split("?")[0];metro.share.url=e,metro.share.pageTitle=metro.pageData&&metro.pageData.title?metro.pageData.title.trim():"",metro.share.socialHeadline=metro.pageData&&metro.pageData.socialHeadline?metro.pageData.socialHeadline.trim():"";var t=document.querySelectorAll(".vjs-social-controls, .share-buttons");t.length>0&&t.forEach((function(e){return metro.share.initPageShareBtns(e)})),metro.share.initItemShareBtns();var r=document.querySelectorAll(".metro-portrait-video-carousel");r.length>0&&r.forEach((function(e){return e.addEventListener("click",(function(e){if(e.data={itemUrl:metro.share.url,imageUrl:metro.pageData.ogimageUrl,title:metro.share.pageTitle,mergeDescription:!0,description:metro.pageData.excerpt},e.target.closest('[name="facebook-share"]'))metro.share.shareItemToFacebook(e);else if(e.target.closest('[name="twitter-share"]'))metro.share.shareItemToTwitter(e);else if(e.target.closest('[name="mail-share"]')){var t="mailto:?subject="+encodeURIComponent(metro.share.pageTitle)+"&body=I%20found%20this%20on%20Metro.co.uk:%0D%0A%0D%0A"+encodeURIComponent(metro.share.url);window.location=t}}))}))},initPageShareBtns:function(e){var t=e.querySelector(".facebook"),r=e.querySelector(".messenger");t&&t.addEventListener("click",metro.share.oldSkoolFacebookShare),r&&r.addEventListener("click",metro.share.sharePageToMessenger)},initItemShareBtns:function(){document.querySelector("#pageBody").addEventListener("click",(function(e){if(e.target.matches(".share-item")||e.target.matches(".share-item *")){e.preventDefault();var t=e.target.matches(".share-item")?e.target:e.target.closest(".share-item"),r=t.closest(".shareable-item");if(r){var a,o,n,i,s=r.getAttribute("data-share-url");s?o=s:(a=r.querySelector(".item-share-url"))?o=a.textContent:(i=(n=r.querySelector(".anchor"))>0?n.getAtr("id"):r.getAttribute("id"),o=metro.share.getItemShareUrl(i));var c=metro.pageData.image;r.getAttribute("data-share-image")?c=r.getAttribute("data-share-image"):r.querySelector(".item-share-image")&&r.querySelector(".item-share-image").getAttribute("src")?c=r.querySelector(".item-share-image").getAttribute("src"):r.querySelector("img")&&r.getAttribute("src")&&(c=r.getAttribute("src"));var l=metro.pageData.socialHeadline;r.getAttribute("data-share-title")?l=r.getAttribute("data-share-title"):r.querySelector(".item-share-title")&&(l=r.querySelector(".item-share-title").textContent);var m=metro.pageData.excerpt;r.getAttribute("data-share-description")?m=r.getAttribute("data-share-title"):r.querySelector(".item-share-description")&&(m=r.querySelector(".item-share-description").textContent);var u={data:{itemUrl:o,imageUrl:c,title:l,description:m}};if(t.classList.contains("share-item-facebook"))return t.classList.contains("vjs-social-share-control")&&(u.data.itemUrl=metro.share.appendVideoITO(u.data.itemUrl,"facebook")),void metro.share.shareItemToFacebook(u);if(t.classList.contains("share-item-twitter"))return t.classList.contains("vjs-social-share-control")&&(u.data.itemUrl=metro.share.appendVideoITO(u.data.itemUrl,"twitter")),void metro.share.shareItemToTwitter(u);if(t.classList.contains("share-item-pinterest"))metro.share.shareItemToPinterest(u);else if(t.classList.contains("share-item-email")){var d="mailto:?subject="+encodeURIComponent(u.data.title)+"&body=I%20found%20this%20on%20Metro.co.uk:%0D%0A%0D%0A"+encodeURIComponent(u.data.itemUrl);window.location=d}}}}))},appendVideoITO:function(e,t){var r;if(metro.pageData&&(r=metro.pageData.deviceType),!r){var a=document.body.classList;r="desktop",a.contains("is-tablet")&&(r="tablet"),a.contains("is-mobile")&&(r="mobile")}return metro.pageData.videoSyndication&&(r=metro.pageData.videoSyndication),"".concat(e,"?ito=").concat(r,".video.share.").concat(t)},initShareBtn:function(e,t,r){var a=t.getAttribute("data-share-type"),o={};if(!a)return!1;o.itemUrl=r.itemUrl||metro.share.url,r.imageUrl&&(o.imageUrl=r.imageUrl),r.title&&(o.title=r.title),r.description&&(o.description=r.description,o.mergeDescription=!0),"facebook"===a?t.addEventListener("click",(function(e){e.data=o,metro.share.shareItemToFacebook(e)})):"twitter"===a&&t.addEventListener("click",(function(e){e.data=o,metro.share.shareItemToTwitter(e)}))},getItemShareUrl:function(e){return e=e?"#".concat(e):"","".concat(metro.share.url.split("#")[0]).concat(e)},shareItemToFacebook:function(e){if(e.preventDefault&&e.preventDefault(),"FB"in window){var t={"og:url":e.data.itemUrl||metro.share.url,"og:title":e.data.title};e.data.description&&(t["og:description"]=e.data.description),e.data.imageUrl?t["og:image"]=e.data.imageUrl:t["og:image"]=metro.pageData.ogimageUrl||"https://metro.co.uk/wp-content/themes/metro-parent/img/branding/metro.co.uk/m-black-share.png",FB.ui({method:"share_open_graph",action_type:"og.shares",action_properties:JSON.stringify({object:t})},metro.share.shareToFacebookCallback)}else metro.share.oldSkoolFacebookShare(e)},appendItemIto:function(e,t){var r="ito=".concat(t);return e.includes("#")||(e.includes("?")?e.includes("ito=")||(e="".concat(e,"&").concat(r)):e="".concat(e,"?").concat(r)),e},shareItemToPinterest:function(e){e.preventDefault&&e.preventDefault(),e.data=e.data?e.data:{},e.data.imageUrl=e.data.imageUrl?e.data.imageUrl:metro.pageData.image,e.data.description=e.data.description?e.data.description:metro.pageData.socialHeadline.replace(/&/g,"&").replace(" | Metro News","");var t=metro.share.appendItemIto(metro.share.url,"pinterest"),r="http://pinterest.com/pin/create/button/?url=".concat(encodeURIComponent(t),"&media=").concat(encodeURIComponent(e.data.imageUrl),"&description=").concat(encodeURIComponent(e.data.description));window.open(r,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600")},sharePageToTwitter:function(e){e.preventDefault&&e.preventDefault(),e.stopImmediatePropagation&&e.stopImmediatePropagation();var t=(e.currentTarget||e.target).getAttribute("href"),r=window.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600");metro.share.checkTwitterWinClose(r)},getTwitterHandle:function(){var e="MetroUK";return metro.pageData&&"sport"===metro.pageData.topCategory&&(e="Metro_Sport"),e},shareItemToTwitter:function(e){e.preventDefault&&e.preventDefault();var t=metro.share.getTwitterHandle(),r=e.data.title;e.data.mergeDescription&&(r="".concat(r," ").concat(e.data.description));var a="https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(e.data.itemUrl),"&text=").concat(encodeURIComponent(r),"&via=").concat(t),o=window.open(a,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600");metro.share.checkTwitterWinClose(o)},checkTwitterWinClose:function(e){var t=window.setInterval((function(){try{(null===e||e.closed)&&(window.clearInterval(t),metro.modal.maybeShow())}catch(e){}}),250)},shareToFacebookCallback:function(e){e&&!e.error_code&&metro.modal.maybeShow()},sharePageToMessenger:function(e){e.preventDefault&&e.preventDefault();var t=(e.currentTarget||e.target).getAttribute("href");window.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600")},oldSkoolFacebookShare:function(e){e.preventDefault&&e.preventDefault();var t=null;e.target.classList.contains("share-button")?t=e.target:e.target.closest(".share-button").length>0&&(t=e.target.closest(".share-button"));var r="https://facebook.com/sharer.php?u=http://metro.co.uk";e.data&&e.data.itemUrl?r="https://facebook.com/sharer.php?u=".concat(e.data.itemUrl):null!==t?r=t.getAttribute("href"):metro.pageData&&metro.pageData.socialUrls?r=metro.pageData.socialUrls.facebook:e.currentTarget&&e.currentTarget.href&&(r=e.currentTarget.href),metro.pageData&&"mobile"===metro.pageData.deviceType?window.open(r,"_blank","toolbar=0, location=0, menubar=0, directories=0, scrollbars=0"):window.open(r,"_blank","height=450, width=550, top="+(window.innerHeight/2-275)+", left="+(window.innerWidth/2-225)+", toolbar=0, location=0, menubar=0, directories=0, scrollbars=0")},checkFloaty:function(){var e,t;metro.floaty=metro.floaty||{};var r=metro.floaty;if(r.bottomShareButtons||(r.body=document.body,r.articleBody=document.querySelector(".single-article"),r.topShareButtons=document.querySelector(".share-buttons-top"),r.bottomShareButtons=document.querySelector(".share-buttons-bottom"),r.commentsArea=document.getElementById("metro-comments-area")),r.articleBody&&r.bottomShareButtons){var o=document.getElementById("share-buttons-floaty");o&&null!==(e=metro)&&void 0!==e&&null!==(t=e.multivariate)&&void 0!==t&&t.isActive("useTwitterFloaty")&&o.classList.add("share-buttons-floaty--use-twitter"),a(r.articleBody)&&r.body.classList.add("metro-show-floaty-share"),a(r.topShareButtons)||a(r.bottomShareButtons)?r.body.classList.add("metro-share-buttons-in-view"):r.body.classList.remove("metro-share-buttons-in-view"),r.commentsArea&&r.commentsArea.classList.contains("is-active")&&a(r.commentsArea)&&r.body.classList.remove("metro-show-floaty-share"),r.commentsArea&&!a(r.commentsArea)&&window.pageYOffset>r.commentsArea.offsetTop&&r.body.classList.add("metro-show-floaty-share")}},initShareButtonMenus:function(){document.querySelectorAll(".share-buttons-sub-toggle").forEach((function(e){e.addEventListener("click",(function(e){(e.currentTarget===e.target||e.target.matches(".icon-share-more")||e.target.matches(".share-buttons-sub-close"))&&(e.currentTarget.classList.contains("share-buttons-sub-open")?e.currentTarget.classList.remove("share-buttons-sub-open"):e.currentTarget.classList.add("share-buttons-sub-open"))}))})),metro.share.initCopyLinkShare()},initCopyLinkShare:function(){for(var e=document.querySelectorAll(".share-button.copy_link"),t=null,r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(c)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r40&&(n="e_trunc_".concat(i).substring(0,40))}n&&window.gtag("event",n,u(u(u({},t),metro.ga4props),{},{send_to:["G-NXG4EG54ZW"]}))}};function d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t&&(e.apply(void 0,arguments),r=n)}),{passive:!0})}),750)}]);; !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}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="/wp-content/themes/metro-parent/dist/",n(n.s=18)}({0:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=["facebook","twitter","whatsapp","email"],i=[{slug:"top",name:"top"},{slug:"bottom",name:"bottom"},{slug:"floaty",name:"floating"}],o=function(e,t,n){return{on:t,loc:e,videoId:"".concat(n)}},a=function(){document.addEventListener("DOMContentLoaded",(function(){"RTA"in window&&(i.forEach((function(e){r.forEach((function(t){var n=".share-buttons-".concat(e.slug," .").concat(t);document.querySelectorAll(n).forEach((function(n){n.addEventListener("click",(function(){window.RTA.tedEvent("share",function(e,t){return{on:t,loc:e}}(e.name,t))}))}))}))})),document.querySelectorAll(".vjs-video-container").forEach((function(e){var t=JSON.parse(e.querySelector("video").getAttribute("data-opts"));t&&t.videoId&&(e.querySelector(".share-item-facebook").addEventListener("click",(function(){window.RTA.tedEvent("share",o("video","facebook",t.videoId))})),e.querySelector(".share-item-twitter").addEventListener("click",(function(){window.RTA.tedEvent("share",o("video","twitter",t.videoId))})))})))}))}},1:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},18:function(e,t,n){"use strict";n.r(t);var r,i,o=n(1),a=n.n(o),c=n(2),l=n.n(c),s=window.metro||{};r=function(){function e(){var t=this;a()(this,e),this.listenersActive=!1,s.watcher&&s.watcher.watching?this.watching=s.watcher.watching:this.watching=[],this.viewportHeight=window.innerHeight,this.check=this.check.bind(this),this.resizeCheck=this.resizeCheck.bind(this),this.getPageOffset=this.getPageOffsetGenerator(),this.viewportHeight=window.innerHeight,document.addEventListener("DOMContentLoaded",(function(){t.watching.length>0&&setTimeout(t.check,250)})),window.addEventListener("load",(function(){t.watching.length>0&&t.check()}))}return l()(e,[{key:"watch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r={offset:n};e instanceof Element?r.el=e:(r.selector=e,r.el=document.querySelector(e)),t&&"function"==typeof t&&(r.callback=t),this.watching.push(r),this.addEventListeners()}},{key:"addEventListeners",value:function(){this.listenersActive||(window.addEventListener("scroll",this.scrollCheck,{passive:!0}),this.listenersActive=!0)}},{key:"removeEventListeners",value:function(){window.removeEventListener("scroll",s.watcher.scrollCheck,{passive:!0}),this.listenersActive=!1}},{key:"scrollCheck",value:function(){window.clearTimeout(s.watcher.check),s.watcher.check(),window.setTimeout(s.watcher.check,250)}},{key:"check",value:function(){if(!this.isChecking){this.isChecking=!0;for(var e=this.watching.length;e--;){var t=this.watching[e];this.isThisElementOnScreen(t.el,t.offset)&&(t.selector&&window.dispatchEvent(new CustomEvent("metro:onscreen:"+t.selector)),t.callback&&t.callback(),this.watching.splice(e,1))}0===this.watching.length&&this.removeEventListeners(),window.setTimeout(function(){this.isChecking=!1}.bind(this),250)}}},{key:"resizeCheck",value:function(){this.viewportHeight=window.innerHeight,this.check()}},{key:"isThisElementOnScreen",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;try{var n=e.getBoundingClientRect();if(0===n.width&&0===n.top&&0===n.left)return;return n.top0||this.pictures.length>0||this.gif2Mp4s.length>0||this.newsletterSignups.length>0)&&(this.lazyloadOffset=t.lazyloadOffset||400,setTimeout((function(){n.init()}),0))}return l()(e,[{key:"init",value:function(){this.watchEls()}},{key:"selectEls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"images",t=this.imageSelector,n=this.images;"pictures"===e&&(t=this.pictureSelector,n=this.pictures),"gif2Mp4s"===e&&(t=this.gif2Mp4Selector,n=this.gif2Mp4s),"newsletterSignups"===e&&(t=this.newsletterSignupSelector,n=this.newsletterSignups);var r=document.querySelectorAll(t);if(r.length>0){var i=Array.prototype.filter.call(r,(function(e){return!e.hasAttribute("data-loaded")}));this[e]=n.concat(i)}}},{key:"watchEls",value:function(){for(;this.images.length>0;){var e=this.images.splice(0,1);metro.watcher.watch(e[0],this.replaceImage.bind(this,e[0]),this.lazyloadOffset)}for(;this.pictures.length>0;){var t=this.pictures.splice(0,1);metro.watcher.watch(t[0],this.loadPicture.bind(this,t[0]),this.lazyloadOffset)}for(;this.gif2Mp4s.length>0;){var n=this.gif2Mp4s.splice(0,1);metro.watcher.watch(n[0],this.replaceImage.bind(this,n[0]),this.lazyloadOffset)}for(;this.newsletterSignups.length>0;){var r=this.newsletterSignups.splice(0,1);metro.watcher.watch(r[0],this.loadNewsletterSignup.bind(this,r[0]),this.lazyloadOffset)}metro.watcher.check()}},{key:"loadImages",value:function(){for(;this.images.length>0;){var e=this.images.splice(0,1);this.replaceImage(e[0])}for(;this.pictures.length>0;){var t=this.pictures.splice(0,1);this.loadPicture(t[0])}for(;this.gif2Mp4s.length>0;){var n=this.gif2Mp4s.splice(0,1);this.replaceImage(n[0])}}},{key:"push",value:function(e){this.images.push(e),this.init()}},{key:"isPlaceholder",value:function(e){return!e.getAttribute("data-loaded")}},{key:"replaceImage",value:function(e){this.isPlaceholder(e)&&(e.hasAttribute("data-src-with-srcset")?(e.srcset=e.getAttribute("data-srcset"),e.src=e.getAttribute("data-src-with-srcset")):e.src=e.getAttribute("data-src"),e.classList.add("lazy-loaded"),e.setAttribute("data-loaded",!0))}},{key:"loadPicture",value:function(e){if(void 0!==e&&this.isPlaceholder(e)){for(var t=[].slice.call(e.querySelectorAll("source[data-srcset]")),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),i=1;i/gm),q=d(/^data-[\-\w.\u00B7-\uFFFF]/),Y=d(/^aria-[\-\w]+$/),V=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=d(/^(?:\w+script|data):/i),$=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=d(/^html$/i),J=function(){return"undefined"==typeof window?null:window},Z=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null;n.currentScript&&n.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=n.currentScript.getAttribute("data-tt-policy-suffix"));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),r=function(e){return t(e)};if(r.version="2.3.10",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var o=n.document,a=n.document,c=n.DocumentFragment,l=n.HTMLTemplateElement,s=n.Node,u=n.Element,d=n.NodeFilter,m=n.NamedNodeMap,p=void 0===m?n.NamedNodeMap||n.MozNamedAttrMap:m,h=n.HTMLFormElement,g=n.DOMParser,y=n.trustedTypes,x=u.prototype,Q=M(x,"cloneNode"),ee=M(x,"nextSibling"),te=M(x,"childNodes"),ne=M(x,"parentNode");if("function"==typeof l){var re=a.createElement("template");re.content&&re.content.ownerDocument&&(a=re.content.ownerDocument)}var ie=Z(y,o),oe=ie?ie.createHTML(""):"",ae=a,ce=ae.implementation,le=ae.createNodeIterator,se=ae.createDocumentFragment,ue=ae.getElementsByTagName,fe=o.importNode,de={};try{de=L(a).documentMode?a.documentMode:{}}catch(e){}var me={};r.isSupported="function"==typeof ne&&ce&&void 0!==ce.createHTMLDocument&&9!==de;var pe,he,ge=G,ye=W,ve=q,we=Y,be=K,Ee=$,Te=V,ke=null,Ae=_({},[].concat(i(C),i(D),i(R),i(z),i(F))),Se=null,Ne=_({},[].concat(i(P),i(U),i(j),i(B))),Oe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,_e=null,Le=!0,Me=!0,Ce=!1,De=!1,Re=!1,Ie=!1,ze=!1,He=!1,Fe=!1,Pe=!1,Ue=!0,je=!0,Be=!1,Ge={},We=null,qe=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ye=null,Ve=_({},["audio","video","img","source","image","track"]),Ke=null,$e=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml",Qe=Ze,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,it=a.createElement("form"),ot=function(e){return e instanceof RegExp||e instanceof Function},at=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=L(t),pe=pe=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,he="application/xhtml+xml"===pe?function(e){return e}:E,ke="ALLOWED_TAGS"in t?_({},t.ALLOWED_TAGS,he):Ae,Se="ALLOWED_ATTR"in t?_({},t.ALLOWED_ATTR,he):Ne,Ke="ADD_URI_SAFE_ATTR"in t?_(L($e),t.ADD_URI_SAFE_ATTR,he):$e,Ye="ADD_DATA_URI_TAGS"in t?_(L(Ve),t.ADD_DATA_URI_TAGS,he):Ve,We="FORBID_CONTENTS"in t?_({},t.FORBID_CONTENTS,he):qe,xe="FORBID_TAGS"in t?_({},t.FORBID_TAGS,he):{},_e="FORBID_ATTR"in t?_({},t.FORBID_ATTR,he):{},Ge="USE_PROFILES"in t&&t.USE_PROFILES,Le=!1!==t.ALLOW_ARIA_ATTR,Me=!1!==t.ALLOW_DATA_ATTR,Ce=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=t.SAFE_FOR_TEMPLATES||!1,Re=t.WHOLE_DOCUMENT||!1,He=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Pe=t.RETURN_TRUSTED_TYPE||!1,ze=t.FORCE_BODY||!1,Ue=!1!==t.SANITIZE_DOM,je=!1!==t.KEEP_CONTENT,Be=t.IN_PLACE||!1,Te=t.ALLOWED_URI_REGEXP||Te,Qe=t.NAMESPACE||Ze,t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Oe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ot(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Oe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Oe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Me=!1),Fe&&(He=!0),Ge&&(ke=_({},i(F)),Se=[],!0===Ge.html&&(_(ke,C),_(Se,P)),!0===Ge.svg&&(_(ke,D),_(Se,U),_(Se,B)),!0===Ge.svgFilters&&(_(ke,R),_(Se,U),_(Se,B)),!0===Ge.mathMl&&(_(ke,z),_(Se,j),_(Se,B))),t.ADD_TAGS&&(ke===Ae&&(ke=L(ke)),_(ke,t.ADD_TAGS,he)),t.ADD_ATTR&&(Se===Ne&&(Se=L(Se)),_(Se,t.ADD_ATTR,he)),t.ADD_URI_SAFE_ATTR&&_(Ke,t.ADD_URI_SAFE_ATTR,he),t.FORBID_CONTENTS&&(We===qe&&(We=L(We)),_(We,t.FORBID_CONTENTS,he)),je&&(ke["#text"]=!0),Re&&_(ke,["html","head","body"]),ke.table&&(_(ke,["tbody"]),delete xe.tbody),f&&f(t),rt=t)},ct=_({},["mi","mo","mn","ms","mtext"]),lt=_({},["foreignobject","desc","title","annotation-xml"]),st=_({},["title","style","font","a","script"]),ut=_({},D);_(ut,R),_(ut,I);var ft=_({},z);_(ft,H);var dt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});var n=E(e.tagName),r=E(t.tagName);return e.namespaceURI===Je?t.namespaceURI===Ze?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===r||ct[r]):Boolean(ut[n]):e.namespaceURI===Xe?t.namespaceURI===Ze?"math"===n:t.namespaceURI===Je?"math"===n&<[r]:Boolean(ft[n]):e.namespaceURI===Ze&&!(t.namespaceURI===Je&&!lt[r])&&!(t.namespaceURI===Xe&&!ct[r])&&!ft[n]&&(st[n]||!ut[n])},mt=function(e){b(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},pt=function(e,t){try{b(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(He||Fe)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){var t,n;if(ze)e=""+e;else{var r=T(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===pe&&(e=''+e+"");var i=ie?ie.createHTML(e):e;if(Qe===Ze)try{t=(new g).parseFromString(i,pe)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?"":i}catch(e){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),Qe===Ze?ue.call(t,Re?"html":"body")[0]:Re?t.documentElement:o},gt=function(e){return le.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},yt=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},wt=function(e,t,n){me[e]&&v(me[e],(function(e){e.call(r,t,n,rt)}))},bt=function(e){var t;if(wt("beforeSanitizeElements",e,null),yt(e))return mt(e),!0;if(N(/[\u0080-\uFFFF]/,e.nodeName))return mt(e),!0;var n=he(e.nodeName);if(wt("uponSanitizeElement",e,{tagName:n,allowedTags:ke}),e.hasChildNodes()&&!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&N(/<[/\w]/g,e.innerHTML)&&N(/<[/\w]/g,e.textContent))return mt(e),!0;if("select"===n&&N(/