Files

1 line
27 KiB
Plaintext

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[919],{9111:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(66909);function o(e,t,n,o){if(!e||o===n||null==o||!t)return;let i=(0,r.DT)(t),{name:a,...l}=e;l.path||(l.path=""!==i?i:"/");let c=`${a}=${o};`;for(let[e,t]of Object.entries(l))c+=`${"maxAge"===e?"max-age":e}`,"boolean"!=typeof t&&(c+="="+t),c+=";";document.cookie=c}},15097:(e,t,n)=>{n.d(t,{default:()=>u});var r=n(51193),o=n(99018),i=n(66724),a=n(7283),l=n(9111),c=n(45704),u=(0,i.forwardRef)(function(e,t){let{href:n,locale:i,localeCookie:u,onClick:s,prefetch:f,...p}=e,m=(0,a.Ym)(),d=null!=i&&i!==m,h=(0,o.usePathname)();return d&&(f=!1),(0,c.jsx)(r,{ref:t,href:n,hrefLang:d?i:void 0,onClick:function(e){(0,l.A)(u,h,m,i),s&&s(e)},prefetch:f,...p})})},46292:(e,t,n)=>{n.d(t,{FD:()=>T,MY:()=>i,PJ:()=>a,Wl:()=>c,XP:()=>f,_x:()=>o,bL:()=>p,po:()=>u,ql:()=>s,wO:()=>l,yL:()=>y});var r=n(90798);function o(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function i(e,t){return e.replace(RegExp(`^${t}`),"")||"/"}function a(e,t){let n=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}function l(e,t){return t===e||t.startsWith(`${e}/`)}function c(e,t,n){return"string"==typeof e?e:e[t]||n}function u(e){let t=function(){try{return"true"===r.env._next_intl_trailing_slash}catch{return!1}}();if("/"!==e){let n=e.endsWith("/");t&&!n?e+="/":!t&&n&&(e=e.slice(0,-1))}return e}function s(e,t){let n=u(e),r=u(t);return(function(e){let t=e.replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"?(.*)").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)");return RegExp(`^${t}$`)})(n).test(r)}function f(e,t){return"never"!==t.mode&&t.prefixes?.[e]||p(e)}function p(e){return"/"+e}function m(e){return e.includes("[[...")}function d(e){return e.includes("[...")}function h(e){return e.includes("[")}function g(e,t){let n=e.split("/"),r=t.split("/"),o=Math.max(n.length,r.length);for(let e=0;e<o;e++){let t=n[e],o=r[e];if(!t&&o)return -1;if(t&&!o)return 1;if(t||o){if(!h(t)&&h(o))return -1;if(h(t)&&!h(o))return 1;if(!d(t)&&d(o))return -1;if(d(t)&&!d(o))return 1;if(!m(t)&&m(o))return -1;if(m(t)&&!m(o))return 1}}return 0}function T(e){return e.sort(g)}function y(e){return"function"==typeof e.then}},66909:(e,t,n)=>{n.d(t,{DT:()=>c,FP:()=>a,TK:()=>o,Zn:()=>i,aM:()=>l,x3:()=>u});var r=n(46292);function o(e){return"string"==typeof e?{pathname:e}:e}function i(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.append(n,String(e))}):t.set(n,String(r));return"?"+t.toString()}function a({pathname:e,locale:t,params:n,pathnames:o,query:a}){function l(e){let t=o[e];return t||(t=e),t}function c(e,o){let l=(0,r.Wl)(e,t,o);return n&&Object.entries(n).forEach(([e,t])=>{let n,r;Array.isArray(t)?(n=`(\\[)?\\[...${e}\\](\\])?`,r=t.map(e=>String(e)).join("/")):(n=`\\[${e}\\]`,r=String(t)),l=l.replace(RegExp(n,"g"),r)}),l=l.replace(/\[\[\.\.\..+\]\]/g,""),l=(0,r.po)(l),a&&(l+=i(a)),l}if("string"==typeof e)return c(l(e),e);{let{pathname:t,...n}=e;return{...n,pathname:c(l(t),t)}}}function l(e,t,n){let o=(0,r.FD)(Object.keys(n)),i=decodeURI(t);for(let t of o){let o=n[t];if("string"==typeof o){if((0,r.ql)(o,i))return t}else if((0,r.ql)((0,r.Wl)(o,e,t),i))return t}return t}function c(e,t=window.location.pathname){return"/"===e?t:t.replace(e,"")}function u(e,t,n,o){let i,{mode:a}=n.localePrefix;return void 0!==o?i=o:(0,r._x)(e)&&("always"===a?i=!0:"as-needed"===a&&(i=n.domains?!n.domains.some(e=>e.defaultLocale===t):t!==n.defaultLocale)),i?(0,r.PJ)((0,r.XP)(t,n.localePrefix),e):e}},88119:e=>{let{entries:t,setPrototypeOf:n,isFrozen:r,getPrototypeOf:o,getOwnPropertyDescriptor:i}=Object,{freeze:a,seal:l,create:c}=Object,{apply:u,construct:s}="undefined"!=typeof Reflect&&Reflect;a||(a=function(e){return e}),l||(l=function(e){return e}),u||(u=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),s||(s=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let f=k(Array.prototype.forEach),p=k(Array.prototype.lastIndexOf),m=k(Array.prototype.pop),d=k(Array.prototype.push),h=k(Array.prototype.splice),g=Array.isArray,T=k(String.prototype.toLowerCase),y=k(String.prototype.toString),A=k(String.prototype.match),_=k(String.prototype.replace),E=k(String.prototype.indexOf),b=k(String.prototype.trim),S=k(Number.prototype.toString),N=k(Boolean.prototype.toString),R="undefined"==typeof BigInt?null:k(BigInt.prototype.toString),D="undefined"==typeof Symbol?null:k(Symbol.prototype.toString),O=k(Object.prototype.hasOwnProperty),I=k(Object.prototype.toString),w=k(RegExp.prototype.test),x=(et=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(et,t)});function k(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u(e,t,r)}}function C(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;if(n&&n(e,null),!g(t))return e;let i=t.length;for(;i--;){let n=t[i];if("string"==typeof n){let e=o(n);e!==n&&(r(t)||(t[i]=e),n=e)}e[n]=!0}return e}function L(e){let n=c(null);for(let[r,o]of t(e))O(e,r)&&(g(o)?n[r]=function(e){for(let t=0;t<e.length;t++)O(e,t)||(e[t]=null);return e}(o):o&&"object"==typeof o&&o.constructor===Object?n[r]=L(o):n[r]=o);return n}function v(e,t){for(;null!==e;){let n=i(e,t);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}e=o(e)}return function(){return null}}let M=a(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),P=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),U=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F=a(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),z=a(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),H=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=a(["#text"]),B=a(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),G=a(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),j=a(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),X=l(/<%[\w\W]*|[\w\W]*%>/gm),q=l(/\$\{[\w\W]*/gm),K=l(/^data-[\-\w.\u00B7-\uFFFF]+$/),V=l(/^aria-[\-\w]+$/),Z=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=l(/^(?:\w+script|data):/i),Q=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=l(/^html$/i);var et,en=Object.freeze({__proto__:null,ARIA_ATTR:V,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:l(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:K,DOCTYPE_NAME:ee,ERB_EXPR:X,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:J,MUSTACHE_EXPR:$,TMPLIT_EXPR:q});let er={element:1,text:3,progressingInstruction:7,comment:8,document:9},eo=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},ei=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};e.exports=function e(){let n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,o=t=>e(t);if(o.version="3.4.2",o.removed=[],!r||!r.document||r.document.nodeType!==er.document||!r.Element)return o.isSupported=!1,o;let{document:i}=r,l=i,u=l.currentScript,{DocumentFragment:s,HTMLTemplateElement:k,Node:$,Element:X,NodeFilter:q,NamedNodeMap:K=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:V,DOMParser:J,trustedTypes:Q}=r,et=X.prototype,ea=v(et,"cloneNode"),el=v(et,"remove"),ec=v(et,"nextSibling"),eu=v(et,"childNodes"),es=v(et,"parentNode");if("function"==typeof k){let e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let ef="",{implementation:ep,createNodeIterator:em,createDocumentFragment:ed,getElementsByTagName:eh}=i,{importNode:eg}=l,eT=ei();o.isSupported="function"==typeof t&&"function"==typeof es&&ep&&void 0!==ep.createHTMLDocument;let{MUSTACHE_EXPR:ey,ERB_EXPR:eA,TMPLIT_EXPR:e_,DATA_ATTR:eE,ARIA_ATTR:eb,IS_SCRIPT_OR_DATA:eS,ATTR_WHITESPACE:eN,CUSTOM_ELEMENT:eR}=en,{IS_ALLOWED_URI:eD}=en,eO=null,eI=C({},[...M,...P,...U,...z,...W]),ew=null,ex=C({},[...B,...G,...j,...Y]),ek=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eC=null,eL=null,ev=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),eM=!0,eP=!0,eU=!1,eF=!0,ez=!1,eH=!0,eW=!1,eB=!1,eG=!1,ej=!1,eY=!1,e$=!1,eX=!0,eq=!1,eK="user-content-",eV=!0,eZ=!1,eJ={},eQ=null,e0=C({},["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"]),e1=null,e2=C({},["audio","video","img","source","image","track"]),e9=null,e3=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),e6="http://www.w3.org/1998/Math/MathML",e8="http://www.w3.org/2000/svg",e4="http://www.w3.org/1999/xhtml",e7=e4,e5=!1,te=null,tt=C({},[e6,e8,e4],y),tn=C({},["mi","mo","mn","ms","mtext"]),tr=C({},["annotation-xml"]),to=C({},["title","style","font","a","script"]),ti=null,ta=["application/xhtml+xml","text/html"],tl=null,tc=null,tu=i.createElement("form"),ts=function(e){return e instanceof RegExp||e instanceof Function},tf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tc&&tc===e)return;e&&"object"==typeof e||(e={}),e=L(e),tl="application/xhtml+xml"===(ti=-1===ta.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?y:T,eO=O(e,"ALLOWED_TAGS")&&g(e.ALLOWED_TAGS)?C({},e.ALLOWED_TAGS,tl):eI,ew=O(e,"ALLOWED_ATTR")&&g(e.ALLOWED_ATTR)?C({},e.ALLOWED_ATTR,tl):ex,te=O(e,"ALLOWED_NAMESPACES")&&g(e.ALLOWED_NAMESPACES)?C({},e.ALLOWED_NAMESPACES,y):tt,e9=O(e,"ADD_URI_SAFE_ATTR")&&g(e.ADD_URI_SAFE_ATTR)?C(L(e3),e.ADD_URI_SAFE_ATTR,tl):e3,e1=O(e,"ADD_DATA_URI_TAGS")&&g(e.ADD_DATA_URI_TAGS)?C(L(e2),e.ADD_DATA_URI_TAGS,tl):e2,eQ=O(e,"FORBID_CONTENTS")&&g(e.FORBID_CONTENTS)?C({},e.FORBID_CONTENTS,tl):e0,eC=O(e,"FORBID_TAGS")&&g(e.FORBID_TAGS)?C({},e.FORBID_TAGS,tl):L({}),eL=O(e,"FORBID_ATTR")&&g(e.FORBID_ATTR)?C({},e.FORBID_ATTR,tl):L({}),eJ=!!O(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?L(e.USE_PROFILES):e.USE_PROFILES),eM=!1!==e.ALLOW_ARIA_ATTR,eP=!1!==e.ALLOW_DATA_ATTR,eU=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eF=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ez=e.SAFE_FOR_TEMPLATES||!1,eH=!1!==e.SAFE_FOR_XML,eW=e.WHOLE_DOCUMENT||!1,ej=e.RETURN_DOM||!1,eY=e.RETURN_DOM_FRAGMENT||!1,e$=e.RETURN_TRUSTED_TYPE||!1,eG=e.FORCE_BODY||!1,eX=!1!==e.SANITIZE_DOM,eq=e.SANITIZE_NAMED_PROPS||!1,eV=!1!==e.KEEP_CONTENT,eZ=e.IN_PLACE||!1,eD=!function(e){try{return w(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?Z:e.ALLOWED_URI_REGEXP,e7="string"==typeof e.NAMESPACE?e.NAMESPACE:e4,tn=O(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?L(e.MATHML_TEXT_INTEGRATION_POINTS):C({},["mi","mo","mn","ms","mtext"]),tr=O(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?L(e.HTML_INTEGRATION_POINTS):C({},["annotation-xml"]);let t=O(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?L(e.CUSTOM_ELEMENT_HANDLING):c(null);if(ek=c(null),O(t,"tagNameCheck")&&ts(t.tagNameCheck)&&(ek.tagNameCheck=t.tagNameCheck),O(t,"attributeNameCheck")&&ts(t.attributeNameCheck)&&(ek.attributeNameCheck=t.attributeNameCheck),O(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(ek.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),ez&&(eP=!1),eY&&(ej=!0),eJ&&(eO=C({},W),ew=c(null),!0===eJ.html&&(C(eO,M),C(ew,B)),!0===eJ.svg&&(C(eO,P),C(ew,G),C(ew,Y)),!0===eJ.svgFilters&&(C(eO,U),C(ew,G),C(ew,Y)),!0===eJ.mathMl&&(C(eO,z),C(ew,j),C(ew,Y))),ev.tagCheck=null,ev.attributeCheck=null,O(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?ev.tagCheck=e.ADD_TAGS:g(e.ADD_TAGS)&&(eO===eI&&(eO=L(eO)),C(eO,e.ADD_TAGS,tl))),O(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?ev.attributeCheck=e.ADD_ATTR:g(e.ADD_ATTR)&&(ew===ex&&(ew=L(ew)),C(ew,e.ADD_ATTR,tl))),O(e,"ADD_URI_SAFE_ATTR")&&g(e.ADD_URI_SAFE_ATTR)&&C(e9,e.ADD_URI_SAFE_ATTR,tl),O(e,"FORBID_CONTENTS")&&g(e.FORBID_CONTENTS)&&(eQ===e0&&(eQ=L(eQ)),C(eQ,e.FORBID_CONTENTS,tl)),O(e,"ADD_FORBID_CONTENTS")&&g(e.ADD_FORBID_CONTENTS)&&(eQ===e0&&(eQ=L(eQ)),C(eQ,e.ADD_FORBID_CONTENTS,tl)),eV&&(eO["#text"]=!0),eW&&C(eO,["html","head","body"]),eO.table&&(C(eO,["tbody"]),delete eC.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ef=(n=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===n&&(n=eo(Q,u)),null!==n&&"string"==typeof ef&&(ef=n.createHTML(""));a&&a(e),tc=e},tp=C({},[...P,...U,...F]),tm=C({},[...z,...H]),td=function(e){let t=es(e);t&&t.tagName||(t={namespaceURI:e7,tagName:"template"});let n=T(e.tagName),r=T(t.tagName);return!!te[e.namespaceURI]&&(e.namespaceURI===e8?t.namespaceURI===e4?"svg"===n:t.namespaceURI===e6?"svg"===n&&("annotation-xml"===r||tn[r]):!!tp[n]:e.namespaceURI===e6?t.namespaceURI===e4?"math"===n:t.namespaceURI===e8?"math"===n&&tr[r]:!!tm[n]:e.namespaceURI===e4?(t.namespaceURI!==e8||!!tr[r])&&(t.namespaceURI!==e6||!!tn[r])&&!tm[n]&&(to[n]||!tp[n]):"application/xhtml+xml"===ti&&!!te[e.namespaceURI])},th=function(e){d(o.removed,{element:e});try{es(e).removeChild(e)}catch(t){el(e)}},tg=function(e,t){try{d(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ej||eY)try{th(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tT=function(e){let t=null,r=null;if(eG)e="<remove></remove>"+e;else{let t=A(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===ti&&e7===e4&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let o=n?n.createHTML(e):e;if(e7===e4)try{t=new J().parseFromString(o,ti)}catch(e){}if(!t||!t.documentElement){t=ep.createDocument(e7,"template",null);try{t.documentElement.innerHTML=e5?ef:o}catch(e){}}let a=t.body||t.documentElement;return(e&&r&&a.insertBefore(i.createTextNode(r),a.childNodes[0]||null),e7===e4)?eh.call(t,eW?"html":"body")[0]:eW?t.documentElement:a},ty=function(e){return em.call(e.ownerDocument||e,e,q.SHOW_ELEMENT|q.SHOW_COMMENT|q.SHOW_TEXT|q.SHOW_PROCESSING_INSTRUCTION|q.SHOW_CDATA_SECTION,null)},tA=function(e){return e instanceof V&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof K)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},t_=function(e){return"function"==typeof $&&e instanceof $};function tE(e,t,n){f(e,e=>{e.call(o,t,n,tc)})}let tb=function(e){let t=null;if(tE(eT.beforeSanitizeElements,e,null),tA(e))return th(e),!0;let n=tl(e.nodeName);if(tE(eT.uponSanitizeElement,e,{tagName:n,allowedTags:eO}),eH&&e.hasChildNodes()&&!t_(e.firstElementChild)&&w(/<[/\w!]/g,e.innerHTML)&&w(/<[/\w!]/g,e.textContent)||eH&&e.namespaceURI===e4&&"style"===n&&t_(e.firstElementChild)||e.nodeType===er.progressingInstruction||eH&&e.nodeType===er.comment&&w(/<[/\w]/g,e.data))return th(e),!0;if(eC[n]||!(ev.tagCheck instanceof Function&&ev.tagCheck(n))&&!eO[n]){if(!eC[n]&&tR(n)&&(ek.tagNameCheck instanceof RegExp&&w(ek.tagNameCheck,n)||ek.tagNameCheck instanceof Function&&ek.tagNameCheck(n)))return!1;if(eV&&!eQ[n]){let t=es(e)||e.parentNode,n=eu(e)||e.childNodes;if(n&&t){let r=n.length;for(let o=r-1;o>=0;--o){let r=ea(n[o],!0);t.insertBefore(r,ec(e))}}}return th(e),!0}return e instanceof X&&!td(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&w(/<\/no(script|embed|frames)/i,e.innerHTML)?(th(e),!0):(ez&&e.nodeType===er.text&&(t=e.textContent,f([ey,eA,e_],e=>{t=_(t,e," ")}),e.textContent!==t&&(d(o.removed,{element:e.cloneNode()}),e.textContent=t)),tE(eT.afterSanitizeElements,e,null),!1)},tS=function(e,t,n){if(eL[t]||eX&&("id"===t||"name"===t)&&(n in i||n in tu))return!1;let r=ew[t]||ev.attributeCheck instanceof Function&&ev.attributeCheck(t,e);if(eP&&!eL[t]&&w(eE,t));else if(eM&&w(eb,t));else if(!r||eL[t]){if(!(tR(e)&&(ek.tagNameCheck instanceof RegExp&&w(ek.tagNameCheck,e)||ek.tagNameCheck instanceof Function&&ek.tagNameCheck(e))&&(ek.attributeNameCheck instanceof RegExp&&w(ek.attributeNameCheck,t)||ek.attributeNameCheck instanceof Function&&ek.attributeNameCheck(t,e))||"is"===t&&ek.allowCustomizedBuiltInElements&&(ek.tagNameCheck instanceof RegExp&&w(ek.tagNameCheck,n)||ek.tagNameCheck instanceof Function&&ek.tagNameCheck(n))))return!1}else if(e9[t]);else if(w(eD,_(n,eN,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===E(n,"data:")&&e1[e]);else if(eU&&!w(eS,_(n,eN,"")));else if(n)return!1;return!0},tN=C({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tR=function(e){return!tN[T(e)]&&w(eR,e)},tD=function(e){tE(eT.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||tA(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ew,forceKeepAttr:void 0},i=t.length;for(;i--;){let{name:a,namespaceURI:l,value:c}=t[i],u=tl(a),s="value"===a?c:b(c);if(r.attrName=u,r.attrValue=s,r.keepAttr=!0,r.forceKeepAttr=void 0,tE(eT.uponSanitizeAttribute,e,r),s=r.attrValue,eq&&("id"===u||"name"===u)&&0!==E(s,eK)&&(tg(a,e),s=eK+s),eH&&w(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,s)||"attributename"===u&&A(s,"href")){tg(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr||!eF&&w(/\/>/i,s)){tg(a,e);continue}ez&&f([ey,eA,e_],e=>{s=_(s,e," ")});let p=tl(e.nodeName);if(!tS(p,u,s)){tg(a,e);continue}if(n&&"object"==typeof Q&&"function"==typeof Q.getAttributeType)if(l);else switch(Q.getAttributeType(p,u)){case"TrustedHTML":s=n.createHTML(s);break;case"TrustedScriptURL":s=n.createScriptURL(s)}if(s!==c)try{l?e.setAttributeNS(l,a,s):e.setAttribute(a,s),tA(e)?th(e):m(o.removed)}catch(t){tg(a,e)}}tE(eT.afterSanitizeAttributes,e,null)},tO=function(e){let t=null,n=ty(e);for(tE(eT.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)tE(eT.uponSanitizeShadowNode,t,null),tb(t),tD(t),t.content instanceof s&&tO(t.content);tE(eT.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,c=null;if((e5=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!t_(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return S(e);case"boolean":return N(e);case"bigint":return R?R(e):"0";case"symbol":return D?D(e):"Symbol()";case"undefined":default:return I(e);case"function":case"object":{if(null===e)return I(e);let t=v(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:I(n)}return I(e)}}}(e)))throw x("dirty is not a string, aborting");if(!o.isSupported)return e;if(eB||tf(t),o.removed=[],"string"==typeof e&&(eZ=!1),eZ){let t=e.nodeName;if("string"==typeof t){let e=tl(t);if(!eO[e]||eC[e])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof $)(i=(r=tT("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===er.element&&"BODY"===i.nodeName?r=i:"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ej&&!ez&&!eW&&-1===e.indexOf("<"))return n&&e$?n.createHTML(e):e;if(!(r=tT(e)))return ej?null:e$?ef:""}r&&eG&&th(r.firstChild);let u=ty(eZ?e:r);for(;a=u.nextNode();)tb(a),tD(a),a.content instanceof s&&tO(a.content);if(eZ)return e;if(ej){if(ez){r.normalize();let e=r.innerHTML;f([ey,eA,e_],t=>{e=_(e,t," ")}),r.innerHTML=e}if(eY)for(c=ed.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(ew.shadowroot||ew.shadowrootmode)&&(c=eg.call(l,c,!0)),c}let p=eW?r.outerHTML:r.innerHTML;return eW&&eO["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&w(ee,r.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+p),ez&&f([ey,eA,e_],e=>{p=_(p,e," ")}),n&&e$?n.createHTML(p):p},o.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tf(e),eB=!0},o.clearConfig=function(){tc=null,eB=!1},o.isValidAttribute=function(e,t,n){return tc||tf({}),tS(tl(e),tl(t),n)},o.addHook=function(e,t){"function"==typeof t&&d(eT[e],t)},o.removeHook=function(e,t){if(void 0!==t){let n=p(eT[e],t);return -1===n?void 0:h(eT[e],n,1)[0]}return m(eT[e])},o.removeHooks=function(e){eT[e]=[]},o.removeAllHooks=function(){eT=ei()},o}()}}]);