脱机/*For license information please see frontend.js.LICENSE.txt */ !function(){var e={7856: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=_(Array.prototype.forEach),m=_(Array.prototype.pop),f=_(Array.prototype.push),p=_(String.prototype.toLowerCase),d=_(String.prototype.toString),h=_(String.prototype.match),g=_(String.prototype.replace),T=_(String.prototype.indexOf),y=_(String.prototype.trim),E=_(Object.prototype.hasOwnProperty),A=_(RegExp.prototype.test),b=N(TypeError);function _(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r 2&&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 w(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),Y=a(/^(?:\w+script|data):/i),q=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=a(/^html$/i),$=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:z,ERB_EXPR:F,TMPLIT_EXPR:W,DATA_ATTR:B,ARIA_ATTR:G,IS_ALLOWED_URI:j,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:q,DOCTYPE_NAME:X,CUSTOM_ELEMENT:$});const V=function(){return"undefined"===typeof window?null:window},Z=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 J(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V();const n=e=>J(e);if(n.version="3.0.11",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:o}=t;const r=o,a=r.currentScript,{DocumentFragment:c,HTMLTemplateElement:s,Node:_,Element:N,NodeFilter:w,NamedNodeMap:z=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:F,DOMParser:W,trustedTypes:B}=t,G=N.prototype,Y=L(G,"cloneNode"),q=L(G,"nextSibling"),$=L(G,"childNodes"),Q=L(G,"parentNode");if("function"===typeof s){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ee,te="";const{implementation:ne,createNodeIterator:oe,createDocumentFragment:re,getElementsByTagName:ie}=o,{importNode:ae}=r;let le={};n.isSupported="function"===typeof e&&"function"===typeof Q&&ne&&void 0!==ne.createHTMLDocument;const{MUSTACHE_EXPR:ce,ERB_EXPR:se,TMPLIT_EXPR:ue,DATA_ATTR:me,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:pe,ATTR_WHITESPACE:de,CUSTOM_ELEMENT:he}=K;let{IS_ALLOWED_URI:ge}=K,Te=null;const ye=S({},[...v,...D,...O,...C,...I]);let Ee=null;const Ae=S({},[...M,...U,...P,...H]);let be=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}})),_e=null,Ne=null,Se=!0,we=!0,Re=!1,Le=!0,ve=!1,De=!1,Oe=!1,xe=!1,Ce=!1,ke=!1,Ie=!1,Me=!0,Ue=!1;const Pe="user-content-";let He=!0,ze=!1,Fe={},We=null;const Be=S({},["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 Ge=null;const je=S({},["audio","video","img","source","image","track"]);let Ye=null;const qe=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let Ve=Ke,Ze=!1,Je=null;const Qe=S({},[Xe,$e,Ke],d);let et=null;const tt=["application/xhtml+xml","text/html"],nt="text/html";let ot=null,rt=null;const it=o.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},lt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!rt||rt!==e){if(e&&"object"===typeof e||(e={}),e=R(e),et=-1===tt.indexOf(e.PARSER_MEDIA_TYPE)?nt:e.PARSER_MEDIA_TYPE,ot="application/xhtml+xml"===et?d:p,Te=E(e,"ALLOWED_TAGS")?S({},e.ALLOWED_TAGS,ot):ye,Ee=E(e,"ALLOWED_ATTR")?S({},e.ALLOWED_ATTR,ot):Ae,Je=E(e,"ALLOWED_NAMESPACES")?S({},e.ALLOWED_NAMESPACES,d):Qe,Ye=E(e,"ADD_URI_SAFE_ATTR")?S(R(qe),e.ADD_URI_SAFE_ATTR,ot):qe,Ge=E(e,"ADD_DATA_URI_TAGS")?S(R(je),e.ADD_DATA_URI_TAGS,ot):je,We=E(e,"FORBID_CONTENTS")?S({},e.FORBID_CONTENTS,ot):Be,_e=E(e,"FORBID_TAGS")?S({},e.FORBID_TAGS,ot):{},Ne=E(e,"FORBID_ATTR")?S({},e.FORBID_ATTR,ot):{},Fe=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,Se=!1!==e.ALLOW_ARIA_ATTR,we=!1!==e.ALLOW_DATA_ATTR,Re=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ve=e.SAFE_FOR_TEMPLATES||!1,De=e.WHOLE_DOCUMENT||!1,Ce=e.RETURN_DOM||!1,ke=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,xe=e.FORCE_BODY||!1,Me=!1!==e.SANITIZE_DOM,Ue=e.SANITIZE_NAMED_PROPS||!1,He=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,ge=e.ALLOWED_URI_REGEXP||j,Ve=e.NAMESPACE||Ke,be=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(be.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(be.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(be.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve&&(we=!1),ke&&(Ce=!0),Fe&&(Te=S({},I),Ee=[],!0===Fe.html&&(S(Te,v),S(Ee,M)),!0===Fe.svg&&(S(Te,D),S(Ee,U),S(Ee,H)),!0===Fe.svgFilters&&(S(Te,O),S(Ee,U),S(Ee,H)),!0===Fe.mathMl&&(S(Te,C),S(Ee,P),S(Ee,H))),e.ADD_TAGS&&(Te===ye&&(Te=R(Te)),S(Te,e.ADD_TAGS,ot)),e.ADD_ATTR&&(Ee===Ae&&(Ee=R(Ee)),S(Ee,e.ADD_ATTR,ot)),e.ADD_URI_SAFE_ATTR&&S(Ye,e.ADD_URI_SAFE_ATTR,ot),e.FORBID_CONTENTS&&(We===Be&&(We=R(We)),S(We,e.FORBID_CONTENTS,ot)),He&&(Te["#text"]=!0),De&&S(Te,["html","head","body"]),Te.table&&(S(Te,["tbody"]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw b('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=e.TRUSTED_TYPES_POLICY,te=ee.createHTML("")}else void 0===ee&&(ee=Z(B,a)),null!==ee&&"string"===typeof te&&(te=ee.createHTML(""));i&&i(e),rt=e}},ct=S({},["mi","mo","mn","ms","mtext"]),st=S({},["foreignobject","desc","title","annotation-xml"]),ut=S({},["title","style","font","a","script"]),mt=S({},[...D,...O,...x]),ft=S({},[...C,...k]),pt=function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:Ve,tagName:"template"});const n=p(e.tagName),o=p(t.tagName);return!!Je[e.namespaceURI]&&(e.namespaceURI===$e?t.namespaceURI===Ke?"svg"===n:t.namespaceURI===Xe?"svg"===n&&("annotation-xml"===o||ct[o]):Boolean(mt[n]):e.namespaceURI===Xe?t.namespaceURI===Ke?"math"===n:t.namespaceURI===$e?"math"===n&&st[o]:Boolean(ft[n]):e.namespaceURI===Ke?!(t.namespaceURI===$e&&!st[o])&&!(t.namespaceURI===Xe&&!ct[o])&&!ft[n]&&(ut[n]||!mt[n]):!("application/xhtml+xml"!==et||!Je[e.namespaceURI]))},dt=function(e){f(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},ht=function(e,t){try{f(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if(Ce||ke)try{dt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},gt=function(e){let t=null,n=null;if(xe)e=" "+e;else{const t=h(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===et&&Ve===Ke&&(e='+e+");const r=ee?ee.createHTML(e):e;if(Ve===Ke)try{t=(new W).parseFromString(r,et)}catch(e){}if(!t||!t.documentElement){t=ne.createDocument(Ve,"template",null);try{t.documentElement.innerHTML=Ze?te:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Ve===Ke?ie.call(t,De?"html":"body")[0]:De?t.documentElement:i},Tt=function(e){return oe.call(e.ownerDocument||e,e,w.SHOW_ELEMENT|w.SHOW_COMMENT|w.SHOW_TEXT|w.SHOW_PROCESSING_INSTRUCTION|w.SHOW_CDATA_SECTION,null)},yt=function(e){return e instanceof F&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof z)||"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 instanceof _},At=function(e,t,o){le[e]&&u(le[e],(e=>{e.call(n,t,o,rt)}))},bt=function(e){let t=null;if(At("beforeSanitizeElements",e,null),yt(e))return dt(e),!0;const o=ot(e.nodeName);if(At("uponSanitizeElement",e,{tagName:o,allowedTags:Te}),e.hasChildNodes()&&!Et(e.firstElementChild)&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent))return dt(e),!0;if(7===e.nodeType)return dt(e),!0;if(!Te[o]||_e[o]){if(!_e[o]&&Nt(o)){if(be.tagNameCheck instanceof RegExp&&A(be.tagNameCheck,o))return!1;if(be.tagNameCheck instanceof Function&&be.tagNameCheck(o))return!1}if(He&&!We[o]){const t=Q(e)||e.parentNode,n=$(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o)t.insertBefore(Y(n[o],!0),q(e))}return dt(e),!0}return e instanceof N&&!pt(e)?(dt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!A(/<\/no(script|embed|frames)/i,e.innerHTML)?(ve&&3===e.nodeType&&(t=e.textContent,u([ce,se,ue],(e=>{t=g(t,e," ")})),e.textContent!==t&&(f(n.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(dt(e),!0)},_t=function(e,t,n){if(Me&&("id"===t||"name"===t)&&(n in o||n in it))return!1;if(we&&!Ne[t]&&A(me,t));else if(Se&&A(fe,t));else if(!Ee[t]||Ne[t]){if(!(Nt(e)&&(be.tagNameCheck instanceof RegExp&&A(be.tagNameCheck,e)||be.tagNameCheck instanceof Function&&be.tagNameCheck(e))&&(be.attributeNameCheck instanceof RegExp&&A(be.attributeNameCheck,t)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(t))||"is"===t&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&A(be.tagNameCheck,n)||be.tagNameCheck instanceof Function&&be.tagNameCheck(n))))return!1}else if(Ye[t]);else if(A(ge,g(n,de,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(n,"data:")||!Ge[e])if(Re&&!A(pe,g(n,de,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&h(e,he)},St=function(e){At("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:c}=i,s=ot(a);let f="value"===a?c:y(c);if(o.attrName=s,o.attrValue=f,o.keepAttr=!0,o.forceKeepAttr=void 0,At("uponSanitizeAttribute",e,o),f=o.attrValue,o.forceKeepAttr)continue;if(ht(a,e),!o.keepAttr)continue;if(!Le&&A(/\/>/i,f)){ht(a,e);continue}ve&&u([ce,se,ue],(e=>{f=g(f,e," ")}));const p=ot(e.nodeName);if(_t(p,s,f)){if(!Ue||"id"!==s&&"name"!==s||(ht(a,e),f=Pe+f),ee&&"object"===typeof B&&"function"===typeof B.getAttributeType)if(l);else switch(B.getAttributeType(p,s)){case"TrustedHTML":f=ee.createHTML(f);break;case"TrustedScriptURL":f=ee.createScriptURL(f)}try{l?e.setAttributeNS(l,a,f):e.setAttribute(a,f),m(n.removed)}catch(e){}}}At("afterSanitizeAttributes",e,null)},wt=function e(t){let n=null;const o=Tt(t);for(At("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)At("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof c&&e(n.content),St(n));At("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(Ze=!e,Ze&&(e="\x3c!--\x3e"),"string"!==typeof e&&!Et(e)){if("function"!==typeof e.toString)throw b("toString is not a function");if("string"!==typeof(e=e.toString()))throw b("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Oe||lt(t),n.removed=[],"string"===typeof e&&(ze=!1),ze){if(e.nodeName){const t=ot(e.nodeName);if(!Te[t]||_e[t])throw b("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof _)o=gt("\x3c!----\x3e"),i=o.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?o=i:o.appendChild(i);else{if(!Ce&&!ve&&!De&&-1===e.indexOf("<"))return ee&&Ie?ee.createHTML(e):e;if(o=gt(e),!o)return Ce?null:Ie?te:""}o&&xe&&dt(o.firstChild);const s=Tt(ze?e:o);for(;a=s.nextNode();)bt(a)||(a.content instanceof c&&wt(a.content),St(a));if(ze)return e;if(Ce){if(ke)for(l=re.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(Ee.shadowroot||Ee.shadowrootmode)&&(l=ae.call(r,l,!0)),l}let m=De?o.outerHTML:o.innerHTML;return De&&Te["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&A(X,o.ownerDocument.doctype.name)&&(m="\n"+m),ve&&u([ce,se,ue],(e=>{m=g(m,e," ")})),ee&&Ie?ee.createHTML(m):m},n.setConfig=function(){lt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Oe=!0},n.clearConfig=function(){rt=null,Oe=!1},n.isValidAttribute=function(e,t,n){rt||lt({});const o=ot(e),r=ot(t);return _t(o,r,n)},n.addHook=function(e,t){"function"===typeof t&&(le[e]=le[e]||[],f(le[e],t))},n.removeHook=function(e){if(le[e])return m(le[e])},n.removeHooks=function(e){le[e]&&(le[e]=[])},n.removeAllHooks=function(){le={}},n}return J()}()}},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";var e=n(7856),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-iframe ${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!自动机游戏encrypted-media!陀螺仪picture-in-picture"),e.outerHTML=t().sanitize(a,{ALLOWED_TAGS:["iframe"],ALLOWED_ATTR:["allowfullscreen","frame-border","allow","src","class"]})}))}()}();!(()=>{var uo=Object.create;var cn=Object.defineProperty;var mo=Object.getOwnPropertyDescriptor;var po=Object.getOwnPropertyNames;var ho=Object.getPrototypeOf,go=Object.prototype.hasOwnProperty;var Eo=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports);var Ao=(i,t,r,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of po(t))!go.call(i,n)&&n!==r&&cn(i,n,{get:()=>t[n],enumerable:!(e=mo(t,n))||e.enumerable});return i};var To=(i,t,r)=>(r=i!=null?uo(ho(i)):{},Ao(t||!i||!i.__esModule?cn(r,"default",{value:i,enumerable:!0}):r,i));var Sn=Eo((ht,gt)=>{(function(i,t){typeof ht=="object"&&typeof gt<"u"?gt.exports=t():typeof define=="function"&&define.amd?define(t):(i=typeof globalThis<"u"?globalThis:i||self,i.DOMPurify=t())})(ht,function(){"use strict";let{entries:i,setPrototypeOf:t,isFrozen:r,getPrototypeOf:e,getOwnPropertyDescriptor:n}=Object,{freeze:s,seal:l,create:g}=Object,{apply:w,construct:S}=typeof Reflect<"u"&&Reflect;s||(s=function(f){return f}),l||(l=function(f){return f}),w||(w=function(f,b,E){return f.apply(b,E)}),S||(S=function(f,b){return new f(...b)});let A=C(Array.prototype.forEach),x=C(Array.prototype.pop),m=C(Array.prototype.push),d=C(String.prototype.toLowerCase),y=C(String.prototype.toString),L=C(String.prototype.match),N=C(String.prototype.replace),X=C(String.prototype.indexOf),Q=C(String.prototype.trim),k=C(Object.prototype.hasOwnProperty),P=C(RegExp.prototype.test),ee=he(TypeError);function C(T){return function(f){for(var b=arguments.length,E=new Array(b>1?b-1:0),U=1;U 2&&arguments[2]!==void 0?arguments[2]:d;t&&t(T,null);let E=f.length;for(;E--;){let U=f[E];if(typeof U=="string"){let K=b(U);K!==U&&(r(f)||(f[E]=K),U=K)}T[U]=!0}return T}function In(T){for(let f=0;f /gm),kn=l(/\${[\w\W]*}/gm),Pn=l(/^data-[\-\w.\u00B7-\uFFFF]/),Un=l(/^aria-[\-\w]+$/),It=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Hn=l(/^(?:\w+script|data):/i),Fn=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Rt=l(/^html$/i);var Mt=Object.freeze({__proto__:null,MUSTACHE_EXPR:Dn,ERB_EXPR:Nn,TMPLIT_EXPR:kn,DATA_ATTR:Pn,ARIA_ATTR:Un,IS_ALLOWED_URI:It,IS_SCRIPT_OR_DATA:Hn,ATTR_WHITESPACE:Fn,DOCTYPE_NAME:Rt});let Bn=function(){return typeof window>"u"?null:window},Wn=function(f,b){if(typeof f!="object"||typeof f.createPolicy!="function")return null;let E=null,U="data-tt-policy-suffix";b&&b.hasAttribute(U)&&(E=b.getAttribute(U));let K="dompurify"+(E?"#"+E:"");try{return f.createPolicy(K,{createHTML(re){return re},createScriptURL(re){return re}})}catch{return console.warn("TrustedTypes policy "+K+" could not be created."),null}};function Dt(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bn(),f=u=>Dt(u);if(f.version="3.0.9",f.removed=[],!T||!T.document||T.document.nodeType!==9)return f.isSupported=!1,f;let{document:b}=T,E=b,U=E.currentScript,{DocumentFragment:K,HTMLTemplateElement:re,Node:Ve,Element:Nt,NodeFilter:$e,NamedNodeMap:qn=T.NamedNodeMap||T.MozNamedAttrMap,HTMLFormElement:Gn,DOMParser:Vn,trustedTypes:Ce}=T,Ie=Nt.prototype,$n=Le(Ie,"cloneNode"),Yn=Le(Ie,"nextSibling"),jn=Le(Ie,"childNodes"),Ye=Le(Ie,"parentNode");if(typeof re=="function"){let u=b.createElement("template");u.content&&u.content.ownerDocument&&(b=u.content.ownerDocument)}let B,ge="",{implementation:je,createNodeIterator:Xn,createDocumentFragment:Kn,getElementsByTagName:Zn}=b,{importNode:Jn}=E,Y={};f.isSupported=typeof i=="function"&&typeof Ye=="function"&&je&&je.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Xe,ERB_EXPR:Ke,TMPLIT_EXPR:Ze,DATA_ATTR:Qn,ARIA_ATTR:eo,IS_SCRIPT_OR_DATA:to,ATTR_WHITESPACE:kt}=Mt,{IS_ALLOWED_URI:Pt}=Mt,R=null,Ut=h({},[...St,...We,...ze,...qe,...Lt]),M=null,Ht=h({},[...Ot,...Ge,...Ct,...Oe]),O=Object.seal(g(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}})),Ee=null,Je=null,Ft=!0,Qe=!0,Bt=!1,Wt=!0,se=!1,ne=!1,et=!1,tt=!1,ae=!1,Re=!1,Me=!1,zt=!0,qt=!1,no="user-content-",nt=!0,Ae=!1,le={},ce=null,Gt=h({},["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"]),Vt=null,$t=h({},["audio","video","img","source","image","track"]),ot=null,Yt=h({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),De="http://www.w3.org/1998/Math/MathML",Ne="http://www.w3.org/2000/svg",Z="http://www.w3.org/1999/xhtml",fe=Z,it=!1,rt=null,oo=h({},[De,Ne,Z],y),Te=null,io=["application/xhtml+xml","text/html"],ro="text/html",D=null,ue=null,so=b.createElement("form"),jt=function(o){return o instanceof RegExp||o instanceof Function},st=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ue&&ue===o)){if((!o||typeof o!="object")&&(o={}),o=te(o),Te=io.indexOf(o.PARSER_MEDIA_TYPE)===-1?ro:o.PARSER_MEDIA_TYPE,D=Te==="application/xhtml+xml"?y:d,R=k(o,"ALLOWED_TAGS")?h({},o.ALLOWED_TAGS,D):Ut,M=k(o,"ALLOWED_ATTR")?h({},o.ALLOWED_ATTR,D):Ht,rt=k(o,"ALLOWED_NAMESPACES")?h({},o.ALLOWED_NAMESPACES,y):oo,ot=k(o,"ADD_URI_SAFE_ATTR")?h(te(Yt),o.ADD_URI_SAFE_ATTR,D):Yt,Vt=k(o,"ADD_DATA_URI_TAGS")?h(te($t),o.ADD_DATA_URI_TAGS,D):$t,ce=k(o,"FORBID_CONTENTS")?h({},o.FORBID_CONTENTS,D):Gt,Ee=k(o,"FORBID_TAGS")?h({},o.FORBID_TAGS,D):{},Je=k(o,"FORBID_ATTR")?h({},o.FORBID_ATTR,D):{},le=k(o,"USE_PROFILES")?o.USE_PROFILES:!1,Ft=o.ALLOW_ARIA_ATTR!==!1,Qe=o.ALLOW_DATA_ATTR!==!1,Bt=o.ALLOW_UNKNOWN_PROTOCOLS||!1,Wt=o.ALLOW_SELF_CLOSE_IN_ATTR!==!1,se=o.SAFE_FOR_TEMPLATES||!1,ne=o.WHOLE_DOCUMENT||!1,ae=o.RETURN_DOM||!1,Re=o.RETURN_DOM_FRAGMENT||!1,Me=o.RETURN_TRUSTED_TYPE||!1,tt=o.FORCE_BODY||!1,zt=o.SANITIZE_DOM!==!1,qt=o.SANITIZE_NAMED_PROPS||!1,nt=o.KEEP_CONTENT!==!1,Ae=o.IN_PLACE||!1,Pt=o.ALLOWED_URI_REGEXP||It,fe=o.NAMESPACE||Z,O=o.CUSTOM_ELEMENT_HANDLING||{},o.CUSTOM_ELEMENT_HANDLING&&jt(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(O.tagNameCheck=o.CUSTOM_ELEMENT_HANDLING.tagNameCheck),o.CUSTOM_ELEMENT_HANDLING&&jt(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(O.attributeNameCheck=o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),o.CUSTOM_ELEMENT_HANDLING&&typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(O.allowCustomizedBuiltInElements=o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),se&&(Qe=!1),Re&&(ae=!0),le&&(R=h({},Lt),M=[],le.html===!0&&(h(R,St),h(M,Ot)),le.svg===!0&&(h(R,We),h(M,Ge),h(M,Oe)),le.svgFilters===!0&&(h(R,ze),h(M,Ge),h(M,Oe)),le.mathMl===!0&&(h(R,qe),h(M,Ct),h(M,Oe))),o.ADD_TAGS&&(R===Ut&&(R=te(R)),h(R,o.ADD_TAGS,D)),o.ADD_ATTR&&(M===Ht&&(M=te(M)),h(M,o.ADD_ATTR,D)),o.ADD_URI_SAFE_ATTR&&h(ot,o.ADD_URI_SAFE_ATTR,D),o.FORBID_CONTENTS&&(ce===Gt&&(ce=te(ce)),h(ce,o.FORBID_CONTENTS,D)),nt&&(R["#text"]=!0),ne&&h(R,["html","head","body"]),R.table&&(h(R,["tbody"]),delete Ee.tbody),o.TRUSTED_TYPES_POLICY){if(typeof o.TRUSTED_TYPES_POLICY.createHTML!="function")throw ee('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof o.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ee('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=o.TRUSTED_TYPES_POLICY,ge=B.createHTML("")}else B===void 0&&(B=Wn(Ce,U)),B!==null&&typeof ge=="string"&&(ge=B.createHTML(""));s&&s(o),ue=o}},Xt=h({},["mi","mo","mn","ms","mtext"]),Kt=h({},["foreignobject","desc","title","annotation-xml"]),ao=h({},["title","style","font","a","script"]),Zt=h({},[...We,...ze,...Rn]),Jt=h({},[...qe,...Mn]),lo=function(o){let a=Ye(o);(!a||!a.tagName)&&(a={namespaceURI:fe,tagName:"template"});let c=d(o.tagName),_=d(a.tagName);return rt[o.namespaceURI]?o.namespaceURI===Ne?a.namespaceURI===Z?c==="svg":a.namespaceURI===De?c==="svg"&&(_==="annotation-xml"||Xt[_]):!!Zt[c]:o.namespaceURI===De?a.namespaceURI===Z?c==="math":a.namespaceURI===Ne?c==="math"&&Kt[_]:!!Jt[c]:o.namespaceURI===Z?a.namespaceURI===Ne&&!Kt[_]||a.namespaceURI===De&&!Xt[_]?!1:!Jt[c]&&(ao[c]||!Zt[c]):!!(Te==="application/xhtml+xml"&&rt[o.namespaceURI]):!1},oe=function(o){m(f.removed,{element:o});try{o.parentNode.removeChild(o)}catch{o.remove()}},at=function(o,a){try{m(f.removed,{attribute:a.getAttributeNode(o),from:a})}catch{m(f.removed,{attribute:null,from:a})}if(a.removeAttribute(o),o==="is"&&!M[o])if(ae||Re)try{oe(a)}catch{}else try{a.setAttribute(o,"")}catch{}},Qt=function(o){let a=null,c=null;if(tt)o=" "+o;else{let F=L(o,/^[\r\n\t ]+/);c=F&&F[0]}Te==="application/xhtml+xml"&&fe===Z&&(o='+o+");let _=B?B.createHTML(o):o;if(fe===Z)try{a=new Vn().parseFromString(_,Te)}catch{}if(!a||!a.documentElement){a=je.createDocument(fe,"template",null);try{a.documentElement.innerHTML=it?ge:_}catch{}}let H=a.body||a.documentElement;return o&&c&&H.insertBefore(b.createTextNode(c),H.childNodes[0]||null),fe===Z?Zn.call(a,ne?"html":"body")[0]:ne?a.documentElement:H},en=function(o){return Xn.call(o.ownerDocument||o,o,$e.SHOW_ELEMENT|$e.SHOW_COMMENT|$e.SHOW_TEXT,null)},co=function(o){return o instanceof Gn&&(typeof o.nodeName!="string"||typeof o.textContent!="string"||typeof o.removeChild!="function"||!(o.attributes instanceof qn)||typeof o.removeAttribute!="function"||typeof o.setAttribute!="function"||typeof o.namespaceURI!="string"||typeof o.insertBefore!="function"||typeof o.hasChildNodes!="function")},tn=function(o){return typeof Ve=="function"&&o instanceof Ve},J=function(o,a,c){Y[o]&&A(Y[o],_=>{_.call(f,a,c,ue)})},nn=function(o){let a=null;if(J("beforeSanitizeElements",o,null),co(o))return oe(o),!0;let c=D(o.nodeName);if(J("uponSanitizeElement",o,{tagName:c,allowedTags:R}),o.hasChildNodes()&&!tn(o.firstElementChild)&&P(/<[/\w]/g,o.innerHTML)&&P(/<[/\w]/g,o.textContent))return oe(o),!0;if(!R[c]||Ee[c]){if(!Ee[c]&&rn(c)&&(O.tagNameCheck instanceof RegExp&&P(O.tagNameCheck,c)||O.tagNameCheck instanceof Function&&O.tagNameCheck(c)))return!1;if(nt&&!ce[c]){let _=Ye(o)||o.parentNode,H=jn(o)||o.childNodes;if(H&&_){let F=H.length;for(let W=F-1;W>=0;--W)_.insertBefore($n(H[W],!0),Yn(o))}}return oe(o),!0}return o instanceof Nt&&!lo(o)||(c==="noscript"||c==="noembed"||c==="noframes")&&P(/<\/no(script|embed|frames)/i,o.innerHTML)?(oe(o),!0):(se&&o.nodeType===3&&(a=o.textContent,A([Xe,Ke,Ze],_=>{a=N(a,_," ")}),o.textContent!==a&&(m(f.removed,{element:o.cloneNode()}),o.textContent=a)),J("afterSanitizeElements",o,null),!1)},on=function(o,a,c){if(zt&&(a==="id"||a==="name")&&(c in b||c in so))return!1;if(!(Qe&&!Je[a]&&P(Qn,a))){if(!(Ft&&P(eo,a))){if(!M[a]||Je[a]){if(!(rn(o)&&(O.tagNameCheck instanceof RegExp&&P(O.tagNameCheck,o)||O.tagNameCheck instanceof Function&&O.tagNameCheck(o))&&(O.attributeNameCheck instanceof RegExp&&P(O.attributeNameCheck,a)||O.attributeNameCheck instanceof Function&&O.attributeNameCheck(a))||a==="is"&&O.allowCustomizedBuiltInElements&&(O.tagNameCheck instanceof RegExp&&P(O.tagNameCheck,c)||O.tagNameCheck instanceof Function&&O.tagNameCheck(c))))return!1}else if(!ot[a]){if(!P(Pt,N(c,kt,""))){if(!((a==="src"||a==="xlink:href"||a==="href")&&o!=="script"&&X(c,"data:")===0&&Vt[o])){if(!(Bt&&!P(to,N(c,kt,"")))){if(c)return!1}}}}}}return!0},rn=function(o){return o!=="annotation-xml"&&o.indexOf("-")>0},sn=function(o){J("beforeSanitizeAttributes",o,null);let{attributes:a}=o;if(!a)return;let c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M},_=a.length;for(;_--;){let H=a[_],{name:F,namespaceURI:W,value:ie}=H,be=D(F),z=F==="value"?ie:Q(ie);if(c.attrName=be,c.attrValue=z,c.keepAttr=!0,c.forceKeepAttr=void 0,J("uponSanitizeAttribute",o,c),z=c.attrValue,c.forceKeepAttr||(at(F,o),!c.keepAttr))continue;if(!Wt&&P(/\/>/i,z)){at(F,o);continue}se&&A([Xe,Ke,Ze],ln=>{z=N(z,ln," ")});let an=D(o.nodeName);if(on(an,be,z)){if(qt&&(be==="id"||be==="name")&&(at(F,o),z=no+z),B&&typeof Ce=="object"&&typeof Ce.getAttributeType=="function"&&!W)switch(Ce.getAttributeType(an,be)){case"TrustedHTML":{z=B.createHTML(z);break}case"TrustedScriptURL":{z=B.createScriptURL(z);break}}try{W?o.setAttributeNS(W,F,z):o.setAttribute(F,z),x(f.removed)}catch{}}}J("afterSanitizeAttributes",o,null)},fo=function u(o){let a=null,c=en(o);for(J("beforeSanitizeShadowDOM",o,null);a=c.nextNode();)J("uponSanitizeShadowNode",a,null),!nn(a)&&(a.content instanceof K&&u(a.content),sn(a));J("afterSanitizeShadowDOM",o,null)};return f.sanitize=function(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=null,c=null,_=null,H=null;if(it=!u,it&&(u=" f.removed=sty "),c=a.ownerDocument.importNode(u,!0),c.nodeType===1&&c.nodeName==="BODY"||c.nodeName==="HTML"?a=c:a.appendChild(c);else{if(!ae&&!se&&!ne&&u.indexOf("<")===-1)return B&&Me?B.createHTML(u):u;if(a=Qt(u),!a)return ae?null:Me?ge:""}a&&tt&&oe(a.firstChild);let F=en(Ae?u:a);for(;_=F.nextNode();)nn(_)||(_.content instanceof K&&fo(_.content),sn(_));if(Ae)return u;if(ae){if(Re)for(H=Kn.call(a.ownerDocument);a.firstChild;)H.appendChild(a.firstChild);else H=a;return(M.shadowroot||M.shadowrootmode)&&(H=Jn.call(E,H,!0)),H}let W=ne?a.outerHTML:a.innerHTML;return ne&&R["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&P(Rt,a.ownerDocument.doctype.name)&&(W="`+W),se&&A([Xe,Ke,Ze],ie=>{W=N(W,ie," ")}),B&&Me?B.createHTML(W):W},f.setConfig=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st(u),et=!0},f.clearConfig=function(){ue=null,et=!1},f.isValidAttribute=function(u,o,a){ue||st({});let c=D(u),_=D(o);return on(c,_,a)},f.addHook=function(u,o){typeof o=="function"&&(Y[u]=Y[u]||[],m(Y[u],o))},f.removeHook=function(u){if(Y[u])return x(Y[u])},f.removeHooks=function(u){Y[u]&&(Y[u]=[])},f.removeAllHooks=function(){Y={}},f}var zn=Dt();return zn})});function bo(i){return i!=null&&i===i.window}var ke=bo;function fn(i,t=null){if(i instanceof HTMLElement||i instanceof Node||ke(i))return[i];if(i instanceof NodeList)return[].slice.call(i);if(typeof i=="string"){let r=t?fn(t)[0]:document;return[].slice.call(r.querySelectorAll(i))}return[]}var p=fn;function un(i,t){if(Array.isArray(i))return i.forEach(e=>un(e,t));let r=p(i);if(r.length){let e=[].concat(t);return r.forEach(n=>{e.forEach(s=>{n.classList.add(s)})}),r}}var q=un;function dn(i,t,r,e){if(Array.isArray(i)){i.forEach(g=>dn(g,t,r,e));return}let n={};typeof e=="boolean"?n.capture=e:typeof e=="object"&&(n=Object.assign({},e));let s={cb:r,options:n};window._domassistevents||(window._domassistevents={}),window._domassistevents[`_${t}`]=s;let l=p(i);l.length&&l.forEach(g=>{g.addEventListener(t,r,n)})}var I=dn;function yo(i,t){let r=p(i,t);return r.length?r[0]:null}var G=yo;function wo(){try{let i=new CustomEvent("t",{detail:{a:"b"}});return i.type==="t"&&i.detail.a==="b"}catch{return!1}}var xo=function(t,r){let e=document.createEvent("CustomEvent");return r?e.initCustomEvent(t,r.bubbles,r.cancelable,r.detail):e.initCustomEvent(t,!1,!1,void 0),e},lt=!1;function hn(i,t,r={}){if(Array.isArray(i))return i.forEach(n=>hn(n,t,r));lt||(lt=wo()?CustomEvent:xo);let e=p(i);if(e.length)return r.bubbles!==!1&&(r.bubbles=!0),e.forEach(n=>{let s=new lt(t,r);n.dispatchEvent(s)}),e}var V=hn;function En(i,t){if(Array.isArray(i))return i.forEach(e=>En(e,t));let r=p(i);if(r.length){let e=[].concat(t);return r.forEach(n=>{e.forEach(s=>{n.classList.remove(s)})}),r}}var j=En;function An(i,t){if(Array.isArray(i))return i.forEach(e=>An(e,t));let r=p(i);if(r.length){let e=[].concat(t);return r.forEach(n=>{e.forEach(s=>{n.classList.toggle(s)})}),r}}var $=An;var _o=i=>t=>{i.push(t);function r(){for(;i.length;){let n=i.shift();typeof n=="function"&&n()}}function e(){document.removeEventListener("DOMContentLoaded",e),r()}setTimeout(()=>{if(document.readyState!=="loading")return r()},0),document.addEventListener("DOMContentLoaded",e)},vo=_o([]),de=vo;function Tn(i,t){Array.isArray(i)&&i.forEach(e=>Tn(e,t));let r=p(i);r.length&&r.forEach(e=>{Object.keys(t).forEach(n=>{e.style[n]=t[n]})})}var ye=Tn;function bn(i,t){if(Array.isArray(i))return i.forEach(e=>bn(e,t));let r=p(i);return r.length&&r.forEach(e=>{Object.keys(t).forEach(n=>{n in e?e[n]=t[n]:e.dataset[n]=t[n]})}),r}var Pe=bn;function yn(i,t){Array.isArray(i)&&i.forEach(e=>yn(e,t));let r=p(i);if(r.length){let e=r.length;for(let n=0;n wn(e,t));let r=p(i,t);r.length&&r.forEach(e=>{e.prototype&&e.prototype.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)})}var Ue=wn;function Ho(i,t){var r={};return Object.keys(t.dataset).forEach(function(e){if(e.match(new RegExp("^"+i))&&e!==i){var n=e.replace(i,""),s=!1;n.match(/^Global/)&&(n=n.replace("Global",""),s=!0),n=""+n[0].toLowerCase()+n.slice(1),s?r[n]=window[t.dataset[e]]:r[n]=t.dataset[e],(typeof r[n]>"u"||r[n]==="")&&(r[n]=!0)}}),r}var xe=Ho;var He=function(){var i=[].slice.call(arguments);return i.unshift(!1),xn.apply(null,i)};function xn(){var i=[].slice.call(arguments),t=i[0],r={};return i.slice(1,i.length).forEach(function(e){Object.keys(e).forEach(function(n){if(!t||i[1][n]!==void 0){var s=e[n];r[n]=Array.isArray(s)||typeof s!="object"||typeof r[n]!="object"?s:(t?He.defaults:He)(r[n],s)}})}),r}He.defaults=function(){var i=[].slice.call(arguments);return i.unshift(!0),xn.apply(null,i)};var _n=He;function ct(i){return i.parentNode?JSON.parse(JSON.stringify(i.parentNode.dataset)).module?i.parentNode:ct(i.parentNode):i}var me={find:p,findOne:G,on:I},_e=function(){function i(e,n){return n===void 0&&(n=""),this.log("begin setup"),this.el=e,this.els={},this.options=_n({},this.defaults,xe("module",this.el)),this.moduleName=n||this.el.dataset.module,this.setUps={actions:[],named:[],options:[]},this.boundActionRouter=this.actionRouter.bind(this),this.preInit(),this.storeRef(),this.setupActions(),this.setupNamed(),this.verifyRequired(),this.postInit(),this.log("initalized"),i.debug&&(this.el.module=this),this}var t,r=i.prototype;return r.preInit=function(){},r.postInit=function(){},r.verifyRequired=function(){var e=this;return this.required==={}||(this.required.options!==void 0&&(this.setUps.options=Object.keys(this.options)),Object.keys(this.required).forEach(function(n){e.required[n].forEach(function(s){if(e.setUps[n].indexOf(s)<0)throw new Error(s+" is required as "+n+" for "+e.moduleName+", but is missing!")})})),this},r.setupActions=function(){var e=this;this.setupAction(this.el),this.find("[data-action]").forEach(function(n){ct(n)===e.el&&e.setupAction(n)})},r.setupAction=function(e){if(e.dataset.domoduleActionProcessed!=="true"){var n=i.parseAction(e),s=n.name,l=n.type;s&&(typeof this[s]=="function"?(this.log(s+" bound"),this.storeSetUp(s,"actions"),me.on(e,l,this.boundActionRouter),e.dataset.domoduleActionProcessed="true"):this.log(s+" was registered, but there is no function set up"))}},r.actionRouter=function(e){var n=e.currentTarget,s=i.parseAction(n).name,l=xe("action",n);this[s].call(this,n,e,l)},r.setupNamed=function(){var e=this;this.find("[data-name]").forEach(function(n){ct(n)===e.el&&(n.dataset.domoduleNameProcessed||(e.els[n.dataset.name]=n,e.storeSetUp(n.dataset.name,"named"),n.dataset.domoduleNameProcessed="true",n.dataset.domoduleOwner=e.id))})},r.storeRef=function(){if(window.domorefs===void 0&&(window.domorefs={}),window.domorefs[this.el.dataset.moduleUid]!==void 0)return!1;this.id=this.uuid,this.el.dataset.moduleUid=this.id,window.domorefs[this.el.dataset.moduleUid]=this},r.find=function(e){return me.find(e,this.el)},r.findOne=function(e){return me.findOne(e,this.el)},r.findByName=function(e){return this.els[e]},r.getOption=function(e){return this.options[e]},r.storeSetUp=function(e,n){this.setUps[n].indexOf(e)<0&&this.setUps[n].push(e)},r.destroy=function(){var e=this;me.find("[data-action]",this.el.parentNode).forEach(function(n){if(n.dataset.domoduleActionProcessed==="true"){var s=i.parseAction(n);n.removeEventListener(s.type,e.boundActionRouter),n.dataset.domoduleActionProcessed="false"}})},i.parseAction=function(e){var n=e.dataset,s=n.actionType;return{name:n.action,type:s===void 0?"click":s}},i.getInstance=function(e){if(e instanceof Node)return window.domorefs[e.dataset.moduleUid];throw new Error("getInstance expects a dom node")},i.register=function(e,n){typeof e=="function"&&(e=(n=e).prototype.constructor.name),window.domodules||(window.domodules={}),i.log("Registering "+e),window.domodules[e]=n},i.discover=function(e){if(e===void 0&&(e="body"),i.log("Discovering modules..."),window.domodules){var n;n=e instanceof Node?[e]:Array.isArray(e)?e:me.find(e);var s=[];return n.forEach(function(l){me.find("[data-module]",l).forEach(function(g){var w=g.dataset.module;if(w&&typeof window.domodules[w]=="function"){if(typeof window.domorefs=="object"&&window.domorefs[g.dataset.moduleUid]!==void 0)return;i.log(w+" found"),s.push(new window.domodules[w](g))}})}),s}i.log("No modules found")},r.log=function(e){i.log(this.constructor.name+": "+e)},i.log=function(e){i.debug&&console.log("[DOMODULE] "+e)},(t=[{key:"required",get:function(){return{}}},{key:"defaults",get:function(){return{}}},{key:"uuid",get:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random()|0;return(e==="x"?n:3&n|8).toString(16)})}}])&&function(e,n){for(var s=0;s li");t&&t.forEach(r=>{r.addEventListener("mouseover",this.subMenuActive.bind(this))})}isInViewport(t){let r=t.getBoundingClientRect(),e=r.left<0,n=r.right>(window.innerWidth||document.documentElement.clientWidth),s={isInView:!0,outsideView:"none"};return e&&(s.isInView=!1,s.outsideView="left"),n&&(s.isInView=!1,s.outsideView="right"),s}subMenuActive(t){let r=t.target.closest(".menu-item-has-children"),e=r.querySelector(".sub-menu");r.classList.toggle("sub-menu-active");let n=this.isInViewport(e);n.isInView===!1&&n.outsideView==="left"&&e.classList.add("shift-right"),n.isInView===!1&&n.outsideView==="right"&&e.classList.add("shift-left")}};v.register("MainNav",ut);function Fo(i){let t={};if(typeof i=="string"&&i==="meta"?t=r():typeof i=="string"&&i==="custom"?t=e():t=i,Object.keys(t).length===0)throw new Error("No breakpoints defined");function r(){let A=document.createElement("meta");A.classList.add("breakpoint-helper"),document.getElementsByTagName("head")[0].appendChild(A);let x=window.getComputedStyle(A).getPropertyValue("font-family");return x.length<=0?{}:(x=x.replace(/'|"/g,"").split("&"),x.reduce((m,d)=>{let[y,L]=d.split("=");return m[y]=L,m},{}))}function e(){return[...Array.from(document.styleSheets).filter(m=>m?.href?.indexOf(window.location.origin)!==-1)].reduce((m,d)=>(Array.from(d.cssRules).forEach(y=>{y instanceof CSSStyleRule&&y.selectorText===":root"&&y.cssText.split("{")[1].replace("}","").split(";").forEach(N=>{let[X,Q]=N.split(":");X.indexOf("--bph-")!==-1&&(m[X.replace("--bph-","").trim()]=Q.trim())})}),m),{})}function n(A,x=!1){let m=[];return A.forEach(d=>{g(d,x)&&m.push(d)}),x?m:m.reverse()}function s(){return t}function l(A,x=!1){if(Array.isArray(A)){let[d,y]=A;return`${l(d)} and ${l(y,!0)}`}let m=t[A];if(typeof m>"u")throw new Error(`"${A}" does not seem to be a breakpoint name`);if(x){let d=parseFloat(m),y=m.replace(d,"");return`(max-width: ${d-(y==="em"?.0635:1)}${y})`}return`(min-width: ${m})`}function g(A,x=!1){return window.matchMedia(l(A,x)).matches}function w(A,x){let m=null,d={name:"",useMax:!1,immediate:!0};typeof A=="string"||Array.isArray(A)?d.name=A:(d.name=A.name,d.useMax=A.useMax||!1,d.immediate=typeof A.immediate>"u"?!0:A.immediate);function y(){typeof d.name=="string"||Array.isArray(d.name)?m=window.matchMedia(l(d.name)):m=window.matchMedia(l(d.name,d.useMax)),d.immediate&&x(m),m.addEventListener("change",x)}y();function L(){m&&(m.removeEventListener("change",x),m=null)}return{on:y,off:L}}function S(A,x={}){let m=Object.keys(t),d=[],y=m;if(m.length===0)return{on:()=>{},off:()=>{}};let{useMax:L,immediate:N,listenTo:X}=x,Q={useMax:L||!1,immediate:typeof N>"u"?!0:N};X&&(y=X.sort((C,he)=>parseInt(t[C],10)-parseInt(t[he],10)));let k=()=>{A(n(y,Q.useMax))};function P(){y.forEach(C=>{let he=w({name:C,useMax:Q.useMax,immediate:!1},k);d.push(he)}),Q.immediate&&k()}P();function ee(){d.length&&(d.forEach(C=>C.off()),d=[])}return{on:P,off:ee}}return{getBreakpoints:s,getMediaQuery:l,isMatching:g,listen:w,listenAll:S}}var vn=Fo;var Bo={xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Wo=vn(Bo),{getBreakpoints:ps,getMediaQuery:hs,isMatching:gs,listen:Es,listenAll:Fe}=Wo;var dt=class extends v{postInit(){this.config={sm:{paddedCount:0},md:{paddedCount:2}},this.paddedCount=this.config.md.paddedCount,this.paginationItems=this.find(".page-numbers:not(.prev):not(.next)"),this.currentPageEl=this.findOne(".page-numbers.current"),this.currentPageEl||(this.currentPageEl=this.paginationItems?.[0]),this.currentPageEl||console.warn("No pagination items found"),this.currentPage=parseInt(this.currentPageEl.textContent,10),this.totalPages=this.paginationItems.length,this.listener=Fe(this.checkBreakpoint.bind(this),{useMax:!0})}checkBreakpoint(t){let r=t[0],e=this.config?.[r]||this.config.md;this.paddedCount=e.paddedCount,this.reset()}reset(){if(j(this.paginationItems,"hidden"),Ue(this.find(".page-numbers.dots")),this.currentPage-this.paddedCount>this.paddedCount){for(let t=1;t 2&&this.paginationItems?.[Math.min(1,this.currentPage-(this.paddedCount?2:1)-this.paddedCount)].insertAdjacentHTML("afterend",' ')}if(this.currentPage .')}q(this.hideList,"hidden"),this.setupActions()}show(){j(this.paginationItems,"hidden"),q(this.find(".dots"),"hidden")}};v.register("PaginateSEO",dt);var mt=class extends v{postInit(){this.els.headerElsContainer.addEventListener("click",this.closeSearchWrapper.bind(this)),this.menu=this.findOne(".hamburger-menu"),this.menu&&this.hideSubMenus(this.menu)}closeOpenSubMenus(t){t.forEach(r=>{r.querySelector(".sub-menu").classList.add("collapsed"),r.classList.remove("sub-menu-open")})}toggleSubMenuClick(t){let r=t.target.closest("a"),e=r.parentNode,n=this.els.menuWrapper.querySelectorAll("li.sub-menu-open"),s=r.nextElementSibling;e.classList.contains("menu-item-has-children")?t.preventDefault():e.classList.contains("sub-menu-open")?(s.classList.add("collapsed"),e.classList.remove("sub-menu-open")):this.els.menuWrapper.classList.toggle("menu-collapsed"),s.classList.remove("collapsed"),e.classList.toggle("sub-menu-open"),n.length&&this.closeOpenSubMenus(n)}handleSubMenuItemClick(){this.els.menuWrapper.classList.add("menu-collapsed")}hideSubMenus(t){t.querySelectorAll(".menu-item-has-children").forEach(e=>{let n=e.querySelector(".sub-menu"),l=`${e.getAttribute("id")}-sub-menu`;n.classList.add("collapsed"),n.setAttribute("id",l),e.setAttribute("aria-controls",l),G(".dropdown-menu-caret",e).addEventListener("click",g=>(this.toggleSubMenuClick(g),!1))})}menuClose(){let t=this.els.menuWrapper.querySelectorAll("li.sub-menu-open");t.length&&this.closeOpenSubMenus(t),this.els.menuWrapper.setAttribute("aria-expanded","false"),this.els.menuWrapper.classList.add("menu-collapsed")}hamburgerClick(){this.els.menuWrapper?(this.els.menuWrapper.setAttribute("aria-expanded","true"),this.els.menuWrapper.classList.remove("menu-collapsed")):console.log("No mobile menu found.")}closeSearchWrapper(t){let r=t.target;r.closest(".search-icon")||r.closest(".search-form")||(this.els.searchFormWrapperHamburger.classList.contains("hidden")||this.els.searchFormWrapperHamburger.classList.add("hidden"),this.els.searchFormWrapperHeader.classList.contains("hidden")||this.els.searchFormWrapperHeader.classList.add("hidden"))}searchIconClick(t){t.getAttribute("data-location")==="hamburger"?this.els.searchFormWrapperHamburger.classList.remove("hidden"):this.els.searchFormWrapperHeader.classList.remove("hidden")}};v.register("SiteHeader",mt);de(()=>{let i=p(".schema-faq-section");Pe(i,{module:"YoastFAQ"}),v.discover()});var pt=class extends v{postInit(){let t=this.findOne(".schema-faq-question"),r=t.innerHTML;we(t,` ${r} `),I(this.findOne(".schema-faq-question-button"),"click",()=>{$(this.el,"show-answer"),$(this.el,"minus-icon")})}};v.register("YoastFAQ",pt);var yt=To(Sn());var zo=function(t,r,e){var n;return function(){var s=this,l=arguments,g=function(){n=null,e||t.apply(s,l)},w=e&&!n;clearTimeout(n),n=setTimeout(g,r),w&&t.apply(s,l)}},Et=zo;var pe={In:"scrolltriggers:inView",Out:"scrolltriggers:outOfView",Pause:"scrolltriggers:pause",Resume:"scrolltriggers:resume",Bounds:"scrolltriggers:bounds"},At=function(){function i(r,e){var n=this;r.hasAttribute("data-scroll-init")||(this.added=!1,this.el=r,this.options=e,this.eventHandler=Et(this.onScroll.bind(this),10,!0),this.dCalcBounds=Et(this.calcBounds.bind(this),10),this.paused=!1,this.disabled=!1,this.calcOffset(),(this.options.image||this.options.src||this.options.srcset)&&(this.options.once=!0),r.setAttribute("data-scroll-init","true"),this.calcBounds(),window.addEventListener("scroll",this.eventHandler),window.addEventListener("resize",this.dCalcBounds),I(this.el,pe.Pause,function(){n.paused=!0}),I(this.el,pe.Resume,function(){n.paused=!1}),setTimeout(this.eventHandler,400))}var t=i.prototype;return t.calcBounds=function(){var e=this;this.calcOffset();var n=this.options.progress===!0||typeof this.options.fixed<"u";if(!this.el.offsetParent&&!n||this.added&&this.options.once){this.disabled=!0;return}if(this.disabled=!1,n&&this.added)return this.outOfView(),requestAnimationFrame(function(){return e.calcBounds()});var s=this.options.position||"bottom";this.startEl=this.options.start?G(this.options.start):this.el,i.checkElement(this.startEl,"start",this.options.start);var l=this.startEl.getBoundingClientRect(),g=i.getScrollY(),w=l.top+g+(this.options.offset||0);if(this.start=i.processPosition(s,w),this.options.end){var S=G(this.options.end),A=S.getBoundingClientRect(),x=A.top+g,m=this.options.positionEnd||"bottom";m==="auto"&&(m="top"),this.end=i.processPosition(m,x),this.options.positionEnd==="auto"&&(this.end-=this.el.offsetHeight),i.checkElement(S,"end",this.options.end)}this.fire(pe.Bounds),this.eventHandler()},t.calcOffset=function(){this.options.offset=this.options.offset?this.options.offset:this.el.dataset.scrollOffset,this.options.image||this.options.srcset||this.options.offset==="auto"?this.options.offset=Math.max(document.documentElement.clientHeight,window.innerHeight,0)*-1:this.options.offset=parseInt(this.options.offset||0,10)},t.inView=function(){var e=this.options,n=e.className,s=e.inView;n&&this.el.classList&&q(this.el,n);var l=this.options.image,g=this.options.src,w=this.options.srcset;if(l||g){var S=l||g;switch(this.el.tagName){case"IMG":case"IFRAME":case"VIDEO":case"SCRIPT":this.el.setAttribute("src",S);break;default:ye(this.el,{backgroundImage:"url("+S+")",backgroundRepeat:"no-repeat"})}}w&&this.el.setAttribute("srcset",w),typeof s=="function"&&s(this.el,this.options),this.fire(pe.In),this.options.once&&(this.disabled=!0,window.removeEventListener("scroll",this.eventHandler),window.removeEventListener("resize",this.dCalcBounds)),this.added=!0},t.outOfView=function(){var e=this.options,n=e.className,s=e.outOfView;n&&this.el.classList&&j(this.el,n),typeof s=="function"&&s(this.el,this.options),this.fire(pe.Out),this.added=!1},t.fire=function(e){V(this.el,e,{detail:{instance:this,options:this.options}})},t.onScroll=function(){var e=i.getScrollY();if(!(this.paused||this.disabled)){if(this.options.progress){var n=e/(document.documentElement.scrollHeight-window.innerHeight);this.el.style.width=n*100+"%"}if(e this.end){this.added&&this.outOfView();return}this.added||this.inView()}},i.checkElement=function(e,n,s){if(!e)throw new Error(n+` element doesn't match any element with selector: "`+s+'"')},i.getScrollY=function(){return window.pageYOffset||document.documentElement.scrollTop},i.processPosition=function(e,n){return e==="top"||(e==="middle"?n-=window.innerHeight/2:e==="bottom"?n-=window.innerHeight:n-=window.innerHeight*(parseInt(e,10)/100)),n},i}(),Be=function(t){var r=[];if(t&&Array.isArray(t))t.forEach(function(n){var s=p(n.el);if(s===null)throw new Error("unknown element");s.forEach(function(l){delete n.el,r.push(new At(l,n))})});else{if(t)throw new Error("please convert object to array");var e=p("[data-scroll]");e.forEach(function(n){var s=xe("scroll",n);s.progress!==null&&typeof s.progress<"u"&&(s.progress=!0),s.className=s.class,s.offset&&(s.offset=parseInt(s.offset,10)),typeof s.once<"u"&&(s.once=!0),r.push(new At(n,s))})}return r};document.readyState!=="complete"&&document.addEventListener("readystatechange",function(){document.readyState==="complete"&&V(window,"resize")});de(Be);Be.Events=pe;Be.ScrollTrigger=At;var Ln=Be;var On=1e3,qo=function(t,r,e,n){return(t/=n/2)<1?e/2*t*t*t*t+r:-e/2*((t-=2)*t*t*t-2)+r},Go=function i(t,r,e,n){n===void 0&&(n=function(){});var s=new Date().getTime(),l=e-r,g=l<0;if(l!==0){var w=s-t,S=Math.round(qo(w,r,l,On));if(!g&&S>e&&(S=e),g&&S On&&(S=e),window.scrollTo(0,S),S===e){setTimeout(n);return}S<0||window.requestAnimationFrame(function(){return i(t,r,e,n)})}},Tt=function(t,r,e,n){if(e===void 0&&(e=0),n===void 0&&(n=!1),!!t){V(t,"smoothscroll:start",{bubbles:!0});var s=t.getBoundingClientRect(),l=window.pageYOffset||document.documentElement.scrollTop,g=Math.round(s.top+l)+e,w=new Date;t.hasAttribute("tabindex")||(t.tabIndex="-1"),n||window.history.pushState(null,"Scroll",r),Go(w.getTime(),l,g,function(){V(t,"smoothscroll:end",{bubbles:!0})}),t.focus()}},Vo=function(t,r){t.dataset.smoothActive||(t.dataset.smoothActive=!0,t.addEventListener("click",function(e){var n=t.getAttribute("href");n[0]==="#"&&(e.preventDefault(),Tt(document.querySelector(n),n,r))}))},bt=function(t,r){if(t===void 0&&(t="[data-smooth]"),r===void 0&&(r=0),!!window.requestAnimationFrame){var e=t;typeof t=="string"&&(e=document.querySelectorAll(t)),e instanceof Element&&(e=[e]);for(var n=0,s=e.length;n {if(n.offsetTop>this.els.TocContent.offsetHeight+this.els.TocContent.scrollTop-16){let l=n.querySelector("a");l.classList.add("toc-hidden"),l.setAttribute("tabIndex","-1"),r++}});let e=r>0?`Show ${r} more`:"Show more";r>0&&(this.els.TocToggleText.innerText=`Show ${r} more`,q(this.els.TocToggle,"inline-block"),j(this.els.TocToggle,"hidden")),I(this.els.TocToggle,"click",()=>{let n=this.els.TocToggle.getAttribute("aria-expanded")==="true"?"false":"true";this.els.TocToggle.setAttribute("aria-expanded",n),$(this.els.TocContent,"show-more");let s=this.els.TocToggle.innerText;s.includes("more")?(this.els.TocContent.querySelectorAll(".toc-hidden").forEach(g=>{g.removeAttribute("tabIndex")}),this.els.TocToggleText.innerText="Show less"):s.includes("less")&&(this.els.TocContent.querySelectorAll(".toc-hidden").forEach(g=>{g.setAttribute("tabIndex","-1")}),this.els.TocToggleText.innerText=e)})}init(t){if(!t){t=p("[data-toc]"),t.forEach(d=>this.init(d));return}if(!t)return;let r=document.body.querySelector("div[data-toc-container]"),e=t.dataset.toc.split(",").map(d=>d.trim()),n=[],s=t.dataset.tocOffset?parseInt(t.dataset.tocOffset,10):1,l=1;e.forEach(d=>{p(d,r).forEach(L=>{let N=L.id||`toc-${l++}`,X=L.dataset.tocTitle?L.dataset.tocTitle.trim():L.textContent.trim(),k=`toc-${d.replace(/((:+[\w-\d]*)|[^A-z0-9-\s])/g," ").replace(/\s{2,}/g," ").trim()}`;L.id!==N&&(L.id=N),n.push({index:N,text:X,className:k})})});let g="
    ",w=[];n.forEach((d,y)=>{let L=n[y+1],N={el:`.toc-li-${y}`,fixed:"true",start:`#${d.index}`,position:"top",positionEnd:"top",className:"toc-active",offset:"-20px"};g+=`
  • $d.text
  • `,L&&(N.end=`#${L.index}`),w.push(N)}),g+="
";let S=yt.sanitize(g);t.innerHTML=S;let A=p("li",t),x=p("a",t);Ln(w),bt(x,s),I(document.body,"smoothscroll:start",()=>{V(A,"scrolltriggers:pause")}),I(document.body,"smoothscroll:end",()=>{V(A,"scrolltriggers:resume"),V(window,"scroll")});let m=yt.sanitize(window.location.hash);m&&x.some(d=>{let y=d.getAttribute("href")===m;return y&&setTimeout(()=>{let L=G(m);L&&Tt(L,null,s,!0)}),y})}};v.register("TableOfContents",wt);var xt=class extends v{postInit(){I(this.els.SourcesToggle,"click",()=>{let t=this.els.SourcesToggle.getAttribute("aria-expanded")==="true"?"false":"true";this.els.SourcesToggle.setAttribute("aria-expanded",t),$(this.els.SourcesContent,"show")})}};v.register("ArticleSourcesBlock",xt);var _t=class extends v{postInit(){this.menuItems=this.el.querySelectorAll(".menu-item-has-children > a"),this.listener=Fe(this.checkBreakpoint.bind(this),{useMax:!0})}checkBreakpoint(t){let r=t[0];["xs","sm","md","lg","xl"].includes(r)?this.activateMenu():this.deactivateMenu()}clickHandler(t){t.preventDefault();let e=t.currentTarget.closest(".menu-item-has-children").querySelector(".sub-menu");e.style.display=e.style.display==="block"?"none":"block",t.currentTarget.classList.toggle("open")}activateMenu(){this.menuItems.forEach(t=>{let r=t.nextElementSibling;r.style.display="none",t.querySelector(".dropdown-menu-caret").addEventListener("click",this.clickHandler)})}deactivateMenu(){this.menuItems.forEach(t=>{let r=t.nextElementSibling;r.style.display="block",t.removeEventListener("click",this.clickHandler)})}};v.register("FooterNav",_t);var Se=document.querySelectorAll('main article a[href*="amazon."], main article a[href*="amazn."]'),vt=window._amznParam,Cn=new Date,$o=Cn.getDate().toString().padStart(2,0)+Cn.getHours().toString().padStart(2,0),ve=encodeURI(vt.substring(0,17)+window.innerWidth+window.innerHeight+vt.substring(25,35)+$o+vt.substring(39));window?._amznTag&&Se.forEach(i=>{if(i.getAttribute("href").includes("tag="))return;let t=i.getAttribute("href").replace(/\?tag=[^&#]+&/,"?").replace(/\?tag=[^&#]+/,"").replace(/&tag=[^&#]+/,"");i.setAttribute("href",`${t}${t.includes("?")>0?"&":"?"}tag=${window._amznTag}`)});var Yo=i=>{if(i&&i.preventDefault(),Se.length<1)return;let t=window.innerWidth.toString().substring(0,4).padStart(4,0),r=window.innerHeight.toString().substring(0,4).padStart(4,0),e=ve.substring(0,17)+t+r+ve.substring(25);Se.forEach(n=>{n.setAttribute("href",n.getAttribute("href").replace(ve,e))}),ve=e};Se.length>0&&(Se.forEach(i=>{let r=new URL(i.href).searchParams.size>0?"&":"?";i.href=i.href+r+"ascsubtag="+ve}),window.addEventListener("resize",Yo));})()!/*封装许可信息:dmfility/dist/cruit.jsuniclipse 2.0和mozilla公共许可2.0qqitub.com/cure53/DOMPurify/blob/3.0.9/LICENSE*/