!function n(d,o,w){function u(e,a){if(!o[e]){if(!d[e]){var t="function"==typeof require&&require;if(!a&&t)return t(e,!0);if(s)return s(e,!0);var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}var r=o[e]={exports:{}};d[e][0].call(r.exports,function(a){return u(d[e][1][a]||a)},r,r.exports,n,d,o,w)}return o[e].exports}for(var s="function"==typeof require&&require,a=0;a=window.innerHeight?"landscape":"portrait";window.dtciDataLayer.hasOwnProperty("site")&&(window.__dataLayer.hasOwnProperty("site")?Object.assign(window.__dataLayer.site,window.dtciDataLayer.site):window.__dataLayer.site=window.dtciDataLayer.site),window.__dataLayer.site.orientation=a},updateDeviceData:function(){window.dtciDataLayer.hasOwnProperty("device")&&(window.__dataLayer.hasOwnProperty("device")?Object.assign(window.__dataLayer.site,window.dtciDataLayer.device):window.__dataLayer.device=window.dtciDataLayer.device)},triggerPageView:function(){window.__dataLayer.hasOwnProperty("publish")&&window.__dataLayer.publish("pageView")},track:function(a){void 0!==window.__dataLayer&&void 0!==window.Bootstrapper.adobeLinkTrack&&(window.__dataLayer.publish("customEvent",{event_name:a}),console.info("datalayer "+a+" triggered"))},trackDetailed:function(a){void 0!==window.__dataLayer&&(window.__dataLayer.publish("customEvent",a),console.info("datalayer "+a.event_name+" triggered",a))},removeLinebreaksAndTabs:function(a){return a.replace(/[\t\n\r]/gm,"")},sanitizeURL:function(a){return(0,i.sanitizeUrl)(a)}}},{"@braintree/sanitize-url":2}],2:[function(a,e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,d=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,o=/^([^:]+):/gm,w=[".","/"];t.sanitizeUrl=function(a){if(!a)return"about:blank";var e,t=a.replace(d,"").trim();if(e=t,-1/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(t){if(document.getElementById("tmpl-"+e))return(n=n||_.template(s("#tmpl-"+e).html(),a))(t);throw new Error("Template not found: #tmpl-"+e)}}),wp.ajax={settings:t.ajax||{},post:function(t,e){return wp.ajax.send({data:_.isObject(t)?t:_.extend(e||{},{action:t})})},send:function(a,t){var e,n;return _.isObject(a)?t=a:(t=t||{}).data=_.extend(t.data||{},{action:a}),t=_.defaults(t||{},{type:"POST",url:wp.ajax.settings.url,context:this}),(e=(n=s.Deferred(function(n){t.success&&n.done(t.success),t.error&&n.fail(t.error),delete t.success,delete t.error,n.jqXHR=s.ajax(t).done(function(t){var e;"1"!==t&&1!==t||(t={success:!0}),_.isObject(t)&&!_.isUndefined(t.success)?(e=this,n.done(function(){a&&a.data&&"query-attachments"===a.data.action&&n.jqXHR.hasOwnProperty("getResponseHeader")&&n.jqXHR.getResponseHeader("X-WP-Total")?e.totalAttachments=parseInt(n.jqXHR.getResponseHeader("X-WP-Total"),10):e.totalAttachments=0}),n[t.success?"resolveWith":"rejectWith"](this,[t.data])):n.rejectWith(this,[t])}).fail(function(){n.rejectWith(this,arguments)})})).promise()).abort=function(){return n.jqXHR.abort(),this},e}}}(jQuery);; !function(){"use strict";function e(e){var t=typeof e;return"function"===t||"object"===t&&!!e}var t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},n=Array.prototype,o=Object.prototype,r=("undefined"!==typeof Symbol&&Symbol.prototype,n.push,n.slice,o.toString),i=o.hasOwnProperty,s="undefined"!==typeof ArrayBuffer,a=(Array.isArray,Object.keys),u=(Object.create,s&&ArrayBuffer.isView,!{toString:null}.propertyIsEnumerable("toString")),p=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];Math.pow(2,53);var c=function(e){var t="[object "+e+"]";return function(e){return r.call(e)===t}}("Function"),l=t.document&&t.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof l&&(c=function(e){return"function"==typeof e||!1});var f=c;function y(e,t){return null!=e&&i.call(e,t)}function d(e,t){t=function(e){for(var t={},n=e.length,o=0;o/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var g=/(.)^/,h={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},b=/\\|'|\r|\n|\u2028|\u2029/g;function j(e){return"\\"+h[e]}var v=/^\s*(\w|\$)+\s*$/;function w(e,t,n){!t&&n&&(t=n),t=_({},t,m.templateSettings);var o=RegExp([(t.escape||g).source,(t.interpolate||g).source,(t.evaluate||g).source].join("|")+"|$","g"),r=0,i="__p+='";e.replace(o,(function(t,n,o,s,a){return i+=e.slice(r,a).replace(b,j),r=a+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":o?i+="'+\n((__t=("+o+"))==null?'':__t)+\n'":s&&(i+="';\n"+s+"\n__p+='"),t})),i+="';\n";var s,a=t.variable;if(a){if(!v.test(a))throw new Error("variable is not a bare identifier: "+a)}else i="with(obj||{}){\n"+i+"}\n",a="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{s=new Function(a,"_",i)}catch(e){throw e.source=i,e}var u=function(e){return s.call(this,e,m)};return u.source="function("+a+"){\n"+i+"}",u}function Q(t){for(var n=function(t){if(!e(t))return[];if(a)return a(t);var n=[];for(var o in t)y(t,o)&&n.push(o);return u&&d(t,n),n}(t),o=n.length,r=Array(o),i=0;i").text(e.message).addClass("note");u.find(".content").empty().append(t)}function S(e){u.find(".error").length&&u.find(".error").remove();const t=jQuery("

").text(e).addClass("note error");p.before(t),p.prop("disabled",!1)}function O(){""!==l.val()&&""!==jQuery(`#${o.form_id_name}`).val()&&""!==jQuery(`#${o.form_id_email}`).val()?p.prop("disabled",!1):p.attr("disabled","disabled")}i=o.is_yg99w_home?parseInt(o.home_prompts_per_page,10):parseInt(o.prompts_per_page,10),r.css("transition","none"),jQuery(".yg99w-tabs").on("click","a",(function(e){const n=jQuery(e.target).attr("id").substr(4),i=jQuery(`#submissions-${n}`);let u;e.preventDefault(),s=n,r.fadeOut(300),c.hide(),""===i.html()?(y.delay(250).fadeIn(300),u={nonce:o.nonce_get_submissions,type:n,prompt_id:o.prompt_id},t.ajax.send(o.action_get_submissions,{success:g,error:h,data:u})):(a[n]o(d).offset().top-300&&(o(d).attr("data-defer","none"),d.play())}),0===o("video[data-defer=play]").length&&t.off("scroll.deferredvideos")}))});; !function(){function e(){var e=Array.from(document.querySelectorAll(".newsletter-subscribe")),t=Array.from(document.querySelectorAll(".newsletter-input.email-address")),n=Array.from(document.querySelectorAll(".subscribe-action.button")),o=document.getElementById("subscribe-all"),s=document.querySelectorAll("input.newsletter-checkbox:not(:checked)").length;e.length?(m=DisneyOneID.config.campaignName,window.oid.getInlineNewsletters(m).then(function(t){var a=/([A-Z() ]+) (.*)/,n=DOMPurify.sanitize(t.data.legal[0].content,{USE_PROFILES:{html:!0},RETURN_DOM_FRAGMENT:!0});window.dtci.newsletters.result[m]=t,e.forEach(function(r){var i=r.querySelector(".newsletter-list"),e=r.querySelector(".newsletter-agreement");r.classList.contains("is-init")||(e.append(n.cloneNode(!0)),t.data.marketing.forEach(function(e){var t,n;"The Undefeated"!==m?((w=e.content.match(a))||(console.warn("Malformed title: "+e.content),w=["","",e.content]),w[1]&&w[2]?(t=w[1].toLowerCase().replace("nfl ","NFL "),n=w[2]):w[2]&&(t=w[2])):t=e.content,(c=document.createElement("label")).innerText=t,c.setAttribute("for",e.code),n&&((d=document.createElement("span")).className="description",d.innerText=n),u=document.createElement("p"),(l=document.createElement("input")).id=e.code,l.type="checkbox",l.name="nl",l.value=e.code,l.className="newsletter-checkbox",l.checked=e.preselected,d&&c.appendChild(d),u.appendChild(l),u.appendChild(c),i&&i.appendChild(u),r.classList.add("is-init"),s||null===o||(o.checked=!0),i&&Array.from(i.querySelectorAll("input.newsletter-checkbox")).forEach(function(e){e.addEventListener("click",function(e){!1===this.checked&&(o.checked=!1)})})}))})})):Array.from(document.querySelectorAll("[data-newsletter]")).forEach(function(n){var r=n.getAttribute("data-newsletter"),e=n.closest(".newsletter-subscribe");console.debug(r),e.classList.contains("newsletter-subscribe--init")||(e.classList.add("newsletter-subscribe--init"),window.oid.getInlineNewsletters(r).then(function(e){var t=DOMPurify.sanitize(e.data.legal[0].content,{USE_PROFILES:{html:!0},RETURN_DOM_FRAGMENT:!0});window.dtci.newsletters.result[r]=e,n.parentNode.parentNode.querySelector(".newsletter-agreement").append(t)}))}),o&&o.addEventListener("click",function(e){!0===this.checked&&Array.from(document.querySelectorAll("input.newsletter-checkbox")).forEach(function(e){e.checked=!0})}),n.length&&(n.forEach(function(e){e.addEventListener("click",window.dtci.newsletters.submitSubscription)}),t.length&&t.forEach(function(t){t.addEventListener("keyup",function(e){13===e.keyCode&&t.parentNode.querySelector(".button").trigger("click")})}))}var c,d,l,u,w,m,o={ALREADY_OPT_IN:"You are already subscribed to that newsletter.",PROFILE_EXISTS:"You are already subscribed.","INVALID_VALUE_PROFILE.EMAIL":"Please provide a valid email address.",MISSING_VALUE_EMAIL:"Please provide a valid email address.",INVALID_EMAIL:"Please provide a valid email address.",MISSING_OPT_IN:"Please select a newsletter.",MISSING_VALUE_MARKETING:"Please select a newsletter.",PROFILE_UPDATE_INVALID:"Please select a newsletter.",GUEST_GATED_AGEBAND:"You are not old enough to subscribe."};window.dtci=window.dtci||{},window.dtci.newsletters=window.dtci.newsletters||{},window.dtci.newsletters.result={},window.dtci.newsletters.showSuccess=function(e){e.classList.add("hidden"),e.parentNode.parentNode.querySelector(".subscribed").classList.remove("hidden")},window.dtci.newsletters.showErrors=function(e,t){var n,r,i=e.querySelector(".errors"),a=e.querySelector(".subscribe-action.button");i.classList.remove("hidden"),r="string"==typeof t?t:t&&t.errors&&t.errors[0]&&t.errors[0].code?t.errors[0].code:"unknown",n=void 0===o[r]?"Sorry! Your subscription attempt failed.":o[r],i.innerText=n,a.removeAttribute("disabled")},window.dtci.newsletters.submitSubscription=function(e){var t,n,r,i,a=e.target,o=a.closest(".newsletter-form"),s=o.parentNode.querySelector(".newsletter-list"),c={},d=o.querySelector("[data-newsletter]")?o.querySelector("[data-newsletter]").getAttribute("data-newsletter"):"",l=o.querySelector(".email-address").value;r=s?DisneyOneID.config.campaignName:window.dtci.newsletters.result[d]?d:DisneyOneID.config.campaignName,i=window.dtci.newsletters.result[r],e.preventDefault(),o.querySelector(".errors").classList.add("hidden"),a.setAttribute("disabled",!0),s?Array.from(o.parentNode.querySelectorAll("input.newsletter-checkbox:checked")).forEach(function(e){c[e.value]=1}):(n=o.querySelector("[data-newsletter]").value,c[n]=1),i.data.marketing.forEach(function(e){c[e.code]&&(e.subscribed=!0)}),t={campaignId:r,email:l,marketing:i.data.marketing,legal:i.data.legal},window.oid.setInlineNewsletters(t).then(function(e){window.dtci.newsletters.showSuccess(o),a.removeAttribute("disabled"),void 0!==window.dtciDataLayer&&window.dtciDatalayer.trackDetailed({event_name:"newsletter signup:success",signup_source:window.window.__dataLayer.page.page_url,content_title:window.window.__dataLayer.page.page_name,content_id:window.window.__dataLayer.page.hasOwnProperty("page_id")?window.window.__dataLayer.page.page_id:window.window.__dataLayer.page.story_id})}).catch(function(e){window.dtci.newsletters.showErrors(o,e.error_codes)})},window.dtci.newsletters.reInit=function(){e()},document.addEventListener("oneidInit",function(){setTimeout(function(){e()},"500")})}();; /*! For license information please see hc-sticky.js.LICENSE.txt */ !function(){var t={64:function(t,e){var o,i,n;!function(s,r){"use strict";if("object"==typeof t.exports){if(!s.document)throw new Error("HC-Sticky requires a browser to run.");t.exports=r(s)}else i=[],o=r(s),void 0===(n="function"===typeof o?o.apply(e,i):o)||(t.exports=n)}("undefined"!=typeof window?window:this,(function(t){"use strict";var e={top:0,bottom:0,bottomEnd:0,innerTop:0,innerSticker:null,stickyClass:"sticky",stickTo:null,followScroll:!0,responsive:null,mobileFirst:!1,onStart:null,onStop:null,onBeforeResize:null,onResize:null,resizeDebounce:100,disable:!1,queries:null,queryFlow:"down"},o=t.document,i=function(n,s){var r=this;if("string"==typeof n&&(n=o.querySelector(n)),!n)return!1;s.queries&&jQuery("queries","responsive","option"),s.queryFlow&&jQuery("queryFlow","mobileFirst","option");var a={},l=i.Helpers,c=n.parentNode;"static"===l.getStyle(c,"position")&&(c.style.position="relative");var f=function(){var t=0>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(1t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1?n-1:0),o=1;o/gm),V=y(/\${[\w\W]*}/gm),X=y(/^data-[\-\w.\u00B7-\uFFFF]/),K=y(/^aria-[\-\w]+$/),J=y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tt=y(/^(?:\w+script|data):/i),et=y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nt=y(/^html$/i),it=function(){return"undefined"===typeof window?null:window},ot=function(e,n){if("object"!==t(e)||"function"!==typeof e.createPolicy)return null;var i=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(i=n.currentScript.getAttribute(o));var r="dompurify"+(i?"#"+i:"");try{return e.createPolicy(r,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function rt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:it(),n=function(t){return rt(t)};if(n.version="2.4.7",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var i=e.document,r=e.document,a=e.DocumentFragment,s=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,d=e.NamedNodeMap,f=void 0===d?e.NamedNodeMap||e.MozNamedAttrMap:d,p=e.HTMLFormElement,h=e.DOMParser,y=e.trustedTypes,v=c.prototype,g=B(v,"cloneNode"),w=B(v,"nextSibling"),b=B(v,"childNodes"),M=B(v,"parentNode");if("function"===typeof s){var j=r.createElement("template");j.content&&j.content.ownerDocument&&(r=j.content.ownerDocument)}var at=ot(y,i),st=at?at.createHTML(""):"",lt=r,ct=lt.implementation,ut=lt.createNodeIterator,dt=lt.createDocumentFragment,ft=lt.getElementsByTagName,pt=i.importNode,ht={};try{ht=I(r).documentMode?r.documentMode:{}}catch(t){}var mt={};n.isSupported="function"===typeof M&&ct&&void 0!==ct.createHTMLDocument&&9!==ht;var yt,vt,gt=G,wt=Y,bt=V,_t=X,Et=K,xt=tt,Tt=et,Ct=J,At=null,St=O({},[].concat(o(R),o(P),o(z),o(H),o(F))),Lt=null,kt=O({},[].concat(o(W),o(Z),o($),o(U))),Nt=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}})),Dt=null,Mt=null,jt=!0,Ot=!0,It=!1,Bt=!0,Rt=!1,Pt=!1,zt=!1,Qt=!1,Ht=!1,qt=!1,Ft=!1,Wt=!0,Zt=!1,$t="user-content-",Ut=!0,Gt=!1,Yt={},Vt=null,Xt=O({},["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"]),Kt=null,Jt=O({},["audio","video","img","source","image","track"]),te=null,ee=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ne="http://www.w3.org/1998/Math/MathML",ie="http://www.w3.org/2000/svg",oe="http://www.w3.org/1999/xhtml",re=oe,ae=!1,se=null,le=O({},[ne,ie,oe],C),ce=["application/xhtml+xml","text/html"],ue="text/html",de=null,fe=r.createElement("form"),pe=function(t){return t instanceof RegExp||t instanceof Function},he=function(e){de&&de===e||(e&&"object"===t(e)||(e={}),e=I(e),yt=yt=-1===ce.indexOf(e.PARSER_MEDIA_TYPE)?ue:e.PARSER_MEDIA_TYPE,vt="application/xhtml+xml"===yt?C:T,At="ALLOWED_TAGS"in e?O({},e.ALLOWED_TAGS,vt):St,Lt="ALLOWED_ATTR"in e?O({},e.ALLOWED_ATTR,vt):kt,se="ALLOWED_NAMESPACES"in e?O({},e.ALLOWED_NAMESPACES,C):le,te="ADD_URI_SAFE_ATTR"in e?O(I(ee),e.ADD_URI_SAFE_ATTR,vt):ee,Kt="ADD_DATA_URI_TAGS"in e?O(I(Jt),e.ADD_DATA_URI_TAGS,vt):Jt,Vt="FORBID_CONTENTS"in e?O({},e.FORBID_CONTENTS,vt):Xt,Dt="FORBID_TAGS"in e?O({},e.FORBID_TAGS,vt):{},Mt="FORBID_ATTR"in e?O({},e.FORBID_ATTR,vt):{},Yt="USE_PROFILES"in e&&e.USE_PROFILES,jt=!1!==e.ALLOW_ARIA_ATTR,Ot=!1!==e.ALLOW_DATA_ATTR,It=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Bt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Rt=e.SAFE_FOR_TEMPLATES||!1,Pt=e.WHOLE_DOCUMENT||!1,Ht=e.RETURN_DOM||!1,qt=e.RETURN_DOM_FRAGMENT||!1,Ft=e.RETURN_TRUSTED_TYPE||!1,Qt=e.FORCE_BODY||!1,Wt=!1!==e.SANITIZE_DOM,Zt=e.SANITIZE_NAMED_PROPS||!1,Ut=!1!==e.KEEP_CONTENT,Gt=e.IN_PLACE||!1,Ct=e.ALLOWED_URI_REGEXP||Ct,re=e.NAMESPACE||oe,Nt=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&pe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Nt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&pe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Nt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Nt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Rt&&(Ot=!1),qt&&(Ht=!0),Yt&&(At=O({},o(F)),Lt=[],!0===Yt.html&&(O(At,R),O(Lt,W)),!0===Yt.svg&&(O(At,P),O(Lt,Z),O(Lt,U)),!0===Yt.svgFilters&&(O(At,z),O(Lt,Z),O(Lt,U)),!0===Yt.mathMl&&(O(At,H),O(Lt,$),O(Lt,U))),e.ADD_TAGS&&(At===St&&(At=I(At)),O(At,e.ADD_TAGS,vt)),e.ADD_ATTR&&(Lt===kt&&(Lt=I(Lt)),O(Lt,e.ADD_ATTR,vt)),e.ADD_URI_SAFE_ATTR&&O(te,e.ADD_URI_SAFE_ATTR,vt),e.FORBID_CONTENTS&&(Vt===Xt&&(Vt=I(Vt)),O(Vt,e.FORBID_CONTENTS,vt)),Ut&&(At["#text"]=!0),Pt&&O(At,["html","head","body"]),At.table&&(O(At,["tbody"]),delete Dt.tbody),m&&m(e),de=e)},me=O({},["mi","mo","mn","ms","mtext"]),ye=O({},["foreignobject","desc","title","annotation-xml"]),ve=O({},["title","style","font","a","script"]),ge=O({},P);O(ge,z),O(ge,Q);var we=O({},H);O(we,q);var be=function(t){var e=M(t);e&&e.tagName||(e={namespaceURI:re,tagName:"template"});var n=T(t.tagName),i=T(e.tagName);return!!se[t.namespaceURI]&&(t.namespaceURI===ie?e.namespaceURI===oe?"svg"===n:e.namespaceURI===ne?"svg"===n&&("annotation-xml"===i||me[i]):Boolean(ge[n]):t.namespaceURI===ne?e.namespaceURI===oe?"math"===n:e.namespaceURI===ie?"math"===n&&ye[i]:Boolean(we[n]):t.namespaceURI===oe?!(e.namespaceURI===ie&&!ye[i])&&!(e.namespaceURI===ne&&!me[i])&&!we[n]&&(ve[n]||!ge[n]):!("application/xhtml+xml"!==yt||!se[t.namespaceURI]))},_e=function(t){x(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=st}catch(e){t.remove()}}},Ee=function(t,e){try{x(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){x(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Lt[t])if(Ht||qt)try{_e(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},xe=function(t){var e,n;if(Qt)t=""+t;else{var i=A(t,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===yt&&re===oe&&(t=''+t+"");var o=at?at.createHTML(t):t;if(re===oe)try{e=(new h).parseFromString(o,yt)}catch(t){}if(!e||!e.documentElement){e=ct.createDocument(re,"template",null);try{e.documentElement.innerHTML=ae?st:o}catch(t){}}var a=e.body||e.documentElement;return t&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),re===oe?ft.call(e,Pt?"html":"body")[0]:Pt?e.documentElement:a},Te=function(t){return ut.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},Ce=function(t){return t instanceof p&&("string"!==typeof t.nodeName||"string"!==typeof t.textContent||"function"!==typeof t.removeChild||!(t.attributes instanceof f)||"function"!==typeof t.removeAttribute||"function"!==typeof t.setAttribute||"string"!==typeof t.namespaceURI||"function"!==typeof t.insertBefore||"function"!==typeof t.hasChildNodes)},Ae=function(e){return"object"===t(l)?e instanceof l:e&&"object"===t(e)&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Se=function(t,e,i){mt[t]&&_(mt[t],(function(t){t.call(n,e,i,de)}))},Le=function(t){var e;if(Se("beforeSanitizeElements",t,null),Ce(t))return _e(t),!0;if(N(/[\u0080-\uFFFF]/,t.nodeName))return _e(t),!0;var i=vt(t.nodeName);if(Se("uponSanitizeElement",t,{tagName:i,allowedTags:At}),t.hasChildNodes()&&!Ae(t.firstElementChild)&&(!Ae(t.content)||!Ae(t.content.firstElementChild))&&N(/<[/\w]/g,t.innerHTML)&&N(/<[/\w]/g,t.textContent))return _e(t),!0;if("select"===i&&N(/