; /*! For license information please see frontend.js.LICENSE.txt */ !function(){var e={9224: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=document.querySelector(".recurrent-share");t&&t.querySelectorAll("a").forEach((e=>{e.addEventListener("click",(function(){const n=e.dataset.name??"",o=t.dataset.postId??"",r=t.dataset.contentType??"";window.dataLayer.push({event:"share",method:n,content_type:r,item_id:o})}))}));const n={".recurrent-newsletter-block .newsletter-content":"Inline",".footer .footer-newsletter-wrapper":"Footer"};window.addEventListener("scroll",(()=>{Object.entries(n).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"))}))}));document.body.classList.contains("search-results")&&window.dataLayer.push({event:"search",search_term:document.querySelector("main .search-form input[name=s]").value});const o=document.querySelectorAll(".entry-content a");o.length>0&&o.forEach((t=>{e(t)&&t.addEventListener("click",(e=>{const n=t.closest(".product-table-item"),o=t.closest(".acf-product-card-block"),r=null!==n,i=null!==o;let a="",l=e.target.parentNode.textContent.trim();r&&(a=n.querySelector(".product-item-award")?.textContent?.trim()||"",l=n.querySelector(".product-item-name")?.textContent?.trim()||""),i&&(a=o.querySelector(".product-item-award")?.textContent?.trim()||"",l=o.querySelector(".product-item-title")?.textContent?.trim()||"",l||(l=o.previousElementSibling.textContent.trim()||""));const c=t.getAttribute("data-xid"),s=e.target.textContent.trim(),u=t.getAttribute("href"),m=t.getAttribute("data-orig-url"),d=u.replace(/^(?:https?:\/\/)?(?:www\.)?([^:/\n?]+).*$/,"$1"),p=t.getAttribute("data-ml-id"),f=c?"Affiliate link click":"",h=a?`${a}: ${l}`:l,g="img"===e.target.tagName.toLowerCase()?"Image click":`${e.target.textContent.trim()} click`;window.dataLayer.push({event:"outbound_click",xid:c,cta:s,href:u,data_original_url:m,content_domain:d,content_location:g,content_position:p,content_type:f,content_name:h,content_id:h,content_link:u})}))})),document.addEventListener("click",(t=>{const n=t.target.closest("a");if(!n||e(n.href))return;let o="Content link",r=n.textContent.trim();const i=n.querySelector("img"),a=n.closest("li.menu-item"),l=n.closest(".recurrent-byline .byline-segment"),c=n.closest(".author-name-title"),s=n.closest(".author-expert"),u=n.closest(".recurrent-homepage-hero-featured-title-block")||n.closest(".recurrent-homepage-half-full-bleed-hero-block"),m=n.closest("li.recurrent-homepage-commerce-item"),d=n.classList.contains("card-post-title-link")||n.closest(".card-featured-post"),p=n.classList.contains("category-card-button")||n.classList.contains("category-heading-link"),f=n.closest("#incCategory .tag-list .tag-list-item"),h=n.classList.contains("breadcrumb-link"),g=n.classList.contains("smart-linkpacks-see-more-link"),y=n.closest(".pagination");n.querySelectorAll("*").forEach((e=>{e.textContent.trim()&&(r=e.textContent.trim())})),r?a?a.closest("header")?o="Nav link":a.closest("footer")&&(o="Footer link"):l?o="Author link":c?o="Author widget link":s?o="Author expert link":d?o=n.closest("section.recurrent-smart-linkpacks")?"Smart linkpacks link":"Article link":u?o="Featured article link":m?o="Commerce article link":p?o="Category link":f?o="Sub nav link":h?o="Breadcrumb link":g?o="Smart linkpacks read more link":y&&(o="Pagination link"):i&&(i.classList.contains("archive-post-thumb")?(o="Article link",i.classList.contains("recurrent-homepage-hero-featured-image-block")?o="Featured article link":n.closest("section.recurrent-smart-linkpacks")&&(o="Smart linkpacks link"),r="Article-thumbnail"):m?(o="Commerce article link",r="Article-thumbnail"):d?(o="Article link",r="Article-thumbnail"):s&&(o="Author expert link",r="Author photo")),o&&r&&window.dataLayer.push({event:"select_content",select_type:o,select_name:r,select_link:n.href})}))}))},4210: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&&(e(t.target),n.unobserve(t.target))}))}),{rootMargin:"0px 0px 200px 0px"});t.forEach((e=>n.observe(e)))}else t.forEach((t=>e(t)))}))},2838:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!==typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),s||(s=function(e,t){return new e(...t)});const u=E(Array.prototype.forEach),m=E(Array.prototype.pop),d=E(Array.prototype.push),p=E(String.prototype.toLowerCase),f=E(String.prototype.toString),h=E(String.prototype.match),g=E(String.prototype.replace),y=E(String.prototype.indexOf),T=E(String.prototype.trim),b=E(Object.prototype.hasOwnProperty),w=E(RegExp.prototype.test),A=_(TypeError);function E(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"===typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function S(e){for(let t=0;t/gm),W=a(/\${[\w\W]*}/gm),B=a(/^data-[\-\w.\u00B7-\uFFFF]/),G=a(/^aria-[\-\w]+$/),j=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=a(/^(?:\w+script|data):/i),Y=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=a(/^html$/i),X=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:H,ERB_EXPR:z,TMPLIT_EXPR:W,DATA_ATTR:B,ARIA_ATTR:G,IS_ALLOWED_URI:j,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:Y,DOCTYPE_NAME:$,CUSTOM_ELEMENT:X});const V={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Z=function(){return"undefined"===typeof window?null:window},J=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}};function Q(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const n=e=>Q(e);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==V.document)return n.isSupported=!1,n;let{document:o}=t;const r=o,a=r.currentScript,{DocumentFragment:c,HTMLTemplateElement:s,Node:E,Element:_,NodeFilter:S,NamedNodeMap:H=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:z,DOMParser:W,trustedTypes:B}=t,G=_.prototype,q=L(G,"cloneNode"),Y=L(G,"remove"),X=L(G,"nextSibling"),ee=L(G,"childNodes"),te=L(G,"parentNode");if("function"===typeof s){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ne,oe="";const{implementation:re,createNodeIterator:ie,createDocumentFragment:ae,getElementsByTagName:le}=o,{importNode:ce}=r;let se={};n.isSupported="function"===typeof e&&"function"===typeof te&&re&&void 0!==re.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:me,TMPLIT_EXPR:de,DATA_ATTR:pe,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ye}=K;let{IS_ALLOWED_URI:Te}=K,be=null;const we=k({},[...v,...C,...x,...O,...I]);let Ae=null;const Ee=k({},[...M,...U,...P,...F]);let _e=Object.seal(l(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}})),ke=null,Se=null,Ne=!0,Le=!0,ve=!1,Ce=!0,xe=!1,Re=!0,Oe=!1,De=!1,Ie=!1,Me=!1,Ue=!1,Pe=!1,Fe=!0,He=!1;const ze="user-content-";let We=!0,Be=!1,Ge={},je=null;const qe=k({},["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 Ye=null;const $e=k({},["audio","video","img","source","image","track"]);let Xe=null;const Ke=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Qe=Je,et=!1,tt=null;const nt=k({},[Ve,Ze,Je],f);let ot=null;const rt=["application/xhtml+xml","text/html"],it="text/html";let at=null,lt=null;const ct=o.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"===typeof e||(e={}),e=N(e),ot=-1===rt.indexOf(e.PARSER_MEDIA_TYPE)?it:e.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===ot?f:p,be=b(e,"ALLOWED_TAGS")?k({},e.ALLOWED_TAGS,at):we,Ae=b(e,"ALLOWED_ATTR")?k({},e.ALLOWED_ATTR,at):Ee,tt=b(e,"ALLOWED_NAMESPACES")?k({},e.ALLOWED_NAMESPACES,f):nt,Xe=b(e,"ADD_URI_SAFE_ATTR")?k(N(Ke),e.ADD_URI_SAFE_ATTR,at):Ke,Ye=b(e,"ADD_DATA_URI_TAGS")?k(N($e),e.ADD_DATA_URI_TAGS,at):$e,je=b(e,"FORBID_CONTENTS")?k({},e.FORBID_CONTENTS,at):qe,ke=b(e,"FORBID_TAGS")?k({},e.FORBID_TAGS,at):{},Se=b(e,"FORBID_ATTR")?k({},e.FORBID_ATTR,at):{},Ge=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Le=!1!==e.ALLOW_DATA_ATTR,ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,xe=e.SAFE_FOR_TEMPLATES||!1,Re=!1!==e.SAFE_FOR_XML,Oe=e.WHOLE_DOCUMENT||!1,Me=e.RETURN_DOM||!1,Ue=e.RETURN_DOM_FRAGMENT||!1,Pe=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Be=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||j,Qe=e.NAMESPACE||Je,_e=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(_e.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(Le=!1),Ue&&(Me=!0),Ge&&(be=k({},I),Ae=[],!0===Ge.html&&(k(be,v),k(Ae,M)),!0===Ge.svg&&(k(be,C),k(Ae,U),k(Ae,F)),!0===Ge.svgFilters&&(k(be,x),k(Ae,U),k(Ae,F)),!0===Ge.mathMl&&(k(be,O),k(Ae,P),k(Ae,F))),e.ADD_TAGS&&(be===we&&(be=N(be)),k(be,e.ADD_TAGS,at)),e.ADD_ATTR&&(Ae===Ee&&(Ae=N(Ae)),k(Ae,e.ADD_ATTR,at)),e.ADD_URI_SAFE_ATTR&&k(Xe,e.ADD_URI_SAFE_ATTR,at),e.FORBID_CONTENTS&&(je===qe&&(je=N(je)),k(je,e.FORBID_CONTENTS,at)),We&&(be["#text"]=!0),Oe&&k(be,["html","head","body"]),be.table&&(k(be,["tbody"]),delete ke.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw A('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,oe=ne.createHTML("")}else void 0===ne&&(ne=J(B,a)),null!==ne&&"string"===typeof oe&&(oe=ne.createHTML(""));i&&i(e),lt=e}},mt=k({},["mi","mo","mn","ms","mtext"]),dt=k({},["foreignobject","annotation-xml"]),pt=k({},["title","style","font","a","script"]),ft=k({},[...C,...x,...R]),ht=k({},[...O,...D]),gt=function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=p(e.tagName),o=p(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Ve?"svg"===n&&("annotation-xml"===o||mt[o]):Boolean(ft[n]):e.namespaceURI===Ve?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ze?"math"===n&&dt[o]:Boolean(ht[n]):e.namespaceURI===Je?!(t.namespaceURI===Ze&&!dt[o])&&!(t.namespaceURI===Ve&&!mt[o])&&!ht[n]&&(pt[n]||!ft[n]):!("application/xhtml+xml"!==ot||!tt[e.namespaceURI]))},yt=function(e){d(n.removed,{element:e});try{te(e).removeChild(e)}catch(t){Y(e)}},Tt=function(e,t){try{d(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ae[e])if(Me||Ue)try{yt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){let t=null,n=null;if(Ie)e=""+e;else{const t=h(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ot&&Qe===Je&&(e=''+e+"");const r=ne?ne.createHTML(e):e;if(Qe===Je)try{t=(new W).parseFromString(r,ot)}catch(e){}if(!t||!t.documentElement){t=re.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?oe:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Qe===Je?le.call(t,Oe?"html":"body")[0]:Oe?t.documentElement:i},wt=function(e){return ie.call(e.ownerDocument||e,e,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT|S.SHOW_PROCESSING_INSTRUCTION|S.SHOW_CDATA_SECTION,null)},At=function(e){return e instanceof z&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof H)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},Et=function(e){return"function"===typeof E&&e instanceof E},_t=function(e,t,o){se[e]&&u(se[e],(e=>{e.call(n,t,o,lt)}))},kt=function(e){let t=null;if(_t("beforeSanitizeElements",e,null),At(e))return yt(e),!0;const o=at(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:o,allowedTags:be}),e.hasChildNodes()&&!Et(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return yt(e),!0;if(e.nodeType===V.progressingInstruction)return yt(e),!0;if(Re&&e.nodeType===V.comment&&w(/<[/\w]/g,e.data))return yt(e),!0;if(!be[o]||ke[o]){if(!ke[o]&&Nt(o)){if(_e.tagNameCheck instanceof RegExp&&w(_e.tagNameCheck,o))return!1;if(_e.tagNameCheck instanceof Function&&_e.tagNameCheck(o))return!1}if(We&&!je[o]){const t=te(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=q(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,X(e))}}return yt(e),!0}return e instanceof _&&!gt(e)?(yt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(xe&&e.nodeType===V.text&&(t=e.textContent,u([ue,me,de],(e=>{t=g(t,e," ")})),e.textContent!==t&&(d(n.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(yt(e),!0)},St=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in o||n in ct))return!1;if(Le&&!Se[t]&&w(pe,t));else if(Ne&&w(fe,t));else if(!Ae[t]||Se[t]){if(!(Nt(e)&&(_e.tagNameCheck instanceof RegExp&&w(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&w(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t))||"is"===t&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&w(_e.tagNameCheck,n)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(n))))return!1}else if(Xe[t]);else if(w(Te,g(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Ye[e])if(ve&&!w(he,g(n,ge,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&h(e,ye)},Lt=function(e){_t("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:c}=i,s=at(a);let d="value"===a?c:T(c);if(o.attrName=s,o.attrValue=d,o.keepAttr=!0,o.forceKeepAttr=void 0,_t("uponSanitizeAttribute",e,o),d=o.attrValue,Re&&w(/((--!?|])>)|<\/(style|title)/i,d)){Tt(a,e);continue}if(o.forceKeepAttr)continue;if(Tt(a,e),!o.keepAttr)continue;if(!Ce&&w(/\/>/i,d)){Tt(a,e);continue}xe&&u([ue,me,de],(e=>{d=g(d,e," ")}));const p=at(e.nodeName);if(St(p,s,d)){if(!He||"id"!==s&&"name"!==s||(Tt(a,e),d=ze+d),ne&&"object"===typeof B&&"function"===typeof B.getAttributeType)if(l);else switch(B.getAttributeType(p,s)){case"TrustedHTML":d=ne.createHTML(d);break;case"TrustedScriptURL":d=ne.createScriptURL(d)}try{l?e.setAttributeNS(l,a,d):e.setAttribute(a,d),At(e)?yt(e):m(n.removed)}catch(e){}}}_t("afterSanitizeAttributes",e,null)},vt=function e(t){let n=null;const o=wt(t);for(_t("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)_t("uponSanitizeShadowNode",n,null),kt(n)||(n.content instanceof c&&e(n.content),Lt(n));_t("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=null,a=null,l=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!==typeof e&&!Et(e)){if("function"!==typeof e.toString)throw A("toString is not a function");if("string"!==typeof(e=e.toString()))throw A("dirty is not a string, aborting")}if(!n.isSupported)return e;if(De||ut(t),n.removed=[],"string"===typeof e&&(Be=!1),Be){if(e.nodeName){const t=at(e.nodeName);if(!be[t]||ke[t])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof E)o=bt("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),i.nodeType===V.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!Me&&!xe&&!Oe&&-1===e.indexOf("<"))return ne&&Pe?ne.createHTML(e):e;if(o=bt(e),!o)return Me?null:Pe?oe:""}o&&Ie&&yt(o.firstChild);const s=wt(Be?e:o);for(;a=s.nextNode();)kt(a)||(a.content instanceof c&&vt(a.content),Lt(a));if(Be)return e;if(Me){if(Ue)for(l=ae.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(Ae.shadowroot||Ae.shadowrootmode)&&(l=ce.call(r,l,!0)),l}let m=Oe?o.outerHTML:o.innerHTML;return Oe&&be["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&w($,o.ownerDocument.doctype.name)&&(m="\n"+m),xe&&u([ue,me,de],(e=>{m=g(m,e," ")})),ne&&Pe?ne.createHTML(m):m},n.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),De=!0},n.clearConfig=function(){lt=null,De=!1},n.isValidAttribute=function(e,t,n){lt||ut({});const o=at(e),r=at(t);return St(o,r,n)},n.addHook=function(e,t){"function"===typeof t&&(se[e]=se[e]||[],d(se[e],t))},n.removeHook=function(e){if(se[e])return m(se[e])},n.removeHooks=function(e){se[e]&&(se[e]=[])},n.removeAllHooks=function(){se={}},n}return Q()}()}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";n(9224);var e=n(2838),t=n.n(e);const o=document.querySelectorAll(".lazied-youtube-frame"),r=e=>{if(e.getAttribute("data-video-id"))return{videoId:e.getAttribute("data-video-id"),classes:e.getAttribute("data-iframe-classes")??""};const t=e.closest(".lazied-youtube-frame");return t?r(t):{}};for(const e of o)e.addEventListener("click",(n=>{n.preventDefault();const{videoId:o,classes:i}=r(n.target),a=document.createElement("iframe");a.setAttribute("allowfullscreen",1),a.setAttribute("class",`lazied-youtube-frame ${i}`),a.setAttribute("frame-border","0"),a.setAttribute("src",`https://www.youtube.com/embed/${o}?feature=oembed&rel=0&enablejsapi=1&autoplay=1`),a.setAttribute("allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"),e.outerHTML=t().sanitize(a,{ALLOWED_TAGS:["iframe"],ALLOWED_ATTR:["allowfullscreen","frame-border","allow","src","class"]})}));n(4210)}()}();;