news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
/*! For license information please see frontend.js.LICENSE.txt */ !function(){var e={155:function(){const e=e=>{if(!/^https?:\/\//.test(e.href))return!1;return new URL(e.href).hostname.replace(/^www\./,"")!==new URL(window.location.origin).hostname.replace(/^www\./,"")};document.addEventListener("DOMContentLoaded",()=>{window.dataLayer=window.dataLayer||[];const t={".recurrent-newsletter-block .newsletter-content":"Inline",".footer .footer-newsletter-wrapper":"Footer"};window.addEventListener("scroll",()=>{setTimeout(()=>{Object.entries(t).forEach(([e,t])=>{const n=document.querySelector(`${e}:not([data-layer-pushed])`);n&&(e=>{const{top:t,left:n,bottom:o,right:r}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:a}=window;return t>=0&&n>=0&&o<=i&&r<=a})(n)&&(window.dataLayer.push({event:"newsletter_impression",position:t}),n.setAttribute("data-layer-pushed","1"))})},0)});document.body.classList.contains("search-results")&&window.dataLayer.push({event:"search",search_term:document.querySelector("main .search-form input[name=s]").value});const n=document.querySelectorAll("a");n.length>0&&n.forEach(t=>{if(e(t)){const e=e=>{"auxclick"===e.type&&1!==e.button||setTimeout(()=>{const n=t.closest(".product-table-item"),o=t.closest(".acf-product-card-block"),r=null!==n,i=null!==o;let a="",s=e.target.parentNode.textContent.trim();r&&(a=n.querySelector(".product-item-award")?.textContent?.trim()||"",s=n.querySelector(".product-item-name")?.textContent?.trim()||""),i&&(a=o.querySelector(".product-item-award")?.textContent?.trim()||"",s=o.querySelector(".product-title")?.textContent?.trim()||"",s||(s=o.previousElementSibling?.textContent?.trim()||""));const c=t.getAttribute("data-am-tid"),l=e.target.textContent.trim(),u=t.getAttribute("href"),d=t.getAttribute("data-orig-url"),m=u.replace(/^(?:https?:\/\/)?(?:www\.)?([^:/\n?]+).*$/,"$1"),f=t.getAttribute("data-ml-id"),p=c?"Affiliate link click":"",h=a?`${a}: ${s}`:s,g="img"===e.target.tagName.toLowerCase()?"Image click":`${e.target.textContent.trim()} click`;let y=null;try{if("function"===typeof window.nab?.session){const e=window.nab.session();void 0!==e?.alternative&&e?.numOfAlternatives>0&&(y=e.alternative%e.numOfAlternatives)}}catch(e){console.warn("Failed to get Nelio variant:",e)}window.dataLayer.push({event:"outbound_click",xid:c,cta:l,href:u,data_original_url:d,content_domain:m,content_location:g,content_position:f,content_type:p,content_name:h,content_id:h,content_link:u,nelio_variant:y})},0)};t.addEventListener("click",e),t.addEventListener("auxclick",e)}});const o=document.querySelectorAll("a");o.length>0&&o.forEach(t=>{if(!e(t)){const e=e=>{"auxclick"===e.type&&1!==e.button||setTimeout(()=>{let e="Content link",n=t.textContent.trim();const o=t.querySelector("img"),r=t.closest("li.menu-item"),i=t.closest(".article-byline .byline-segment"),a=t.closest(".author-name-title"),s=t.closest(".author-expert"),c=t.closest(".recurrent-homepage-hero-featured-title-block")||t.closest(".recurrent-homepage-half-full-bleed-hero-block"),l=t.closest("li.recurrent-homepage-commerce-item"),u=t.classList.contains("card-post-title-link")||t.closest(".card-featured-post"),d=t.classList.contains("category-card-button")||t.classList.contains("category-heading-link"),m=t.closest("#incCategory .tag-list .tag-list-item"),f=t.classList.contains("breadcrumb-link"),p=t.classList.contains("smart-linkpacks-see-more-link"),h=t.closest(".pagination");t.querySelectorAll("*").forEach(e=>{e.textContent.trim()&&(n=e.textContent.trim())}),n?r?r.closest("header")?e="Nav link":r.closest("footer")&&(e="Footer link"):i?e="Author link":a?e="Author widget link":s?e="Author expert link":u?e=t.closest("section.recurrent-smart-linkpacks")?"Smart linkpacks link":"Article link":c?e="Featured article link":l?e="Commerce article link":d?e="Category link":m?e="Sub nav link":f?e="Breadcrumb link":p?e="Smart linkpacks read more link":h&&(e="Pagination link"):o&&(o.classList.contains("archive-post-thumb")?(e="Article link",o.classList.contains("recurrent-homepage-hero-featured-image-block")?e="Featured article link":t.closest("section.recurrent-smart-linkpacks")&&(e="Smart linkpacks link"),n="Article-thumbnail"):l?(e="Commerce article link",n="Article-thumbnail"):u?(e="Article link",n="Article-thumbnail"):s&&(e="Author expert link",n="Author photo")),e&&n&&window.dataLayer.push({event:"select_content",select_type:e,select_name:n,select_link:t.href})},0)};t.addEventListener("click",e),t.addEventListener("auxclick",e)}});const r=document.querySelector(".promo-stripe-link");if(r){const e=e=>{"auxclick"===e.type&&1!==e.button||setTimeout(()=>{const e=r.getAttribute("href"),t=r.textContent.trim();window.dataLayer.push({event:"promo_stripe_click",promo_text:t,promo_link:e})},0)};r.addEventListener("click",e),r.addEventListener("auxclick",e)}const i=document.querySelector(".content-widget-cta-button");if(i){const e=e=>{"auxclick"===e.type&&1!==e.button||setTimeout(()=>{const e=i.getAttribute("href"),t=i.textContent.trim();window.dataLayer.push({event:"content_widget_click",content_widget_text:t,content_widget_link:e})},0)};i.addEventListener("click",e),i.addEventListener("auxclick",e)}})},2674:function(){function e(e){if(!e.classList.contains("twitter-loaded")){e.classList.add("twitter-loaded");const n=document.createElement("div");n.className="twitter-tweet-container",e.parentNode.replaceChild(n,e),"undefined"===typeof window.twttr?(t="https://platform.twitter.com/widgets.js",new Promise((e,n)=>{const o=document.createElement("script");o.src=t,o.async=!0,o.onload=e,o.onerror=n,document.body.appendChild(o)})).then(()=>{window.twttr.widgets.createTweet(e.getAttribute("data-tweet-id"),n)}).catch(e=>{console.error("Failed to load Twitter widget script",e)}):window.twttr.widgets.createTweet(e.getAttribute("data-tweet-id"),n)}var t}document.addEventListener("DOMContentLoaded",function(){const t=document.querySelectorAll(".lazy-twitter-tweet");if("IntersectionObserver"in window){const n=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&setTimeout(()=>{e(t.target),n.unobserve(t.target)},0)})},{rootMargin:"0px 0px 200px 0px"});t.forEach(e=>n.observe(e))}else t.forEach(t=>e(t)),t.forEach(t=>setTimeout(()=>{e(t)},0))})},9321:function(){document.addEventListener("DOMContentLoaded",function(){const e=document.querySelectorAll(".wp-block-embed:not(.wp-block-embed-youtube):not(.wp-block-embed-spotify)");0!==e.length&&e.forEach(e=>{const t=()=>{const t=!!e.querySelector("iframe");return e.classList.toggle("embed-loaded",t),t};if(t())return;const n=new MutationObserver(()=>{t()&&n.disconnect()});n.observe(e,{childList:!0,subtree:!0})})})}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}!function(){"use strict";n(155);const{entries:e,setPrototypeOf:t,isFrozen:o,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:a,seal:s,create:c}=Object,{apply:l,construct:u}="undefined"!==typeof Reflect&&Reflect;a||(a=function(e){return e}),s||(s=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),u||(u=function(e,t){return new e(...t)});const d=k(Array.prototype.forEach),m=k(Array.prototype.lastIndexOf),f=k(Array.prototype.pop),p=k(Array.prototype.push),h=k(Array.prototype.splice),g=k(String.prototype.toLowerCase),y=k(String.prototype.toString),w=k(String.prototype.match),b=k(String.prototype.replace),E=k(String.prototype.indexOf),v=k(String.prototype.trim),A=k(Object.prototype.hasOwnProperty),T=k(RegExp.prototype.test),_=(S=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:g;t&&t(e,null);let i=n.length;for(;i--;){let t=n[i];if("string"===typeof t){const e=r(t);e!==t&&(o(n)||(n[i]=e),t=e)}e[t]=!0}return e}function N(e){for(let t=0;t/gm),W=s(/\$\{[\w\W]*/gm),G=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y=s(/^aria-[\-\w]+$/),$=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=s(/^(?:\w+script|data):/i),K=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V=s(/^html$/i),Z=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var J=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:Z,DATA_ATTR:G,DOCTYPE_NAME:V,ERB_EXPR:B,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:X,MUSTACHE_EXPR:q,TMPLIT_EXPR:W});const Q=1,ee=3,te=7,ne=8,oe=9,re=function(){return"undefined"===typeof window?null:window};var ie=function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re();const o=e=>t(e);if(o.version="3.2.6",o.removed=[],!n||!n.document||n.document.nodeType!==oe||!n.Element)return o.isSupported=!1,o;let{document:r}=n;const i=r,s=i.currentScript,{DocumentFragment:l,HTMLTemplateElement:u,Node:S,Element:k,NodeFilter:N,NamedNodeMap:q=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:B,DOMParser:W,trustedTypes:G}=n,Y=k.prototype,X=O(Y,"cloneNode"),K=O(Y,"remove"),Z=O(Y,"nextSibling"),ie=O(Y,"childNodes"),ae=O(Y,"parentNode");if("function"===typeof u){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let se,ce="";const{implementation:le,createNodeIterator:ue,createDocumentFragment:de,getElementsByTagName:me}=r,{importNode:fe}=i;let pe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"===typeof e&&"function"===typeof ae&&le&&void 0!==le.createHTMLDocument;const{MUSTACHE_EXPR:he,ERB_EXPR:ge,TMPLIT_EXPR:ye,DATA_ATTR:we,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:Ee,ATTR_WHITESPACE:ve,CUSTOM_ELEMENT:Ae}=J;let{IS_ALLOWED_URI:Te}=J,_e=null;const Se=x({},[...C,...R,...D,...M,...P]);let ke=null;const xe=x({},[...z,...H,...F,...j]);let Ne=Object.seal(c(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}})),Le=null,Oe=null,Ce=!0,Re=!0,De=!1,Ie=!0,Me=!1,Ue=!0,Pe=!1,ze=!1,He=!1,Fe=!1,je=!1,qe=!1,Be=!0,We=!1,Ge=!0,Ye=!1,$e={},Xe=null;const Ke=x({},["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"]);let Ve=null;const Ze=x({},["audio","video","img","source","image","track"]);let Je=null;const Qe=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let ot=nt,rt=!1,it=null;const at=x({},[et,tt,nt],y);let st=x({},["mi","mo","mn","ms","mtext"]),ct=x({},["annotation-xml"]);const lt=x({},["title","style","font","a","script"]);let ut=null;const dt=["application/xhtml+xml","text/html"];let mt=null,ft=null;const pt=r.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ft||ft!==e){if(e&&"object"===typeof e||(e={}),e=L(e),ut=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===ut?y:g,_e=A(e,"ALLOWED_TAGS")?x({},e.ALLOWED_TAGS,mt):Se,ke=A(e,"ALLOWED_ATTR")?x({},e.ALLOWED_ATTR,mt):xe,it=A(e,"ALLOWED_NAMESPACES")?x({},e.ALLOWED_NAMESPACES,y):at,Je=A(e,"ADD_URI_SAFE_ATTR")?x(L(Qe),e.ADD_URI_SAFE_ATTR,mt):Qe,Ve=A(e,"ADD_DATA_URI_TAGS")?x(L(Ze),e.ADD_DATA_URI_TAGS,mt):Ze,Xe=A(e,"FORBID_CONTENTS")?x({},e.FORBID_CONTENTS,mt):Ke,Le=A(e,"FORBID_TAGS")?x({},e.FORBID_TAGS,mt):L({}),Oe=A(e,"FORBID_ATTR")?x({},e.FORBID_ATTR,mt):L({}),$e=!!A(e,"USE_PROFILES")&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Me=e.SAFE_FOR_TEMPLATES||!1,Ue=!1!==e.SAFE_FOR_XML,Pe=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,qe=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,Be=!1!==e.SANITIZE_DOM,We=e.SANITIZE_NAMED_PROPS||!1,Ge=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||$,ot=e.NAMESPACE||nt,st=e.MATHML_TEXT_INTEGRATION_POINTS||st,ct=e.HTML_INTEGRATION_POINTS||ct,Ne=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ne.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ht(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ne.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ne.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(Re=!1),je&&(Fe=!0),$e&&(_e=x({},P),ke=[],!0===$e.html&&(x(_e,C),x(ke,z)),!0===$e.svg&&(x(_e,R),x(ke,H),x(ke,j)),!0===$e.svgFilters&&(x(_e,D),x(ke,H),x(ke,j)),!0===$e.mathMl&&(x(_e,M),x(ke,F),x(ke,j))),e.ADD_TAGS&&(_e===Se&&(_e=L(_e)),x(_e,e.ADD_TAGS,mt)),e.ADD_ATTR&&(ke===xe&&(ke=L(ke)),x(ke,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&x(Je,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Xe===Ke&&(Xe=L(Xe)),x(Xe,e.FORBID_CONTENTS,mt)),Ge&&(_e["#text"]=!0),Pe&&x(_e,["html","head","body"]),_e.table&&(x(_e,["tbody"]),delete Le.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');se=e.TRUSTED_TYPES_POLICY,ce=se.createHTML("")}else void 0===se&&(se=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(G,s)),null!==se&&"string"===typeof ce&&(ce=se.createHTML(""));a&&a(e),ft=e}},yt=x({},[...R,...D,...I]),wt=x({},[...M,...U]),bt=function(e){p(o.removed,{element:e});try{ae(e).removeChild(e)}catch(t){K(e)}},Et=function(e,t){try{p(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Fe||je)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){let t=null,n=null;if(He)e=""+e;else{const t=w(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ut&&ot===nt&&(e=''+e+"");const o=se?se.createHTML(e):e;if(ot===nt)try{t=(new W).parseFromString(o,ut)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(ot,"template",null);try{t.documentElement.innerHTML=rt?ce:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ot===nt?me.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:i},At=function(e){return ue.call(e.ownerDocument||e,e,N.SHOW_ELEMENT|N.SHOW_COMMENT|N.SHOW_TEXT|N.SHOW_PROCESSING_INSTRUCTION|N.SHOW_CDATA_SECTION,null)},Tt=function(e){return e instanceof B&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof q)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},_t=function(e){return"function"===typeof S&&e instanceof S};function St(e,t,n){d(e,e=>{e.call(o,t,n,ft)})}const kt=function(e){let t=null;if(St(pe.beforeSanitizeElements,e,null),Tt(e))return bt(e),!0;const n=mt(e.nodeName);if(St(pe.uponSanitizeElement,e,{tagName:n,allowedTags:_e}),Ue&&e.hasChildNodes()&&!_t(e.firstElementChild)&&T(/<[/\w!]/g,e.innerHTML)&&T(/<[/\w!]/g,e.textContent))return bt(e),!0;if(e.nodeType===te)return bt(e),!0;if(Ue&&e.nodeType===ne&&T(/<[/\w]/g,e.data))return bt(e),!0;if(!_e[n]||Le[n]){if(!Le[n]&&Nt(n)){if(Ne.tagNameCheck instanceof RegExp&&T(Ne.tagNameCheck,n))return!1;if(Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(n))return!1}if(Ge&&!Xe[n]){const t=ae(e)||e.parentNode,n=ie(e)||e.childNodes;if(n&&t){for(let o=n.length-1;o>=0;--o){const r=X(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,Z(e))}}}return bt(e),!0}return e instanceof k&&!function(e){let t=ae(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});const n=g(e.tagName),o=g(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===o||st[o]):Boolean(yt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&ct[o]:Boolean(wt[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!ct[o])&&!(t.namespaceURI===et&&!st[o])&&!wt[n]&&(lt[n]||!yt[n]):!("application/xhtml+xml"!==ut||!it[e.namespaceURI]))}(e)?(bt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!T(/<\/no(script|embed|frames)/i,e.innerHTML)?(Me&&e.nodeType===ee&&(t=e.textContent,d([he,ge,ye],e=>{t=b(t,e," ")}),e.textContent!==t&&(p(o.removed,{element:e.cloneNode()}),e.textContent=t)),St(pe.afterSanitizeElements,e,null),!1):(bt(e),!0)},xt=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in r||n in pt))return!1;if(Re&&!Oe[t]&&T(we,t));else if(Ce&&T(be,t));else if(!ke[t]||Oe[t]){if(!(Nt(e)&&(Ne.tagNameCheck instanceof RegExp&&T(Ne.tagNameCheck,e)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(e))&&(Ne.attributeNameCheck instanceof RegExp&&T(Ne.attributeNameCheck,t)||Ne.attributeNameCheck instanceof Function&&Ne.attributeNameCheck(t))||"is"===t&&Ne.allowCustomizedBuiltInElements&&(Ne.tagNameCheck instanceof RegExp&&T(Ne.tagNameCheck,n)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(n))))return!1}else if(Je[t]);else if(T(Te,b(n,ve,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Ve[e]){if(De&&!T(Ee,b(n,ve,"")));else if(n)return!1}else;return!0},Nt=function(e){return"annotation-xml"!==e&&w(e,Ae)},Lt=function(e){St(pe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Tt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:s,value:c}=i,l=mt(a),u=c;let m="value"===a?u:v(u);if(n.attrName=l,n.attrValue=m,n.keepAttr=!0,n.forceKeepAttr=void 0,St(pe.uponSanitizeAttribute,e,n),m=n.attrValue,!We||"id"!==l&&"name"!==l||(Et(a,e),m="user-content-"+m),Ue&&T(/((--!?|])>)|<\/(style|title)/i,m)){Et(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Et(a,e);continue}if(!Ie&&T(/\/>/i,m)){Et(a,e);continue}Me&&d([he,ge,ye],e=>{m=b(m,e," ")});const p=mt(e.nodeName);if(xt(p,l,m)){if(se&&"object"===typeof G&&"function"===typeof G.getAttributeType)if(s);else switch(G.getAttributeType(p,l)){case"TrustedHTML":m=se.createHTML(m);break;case"TrustedScriptURL":m=se.createScriptURL(m)}if(m!==u)try{s?e.setAttributeNS(s,a,m):e.setAttribute(a,m),Tt(e)?bt(e):f(o.removed)}catch(t){Et(a,e)}}else Et(a,e)}St(pe.afterSanitizeAttributes,e,null)},Ot=function e(t){let n=null;const o=At(t);for(St(pe.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)St(pe.uponSanitizeShadowNode,n,null),kt(n),Lt(n),n.content instanceof l&&e(n.content);St(pe.afterSanitizeShadowDOM,t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,a=null,s=null;if(rt=!e,rt&&(e="\x3c!--\x3e"),"string"!==typeof e&&!_t(e)){if("function"!==typeof e.toString)throw _("toString is not a function");if("string"!==typeof(e=e.toString()))throw _("dirty is not a string, aborting")}if(!o.isSupported)return e;if(ze||gt(t),o.removed=[],"string"===typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=mt(e.nodeName);if(!_e[t]||Le[t])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof S)n=vt("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===Q&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Fe&&!Me&&!Pe&&-1===e.indexOf("<"))return se&&qe?se.createHTML(e):e;if(n=vt(e),!n)return Fe?null:qe?ce:""}n&&He&&bt(n.firstChild);const c=At(Ye?e:n);for(;a=c.nextNode();)kt(a),Lt(a),a.content instanceof l&&Ot(a.content);if(Ye)return e;if(Fe){if(je)for(s=de.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(ke.shadowroot||ke.shadowrootmode)&&(s=fe.call(i,s,!0)),s}let u=Pe?n.outerHTML:n.innerHTML;return Pe&&_e["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&T(V,n.ownerDocument.doctype.name)&&(u="\n"+u),Me&&d([he,ge,ye],e=>{u=b(u,e," ")}),se&&qe?se.createHTML(u):u},o.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ze=!0},o.clearConfig=function(){ft=null,ze=!1},o.isValidAttribute=function(e,t,n){ft||gt({});const o=mt(e),r=mt(t);return xt(o,r,n)},o.addHook=function(e,t){"function"===typeof t&&p(pe[e],t)},o.removeHook=function(e,t){if(void 0!==t){const n=m(pe[e],t);return-1===n?void 0:h(pe[e],n,1)[0]}return f(pe[e])},o.removeHooks=function(e){pe[e]=[]},o.removeAllHooks=function(){pe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}();const ae=document.querySelectorAll(".lazied-youtube-frame");if(ae.length>0&&!document.querySelector('script[src="https://www.youtube.com/iframe_api"]')){const e=document.createElement("script");e.src="https://www.youtube.com/iframe_api",e.async=!0,e.defer=!0,document.head.appendChild(e)}const se=e=>{const t=e.closest(".lazied-youtube-frame");return t?{videoId:t?.getAttribute("data-video-id")||"",startTime:t?.getAttribute("data-start-time")||"0",classes:t?.getAttribute("data-iframe-classes")||""}:{}};for(const e of ae)e.addEventListener("click",t=>{t.preventDefault(),setTimeout(()=>{const{videoId:n,startTime:o,classes:r}=se(t.target),i=document.createElement("iframe");i.setAttribute("allowfullscreen",1),i.setAttribute("class",`lazied-youtube-frame ${r}`);let a=`https://www.youtube.com/embed/${n}?feature=oembed&rel=0&enablejsapi=1&autoplay=1`;o&&parseInt(o,10)>0&&(a+=`&start=${o}`),i.setAttribute("src",a),i.setAttribute("allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"),e.outerHTML=ie.sanitize(i.outerHTML,{ALLOWED_TAGS:["iframe"],ALLOWED_ATTR:["allowfullscreen","allow","src","class"]})},0)});n(2674);function ce(e){return null!=e&&e===e.window}function le(e,t){if(void 0===t&&(t=null),e instanceof HTMLElement||e instanceof Node||ce(e))return[e];if(e instanceof NodeList)return[].slice.call(e);if("string"===typeof e){var n=t?le(t)[0]:document;return[].slice.call(n.querySelectorAll(e))}return[]}function ue(e,t){if(Array.isArray(e))return e.forEach(function(e){return ue(e,t)});var n=le(e);if(n.length){var o=[].concat(t);return n.forEach(function(e){o.forEach(function(t){e.classList.add(t)})}),n}}function de(e,t,n,o){if(Array.isArray(e))e.forEach(function(e){return de(e,t,n,o)});else{var r={};"boolean"===typeof o?r.capture=o:"object"===typeof o&&(r=Object.assign({},o));var i={cb:n,options:r};window._domassistevents||(window._domassistevents={}),window._domassistevents["_"+t]=i;var a=le(e);a.length&&a.forEach(function(e){e.addEventListener(t,n,r)})}}function me(e,t){var n=Element.prototype,o=!1;if(["matches","matchesSelector","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].forEach(function(e){n.hasOwnProperty(e)&&n[e]}),o)return e?o.call(e,t):null}function fe(e,t){do{if(me(e,t))return e;e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function pe(e,t){var n=le(e,t);return n.length?n[0]:null}var he=function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n},ge=!1;function ye(e,t){Array.isArray(e)&&e.forEach(function(e){return ye(e,t)}),window._domassistevents||(window._domassistevents={});var n=window._domassistevents["_"+t];if(n){var o=le(e);o.length&&o.forEach(function(e){e.removeEventListener(t,n.cb,n.options)})}}var we,be=null;function Ee(e,t){if(Array.isArray(e))return e.forEach(function(e){return Ee(e,t)});var n=le(e);if(n.length){var o=[].concat(t);return n.forEach(function(e){o.forEach(function(t){e.classList.remove(t)})}),n}}var ve;function Ae(e,t){Array.isArray(e)&&e.forEach(function(e){return Ae(e,t)});var n=le(e);n.length&&n.forEach(function(e){Object.keys(t).forEach(function(n){e.style[n]=t[n]})})}function Te(e,t){Array.isArray(e)&&e.forEach(function(e){return Te(e,t)});var n=le(e);if(n.length)for(var o=n.length,r=0;re.json()).then(e=>{this.el.innerText=e?.messages_count?.[`${t}`]||0}).catch(e=>{console.error("Error fetching comment count",e)})}});n(9321)}()}();