vendor: 5,530 bytes, line 1
1import{j as O}from"./index-CxB_Ni1Z-v2.2.0.js";import{F as jt,X as Yt}from"./vendor-lucide-C66To_pL-v2.2.0.js";/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:Et,setPrototypeOf:ut,isFrozen:Xt,getPrototypeOf:Vt,getOwnPropertyDescriptor:qt}=Object;let{freeze:R,seal:N,create:he}=Object,{apply:He,construct:ze}=typeof Reflect<"u"&&Reflect;R||(R=function(t){return t});N||(N=function(t){return t});He||(He=function(t,l){for(var a=arguments.length,c=new Array(a>2?a-2:0),f=2;f<a;f++)c[f-2]=arguments[f];return t.apply(l,c)});ze||(ze=function(t){for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return new t(...a)});const de=D(Array.prototype.forEach),Kt=D(Array.prototype.lastIndexOf),mt=D(Array.prototype.pop),J=D(Array.prototype.push),Zt=D(Array.prototype.splice),Te=D(String.prototype.toLowerCase),Me=D(String.prototype.toString),ve=D(String.prototype.match),Q=D(String.prototype.replace),Jt=D(String.prototype.indexOf),Qt=D(String.prototype.trim),y=D(Object.prototype.hasOwnProperty),b=D(RegExp.prototype.test),ee=en(TypeError);function D(i){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return He(i,t,a)}}function en(i){return function(){for(var t=arguments.length,l=new Array(t),a=0;a<t;a++)l[a]=arguments[a];return ze(i,l)}}function s(i,t){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Te;ut&&ut(i,null);let a=t.length;for(;a--;){let c=t[a];if(typeof c=="string"){const f=l(c);f!==c&&(Xt(t)||(t[a]=f),c=f)}i[c]=!0}return i}function tn(i){for(let t=0;t<i.length;t++)y(i,t)||(i[t]=null);return i}function C(i){const t=he(null);for(const[l,a]of Et(i))y(i,l)&&(Array.isArray(a)?t[l]=tn(a):a&&typeof a=="object"&&a.constructor===Object?t[l]=C(a):t[l]=a);return t}function te(i,t){for(;i!==null;){const a=qt(i,t);if(a){if(a.get)return D(a.get);if(typeof a.value=="function")return D(a.value)}i=Vt(i)}function l(){return null}return l}const pt=R(["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"]),Pe=R(["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"]),ke=R(["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"]),nn=R(["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"]),Ue=R(["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"]),on=R(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dt=R(["#text"]),gt=R(["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","
1spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Fe=R(["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"]),ht=R(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),ge=R(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rn=N(/\{\{[\w\W]*|[\w\W]*\}\}/gm),an=N(/<%[\w\W]*|[\w\W]*%>/gm),ln=N(/\$\{[\w\W]*/gm),sn=N(/^data-[\-\w.\u00B7-\uFFFF]+$/),cn=N(/^aria-[\-\w]+$/),At=N(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fn=N(/^(?:\w+script|data):/i),un=N(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),St=N(/^html$/i),mn=N(/^[a-z][.\w]*(-[.\w]+)+$/i);var Tt=Object.freeze({__proto__:null,ARIA_ATTR:cn,ATTR_WHITESPACE:un,CUSTOM_ELEMENT:mn,DATA_ATTR:sn,DOCTYPE_NAME:St,ERB_EXPR:an,IS_ALLOWED_URI:At,IS_SCRIPT_OR_DATA:fn,MUSTACHE_EXPR:rn,TMPLIT_EXPR:ln});const ne={element:1,text:3,progressingInstruction:7,comment:8,document:9},pn=function(){return typeof window>"u"?null:window},dn=function(t,l){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const c="data-tt-policy-suffix";l&&l.hasAttribute(c)&&(a=l.getAttribute(c));const f="dompurify"+(a?"#"+a:"");try{return t.createPolicy(f,{createHTML(_){return _},createScriptURL(_){return _}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},_t=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function bt(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pn();const t=r=>bt(r);if(t.version="3.3.3",t.removed=[],!i||!i.document||i.document.nodeType!==ne.document||!i.Element)return t.isSupported=!1,t;let{document:l}=i;const a=l,c=a.currentScript,{DocumentFragment:f,HTMLTemplateElement:_,Node:k,Element:oe,NodeFilter:U,NamedNodeMap:Y=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:Rt,DOMParser:Dt,trustedTypes:re}=i,X=oe.prototype,Lt=te(X,"cloneNode"),Ot=te(X,"remove"),yt=te(X,"nextSibling"),Nt=te(X,"childNodes"),ae=te(X,"parentNode");if(typeof _=="function"){const r=l.createElement("template");r.content&&r.content.ownerDocument&&(l=r.content.ownerDocument)}let A,V="";const{implementation:_e,createNodeIterator:wt,createDocumentFragment:xt,getElementsByTagName:Ct}=l,{importNode:It}=a;let S=_t();t.isSupported=typeof Et=="function"&&typeof ae=="function"&&_e&&_e.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ee,ERB_EXPR:Ae,TMPLIT_EXPR:Se,DATA_ATTR:Mt,ARIA_ATTR:vt,IS_SCRIPT_OR_DATA:Pt,ATTR_WHITESPACE:Ge,CUSTOM_ELEMENT:kt}=Tt;let{IS_ALLOWED_URI:Be}=Tt,g=null;const We=s({},[...pt,...Pe,...ke,...Ue,...dt]);let h=null;const $e=s({},[...gt,...Fe,...ht,...ge]);let m=Object.seal(he(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}})),q=null,ie=null;const P=Object.seal(he(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let je=!0,be=!0,Ye=!1,Xe=!0,z=!1,le=!0,F=!1,Re=!1,De=!1,G=!1,se=!1,ce=!1,Ve=!0,qe=!1;const Ut="user-content-";let Le=!0,K=!1,B={},w=null;const Oe=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 Ke=null;const Ze=s({},["audio","video","img","source","image","track"]);let ye=null;const Je=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ue="http://www.w3.org/2000/svg",I="http://www.w3.org/1999/xhtml";let W=I,Ne=!1,we=null;const Ft=s({},[fe,ue,I],Me);let me=s({}
vendor: 9,020 bytes, line 1
1,["mi","mo","mn","ms","mtext"]),pe=s({},["annotation-xml"]);const Ht=s({},["title","style","font","a","script"]);let Z=null;const zt=["application/xhtml+xml","text/html"],Gt="text/html";let d=null,$=null;const Bt=l.createElement("form"),Qe=function(e){return e instanceof RegExp||e instanceof Function},xe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!($&&$===e)){if((!e||typeof e!="object")&&(e={}),e=C(e),Z=zt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Gt:e.PARSER_MEDIA_TYPE,d=Z==="application/xhtml+xml"?Me:Te,g=y(e,"ALLOWED_TAGS")?s({},e.ALLOWED_TAGS,d):We,h=y(e,"ALLOWED_ATTR")?s({},e.ALLOWED_ATTR,d):$e,we=y(e,"ALLOWED_NAMESPACES")?s({},e.ALLOWED_NAMESPACES,Me):Ft,ye=y(e,"ADD_URI_SAFE_ATTR")?s(C(Je),e.ADD_URI_SAFE_ATTR,d):Je,Ke=y(e,"ADD_DATA_URI_TAGS")?s(C(Ze),e.ADD_DATA_URI_TAGS,d):Ze,w=y(e,"FORBID_CONTENTS")?s({},e.FORBID_CONTENTS,d):Oe,q=y(e,"FORBID_TAGS")?s({},e.FORBID_TAGS,d):C({}),ie=y(e,"FORBID_ATTR")?s({},e.FORBID_ATTR,d):C({}),B=y(e,"USE_PROFILES")?e.USE_PROFILES:!1,je=e.ALLOW_ARIA_ATTR!==!1,be=e.ALLOW_DATA_ATTR!==!1,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Xe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,z=e.SAFE_FOR_TEMPLATES||!1,le=e.SAFE_FOR_XML!==!1,F=e.WHOLE_DOCUMENT||!1,G=e.RETURN_DOM||!1,se=e.RETURN_DOM_FRAGMENT||!1,ce=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,Ve=e.SANITIZE_DOM!==!1,qe=e.SANITIZE_NAMED_PROPS||!1,Le=e.KEEP_CONTENT!==!1,K=e.IN_PLACE||!1,Be=e.ALLOWED_URI_REGEXP||At,W=e.NAMESPACE||I,me=e.MATHML_TEXT_INTEGRATION_POINTS||me,pe=e.HTML_INTEGRATION_POINTS||pe,m=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(m.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(m.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),z&&(be=!1),se&&(G=!0),B&&(g=s({},dt),h=he(null),B.html===!0&&(s(g,pt),s(h,gt)),B.svg===!0&&(s(g,Pe),s(h,Fe),s(h,ge)),B.svgFilters===!0&&(s(g,ke),s(h,Fe),s(h,ge)),B.mathMl===!0&&(s(g,Ue),s(h,ht),s(h,ge))),y(e,"ADD_TAGS")||(P.tagCheck=null),y(e,"ADD_ATTR")||(P.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?P.tagCheck=e.ADD_TAGS:(g===We&&(g=C(g)),s(g,e.ADD_TAGS,d))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?P.attributeCheck=e.ADD_ATTR:(h===$e&&(h=C(h)),s(h,e.ADD_ATTR,d))),e.ADD_URI_SAFE_ATTR&&s(ye,e.ADD_URI_SAFE_ATTR,d),e.FORBID_CONTENTS&&(w===Oe&&(w=C(w)),s(w,e.FORBID_CONTENTS,d)),e.ADD_FORBID_CONTENTS&&(w===Oe&&(w=C(w)),s(w,e.ADD_FORBID_CONTENTS,d)),Le&&(g["#text"]=!0),F&&s(g,["html","head","body"]),g.table&&(s(g,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw ee('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ee('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=e.TRUSTED_TYPES_POLICY,V=A.createHTML("")}else A===void 0&&(A=dn(re,c)),A!==null&&typeof V=="string"&&(V=A.createHTML(""));R&&R(e),$=e}},et=s({},[...Pe,...ke,...nn]),tt=s({},[...Ue,...on]),Wt=function(e){let n=ae(e);(!n||!n.tagName)&&(n={namespaceURI:W,tagName:"template"});const o=Te(e.tagName),u=Te(n.tagName);return we[e.namespaceURI]?e.namespaceURI===ue?n.namespaceURI===I?o==="svg":n.namespaceURI===fe?o==="svg"&&(u==="annotation-xml"||me[u]):!!et[o]:e.namespaceURI===fe?n.namespaceURI===I?o==="math":n.namespaceURI===ue?o==="math"&&pe[u]:!!tt[o]:e.namespaceURI===I?n.namespaceURI===ue&&!pe[u]||n.namespaceURI===fe&&!me[u]?!1:!tt[o]&&(Ht[o]||!et[o]):!!(Z==="application/xhtml+xml"&&we[e.namespaceURI]):!1},x=function(e){J(t.removed,{element:e});try{ae(e).removeChild(e)}catch{Ot(e)}},H=function(e,n){try{J(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{J(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e==="is")if(G||se)try{x(n)}catch{}else try{n.setAttribute(e,"")}catch{}},nt=function(e){let n=null,o=null;if(De)e="<remove></remove>"+e;else{const p=ve(e,/^[\r\n\t ]+/);o=p&&p[0]}Z==="application/xhtml+xml"&&W===I&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const u=A?A.createHTML(e):e;if(W===I)try{n=new Dt().parseFromString(u,Z)}catch{}if(!n||!n.documentElement){n=_e.createDocument(W,"template",null);try{n.documentElement.innerHTML=Ne?V:u}catch{}}const E=n.body||n.documentElement;return e&&o&&E.insertBefore(l.createTextNode(o),E.childNodes[0]||null),W===I?Ct.call(n,F?"html":"body")[0]:F?n.documentElement:E},ot=function(e){return wt.call(e.ownerDocument||e,e,U.SHOW_ELEMENT|U.SHOW_COMMENT|U.SHOW_TEXT|U.SHOW_PROCESSING_INSTRUCTION|U.SHOW_CDATA_SECTION,null)},Ce=function(e){return e instanceof Rt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Y)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},rt=function(e){return typeof k=="function"&&e instanceof k};function M(r,e,n){de(r,o=>{o.call(t,e,n,$)})}const at=function(e){let n=null;if(M(S.beforeSanitizeElements,e,null),Ce(e))return x(e),!0;const o=d(e.nodeName);if(M(S.uponSanitizeElement,e,{tagName:o,allowedTags:g}),le&&e.hasChildNodes()&&!rt(e.firstElementChild)&&b(/<[/\w!]/g,e.innerHTML)&&b(/<[/\w!]/g,e.textContent)||e.nodeType===ne.progressingInstruction||le&&e.nodeType===ne.comment&&b(/<[/\w]/g,e.data))return x(e),!0;if(!(P.tagCheck instanceof Function&&P.tagCheck(o))&&(!g[o]||q[o])){if(!q[o]&<(o)&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,o)||m.tagNameCheck instanceof Function&&m.tagNameCheck(o)))return!1;if(Le&&!w[o]){const u=ae(e)||e.parentNode,E=Nt(e)||e.childNodes;if(E&&u){const p=E.length;for(let L=p-1;L>=0;--L){const v=Lt(E[L],!0);v.__removalCount=(e.__removalCount||0)+1,u.insertBefore(v,yt(e))}}}return x(e),!0}return e instanceof oe&&!Wt(e)||(o==="noscript"||o==="noembed"||o==="noframes")&&b(/<\/no(script|embed|frames)/i,e.innerHTML)?(x(e),!0):(z&&e.nodeType===ne.text&&(n=e.textContent,de([Ee,Ae,Se],u=>{n=Q(n,u," ")}),e.textContent!==n&&(J(t.removed,{element:e.cloneNode()}),e.textContent=n)),M(S.afterSanitizeElements,e,null),!1)},it=function(e,n,o){if(ie[n]||Ve&&(n==="id"||n==="name")&&(o in l||o in Bt))return!1;if(!(be&&!ie[n]&&b(Mt,n))){if(!(je&&b(vt,n))){if(!(P.attributeCheck instanceof Function&&P.attributeCheck(n,e))){if(!h[n]||ie[n]){if(!(lt(e)&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,e)||m.tagNameCheck instanceof Function&&m.tagNameCheck(e))&&(m.attributeNameCheck instanceof RegExp&&b(m.attributeNameCheck,n)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(n,e))||n==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,o)||m.tagNameCheck instanceof Function&&m.tagNameCheck(o))))return!1}else if(!ye[n]){if(!b(Be,Q(o,Ge,""))){if(!((n==="src"||n==="xlink:href"||n==="href")&&e!=="script"&&Jt(o,"data:")===0&&Ke[e])){if(!(Ye&&!b(Pt,Q(o,Ge,"")))){if(o)return!1}}}}}}}return!0},lt=function(e){return e!=="annotation-xml"&&ve(e,kt)},st=function(e){M(S.beforeSanitizeAttributes,e,null);const{attributes:n}=e;if(!n||Ce(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:h,forceKeepAttr:void 0};let u=n.length;for(;u--;){const E=n[u],{name:p,namespaceURI:L,value:v}=E,j=d(p),Ie=v;let T=p==="value"?Ie:Qt(Ie);if(o.attrName=j,o.attrValue=T,o.keepAttr=!0,o.forceKeepAttr=void 0,M(S.uponSanitizeAttribute,e,o),T=o.attrValue,qe&&(j==="id"||j==="name")&&(H(p,e),T=Ut+T),le&&b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,T)){H(p,e);continue}if(j==="attributename"&&ve(T,"href")){H(p,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){H(p,e);continue}if(!Xe&&b(/\/>/i,T)){H(p,e);continue}z&&de([Ee,Ae,Se],ft=>{T=Q(T,ft," ")});const ct=d(e.nodeName);if(!it(ct,j,T)){H(p,e);continue}if(A&&typeof re=="object"&&typeof re.getAttributeType=="function"&&!L)switch(re.getAttributeType(ct,j)){case"TrustedHTML":{T=A.createHTML(T);break}case"TrustedScriptURL":{T=A.createScriptURL(T);break}}if(T!==Ie)try{L?e.setAttributeNS(L,p,T):e.setAttribute(p,T),Ce(e)?x(e):mt(t.removed)}catch{H(p,e)}}M(S.afterSanitizeAttributes,e,null)},$t=function r(e){let n=null;const o=ot(e);for(M(S.beforeSanitizeShadowDOM,e,null);n=o.nextNode();)M(S.uponSanitizeShadowNode,n,null),at(n),st(n),n.content instanceof f&&r(n.content);M(S.afterSanitizeShadowDOM,e,null)};return t.sanitize=function(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,o=null,u=null,E=null;if(Ne=!r,Ne&&(r="<!-->"),typeof r!="string"&&!rt(r))if(typeof r.toString=="function"){if(r=r.toString(),typeof r!="string")throw ee("dirty is not a string, aborting")}else throw ee("toString is not a function");if(!t.isSupported)return r;
vendor: 5,327 bytes, lines 1-73
1if(Re||xe(e),t.removed=[],typeof r=="string"&&(K=!1),K){if(r.nodeName){const v=d(r.nodeName);if(!g[v]||q[v])throw ee("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof k)n=nt("<!---->"),o=n.ownerDocument.importNode(r,!0),o.nodeType===ne.element&&o.nodeName==="BODY"||o.nodeName==="HTML"?n=o:n.appendChild(o);else{if(!G&&!z&&!F&&r.indexOf("<")===-1)return A&&ce?A.createHTML(r):r;if(n=nt(r),!n)return G?null:ce?V:""}n&&De&&x(n.firstChild);const p=ot(K?r:n);for(;u=p.nextNode();)at(u),st(u),u.content instanceof f&&$t(u.content);if(K)return r;if(G){if(se)for(E=xt.call(n.ownerDocument);n.firstChild;)E.appendChild(n.firstChild);else E=n;return(h.shadowroot||h.shadowrootmode)&&(E=It.call(a,E,!0)),E}let L=F?n.outerHTML:n.innerHTML;return F&&g["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&b(St,n.ownerDocument.doctype.name)&&(L="<!DOCTYPE "+n.ownerDocument.doctype.name+`> 2`+L),z&&de([Ee,Ae,Se],v=>{L=Q(L,v," ")}),A&&ce?A.createHTML(L):L},t.setConfig=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};xe(r),Re=!0},t.clearConfig=function(){$=null,Re=!1},t.isValidAttribute=function(r,e,n){$||xe({});const o=d(r),u=d(e);return it(o,u,n)},t.addHook=function(r,e){typeof e=="function"&&J(S[r],e)},t.removeHook=function(r,e){if(e!==void 0){const n=Kt(S[r],e);return n===-1?void 0:Zt(S[r],n,1)[0]}return mt(S[r])},t.removeHooks=function(r){S[r]=[]},t.removeAllHooks=function(){S=_t()},t}var gn=bt();const En=({title:i,content:t,onClose:l})=>O.jsxs("div",{className:"fixed inset-0 bg-black/90 z-[10000] flex items-center justify-center p-4 overflow-auto",children:[O.jsxs("div",{className:"bg-slate-900 border border-slate-700 rounded-lg w-full max-w-4xl max-h-[90vh] overflow-hidden flex flex-col",children:[O.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-slate-700 bg-slate-800/50",children:[O.jsxs("div",{className:"flex items-center gap-3",children:[O.jsx(jt,{className:"w-6 h-6 text-blue-400"}),O.jsx("h2",{className:"text-2xl font-bold text-white",children:i})]}),O.jsx("button",{onClick:l,className:"p-2 hover:bg-slate-700 rounded-lg transition-colors","aria-label":"Close",children:O.jsx(Yt,{className:"w-5 h-5"})})]}),O.jsx("div",{className:"flex-1 overflow-auto p-6 prose prose-invert prose-slate max-w-none",children:O.jsx("div",{className:"legal-content",dangerouslySetInnerHTML:{__html:gn.sanitize(t)}})}),O.jsx("div",{className:"p-6 border-t border-slate-700 bg-slate-800/50",children:O.jsx("button",{onClick:l,className:"w-full sm:w-auto px-6 py-2 bg-blue-600 hover:bg-blue-700 rounded-lg font-medium transition-colors",children:"Close"})})]}),O.jsx("style",{children:` 3 .legal-content h1 { 4 font-size: 2rem; 5 font-weight: bold; 6 margin-top: 2rem; 7 margin-bottom: 1rem; 8 color: #f2f3f5; 9 } 10 .legal-content h2 { 11 font-size: 1.5rem; 12 font-weight: 600; 13 margin-top: 1.5rem; 14 margin-bottom: 0.75rem; 15 color: #f2f3f5; 16 } 17 .legal-content h3 { 18 font-size: 1.25rem; 19 font-weight: 600; 20 margin-top: 1.25rem; 21 margin-bottom: 0.5rem; 22 color: #D1D5DB; 23 } 24 .legal-content p { 25 margin-bottom: 1rem; 26 line-height: 1.7; 27 color: #D1D5DB; 28 } 29 .legal-content ul, .legal-content ol { 30 margin-left: 1.5rem; 31 margin-bottom: 1rem; 32 } 33 .legal-content li { 34 margin-bottom: 0.5rem; 35 color: #D1D5DB; 36 } 37 .legal-content strong { 38 color: #f2f3f5; 39 font-weight: 600; 40 } 41 .legal-content a { 42 color: #60a5fa; 43 text-decoration: underline; 44 } 45 .legal-content a:hover { 46 color: #93c5fd; 47 } 48 .legal-content code { 49 background: #1B2030; 50 padding: 0.2rem 0.4rem; 51 border-radius: 0.25rem; 52 font-size: 0.9em; 53 } 54 .legal-content hr { 55 margin: 2rem 0; 56 border-color: #3A3F52; 57 } 58 .legal-content table { 59 width: 100%; 60 margin: 1rem 0; 61 border-collapse: collapse; 62 } 63 .legal-content th, .legal-content td { 64 padding: 0.5rem; 65 border: 1px solid #3A3F52; 66 text-align: left; 67 } 68 .legal-content th { 69 background: #1B2030; 70 font-weight: 600; 71 } 72 `})]});function hn(i){let t=i;t=t.replace(/^######\s+(.+)$/gm,"<h6>$1</h6>"),t=t.replace(/^#####\s+(.+)$/gm,"<h5>$1</h5>"),t=t.replace(/^####\s+(.+)$/gm,"<h4>$1</h4>"),t=t.replace(/^###\s+(.+)$/gm,"<h3>$1</h3>"),t=t.replace(/^##\s+(.+)$/gm,"<h2>$1</h2>"),t=t.replace(/^#\s+(.+)$/gm,"<h1>$1</h1>"),t=t.replace(/^---$/gm,"<hr />"),t=t.replace(/^\*\*\*$/gm,"<hr />"),t=t.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>"),t=t.replace(/__(.+?)__/g,"<strong>$1</strong>"),t=t.replace(/\*(.+?)\*/g,"<em>$1</em>"),t=t.replace(/_(.+?)_/g,"<em>$1</em>"),t=t.replace(/`(.+?)`/g,"<code>$1</code>"),t=t.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>');const l=t.split(` 73`);let a=!1,c=!1;const f=[];return l.forEach((_,k)=>{const oe=/^[\s]*[-*]\s+(.+)$/.test(_),U=/^[\s]*\d+\.\s+(.+)$/.test(_);
73if(oe){a||(f.push("<ul>"),a=!0);const Y=_.replace(/^[\s]*[-*]\s+/,"");f.push(`<li>${Y}</li>`)}else if(U){c||(f.push("<ol>"),c=!0);const Y=_.replace(/^[\s]*\d+\.\s+/,"");f.push(`<li>${Y}</li>`)}else a&&(f.push("</ul>"),a=!1),c&&(f.push("</ol>"),c=!1),f.push(_)}),a&&f.push("</ul>"),c&&f.push("</ol>"),t=f.join(` 74`),t=t.split(` 75`).map(_=>{const k=_.trim();return k?k.startsWith("<")?_:`<p>${_}</p>`:"<br />"}).join(` 76`),t=t.replace(/(<\/p>\s*<br \/>\s*<p>)/g,"</p><p>"),t=t.replace(/(<br \/>){3,}/g,"<br /><br />"),t}async function An(i){try{const t=await fetch(`/legal/${i}`);if(!t.ok)throw new Error(`Failed to load ${i}`);const l=await t.text();return hn(l)}catch(t){return console.error(`Error loading legal document ${i}:`,t),"<p>Error loading document. Please contact [email protected]</p>"}}export{En as L,An as l}; 77//# sourceMappingURL=markdownParser-0zL4S0Oi-v2.2.0.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.